From f5a30c3a0312a669e9f6f87acab7473618dd97cf Mon Sep 17 00:00:00 2001 From: Zion Leonahenahe Basque Date: Wed, 13 Mar 2024 10:18:33 -0700 Subject: [PATCH 1/6] Delay the imports of PyJoern for less data installs (#11) --- sailreval/__init__.py | 2 +- sailreval/analysis/counting.py | 2 +- sailreval/analysis/measure.py | 7 +++++-- sailreval/analysis/visualization.py | 22 ++++++++++++++-------- sailreval/metrics/ged_to_source.py | 2 +- sailreval/utils/compile.py | 3 ++- setup.cfg | 22 ++++++++++------------ 7 files changed, 34 insertions(+), 26 deletions(-) diff --git a/sailreval/__init__.py b/sailreval/__init__.py index 052e87e..2634dd8 100755 --- a/sailreval/__init__.py +++ b/sailreval/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.4.2" +__version__ = "1.5.0" # create loggers import logging diff --git a/sailreval/analysis/counting.py b/sailreval/analysis/counting.py index 19e5d13..c7a9afc 100644 --- a/sailreval/analysis/counting.py +++ b/sailreval/analysis/counting.py @@ -13,7 +13,6 @@ from sailreval.utils import load_tomls_by_bin_name, bcolors from sailreval.utils.sailr_target import SAILRTarget from sailreval.utils.compile import DEFAULT_OPTIMIZATION_LEVELS, OPTIMIZATION_LEVELS -from pyjoern import JoernServer, JoernClient from tqdm import tqdm import toml @@ -793,6 +792,7 @@ def _format_number(num): def _find_functions_with_switches(source_path: Path, port): source_name = source_path.name.split(".c")[0] + from pyjoern import JoernServer, JoernClient with JoernServer(port=port): client = JoernClient(source_path, port=port) functions = client.functions_with_switches() diff --git a/sailreval/analysis/measure.py b/sailreval/analysis/measure.py index 28fe995..c8ce1fb 100644 --- a/sailreval/analysis/measure.py +++ b/sailreval/analysis/measure.py @@ -10,8 +10,6 @@ from typing import List import toml -from pyjoern import JoernClient, JoernServer, fast_cfgs_from_source -from pyjoern.mapping import cfg_root_node, correct_source_cfg_addrs from sailreval import ALL_DECOMPILERS, ALL_METRICS, SAILR_DECOMPILERS, SAILR_METRICS, JOERNLESS_SERVER_METRICS from sailreval.metrics import get_metric_function, POST_METRICS @@ -33,6 +31,7 @@ def measure(filepath: Path, basename: str, metrics, functions, joern_port=9000, if not require_joern: client = None else: + from pyjoern import JoernClient if client is None: client = JoernClient(filepath, port=joern_port, bin_name=basename) @@ -91,6 +90,7 @@ def _measure_files_with_joern_server(): l.debug(f"JOERN server not needed for {basename}") measure_files(file_dir, basename, decompilers=decompilers, metrics=metrics, functions=functions, cores=cores, joern_port=joern_port, require_joern=False, cache_dir=cache_dir) else: + from pyjoern import JoernServer try: with JoernServer(port=joern_port): measure_files(file_dir, basename, decompilers=decompilers, metrics=metrics, functions=functions, cores=cores, joern_port=joern_port, cache_dir=cache_dir) @@ -183,6 +183,9 @@ def measure_files(file_dir: Path, basename: str, decompilers=None, metrics=None, SAILR_METRICS.CODE_COMPLEXITY, SAILR_METRICS.GED_EXACT ) ) + if require_cfgs: + from pyjoern import fast_cfgs_from_source + from pyjoern.mapping import correct_source_cfg_addrs # collect the source CFGs first if they are needed source_cfgs, dec_cfgs = {}, {} diff --git a/sailreval/analysis/visualization.py b/sailreval/analysis/visualization.py index 0bafc49..16f1749 100644 --- a/sailreval/analysis/visualization.py +++ b/sailreval/analysis/visualization.py @@ -1,22 +1,16 @@ -from pathlib import Path import textwrap from typing import Dict, List -import matplotlib as mpl -mpl.use('Agg') -import matplotlib.pyplot as plt -import numpy as np -import pandas as pd -#import seaborn as sns STAT_TYPES = ("sum", "mean", "median") - # # Graphs # def plot_histogram(data1, data2, save_path="./histo_chart.png"): + import matplotlib as mpl + mpl.use('Agg') import matplotlib.pyplot as plt import numpy as np @@ -58,6 +52,11 @@ def plot_histogram(data1, data2, save_path="./histo_chart.png"): def plot_diff_barchar(data_by_row: Dict[str, List], metric: str, decompilers: List, save_path="./diff_bar_chart.png"): + import matplotlib as mpl + mpl.use('Agg') + import matplotlib.pyplot as plt + import pandas as pd + assert len(decompilers) == 2 metric_data = data_by_row[metric] @@ -79,6 +78,10 @@ def plot_diff_barchar(data_by_row: Dict[str, List], metric: str, decompilers: Li def plot_barchart(data_by_row: Dict[str, List], save_path="./bar_chart.png"): + import matplotlib as mpl + mpl.use('Agg') + import matplotlib.pyplot as plt + import pandas as pd data = { 'Function': range(len(data_by_row["angr_sailr"])), 'angr_phoenix': data_by_row["angr_phoenix"], @@ -104,6 +107,9 @@ def plot_barchart(data_by_row: Dict[str, List], save_path="./bar_chart.png"): def plot_box_plot(data_by_row: Dict[str, List], save_path="./boxplot.png"): + import matplotlib as mpl + mpl.use('Agg') + import matplotlib.pyplot as plt plt.figure(figsize=(10, 6)) # Set the figure size plt.boxplot(data_by_row.values(), vert=False, widths=0.7) # Plot the data diff --git a/sailreval/metrics/ged_to_source.py b/sailreval/metrics/ged_to_source.py index b18446f..ff12393 100644 --- a/sailreval/metrics/ged_to_source.py +++ b/sailreval/metrics/ged_to_source.py @@ -2,7 +2,6 @@ from pathlib import Path from typing import Dict -from pyjoern.mapping import correct_decompiler_mappings, read_line_maps from cfgutils.similarity import ged_max, ged_upperbound, ged_exact from cfgutils.similarity import cfg_edit_distance as _cfg_edit_distance import networkx as nx @@ -81,6 +80,7 @@ def cfg_edit_distance( def compute_cfg_edit_distance(dec_cfg, src_cfg, function, binary_path: Path, decompiler: str): + from pyjoern.mapping import correct_decompiler_mappings, read_line_maps binary_path = Path(binary_path) bin_dir = binary_path.parent bin_name = binary_path.with_suffix("").name diff --git a/sailreval/utils/compile.py b/sailreval/utils/compile.py index e4b98f6..b298c70 100644 --- a/sailreval/utils/compile.py +++ b/sailreval/utils/compile.py @@ -11,7 +11,6 @@ import toml from tqdm import tqdm -from pyjoern import JoernClient, JoernServer from .sailr_target import SAILRTarget from ..utils import timeout @@ -148,6 +147,8 @@ def _collect_function_lines( cachable_results = {} basename = i_file.with_suffix("").with_suffix("").name + from pyjoern import JoernClient, JoernServer + def _eval_with_server(joern_port, src_file, i_file): with JoernServer(port=joern_port): src_client = JoernClient(src_file, port=joern_port) diff --git a/setup.cfg b/setup.cfg index 5739fa5..642de2c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ url = https://github.com/mahaloz/sailr-eval classifiers = License :: OSI Approved :: BSD License Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.8 license = BSD 2 Clause license_files = LICENSE description = The SAILR Evaluation Pipeline @@ -15,21 +15,19 @@ long_description_content_type = text/markdown [options] install_requires = networkx - graphviz - pygraphviz toml - psutil tqdm - docker - matplotlib - numpy - pandas - scipy - seaborn pyelftools cfgutils>=1.8.1 pyjoern==1.2.18.6 - -python_requires = >= 3.6 +python_requires = >= 3.8 packages = find: include_package_data = True + +[options.extras_require] +viz = + matplotlib + numpy + pandas + seaborn + From 2224225d05680ea155bb86b6b27178effaefe9ac Mon Sep 17 00:00:00 2001 From: Zion Leonahenahe Basque Date: Tue, 19 Mar 2024 22:48:04 -0700 Subject: [PATCH 2/6] Use new API for AIL graph in angr (#12) --- sailreval/__init__.py | 2 +- sailreval/decompilers/angr_dec.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sailreval/__init__.py b/sailreval/__init__.py index 2634dd8..3005bf6 100755 --- a/sailreval/__init__.py +++ b/sailreval/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.5.0" +__version__ = "1.5.1" # create loggers import logging diff --git a/sailreval/decompilers/angr_dec.py b/sailreval/decompilers/angr_dec.py index 9cf1044..6a8e32a 100755 --- a/sailreval/decompilers/angr_dec.py +++ b/sailreval/decompilers/angr_dec.py @@ -280,10 +280,10 @@ def generate_linemaps(dec, codegen, base_addr=0x400000): return base_addr = dec.project.loader.main_object.image_base_delta - if hasattr(dec, "unmodified_clinic_graph"): - nodes = dec.unmodified_clinic_graph.nodes + if hasattr(dec, "unoptimized_ail_graph"): + nodes = dec.unoptimized_ail_graph.nodes else: - l.warning(f"You are likely using an older version of angr that has no unmodified_clinic_graph." + l.critical(f"You are likely using an older version of angr that has no unoptimized_ail_graph." f" Using clinic_graph instead, results will be less accurate...") nodes = dec.clinic.cc_graph.nodes From 0da5b672114ef753c3939d081084e3f23ecd278b Mon Sep 17 00:00:00 2001 From: Zion Leonahenahe Basque Date: Wed, 27 Mar 2024 15:27:20 -0700 Subject: [PATCH 3/6] Fix/bump cfgutils (#13) * Bump cfgutils API use * bump vers --- sailreval/__init__.py | 2 +- sailreval/metrics/ged_to_source.py | 2 +- setup.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sailreval/__init__.py b/sailreval/__init__.py index 3005bf6..b378e83 100755 --- a/sailreval/__init__.py +++ b/sailreval/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.5.1" +__version__ = "1.5.2" # create loggers import logging diff --git a/sailreval/metrics/ged_to_source.py b/sailreval/metrics/ged_to_source.py index ff12393..39590c3 100644 --- a/sailreval/metrics/ged_to_source.py +++ b/sailreval/metrics/ged_to_source.py @@ -27,7 +27,7 @@ def ged_exact_score( if source_cfg is None or dec_cfg is None: return None - return ged_exact(dec_cfg, source_cfg) + return ged_exact(dec_cfg, source_cfg, check_max=True) def ged_upperbound_score( diff --git a/setup.cfg b/setup.cfg index 642de2c..42bc2d6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,7 +18,7 @@ install_requires = toml tqdm pyelftools - cfgutils>=1.8.1 + cfgutils>=1.10.2 pyjoern==1.2.18.6 python_requires = >= 3.8 packages = find: From d9f99b3521b60b9a1fd862d106b77e5664a9d175 Mon Sep 17 00:00:00 2001 From: mahaloz Date: Tue, 21 May 2024 15:43:07 -0700 Subject: [PATCH 4/6] spelling fixes (ty Jordan) --- README.md | 4 ++-- scripts/docker-angr-sailr-dec.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5e886a5..37a07ca 100755 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ our [CI runner](./.github/workflows/python-app.yml). pip3 insatll -e . ``` -Note: you will need to install the system dependencies for the Python project yourself, listed [here]([CI runner](./.github/workflows/python-app.yml). +Note: you will need to install the system dependencies for the Python project yourself, listed [here](./.github/workflows/python-app.yml). The package is also available on PyPi, so remote installation works as well. ### Install Verification @@ -370,5 +370,5 @@ Follow the following the steps to compile a windows target: 6. Rename the `*.obj` to `*.o` 7. If step `5` failed, then just remove the preprocessor option after running once -To run the full pipeline for Widnows targets, you must have [llvm-pdbutil](https://github.com/shaharv/llvm-pdbutil-builds) +To run the full pipeline for Windows targets, you must have [llvm-pdbutil](https://github.com/shaharv/llvm-pdbutil-builds) installed on the system. diff --git a/scripts/docker-angr-sailr-dec.sh b/scripts/docker-angr-sailr-dec.sh index 3dacf78..ec4eb6b 100755 --- a/scripts/docker-angr-sailr-dec.sh +++ b/scripts/docker-angr-sailr-dec.sh @@ -14,6 +14,6 @@ docker run \ -it \ --rm \ -v $PWD:/host \ - angr-sailr-dec \ + mahaloz/angr-sailr-dec \ $BINARY_PATH \ "${@:2}" \ No newline at end of file From 5a90bfc7d217d3da2d3618871f97ddb815ac793d Mon Sep 17 00:00:00 2001 From: Zion Leonahenahe Basque Date: Sat, 31 Aug 2024 13:37:28 -0700 Subject: [PATCH 5/6] Use the latest angr and refactor README (#16) * Use the latest angr and refactor README * bump to latest sailr imports * Remove dead files * bump dockerfile * fix function call counter * Add example run to the README --- Dockerfile | 10 - README.md | 147 +- misc/angr_sailr.png | Bin 0 -> 66962 bytes misc/reproducing_sailr_paper/README.md | 133 + .../angr_sailr_dec/Dockerfile | 0 .../docker-angr-sailr-dec.sh | 0 .../all_packages_o2_table3.sh | 0 .../paper_evaluations/coreutils_o2_table4.sh | 0 sailreval/decompilers/angr_dec.py | 124 +- tests/binaries/coreutils/chcon.o | Bin 67320 -> 0 bytes tests/binaries/coreutils/cksum-digest.o | Bin 98280 -> 0 bytes tests/binaries/coreutils/dd.o | Bin 58216 -> 0 bytes tests/binaries/coreutils/fmt.o | Bin 68640 -> 0 bytes tests/binaries/coreutils/nohup.o | Bin 38832 -> 0 bytes tests/binaries/coreutils/sort.o | Bin 342016 -> 0 bytes tests/binaries/coreutils/stty.o | Bin 61552 -> 0 bytes tests/binaries/coreutils/tail.o | Bin 169000 -> 0 bytes tests/binaries/coreutils/test.o | Bin 68024 -> 0 bytes tests/binaries/coreutils/true.o | Bin 21144 -> 0 bytes tests/binaries/coreutils/tsort.o | Bin 43288 -> 0 bytes tests/binaries/test1 | Bin 16768 -> 0 bytes tests/binaries/test2 | Bin 16768 -> 0 bytes tests/binaries/true_localcharset | Bin 30904 -> 0 bytes tests/source/coreutils/b2sum-b2sum.c | 4626 -- tests/source/coreutils/b2sum-blake2b-ref.c | 3178 -- tests/source/coreutils/b2sum-digest.c | 7928 --- tests/source/coreutils/base32-basenc.c | 7900 --- tests/source/coreutils/base64-basenc.c | 7900 --- tests/source/coreutils/basename.c | 6943 --- tests/source/coreutils/basenc-basenc.c | 8648 --- tests/source/coreutils/cat.c | 7507 --- tests/source/coreutils/chcon.c | 7987 --- tests/source/coreutils/chgrp.c | 7354 --- tests/source/coreutils/chmod.c | 7491 --- tests/source/coreutils/chown-core.c | 7489 --- tests/source/coreutils/chown.c | 7313 --- tests/source/coreutils/chroot.c | 7391 --- tests/source/coreutils/cksum-b2sum.c | 4626 -- tests/source/coreutils/cksum-blake2b-ref.c | 3178 -- tests/source/coreutils/cksum-cksum.c | 6948 --- tests/source/coreutils/cksum-crctab.c | 471 - tests/source/coreutils/cksum-digest.c | 8302 --- tests/source/coreutils/cksum-sum.c | 6953 --- tests/source/coreutils/comm.c | 7364 --- tests/source/coreutils/copy.c | 10183 ---- tests/source/coreutils/cp-hash.c | 6896 --- tests/source/coreutils/cp.c | 8797 --- tests/source/coreutils/csplit.c | 8517 --- tests/source/coreutils/cut.c | 7394 --- tests/source/coreutils/date.c | 8116 --- tests/source/coreutils/dd.c | 9357 --- tests/source/coreutils/df.c | 10582 ---- tests/source/coreutils/dircolors.c | 7618 --- tests/source/coreutils/dirname.c | 6885 --- tests/source/coreutils/du.c | 8137 --- tests/source/coreutils/echo.c | 7028 --- tests/source/coreutils/env.c | 8454 --- tests/source/coreutils/expand-common.c | 7218 --- tests/source/coreutils/expand.c | 7040 --- tests/source/coreutils/expr.c | 10765 ---- tests/source/coreutils/factor.c | 16851 ------ tests/source/coreutils/false.c | 6788 --- tests/source/coreutils/find-mount-point.c | 6872 --- tests/source/coreutils/fmt.c | 8106 --- tests/source/coreutils/fold.c | 7082 --- tests/source/coreutils/force-link.c | 6850 --- tests/source/coreutils/getlimits.c | 7401 --- tests/source/coreutils/group-list.c | 6942 --- tests/source/coreutils/groups.c | 7030 --- tests/source/coreutils/head.c | 7758 --- tests/source/coreutils/hostid.c | 6829 --- tests/source/coreutils/id.c | 7821 --- tests/source/coreutils/install.c | 8887 --- tests/source/coreutils/join.c | 8141 --- tests/source/coreutils/kill.c | 7084 --- tests/source/coreutils/lbracket.c | 7556 --- .../libcksum_pclmul_a-cksum_pclmul.c | 46941 ---------------- .../source/coreutils/libstdbuf_so-libstdbuf.c | 6809 --- tests/source/coreutils/libwc_avx2_a-wc_avx2.c | 46903 --------------- tests/source/coreutils/link.c | 6865 --- tests/source/coreutils/ln.c | 7622 --- tests/source/coreutils/logname.c | 6839 --- tests/source/coreutils/ls-dir.c | 2 - tests/source/coreutils/ls-ls.c | 2 - tests/source/coreutils/ls-vdir.c | 2 - tests/source/coreutils/ls.c | 15377 ----- tests/source/coreutils/make-prime-list.c | 2776 - tests/source/coreutils/md5sum-digest.c | 7842 --- tests/source/coreutils/mkdir.c | 7594 --- tests/source/coreutils/mkfifo.c | 7452 --- tests/source/coreutils/mknod.c | 7679 --- tests/source/coreutils/mktemp.c | 7219 --- tests/source/coreutils/mv.c | 8024 --- tests/source/coreutils/nice.c | 7218 --- tests/source/coreutils/nl.c | 7601 --- tests/source/coreutils/nohup.c | 6969 --- tests/source/coreutils/nproc.c | 6909 --- tests/source/coreutils/numfmt.c | 9735 ---- tests/source/coreutils/od.c | 9063 --- tests/source/coreutils/operand2sig.c | 6816 --- tests/source/coreutils/paste.c | 7269 --- tests/source/coreutils/pathchk.c | 8322 --- tests/source/coreutils/pinky.c | 7479 --- tests/source/coreutils/pr.c | 8946 --- tests/source/coreutils/printenv.c | 6878 --- tests/source/coreutils/printf.c | 8765 --- tests/source/coreutils/prog-fprintf.c | 6745 --- tests/source/coreutils/ptx.c | 8541 --- tests/source/coreutils/pwd.c | 7218 --- tests/source/coreutils/readlink.c | 6954 --- tests/source/coreutils/realpath.c | 7117 --- tests/source/coreutils/relpath.c | 6834 --- tests/source/coreutils/remove.c | 7372 --- tests/source/coreutils/rm.c | 7309 --- tests/source/coreutils/rmdir.c | 7021 --- tests/source/coreutils/runcon.c | 7673 --- tests/source/coreutils/selinux.c | 7497 --- tests/source/coreutils/seq.c | 7501 --- tests/source/coreutils/set-fields.c | 7041 --- tests/source/coreutils/sha1sum-digest.c | 7836 --- tests/source/coreutils/sha224sum-digest.c | 7843 --- tests/source/coreutils/sha256sum-digest.c | 7843 --- tests/source/coreutils/sha384sum-digest.c | 7844 --- tests/source/coreutils/sha512sum-digest.c | 7844 --- tests/source/coreutils/shred.c | 8053 --- tests/source/coreutils/shuf.c | 7592 --- tests/source/coreutils/sleep.c | 6907 --- tests/source/coreutils/sort.c | 12704 ----- tests/source/coreutils/split.c | 9231 --- tests/source/coreutils/stat.c | 9037 --- tests/source/coreutils/stdbuf.c | 7862 --- tests/source/coreutils/stty.c | 9113 --- tests/source/coreutils/sum-digest.c | 7680 --- tests/source/coreutils/sum-sum.c | 6953 --- tests/source/coreutils/sync.c | 7016 --- tests/source/coreutils/tac.c | 7470 --- tests/source/coreutils/tail.c | 9717 ---- tests/source/coreutils/tee.c | 7097 --- tests/source/coreutils/test.c | 7557 --- tests/source/coreutils/timeout.c | 7492 --- tests/source/coreutils/touch.c | 7312 --- tests/source/coreutils/tr.c | 8638 --- tests/source/coreutils/true.c | 6788 --- tests/source/coreutils/truncate.c | 7229 --- tests/source/coreutils/tsort.c | 7304 --- tests/source/coreutils/tty.c | 6879 --- tests/source/coreutils/uname-uname.c | 4 - tests/source/coreutils/uname.c | 7049 --- tests/source/coreutils/unexpand.c | 7127 --- tests/source/coreutils/uniq.c | 7546 --- tests/source/coreutils/unlink.c | 6853 --- tests/source/coreutils/uptime.c | 7123 --- tests/source/coreutils/users.c | 7029 --- tests/source/coreutils/version.c | 1 - tests/source/coreutils/wc.c | 9330 --- tests/source/coreutils/who.c | 8262 --- tests/source/coreutils/whoami.c | 6901 --- tests/source/coreutils/yes.c | 6855 --- tests/source/motivating_example.c | 68 - tests/source/test1.c | 22 - tests/source/test2.c | 23 - tests/source/true_localcharset.c | 609 - tests/test_deoptimization.py | 231 - 163 files changed, 208 insertions(+), 1071303 deletions(-) create mode 100644 misc/angr_sailr.png create mode 100644 misc/reproducing_sailr_paper/README.md rename misc/{ => reproducing_sailr_paper}/angr_sailr_dec/Dockerfile (100%) rename {scripts => misc/reproducing_sailr_paper}/docker-angr-sailr-dec.sh (100%) rename {scripts => misc/reproducing_sailr_paper}/paper_evaluations/all_packages_o2_table3.sh (100%) rename {scripts => misc/reproducing_sailr_paper}/paper_evaluations/coreutils_o2_table4.sh (100%) delete mode 100644 tests/binaries/coreutils/chcon.o delete mode 100644 tests/binaries/coreutils/cksum-digest.o delete mode 100644 tests/binaries/coreutils/dd.o delete mode 100755 tests/binaries/coreutils/fmt.o delete mode 100644 tests/binaries/coreutils/nohup.o delete mode 100644 tests/binaries/coreutils/sort.o delete mode 100644 tests/binaries/coreutils/stty.o delete mode 100644 tests/binaries/coreutils/tail.o delete mode 100644 tests/binaries/coreutils/test.o delete mode 100755 tests/binaries/coreutils/true.o delete mode 100644 tests/binaries/coreutils/tsort.o delete mode 100755 tests/binaries/test1 delete mode 100755 tests/binaries/test2 delete mode 100755 tests/binaries/true_localcharset delete mode 100644 tests/source/coreutils/b2sum-b2sum.c delete mode 100644 tests/source/coreutils/b2sum-blake2b-ref.c delete mode 100644 tests/source/coreutils/b2sum-digest.c delete mode 100644 tests/source/coreutils/base32-basenc.c delete mode 100644 tests/source/coreutils/base64-basenc.c delete mode 100644 tests/source/coreutils/basename.c delete mode 100644 tests/source/coreutils/basenc-basenc.c delete mode 100644 tests/source/coreutils/cat.c delete mode 100644 tests/source/coreutils/chcon.c delete mode 100644 tests/source/coreutils/chgrp.c delete mode 100644 tests/source/coreutils/chmod.c delete mode 100644 tests/source/coreutils/chown-core.c delete mode 100644 tests/source/coreutils/chown.c delete mode 100644 tests/source/coreutils/chroot.c delete mode 100644 tests/source/coreutils/cksum-b2sum.c delete mode 100644 tests/source/coreutils/cksum-blake2b-ref.c delete mode 100644 tests/source/coreutils/cksum-cksum.c delete mode 100644 tests/source/coreutils/cksum-crctab.c delete mode 100644 tests/source/coreutils/cksum-digest.c delete mode 100644 tests/source/coreutils/cksum-sum.c delete mode 100644 tests/source/coreutils/comm.c delete mode 100644 tests/source/coreutils/copy.c delete mode 100644 tests/source/coreutils/cp-hash.c delete mode 100644 tests/source/coreutils/cp.c delete mode 100644 tests/source/coreutils/csplit.c delete mode 100644 tests/source/coreutils/cut.c delete mode 100644 tests/source/coreutils/date.c delete mode 100644 tests/source/coreutils/dd.c delete mode 100644 tests/source/coreutils/df.c delete mode 100644 tests/source/coreutils/dircolors.c delete mode 100644 tests/source/coreutils/dirname.c delete mode 100644 tests/source/coreutils/du.c delete mode 100644 tests/source/coreutils/echo.c delete mode 100644 tests/source/coreutils/env.c delete mode 100644 tests/source/coreutils/expand-common.c delete mode 100644 tests/source/coreutils/expand.c delete mode 100644 tests/source/coreutils/expr.c delete mode 100644 tests/source/coreutils/factor.c delete mode 100644 tests/source/coreutils/false.c delete mode 100644 tests/source/coreutils/find-mount-point.c delete mode 100644 tests/source/coreutils/fmt.c delete mode 100644 tests/source/coreutils/fold.c delete mode 100644 tests/source/coreutils/force-link.c delete mode 100644 tests/source/coreutils/getlimits.c delete mode 100644 tests/source/coreutils/group-list.c delete mode 100644 tests/source/coreutils/groups.c delete mode 100644 tests/source/coreutils/head.c delete mode 100644 tests/source/coreutils/hostid.c delete mode 100644 tests/source/coreutils/id.c delete mode 100644 tests/source/coreutils/install.c delete mode 100644 tests/source/coreutils/join.c delete mode 100644 tests/source/coreutils/kill.c delete mode 100644 tests/source/coreutils/lbracket.c delete mode 100644 tests/source/coreutils/libcksum_pclmul_a-cksum_pclmul.c delete mode 100644 tests/source/coreutils/libstdbuf_so-libstdbuf.c delete mode 100644 tests/source/coreutils/libwc_avx2_a-wc_avx2.c delete mode 100644 tests/source/coreutils/link.c delete mode 100644 tests/source/coreutils/ln.c delete mode 100644 tests/source/coreutils/logname.c delete mode 100644 tests/source/coreutils/ls-dir.c delete mode 100644 tests/source/coreutils/ls-ls.c delete mode 100644 tests/source/coreutils/ls-vdir.c delete mode 100644 tests/source/coreutils/ls.c delete mode 100644 tests/source/coreutils/make-prime-list.c delete mode 100644 tests/source/coreutils/md5sum-digest.c delete mode 100644 tests/source/coreutils/mkdir.c delete mode 100644 tests/source/coreutils/mkfifo.c delete mode 100644 tests/source/coreutils/mknod.c delete mode 100644 tests/source/coreutils/mktemp.c delete mode 100644 tests/source/coreutils/mv.c delete mode 100644 tests/source/coreutils/nice.c delete mode 100644 tests/source/coreutils/nl.c delete mode 100644 tests/source/coreutils/nohup.c delete mode 100644 tests/source/coreutils/nproc.c delete mode 100644 tests/source/coreutils/numfmt.c delete mode 100644 tests/source/coreutils/od.c delete mode 100644 tests/source/coreutils/operand2sig.c delete mode 100644 tests/source/coreutils/paste.c delete mode 100644 tests/source/coreutils/pathchk.c delete mode 100644 tests/source/coreutils/pinky.c delete mode 100644 tests/source/coreutils/pr.c delete mode 100644 tests/source/coreutils/printenv.c delete mode 100644 tests/source/coreutils/printf.c delete mode 100644 tests/source/coreutils/prog-fprintf.c delete mode 100644 tests/source/coreutils/ptx.c delete mode 100644 tests/source/coreutils/pwd.c delete mode 100644 tests/source/coreutils/readlink.c delete mode 100644 tests/source/coreutils/realpath.c delete mode 100644 tests/source/coreutils/relpath.c delete mode 100644 tests/source/coreutils/remove.c delete mode 100644 tests/source/coreutils/rm.c delete mode 100644 tests/source/coreutils/rmdir.c delete mode 100644 tests/source/coreutils/runcon.c delete mode 100644 tests/source/coreutils/selinux.c delete mode 100644 tests/source/coreutils/seq.c delete mode 100644 tests/source/coreutils/set-fields.c delete mode 100644 tests/source/coreutils/sha1sum-digest.c delete mode 100644 tests/source/coreutils/sha224sum-digest.c delete mode 100644 tests/source/coreutils/sha256sum-digest.c delete mode 100644 tests/source/coreutils/sha384sum-digest.c delete mode 100644 tests/source/coreutils/sha512sum-digest.c delete mode 100644 tests/source/coreutils/shred.c delete mode 100644 tests/source/coreutils/shuf.c delete mode 100644 tests/source/coreutils/sleep.c delete mode 100644 tests/source/coreutils/sort.c delete mode 100644 tests/source/coreutils/split.c delete mode 100644 tests/source/coreutils/stat.c delete mode 100644 tests/source/coreutils/stdbuf.c delete mode 100644 tests/source/coreutils/stty.c delete mode 100644 tests/source/coreutils/sum-digest.c delete mode 100644 tests/source/coreutils/sum-sum.c delete mode 100644 tests/source/coreutils/sync.c delete mode 100644 tests/source/coreutils/tac.c delete mode 100644 tests/source/coreutils/tail.c delete mode 100644 tests/source/coreutils/tee.c delete mode 100644 tests/source/coreutils/test.c delete mode 100644 tests/source/coreutils/timeout.c delete mode 100644 tests/source/coreutils/touch.c delete mode 100644 tests/source/coreutils/tr.c delete mode 100644 tests/source/coreutils/true.c delete mode 100644 tests/source/coreutils/truncate.c delete mode 100644 tests/source/coreutils/tsort.c delete mode 100644 tests/source/coreutils/tty.c delete mode 100644 tests/source/coreutils/uname-uname.c delete mode 100644 tests/source/coreutils/uname.c delete mode 100644 tests/source/coreutils/unexpand.c delete mode 100644 tests/source/coreutils/uniq.c delete mode 100644 tests/source/coreutils/unlink.c delete mode 100644 tests/source/coreutils/uptime.c delete mode 100644 tests/source/coreutils/users.c delete mode 100644 tests/source/coreutils/version.c delete mode 100644 tests/source/coreutils/wc.c delete mode 100644 tests/source/coreutils/who.c delete mode 100644 tests/source/coreutils/whoami.c delete mode 100644 tests/source/coreutils/yes.c delete mode 100644 tests/source/motivating_example.c delete mode 100755 tests/source/test1.c delete mode 100755 tests/source/test2.c delete mode 100755 tests/source/true_localcharset.c delete mode 100755 tests/test_deoptimization.py diff --git a/Dockerfile b/Dockerfile index 9f7d5a0..bcc4cec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,16 +47,6 @@ RUN git clone https://github.com/angr/angr-dev.git && ( \ cd ./angr-dev && \ printf "I know this is a bad idea.\n" | ./setup.sh -i) - -# XXX: checkout angr to version at the submission of SAILR -# if you want the latest version of angr-decompiler, with future fixes, remove this block -RUN pip3 install sh && (cd ./angr-dev && \ - ./admin/checkout_at.py a8bab649cfc18912d5bb3ce70ef57a4ae4039f53 && \ - cd ./angr && \ - git remote add mahaloz https://github.com/mahaloz/angr-sailr.git && \ - git fetch mahaloz && \ - git checkout mahaloz/sailr) - # =========================================================== # Ghidra 10.1 # =========================================================== diff --git a/README.md b/README.md index 37a07ca..c849d53 100755 --- a/README.md +++ b/README.md @@ -1,10 +1,16 @@ # SAILR Evaluation Pipeline + +

+ angr-sailr Logo +

+ The SAILR evaluation pipeline, `sailreval`, is a tool for measuring various aspects of decompilation quality. This evaluation pipeline was originally developed for the USENIX 2024 paper ["Ahoy SAILR! There is No Need to DREAM of C: A Compiler-Aware Structuring Algorithm for Binary Decompilation"](https://www.zionbasque.com/files/publications/sailr_usenix24.pdf). It supports 26 different C packages from Debian, for compiling, decompiling, and measuring. Currently, angr, Hex-Rays (IDA Pro), and Ghidra are supported as decompilers. -If you are only looking to use the SAILR version of angr, then jump to the [using SAILR on angr](#using-sailr-on-angr-decompiler) section. +If you are only looking to use the SAILR version of angr, simply use angr! The latest version of angr now uses SAILR! +If you are looking to reproduce the exact results of the SAILR paper, then jump to [this README](./misc/reproducing_sailr_paper/README.md) for a submission version. ## Table of Contents - [Overview](#overview) @@ -14,12 +20,10 @@ If you are only looking to use the SAILR version of angr, then jump to the [usin - [Decompilation](#decompiling) - [Measuring](#measuring) - [Aggregation](#aggregating) -- [SAILR Paper Artifacts](#sailr-paper-artifacts) - - [Using SAILR on angr decompiler](#using-sailr-on-angr-decompiler) - - [SAILR evaluation results files](#sailr-evaluation-results-files) - - [Reproducing SAILR paper results](#reproducing-sailr-paper-results) +- [Example Run](#example-run) - [Miscellaneous](#miscellaneous) - [Compiling Windows Targets](#compiling-windows-targets) +- [Citation](#citation) ## Overview: @@ -231,132 +235,16 @@ You can normalize across both projects for binaries and functions that only exis ./eval.py --merge-results ./results/O2/coreutils*/sailr_measured --use-dec source angr_sailr --use-metric gotos cfged ``` -## SAILR Paper Artifacts -The [SAILR paper](https://www.zionbasque.com/files/publications/sailr_usenix24.pdf) introduced four artifacts: -1. The [angr decompiler](https://github.com/angr/angr/tree/master/angr/analyses/decompiler), found in the [angr](https://github.com/angr/angr) repo. -2. The [SAILR](https://github.com/mahaloz/angr-sailr/tree/sailr/angr/analyses/decompiler/optimization_passes) algorithm, -built on the angr decompiler as optimization passes. -3. The SAILR evaluation pipeline, found in the `sailreval` Python package -4. The results of `sailreval` for the paper (tomls and decompilation outputs) - -Below you will find instructions for using each of these artifacts. - -### Using SAILR on angr decompiler -Currently, SAILR is being slowly [integrated into the angr master branch](https://github.com/angr/angr/issues/4229). -Until then, you can use the [angr-sailr](https://github.com/mahaloz/angr-sailr/tree/be3855762a84983137696aa14efe2431a86a7e97) -fork of angr inside our provided stripped down Dockerfile found in [misc/angr_sailr_dec/Dockerfile](./misc/angr_sailr_dec/Dockerfile). -You can also use the pre-built docker image found on [Dockerhub](https://hub.docker.com/r/mahaloz/angr-sailr-dec) (~3.5gb). -Note, this fork will not receive updates and is the exact version used in the paper. -The commit is [be3855762a84983137696aa14efe2431a86a7e97](https://github.com/mahaloz/angr-sailr/tree/be3855762a84983137696aa14efe2431a86a7e97). - -To build the decompiler docker image, run, from the root of the repo: -```bash -docker build -t angr-sailr-dec -f misc/angr_sailr_dec/Dockerfile . -``` - -You could now run the image with `docker run --rm -it angr-sailr-dec`, but we recommend using the wrapper script. -You can use the wrapper script that will run this image for you: -```bash -./scripts/docker-angr-sailr-dec.sh --help -``` - -**NOTE**: this mounts the current directory into the container so the decompiler can access the binary. - - -Verify your version works by running it on the `motivating_example` binary in the root of the repo: -```bash -./scripts/docker-angr-sailr-dec.sh ./tests/binaries/motivating_example schedule_job --structuring-algo sailr -``` - -If working correctly, you should see the following output, which matches the papers example: -```c -long long schedule_job(unsigned long a0, unsigned long long a1, unsigned long a2) { - if (a0 && a1) { - complete_job(); - if (EARLY_EXIT == a2) - goto LABEL_40126b; - next_job(); - } - refresh_jobs(); - if (a1 || a1) - fast_unlock(); -LABEL_40126b: - complete_job(); - log_workers(); - return job_status(a1); -} -``` - -### SAILR evaluation results files -In the SAILR paper, we run an evaluation on all 26 packages in the [targets](./targets) directory. -We generated data for optimization levels `O0`, `O1`, `O2`, and `O3`. -We also recorded the decompilation on all these targets with the following decompilers: -`SAILR`, `IDA Pro 8.0`, `Ghidra 10.1`, `Phoenix`, `DREAM`, and `rev.ng`. In each `sailr_decompiled` folder, -you will find files likes so `_.c`. For example, `sailr_decompiled/ida_mv.c` is the decompilation -of `mv` from coreutils with IDA Pro 8.0. angr based decompilation starts with `angr_` and then the structuring algorithm. - -All the files, which are about 11gbs in total, can be downloaded from [this Dropbox link](https://www.dropbox.com/scl/fi/ez5ra4yzxrynio7opxquo/results.tar.gz?rlkey=vi5ntdw48a9ohfnd0x8p32ael&dl=0). - -After downloading, you can extract the files with: -```bash -tar xf results.tar.gz --use-compress-program=pigz -``` - -The will looks like the following (but with more files): -```tree -results/ -├── O0 -├── O1 -├── O2 -│ └── coreutils -│ ├── sailr_compiled -│ ├── sailr_decompiled -│ └── sailr_measured -└── O3 -``` - -To further understand what is contained in the `sailr_*` folders, see the [usage](#usage) section above. -You can now use the `sailreval` package to aggregate the results like so to get the results from the paper: -```bash -./eval.py --summarize-targets ./eval.py --measure bash libselinux shadow libedit base-passwd openssh-portable \ - dpkg dash grep diffutils findutils gnutls iproute2 gzip sysvinit bzip2 libacl libexpat libbsd tar rsyslog \ - cronie zlib e2fsprogs coreutils \ - --use-dec source ida ghidra angr_sailr angr_phoenix angr_dream angr_comb \ - --use-metric gotos cfged bools func_calls \ - --opt-levels O0 O1 O2 O3 \ - --show-stats -``` - -### Reproducing SAILR paper results -We ran the entire pipeline of SAILR on an Ubuntu 22.04 machine that had 40 logical cores and 64 GB of RAM. -With these specs, it took about 8 hours to run the entire pipline for all 26 packages on the O2 optimization level. -If you intend to reproduce the results as they were in the paper, checkout this repo to commit [8442959e99c9d386c2cdfaf11346bf0f56e959eb](https://github.com/mahaloz/sailr-eval/commit/8442959e99c9d386c2cdfaf11346bf0f56e959eb), -which was the last version with minor fixes to the pipeline, but not edits to CFGED. -If you plan on evaluating modernly, use the latest commit, since it will have stability, speed, and other fixes to components of SAILR. - -Due to slowness in processing of source with Joern, we recommend running the Joern stage **LOCALLY** and not in the -container. Here is an example run of only coreutils: -```bash +## Example Run +Here is an example run of the pipeline: +```sh ./docker-eval.sh --compile coreutils --cores 20 && \ ./eval.py --decompile coreutils --use-dec source --cores 20 && \ ./docker-eval.sh --decompile coreutils --use-dec ghidra angr_sailr angr_phoenix angr_dream angr_comb --cores 20 && \ ./eval.py --measure coreutils --use-metric gotos cfged bools func_calls --use-dec source ghidra angr_sailr angr_phoenix angr_dream angr_comb --cores 20 && \ ./eval.py --summarize-targets coreutils --use-dec source ghidra angr_sailr angr_phoenix angr_dream angr_comb --use-metric gotos cfged bools func_calls --show-stats ``` -Take note of when `eval.py` is run instead of the docker version. - -To reproduce the results from the paper, you run the following evaluation scripts that will run the entire pipeline for you: -```bash -./scripts/evaluation/all_packages_o2_table3.sh -./scripts/evaluation/coreutils_o2_table4.sh -``` - -Run them one at a time to observe their output. -Note, you will likely **not** get the exact numbers shown in the paper, but the final conclusions on the numbers (i.e. the relative distance of each score) should be the same. -This is due to a fundamental limitation in CFGED, which relies on GED to compute the edit distance between two CFGs. -Since we never know if GED will conclude, we must use a timeout, which can be affected by the machine you run on. -However, for most cases the timeout should not be triggered. ## Miscellaneous ### Compiling Windows Targets @@ -372,3 +260,14 @@ Follow the following the steps to compile a windows target: To run the full pipeline for Windows targets, you must have [llvm-pdbutil](https://github.com/shaharv/llvm-pdbutil-builds) installed on the system. + +## Citation +If you use this tool in your research, please cite out paper: +```bib +@inproceedings{basque2024ahoy, + title={Ahoy sailr! there is no need to dream of c: A compiler-aware structuring algorithm for binary decompilation}, + author={Basque, Zion Leonahenahe and Bajaj, Ati Priya and Gibbs, Wil and O’Kain, Jude and Miao, Derron and Bao, Tiffany and Doup{\'e}, Adam and Shoshitaishvili, Yan and Wang, Ruoyu}, + booktitle={Proceedings of the USENIX Security Symposium}, + year={2024} +} +``` \ No newline at end of file diff --git a/misc/angr_sailr.png b/misc/angr_sailr.png new file mode 100644 index 0000000000000000000000000000000000000000..79be61395b8d7bdd9e1b7d05949b5b13fc607d5c GIT binary patch literal 66962 zcmeFZ^;cWZ8#Rg)FV^BtTilAflp+O+C%6@N_n-*KsYo)KoCksKp=KZZ&4L_`9jG|OU_(T5rO%o zjgIgNkqiOlrG@x%h#`{ye{C5=Mg-*lt|K8JAie#6+W+qQzn?EJr+>Zw&JKg`TM!T= z5agsj0Xz|pR?&P2dY92oQ&w#bXn*0ok%ZCY2B1&nGZ}q;%4W>{Zj3AqIKq~~_xu!U z{7I@REEioZzLdb~9o;3-7s)S`n(iKJ7S5z^@d!}f?>62g4_>dr)&@m{BRId}1t7el zK|n;8KtTFm^MCX3KO^|xV)!2t{0|ZTM+g7E(qiB_-o~!en{?#=@OX?maOT%J10y3? z0sm1-_Cf@l#`m6mjKXNvSk~C&iuzZtvx$kcM@97nCZQG*T$SfF##g{ zoUNkC&AH~SUY4@!8;)9EY3U`=rB8gU3_)hvn!%w52S;efqKWCT#=tkjcgQ6r8n~j9 zI??GPTHj#StlYJm#Mqr1D^OAY9mj(I6oR7=61s$vEXMLb8)-s#C3W`KYwO|f9efo7 z;~J%cM)!d(DcJkS!rkLy&)nZ8hj6iu$^Xakbl-d#Q)zHkc~_G_N4)X|@{jMf;|o*` zt0hTaEpWD2GD*09lrL#8R3=5?hiSRGH#8+3n^4oyS$Uj#lNzF zuCJlop%ODTpJk^h&#cbNhZ@SaMH3WpktzkGW3;g z$+0J?TY2+21WtEKrqg?UO&RKZz{fGsIRmt;w9dBn)TXf)#CT@@%FnM-Jwj9sM2aI! z)$KGLd~*@aJ7(SNS~A-+E%5EnTsh+>!8B#e{_ih_<#_!HFCbl1fdb>@{Yo@r9#OIS zrz^cr@ny#p!e$(3uEv&=q3w6yX)}2N>36XZ#r~j-^Q3W9bwFrM-F#x z-{%%c!Bhbl8MD0f2^y!>N2eo8ZFj3OY$p@h9^|fRV8RZWo)L=p)c$b0c5hxA`VY2C zJK~XM8Gj0lH2>3l0?3H3XeA9Rq#D47$R z&DfmpeTnBlgVe+IDF0PhDSKH|4w6pvbl#8BtwPn6icq6P!S72ylQ2l^`- zl|+m4=@tw+dGU61?2*|ut)=vfUE;N-_f~6D3JZz3wrzTjnO_hoLkwq2{IO47)e0o5YgoMh9HO~vG{0;N(?3) zn!a&u++Wo{I$`KmJLZ&U+9he294+Ydltu(+)wx>T=@E`0y*$`P_ge`B=S@-d75o?D zio`s!?P%Nz%mr5x&4(n_4-{qX`FdJ3L+?#wEt5 zXu}awN63q@{VWi`V{fzzv7XLo?7gUmssvo&0PkrDM9MPe&Zg46WE?RjMJ4I=4;? zJX)%X*2GhpI2_Nvb>*q3V-Pj_2FU1}ptwh^Dy}1J+4`eyUCb}INJZ!KhhVM6z!RoI zb-Nn^a@PC977@R*J4hAE1H&QaLbSMRS!NlzO{Gw@jA%ef&XU%102_8t5OnlP0+Pn`o6?hS!*5tZ_1 z6inv4N05XBF?%swuOkgMZ~9w2<~Rls;aL@~4WF%PQh%CgBJJ(8+WwH4yE}c4aPKtf zH^{1Zfu3VnXxMF*J(;QhhfKBa3Hh4P&@Oc;$cKX3w((-o2hmU&v5%tTXL;_W+nE4V zd9(qpLNlQ@f2Zlgxo(u|^H$juR6@So!X!6zWK?$xG=pZX~|GVvQH@5GJQtFnrBzU64q@=bbW5#5B4+wwu_ zZKAKr#{1FEI?B>2bk}vltoEf8F5mL&9J}d{H137%@~kJ;<0nmfm8xe0LdII-9vGvm zsj5+R+8Ghl)a7XC4?|Pm{h_vh7}S3hQwqWS(uUC?*P$~wX#8WKI@G{lwBRnMq!4!8 zD13@T5Z$zT$n)hN^ynSEunPONGQtTp5}trb;9t2`XI#J8JhWEb<^FI@LpLfnDS;&( z>wL0^u*$za)!|4em^8QFFkfF+iHf956)cVWWSCij>+J3k<

w^}plK6gT^MD)DrD z4bn7s^}rJ1n*?86H#E=tQu}O9ncLpkSrk#1l1W9(lGl{h=_QHtP!H#ln(fae-b=mDUA^m6KfvUBRs1e2A;3c3!4MJ5>-=hcJj zaF9_g9WLhU7;O2D1??!Z>`4eTj^?9uh<*`9T++w4Y9RgvwvkpU^cO1<@l zP{|@nnPIYY3l^2JD?Yux%Q73Bb@#uy=eRx&+b$Nrn^$f=&lC9pnOyl6BTq@2gvy21 zi|-VkScwPyi-T$ETt>kiArrm+wOrC&6=C{snTs6d4YJC)5#{R>Td1ixO(8%g{js2;b{9l&k*4x{-XB0ypk|vXXJ)%}%(W`&}euxYzoijr+dJuE&n@x6M12Uo1iY$ldvcQ5ih` zsQrT!0u?(RBqYhtyyY5fbA2lVeR|$ZAYI(~@2UKdw~IfvV*4U`ZN9!;TdHpk8r>Mp z%cZ~=6R@ZgUuIJH@cQ$$CY`#Vet=3-fxol_3VY3H@DWg9Y`E~!Swikkkjwp^HBZ;C zBN!rH1&WO=&RqyQDmh-RKlUjkYWHi`?oBsm*X~@CulF_Tqo?l^CsQR+O^)3XXRnX= z^B>@e;J>g&rU;`R{fo`aBME|cl%=FLKf+AyKzTBNUxlS!Uc-q1CiBqX_H%hY8JkM} z_MJCkzoe@zwziH8m-?5{1TwhD8M(hF($#+FsyZ#IqgDjus){^b-BqK!8k3Un!`y|a z6qK@sh!no|F{4JUVQNiaXbForI1q{T9rXY5b%y`oZQcA_8E1Q+QSIR2>>7?SaqIQG zp?^y2I}6pg&q3bA%I9$r|722EGwlm^uXy78qoWO;S8BvVS=lsvlYS-=UwVG;CG>r( zF16FOYvzk8(sLtR@54EJub39<1<d|H5) zFR;s>JzHJ{Fc|V$#gy7$<{_hyi_XP^j5_7d;^MmJXLiy2;wA@>iWs*`#Mmr=ZE5TL2{T>m`@5dEq}jy= zi)D~eySafKQ?mYD1n#-=ZJf=TbN|~v9`(tr2KpTjmaX~E%Z(2Gk>jJNC=YbFsfn(a`?+P+*klVthwtrR9!FpDB+F`k>$_k(jGpYw^EucrJCNI8 zMTO6}-Brv}8x_BKos#=%o2RN8)bMleiY(gTb4t#Zldc zDs-}U=W)_ue<^K$%)0$Sg0d;YF&phxw9K>;zNHhZ%JwGzN2c5_i{g0%8}y?6ifB*0 z&hnwh?}WyWL~6f%u3q!`>=|7h2#ZOJUD*%hJ$5e^Jw&W=`W+XZO? zW1Yx~y6G)wXt)a*PM-Sd3Ut$L;ZyZR&q+RO{`K`MTdoao@V3#TA=Utdc{zK**1h%h ztr-f3wzJx$`s96X2B7ekyfq7ZsUxF(gnCbV-GAKg8?JVa3#8BBjoHu2g4p;i3}p7F zdY*=tpy<{fil1*mVv16hGCQieKAJS@){7de(eDnv~bSl)E+jXAd9g8Aaljyte^j>ibN_x=` zvt@FSW{-2Rejez%O0(K;|3JpHa*8`)F~<)cKKt^QmSs>r?@_Zx(fO|nSmkNrT5K}` z^0D$`S~3O?jUkXlNd;!aWA6!6U773iN8y>+@=KJ@`D~|=F*&g9!y!I!;JNh4FL?Tv z^dUR3bTS~&`*-HBRY2DkBH@8z8xf=bK1sWlrh7_-4c};=S>BP|l7ZjPK6Q+_AG=LV zJP1Z^?EQ*4)Lt?#E)Re?iE!O;@DYq4Q^=ex$jP==WZM3qtJGWTPx|hzu|3)!Jf6fF zbcsg)RJYG?Lr6!J)H$+%1{)9$HzH|20|k+x6Zkhnj@}#}xD@ z)*|{1>WkVE4P1Y&hJ#wa*}Pb-F_FNVcmBoJfW+Sz{ zi-izy<>x?xf`-}HEWCWY79^?+U%K}}xxf;0nXg`4NjU**b1QQHPKz65n&HYGh}+7j zu~F4(1IKN1jZs!dYLQ2XIDqZI75&Z?{m=v+GMe)n zn9nP$gusjz!#hC^@`+-v7wdn5cMwldAG#P&B&mdilrkUK9XF41N6Jg`o%OQ1%rdh~ z3;pf2$Pzr+M!sxb_a(lvn`sPeEyn%_uN%39jE~fZ(h33OFBJPEPh+KLeUlDk(^=@V zc_f7{YaW@ehn?`R?l3xrdr-)IQCVHM_o+#N-Wj^do0S1dkuVZUcS}wGh}ahDT+*+@ z)A%PF4THNKLW#Wm3E$mZrB6z)qsL5(TSz>4(sId~wM9RZnxp`^z`NLZ@3tlOHrsf{ zT)Jz1VA>PB6Xt6*{)94ifpyLuCN^8wjZL6+RM2t^=9Zl>Ugx4GCRj#h`E{YsLqh4fhvpAOFYzT8iWV&n0|_=B z4i}8F2AXY}pjPnLwBOgUGf#9Fr3NBs`BC-$X#ILms3sZuGZ;N87}Fg?b<pIyyP=Le#}Z%%|}t`&k}MH%&JX0ScGqLh3&6!L+(sZk~K0 zAp4yU>8C;J;D3+5Lp|B6yA{)(L@ux@->tmsIysy^~Ldbu3r;m6@n zpznLLx`k3L2e4gV<6PvO@(SyrRp2ot$DS=eZvMPc*`uVb#15?(mTPZJBo(?F(=oq% z$Vj^H*JT|0X<>zu8Z<{*s2K@3*5A^%Q<;tZzKF8kG_SJpk!O3etwfT-CS{Eo;zX-< zp(cHeElF{lyu=LG?u#rav@m6G%G73f&(851DOA_Rf#Yzb86-IgKIupYp?aNgwE>J( zoPDa(*-R=+Sy)^sdjwN=Vpy=ozWJStt(Z zo?CTqKPIHr^Jqa`Vwm8!bUh`Rx25ei?tb$fR$aD_G5J;!_N{CRn6LzFk_t|)l8@QM z5{U8=-+Mg$7A`#&_3-YJbnNpphpVlGzao|;;Y7D~=hs06xsb3H_LR&h#4uaccb!Q! z2dxyrlkg0W6bo)(pHGy7*?lQ+OZu8hSHLdyLak%1$zd!#c#A1$XzgDNhB)=bqsKZ9 z+47?~<$s0aF3NYlFtDIC-~Zrik+y7aGP_8k;R(rDGI+FZx9jf5zO`-ILb zH=t<$u0b8a$-{d6l7UoV&BfHh`!g+$zmKPRpZu7*XbFn8{a9@otH)DPs>a7^qc#u? zFeG(5!%js;m6cfGFU$FgGcz_pzQ*ER4fNRzo#KfCPh}m~ze!E!4P(!*IFyeKHg=-6 zfLS&p_bxp&pd8jQnYUsWUAVMI=>nTizFBX57?fyHFPK@sRFASb;^LOjDJ+kE;(jJ{ z@Y^&G+fhdq2#IOJ&E2WNi6;lwP@3&KT9O8KT;6K>aA4@Y-#~!WbsrtW-Q!EhgxSl* z9cIp^)#5&WdC-S*!vlNdw&)Y5cy=^x> zt?xBBm!B3yZ?x7^N6W}O)()E1NjFJUnrlX?2KqKje{MTaJ(W3Ba50{@myprwn5*o3 zP={%*Nq1luk{*o)>ou%={0h@BuNhzWCdVlzJGQXTmFL?`@ya3KzY75*Togy-s|vZIlwmJ8}3aCwavcF ze03?Sm|xPpv$5$InYv}M^u3x;#yVOR&E$W#cNp1#6XcuF5#K^03VZ4-=BhfpE8#z7 z(5+ben`95xQ7NW-@@ii77raC6+|K$XPQl9Nq&8n9Cd}UPtqcrQ1u=&GB zi8%mIGsJyM&U(ghYVN~+T=pX3WFjFU0p;7J`IffXP(B8bd&W26Uc~ep;08y=Cm0l*j_otAd*Ye;q$AE*a0i1*Y!cy#T?zP%P->!mKJktUu=v66&ez9Y5zIw*h;P&Q?W->LhavTBt4|R> z=AkaGkMKL_)FoIn6T{F)c)VF^9?N)z^N3g9qhr%Ej5Luq+ZzII2fxmPT{qyu_f!Xi zmRnM8xJTh0UwsF8|L}N-Ip3PJm-f&u2S1RLIueq6u^>br0GJ&C`qb=-_GVo+$ItLZ zvb>{o3d(o#N*aru8svn`-r7Mgv##a^8;ON@mURoQDjh1#K_TA1$nZb@@xy+>4M%ji z@6N=qSCDUzl~50I=@MLh8@hQdeEEbE#L`82aQpXTI#veDQT^BH>q5J9gP41sp(@G= zhy2Eg;Uk-?)H!iK0l<^&o9GxNIxnUU(`}OWPcZ0l0U1oUChk?`L(ZkFO$;6KSVDi}plX(GLTM}~ zFURy2oYf#ZbF4Y3bUfS8ERav>iS@ zgh|eTI@Z+B0BUM3^aWaeVU4ri&^Y5zf1%ci-4dZ#?Hd_{1 zgOdVd`LCqRCrkrq!CwdBEzU%g+EEEdJt{BltIGhgHQeB&mq>QI%lS8Ni`Mdkxg|8% zw$FOE?}fV6ZH+EzN*!@E3h6x zHC}aN-yl+(KDP3!nRJP$rwKX~5}}u+22-1dto~sb_%riBM_G7)%aC4ghpk16!oG>y zOZ?cUwF0fCEbrr6o}qKm74-HJsm(N8ntE!VK5!m98Y^K)2#hOPkvH!#Mg983POep4 z%B>??9#$r_9qcHzj~L#(*R&_R#maJep3Ra`Uwo54F4_57OC}<5KIoCmHF^rIhYGVL z&|A}+wM_sUD>r+RR%*X$;@h9b$+V65Xj6!8Dp5K~U61s(NfRH+!&bV)>eLC=7x#R1 ziSv-B#Or|3y_I7T+aj;>cK2U%0bG%Y-UvnfgF2C&lcEkIHsCX!83D5XRX4e9i~4Zz zne@KFV;qIu_D-DtPn@CnOjE2`mIT5*>LRHG7e>viJA5Ad5RsN(yqv_a2Ko5yFue0` zED48iFl#HcXG3$sPq}PH2kowMh>sVDr!BDze% zVyWlY496cHQXEuZ8QK-`a2ebCexH~y%K%UOew~`gEeLv{rEs%|;S|>C2m9t@Ome48 z{*N&B#b$}g{an?xr+rVZGtasJdm{Uqz3HRc~+R5AB$2VQ9m1GqO;@B1&l-> z$RR%7pxRK~l7tjLx*76Gkrlk;GApBzZl;aR&$ps?Wk-A1xnN{Uc$nD~3dRh}l;uGB zjj{?ol3Z{8LPQVt9NZp^eS4=%1Ve9b=_PU|8 zt2!9X?NzGl;-wBzP0tTm_Gc0spPSr>Z5h~+M0|#xa6uN1xy7EudOH3dX9^v_lWbSb zZok!*#D;8ztIJXPv}3t#$OlSw=_4XjzAZ_ctES!7H&kmZ<7MGNr#yrmGw$G6e|XU7 zZS1BpE;ELP>UWc?>pxn>OiNPd1sFU1g8g91BRlsR2tri0)G-?Gf`;~ISRPv1R?5+l z{b?{F&9t1aErR{qhCBC^LCGfn?2`n3^}w;22ai>(eHU>y3ynXxGv&^Z5t|Ex zY=f!v{_oD-7%>ee`%~$w1X}CozMgvvG4VlM@IU3bimE8=4isNzP;OD@izKDzBLIde8wk-W6x zBG`9et9LGKPJQl5sb~m&5aE;g&u~SVT)Fq=MSOxwLU5<)l{qto`Okow>KvmykcZ9K z&Fdv!U3p@~;h{14F=z>NP7R8-r~p_*$ZInFiSsaCG1HmEiWuXse`nh6c%czx;oA7r zvkDW;SOes>mdW!9TxCqwFwf4R;f}=vOZ3=V_07`(gK{f`uJTcI(`yKr?@qlTV5%Ut4FNp zjG9Qwhwz@_Se(;VvI~I>wkfaaV)3~Y2{>&4jLJ=8wb}un0L`jQ8x&Fam?ff1(r4QI zaXQE85U+frOWN3ZE0K@|{Z}BZrU7!iV&N8f7GV_B^v~N5nfjmtw9Q;P#Q(L{&fTupY#5@O zJ{Oy^_+4`%VhF1&8_vRV4bG7j=7ea@SU{s{t@q4u1zSOi#6(0-FOjf5HsObiq;U3B&k3%2jZ%70jEK>wRbJis`JT)ZU#nvD z-=jjICml&GmA)S9%O$vKy5YJP_KZW>ZR6uhm_VR>V(`GxL}$uX45^n_C6DB_{n<|| zB`x0@sB}`A`J*+jwbm+SByvI=%c6#N``eSu<;73$Q;$4~3`R?&a;7NpbKWg}M6HB6 zO@O-0ZFp!lzriqzroU_r=cakLgW|e{ZpfwDu^tI(#7rwji5$%&xMkUf0DLpnHKAN# zkV>^YE*Y)_Qnov|Bs$HIxt8+v!%#&Mkw0ICt$%a7v(RG4VRNRB{=t;^a)m3{1;%l} zpbseRU|xBt2Oe78a3{K2 zsl}PZ)BDGZh+e3c3h@a*0>7W|JdM!Y=-1?{CX^K;NEaOXJU7Jq7@RkQyQKUKcW&q% zmAgLmqfeI!6)nZe0~Kpi^0XyJVLzKje6^Lzg?Y(}rz=eR92PKZSL ze6}e)9+v0Bwm-j=oV-*St#R~CpJCq5*C*4Pp?hiF9?h#! zowM7c;U2}KvV>rLjfx)HubfH^z5}36OX{Kq+CPmgRJAfH68L36{=|i2jhte#csmkp zj$XI+1k_M&Dr_AcsPj_PZ>D%c;hDQ(c%Yo7+gJ^$M!jBhlH%^QwZSnQlsb5!O>2h8 zT`Z4Zppi_-XsR1(!m6NRbO+K6#p9M}sIFqx!Pmeme^&G9pHpprq}QgEC*BEb?c zr}?J(yNorz$*3j%rwjdZcOp0FkbAXnc!P=XqCuis?9g3H89i94KhBC(zhKYdF^6&k z?T(Z7a<*Z;u6;&kH#xD_#qxGQr%kBnxK2n1n=P`zp*OAOaK@cZb-l7ci>T2lO$O*( zSE%DF)6P=@2egX~GTYP~2kKNzz0E30y|D<2@?UeE?HxBf0XL}kGgSgal@m%Oqzlh0 zcAdT0_8j)uSyE6((lt(FKo}^@$kQh;>-;b64ehp;2kkW~3|s!7cj0LW&Qi3h7&rtO zq&8E@dtT8HOd_%`Dh*Xm>ro7PEv6cg*P{T1EddRl1aMz6Y%r{cP5+taCnhJ<7gtx0(9&%X2+V4--xbYF6!ZgymP{ka1lSRy7#%|_n-yBr(NTZM@Icdl{>Sv9U?d7^8{ z`^W=OBvPeh^nls-rtFo&rR`V`y@sc7JQtt>30kz`lt?)BuC_aNS#f$+l;7J0t0=Cf zRP*dPPMgJFW4ir=C9vI(N_p+Pm@Q*p5$q6cVmrdzs*khk&iC^3BtYg`_wys`4qF{t zbv0nWe0AiD!uu`ShZx6o(qYo!`abQjgX5~~)UKfKVVof1RBe0xyUraa)uC^3mAb0( z&2VDEvmzDn;9FUh;bsOES)lN9&i9~Dp~?IB?*z)AC9#%|E1%l~z1+ReeT3WAx(%@) zph#5*H8fF>8Hegx^;$`X{qN0;y$n;ptlRoyhhJYmUt06jl3DrL-3WW%ED?&&o~KQ$ z8#M|AwT^o4=XlK8u0v(fUsr_fQhe=Jou4jE^Y%*&`n@s8w4!QGW-gOYKyG-{}8|4p{lB4casa!P0{19C}9dHQ!F~&Z;WT|5(S&+{NSx z4^RvQQ`*@!M2~;(#43|tF2{NJJ;|vX|Y##m5!?8Ad8fS*qsCrb8bKxWSH-naRcXykFojKcC$MU}yP&mtAk|c;@lN zhUb5Z_9b-N>5tlkgr3fgbgUhP%~4a#=v&>GFzdD|ba+@V>Y!boI$}gPfBclDS&D=; z&GY)MFs|_?$>`_#L|1kSk63>;^N+ms>au&o`7H8himOuYmOo9NL;G|9g<`-N@!|Ew zV%4`#{OU4QDeW<~ZKYh^hfM{fV%kEVN%Il=o}GogL?#WXEw519OCU<%*2YX${7L#H z=Y8xm2!^J()(@_kV@lCHsu-B}BOMjPn#Q8UC-W@eZ-qj$b&1+ogl+*#3Qq2yr}ozm zd&{z`SpKR4^A}-wUX43zI+sFM6+Fx!J+Z68_{EQT_D^_+1<=Nkqo%V!kW_gNyO|AoRru~RvO}ozofTU_lG-z*X z22+?*AP`e^Q0;w`&X~w3YvFJcXBZpaEf|(xFH2$<_IpW>I20V-B~lrhZ=1>eydM`g zY$-B;Tk@A4UVQ612&riPSfnCCHXNYw3D+umsR`btS-5Z?x?Xl;-W)z*op zaBcAV)sbtPw4F}}#v^-l3pq}!V3`A+Xg_8LI=)EK62fdq8U7mvslRKOt&(encS(6N zXg7sxBlN#Ih)Xocc6j^k>WP~^4UW8{R)^E@L#g|)@{NVn@Htq5i z1fI3}?5SgD4V`5KE3N5Re|<_9T*1tKQ@T~cBf$i37Rsn!A2%j@$&1r^FNs5SXZ@E7%v2JI4m-~$`dOLB+^w~0H_@QdU%Ud0`J)2ST zJLXBL{)Rf=iABp{9vQ!KAhXT1p~y9sl+$UZrcJj^*awX^-fo2$&mvKoa!c&>*r$3GG^GdgD;&Cu9dFZ}HKluG0XG_tWkW)3O&7B>C<;H~Nud1?z) z$`d(a*gZvQfaE9`fer+?ekSy>(}we(D1R+@GsO11>i-bCTR44VH2AXNE;HM}uL)js)%(s^v9b z{yQcymGHyK%vJm@lg;$OeOw=1d-@X_M0SbFKJE$K#HxY^gmZ5mVB3sE&$Rv_B_!>G zUlXf}p(^VfUX;vT=Z1^o+zDAWq&46MBWn@To2Zj4UmhF<`QdmR($B0my32O@u?;$N z^bi>nj)YgoRCVyN_jbiGZ7Fev66?Ypv1|z$ngg3CX3}zG92N;zdmNnvuLl%I;Dx?$ zUf>*n)Za{XQoL3E2<62)!A0tQ_RPX14z>A-@M_2~TNLWquTBZNM7P0n|9CmMSZmX! zwcQ*_4`J(T^sHq!;~`_WeDIwe=4CV2?=ARN`S9rXr0g!+OL~Lt6OFlF zE}igPjxT*3O;N1GS9*PNeR89k2U*c{VIUYSu>TICzxfJZfV7GP)IZi>Lq7eWU_uFG z*W6obL%aGq?7e?~bN!Qpb9AP1I;jbM*uuGg7WyF%X_;o1;b{Q8(Z6vGkoe zTwAwWHuF&QWbg!a_+Modvyn>Ra7f?}iU~E;2WyJdY_CsY89ZxBzr+adU)AR$@=}M8 zQ(fU>6Et-$J%u``l9y1`5Zq^$4#4>MS194g>NQYEy;B`mYYdVFGx9pjwRCQ(9W%)N950Nskh2nx&DC(51 zMUXFySEToD0O)nr7|#+kDx5(eY&!nILY>6k5)Ns z+rIvA+16@x%H__CYCOY@-Vdsy5K+@evh0;SO3$st&}v>=KC6nOCE)0tRKG@O;Gnl2 z3}hXyF?fCeJAyQWdg3;~&NYEJ%I;<7T7@qO7Cq+o;6(5x0IICV4v7M(8=UtU*m=xN zcTT!XXS51@WcBi6M%HT?dp3RSd{h{=uWS%DRKF4dBG69P0BZmaPJ!IW;x53dvf_Z^ zstH|ImK?e6-AUeG#k}p;LDf;{suzW1^O{0KUS>oV(!P~eIZ?kvDID2=A!YVp+dMuN zbH*z_8M;6Vvh3mjsls!RJx3;qupUdv*5piOhqY&!!KZ|u&yVBJB2RMYt{q}>di<~0 z4Fcnywn1mk8)GlwnK%s7aaOHOQO8BI%%>CDOePl1P}8#?p6nl0%zTs@qVx*6ese85 zt)xxzu&767XFhXYZPlf|_$(Ak18w6qQ?}F$dKHF-x_2L&^Pw|{Jwx+ zt|Fi9#v9hWHL6w&!%|i__^4^*CqWR?<~U<-?DpR>Or24ME>xzSJT z*>FmW$Tx=S3<&VDyggOsZ-?LN>Wj;Nz<9UmxVz0S>TmdX-;|ghvTeV;;L954@8Vzh z%BSdI;lT~lYF!nc@Ti=OA=~ZT%{+mckerZZTEgD)r8PzrwSThX6iM=CzrikW4TqqZ zkWyAARF*rCjE4zhy*i|5h); ztDFT@G^q#w{3$=lQmh_a)RPsRAz6$+It$UH((DLUxhSfMjywkqv0NzmNPWw3`E8Ty zuAj!Y`S^VawSKkf3;_Qo_>!*P#GpZFKFwr0K}UK{m2d{4-Jmh7I9{D{7UwTa=-@n>$OF3rpcNHzdAD=HI%;V-4g}H zJBj(}?Ww$rc@>!(b+{{aLV(Z8ty55C79QaV*1@n}-SQ2;a(mizSFpM>#P=k>uieIB zjaL^GWsp}^9Sp*ANqr0@M%ytHD=rI>Z*~dbQ;{zsMpk_uH;u0b?mk#8zk2G6x14`#Wi?; zg1&n+uN9n_+`OW8SIzUnWF-g2%D&`+y(XViIDK;Y;o20#D`(@W^#8 zWEEA;gX9YGpcU~?mWhFtdRlEn;vmkYQ-xvz)_U0Z?BBJs#cRvw5)^c%T1keDnrlia z>nSl4x0B*8uX-(QV_gL!LrCpWiK7f_hL%i^3nSm~kuS57b&b#e)$Gr9lJtRrEJzgC zz>Y0&8)_6uX%j3%kMTl-p^m}lukMEF7xpJ3-6-L^_T#IX3+di0(3C~aPSSc{ayoaj z#I+Ki;EjH>SmkG>FiFh#^OG@ZEh$8mN$@WYPxxejKlcg@gyzByK2I5cuIA@T*i0+| z01ldonu^EEU%#J$XcscLhh>~v&N8t0eaVn3b7y_!RPkJ3PyJ`%ugw+lxaw7D_UzHjC zF7ux=dfM3Zc`hk<8H=8EF?tT!kOLhI9(Fl(3%`BE)lT0{u7swn?{aK@0_09cdc2v@ zFd3P6qW1Jo*&~dJ5a+g8wC#*oek_|C+V*PdZGEo~J#xPwg>ot(SD_g0wR|NYk?EwR z{4GM>$o2pJ7XVy?T&8kjF2Yxxu_~lyoRHgXH4Sz*>CuS?D`2JAxSctE@`QwzSFjdw zyIKyY^h;U)6lXV;-0(S!tama6M+dQijct2FHxr5*^D3FgaPuayjQ4=)lrrs9(zcN+ z^sP47Y54c%8xn_WS0PnJNN^PlX-x}VS#|61hc(!HSzj5?f4 zZYflZ3ygGVjUr<~-xS+egDDm`F^e(ZjB!}`ZXXV{EOp5$i{vs`wy8Kr>7(@TZQYoW z!OwC(Zr+kv>d+~V#GK+DxjThlnYXH|M^tL(mm7u=IgQKs5LK};m57`mLS71m$Jkz6 z6v*5~*Q~@w8{Vz+Jb$@HzxdPbl80vF>eUdm5{ABt@3CM(vUqYd@*p;IY$x|y9;g;e zTC!D29N%+aOAdf-^rCbAzGH>19qQZM7i0IaRokK7l?qbS!SJ5Z7o5N1^+jHaUf0cy zLO{cu{+ZjNw0=$I7izkSX?8OMe&Zm<>?UuUixL_2Ad}gk&bvBtpAK2dX=h}j!+Rjg zRTg(~==cw1*R+Gy9~XzD3AG~)=eMW{)B_T-P>a@i9*;h6uUc#So8NaOAh3X2`*{-Q zw&br0S<$zTt|Sp~JU+pl`hcg@J=;C&z2eV^QoOot^!?OK|2Olp0qAnvYFnweZKDhP zwS;@nOq-2_oHE41EX%=3HCZZehf!XV>#wZe0kEg9{DwZf7 zfs{~qQ0`nTuO+_}6Cch}Yy=p29IpLuJLclD~t?M0K znfhZ9^O404917f*9Y+4Io_M$&pH@&S2$1j?9Rigyy1SQL9rzo)W`SS|d&mb_pC72_ zWMeXK)lyWG`p@+bD#>Qg66jY}j<0Ys9rauIQ~Ged1oA6+*X@%Q-Tf1z6-}8Ec^fZU z^skW(902_rurkU-x81lT3Qid2>lN3RO1k^Y?rzb~YO6J)l9l6?m-k}sLd}Zs^wC(e zk7Afv`%4#gD752npT!;)eUFRhNl%)aR}SSj$vxjHjlq_JrZQ(Xbj^EpCQ3rte|smf7MOeq(;!eX-a zcnwYqPE}oIIAyxCqwx~OSe(U&&N!#eLNnYUDy@Z#(qL@HLx%p%Xbz+Wu-UTwAa^3_ z*M7s@#jLm+x^ak;x7aDwT8Hm$n^`p!r@@+T{IUmEP|)HzT;Sac0C&7>b`&(sB&c|c z1j+82y%K88r1poF>$J@&4d30GkO~Y4ty>5U9<`5543q6}4VjVPcU!mx92}iWO_w$Fa?#w)b3N(sIP;%vM>h1TlF~9?~-1V z12$;Xo9k}jXKBp}DjWJuxsC}8s==2h2kp*=g-VniO7~A%(!)zh?fkq~)_vC^?U0Ze zZGvK-R1t0y#(F2KOc%L7=8D{zd{o>e%(>}1UZ!&Li_9_p?h!?`N(MzDnQqBC7Qe2J zTTT0oZ-zgM-|e_w_wv2OPJgkz#7?{YI+}#hAHYaS)0fxF?x5SfVB%OwBDN`^eTOBF zMh6b$;JAqN3U(P(W-es6E%d|ENt<8ggzhN3G41C7(s!WUk_)9{s|0GIT<xM34(hUV{%Y=xrQhI@A4iEa{IY!%eIUF8ljfz?7xJjU)MWr$mj4uxz%K?X z?{+Bp@QZSi>)ArPwFs6Ob3|YaaclLa@=LrxRzC6H*uP3m#LrSyb;sQF9TEPk`R1v3 zJ4-3x9dhbc%&18@Z{P0%h1y25nQ+)zJrp$+6+4zz{9kdmG4acOm1=(^$7ehNEToJ) zAz4w)nTm}1RM@0}c3tplzqh)k0?rEyD@XxW9eKq*CBJ7Cu`INr7g0NIPF7|EKQ&(M z4cm)D+f`sG%sfvLvpT@-+$7b;teze!oR$!w#fV1WT!~Xdu@TCk6UNT|d#-@$IqhYw zQZp2X!J%8P-}B_>fW8fBege(Wdp(~cj<+$ST!Mq=xZgr2SqE#*i)6$mI|{~=h^ejI z_rEn>5S58>u#*Z3(+NCrzf^j@FaRmZ0PF`VBpUHoYNH>FNcfp$k(s|U9u*!e-)Ah|0*O8w^#6*x?Tx&%=BJDFNxO1*E${q#LBWOS%N4rD5r2$z|DH z-u3r?-}gG7&bM>T^UOUn_dPSG02A2ryjC##hjRj9T&9qth6kpFpvZh%!z|6$iMJm> zLx}+_w7MUg>l2UiRQVW~;%)Tbjk96^Gj&;9+LkEq%vV6~Em-|XPw_^5Hym4W&Tgfz zUoadz*uXouO7-29ZN8?+Y7Mcg$xvv`DAAZc7x+Qv{1*4;MvJ9z0V+<$IMJk4+Q=Gq zyC&{|;bKq@CO)-;nkwb*SVc%XTtLczV{Iz8Kls>druo1DLoRyl>4V(dF zwLGnL+*(XNcWQGS!1vwz_TR7-7}=#3fB%aLiGO71vjo=D)3jn=Q@Q>wF221fFT;r` zYjob46A$eLSH4i#r8EkB(ss4hs{i01Wsem!M}mcgRUFmf&dRIfJ<<#Pss;3J-P#67 z_-A%n@FP!~o`kiW+Mj6Sz2j?CLdX(&tb=2YLk4dFYt>!Q4bnv5^d&RQ{(WCF2n5 zk`n#&$k+QkMe-9BlnCbSvcD)X|K_{ZKKj@0-5Y69i5d7`Om|ZDVf@pzkw;RzHs&IQ zWh9CUQ`#ZBPvQUK?d4PEm%LQ#^@mYpVhA}`nB9wd>{r#ZbmeEVmHBoD*3DpqtS;3z zP;JmYZGePn(Yd9N>nx7?^x?IgYHl{lXFR_%EEf4IGm_?6yDdc%V-nF@U;O)mc#cnN zSpE?KAE)yX3|%^ycB^qhI>!`gw7%d(-d^H?Xf~za)MB z9=g`;YV;a;{53dRc?h@Lv8@g|XA~T*8Y*gPnjW)|<$+f_eup6h^OOs?mpU%Wgl(VE zEqzKj>r*!k8=;uAqZcmff5P#|f8&AVkVKv<5)40`?+U*`r~B0^+_SqQmvBb~cK75_ zRGy1rY5O;cpZpDK(n0XpTXyBg;TcQg&uz?5gMrLxBryJ9!C^qhwy#)5gs5ZprT)1Y z54$NfOGZoR7~Rl{tkS|lT+kvSCF@c*>S3o`Iensc_g5^!Vcs>ZLJW|d?w7g_aPVr- zqBe|7sTOV*y7vN)FQCn3a8$W>90ZHjsBJkBGcw_1B% z?05JR0cXvP0cDP; zEW(id6sLe8<;6_glleSf`2~GXyx?0aO^~Td0$3k>XL7BYX=<$_a6rP7z$bxhIX2rc zXa0kbuXR9?`P%ASq9iu^Og?k;^zoIlT_u!fSle980g3I}%^f-9|Dx$ z>G#H-H{w2OTqv#@_pzM7ZQ!Kl4G7`tguSz7@*`i{o7e9Vv6K6N1yKjZlugCgP|aS$ zx3mxCzxD@Hr@SQrcc7@Zro~R-POy0D8v9l1MKmr$ITFD8_vAN|JO7AYSLD#{C+^?E z*hr7IMjd;Q4;<|{zgwktwB|ps=C}5ZDU(>;Su-d@Mf1>RcUITd6HZsQ4A(ZIelkx=9GPfq#oZxAeO;}v*|DAv8}1MlMPgg8OUxZM@|s(t(tgVS)VGW zL!V}EBWP<3v>gvjFP>{z#RYR zK+2DLBx;Tp^CGt7Aup8YQc-CWM9_XHe9CpF_7T@0Pzbkf&gHb=j{Po*FTZ~I)YHI3 z^g;9W<=7>llkiQqF@NZ7B^A|NdH-piaY6sz zaJ9}W7eb^jsG!4M3wFXkmN@91(X^i@T~ce4Yxx&q-=;8?@xQ;yIIBdBAx6UytX-`9 zHU^tno#fBpyXjstFyq3Z|#AHzDb=cZ)jyPMU0fNa3=v|a!&{M zj#1T&YW9^ipG*-uHY)=JOFy?ab-()VOjY?p9O*hb9*s3k-#Kyc(0ZZ36*38!CDZ5Os8=^29tub z+Fc{eclvMQo4)mv*ov&{=*1?)Db1$y(vQS??Mm$;p?aDGdurD^CnT?0Q7lz* zta9$|<>bXNF1&KxJK7zF8k*kds8|$R-Xk`Wu12b1-%5)30mq+w%DlI_b2rFK)_q?@ z?+~cEodoN&MPOgV7Y?NoO_Fuw!!60Qs2_iS3cP!mA7PzL%mZc--|H@eiCcA6%Tv!w zAQ|O89yDnc@QE)cV?n5i1|*4Nk=*NzzKT;@q;6-eFZQzc8XXOg3>Xg#V$fMI)xpA0>P+RC`m+QyK736f5X>U;3DH7OVYt&BklTsay$5 zTQ6DryJd^Ym*0r5pPaI-(q3o9p<=A(Rlws|uEl)jGk$Ie7J1+_tNvM}edvXAu=?+P z^BTcTWu`7~Y$eB_zylKOYm(B4@pXCZy16fk`C_cDUY%NV2%o71&ysS{c<-EB>>o-;`1QQ5!u~as zCsFljtkhrqYQBm#_qD|UA_K$E3o<8(rI{3fKda>~jc~M-Diq*|_Xx3%8V9;i7C=ld z{*8a#DqOpI)($4&=Y(3OtG}MGd7tB-_nR?AEQ2$#E|iOo8LI$`%(-umg}s?{EnS!1W`PAtWVPTA#gmLgjV1;6x0?-}XP-azC z;k{^(+gkZ0)El*vu*IltaQ2E1>fj9M~qntzu%-b2Hz}`r`PzAn-K?27alZ z$}|0!bdzWsPt)su9s9$;X{R2ib)UDe*<%qMajF3eT`|~hMt!c~5(3=FGt3v*3zw%v z@ZW8(1oa?@3ySLN+uu7*Pyd*qS)JaapvcUe^=A~UBpfTWK6=^fn=*7T*9d7mOm6ke z#kPi}DiB2Q$Fn#qeU}<5>uYF82!#DCQklK6va>AYk%$Fge4NFfGVX9r@mj6U&!@S{ z%DwR%LK908ms(EBb|yt1)QC)^wRrs}SryZ?=IsZbXk2i=S0QfJPSUS}F)N8o>V#1| zgv&!Gc>pW7I(G#mXP{*S0*m(g4YM^;&o+7(SV>pvMe>i$?b7Gr{nOCZounZr59(W^ zuG0PO>5WzJnD_Bk%Wc+qz+rmZrpqsh3yA4VwZ_wM+(Qd65S&8$_;&@dPH+>j{oSx8 zwkGy9DG`7<{|)NDhmA<#kvyfJOyPg8k2EOEhV5$}fzPR1Hz>GJfUB#Q83DW~zB`mp z(@*WY$*h@zC&el8V(-*k&VN2UW_k@>9`7drx;fQG)og)ZXB%E2eDncU*$T4vp1Esp zS;7#M^?AUI{l2tO@>{_)4q-^3r~|ERy}^)bSb#H zUc>YS5q)3#4qAE+lKS#^H#L3f(*Iawq_+BQl3uXXNHb!+qj{GLI0jutWZ=&2Hqg5fBx}A)YgOhp;V147aelu zM80#xsNue-4^a{MYPY(=42UmGQG<@ki<7X(X_j&t6c0^s_u`=1f23sjEIloDZz*b3 ztnPicY&r~Zc6t8clQ@w14I9+n(J{_TfBe9D(xC2{5%2=V%IN(Jd8<@WDmT38 zptV!DDmejB^wCV>`XT)J+ER73^)Q2fyO9GIjvZx?q>Qs(SCGSIkKNLDE-*zR1hTSJ zXfs!eM;QRdZ8}uCf(hjT3*yH8M!GC4B)OktA_Rw=uL5$_ip2}{O=z3 zMtv0Zc|-NTmmNx!QkwR)+6~n1*0oPCVY*KRH${bo+~S}m@hZq~YwljrXaj@&$t+Td z0&NN>^(b-T!oEIC8i*pyvQ^Kh+t;c~4h@r7Sge(__p|Dk2iXn`j;MYyQoC{61+S4rji%|}yid69OirHW^>JY9XL zo*t|&GD>WjxcY1km3xiija49 z<^|?%fDn>FVt(&DMgwMb92`6Zdm{L)r!t#4Y4lGI4^L$z8|;?isppFxGd>iy9LBB* z)(;kgqT01De3y1w#oG!&)3iRjiLBJwCRqbelpgbJK+ejUvJWb-vsgdBUuw#*+o7f1p~`)c#!9UcRnC+oIZ zrWU8CCrHpnTKax7@bOHcr^R8ljcASiRq9{L;+hr6$K|@uD2w#F*IZnhrHp%3gr5tY z!k%-nXj+W2Ib0W)H|14g1wspr?JCk4*Rv&n>F=<&%~WxZ6BJhsm2 zLec8P4b$)B#G$}s8_WMSV8rCECt6a@0b^q9^9 z^fdaUyvI{pT8a|l3(wCtHr6{eBHi7)ghkV5_7W(H&!rf8&0uYhboiYR0&|Zc@QNQTdwy^r&sv{(3VXXr{$Z8 z;6l{beKa^`&ZG*O!BXQMF^(f7*LTK!sj)zN9O1QV(I0KoAK&J}+!?wbu{(dhQ@EOD z{`=?Z%g@UccpbhCdnv#_N5>0rbN9|<#i!Wg@vQ9ANPgnh?O?gSE0wR zuW>oayw3WWJEWzvgaV%)6In@~KW|{7q_nf6qy&o@_fYxGPv(j_(J-rnj?2!Zbh}C+ zV}~>E-J;tMYu5CIHeqp;h`aC=%J&c4t4cQ5L|8<^Bn*UdAMuAOX`oc}ylO;k`xLAd zKfRwWU&(h>E;x^YJA1QAddkbY{imqZn)@T=9UPQnIy+Odyh&pWTYF%98zGmCc?Flh z~TPd!X>F- zNy#fV4T13e~kd#-`DI~Ux)(t~bXPjeaU)5S7O*NEStdyhdiYw9LX1N1QO58g{zo~F9ZBC>1 z^afsk*=lY!vI~2;*mU&5i{YFlE^>=IUN=DIRf18YoDnwUlh*gg)|D05fon=3W;(b3 zf&9jz{sIDivFW;bRtXi_o+6Ns{22MGfF=lHsv-P;aexbTvxmqv58+-zK=^o2Olz>? zGWdD9Gi&0hLctqmsCeEd-hNJ!%yg!$$k`x?@w?0a_=|*>jnlv-Q}LH|zTkB`q6AM7ZyYmC=2s-Kj| zENPIIx{Fsx9rFhu61Neh2`A$|jL-i`*O*&Cz2c9kAC*kLsu7>ruDl`a@cgXlo(_Qi zHf=R_KWaR|7mt;wmnZ?|vv~C;`(K>|Bxm2eWUlRnF!6MTrlmPJwDo@Z-L{1)Q&3e^ z`aJQ|w-0E|ot?D=_fJpA$uX}$#I;6~$4RLwfkZ6X(-b2Y#fIPs;*rv8KmPC`qH*fO z6O4lsP!JURtxQH!u`{A` zaMUYwR@oz94DlaP7gjzvQ0&@=N|#{#YzX(9(F-ZsIOOnQ*j2o9SZUbHu%=sIok$`*VhU{HFd!1+ zvsT-*7%GiEIXRK=9%9mcvF5#GEHoSe^ay$HGYzNxAPXQAcRW{;(feKSTVaJxU}3hlLjJDVm5zblsDu<31xPQJ{%ItbS9v{++^dbeu_=SaU3PdG+bdNaMh`LnNsk2xY zIg#g*18+XO-7Yqt44zu^yxO~-NVmwcpg!&7{b-!P$OX?PvM_8(g|RIprSdqe2S$S! zf7Hy>aI8kL_$v?dSN{5=&HMg{)H1YTB`%)h836jIv1J~+6Gr~g&Sndjv7VOl@La>t zP&))*Wu!tk0Ifxv1r}I5+FI7oFBUu77DJ zNSwQ12*}XMY!OC&Wc`RA6hqbVioULwXp8c_l+R^I_i z@w@sM?&!j!xrFy$X6P?j7hE*u&dkI58Mv)M19GC@nD!#wk_2%Gy8fy;akdWT7}*ra zZq{srWD2dr!f|l>Eer7#V}(De!PsSZp&>6>(svYO#7&LkLb=i_%gub`SgC+2hkC3( z#7lF=fWvTikC4)~;B(#H3G(k87QI*D;-U1~N)zDDY zcYei6 zrIungS&B3f30351*cteFwlh_-D@2~~Pty1m6D1)6RKf=RL(AhJ;+K^9G|8PUEe$U< zTPi9kDe4w6!>~4JgFDCccQ?o<6W$F|thlj|N_3bHt=7Ij$vj@A@!o2g-nd;x*xY`7 zApQIgr2A-t)W1=|mV|G3Wj^OIIPcY2`uNPn2)Ccqux?WEhQZmIm=B(p)rU`pC^BeAr>qsIMzRagWtTgkkng%5+*6WxfVN!XQy+C z2m=O;lhiz@Z|8?fVXp|G-e2}D=S22goUf63VE1jz#cx;OU%QI*1`{~>gU;6ISi ztF=GWjr=7nvz5H95!DNuI22}m+`??sLgw7S_obhy+@a*CZg$dk?=PfesdZSbXZul7OkQCMG;S%h%$cwmLz5AoJuq>J zYF_t8MwZSqov|YRuHs+#A072sa(0>dpDdQ;f^J=aZ9*My@6XySeE`b|&s$ns^OnIa zJD7R!Z2~7#k4JVDTz7vgz5lK)Nzf%tV#v|g@SaetSWR?xbE@K6@O<+0boSWLL<%z) zBkb$_8~5$Hc~xv)y0$P5GkSpla-oi0thn=)MwW4q*KLx>gv6hc&9ECv{>vH6*u>Ap z=of;0=xq%Rcb=#5Vg2Yt1IcDms@R%u6r94t7i-pOoL=z?+?+N7gNnGM(l=}1(KwUv zh;YmK1&J}D>1ckS?jV-2Q8|Z0U9By!h9H{#^K2{l*PiLD+=|b46~wo zj)6vO%9;JxqL8b|9&i7i!OJg%RDabdG%M>SZ-@bPlZ`TSc|x9qdCDZKnrjgjTa908`qHBL@t+2(Ku83+Y3#j^fY45ul>&c8;$aG4 z3KNsomvxbhh1;;z@vr*0H8$y-IOB?5Q@n%Z?eG`dVwRGyXGe7f{5B<8$%SrAfArf9 zgSi7+{IAkmSm43dJ>pC8ypnl&@WFW=wFi&__H5wsUM69j#YbHF0vnQ;zY3)D8z!O! z!{=tNY}v#Z->4cCSpcRMcqET`Us(SL4l^GA9m1*HP=<(_KIE2lAxf*e>8R}1N??4J zQhgd^+d$Kvou8GRqfxt_P}4OtbReZqp2v}MDri{s%(FX1r_-d6@cZ~!^3A6_aMH%Y zE$rH+ye3zi8eUtqJIdJ1PXFUFLQtKH%fZ2$dOIACrx&&rVpKeJzunazDAgoN5ozJ2 z>h3Y`c3OYYjmU1~sBr88?^j-UyMC@7U_(O*|7YYaBJaJ7d6bQqt$=^`w@v2r;hFli zZXl^KjjX%Jg( z2g&XMH;1y{BMPmKbj^1`j{P_swr7`00La3*MBn|9{uzik)kJc3FCzb?5^aSsSiLhY zb~L_H7rs9#ufLrA-n-rcNvm-$jXF=tyN05Z34AIfXEK+uoMSfOUsgPS{yeUD6-$?o zd%qc`lf6ePpx#^4WGO?Q`&^R2_&&jTPWeo(OodJ2LFuT+_=xys)!zsx&S=^qmcH4v zqE8WFu#V`+9voyly!v5U7?bd4=r={#zM0`6ErKvvS{hhT>hcZ87N(lDI3IdepYY-9 z*h|=Eo$GU>sGZb9(4pzU^o615P2Lb?&%-38V;i5Nil3ml6m#}}R!scI6QlSn2hSl> zUCJP*yyyPbIi%ERKj6&Q?QXhNdOf1iUnW1C3yaS@mmnx%SJ1)@b6CB6?#9@XT~Q!2 z0uV}zzf!c-U#`;6Hmni&`_e!I-HKdz_TEw|_8pk$JM$HiID3}j=C{|1EA-=r1=(6s zB(nkf`1CvQD$C?n+FkNC#`z7FgI zh2x2Msu$hN<-&I6DT?7^C)J4H=kJXiHl3P|2w&X>7<0hefpvyYm0BlsSq&wiEfZ*H1eG(r1m| zKgf3L*f=k7b#0<()+7=phb&3I+PI8I=gT9Pz$NLNy2^?Y{p4M8?ARMw?xhzR?~vm1 zjrju`gMUYMxIWc<;MceKTgT)k3{gZmBea26iX?ho>mJi$dT4G3IbNG_$VtYFu7g}I z!@@%riS~OF&X$0!AbA>;%{hR?BPa7Shvf!;k(QL|^70zF!Q+#YWA!#RoH`7Nsns>ghNKCbQ2y<<9E8@mqg;>0rn^H{ZunJ#PzWb&RP29^JGM+>kOtcuW`2Tt<#Lw#5aI>HYteg{^brBki`_hzS>SXGaAgD z0K*yoqCdm-n59)p43-`K@u|om*g>>^0r%`23%fhf*u?^Gw0;CtGhv>d6%hK!+quqZ zKImYB1(^fX8buA=J>8nNu7{TgJ|QkP;oOUyYhIfn1ciUR5f9|1gO2uwE%vM7?#SOs zEO8H7+@DXWk!Xo{y1PF!ZFL-YKDb?8767*+p}$|djxpVm^-mCoPMAvdR91FUhE48{ zadAO%=NA?hj}0m?uM+ssZ1oyvy<1GRn~u|a!gFk zH{5GYASVtcw3wp$!@<$6h8h;_GOF0JiTnkT-CEU^)a@Dv1)?Dy zd*x419!_6ce?TU1aCemqy|&AnxpXcxZMH~5JrW$A9>{Ng1#A;vY(n6!J1%~4lRX#5 z0La$9c4FP7spTWIFHE`|?`U@XUCYUuYP$+|1}oET$y~|gu3{1rWsjj4Pe$F2APlxv zW8ZR~Wi|1+^suaA>Rgm#vA7)wC%5=l%fnZyXn3#~a%aPjm+4&Lph z*RQU81TxNP4`RB)s6@0@dhEz?Nn;bYkO}en{U7PS`>$%Z2U~5n`+cr?G4Nqms}~8* z&BUeGEElL?X&Qg$y?G_EV_LDG(8D9o*_9ONYyRUt7W_u6KzCYqkLu_V_Bw}mWO+Lu zwh=QZV!{-Z$ogh^aIu=2`ed;nf3@3hlA;Cgx{L2+@}m+gufn+>JMPJZR2y-QT<;1s z^+LFAA<|9gtsyV|k$r>=yxA|PBI7ah{yEm2II5`_CZD!;`?fB&Nud7??$+4+GhyLG z3Yi(u&_V9wzEDUZi9$IVF@gO=6nQEho*4XwAt5n=3gq_YCB6EU4;LR#0>LO-QvKkl zs{OnPPKMsNgdcZisu27uPc#4Npc9l$q{ak--+dTXYl_W%gvcZYbI{E4{21a1WO9Pt zEII!j@~pTFIoM58cbC*wYFVJ(H~O*MM72JJc34_s ze(D52fdqxNLPA^&FXA1EI)T{DVNsTl{EW5ubr_H60AmAW%_-qvVc-)$6dX#--Hy({(A@mjWJMx6kX($SI`;iE zkBMm;ESf`0?g5BG@Xz4R^n^HxXa@!u0BQ6)5!4irEs+MvMPo0`WpT=7h9{>nbeo`8 zBKNzt;p%Mvna5n4x_6b)!(oxV1!@gC1GRZN$LSPfBuSX7BPwnjw=qUY{%X9;3)tPT zqlB3d{6+`yItRO>lH6#Fks!AdxEvM&0sa(D;`U$ubDIu4E|Xkxf*h?BkO7&`KzK*2 zGSRX<^5`P?Z|Ym6LN!})!l*?c8)T#;VW_37lApq`cX;5>k1*YXHzQQqX7*cCR?AYJ z4kQ8(->BTSLyw&Th_k3p|JJ*)lq#|Lr&kep+&`noUuk;9Kz``u(G2>i*hN4C+`Vf~ z1Azh|+bp>syJ|X)GwswPKUaLGjre4%UWFNr`S4;VWBbTA_Sp61j@V~WPv*zq#bEvv z{^}3Jspw#85t@KksT(Gaz12G8EzN@O%)cJ=hegl^Z1~vo8)9!r#K({4fLD9rPS!AE zQwP&7Te<&uRs6qLU00{zZ?_V{G{_jv8;<21kvTq&;0bvEJPCXdG`3l3vWV|H*Wv#{ zk>^u)Frp{F;IJo=N9-ybE6OJhWE`2-?I zQl0%fC#Jo31|&2gA;7s#cZfQMq~YrBn77m9Y{>}q(h7yFJZ-lP5ze-L=<| zG&5S?x32a6kMY!p7jDztm#B+CQSjg#z@lPd4&bJW1^EN;wO$OXHSRP+13e7!Aa*3o zi}#~BxI16)%-cISIO;rMsDAK~Q;npDT#mG{=XUUvgaQA2CNUp8^ZgSodV6Hw46r4Z zHNmqX#-a~VZ8TfXueAQ7YnnKaq-p~kk=n85pSC7?t&ty5|$ll^ah zyJ_9@*{JI4gF|5=g}uGdW4ot=iJ^Un9I|Sb&q@HZ69o!WoYEJHp)q`B}uf z?*#+1J}Xsou&b;Y#-eRy8GhU_!z2!V#<7DY=H%%3wV$K_19yLFXu}!Vi0=LpC!I-| zjAxkg$Q0-@NnvkVC3||M+wClNyFP} z!<{_@DYnEUxPl0aX?BGCQW^5rJsK)ctc2e)2?~!AH8t=JQrkuEPrAMTrmd~5mCxJP zGUKgYZ#K~3@pm3ILI96JdM5aAOBowBItEHa181L@ca6C#Ob0PLk09Z&+ z@Ev^+9KQK<8Id6VAv)l(by^s$cCM2Zx+YX6Eq;IL_87Pi)mV$SSD_Xlry7(e)<%TMDR1<4Rp|7pZ8k;c?_k{hD*e>owtXe*N`CztsZgk6`LTpX;kzKG)3(= zn`m9Vd*{qa2ydJ79}Ry?gJg%hHfq%`d1OA*(*F{q1#2z}KP1qf@}vYbwdVOAkFi+L zR#lPX;^S>cacx{|pU>5zf5HyOt!}O-dW12AsY_i*F_Gz?eLrRLduFGkFk8U1IELP< zRpVaY0xL3^+gTwp4tT{ak>Z)8^VoKiVtN%E5R@|AdDUYa(|f{ltJk|1F*afPfEJm= z@u&F}bEHd`*zUTn`{COceCMemIR2rIix<|$ z5>Sg(`W-KV@X!(ce?|o;((O$QMorIka9$vM^CoL@X z`i-S(L%2%yuBV~i2jVw#M<+}(EQPsxJMuVB-#hmk^WX_tPe;Y!0JAi}e}UWN;vbW7 z0>{C4LMEhdQ2kx_$Yj$^O<>l)GWfwqG{7%i&f89KvW;uAqo@)`NC6MYJ4cz|Z!$qn z>{CiYGPCoK^V;VH33CCzr|8*EG1jj69YoVJiQN26k7)PR;y_X+g(erfxewg zps&^!GU>UTHW(2nWn;>3&!yK8ia@)D9AmPe=1$cK0uOQg%DH{-0^%XD~5>i;I^;0Dh( zt!_ufm(^PMsGke9*sdallq8>nUH`HVbE&G&AfmFi=YAuO@-1o!5q%>A{IvHJ;zHUx zv*6Sk_*Lj>NM0mb3pLqqpML#nb=|8CjB7?+*;9%ccS)DZ+sd%6 z(c31cY1nyu(~-X^PA01QF7BO`k{!p(J)s_C)?FtTYC<`$RpoJF67ZTK7Fj26Ix;DA zurygLp1y!_f1zkN1byxbi^G?n6Y6;GI_hYB&^R4DJ2xQov-7Iqo!w$88`w^>h)uIp zRRrOk&JsmR6VH6Gan(n_Y`ZP`pR2zPs>6cc`WOf6B7+-AkQYIMH*DiV7Tmwe>O1WR zWZK&k{Ez;*!VDyI8`3l!pAcLQ?}Cjjjmj6)`3e%Ft911hl=FtCsJ&Os89OKge09bZOG}tOw$1z+=p`CZ^yUYNB!7St##Mr{Zn3{}Z$DaZY zZ^2z;N{5|an7?iGtmO;bEo*vQia2YN07@{vf%Zra<6e*kA(ya@`QMwJ4a}FPuvkov zjp%zLVk&C1O-fGzxV%uLl#fjk2W;Z6-2uz;ZqWjyy7r55l+qMiu{0QCc!Y2i3a%uLSsxMIsTAYvgTqgSerY z%=DO59HAZ&q=md0DIf`cwORR%{Dt`4D^>-zS-SGOa+&-N3Jm;DQe^LX0zltc6+=$3 zyb744xYz4iTd0Tr-!6bpaW;)T4`&T53aa4`urG?)^IX_hxcrWJ=DsOc_nXuADn>qg zXRQ`99^$oHsYVH6EdgRJe%+V-C$%G)k(D*R2O{;IbEnIblfaaAs1jmUN|~lUhmFlf ziO|FNkmsl36QgPrBlCNy(b3=uE3ae#d5r>!`SHthfPG+$pv*VDHF&&Nw%_?SSk3Y8 z9T}LA*4>6t1v*U045zF-f4DxF8rsLrgP*d9zqKR7#RKwCP@bHS+Mecy*<4gUUD;KM zpHb&E;eIh*@1D!tE#03|TU%m%+dd}i@9*cA9COfU4akcpN<{wf(B{Wmv>j$+<5zEB zlP+rW)Np@e<8$SQ^q5xQvF3mmSfAYJ*OS`L#iP?{c*;N1cgKJH5!}4=2KQe=*oy^x zd<`MtnWN$s-M9?rBv@U2%NAN~D=`w*U#fbt#PH_$YzXxCR2mz*z-(c`yI~^rE9W21 zQCep6%wqGXl2u1{CdU9jGH&0O{eeeBmYq1ys}~6Kwzo8&s)c&8CwQXpC_T^miQx$W zH{q0Zi>0mU#4eXzp*vhh8MttUPowza>ewotk3^7uwDAbAa#8cCtXGeF?}5Y z(WpO>R3MmKzc7W_%#@}p$miTBP_g5s>L?k`$3x?26Mi zbwB_{+8_2LGVx4tX7~NH?WThri-nWb=0S=ULeg7#>~4Z(ZgI(D__6LqJ0`KrbIh@l zel(}UVGo0PP!nV;2FyF_a$2tpLIcbqmmEvbK4uvQ!ZQVbblg^&o~?~-Oo$7BDn`W( ztxT7c&%{acZu5NO5}+^SMVgWUOLI4oPwGKr+tMW?J2TV9ow=_Ae((vT-aV7)%%u+S z_Ir#bWgWHqT6dy9_Lc+cd(+*vo0XlH^f-$A-RUe1)_+xm50WIj$}|n$Lh3+0@>?AY zbd+&_TMkk-JoFGS!IWgM zlj7MWt<0-Jk=vxk>ernO5>p{~r6*}!O#QR@p&8z`oe(31o~C|j-@^zDZqFHpAXMua}wG#!g3yR|Tzwo$BCLZz^`{=z)USP4Lmd z7Tr73$iiwv@US0M$8{vQu{?^Q+QDJ2EYF+X=Joxu?9hdrHjVL`RqAndWf&ZI;MRFeEd}QucUR7ylH{gd|s%qGT1^C?Og=oV^|tD(!&!MoZV znl^vNC)!m@nb4I6(XGPTelEj6uMGPu2S0GUVP1!knU?#nXa?8xOT!v=S`0fZ-S5&n zwF;brHhBDxrbIMYe>&w4lpTSC+Ry${JqyFa!B?4SKt;DUs){WaodgHT{!V^E5-;Ec zA&2O~Y2bd#DsNg%WsK9y2!c9X$|km_d4i%7DAu_Akf}G>&E6mj6wwb}Z0$uru4-EX zEgFU1arg3ca3~!S%Wr$Ro#=Eu&^-3W3B2U*NY=ePs6a~zkg~nNZ~jmJ7fqu6p$U&JJ%ot9j+|&KYYHh$ zBB(_vYT2I=)ihWDiajGc1qX20ul+tiIkzoD`DaD47WU9y!avp|Jag z`1AOVraKrn-6O9CT~Gb&mv*S6j_{+`!g#5BG?U6OZxX$Ln* z#lb&4VKmmn)RaM9j7ym29X>vvBp6lp`jie(HklI;&yyIt{+gX&AGo_%9Jos*68H(Z zFCIR}YJ1<2wlbIX<--SIK904$!TsNQZttw8x_qp2!cLs-O_LiTJ)lg`!RF(JlLNHV zslXo45_bJxqQH!7J@Ih>(Nu+Fo$8`L&kga0$vC~@y9KaUReX&m;Qla@n!9Vp_AFWD z+&9hspgpe?oBW0;70VFySLk=)VjJD42ua)VuK+0ShI==6PC1s~V^ni3!21&qqjAR# zZpAM`T9*?RhZEus@crdLrLLD(3OoE;0VS=`>NP(8v0uu(p^lu> z{_hMi$^7V)0fVs3{`(h|j=|4c;p&qR2^G%83F*`e1^ zk;N_%ccHP+K8*5aUd?PEN`=h$O;o$3D0WL(70e{h4u5IobV~^E6}pG64zsU+%Ea$( z;&==mE@^2=lXQld=82p26TKlELunXkKo<9!{uj@PK zpYDS3?WjE-lJ32pE`U6v9mnlDK;_kse5M>9`QpWkVNCzByyJ9&qqFZ^IXOROZ})`) z_c#Dzq_RTmH;|n+L`U@2r?mwqT5_@FKyNxR1s1|(WX z{&xK`UV-exD(AWIhHY4RBXGF*b&F$9_hV@`9z-q2R$0g<1$7Rj``X9I-s%dMhAwjY zEBxR>DP;Nr6htwabO>DD7Vf}@y^IWl?TV%_mmxYscN$C#Pk^DS?|UWAI~pC7b^jki z&vY0@Kn#7yv)*?Hb_-uO<6vPo64Ec&n0AOsV|?ni>aekTuqY?otKkcPLoj($b_vf| zwJ(4Dwmo4sXwnTm)~_aIrss7wT``RV%iV1$YE=#f#jGzNhqfwx#eTMlWFf^0St{u% zV$LY~(N!akk(k9sHO6jo;G$(V&1Xlx=f{v@3#w z@93?OR#;l9*T}wC+0s%VcD6$S@;~^&SNQI4R`|7~8bgd}TG;eKEvXZL21Y9ZS>R%Z zYZiwn2U#5BDU`OtUF-rG@y}`Mld70m+wLrQSr)O2QFtlt6WrybaH|(53Sx}TyYN)% zf!~NuF+PEqdkB=M=&DkS5wbYpz&objoPMw~5-uM|_b^vpP9}f8`gH|)&sVY-LoL)yX1{!xwrW;flLb0E66#bcd=k+PNR{lxn&}cya%5em?EkxE_HOe?rFBZwCQ$g z@Yy>hje5H9WW@ha_Paj(x}-KT2uF8T26(LqQ3raRJed2|3LgSUgzM9c#FEnkg6rZN zVDFCRN$yp}U>OgBSFS6|WWt85696<@;=cmR#mKvYjh0~Wa#$8lcedWYMzcAres89{ z{8(=hu*AwgNQC8bhnI&+!}jwl5({6siYn1+wb4t0gP}VuvYK?rHX&Y*6Je%b`XqbK zeS){7mIy+L&QvqXA8I3|;>VhwT@aK9@IdmWqYa)LjeG^GR7O6Nu=`hQq%2lRHILh) z`DOK*nq=DXEJ7)Kd@U_>bOv9I!ZRtKFMsHbHQK(OAJgTe^kM%e$pfjseMXE30vX8I zMCnLqDjj`HM>Fvw$@`OwB-Ssx28=LWx@+|SF!JY)7V3Ejb%px`JQ2Yf{2UJH13)NC z1tC}iur zzhlM(ZiOZQNSV2~#AmpDO|y&xPzXS9)qVareVf#|U#(P%tgrs9cm72jvccB6&t4RXn;5pjGykH5iz8-W}5LDRWNu zzL<`M%9?2&5Jkb=meGVll?HH);6$}0te#MgnX@E)>o=~i)#heCS&k;rFc^x&^GL65 zAI3TUS=Thoets#&8xci;mQO_cP{7_I8;*D`3`tQE{soY$jU~ltB^?dZXu`0xBH&1d ziuJtK87WoY=DPnApQ281MvdN-gKGv&cc=`n%RV`Bp1ab=i_My8R;nT*Lj>_(z2la&@gp1)*7oU*;XCMrx zb-n(*Y^uof$^jP)0;W2Pxx(kO(xPtNPvUVdBlMzVhy}X?R&E#Vi(~t^uNxBHl$fF9$hlaoFg&$^3zuoA~5xvmQ?9&`zw_ zaR{vz;n#+*&7PFA5~Q}=>u9cR*F^vIAQ+)Y4;}m#y?5T|(lG&wAw$sk6ff#PsF~~I zkha~@A{8xvI{?cYa1cGX-YF;$czbJ(eRW5^1|+!2NcbW_ODpd-FdQnxaCS9qm3*}t z)_IdyETQi1B<;&pJ|LiA?52a+9g077fvl@FxQI}x+UqIPaE=uRE1>~O3JaGOSIy5q z7i~``Q4>4ciig1U)jD|wxrf*il4g4n{MqYD3JHB+$k;Hs7DVm)v|29XTU?|B268E9 z|Hw_er`|gXYhvToHYA?Cm%>lCTP!cJN=Y#RLhg+OW!t0@$>bv{Qw+VOXB~ZCesD$Q zVhj(ZvI-JZp31DI@hVjo6m$^ViQ3vir#q&lyLZYEDCgk#n8{(%4|E;}dCjKz^k3{| zuYH5G+rD$sqhb?nBAEvFp5q0HAPViE`IeH-mXSLTn1yo)OQ7V7To9lbw7L*}P#gM) zf#H%^p0|~yXxOSDA(2dM$xKA7{t<4DI&LEb z)ZSkDo=vmm|;`06#~oGD>pc1b>1L zlYKo8!p7XTaj8S>mW$Y+bvBhFF{T7=;{v^0{Dg;XiMpFs2kf2ex%{UG7?1*-kZvgr z=4&6t?>xoyxc!={?ugd;_I~gg(KF|4mJ0xig>_vI8)zz>$UDF`003+F?l>8}jmvII z(_NU=pjDIm@}^EXZ}F;M;#@IdopL6WmAny0aG$dqHQBnWEo~yajTHaCDjW(rLu*O= zU=l^B0e~I+=nGC#IC(D3<`UHHY9-Tmr+spyLcnu}zh$%8?brU5vjW9anw#O1Z0fIq z0a1}B`2%z-SVmtr+0GK*pSjac-bass*Af!|Ww3t$S{bwiD5dKQ%>R=)zZL^q+(Ep9 zI%N|*Ii1Ul#Z~xM;xd*Q(eCF@>RR`Z6E>3&BB@3zUhabY`2o^j^_#q1@;4Q2@^Ijw zN&@ld&V%#SQ-Fy%L(eX}60AN{jJTVH}Dpfad8*(xg|{vsZ{S^=PX`D7v`H=F2Cu^6B+672NQx$wCFI3PVfEFsL2MY1=Re4{B=^&{3B!<9y1mJR!NvX)ViZ!;8i(CXe z8aUe@UkVJasUb28OtlCqNW_c{y_;GwYA+^Rx^}*n@h>#;4J>3c7W!su&thzQS4d2)VX(= zD4W#6Ub+9sSHF=*uku-%sFDC#g+poCUZ_dhxuFqRnY6n*i`VLki)(ICC2QzXf{n?o z?PD}&5s1~$6ABY4D(^Wh!Qs4dT>P;k0#N$jp6+*l+lOa_p-}E81ONqJ z1{OWbl#0-e!so{&pr04{9(3pXdC&qB+{QTnh5L*jeW~D$ zoctUjy~V0o5SG+0tvO&77S2S+WR+cSjZJ%JLk+JA9D%#&n2Jw!5_5t2G_HGWdeKed z^SexuH_7&eUGi3~mlXYxG7G22>HvSCTV;I;!L;$0C7X%jM76uHI;82@RVdKg`2qQj zvGGTop&7298z&b-VU;pm;vr(%_>=#fjF)fT2%TT>gR!pNOuYK*?{KJ`vu&)`6)FKB z2@ z5lF?U64fk~*$jSYLJmeG5_%7Bgn(F{4;bC0bMW@MnebrM3w|uGj=AAi`?D7;k1-j`PIFN6!cT3Ym?f*$Vg95Cp@vcLjaGD2-AH7;9>)zQ}bZub(6Ztdmm6ecu??8 z?FkkQJL5M}D1$EUhxL3xD0>=^(20h^7tODvWki~$*TEu>2NNyzledrWNwZgft+D>H zU0u;nY$vNbj0yWoRE#?f%9n5}X)9z=lDrXk13pNEimJD1SOs(-_M1Fe114pjwd08^ z`zB=yS6?Ku>Rk16&)4NHuZ$y2t&(Pn-F~_<3!B*RgYS(-ZXvAecYn#--i@;j^u^IA zeEAb7;`&c9Gqjof92W{ch*HQoKv99R=y+8k6iz&I(EHHWI#+fvmdadfU1Hu1%sUIA zTl6D;91?9p6FSl=9gxAWeV>`7BSviCfzRRSk-vkjt;5i_{4fQJ#C&hr9FJxwYVLuAf-W@lPqJ=Lks8Ca@{VH6A&!@P`y(x4x;CG?G6iP+E#)BHUm|6r5q);~fAyl>=-^V~c~9Lkk1;C9!dXhPQA^{!T_1UpXC zw+hib8af~1Zs9|y#R}5lhF!!2t!4-`pZjGDQp4U(CGS>NcHD^?98NMa_-yy5t{W(3 zuIE{*A|)29T;SJ>vJs@C3vy_qt{6Gk>igwB9cDM0eBgU&|I}aDlc>Dn z3U%V>ZYh=Ug(y5j1sK`gdu2-Y>V*NzmSwps3j|WF>o)_qOF3WnCr%v(kp0}i^o(C| zze`5$hxS`DGtuWYnwkS{cLdJ5isF?CC@$lR@Dob?XU)kHXbnmFjQFWDqr&)->w0=r zMSWBzd*8LfD7TPx?MG=#NLbR~Sa%_*H#HeEnW@-~6~-1%rcbZebS8M@Os2;5$BlFf zF*2*Bm0dvIWDIqu2TR=_UqSl%nVIY~b`WzXEW3*H?td$BzCf>6>w%Km+Mi?^b)U}q zPq+WAWrm@i#Q{IY_gceJy}HJpN^HGh;7jRmO`J&~fdw=q@xe;;OATVnSd7b**E+;u z3bnIFV=jK6A%QX^2<+kE4ds(r>e(Fx;mYcme{+e~loB@ZWdssL`vxHR-?g`;*wE)r zX@tzE3*WopvKu@xqHd>K5@6_~s*kELL6GzQ@pARD+4lW#j#R;hi@zJ8aS*$wAw9`! zVyq|pYF|?&QRwz^uaN#3JP74c&E{Q7B_<`1iSZU7O83nF^f*t>6S`82se)=-rUH+H z2MC3+=dNe{OcyM)@cIv7oSWtSN0OieZ3Pp?Yqf5_?MSP<^*YKZhoASQS*M+#lrz&3 zdXCqnVc^{_e5Sf}NuS5vkr*IVBp+;A`W5MQqZL%BW|TvO?Q6FdfjeBbdyO6>$&j-t zI9=mwRS|c_aD5=(;Y}km{t!w7LCf3SY_J^9Ol7LS?}Mt!A6KnCFbB;ZZ*l}VJ`3K! zT3G*P5uG7hl!O|E*n?9TJWqbXBHUzOZlAdrM8CF~{sO%e?PVX#{e3NO-2n^Mro*7V zHPn-D??R~PgIm~}>h5x1Le0nLqRTC8$)8ZA7HmrV+0%r)%=m8^fu@KUk8-Y@v1(-V z1D`?C4HN!(6p^2y)y#onb}AorTUrO(11hx8|>Re%r;x5XQkz{w@1g z#j+q2+`-ry?E~FNs^`$Ctlj1KD3rK&n%XmtgjNaVmw3W2W5dNj&NW?6^J@1PZxkoq-+0m`ktSuUiZ z+<|tt%lEonvme{edPJ7}o$`u$?y73+?F>5bI(f!(V^fjt7PjO1jZhv-_Y7*x zH`nbNAc$)=f|0@uO83lf&VE1Si~9r|IJi50nT}q~Ts!=X&tl?kdfMV8eFb>(DmdcA z8vKeNNFu66-vK6==2>p0W;02nCsKlmq0maAi5|PE+Cr>wpr^UHg#dZFdGTfAjPfv3 zAQgaf@XM1dna*`!Zl}t=H&42PnQ4MgTaCCDetC3Frn@}u91&WS+ z0y?AVi^C6b!?ypOjy-{e&ruZ9QK9pzEt|MR1Gn-x<>jrG#kxdGTu2v(e z6BQlp*Y2Bv?Jr>xYZecysNXGCL2f(XDj$*un?$H961y=>kN)zkHYex^?lqVZ@c-JURTf?wo@1I z)|9^tvdM-cDJsJI!!*y9SuucWYe6!fBlB!%z6U4#V%0oNmTc~bH2V~k!s3iWo|AX; zC*FARFace>5V*O+5F(sJs1Bu=QUy8CT1(UD#;w`-!CecKeL_Ww{f#e z5Rmt{`|`1o@Za^t3p)H$G+fMbeEBUy!1j+AyBeA3xS&Ea-LT>72ZHsNuDp!_{TL4Ybhf5U|Vzat6Q#|vaftabBp;`Fe61qi)i|Z^RDO$I-^*+ z$gU2^S!#;PFXKI|AwtlDjdqc2D4 z(ayuFy7K&32b-yYkbv2J7@*si7tAXr4n3y-46$(E=I@Gbp&>6=L4J|FAy`p#e+@HP z4ULWUMvO}CG-@F#$jrHvE|tl3~BlQ2JxU;tu*99PkKvSFqd{n=j?2Yo>3jVPF zZ%a*)6GqX{P7#PaTa77pUVbw@Wg$W{syxVPR;VF+5;R~u2}wPuoWknaRN3_J$S$tY znE_b4?2^`CT>wBc;x9<@Jzf;@IJVGj2a_}ncaoFW4hg@+yyGBfnRqPM;fKO9lBWE6 zfxU4kSg~E!p~Jqauiu{0=;EKOI@_30Y$ub72t*2$xBUnHv`XwNUSMfXLO)bE^v_Q) zouF8^E#OjfRU@uOeP&ixrf%TD%V^RZslCUSB#m1F6fE#i`qxFTzZKiL2RZ!+5wid3 zk`-0o0;O0Gx-C?w!vwo1E|9C4T#qa4FMTgjN&cmzuum(HUP?2#+WnatHNCaZh+a`U zKb7n7+jRwgBrdl?h(7gj=zL47R;RS2BI_Y#TmJIKV}bbK83^Zd3qUDIItDslI;6qt zxlZwg>RvA=9;}{@9Mvbj78_`FmP!`%!k3}M{}RI|3nic#lF{dm+l~*F?I}zSoy+%s zyl{8kWF5B2U%&JG!l$1qDq+l$e_Y2Gg=6{&Hp(Q)og&vXyj!d<3xWXop~N2G?kRM_ZF>*blmAnyAsqSZNq%bNh(Uj~Y}d{X+WCV;9xzsW>jKwh8d=@ZCoyY zmx$a!M>nT!OyW7z<`tqK6m*@lgRls$WnDOiTHrD1V*xx$S5x^5awhzBq_SdOAr*cf zzm9__9m}0f*8>~>VIrYT!V3c{Kw@wVa)%JTO)dPD?V9rgC1iYX{7eEIqoaI*CA3ti zYHX|(#x3s|7|gBU`7s#IauOM5q|OQ|@A88k@QG+MQR(w%hz6e#alfTeU^-PKbXf&~vCCht1hxtPH_-)&+> zWj!Zf=5BX=RZog;8OrlfK8Z@s=Vv&$<=1C*sUg`WK~Al$m4g%O_MfN~Btb-PsE_iS zNx=@@?|fP)8U|p0qJ`XrJDGQAQ-42w*IJy8fIL)A#?#Ur^86-@s+#*;sWnC(3mpfsK&EY$}!k;K$eji|-O z_#3)_dSB}P_bC0GIb)EnLo7!vxh|3Ni8_3;j4!IzAC>&W_R*v8cM~~peIIQ+44#h7 zTMI*s(x0DU@no*0b5T;6Mcu4oNf00Z*?sz=uDnk~IMh-3$6TzS@SH2HCmitBDi^*P zkkJbCi3LDeV3Jz_6mzRtG*L=lwE`1lMC#=!+9UK1n+`dC7Oy#Nd=R(LvmDZTk?LyQBE##mXg})_Jdon&9Ml`<< z!G&MO#zaE+6lnVnpD%I0CDZlHkVC1-E)gpJs8Os3v*Tp^H{>3Vd#hK^POJ0e*Oicm z)X`+B4%Fle_j?PSTZzCCB>E`%EN+~_;QnyAWw;BWb|gapzRh#5Y}n`I1!MWfU}+BK zy}z#r!i=(Z@yfBoqUz?j5zv_q$=giFRWzgnE9fFZ^n!D$!A>Ww_Qn4sC0_g0 zDwDyIHQeK+Pz!7xvPEab6VPC^_Ai|N@X}golx}ZHhlVW43YLlCIC0guG8|`QAmf3? zD#5CuDwLm8ocyjJ$7LpY!bCuw3Roi6Cllf`<_I-I8GZfQW7t09S+%&UFr>qB=uFG) z8%F}Ot^{x;{ay30vBb+$!`mXGtzV^J{%3Tw$;L|`O{#w*aA|}0>Q3!+)X-<8;Z8Af z>TPCT7mtl(Cwjx-B*y#(z$A2{uC!vXNvSl3z!sN8I~pC_|?fEMmhVFVA<+RVZcKyW7kZybyC#1!*&BiphP1geS_DSoiQr^D?rtZl$q zHKe+rmO}o!L{U6MJM1RDc4J|b!tBG7Bs$r6H*+1K-$5&O7@L2n74RR-P-+Jn4@tfOU>&u1HmDb??+u31!SPxVW4RV-Vj#3JFAbS(bGnb!6j4pi_^aHEcwLS zQ_wQLJw+kaM+lT)qypa};raZ)jNjee>EYpCs3p?tU#MeL!+^X?l_v~J&!+d@X6s;9 z0Ij4FL`kr%UtRl{AX+i`dp#Jh;iA6NyRhfuMS-Dz?L z+3X`a?PR>wE!eeKwe995}%hiqV0B1Jz1ZL`>*QQ$+5?t3NZjUotoI*&%u0g)L;=N3ZU?TSKh z5g;LU$b$Y2_VAJwT=(ZA?$7zCqY=>xof{IAtl)afNUH_+wts}&j|{x4YDoE{?inuS z=j>j~rDPY0s~g2})FIhl6NNag3|6Y0V8Vd(UkcyJ8>_m9qDIX+$*v|!@y6BXRHSd; zIN#HClVK}5-$gSGJD63#TF zpX0?iJ@Fp)YwGP6GuZF7AA^pAO}ACG^`b zPPUfBKuKME58y+0mT}0v%+PpT-qu4Kvn=_ll+sN&32PqC4j0nINrh60KRc{+84W&9 z@TH>fBgQ=WVjKkZ;bEla#f2(HYGh&;#CEnbBje-WWr67ZE&Ls0;ti!iQg--hJI<*E zJRXP|EGoo?R~JBj8kLBeu(EPwi%)S%x_c{-2i^8IHYTGFHv{b|n=MgKMN(C5%XmV|1Ak;w8KPg!&)Gk9&!pk#e7DAOVjMI6H5s^ zvg)ji(x?w*GUFm4U{-_dDcs9q8%0()=@@4m>IB<8{q*w&$eHxSN2@$6IUu*(L6vhW z_^e)H(=;-IU&dFAgo|cv#Jq3GPIH9ynPS7eKi}Lcv+Wi0dihnzIH!=RHv(sqPMJ4C zk|&Vv!oJ6oANY|I6BG6R`#=;<{|x%#p=Oj58yK^;f9diPu=6O@;Mv*f-4BlOgw*aA8#MxoV6t8)FP1d{tw{uzygl>=sh?oS-AO8^`>~zkq&q> zU^r=o;OF;K_$r>|^!gm^qCzIgyADzpc$S?pL-d?6)-Nb<=l$s);JXG^nK`xgwvNw} z|0k`Ij|t|$A|Q`p2Fk>zUy#XK`T6DKtgW&=dmlfO(~Gu6Z(4WHp6c9pm42n6(F}C^ z_RYQ4U^q>4%nC0zf~QtLtZntRtGM((o(lU0Hd6G|uwbE>3Dj#*dW)al=R&Fyx*^8o zn@T*3v{jbB@x^SkNVvb;aVJ&qWh#454hSw_T z==1M~u7-I_%hZ1p&)hc*$5Wc~0Ojqi;)RzHcAfV*o#qvGHoD6A=Kn&0`7CcO%_dr| zjSS!@xqdID6Ff3tq%x!?s~Tbw(e?z1?bs^V{RW*KdvUf9ZZujAWBkG2Y_!@}?hOh$ zbvVi7C4Lwf!?U74gqHU!O|ShK7B3d^t^&BH5Dq> zVD+-Jbmcr~`Iv};qbG_I;wlnGjLz$o11A5|VLT(??UN+o5pQ&6!Q_U*3&kI8mIt}T zHInYSw@VNFA;vZsz0tElWC_AP?%-`rdcXKJviSuUFyd%@{W>nA=!uA&y19yqqoWMs z!YFtd?tr{qqwvFYN}IG-;r8j;gA7?@+8xP%P7@jBZ{7O;a%+qX{DSyMub6?Zsk6KFqhfp7(YNzS~4ip-76d@S_{>%{?#Q{yrWa zd7N#Kk>3UFxp&FxXSA^g{Tg7To@+OhfHR)cVm@6d!A`aaE`rC`PC(j5%<5>6W`DZ% zniBafW_)(lJHTkY^z-?C|4sN17dKyZ2r4x!xjk+!WQ==$CMESW3EHxLfzEJBzZ}hV zbkJ8;{NSni35>F}D^o$lBjuduKD6V?0koEt9mn`*7QdAtpZZEhoLuhO%As+_X+uO_ z)KY5dpvy!G^L#7n9j&<8A`p+lE}Xow_!i37sZWfaoL!Brd~EFSUg0Wwuv#jF1F+V` z!w#JCy8J8s*HPFrc&c;Zj9~MZ6Pl>D=Km7|xt=Vz$@!U5)j1b}sY{UcBQX7GYZnh%lMU)j-Oxwfbg2GeYmQU)^; z8wRGTT2}Je02`X820r)f>}_&%^`04#w95Qg=CT1ym+h3Ya2^XTJaXZCnUpm|ctrOU z_GX-&Hu`gpuo)3I9mUK!DAi-#x0c#iYkmfn#5`3_VDei$I3_;b`14=2QG5*`A(;N> zb^Csy%FuqnJ2`YUitk8@n(#xASst~akc~H1dm_N;<=*-X{5)|Lh$$2}NiXmWF-y2x zYO?v}oB!?yhlC3JHQ-NT%t&&Xq8MzQtrm2B+Y>eWvO}dL{vaEdw8Pnn@4clW@@msz zMOo8v3>O%kgxJ>R2NyEUqFFeLArVwc2epgO2pV@W*oMm_hDt;d@&RTQwg24vEiJn* zf*44Aw&B3OX6CHJiG>Xf=pWlEE)>`(jl+T$rcPo#9{a}HY#1}3Ovp@b-y**biz{v{p(!m~O`HKOyl?ehUsSlr3_&UAY|1hYY;gEMJSx6_21*Y0uM!fwS&qCXg+n8`tol?8Yf zf$2NxTzrAg%HYfTFiV#ggPMSu$mIJrIOx)Ui?vnwho*FrrU6vvYDk;TGH#Tn`Y@N< z(VjCNyNP3I-50T2^&!Y;xDdnI4q{{`b#Lk;S)){{OGJI5l@rw!Jpml?-1SaghqZQG z0NErk>v?tj{m&|7Xgca5E=Lb$yYmxU!fQHN_xQod;N$g zs3f|{YI>2_Vf41vrefmVcaojnAm%fgNSzvpiQivr~2xXy}Ng74VK5+ zORGfWo)aD4m^MsQwOfEd)wb$b%q1-gC*aHQmZ=Bt)9HyX6ozvTZYcJ*uJ2x`)zq9@ zG)G58A!6;=r}FJ;iFJ#semA`R)X-4L7}G?t647`qZxvO{j5_)K>)*1cP#!s1jX-90 zEX2W)a75b}b{JfZycWlRi^05Cp-#d(o*kc!m6f$WuPV!3Pa^YEfrz*S{ORNd+FLO2 z8?QlU-$n}7LHdQLqYja%Q2TZY8V(fbo(tqSsD6i*uUE|P%{|IgIdgsQKmYf;ItxVyK!K#a}C!f>0s`j+4SV z(ZXPDJfb`JY9e4Y=^@%((g{RUAEI1Rs2&+8m4wo`t4pL>mQ6Fh(eMC^dCLf*+W9UCyKI)~&2{@wp}7d1IvD zXuj&`lzJUX270{T&8h6n_Bm@kDw*{1;QVLA6zE!oFDc{bYa8H}&Ymh`Kp5u=r}9m4 zW_D2R*9!hXm7>BdIBw5x>S2ISvd3~4O=H$HuG;9dx(4 zEOOQO=$#`=`b)u5&U6+A2u3dEQ`xQsJaU348+Jb2jDl%J8oYN>Z;wCHN{hquj$A@& z>V*%*w+8%Lnz_X>wws+Hr94&*Jh#4(7`I*+24=|(d8Xc}@BFbM$2a7@?JkpIDhqIM zxO=v??%*VQZs&C3ZD)?9sw$}eCV-rywCl;7yz}IfV#(-euo{XvtTYpv4~MT5tpl#j zk!%E~Sw%FZt#Vo9F2Rb%e)QUu@=j%1lWi|Gtc9iiLHhKSs+-j5T@7}6x(xu8a_tZb9 zA<1W6sN_}kY*SE4q_CA070I7XCujjb6f4i50DEk^Mv9E48K%=kTOS7V`P z=0g0NGxPb&nwp-1T8!)m*FQ8~JD{7(1;WSWz9UU2vKmgJcFIQ9{c?s{?lNB~y1h7H zSL@81U#q;p7xR&K9z}Luq;s1c9u`4cwChEWfWb$LvXzgT{R8!2_isZ8iIA=_Mt?_l zcS%X(;2zY{$JlESe@Ii)cN_O=U!i*{D~+}^oS52)Pqk5i%=Q3ag#IZ-x^~x>o>HTJ zi-H3GHbEVuq?nhze11!eWToKt@Gucc+IY(Dkk>_4;FR+d`|_AWUWztpM7%ysT#O=r z5J5`xU{tlK!Zc&1Ru5^ouaX|mvmVX)k6v$p%wENSyKYH#IhR0V6Ei1PV zxwfN`4ABu zND&8nglf-Pv{&(MO-;jZAhGc4)73;sh{sR-Vj*BS+DIep14Hz2?6Mt#6V5OV*`_1H zL3(1EsHn6lER5c4Fb9*D!|-Cz^nUeolg|JXR9k`_HfLQhgV+4L3rQ9qbC9Tcks`8P zJ#4OlhK4I=akYKqFo)h)EgMnFjiqI5E9^=UIQ6C--R8D?SKtD;$I|*JJk{>zwiTgi z?)GTZX*Hs=GZae}YwvbpG=En3vtopQc4k0qWUQa~Q;({KhE6!x|AM9W7KtS16*J@8 zzd(MU*O$0K{^(Vpea*^4O&;w~@;hV*4~zgsw^GJ~Ts|Uls6%MOx8utf{2Beh3!-9I zmI$JZl9EqaR{#Fo>WRHzjgfoaUy-2^;G3~FcV{IF;ElvZ*uPWoc6Id=R%X3Ljg5tF z4QeI}3S3H0G^V&4eDMs33vz=36$K$Ir3Sne#f^Z!P|E)IhT<89_t zKIh&i)=T1szCz6HZ7SWL@cr-h*Rp@Z@XX&t+2>JV?lt3UDI=vr#L9{Q!gW_;slK-B zZ5qR3t7hp64(NZpoau8iPwbjZ=u-Gr!`*4^k}AwD?ueMIO^RtQZT1O;)e#pW0yXHV zS4mg775w?Ew~|x22T%^e<|-$bC)jjGMe`a3p9k6raYp6#M2~v}UY5|$=5;uJG6HZS z7Oi4|e^~~zIGnea>IJSD@1a+L^+F;XTFSP?ppAgyns;ZXmD*;H7yfp;@{?7bx^eRS zgyeWQlz07oZ$2=;NG*>;5wxQai1GVkZ+t~|D+6h3lJ><3_@xGy{a<{5V!(&XG=uX) zG#VO%YSTY49~xx!U#Q2*h?soRFeNz19Bpxi#nGKOh#-?fJk108@o{l2Jo_mu zRyl1BwjBqBnEq3Gn2InStQ>1*y5&Wtf&|-v<>m!6fBk#w1G8Xdq-M=d`?kV-DC|V3 zNjb+7F~4ve{W4ZO3fwaOtkvmiAu;YDr-0XbDIr3FHTS;aqLLB^dss$BJOR$;vZA9` z>cxgXH9xNF$B$1gC3|c4IT#U~@ij6eSoY+XvcN};?P8$P{3Tobfy-t1H(&>arE+Rx9|jZ^fXB##k6PpS#k$F zMv55nkvqKoo!HRb_7b0x-Po*En)EsNZ>iFV%|vH!-xgC)+@cBZLOeAZwJ59~^h{+p zFRj4TPMYxIIt5GpnEL@3m;bVqww-`_*MS)=JbD0C6E=+oCkz2)@x}b__UwG0;kS#X zCA6nBe_P1xP8F=IOt@Rw+6!N6p1|T`#D4&2gk*Q9gXZ(qZ3L-4|L*@awUJ+=s|T|v zN{Y$HtSlo*3ZEj~b%fja@w?w8@*i9ODz(K8)=ujRz?K6Cq`&U_BTU8Ke4tDXd%0;^ zRng8|!SkGpKBz?n{Y+Jsgd}C2Ydo6IN(3A9knlaR zNQHC25BvI)xFae$uWrGIsL|hVi}g3>2GxPOR6_h-53_)&+e(G=rN}k+-b*O0q6xQ*?yY7AyE7S`gisIsHHW%{mRZ;eT znm?-T6@WD>t`EBnRt^iv|AB5`)IsYy6P||VRB4Ow1ok5OhuMtZ-SZvnTU#Xdy1ZQX zbG<7$2#wtSh7lU(*Tb1G27n_sc7$Eyn&)YPyWPj)laCGqa9D;;H3U6ajiMF~Q)D6+ zZwePZag{~mV|=awou%^kmG)CL0L<5D2ZufPoW?a`|OQ1GoXQglq&^>zgn? zgdfqEmflk+-}jRHpG48Tw>P7_`8&*yr)yCQ)8o2B=qJk-!bz5n9kj5(IVl9@V)^z| zlF5;9kUk3|X6Lp$u>9$;XLr$Ul_K4f+v7YMNJ0W3P!A!NaB?y|7Y$B7SeWTE8ns5A zXRBxbW17&Hs4gStA`hG|1E5AoWfM2K`(T+5`;-XENT0a48(<@1D8uO)uw>@MW!NTM zDkBbf6>`&_e`_&ntg&=5VhCu3H=;8EH*dPmLtdDsC936D8}$TfWg)D2GE&G86$qslvvR2G;h)NcfYC_>b#D?=tZfawll;gCWWlZKpxYKt5um4^H3#pM}(dA9lf}y3nU}8?{p^8m& z^WflEn%QF2ioW8nOVnh#_>bWss(&ZOkivfIo#J?J<;#0?tfi-t@|l7yEtQ_XIu7Hh ztGdSd>H_+UcA$&eB=&cOa&Bw(b0rw;IC%gZVCP!9m)!lV zf`>k6YMR5pD_fEI*6)G=EYgyh8bW*^Q>jD>KVP(Wy^(gLPa%y)D_f&ON+O5PGU0oa zUk;O$=(NavS$3{2kN> zhrz%DSZY2V=OyW@!9DW$SX<`N3;!a;2#-wg_wD+9dC)mIN(l5McJ1M}C&) zeS`iWfeS*2Y*_eLo`!Au2Qwg}?fR}9v}uJvLO~xrGuYIGuGozUUq`$UH=N63tO06@ zlC^+X@17k~eBoHBdFA@|Tfg+XNu_4DgP*N_`%e5Ru-SNEDK5%3RaelsEZfG5G;!K9 zRhJP{V*KZDMy#+)5rB{Jn{B4SHWywDQv1%e@mSTIyM}vwAW&u;{B!Z{XByuj2_iZV zS4yfGHSDiLPuUm_fHWSSsl4%Gr?I8g7%c$;0@Pjf*YQVfgVnjvtGG8&4)50lU%9*< zP7&UA{mW&my~n~^Iesq*Sn4SmXrTaU)DN`SsWL0C7@hjoBii0uDs@2%pZe!r;EA0a6qB7(@! zDUH%C!XT+2of4wJ&|M=Spu|wpF@iJ<9l|h#q;z+858VUj%m3V*%X9T!y?nTU8|K3k zd+)XOde&a-BIH(kQl21VC_(t_cs1^aVN}%7(HwAK?UVmTZ-4*(@fkrE;f!~4Mrh%i z53gR}_h06mD>fwlAPzF3#fmX-V48M*R8M3s*}D6-zW~pyFevksbwg%c0x_ULS9EK^ z6Xh-!3cY3t6}OsOgBI`6Y_4HE>sPK-WXk(I6dpWHcbEy8%e#5~aVeT{a@Bmim{UtJ z;-Dwkb8gM%!qF~aiHe41_1mf6_1SJr`+iB9_>q8sqv7HSK7GSd$c(*&XIc4Be0VKT zt6=Wqy#K+YN!-VqoY-n;*|@c@X~fCmUPR$Shv7^6b2A8r{ZQ%&`%ue#%GI05Rh*4q z6Qo0%gPE6?XMPSwKU^3>5Rm8}l?>(m1zqH8@>SJ`5JpafPcIFAUtzAJ*V0Pb=l}o`@yMg z-zk0iHiE{@e)+DrSM^zdT7Ra)$UFe<^>$(IETwYdX)+U%&-h9UyY-%2zg@fyrBfdN zD*;5G+c!Y;fqK)}5fjof2b4-Zcz|?wYaqN#Y+4-Qdi83t*K7vseUO~_JM5nHH8RwM zduHLwr*XdC3nP#5p1DqkB#%ei4S&97bQ58x=AkLgxyeD&6+A1C&0>4>icNw!Ww{i& z^JFh_-1=O1hOxp{4F#8LbUKaPWm4&S(Qf zXaA(76?1dbb!Hv+gQbT@j*s3cQKiqIBP-#3eISsdtFrRhz8Wp_XVz_xj$}U3R|n2! z+b#osjhhm1hr0P=rPtQ(Cil>Y5r9U11aR#*SqJhiBb>hUbcJG}BDr+#_R~Sh^tbvE zv-+?MB`tYXBl0|XrVxIEQdsDybt>vC9;(7G0U*mRw7I$r*V=`|py(?1#n0OI{uQM@f$mEfz`XwQ z2wa?gw%XsMZJjRU!K+>~(9`qJDI?V)aZtpf?R#baYdZs)T${Qex;TBK1`l-Vc+?9u zwa7@H^LiKk^9SqNF1gjOS2I1`>=N#te29vTV8VL5$$Wp$2qcSG158-W)Jp#}%iL3CjBov)3dBgf6r&q8IJw(&VFd za7PoZAQBIZEl9ed>=DwqFIB|H{XO~7rQhA~$l5REbni7x2CeuLq9xy`y_s6Otx<%Y z9Z1NtXQvcQMJ6V3LLV%u!?#%PT?)QaMJSUa-@K=iEnEb0bD{Th`2C+joyr@V_G%#Cpb| z5w^z?K*#zkH&gjNOhSO5en-ztet`~>q>@Z6c{a)-5YR@T<3h!ylRfuion4G>nm*BB z0s+x!87wu=rkYPeRN>MB3AM4;j;xbP z@4Gf#)7fo*)m&T8jGXX9$(U4>A2tUd49hotPHj~Ej%@Ksv)epYhgAk-pxYlJth-Q9 ziSRJ#6UJ;jY|;NlKuqM9Q0tLggdyCkBPk&vm(9u7NNnIGVDhQQ{ipB7@YkwHliaoU zcIsx~kNcR9dh=DQ%$tyVEVfye;TJP~O+Y5Jd+h5^pS#A-(s#5{aarpgg-=FWeOBf3 zKDf={ZLzz)B{7KdBa=4(k@e;EgEig{ZkTC#)E4bz&_>Ztt9uyJlp4)$HK5bJ9_>i# zqH{u8Gv8^&2^8t_8F`MVCH1nL`wM0G9*q_-gK1v6?{>wcJ9HYqbKEW%)O^S9Q}g-Q z8*F2jK=k41pGI9671cU|qdV&Q1#fy~w-3C=cgX>s&%0yWaZ)?BIUZ9=4$ zf9>Pj1RgUoKT=jW{cc~UC9j;bE=E&uDwhS#H_o1=kL=IjWj6X5WmwpnTg}!4?wZs0 z;&IDT8f@|TZFF-rr(JJax8G583z9H_g7U0iiA;=n?F+lcdtJ^21ajYc)xH* z9+4#{S9Dk`w-uG14dk$=IZS1-r*)ba9fpAevQTiZ%g17y31{0pSW;k%ETA0{SQ&eg0i z!U(3(u5V&p^5(zDXjxUrA&h1PwO5APML~>w^2XIR7;k6;%f+vf59;n=RS$To40A5` zs7<`c->KVg#n-YgzayiaO-YgRnfHIrOva@nd6kdxopbw)Tn| zCqBQr>4c$9G-s_XJtLzxB{VfPwW}>c1+LHHf4aI?c;Dc;I51pYtcc7W%z`TX(T2dix7Z(5#xcK=#oE3A`5#f8>X~RJd8|XsVezrW{)q~_&(l$4+{Dzl#`BN@48?|)G zviB|!9!nNYQ@(RGoo0t_HMPFJ=t(HSWlE|-4e;8F$z=StZ6)UWjV6g;zQp5}^#M^6 zQvBWr*m{&^s_Ol^P2MY!!+fRwznV-A)6YL0kAUDLwDx4L;A5kB^t|psBPO z`x|U}C!S%;vV0m8*tk|{-P02I@{?+ER(PL~+6>Eia4=w;|7o&pM1ADvhpEBA>FLSO zy-0M4{&6#oU@RxnuI>o-imbh-u+ZG&fi$J@`C`zzzpl6g&;h}t1(G_>eoT1_%OC}A zo7o3>aHI@Mm(WG;p&wctAW->F)%Py-1X49mw+X&0Lz=ov9*UlrQgaX%{L@z_;ZfR* z*ZJ&U=drE<$$>`L3>|4Aje|N==B9Nlre^>{G;}ir@*MGB-4s#Bx7Rbk4}C;kwKGKg z{Hch=1=zfDviNDo^QJSQ8G&7dH(sHMU*oj@IjXTU#eY{*kzk?}x?hLf|9d?&`VC^g zC&E>SCpC35>!JbJQtN#@{(=F*ZEr8F@IwLi^pk%Yuf6$%6XC?gIkYqG`)xnA)znBx zl8%D?*)h<{cJ5c~3cmv?nx6&eIw1GBCT5RTV75zw0zi%Z&=tu2cvlpb*8uBFkRM?2 zT-w~M8KWdfVC0sQBP6{1t8AXsCP|bv!acphwfJ-f(-BYonn|HD#qdQ;ZvTJIlWS2W ztV5e}T%w?my%_=49F$)uC4+|n7Bf|j4u9@%i&9|TD>n0E99CMcynx{WW=Nj%d#~&@ zWGX$gE_Jy1r2tcjW6Y19#RLLbdI1zpWg`b78++681Ei zoD`1xy%xXUYYbrphQ(18*Den5->B5jy(RT$Q!4MARAgBJi4ZgV0>$n);O_SEh zfVhWIDl?wGsF7x1%#U}Q5H7P9qbWkR6U+VxN(K=Q5_-e)GfFEDMo$(h zuOU2fNB?Rrp&qe6S-$*rlCz)d+Bb^FFvFiltAyscit_IH7OEk1;GDmSgzi8A;5e>Lw`grCFLp4-zTw-dgFR0ZqUQ3g9brCLB!%ueVyiIM_fa| zI9m^k;!}3ooWB#p$-F<`F12-dFUp|yxKfi z0NBhk>Zi#oK66t)QA@4FM9$6;b<1Jle88kfG?{|p64?@E~vs*6ytx+Yh&Cjv}jfyz^5`{nzAEzjLAZ>_M%18stuPKxJ(duB<%!1g6+J5HBt zR7U)e6ajsGV==msT))Hc&l-v$X~#=@Z1;i?^o(`ybaj#L-8s~v@A28x(Pk$x+ko%P zv^7NK0H4i!2N7_Mljv=G!qLM4q$sSnKojJvubtg1!jp$sGrvCg&EsX${8@T4*bp5H z?TV)4(m@EWFSgj0TwZjhZ()wb>A>KKFA%@|y7q8^*h7FHy#d9rq6GO)Le)!~J zwmB@VfkynyXyMO2Tes|GCEE$pG_4*l8C?(QYrlj31-E(+F`I#qK^0H#py0=34&Gxpxwn6K;Cv$3fKE4gL`h%4J zxD?K3{@zW#HD1@m=|T6uOR|06&TDDf`Fib|Ouv;#tDar*$alcZ-{nJLt`no8(MKOl zUQ||8ApV0fjb$De>DOK7(0}nQjNup<)6md8z0M1tAHBMaN#me%f!WH zRX7$#86^WFk5bA;8Pk%1MpXOB@TocJuLi|7R5R>)C(C~;{*w#XXQz5--kpI$#%G{o ziZ##%hOHmDDNUZ+#TkV8XAOb z=l!UV66rqsQ`SBcbI;4mlSUV&>pu@w4$x?s-mS(#uP8_dxp>;2L}!pOe2Ow!U0XA3 zp#}{Nl9M)h#}}D;YqZa-XG>4?3wg}(4q5ED?HsF5oEO<*?ETosfxhK@o~CS=z}i}> zhy_)(uBqQ<=1yrM{litWu6|Hd53dAT(yqwo=$~^LgL3Y8KvGs#lrOGx8z2MwZ&-p| zaXz}{%Loj_*I?E=k7{qH)_=o=8V^aLPe%5}v$Ent0rAJJ_w^oeFLqJY#wvIIJxrzk zcEA6BL%VrnWJkrduqm=`8W)$!b~{!b9(AW+3#p8z4Vj*l`{hm$ZZdihrS-k zYi-`D6JiVnUYObMu2fnP1MI6|XwdmMc-HS06c#BZQn zHf}N0Ta)D$Jx^7w-uRioz&Ck^Lx(}Y*v}PGj1*nNe!ZdYyx)6{-^INJaT5R_V#mXh zxn6DCl=69t9rRN+wHhZ@V5XJ~n5j{cqtK83db#+D+m89Yy9yDm<+ipYT}7Z&aMu9V zzpnh^;=;dmSU?N^ywO_K?KH9JCYaAGvi$*7ng`u9ZX8HZ3>TZ6%j~VKlYshe|G%k< z2U>Z8FLe>#8=&3cY|;=wKN8zRzmv|pJ{}V>JIkn3M&*V)}J>}u&5r1P; z4eGZ>IQ`S?zT8k5x7|>I>888aw|!N=Tl~$l3m1%!b2O}6-^yEZw4427`45MzdGP#7 zc*;*xD$(dDfGo{5R^Xmc6Z5W0-*1RTk0uEu8U+H&!-womPVq$yRA*;bJYE>lF48H! zD82hjhBcHwK}NBDa8|Ddwe^#hKCGE(e2Lzd2`#j$)~@(8AM+n!8V7J{(l|6yFp`-B zcFLl3hP4?U`1O!vT$#W&#p1_V@1>|q$B2@|S;OH%#^A?+ElWDhN{V%qiws>|O1jL9 zEx#h7pHKqU_IKA!db3vttx?iMQmr9Nz5$*_HGU*`?d5MZCMd>ytPe#V3MJV%=E=%| z`CV=Fx3e4sF3fa_${z^ZNX|IL4)pakqWN_HVajIE_NKa*u_M*5%rR~@yvj1z+Z_3C zq#JDe`YOUl4IMCRe6@3*dT%k$g%>5GN@&R%20RylX_dv5i=KeK&SgFSJ;#Q>a^YLD z$J{TrcO}WvZM02HOru;J=DonAPflDUu@?laQ>MnlelDLW-PFS|cGr7r^76H2yCDHU z+4F{77Ju~(6ld~I?(JfWMy6q3--h0A{0_T0nprHbtE~&ykgF>iu4b$l+Q)?*t9#yQAivT+}` zpF7*iDo&1TJ$!dp6BEXvWttEF9CZVwgFtK2zqrn*M2NE%9M+cK znh6vQ+?XvLZIHO@;#UEOhH}@fbdTk{$eNmdQYI3f-R~(}8GdKB%uUcQGd#5m`=!a8 z_cw_KD3sWzDXgIy9N33YMUMr~R=pAC2HNQDZ9y)xsMNPQkB;&1Y9Wr@)1eU&afq)j z{O)>KTY{P~iR@bO)6)jUUtOQ+%Rx}jT-%tK6gRXH6V?JeVLh}xo~xwZ7^iWbmsBlB`cYGgTN_M)3> zlGtW%x;-3vL?L=xA6Zhnk~xqAKwEldAHX2nYeOwLa0M$oZ1tCHUncFya9P5?B&QYW ztM^^x%>ClT!!w72!<3ZxWahXhJX|-s*2|tBbXDrIJuW=fH`qkz(4M&#A8+b&R8;s% zE^;n!L>gndyrNb&*a-np^HnylX^)&7$UDt!2j8nnTa&_hyVG#$Tsfste|wXy4X}LX zBdW1!$@}8%F5djE)&bN)eK~@UV`2a`Me=lT!85&AK2>sL%Ojko;%?o0W`Cg1&TN~I zAe;Z{SN43inh*o(ViiS}FoPPT_t>LR=b96Dg58t;Qae=o&Q^EJqr|bE@02KJu)Duz zgZR&FCHML5fH)$62j=<-SKgC@>^1sPZ+V`ME!^D}nYO1CNcof{&0Ir13T;gmghgP>;+wPGXvYf zUtU-H%cCghQ|GCQSGF4*7QhT9cz>DCIU5&s99(9UC|Z!U2f~n-6Iq4*)Vk*hxAF5p zh~v(-BUAlnkYIK*5&zG&|Fpnukgo+eUnyyl#2-KGo_^%U|7y;@DCtuTozPet!^qjy zGwqa;tDB=Q_3P*t@O6*ppA1Y$TqWQ}Zl7Tk(FG zyNH);>TS6s{y^Ef|BY}^*lC$v8mr*kq(4hkxC@9cx}lt=fH#?e+k)R`xG0_fUbv-# zL!?ZZo9!NgM4lObJDf<@T}2z^D^6$j58x&j)fQ0;VyL)hDgaMOO)v{jg1z)Q%5O_~ zWV?`(z8SCD;dsW!r|~o$?mjK1)4Z?6FSbitfT!f_Em<;i+`a6aUTC$W)DJJz*m2$% zxv(toK9z0xTs2L^Uvl!brR0PqkKHy@E?*#hW5me#?dNhg_xKqZ)W$<6B zTY_{9^zuR0lbfI+7qv?xD>9RfeywwcrNrugHnSFt&faMEoQjL}j1O=<2I?3`3QzPv zkwm~b5QKuFn(605r7;(sUlszsajt@njzaWXlJqOpD+5tVbC7S@G^6%7hWm4CRpX;a zvCC9wx{qb2oAJ~Q_r!sj(~UIOVxn>KRE1X(fq0}%}zq6!91dL=i0JU_P9u{ z;QUswt^rzCa>SZv>-RmlzuaO?>~n)*Ax;*uxNZc$+wWBvg*$(IVKy$lbBXbF6m%Ba zB#@*R9CWz|TWo-p%(G>NRO>4!Op+SZ4uQlf%J@Y@l0zgbWf_=p4iywCBKJ3k1p5ov zli3r8kdAta9O2>T=uY>EopFTz@nVpuX{U+N{;7JXNU%%z3ZXy( z2J6ayFZe(u@^QSut1&0XRD*x#`$xClEUem1mETMxa*E}Cym8mZ!uwVHvD}5F7QBL) z9;@EsptB|$M`Km;CsHp^_Cc?swJc{$N328vpTw#e+L=d}w&?hV&Azr-2D|LPhV z>eP4v0mS!ApPO!>?s%`3iYIU-+-lX+)^htNa>1MLr{lhwqM|{HfHhpofo|L!h4!no zwxFu-RgDPvY_Bx>FgZS$p2+d2Kku=`!rF#LYKRXyhV*R<4KF9^V=D|aIqtF2;kHwD z0Wvt1bT0MyW1-TydZCpn;xLEWfxN^V^+2mHV&FA>h57GLKY`Q2GH48NPW38bmr7=j z$S+!7ZuWjB{~{CUd+T+q*5xwLZf*UsEBd`oa~)lU9;)o!zKgSEEqCou>^8sW^BbE< zWRI=kt|$7a;B=C8uY#YzjU1&)ILv9$FKIArcr}Jjmk=69`r0&>n2%cSNy3|49JAL@ z$IRnRq%&B_{Br#{G5NQ@R8l z2?+!eO8V@0ANgG5c1t6Prp9_8oNw7DATB`Cz}Hi^X#682wUp42q{!{S zanlU#ZAV92m|&FVeM62RfR_+BMvuu~0?3K=>(lVQhWx|n|AtuWb7xptkY ziR|H%ZoE*2|3-#+=ltXsc$sx=3b)dgRQX%}p1+M_GsJ4b|NZH$i+`4@^PKr)aBGEx z7K`SW2Tnn;$70o@r3$9!N8&x8g&oTkN;f2l0s4$V*Jf(8!FX-tzU6<3m-gPN?|Lx%XMiAhYe_t5-oio6i7VNNI5rxL{(!{@iNVL4nPI zZ}=)I+2Nt#NVK}f4UPA4-}sq$6!+vUZaT$KoMhI&w` zX=6qNI2AZJxwI{kp*V#zi~CcR_H)F1i>pq%x>nDYLv3uGjzqkfNx|nCO(%4uV0Yn0 z1;9TO7#7wxqMj<{(@Sj;^6+1un?&zl&4C?i=^G3hT#QTPMHOR>D%pf)YL@J@mqEcX18KbY_6=1S<8=ti4z+u_LrLFJ?85!ZrV3o z3gaDDfWk+1;1Lj$T?X=hKLw6Zi|nGV;ZV4k3(>m#?Gjl4lEF!{tC`@zg9;t1ep<1G zHv{B{wkSx%kB`qHy9p0LAaDQR^S9_ONaE?p{P`jOH%vNi>DgQVJHdZfn#Zhpa97QE z%7*QjKl84#gTlr|L$gMvWH_{1`3Za?xqm!QZMaEg9Dn_x)+z+Xxo-1o2IYl0&w-`} zGcqSQ@WDjP#Ezn6hGWmH)4aF;ICVUEO8Sgx!)cL)jFVNf`y-Cs6v}29czYn{ZO=O% zs6@sfL8hiQSxXfDPXuzcV=5qI*9mLFs3}_&6w%Y7~?Z) zQUcX?LY_lX8`Zy&u%415_B`8`52#p&?k7&0j(J|+P`=y3mGw{GoaQKVmWJni?644X z^YL+cN!kT;L~}n4&{@#X6c(0kq6!QDc(xN+*w}RU2n0GEnCVYlop!tu5fL6AC7|3W z`QVvijG`!j1kOaq1yuu6jnn}*R%(~^-n1X&u=l@1$U3jBp)ae>3t9Ql*>R3iHltoY zhB^ZS<1{)@bhML~m4D5hBf54MOpT3=>>jEg>;HL#K@|SwHR^8^Eq#ykx>I4vuvZ}` zhn0Q-%5bxVhTiRg3_FAGPPg(BQ*v}{IKD~Vt7};Xp9A3Y1W$XLC4k~vGiqjN$Z17U zNH)VwXBw;P%ZT|Mv6#(=wyRUBrsZV{#xuE?fF}8Aw)eYC@Cz~!OhZ&MKz3KNPNRva zBA>&9J-auoQ(HIlmu$b7*xD1&vzYedg0-86@5Q#H9>*x`#(cl6C=IDLtsABB7Ezp8 zF%F-3SmWZAsM5Ef-MD(fsa06Ch6@qMw-Dgo=qRyVax{Ftob~?3nLY~4gg`iQSoUGp z1hr?O&(3OuR~>8$i`(qA?p3g@<@tp#xPnaFI2OMzHvX1B^HNrc+X@n0)SRyw&6xB% zZ*o4vqah*=C2i*vciHHkCQ0iFDA4xunwqLmnsxZbEb*L~X|iK!Ih+w35zVPn6E~dx zw5BGcHA%e2X$1y?);6jb*4j@VbTKDsvLW@Bc&eI=^EVtt8}b|0@*t3M2@!~a%ia}h z%zM+zZVGJ;IK|~dHrx9iOmy=hBY;ow?Ik%1q^s7Xt1XF?3d&HL0m zIDW|HW*{I$XFNEp<6x#SrcniR83xu1}|DtR%K#W5dFL!r*$m1~R!`TT+sX=kq?(o!z0fd&;CsV`+XjqXOqRxt|iox0is(e#iJEo zk#pN0zX$z~Q&o2+%q&Wp8j+Mcqwr@h=dB-bUxKV3AYDBojgsP$9%pOSFvSRRHOp41 zeKxdpFmkj1UT>=^WPsGAtJCaxjch}XBya;m{74m`gw$}^=Sz)?Q=dL{r$ipEv=1c- z*>?XVXO2jg^jdEF``UuPB-2npXVBrn=}f7^-8}fb=XK5Ufe7@nhuz-qYP(Bm zPV~Z4=D|1^8@K=kK(xsg{P+;K7YvLH;hQclGG>@8yIwN?==h{8w;rB#p4lEdKO;9v zXO}hKxUCU@_HVMKGRQ2_EZ90LT@=*J3ZHKMD3#A=89eGtvm(4Jbi0{D-8knYo((HG zQmL;2pZ>+#DmG1NdP!(pr~&%6yIagH`c#}!85BWC5fn!zGn6wto<18A@$hG7NZm-D{Ic*{;*(ra#05&mIC9z@Mb$Q<&TdAVgsc59iyB`M49wl zd9`Az6x@A;6sLbN6V}gsP$$ix?@%gxNl&d@%!xA$iP69uRyZ_iaHnSh|M@@A1r=CuNqiRi9m7ntsC(bp#<6uNUH z^`6GH*E}yCcVY zb9gwa&V8>?qv_glb!Oped}QQq=&9Eu_9XuQWr1d<=o5A`Gof?@>wWCYU_2OVJ4q=n z*0`ZM@jI)0_5%WSsOS7mbZ(vY@%F*6u)WiS{<~1iw(m?_lgum+9<&yJjd?5GF?LSsiKXxbh0idEk|-eKR!Nj6r6 zb%D@$Zb6yE#dsER-ttQ|O+_QoI9u>#3q@SfhwkqRItdZZR#qhRu#*$lsfPv=jtr!k zKDMt|9JZ}lnAQvpUNhQJ`7X+;^}#?LKY#vAFed@4sadi1gIa|DQeVoVM>+R)Az>SB zru^0+t)YU3CXs#~$LmLY@pnz0Yw~0W(~4`ZJyVm0i)t5>%8ny(iD`jqLqpvRqxK_cUwd z%{u?Zi_kE_uR-5S%0Zn{G+c%l#%qZUzn z<$(f`k?6IJ2lqMPq2s+C;{wO>7*H*E!@t6!jgCR1Ze!Y03!x3SSFdc@SuJ>xy)3!T z|5)hSTtzlNuo$nJ=y4z&NI)-`S>;2z%+F8WY?h3V`rh`-ZNP#M|0L*V3G;9kbq7wi zpjRX59$~^wlJ3Txcgi#0R)~k-H8n8O28Iq)mD4P4sq`)Sc10gu@jKl;@?8Bm%3gHBBw zUpkd{_*R?m#9I6=9QAjl?IxADx=PgNirQxaHtlCdWzPrrt}sVx@J7d_a|-p;rjU8n zA@`4*q9rpkPPk0!Iu2i2XaMwa<;{&)uyZxDdt(0`EfzoA_ehPDvRd%bDFb#g~o)Z#n}X* z65?jJJKsq=Ucx>TjV-}8rz6iM#2d{GUT~4k&H8%mjzI6O8+Ci=zRO@{T_~;hE-kNT zxO91?p~2O`vRYam*8{%5=CJVJ&D-?AwO6m|5-;X;Vpt{-vE&A~O*GNX z5{dasN=Jd4!-$LPx_T%=StSf<Iy7@|J0WC%y^Uy4LQCU|1SGU$NV^yR7mJ!pr+PHrhGI6vaGau z`3!+jQ==S*ecH|zov=LFoQ`hAzZ=68E@fZXq8n%2-8Ks@D4MRu$eKJBf-|-5j;Lhl zBK}u3Qltaff&xQgb_ZOdtM9S~(?Mie+au~d^|VLBDnVL|e2txw_vY1dtV&?5tci#5S#Wg1Z|5|y`n#R- zZ|^oYWD@6!UAt)2Zi{H(8!!6!9&WINYT*YyAl{4z`SEO4NaptBE4Z1-JK-(hFp+o8{r z)TWmGM4|HSOLs2~ZEOq%9BdxDSOHvi`z;9h8|k*)KXL*Ia^ zi6ot8?`+id#dV+P%kGpiH$`7j%g*YhJ=WO=%kRUdI`*ow!`_%)M^V|V~k zr=08i_E2?a$&%pk_$b$yP87CNgPe6kHK`l6;AT1?4AqFbx+GB+n@w^7g*$C6va z8Yn6MkA4rPX|nzIAMWqBZ{$AwAO7h7`*Htw1^({}{NEM$|FHtpWw^I8V#~$6wC;cR R{{z0>DyY9Hd2JT>{{TI_K{o&Z literal 0 HcmV?d00001 diff --git a/misc/reproducing_sailr_paper/README.md b/misc/reproducing_sailr_paper/README.md new file mode 100644 index 0000000..f960224 --- /dev/null +++ b/misc/reproducing_sailr_paper/README.md @@ -0,0 +1,133 @@ +# SAILR Paper Artifacts +## Background +This README provides instructions for using and reproducing the results of the SAILR paper. +This will give you instructions on how to use the old **submission version of angr with SAILR**. +However, if you are looking to evaluate against SAILR, we highly recommend using the latest version of angr. + +The [SAILR paper](https://www.zionbasque.com/files/publications/sailr_usenix24.pdf) introduced four artifacts: +1. The [angr decompiler](https://github.com/angr/angr/tree/master/angr/analyses/decompiler), found in the [angr](https://github.com/angr/angr) repo. +2. The [SAILR](https://github.com/angr/angr/tree/master/angr/analyses/decompiler/optimization_passes) algorithm, + built on the angr decompiler as optimization passes (described more in [#14](https://github.com/mahaloz/sailr-eval/issues/14)). +3. The SAILR evaluation pipeline, found in the `sailreval` Python package +4. The results of `sailreval` for the paper (tomls and decompilation outputs) + +Below you will find instructions for using each of these artifacts. + +## Using SAILR on angr decompiler +SAILR is currently [in the latest version of angr](https://github.com/angr/angr/issues/4229), which includes bug fixes +and improvements over the version used in the paper. +However, if you would like the submission version, you can use the [angr-sailr](https://github.com/mahaloz/angr-sailr/tree/be3855762a84983137696aa14efe2431a86a7e97) +fork of angr inside our provided stripped down Dockerfile found in [angr_sailr_dec/Dockerfile](./angr_sailr_dec/Dockerfile). +You can also use the pre-built docker image found on [Dockerhub](https://hub.docker.com/r/mahaloz/angr-sailr-dec) (~3.5gb). +Note, this fork will not receive updates and is the exact version used in the paper. +The commit is [be3855762a84983137696aa14efe2431a86a7e97](https://github.com/mahaloz/angr-sailr/tree/be3855762a84983137696aa14efe2431a86a7e97). + +To build the decompiler docker image, run, from the root of the repo: +```bash +docker build -t angr-sailr-dec -f ./angr_sailr_dec/Dockerfile . +``` + +You could now run the image with `docker run --rm -it angr-sailr-dec`, but we recommend using the wrapper script. +You can use the wrapper script that will run this image for you: +```bash +./docker-angr-sailr-dec.sh --help +``` + +**NOTE**: this mounts the current directory into the container so the decompiler can access the binary. + + +Verify your version works by running it on the `motivating_example` binary in the root of the repo: +```bash +./docker-angr-sailr-dec.sh ./tests/binaries/motivating_example schedule_job --structuring-algo sailr +``` + +If working correctly, you should see the following output, which matches the papers example: +```c +long long schedule_job(unsigned long a0, unsigned long long a1, unsigned long a2) { + if (a0 && a1) { + complete_job(); + if (EARLY_EXIT == a2) + goto LABEL_40126b; + next_job(); + } + refresh_jobs(); + if (a1 || a1) + fast_unlock(); +LABEL_40126b: + complete_job(); + log_workers(); + return job_status(a1); +} +``` + +## SAILR evaluation results files +In the SAILR paper, we run an evaluation on all 26 packages in the [targets](./targets) directory. +We generated data for optimization levels `O0`, `O1`, `O2`, and `O3`. +We also recorded the decompilation on all these targets with the following decompilers: +`SAILR`, `IDA Pro 8.0`, `Ghidra 10.1`, `Phoenix`, `DREAM`, and `rev.ng`. In each `sailr_decompiled` folder, +you will find files likes so `_.c`. For example, `sailr_decompiled/ida_mv.c` is the decompilation +of `mv` from coreutils with IDA Pro 8.0. angr based decompilation starts with `angr_` and then the structuring algorithm. + +All the files, which are about 11gbs in total, can be downloaded from [this Dropbox link](https://www.dropbox.com/scl/fi/ez5ra4yzxrynio7opxquo/results.tar.gz?rlkey=vi5ntdw48a9ohfnd0x8p32ael&dl=0). + +After downloading, you can extract the files with: +```bash +tar xf results.tar.gz --use-compress-program=pigz +``` + +The will looks like the following (but with more files): +```tree +results/ +├── O0 +├── O1 +├── O2 +│ └── coreutils +│ ├── sailr_compiled +│ ├── sailr_decompiled +│ └── sailr_measured +└── O3 +``` + +To further understand what is contained in the `sailr_*` folders, see the [usage](#usage) section above. +These commands assume you are in the root of the repo. +You can now use the `sailreval` package to aggregate the results like so to get the results from the paper: +```bash +./eval.py --summarize-targets ./eval.py --measure bash libselinux shadow libedit base-passwd openssh-portable \ + dpkg dash grep diffutils findutils gnutls iproute2 gzip sysvinit bzip2 libacl libexpat libbsd tar rsyslog \ + cronie zlib e2fsprogs coreutils \ + --use-dec source ida ghidra angr_sailr angr_phoenix angr_dream angr_comb \ + --use-metric gotos cfged bools func_calls \ + --opt-levels O0 O1 O2 O3 \ + --show-stats +``` + +## Reproducing SAILR paper results +We ran the entire pipeline of SAILR on an Ubuntu 22.04 machine that had 40 logical cores and 64 GB of RAM. +With these specs, it took about 8 hours to run the entire pipline for all 26 packages on the O2 optimization level. +If you intend to reproduce the results as they were in the paper, checkout this repo to commit [8442959e99c9d386c2cdfaf11346bf0f56e959eb](https://github.com/mahaloz/sailr-eval/commit/8442959e99c9d386c2cdfaf11346bf0f56e959eb), +which was the last version with minor fixes to the pipeline, but not edits to CFGED. +If you plan on evaluating modernly, use the latest commit, since it will have stability, speed, and other fixes to components of SAILR. + +Due to slowness in processing of source with Joern, we recommend running the Joern stage **LOCALLY** and not in the +container. These commands assume you are in the root of the repo. Here is an example run of only coreutils: +```bash +./docker-eval.sh --compile coreutils --cores 20 && \ +./eval.py --decompile coreutils --use-dec source --cores 20 && \ +./docker-eval.sh --decompile coreutils --use-dec ghidra angr_sailr angr_phoenix angr_dream angr_comb --cores 20 && \ +./eval.py --measure coreutils --use-metric gotos cfged bools func_calls --use-dec source ghidra angr_sailr angr_phoenix angr_dream angr_comb --cores 20 && \ +./eval.py --summarize-targets coreutils --use-dec source ghidra angr_sailr angr_phoenix angr_dream angr_comb --use-metric gotos cfged bools func_calls --show-stats +``` +Take note of when `eval.py` is run instead of the docker version. + +To reproduce the results from the paper, you run the following evaluation scripts that will run the entire pipeline for you: +```bash +./paper_evaluations/all_packages_o2_table3.sh +./paper_evaluations/coreutils_o2_table4.sh +``` + +Run them one at a time to observe their output. + +Note, you will likely **not** get the exact numbers shown in the paper, but the final conclusions on the numbers (i.e. the relative distance of each score) should be the same. +This is due to a fundamental limitation in CFGED, which relies on GED to compute the edit distance between two CFGs. +Since we never know if GED will conclude, we must use a timeout, which can be affected by the machine you run on. +However, for most cases the timeout should not be triggered. diff --git a/misc/angr_sailr_dec/Dockerfile b/misc/reproducing_sailr_paper/angr_sailr_dec/Dockerfile similarity index 100% rename from misc/angr_sailr_dec/Dockerfile rename to misc/reproducing_sailr_paper/angr_sailr_dec/Dockerfile diff --git a/scripts/docker-angr-sailr-dec.sh b/misc/reproducing_sailr_paper/docker-angr-sailr-dec.sh similarity index 100% rename from scripts/docker-angr-sailr-dec.sh rename to misc/reproducing_sailr_paper/docker-angr-sailr-dec.sh diff --git a/scripts/paper_evaluations/all_packages_o2_table3.sh b/misc/reproducing_sailr_paper/paper_evaluations/all_packages_o2_table3.sh similarity index 100% rename from scripts/paper_evaluations/all_packages_o2_table3.sh rename to misc/reproducing_sailr_paper/paper_evaluations/all_packages_o2_table3.sh diff --git a/scripts/paper_evaluations/coreutils_o2_table4.sh b/misc/reproducing_sailr_paper/paper_evaluations/coreutils_o2_table4.sh similarity index 100% rename from scripts/paper_evaluations/coreutils_o2_table4.sh rename to misc/reproducing_sailr_paper/paper_evaluations/coreutils_o2_table4.sh diff --git a/sailreval/decompilers/angr_dec.py b/sailreval/decompilers/angr_dec.py index 6a8e32a..e08cc97 100755 --- a/sailreval/decompilers/angr_dec.py +++ b/sailreval/decompilers/angr_dec.py @@ -13,6 +13,12 @@ l = logging.getLogger(__name__) +class StructuringAlgos: + SAILR = "sailr" + PHOENIX = "phoenix" + DREAM = "dream" + + class timeout: def __init__(self, seconds=1, error_message='Timeout'): self.seconds = seconds @@ -43,61 +49,53 @@ def _get_angr_dec_options(param_string): def angr_comb_decompile(binary_path, functions=None, print_dec=False, **kwargs): - return angr_decompile(binary_path, functions=functions, print_dec=print_dec, structurer="combing", use_sailr=False, name="angr_comb", improved_restruct=False, **kwargs) + # TODO: update this when combing gets places in master: + # https://github.com/angr/angr/pull/4166 + return None def angr_improved_phoenix_decompile(binary_path, functions=None, print_dec=False, **kwargs): - return angr_decompile(binary_path, functions=functions, print_dec=print_dec, structurer="phoenix", use_sailr=False, name="angr_improved_phoenix", improved_restruct=True, **kwargs) + return angr_decompile( + binary_path, functions=functions, print_dec=print_dec, structurer=StructuringAlgos.SAILR, + name="angr_improved_phoenix", use_deoptimizers=True, **kwargs + ) def angr_phoenix_decompile(binary_path, functions=None, print_dec=False, **kwargs): - return angr_decompile(binary_path, functions=functions, print_dec=print_dec, structurer="phoenix", use_sailr=False, name="angr_phoenix", improved_restruct=False, **kwargs) + return angr_decompile( + binary_path, functions=functions, print_dec=print_dec, structurer=StructuringAlgos.PHOENIX, + name="angr_phoenix", use_deoptimizers=False, **kwargs + ) def angr_dream_decompile(binary_path, functions=None, print_dec=False, **kwargs): - return angr_decompile(binary_path, functions=functions, print_dec=print_dec, structurer="dream", use_sailr=False, name="angr_dream", improved_restruct=False, **kwargs) + return angr_decompile( + binary_path, functions=functions, print_dec=print_dec, structurer=StructuringAlgos.DREAM, + name="angr_dream", use_deoptimizers=False, **kwargs + ) def angr_decompile( - binary_path, - functions=None, - print_dec=False, - structurer="phoenix", - use_sailr=True, - func_dec_timeout=600, - name="angr_sailr", - improved_restruct=True, - dump_line_maps=True, - dump_early_metrics=True, - symboless=False, - disable_opts=[] + binary_path, + functions=None, + print_dec=False, + structurer=StructuringAlgos.SAILR, + use_deoptimizers=True, + func_dec_timeout=600, + name="angr_sailr", + dump_line_maps=True, + dump_early_metrics=True, + symboless=False, ): - # - # Do dynamic imports - # - + # do dynamic imports to avoid angr being imported on sailr-eval import import angr - # TODO: update then when everything is in master of angr - from angr.analyses.decompiler.optimization_passes import LoweredSwitchSimplifier, ReturnDeduplicator + from angr.analyses.decompiler.optimization_passes import ( + LoweredSwitchSimplifier, ReturnDeduplicator, ReturnDuplicatorLow, ReturnDuplicatorHigh, CrossJumpReverter, + ConstPropOptReverter, DuplicationReverter, FlipBooleanCmp, ITERegionConverter + ) from cle.backends.coff import Coff - try: - from angr.analyses.decompiler.optimization_passes import ( - DuplicationOptReverter, ConstPropOptReverter, CrossJumpReverter, FlipBooleanCmp, ITERegionConverter, - ReturnDeduplicator, EagerReturnsSimplifier - ) - except ImportError: - DuplicationOptReverter = 1 - ConstPropOptReverter = 2 - CrossJumpReverter = 3 - FlipBooleanCmp = 4 - ITERegionConverter = 5 - ReturnDeduplicator = 6 - EagerReturnsSimplifier = 7 - - # - # real code - # + # setup a CFG with Calling Conventions recovered angr_name = name proj = angr.Project(binary_path, auto_load_libs=False) is_windows = proj.loader.main_object.os == "windows" or isinstance(proj.loader.main_object, Coff) @@ -120,33 +118,16 @@ def angr_decompile( if cc_failed: l.critical(f"All attempts to run CallingConvention Analysis failed on {binary_path}.") - all_optimization_passes = angr.analyses.decompiler.optimization_passes.get_default_optimization_passes("AMD64", "linux") - - # decide to use options in SAILR package - opt_blacklist = [] if use_sailr else [ - DuplicationOptReverter, ConstPropOptReverter, CrossJumpReverter, EagerReturnsSimplifier, - LoweredSwitchSimplifier, FlipBooleanCmp, ITERegionConverter, ReturnDeduplicator - ] - if is_windows and LoweredSwitchSimplifier not in opt_blacklist: - opt_blacklist.append(LoweredSwitchSimplifier) - - if disable_opts: - loaded_opts = [ - globals()[opt] for opt in disable_opts if opt in globals() - ] - for opt in loaded_opts: - if opt not in opt_blacklist: - opt_blacklist.append(opt) - - if improved_restruct: - # improves structuring gets boolean flipper - if FlipBooleanCmp in opt_blacklist: - opt_blacklist.remove(FlipBooleanCmp) - - all_optimization_passes = [ - p for p in all_optimization_passes - if p not in opt_blacklist + # remove optimizations from the list that contradict a structuring pass + deoptimizers = [ + LoweredSwitchSimplifier, ReturnDeduplicator, ReturnDuplicatorLow, ReturnDuplicatorHigh, CrossJumpReverter, + ConstPropOptReverter, DuplicationReverter, FlipBooleanCmp, ITERegionConverter ] + all_optimization_passes = angr.analyses.decompiler.optimization_passes.get_default_optimization_passes( + "AMD64", "linux", disable_opts=[] if use_deoptimizers else deoptimizers + ) + if is_windows and LoweredSwitchSimplifier in all_optimization_passes: + all_optimization_passes.remove(LoweredSwitchSimplifier) binary_path = Path(binary_path).absolute() bin_name = binary_path.with_suffix("").name @@ -167,14 +148,13 @@ def angr_decompile( (_get_angr_dec_options("show_local_types"), False), (_get_angr_dec_options("show_externs"), False), (_get_angr_dec_options("show_casts"), False), - (_get_angr_dec_options("improve_structurer"), improved_restruct), - (_get_angr_dec_options("largest_successor_tree_outside_loop"), improved_restruct), - (_get_angr_dec_options("simplify_switches"), use_sailr), + (_get_angr_dec_options("largest_successor_tree_outside_loop"), structurer == StructuringAlgos.SAILR), + (_get_angr_dec_options("simplify_switches"), use_deoptimizers), ] # add extra option which may not be available based on commit version simplify_ifelse_opt = _get_angr_dec_options("simplify_ifelse") if simplify_ifelse_opt is not None: - options.append((simplify_ifelse_opt, improved_restruct)) + options.append((simplify_ifelse_opt, use_deoptimizers)) linemaps = {} metrics = {} @@ -274,7 +254,7 @@ def angr_decompile( def generate_linemaps(dec, codegen, base_addr=0x400000): import ailment - from angr.analyses.decompiler.structured_codegen.c import CStructuredCodeWalker, CFunctionCall, CIfElse, CIfBreak + from angr.analyses.decompiler.structured_codegen.c import CIfElse if codegen is None: return @@ -446,10 +426,10 @@ def collect_countable_metrics(codegen): # # function calls # + func_call_counts = defaultdict(int) class FunctionCallCounter(CStructuredCodeWalker): - @classmethod - def handle_CFunctionCall(cls, obj: CFunctionCall): + def handle_CFunctionCall(self, obj: CFunctionCall): if obj and obj.callee_func is not None: func_call_counts[obj.callee_func.name] += 1 return super().handle_CFunctionCall(obj) diff --git a/tests/binaries/coreutils/chcon.o b/tests/binaries/coreutils/chcon.o deleted file mode 100644 index 865080814722ad33901e9723ae58a05dfeb3a86e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 67320 zcmeIbd3@B>_5c5V&&+!g5=a6GJIb&}C4nF)Vo-JhhSh-J7D6&1(U8Psg5UzkrV&xF z*1Dk5suf#o?V?q*l`3wnb+1}$`_a}7m#VE=+G_c|&bjB#oVg_G=llKs`MZx~-tYUo z=bn4+xy$>$mwC^+>E$y*zVF%Kdnb9Rn5CY#`oF3DNxVDB8|)487L{!qN70f)djo9B zwiZ$BUHT|%|Jzw*?T;Uz{o34tn`rAzUOaixyI^ge2mY3)Ol&nAh7jJL|5)Kpiz0~6R7>$k1Pvb)OK zA5Jg){p*wc#Te86$opG>rlBF)-(h5Wo9%m6VX7exl(+wdDpsXo%m8(LVhFZW*R++Nw^(}wopoy{NS zZh8ZI>$x={_8uHOt^K36lesu_*^^85m2EVsxtqR4nYUI9EvzX!rhpaaZr)9OZsY#Z z+~bn{O|mC`jnVTEIhX-g=2sEYB3;goH{$`f{?yd(mbV|+I+}7C7g%f96}g*NqQ8`F zy=Z6*HSEfTP^=H{Z3Q||4uRV3W!ox-_Sv+rZG{-NdIgJ>Z9bH{X*b!kEip9q?(i=T z9h%&}k5x~{aNeA2wTtG&&^~5Z=WcoujgT7Jxts4t{J=B#;P#bb)?Cj!8^=#Xw!{^1 z?n6|2hHlfFvA4AiedCQ1sD3!D%{Q}Vq&4UOckA{lD)veR=56=6#cMuh}ojiM+F>wZCqrq{)@&BxwJ?mA8MiH|dPS(l@SM z;s*MK zsdFhZNu5iu+i9Wymvuhydvq8(FaG^kVc1=A$hrrODqWHK^si-59QYoxpdY1~hRB*_ezK5F149)+SYOBa2sqVFXaz)AW#uJN9<(gyudcS8% zfDWGb{RjPI(0+Ryg@4O%z<5i#=&$djGL+B(*1Z z;Ci$i)?;$$rDd6{arO+HZug;%ZH9GYyYccDnk^#jMqA}Kc9|}%SbQn z)bUPxWN0$;w4s@5KTqxVQTs8qUr0yb@$^wfA4|%%w&s;>d?b%oh;}gmAH7q)_1w(# zn$Mww^vke;9b0aWl%_|^6y5$;*VO-~)tb>kwGt)e+j!+J3!n}vh+{UUS1$Cx7Z^YhCL{rO}SXIl4ww3Y5L~AV36l-W|ToG$(PSiIwwjw1STbY!rZEA_N z)-|;xlIe-2rs6E4v$m?fAznios$1e!iFm9vUftGGpI8&CZfZ=#S0^UKhP6U8CD$5H z039X=`IXI0jj)H5aULomm2U;|xyoZrwIW(w)i@#%t7>j;SQBfmYDv^rHCPKsUt42C z)$%x5S_^wq>XrWLx~j$%@nj~}oHC_85vy;F)sRR_QyaUisX5+4HEy9Ax7M$Uqv)na z(fz-Xj}^97t&GR2T9NlC<5sV&H6AM}YHTWMZi%9+~BQ=mbU6dTT8q+tAg@YHLPrE zO~k6>Es3i7Mp(ZxUWL|A)Kw*7Yns|(bycfi6+F_?($<`?zH436nuxC~&YC-~V%ChM zv8D4CEsUMI^wf&!b7FHQ&z(GT`a)74kJUCcG&G%Gk8YK+0EJTHP_rcZ>Ni>KkjDVj~KZWgdmv3~L=BmR4Y(jX-xVDyoY&G>?E+T4F0<9%pM= z$=1+VTGU##B2Hr^cE-H<6|?5eJ*&95I5u_O+=}T-Dq=Hcl}|?;o@#2DK<-MDI-{s9 zw&>L93(tz3QPdJ!IIny|wmUv@zeBwe9P0FKl zO*Nx~TJ6;7<@Jqit2=C=cvW>BXQPoL))!};R-dSY2a@VX#$>ROx{ew;O%3-)^cc3u z&O0#-Txz~IHEeX<+ zSkoMzNIgnxA;{hA8)#`@TWBtw$bHo4p&DU`Vh%R&YwBcXJd?G9nKD+>6l-Rd2R41+7Sm4Om}EQ^unTYk;f{t7BhOH z!zF|59xbi06<4MS)Y0;xu%^T%mbxCtcRW&dcvE7 z!%uw?tvGagYhBftF=JcXR(iA-qvcM00^^&bQw9YfDCNJJt>CI?Ec{NSde2QQeO%P?_QEja)qj(K83T0!x#rtt@cKyoO zocNk}3mU^)*oK(_DyBA_3zwFa&tF)#s%=8cgv5k~2_Cg_9cChF+M@a1%KFw;YD1pB z8f)Bmtg05>o4gAbRW;Pt*mXLeUL>b9PxTxRi)SaAwwCtNW625Jlc~@n|4@WFt@O74 zfAe)7;Oh&gO)oh#d9hppn!HFZOW=A}^*gwK$=5yTZX~Wgj4#`IQrd+t-25>YAIznN zhoUG@1ACbcThXMiRq*~}(}wm=-8#Z`u{>NGKZI@9JSdavaMMfn;aU`~^pv&#d79kg z+ISE*S+2&lj)@yd@G1|N&o>^NnR{h#u#NAQZ9I5l?xpWzzpQ%NX0ObD7dIR1rD|L& z>+}8(YPVD2{`=oe-cMs=-rtdolR0!X<-moo3D<=mqsw5Pf1rV*lkBDM$#P+fQxDAJ z#PuX8<)x>O`kHjQJ0$h)F#kumOd#oGAC+_9kIa(xJ;l*Uo^|7a2Tc0Ji=n%1GF?cL z>qWQ^x0NqYo`bu%yi+dMGUY0uX<2S6xf};SOk7JgZr+BX1yV_90Pny8D#_dsq#HVy zfLSXxUIc4%zrF7=_ET9kZ>F{X<*0|tkkkjaK(2xG^i9yb6+0W>^K-Ad0`8x7!t1$L ze2E=>2}R0Hzs1~8#b?j{T*pLRPuT1%GpC1$iUh* zKc9Q$Dr8CB-6I3(DsBv0Tm+@te6+WDU+!hMz*4$i87ph&8ghl!0NUGD8S5`XpKn`L z_Bf|gzO9L&UBw|ApT^% zhZ{|3mjgYi4%_&?E9(~vaXB}aT_P9!I=dtG==<}x&G*Z;MjmN5ckxUGZOyOj&n`-- zhuZcGhiR*DV^*5c-t)lKvUa*ToxC-jYJ=HZFZ%02E-L++qs_`UHT1Rq1Ajx)a|T`J zfk!~g;O{=2*7Cp#*i5a`X;|24ib+`iHR*L1{d@`)+#6 z*Q6)DCcVK)ccZIZ;KXTqaZp;6rm-~8N#w~w&kH<1lafc%#}V|=QDBkCbN!D)Vs<7C zd@nn~o080IqaZtEuun%hFFVA8cT6OxZ%iNy$5>0SgSD9bt9#LKF#F$9``0L$YZd>F z;@9=4Pv*T|?e9|iKUVucSNo6hevpNh?MBU;ZLID_AfN1iC0eo*6Ly&PqsL|}r>%(` z*M%}`LXd)+aWVDHta%8-TOytNU6Pd)3G8381k@+Sv zg(FK$WLmF#VCOOunNhG8kvbD8W2>7@WEMvfCNewwK2&G5iOlIS2a)wAGB>vZkqss? zFY_U2+h`&Sa-TuuG80+aZ9l}eo5&fx|A3V1OytbI^o+tT6FG~`*=-_ccbSGfcbiCM z*3pREXClkkwtXhDJo8;B*l+qoMn>OWaQ3l~^`gh*6wo%f8|eYzJZdensylT{z}?t4 zGA}0g{){~qJZJ^;y`VcX4kZv!BM%LsXr8e%x96nxcksUH`B!m&k#3xwM^8`~3%iW! zeob=!#O}>@KP#)pv)Jdpl$V{|juNZSuW`9iA@Vm}~J_CP^Fv?nHQE-YdSixmv424ejMgEDAeB7?b0nf_2P zB#$auV8n)U#B`2=VHvH+Gr-FuztJwYN*EI@8bS;y7}1-`9iQ3rhh6T#&Ixr1ujhS3 z_h5Gd3HAKdG52C$hBQfVs|7#7Ug7$l^Dn>whl}pHpzju{nu#prNT!LL+HWgTjJZ84 za>-G~!k&wAX(+^u*y3(vr|G0UPvgi)ld?4LXr!1P+w*jej5jG~nE`_Yu^ItiCMg;EfMok#-2Q}bP)Cjj> zCzAZ|f;$lp$VsaajMtz(eMLsW4E6X{RpEupuN0E?AKX*O}z0KzE~;TRknj^-Y5G;&8i zL1iL*pfO1!Ica)FNyl)~vW}99IO)QUk_z&vh#i!~#q=W!diUveD-jx=9+UimIrrG? z9-Gpqup4D~mMC=^Wo6&7e4zU{ElH;rae7|1&Z^S$2k>ASPU&QwDX{Md&NU-F*FUJ= zut9wXb9!xO>HV^O>S&ixI)7}zo)u1tCVh+*Am zIb*7|&Q$AB5>GjX3+P>+O;){bHAPY_(`O`imCtRG=~71y>Xwh|Ii~X@dr&W9Znr6H z!NjBhSDP%1Fe8(^fW{Sf&w-P>)sQGH9l0K<}0S!`4czJ(RPZK*MVeaOm&T)@hFnBfkX!8Ni$ffH;L4RcKSXQVMBi!n+X2S=~!j=r`?@C_X66bAgmAf1%tfaw7tdW zMT{WBZcS$co6hxa_jwVMCieXf*c~0P-9DeBrRBXdy@<&+5j~T`01J+ho%eH5Z41d~ z4*>Z7B7bxWQ@?)MV&AVo8VxWG)HWoJMJa#t;M6?NW8H&7eAXM@are4pp+h9oI0z** z+zIWZVJtL9cI;k9$4Zg&XdEJqF_K9ct@tFc^Rd4Q>X6F>8lT3L6L9sBO*uJq1RXO| zMBRx(oH&psSe z+q4~ysX2C7412Vhq-nRLm88lo!ti~RaYe?Co$IcNj31P03p$J>eMEk`> zSH~8NW&RC(P~M4xwr{FnTPF(c{iX_@?nJ>qzo~*;j8SQYE%z(>OI z_#B7_iM>gFE-lV&NOoE(_(iV7qO|cxi~A2!JUJPr9TI7j4}k)Va*PD{AvN2Z5t#G| z&4xxw4H!C8ILl-Y--;;(tAJZEHDT#Ot;ng0N4yigu4! zC5dP7=^lQG9D5w$=}bqlI@ zg%LX3DOB%^CGjikP2RtO1#P!fD?T#yL8awzOR1cK58DpC{z2^RzglZ>62Q;{f7$hX%_0{hhQ60AdfW8pDAHxz-C% zOsWHuoq5O$N1(ve!k#V;CXX;PbR_NQ$^DvFqp(>&cKw&5g89SU^jSq=)EQYtmx6Qd@5_@IXpi zlu%FJDv7DVbCJqUZu_~Ca0gGaP-=;edaFIBp%dUGRCvlxx~!bcPgk9jM$>h%zUT~8 zOI`WcFH}+#B{|&#DDHsg zg3n0tq(=`s&2BS7Jkjt0i_Yni;%P&P2EkpTlRDT!-R?_h&6Lb{STV2t?}{nFl`g94 z|F)Q^Cf_%$&H9wMT#ZSul3rhtN3RpJboV0{bzbimQzg)OEJme1WhRgQHzn~E4ozza z^6n6HTjQZrr=oFLZg__Wj-;7iKQ3|YoTm60)WiMOkRSGNzBN-~gJ~F*Q6$fA3uXNZ zMHW*m#>0zu$I))4*X??w;b4cei_p|OsNnr|Azs4s{`yego|a#s`1NMr%OmZSlW&bh z@hA}X1A?52iKy+>$Vjt{y3gtkE} zX0DiX(h5qVlTS`s(Vs4>o83|)b;?@UX2S(yg};+#sq#mV6yEXd+Ck4KnL&Tlk#}_D zA1X43PIeE!j^tk!3U3+ioRcK$PS=qtkxF%^Ye~9$)0M~6?5wXi9VXRLxi^HuAAe=J z&#H1!lw1l+PK&z0RB}fp?F@xW(Y9%4U30C6Nlh_QxrV8M$Ona_8|ctcVT2Ap{!8Ys zJpR*Vdb5KQSdoQumz>JCoGPU+4~m+$?HDY#sd=liqR z_U?m_cN9wK5qKr}A(NV)?}u};v$;xxGReS#d=y%WbN-&JP3n4bUqZcTaopRMg0g2> zJ$EhXX>^ej;2fk%;?;L=-h?*zV&DqGV!RMTmZhCy}SE)=piNOyyzBVq~m4c`N&i!^}Mk?y%A{paa=tN>EqB0+1Y4%_ySI+ zY8@YeJChLR5ggy!x`Cr7X!qfPEIpDu??mp0L8@I#b^7=K58Y7r^}LhPJxIOsP!Ecl+M!|d2+T#ZI0V5=~Bq8`@+;&-g-ZuW`SwkWw^?2hnddJB_jpv5G@(w z%HttFo(iNVmnBD?IB=HEqRXF6)5!+EFU=^Y6k}-V#B%P@ux$>FXk100$%KW;|MSRG zrF|Q7Xe#lZ#ELL5&+Ewymz>caZBXMj2pB3Q$4I}%nd8KZKZOZ9h!7YFsa$K4i!SrHX-cK$Kya9Yo$DAKLDk7tcyJ0?`Ng^v1PE|f6*s_ z7kyHC$2zzaYMg(y#Ey7pv%bqier04w=-LpOcx~th6#Yr)UXI=y`VB>&3%$hAmqPDR z^pnu%9Q{1BIRnux8LxElE0aqG?FKI3e%QBrUF3fM0pFhwyUD!WRA&>Ed<^M72|W?Q z=3k+0@I>Us@b}0eHYnNQ=oiCJ@fSx0_Z0G@Pj)L-O^Wk4(= z+plnW9`xqj>8HA!Qk{qHX3{Edk>!JNwUX&Y4(+uFJ@>3ed|cvhKFgA9Sa)~JTij6X<6jdr+?VlA{eKA)na`AOOV%PaMnQBIE z^7mr-5!vg1MEoQF$q-^shVBg`c5nEJFk(-H-=NqV;a^4&`(@Q~E9;_`R_fRbsqZa!^i0!9ZEJiIJ2_yCh)nYMfabE_~irkI&8i7a9K9sxqn` zr(p10;{Sn$)D7X^MX>oi@?jL4?`G`Bz~aHHa(>0GQW}dSKK5>j#1=(X(RNW)6fPRl zd`qON&5*WBe2XseulJ4k_5KUKNq)iK9Wrcp=!URiH-zs98+J$dQDKjUcSa1`3A2sd z=aEf;VVi=t1H;}9z7+Ol@SCV%zlpvSHF7USznfv$cQfwFFzl|3gNCKn|W(anLW(3(6R58^vUScCoe$%Ua$yzi_XE`IhV0VBuz7+f=oD*OsF6e&J+_cBG`lq znD89UJ$JL0q^>&g z7P5J_e~`U)(EpM<_Lu&ZA>b!Mf1}Or@ILZg;YX1&| z9|vARbLF@FhiO`T5_V&AN95;lF~pOH&jSBU&u4SfjNIsFanqCLTOu3%-&03_HT2`K z#(xN36H#%ly7KE&A^7Lj(DiT=8>o_c!oHXN571TMBVSuSQ7MdU3Oy83an?c~N>cz$ zK^F{lWJI654^Ih)61pIY`SXfyNK~k4aT2M9gV^(rKJ& z46Srku#a>q#Jhtr)!D@`t>8FB@HLx%`wxY15PLinc`vj+!mB$;>mOP0LqGB}|2{wR zc<8y1PRfjAAED#fk?f-)6RS1KkMxSc9q;*(5B-1oIwd=j(-YOdDipaobWJF7V`x{J z?t)04A(5fOBSm9S_fOJt=0Ot>-2Yr~BK^3uOR&>#PkgJ(QVzl8g+Gcb8Y#b)Yg8}bK+a&ZaLtdq_0mX>j* z0l7zWQ(`@i%PI81EyAszVl0ySUVvyND#}_MmP+M47D+LVIv*K$Aiay}YOpN) zXv7b~`GFtp9)t!3;g^C?A_y-D{F8&w5ka^#5<*h=`isExja=TIp#MohIJz{5M*W~` zxaW36ZVod2ARF-`y->to67;9dh9DzcKRbwGKZu5V*9KwQ%MUVXgRIPvjkbwkAU4Q3 zfHoT>(}u6kl3rLe3UO$MW*Cy4aBSh^0ya7vy)MXvOgK6*$imhi6$=)k+;B8}-rs`| z?IzW{+g4T)kwe9CJ%$xWrWL=JdL}^oR0zz<)54j%nS&@2o&v_G#3E!X?Grr~E$! zJ;RNm;XVvGgL_qWv^+ohM9@Do7G%E^^e+v1Z3wcL1kudN@WBNemLPK<&YDpd-M%zD zKXW$h&kuSo4SGun>BT~EIBRy$2ldEWg2;E+&3R7-S>)btaYDiEL7(uNC8f~amvs*! z9ouC*(mt%|9bTTYvY#od7j2dV9D}74D~0~iL4Q=im=D|0yxFDERd6|t_Ge))C&J%I z?43v^-V8Sn_M_joGfQ|M`F%-{I}wJR667K~ZD~p=fFs9e?%}$iT5xFgp1wgw0lP3G z`jko7i-dEGpRb7}ii03pjaL0EwgeptZkbif;yi^U0Dc-RT@u9Lq`g5boLw4ZB!U<^ zL}_#vN(|?q_TfpjMl)&@y*kK)MLCJ!2&(t?paPrF6EO4Dpa7i)X}xa_CQ@2-4}X@@ z=aL}DY&hj56Du`xl9n*B(%?GkG?8e6g(6T$JuC7@6Fpv%O{U0fiJ}urrd-+<(8s3% zH7KTRJfQ)7esC6VH{fbL;^;hr;gg|nCY=xsSHH;)qB#SDq45=5IsYQiE_$(vFS_BX^=_O~q8=w**r$ zBlitw!|18uHkzfvS)rqS%)SGBh=f~xjO=huXdcSLf~4Ci!GP$jU@)9N0LS*|9G*F{ z<^<6fAh$!>H4+ZLd*PCZAHFVf#`4RS<1OgPekwg#;Mm+gamQ9*L3gXa1Xr zqZ_oVkqEtT{g3e_%Z%_W%!=quoaw5ydy$kA{)Ckv)3#(LxGY5V{3k{)tvoTOQ+4+S zQS|iE=vk*r^>H{hz=@yj#LxVi_!&;R8xMEGpk{~L63vP@15s**9%9E*yv)G&$&uQR zJHzD1jBr*h`pqiz)^PXC1a_OS9tr1S@P*H#;qhs&AXJc#=?*KD{H2-sZ@~joA+aVA zJ^exQ21ZPm(}RqyYpKP0zRANTD{~@}u8wBXAub%tEDidhtnBCm)AMmK>mFn;jozX6 zdK24-75WA&eMqqFTbyHHThK2~(fo&&0%E8|fV4yFM26U1wuk8ssK!HU}-5@~9}Bqdm$mnUcWMg#{o>L6d zV9nAX=YFdFiF@*cUeHv4Dq+60_53$=t4wshfBSpMS>Z-M7!K68G#EZR=v&LewEn_c zD`#Vny%*lu7(Bzd_F}uYG{_9+ay|ZygTgdu!l7g7&2Zq&beQdlL&=h$XCmlA$Cox5 z*Ckv|1140ch48t^(~cV`LFSv-?hR$4`&U-3XsBOajrU~Yg`2D5H6FhTyb^EkZp2$4 zf%(mlHC}6?67TlJJ1*-lh*u`OnbRxqcI?Ws>E-h)r(CpUyyf+Y%G!pi z6?g$=qH=k|xs=1~HdUY7>Qz?OuEgVov*uM+H`T$~-qI*cdXp@Xcz?TBiPz9m{q@?)R;?c39m5H{-_{0_QM!e^=8c}+q@x;~Rk1INEY^-Pn z|IHf{E295eyn+-j)~7cL7u8m^u4$~UYiVl4&j%E>HR8?qHAU=iyd1t3eyctgZ=gnR zpm+5b;Z^e*A8ni}Zk z`Ym|vDRm6?Ds@Ne=<{pPH{gHnQq)n+n`!0!rXtNOO|Pu1#0#HkoJ^a(aQY1V&z(BG(!9@}3#8ZLR?@3>@Q)Wm*Fq9CtzOye)wfjE zqRI)pwY4VhNuO$kv8s#OH^rk<$6>hbnaLlHsI>3<#dLxnlfY|ztqkd238k&)a)+Q) zcmid{S2icmHCh_%VDPFTwq|+UsaP$vwN~O+B;Ya3RxQm9l_`&Vl})v^G~(IW$v&Q- z*~FArSKmh2yYfU#3E#=}6a_8QVgVP#W8jjadu`;}GAB(};7$?C=g zwH0>&x5-T<>|1l$Z2lmVY0%>()96{!lHOu@p)R?QQu)ou@VcWlIk(d6j2GBUpIbpH z=>5x;{9bc8VwkRArdpn7%=?$oyz~t=IbJNDzVKB1q=GqQkee_Wn@Jm9s!q)eWO1tB z(wt*EFW#+;cb7LfR@x~atx2yu#-v+SGdk&VP=m&K)KcE8%7yr4j>=PKot~V^4x9fC zsKf+rj%5w#j;M0g3cT2vyhT4;fYHHY#2(1X=glk`U0E?}&h%5~PoG*@b~^P4nssof z;a_cFhuNWEngr8yvq!I^PIIc6`D>cm=qLd58);-x&p|~!o`Rv7=E+pw$NY^5+=wXy zF2FG@Sr8pEX+(O-Vadlv6w+C5KfKFZ5A!Rz&74o26n&Arfq~S_9!t$Ye31*K`P!9FBXiT0+quw;j96GrJVH~zK zn?8hLWUAy<^3UXuHdST%MFSZ*9nP6_Y{n2mS3$*&8;h!8`liDH9lI;JjmS1$ASu24 zrgA>!ilICyaV;>(a&-{lE&a$uizoAT`Z!xn8Su_+bT}CnG~Ng{wyj)FM|JEr<7nCd z5nddW`TmdRyCStfXlDK&v*qc)JCark`G+L1kXh9rqHeDjPA2<2CE( z(H@pZcxSw-6TfXe?I@FOEjfngP5LbyUevJTR`FrfPF`d&AGm3!AzoF>tB#fR7w`eC z^8BWjb6YF%+B7|2>|{ifxcQ+Dnzd*MVMgVj7fGbOTHL6{FaFR_Goz8#9=2Ozgd`_p z@~7=etq_a)x<|( zQCE4~*dp%RMfj1SQ8>qFH6l298MUIi`f!nwl2MZV8|WHE4i$~xEEm>wUhycDo~~U6 zAm)2C73wIz(NvcLiJJPRF~xN>G~qGqaM29tN1-Zdc1KJ$kg9J|LS{-#N!zI%L}q{b z@qkneeJ>?U2WP}&C5b(in^pzXLqIVPVzEr6N_WFveGwg4u|vI)WbjK6jjYB8KY2#n{0ormqG@Vu_jRL3nIo zTw&LnId$rUSmC1O_z{jaIZ-GoY2#?g+A(8_M~^*9Fx~y7K=*y|?j61pj2~a1TgCf` z+2%)&hz_s&B(;naDEez{mR=25}2Hmwkg2_3fH%3F>&dMpAoD)MDWTxa~&dLrC^&K`HPfYVWj;~;i z@?}-XZwpP&>2pPRT25>Wbj}a8X63{tr!;xxkl!bH_)P=Ia~0WfCE2kpGCim83bJEM zG!#df)0G|5vKJgiyphnA$M?hK?Gey-MQBz|pDkh3VPhmTCo889{D6AknP-n*J26S* z`5Qlwzmnv|4`oR|Ov}034_}Ikk1o$CoT}{Lx|5$T6FvNfni*8?3@Ud|i_qI%AvdQPKymgS7!m@zY_Is99cwR&OBdjH()@D}WkhZ`p66v8dZ zrr;_Vr5$`yaS`v6Lmecc?}#x@V%R)%;85yo{3t*grw1NFN)PujkqDh`5h(3x)Gz3fQM_cM-=U-5e}GU3kpkE;Cl~A&sj07$ zeru1FzghScY$;ez-HUzF^D#e&f$xUMmSn=I$3`g1;Sqe2{z)d9)bm^6lO6tZ=p%VM zF0DN;K#t1IlP65>lzeXp-zVIDV~vu-sW145G<2gPzDK>@gnd%69OkLYSpSg}UMVZm z>6@W=dcJ@k73*$9+9ffeRH>9VAJ$&`S2?Mx(hxgk-!l_^A zFr0bvL91laF~VILx2c5Fh1+?_rYsXZ$56+~Eqd@CrL=(G zAx8+jI!At!$WKd?_Poo5+ehSVG9CNq5j+}yI$SF}t|9jE%ojowZ@Nwo-xL13bS(3D z)O*?CKN9&19R73Rmphz)pBv>~<8U)Bquvi3{+Q_bxx=3l{)WS!XC8P@IPLO^$RBj% z|12C&sicKBh12`sb$Czs`5I#XW8vpI{B!1kyplYX_=WI~9XsjqYw8cpcA+C#GKF8~ z@EqaeQ&Sn|C=gDs)zG1z@VlLX9TWbnGZhRMKA#_wOKBQu^*elw@H{(_OP2A%mpJ?+ z;iK{8Bps#+rxy(9Fq?VQTf+WJrOX#T%;AfLPjvX1!e={txp4aR7#-?_uW)!H^T6BX z*qIRS9!kvdD(abWmMUSr=x=xQZxKE8&I}#mXjgZxrSvNx-x0sI6MlOq{3o68hdbdf zcEaE4gn!-%|DqG#4gJ2OdgXV*W1a9po$%sL_;H=^nVs-?o$#|d;q{$xdP#am^`&{C zBfhQ^zP%HEM<@Jeo$!5~@RvK`Z+61@mn3vYmi;d}k&kxL&vU?gc)mBOt5IOzkXh7; zJgr+h@>~B-cw;Ag8h8)2&a}^$AJvKcgiiQLo$y(m@XAhjLnpko6TYq!zNHg>WheZG zPWX2_;dgh!f87axu@j!WV#Bv0JGf}w`JJuQHD|syoQj&?vs7{VWy@5Quex@0rywOF zS7bW9HmdK;(6to$DcR&jU!B<6(Jj_usBcX`thsn}`aLwcHct0zkW^egl|RPN-m&yC zmOjSO$8q#gLLVp4$MN(ro*B!OaK;kORAOW~TZxfj@eKIcWBhMPfa*1QPl(C#T)>N1E zjAcDzS5Vah!J?>p6~Pjx%{#&v7N{IgF?FolBO$w=mOhT5>+zE#ocU z*O431_NG<(eQ{eZ-44M&-Q7y&v^TJwTQ8kFm!fYN*nPV9n$nm4Ku6m17^#~sHmkV_ zn!1q$fvvwYr^$>o*vX3RKsdPQZ$di@ZVj{{p|mMgecE=0JQI{w>GL95_(ED*Ri1vcb60;(67I+n1e?9vp(bq4=jz zX*MihgMF)~S-6$AS28YE@^r3g<>`781uJi_&0cRX>#xPWmESGg%FE&1yGO~dQ1X9u z)Xyim!LowmKc)d{~racw{SBqs&e z&p%PT3hCCK`xV#r|4umhd6<%aQORrj|ET22e%pWERr0$3;H!8X$WA(UxAt_W0ukJH z?<1TxgYj?W2P>}29U?r*OdGCmHPdB!pn)Cz`0&Lpb@Z0sq#|108vLy>5Y$ zU#aBjN8c!ro<{szJ?3W%4R2C>gVJB9_~lAZntv46{`tP*+CO(G{j_WCe_YAye)yc? zH1}Hj-&6cN#RpME5optbe=AStArxrSihs)&D4tOKbj5YOniOwS@)ruHc05Y)%}QST z?K_HV|NKO8t^b!w|IteS<4RuZe?@Vv{~g6wDLp;qdKlSH=ZV%o^oxBIC>ve#vwVV* zr>3C$ITV&UywqUtBBh6}xmrCxR9x5h7fKKH5i9>|C9muIlH$6)Zz?@xryXCPI()3y zIYF-fQGK;NGlY|WXiQss<|}z^PnF`@o|Q^Zk$ho2Ue|Y#;<~<7N{{y2xk_H^S);ht zbFJcZ&EB@-E~S5z;(L_5*7Iw{wLhOxdPXZfFDrR%=K;kpRPxbGL=ecIx_yTzuI(Qs zocvsZe_O8;l)Nr?j^esrOO>86N>81V*T;(sI^mZoJ;y3N^n-&Gs9xG0`gKAI#I-$l zD?QpC`js~dB(Lpxt`q)0N{_bZ9VM^r`H$k-o+G+&v0Uy&*tLE>S#dq?$`!9y@@FYd z=MGj+n{aAJ8e5jHQ}Wu*ZHj9PHQg9mncr>hL)QjdNln? zuM@tlZl+l9ORd5@BxtmN-ge2U_aDm{80cuw)PO8zaSXR6}wDfxAZ+xsx&&uNO| z1ppje`}--b?HMYZ^h{TJj!}Gu;>RgIQ}HQEzwU<@b;36)J=&jFDX#swQ|Zz6?^ay< z^FgIY`}5aIUi@i-M$z+oDEakDexu@-D!xha?MlyV#lNlO zb-8ybuKn9iqBR0PgHue{WBET`sXM;TK^e}&r|xBDLq>M zxr%H3ElQ8pzh3eAO8;i1N9*6NxYqw2rAO<(U2%G2q-~cUC_P&LJ&J4n4=O!c|8Epu zsPsRh^l1IBDz5dvq4a3|A1QvS(*LQ_qxBzBTkE8Oj$LlxKh zhafKnlGprvHLvRN&cgU0d+49uw@ZQYQ?T5gPs;Kz$w!O4496s&CY;WxDOf%G`92Q+SmXyd{5Cm%h&gu}s0re=73S z$0%5S&^PfVW|QRfTn2?R%_hnDA|Kc?heyH&)Hpm-c%8$$3U6?Dp73Ue7YI){ypQnJ z4j&-=B8SI>uXi~8Ha&$+W|ORMq43KbK2rD<4j(OiyTiu{zsBL?gF7kUEK1tgBZiiQh{LdY}MEHFUKU4UF4j(Q0_c^>qhVn(f@(N z>G>TBADd0m{%eGP>Tvsf;6aD)6!|Y4zDqbBrQtx;q517L;Sq=L7M|(wJ;J*>oDGIP z`<$=UZ~ar?$XoyParkQzm%|;a?F+qj{m>ix6iELf{98VhAOi7H{98VaAVLKHTkvl= zt!XKc{B-CeM|p~UH2n*zyShJUNaK397* z*yW1TxflhK-->@LZ^s>Rnu{#|2lgpYx!dq>`55JAYQhuoPhqO!T7JIbBtMj;aZg!s zE#Is-$#)g`jf!je?TVB90Fl2{aV>wh;v`=n^5!{UQ(xlL_7wiBf* z__y4SZ{nvZ-do8pQT#~7rzk#5aeW?ov~X&#tCW0+;+qtoq4;{m?K*;zslN6)|7wx9 zoUQ>;Sf}`Q#BF_lq4-k8e+8lx2&av{ZcooIQXoAvr`d8(R9x40 zisEFN_2*3CwE33Ov$zxaGnD)_O8%TqIwh~~Kc1y{XZIhssdDR;{LPB%{o?V_>`>2(I1o^UG85MU#0YXr1V!R9+vYMO4jY0E1c{(O37oF z15Jx`igmBdk1?k7-6_NO37_O}^F0jDTjp^49L9Qwe;|5xIsD(k_c>gm-s=vR(^z95 z(yX0%A{P^VmP_@$Ne+*YLlBlZysPl_4!6&RWSVSV7PkFmpEliOpZGxh|4{VwP&|fx zTDwr7wH5`EkI{~VezGNg1pafyj^T^V2w;lc)sqc3kPS34VxXWyk`d^cJ-S6-T(%_FeJYVYdoWpMr`9C?_K0kE8;r2Oz z&m4ZX*x60|Vg0j8cyEV~l=d3p@Ii8&WVFNW@5d0R$e!kA(_IbP89sZ#B|ECV$D0V*N@PRU)+WE}Z zcaF&Y!I7t*|E2J@!|nC1e>nVV@f#mtkyBZkF5ocKsawlGMvSS7zluXKQdh z%8`Fs>NVNnQ>8!5b@&NVuQMEeiNwwKpi=g47JJ$pdHbBi28U0Sa<6juD)G-v4*!|R z-|2AsoYqeq{)G7R_YOZ_{PRB!x9e&8eh~%h&r8J*eI5R1>4(D{&L?8Xf2_k_m3mEZ z_;;jUCp$bt{UDbP0`=vaJ=}OgT0<%>-$fsm%R>Qd3R~w9gd#G z;-8xw{;Bl0I~~4U>UEF9?~!sJcDNn4&p7-enIHb;@PX3qfs}9Uzfb(o!{PhIemm~1 z{MjNu(vhbhPor>x!z-je&2YF~x1H+n-;4dr9B#+MN{8F);TJfZ*60*2b@&Q{y=xqP zvb6hm9e$_C|H$Em!XI$BVDC+b|6AJk3y1$l;@u?O`gx=H)2>G>FBkux;Kb2J4w%>1Zc%GDdxx?xE zRTQ>6yj8}_wGRJ6{I=8K*6-hQ_|eiI?sRyz=)cF|cDy|7a67)U*_ zskd#HPbJ>V;rEFAV26Jx<9C$9XG*94u4PT^=F6Ii~Rcz|AVy4L5JJpJzgQt!Pe_) z@jv}eCI!p4$^1Le;de^^8R_twO?K}Dhue8=hQsap=~Rc;i2chPUM%IVbaMg|Zx%a$<8XW3);=d`%eBuT+2gt8w!J=a z^puI8|LgE~rJrYuT~?26uRad15<7=E{2|JSFvj8Elks@6!_N@;a)PG@hDO?eHH;yWHmR zdg*WXI=rvQ+v_EiO!nLL$0v^bA*wh+cd4J1e@*;0!r}9!U1mD`At`r-!@C>x-W3kF z_Yv=M_*G(`eV)+TlPUT?b>u^0XSN*wt$c;F_h5%#COq!&--_M~9X?L_$<+@3t?0Sg z;r2f44;(&5{QQ{19}@jqh z7d`JQPI~Nh-j5t!f;0-BDo%P9GWEPeijyAtE&+vbuGy0RiC3Dam#H}E`I+>Se8oxr zagp!s@CSqsces7d;An@3q#Z{oPUU_i?J_}eD)$JHKgr?Ug-=zS^ps1x&sCiC*z3;= z9d56Co~AhI=`RhoTyfI#w3J)xaPwX(eCJeg(sP;2W2+P=J@&r!1r9gwm%{yA;Zz*; zL;UO`hwTpkQjR;fJ3LS1A9VPU!e4Q?eGcja;nWT2KEK* zr%dde>F}k(s}!et+3Tz4Do%RpM1G6nByZo-wOw(Nw|Z_@oa8STJwH~Q&$U_$ks)UT}D&@YfxFuka5Y{*>^Hd}FWmn|+U2FU83Ze-ioe z4!7USogtjYDUHWNvc8(Ddma8q;g37~GvRM2PWtV08y_pqE|c|ZrcCVCKmCLcR-E+M z_b!$wPI`uk{49r`EWBEA((^1$S_mzQlb+ckf4ReJgx{t(>9Oy1{F&mUr%B|0>+p8r zZz<0HvFBxqlb<zAFuW1nZw42_LRF>9OyP9H%(xxnJbxIQ#|SD-Devv z35VY%e51pk5`L+}_X+=w!^3i1yV2oxeY;C>nh#GEJAbY?**Qq`+~@Ekg#S{w?YH)N z+V34cRgP01I()wHe>;4m@Sbv^jPz3zP7^zaDo!rgA@V0Ue30<79d57Ru5!4&-n&C_ zDz`$)-K98{`wP*3k8s=HE|>BCD@WeGC;WeuJo&j&{P|ahj}!iPhYzDcgYdb-|0DAM zQJnf=w)E#fF5Z!yRPN)Vr;EdXEj&kY(o-Y-t&ifQ=R=Vn;Bb4NcaY+w=LKp|gkuyZ zJyT?TGRon7gqJ$p-rt(!@V+wMrwh0J^LpX64*#z3bq;@9+VL`_pT^5nG9KZ2#mWAy zqUR=uUn=~2j(&SR`9X&lNqwJm_yXZ?IDEbEh&&i)>-%HjgB<>-@bM0}&tuGY_(@{_ zN{3enzf^JR3ge}HuT`A7PF&>gbGW@<_=4i3XSeA2i{hlGUG&(83vGRE`wo$Z4lVzs z$WL29~C`|9R5e)O^TD9yC@UFTEz)v$#uvZ9X>+%FC9Kn_{)lu{@0~_ z-&UOTFA(_%4K@T@-v;4B6sP*ivdSw`ob;>}`FRe%MtHsAWKW&gvs!V|vs>hMIs6gf z4=Jwgc~WuG^Lvqh-{J2I59Fa$GDF)_pg8HV_w7y+ZjU=Fq#b8E@^+oDLdlcM?R$UD zb@(kZUYZrx^Zx~klb%v3cdf&Z6uwb$(lb+zn>!qCe=_41hd(Cv+^IN~d#~uf%i%v2 z{!_)N+(n}2LB&bWDt?faU;dkB9+xb5fk z9%u^xa=5+D-<=9Wu<~|2aHPW*Q71w;#^GlRAMbE`J#dl3?e(`N#Yx58tR3S_aq6Ep zivAlNevk0`9R6G3&nr&o7195O;-vpIk@sRofcihROQDH+U1Da(j*HFGzWIt%yA+H6 zdprDS;RA$QKlhS$ndIs{T%+j@Iv9%&-S^!5=VZtQR9_4@^-v0RGivnzW9H! z!|ih;afjRIrs^GjmFQXJ@E$V%T;T98M1Gy()b;HA(5^Vyxk~hGb9jUBtA+cJrGEP{ z?I7Ht1bTz2op|;fEZ4iSXWo&5n-^ z>Ay+%D2LxKe5S+yA-uxj`1N`Ys~m2hj9DcJj@NS1&`JXwwU&Pq6 z-{DrzvktfNuQ~i-8Q1SRyikr`pE{g=e}F>&VP!>dqS zRI_}w;-qH;Q_nk3xGnd>ut`|w@bg6e3Wx8N`rhF1<47UG?GCqk?iFt9wNLcCs^n?@ zwAW|;?C>9p{5uY}&p*BIaQpoKrw;EWb{=$i58?iBt_D9BO7__6rGdjoihRCsTQB=O z;Q%F1>zrDn)+)o-8MpRafndJc;IWr|a~?~(~(2{C|0st~5PK#%e6#3Z z8ys$*Gyk#Tq$f%SBm7En($huke?@VU&l34}6esx^BJUR>f`_EFG^uH(a=POS3d`yW5TNEesnaJPl@NUvxKUZA)VZU&4JFVaB zdq1D(gv)J1_K)1+Kra0LAAcIZY2NJcsSa2W?&rjH%Gp!@Ts!3@|KULPKMy}D;#dGOYe2~ zKB>R`9--A^`7bik^%seKe{eYc{uqVcnPzMC*y|GZeZrR8^J075&T@O+XW!rJa{K*Y zm!B`~V7cwL`Z;Pc(S8p?KQB#ukj#gVDLv$>xT%i!r%w2Xo$xOd*ZO-)Io8fsBwph1 z&n146;@Y0MopAeHwAF9d16!3m*<+8h_IX1qZ;yAXpVe^)s2_BeQn!|icum&0v+A8@#R9^>$f#*w{FW9ubiUVj1zw9)35R*x|OHk8${w5)+Z?_@_|*=-O89piev|N>4!=YAcO7oONBn(<+v^fPbok?<=Wd5TC;T3VzbbsM z!`~48ki*{-Zu^~W$4`Yn>ByVkiN$lo4(}rK&kGK>@2j%cm975%BL62x-aZ%i7l)hQ zarL}+96mwx*l}R>mkIyGk+;8F^SQ(A_t*a8aJzoui3Dj@|4Pws*XiUgL9D^Px4?3{ zPP;_bxy1Fn6ysb*ht^Z-aC>~;?r^)_uq8p%UfH$;+7_gka$Tke&0?<@nd+L z$1sVI0!UZ2B-)wwdUb8$mcbyb7q@#SqRD(f3-n@}R}S1n)O5?_^;j0_F+tqHP( z>=QZu6})uT(zxPq!G`+AxK)lS*j>W-Njt>xyN@g5ji_>CQzBkGbMB%d{-rvJuV`#5 zrXNs@wySn9g6jh~5~j>?by$Vk}d zG^u=AO1kCK@tn$c+s_*eh_KJ8e~fABgVqThmESA}Jo~&0l}}CSmVX79Qv?Xg9l{&$ zcZFtaKV8{Nk9i3nsrjUCtiePFImAg_=*2Eru%Ontbr4MTE*ChvJ}dRi+#R32DS|UZho3m l51Tu|Vl=TK*yjOEEai6_?~a|0@)v$-Bu*g%RdAx-{|E4@Y|#J! diff --git a/tests/binaries/coreutils/cksum-digest.o b/tests/binaries/coreutils/cksum-digest.o deleted file mode 100644 index 6374fd4541b5ed334d2f01269ba86e6407b1e8b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 98280 zcmeFadwi7DwKx7;CzFKC1QH z5e*(a+Li*Xy=V`o_3gzAT1Byf+IrMh)Y=QRR*86TYf;HXk>E5mvLs=c4ZVqRc&N~?z?eBbCC1}T|EupfG zPuoMYFcxy>A3N@yP^>7WJ&zN{-ZcaM&SR>7-gDa?@vHwRo%dnTD0)g|b{5{z6tFz| zLY>`DqWyT#Gvfl0xk)hxgH) zs=xE6Dh5LZfTx7!<8yQP*Zy8wp;F%S)=>@TM`;HL(VE5Np7VD;>AvF1qRmBDLW5W! z&xuSZ?|Gl`&)&s)8Z_?j`5lkiYb>tgZ-Ap&omK|Kz>k)1u3YHkS7M155Au zc~M14&yyS0`+I%?1!SBk&K^c07j>LV3WZ9#-t~5WnS|~o-7EeV&Um}hu!@rW0l!dB z-xAou0_?nNj4u|8HW&MOPJ7MepCEn}Ng& z@^>HecKsc_$7~RZM|_xCJ=WVh5xA1u;(7BKX6TMw~2`5&s{(U^mn7yIw zVdXu4J@fwG2L_HB5p1zz4#dc+yxo8O$G|{;E`;EHdCZ4tOf1r}$le9A{W@bp4k7Xl zpAKLp-kWLxmL@J$$VB?f8GW(xC^-emhLb`n>3$b{A0;D+g1$`BtiVT<`z%&yYd<5~ zmY(D9emAs05bK50o*m_#&_Sg4t$__6SN%QD`{%tK%=F%$_HprAH8uPeSyKM7E3P~) z{Ip|%;=TQtFfX>(Zn(^MK%lheBeJ5>&bQTYYJWE%!mrT}UAv^CaP*W_`^Jq9zwhsv zSJHJXyu0WrU4ijbj8;qcEm1o@^@WFfCoG129Ha1(06^$Z9iJwK-s|{uVR%vbzTyNG zc9TkQ6Y%gDKR{X^K&3s9=NOR)eMmFjDeuwCdrn-@uRw<#mre;?1oeLcmaMokT zAEDaLpSu0?j{AFeDt_;hSNuJ4+CccU|L8wp4gdJppf7-S!i!9?sA`FhcYlKgig zVXo5OGc()YQ<3fV_mpSnl=l>8`)d8Y#-tot5qkdoW8V7{3KK&~g}!ixpi_#th3zWN zRSJEfk1+P$Q^ncoO5x^kA~jSR?_iHodU>_0_FbQ=c)NZEE0_LR)bra_z1bfi9P&EK zd)_SX8SwW!K`b*EM0@ccBt&mTc7_-)RbMLGw;7b~*I_VwBbedKB-xJZvomtaYK;55 zUAw`I1pz46-@{R%Ovq7-2<*Mz>wo-=CI>n`@r9G*vdVLnj!$yDUF$(0{}{3N*ZMC> zXN`EfZ@^q=yfPBA$QeYw@%N@@=N~Jd@^(?jrJKn!bP|I z#G-O=Sh+7WQYqV4JPQ&<4Em<0XyH6#?wOLm4GeT4{>SM0POwa5Cf?g0mvf%(Nv3fh z)R&H3U*PRBnHNlB%BeGd`Kxe^JC60gM?uBTAK0=pXCR!v^PJ|r<#~(=HTN9vABj$% zR4(cHDLu#PVObDlgL;Bw;8l`-g~fThvuGu~Gqa0IJgr95 z-+v=KSJ6Kw0#zu7^V1G+;b*k zQAi5XpGCQ81u1{ePdP)Bz&DspvG@L5(83aqqY4QncFxtjU3UUd-t+pSloIk`0`D?v z?+pJwHY-$1J&)%fW8m2?As2V3!dYoi#)3+E!%F`Q03!Zo##PW`&Wb~uSNt-LBHqs@;y&UqATb9QLaU*w%l8CS|)QAHeXm3B%$E2 z-4PT;vHVU)InjNa>0Xh4jIR@lu3``VSC_Rc&ay)J@_I+QX`BU;QhMHFru~0Iq>EN| zTpdW7QqW1H#{Pd`Dg&f{?pvPV?>v3Zs?S8df?|d1)*IeoHS}Chw(>}J2M9RKvMc)} z08sSG>{PPdN>EmcSncHq znD_o;*dW7?D=QxmNdt&X71`^lh|M@t z^~t~hV|N`Z>UrGT{W}sI3(T<=7%qb1jP3z%_ZwgbDh8;WIrn~CYj$3ip>~imQ})?g zn{Du-AXL}uFz86U=AGd&OJg{b5^JDYXlicvi{9=B&}JMIUxwoCdJBE2h;Y8Y^ZINz z_GbY0O6?r9e<0h_(GH+3k-go?)VUtU7D}Z6lH*T?J)$}RK{iBxuW%AaV7UP+MtmYv;P&=~7cHK>xLzdq5XfBJzFy09%W^rQ+`$ zcbs(*9daznr9H2%>^TSHp&dYeleGIcqa>p1MX8BUGPJNB+PMVm=>!xz)la_PKZdAoi9U8BA<#`c_8eC&Or^DS?&_t9bVz4sSxDqb+`(a=xH0;gLR z=OX8#DbRuHYU5{z@wr@kniP2xm>L>;^IDYrj;Wfep zFF~EH9{aj9Vet_E*>?gNBk@!3=3yuEaKwww! zc7GVpR-+eg+1DUOV&zXVh0WR1iykC?R>2_rf^NAz`8KZLsjlNi_Af0yEFv)f05Lcta&1t7SH zff8#%{>O-xh}6@bD$*@^o3e|O|32UzSg!-V{1zgBLQEtjaLWa!G_lMkUbu1Z3QVl8bYDA z;QVRRwr$&%SKkuOYi+Ne7Hq8xZ3B&IHLdM|aHz2Xd?>MEjxUn_Ue{kQ#G;j zZ3)*i`$CJ3W3a8g^$UTT5R(iAs+*@R0#C?Ny|ucrsd`IO07BPPH#P0>ZEdWcj}_Ln z`X=YtJg4|31t$e3OF1V6=ldo#g@M)#x^01WOvA#Ot3#ncEiipG4S||#g5hRgQ)5d& zQ3xN}je{G77zB}UORb_@R8j<-gh>c3#^c6%8-!20HYD~S`azPquCXZq!CS*k zwU9OB+Y;bSk4N9e9|ApE{+iZiSPM85R#(6*LNyKG5GDU0{6XkS1q^O7 z)SR2!5NK+fOuF|q!#sG~Xd7S+WK$c0)%5{rG3dKu^_q&()vK<|%ggg!K~_#Jxtofz zroFKR2HEc08fb5<+Yym8FKNjRUu~eSI@}cUg@XZKs3G8+QQ+Is81gM$x71hNRNvYT z-)R=Ke7@Z3sgTMBFRa+Kro`t92AW`dJh`^9J`hB6M;nN>63slHZ+#%(D=uALvc3Xp zZ))9UNd|f~M2|J+iyZ8Y5p~wJw>C3zS{O{FMe3Sh&9q3+X(BpJftLDE!@?z{73-Op z6h?rdJX%+9fv-6X3CRWm+iL>YI9hab^>$KoQbdT@7GZ5^s=g*r5K#-u!sK91)gasy zYHWkAwbuFOLNGxhH#byWA4RPO3k=bOCF_fGgP|RmVXfAeLww|xOp!Zi(FwPJQavP= zhfSwFfSnCuAez`z-!^PsYd8cGv$uui%DtBKb#0)%)uKh`05lt@u4(XL3T&EPlS%ki zZ7840Dr*UBBcGpo9!1gq)HVh==#ba>TB@4^zCf_1x~;LLo|cqUfi>2(Ho+7CfopDs z${gVoR#O*l^0l@g?r@|Qc1yUHo`UnG1i875^)2v?+~&q$kT86;tu2#7zB&Ql|*&p$5n~mC_A~RMT1;pp>yK=##V^gxVY7SN0Lu4!>+^Z4nzsYl#;GZ5@fw z3TnCAXt$ANT5M8iaKCyBnaAfLZP5?%-wHo0B0j?Fh)$Gd+P65i6pyiVB zP}&KlroBcG@x`EU9wm(C+F9{2FaTDB5^Si>k1q-aA~*#FGYKn(5hi26fi-LP5LmNj zN3dqh9fB4HB3QHX3*ytlfW#7^bIV}4wpbX!<{3l;M-F>_q;v^2w6})q8+=k%!k8$p zQWeJ$fgOtWmPu?aL=}?*WLM?NN-8LFscv_U+n%gY%SRUtjiJUskh|=>)DjL#E#ZVp z5{wSki!jJ>cD}E0QV>@O%U5kc4wBa%N}#1mS%%z(ELy`CJR*hzm63&iSeHm#_~ZJ9 zu74s`rARxZzUD+bp#g;+p2?hdR3-{ zgYDD!0%jW4gNr3@2jDoi<0(*JbrTA2QSHTaiLqkUfx^pT$~9$eo^Kg0wyyD2HdZTZ zs%zV;8|!^b+N*1KDAn_u=5MJ9ZM#;IP}p6SXopeQ?i6AD3K=olWJwB&Hib$pB_b?m zP{pd}6v}&wOlb;=LS_A?^&1sb;L1w8FtFZVlusWB-+Y=in@-qYI$?8_CFMmcN(#0p z>sQWD5Fiu^5DEf>g496sG^PXDO%A6 z`Dmx8q6ja?$k$--$mUP}8{XNAss7$Yjt4b(vL)}^;%V+oQb)xak!@-2cS$cRbU>6ElC$Z;R#Q!On97-mYc16R_|` zu=d{S!!5neb60zBIf3T`ooA{$&rR~)lnkK1rnp=2t7jGsoVK0^KLxO&sAs<;pPyR& zJEQvYA-DCcyMHV0HVAnnzBpNE{TpM)`-=gg`(YBXe`a()noR#Fdw%p?O{tepN=Q?F zp+I^)>ckV6ARje~7vZcoGw=X66)zujJ&F6~{+|D00?{;wyi*#D#xn;!;pwBTQTyxY z8HsqV#II5D9ui`+G$X;sJ$q$Catd2h3Mh^%^%wMaZ`?JT~2hJF&p< zBJq|M)1mix_$7ibDCP2Pf_=Q1(KmC2+(I`CcY%nvTfs8}dC!r}tN%N=kwh(}|7&Q; zmjLC9eBvb#%n)zqRl}ruUa%fu*BE;(MMqvd>iksm-n0pLxLb_}JzZagW!iW4-Jm2o zN#5?a9V1;opc%X}>n6Cj>puXa*MvU7*EAc?c=5c~!>LkxE8YH{5$B-+@kP@1l~fH^Oi5bAa-mPs)4V^TS8oj7wtD>maz9JPzhL zkGBGTS}vZw6nXD>oNw!bI}fc94~qsu+0*e%BZr==WfTphKXLh{vtR1`G|}6=1IqC) zRPgD&>0???M8lQ>yE*_DTJAnbO{u`H`LFe7!X{Wva&~xK z=bu#X{dl{tf*;shZ;7RlJU2YK7qc9X)NGdYU`lpED<#WP!1|xV1nH`*D7+9D{+d$| zX^Ig)6gRf*=WK$i8ct)X&Y7WXi+$H`VYq|Fz1=4Omh__^VDP6yfaGExfK?!V}LnXM(L0tA9I`90j1adz}DV$e2gSWEaBDqp>5} z!eeLWlNsr@G89;{Vhh;;_&tNK$Mk|E3}!0sr0jpNRkV zg&f-Pj#%=`vm+kR0o&tf$7|jY59okxbF||%JL3Tzur5bCUh~=*V61+s zW5#2d#&*F!&xf+}pNyYx?*ESczt=$GT=GMe+)pW_kMZ;o@5m&ek?om{ zQ(_4|xRp)a;VQYY;vuL&D;Rbq+6xU6PZ<;swF~fH@tFnR#fh=ancnXcOmyZX5RzMT z=DHt6Cv_37-V}2lk7OvGM!*uw@!_F)+4PY}lZFfFJ;$l7Q7}`060+L?FCF{3jdRxsH+)Lqf7#JK%TH*+PiKi?^iMKL|;i(iEmBop7VqPLCH~VYUI)aZP)@_oSPD^LL$#o;W7?}JT z0K=xZUPD`4us!pY1rmC(>pei3Xrch6OjB1NT93yZgl}=u#K{mRw>YJWlTVx$i&F=a zQu$NkPlG?*VuxSxNe3SL-+#@d-_lZtbQUIL?Mdxak?U?9nagPUqCxu;j6EbOwm(UJ-F7f2i zIq{DWDv`ixn~?0w)nr(Mm&$5pylXG~wH+w|eFQlt|m0O)a*{)INra z_I_^9G_M44wM^XxB)-!7$1XnoeV3Rs+{czoMy`+rr}wPDJU!&RtU`snCf&sP9)FcvN(79@%$KwG{!~;IVu|GznpN~2YsbhdI zj38x2fUIThm#JTdNhcn}NAU@KXcX==(zo^7<y=5JR*M@@x9VQ z#r%~PYK}Ud;1N_NFl`V4NUR*R2!Piu7J-@S2!h8DSg6Kq0Fzy$jwZn)xM`E2vcFhl zlZ5n_s-8baQB2#1Nn=q7@IoclN;NYXpa`vH8%h0FsAdE-GlBKKMZF%FY}+0Dc>{m$ z;m=O~?BdUE{=891qgvo*i=jvH(0pD&lRA#z5f*$|kZ~hh))N?sc%8Un$lSt1zlk$6 zrh$jf#T%;Up)_20#1b5P4G-nT8~OqdmBtwwm&!4(F=|L74;5mLujZ*;QR8B0RDwz- z{>`W%5mI>ZBTXKEa>#Lw$KQxEJ^^%<(SFxw_80{r!FI%)F-9TbF((^qOJ2%=Bs5}wg$>ETkRT)hm7u>0G9HRFzn6@A=p_B{9J1wYS z%RWx&h)F4Ph(PKX{a(VN2rD4IOSFdxLg7|0Ngb!NN?)`QnRn_~0q(cKVl`{W`~{H2 zPw7Jk5rN#Tji8dv2iw!WLCcv$twqE(kv1=zMi@2i-_!)kA}a`iLlPObV|7`h6G+@T z8s{}d^pUzqV^McnbA>)G_?Y!^mpy~XD!gZ-lGKw?;GqK`L&;7UXlhqvjowpG5 z`~jBLH*r!573Qpo3x6k8vw{fl4ne25mRQ1T3=@lT%W(zul+FeYWCJZe*9vP3aUDDa}GDb)KVAy7j=Cub#7X3&vS1WoE`{K3-j2dkRp z9#O@9Fvmvcadrz%I%EbK)exL?q}`OOyx1#g5?PD37~I9O+2@y|t4z7T#R~IXE);e> zVN+!y-C-SX|7{jy3Ejxh|FocDVXUp;lTseDzykS#LoCMcET~v-BH(fQ(t{yeEn-No;-P#RvS&$^>sRvFIvV4JGr~hyQ3BOK5wiwJ+DJ62+YX(O*YSXb8iHi>PKnJQI3TDb{Ml$avwQ)#T21O_9 zfNLnqZ;atIN8kU!F7E%%7}1BmdL{A$ZfO|_R9;wz7f*bZ-y7mGMgqO9*C?+?qw&-? zqR|-k$7noe_?f}iy-9W*cZgB{CcqYFhP_}WIpx2=8my3w2HcUe$&iD*=EX|X4aWZG zcex@Xq;UhN7*VIIYDFZis_I%5C6Ps!yzn9iB4Mx7u6HmYQmY*pv7|si97Kxv<%6F( z9m&8N$d--AK*eTEWWW7?MRuDcd&h7GSyIV+f@~a>j0WoGQpr3AqOB5Xf%rNPFo{}7 zs{{RW>PM(qRV(!*x`{eSS?@SkMaufcf1d}EJn86>5#na6@{;Lw8rKvWWUG7GOyLV9 z0^s0T|A|>+sHgqf^pc+mUoySqE&BeqgfIQp9LX_v|CwF3MtX7M=SIwCvpl)W1$)qT zqPLcJgciPAQObxk9S$rqowba*&fNdXuGhr@2ylI2HuQY^MtMX`1TxRL$LrX^t!_8`UbHZiDe1&YJrB1n`5ZWTxoBZ+Ve zIJr?)`U&I0m&j+Knsx9hnU~GVM zj6`UcWBC!X=fG7-JB|-ZKzz})TuG#U2L3Cm;mkzuNXgX$@4)OiMXAPE%9Yl^zN;IF zT#HE{!we&ZywW-tX2yZJ;=mH(z}(SEjp-#u!#Fx5MKUep3=^3)N{*Ch`aI8L@O?Uc z|49*5yawO&(vj4dPHHqSFJ2T<4n`+mj#+mhU@^hT1_v}9QH1+BqEyiLKPmcCj8U`$ z`u@{`!NrDmr9)wMm{}x6|0e1=+a4|k$;|*zB%tJ~&Vbz;`#WM2aJK^|V!q_ev*Jb{ zb~sMHA_BjJ8(A#fAZXv|#NTClHpjCc;}a60Gj?pFyc&F!MR{9vQmU*%7rM`;VR7h zv|#=uPL<>@5j3*%Vn#c^oi{shBAOq<&e>sPkqM5-qDU;rT@LXmHa{R}I%2cEE3}WN z&%@G2q#Fe1Bpv7S>3%}$Sh0srIN|3+;I{G79SNH#O{=plVv8BEsWvqd zBH*CL=+WFMliH$0b)uHT>vvF!7gGu6m;VHZjN|VPoLGB|5`DsWha#j+MyqP66Jv-l z-{inKFS}bDh_uPk*IA{A5Z@LU$-n9W(j^yy2Ni3vI<2q zC!F||3piV%lSP!34dU10m=&MjjYIHz#4+>p^ZTu1md($$HBoDoBd}2Jlc!1y`<#! zMK}=rnmBOceDnD@lLGE_BA|FcOj&XVao>co++!HS@LYpq(U)-$)F)wJ>A8+|*w(WPGLa^6 zze1GYFXD!r*wMGOG}Zp`jJwPjk!5z@XIt`Asdq^8j1{VoS zFo*9(n}atPXj6Wyxl1HHI`K9>prttZ+3K<`qgH^em;OHG8`?O27$^zw4MJfl-_k}9 zds~B~GsitNdd_HjYeYu5+_otHIwh&A2S{~TZkv|wT&_vuZQ2Ec{HslyHORldsEu^` z63_jjmhH4;C@L7OC~S~8NC4YbY42#0uf-Ve($!I7Te)97K!_0gYHgx3H?y+9Yl}AW zHH$vZ309kJP7u!3oa@~qF>s#;gx3TWEms>u2hzx;Vg|DOoyC<4FwyaYZPg232| z<0&A{;$|=+FD^=g&7YS*Xb1vd`@95xJOqK?eqI6}4?$qUC7)9Va~N^34zB*Z1hx-B z;On24z(Ye2c>VJd_;d&Y7sCGsJ3<^gSip#bbx`|x30xl`FwBY=hjBCh;=QN=1|7gV}yOnC-{$+0xr+@!5VDpY2-~+Yd9G8_Y}l@FM5_ z3J_nXk#^{?O`6`1i_i9*_-wC&=P|)|qI^k!qFhOU;(O9};;`kbQuP6@aP(`@n;TRf z&_?rx;5rgo4Qi^cA}{)6Zz7GYr%tLG){>55&OGY*cn&vbQPZt>?!Xw=qd;6b95h5{ zx5n>Rh)#!=Im#Zn**WrM(NWTf1Gos7Q3-}^mUpk z51{a&9-s#v6)lQ-bPV0kQa5Z6uj;Cgx@Qo^;w4^u=AO)AbpEiOSgHr;Np0$@j-k{) zIXlY4$fVR1M`zp^XXhekXNIGbN>5p=!`@VSjq(!6hD{ZBy>aJgqlLA?Il#{>=t+B| z&WpO2O*h=z>ddfQ$O-I~{+ zM_LZQd=Zc6p!@MQyQl}?#ID>yOFZ!;c2<&9h@HhsK5}v}RB|ccSO=m8AL;?B0v5Dl z$nk2Fl1ov;I`mHQ%(b6+!oCmIcO1`NV`@oyfu>g? z&Z28X$J;D)tL6JV7BhcF#G;AOE1!oEA*!$zT24HPY$GQ`dwnF{#d20W@mBHJ`Ni9I z9hP;O)!k_-nnsSId&a@_O%sjzS=s_~UUF%gHu`}jqwyp? zg@DNmk_k2!SP6cGW`Yy$lMg~q^eV|&ZsL%Xr(T+AO`V)snpT)e+>)bbL84(o6ugi= z%E1bM-Ecs?itW>F{l5a^kJX=XlUX-ju-6O0Ou(WaoX{uVv3r)`g!D(2+NJ|ER z1{p>rs~bj>c%yBpp@fLk8F{L;)-094!_^T9i!-j}C1o->siI3W3o}u#NDylh1spAL zkD5tp8#gl|`gm47u3|1oR*51>Fu|4p(oF_60{VDi$zo>|C5!G`O=QK`unWhl`DyFa z2bY)|Mpq_pGA~P}iP>{liIZs4qyQK3T1ec%OPOq_i?R}uvy9R-vFAi12U5DpK&FtE z;60`IyYMtJrb{F#lSw&sG8F<3+O^y~i0H)1OT&(nzNY0VvBrW2A5qjx(|o+5e6h#6 zut@ySgS5YnTgdTTZ=BkA_&YjFfnSiSuR4DV{ZVaq*yzE zzYL=Vsn!o11o8uR7MED}yA*O#TwFM!N6jnv%=x(Bu`qhK4I*H4Woyv zsZi)bX~9UCi$K=xbhk_4P*DBik;-J~sfcQ^B@sWtU#pE|dnCb&sY#6zURiQ7JQk#2 zg9KbQQ&}#%B*yY+jngLh9Seu$-K0w6D~*On8-E#@HvQEEE4Mru?UhbrC0?rrnI>|r z4I_hy80;F>v$SfOyf&IUq;gu&I@?Adu`rPJwn501S4fh!w{Kv(5ZVC{_xETKq@>H( zIl;A(wo6eq*^W!2mlKd2;R;e-VP=bmg3jhhhc*ry^aS?Q6u0E95In>gMk)?NnU9yd z=XV?GW~1A9%rJ1*;tNKPPx+~0C##G_7K2xOaLqaV$Kf1R;d-nsy7nU^~M{J15_#w z2|?DgAOgUWthXcq21~Nuk^}%q;sFiGxZ+SGBQt9U!>hIFhm5N~)9E!qqr*6nz>R0! zKZX(jc_i_1(fBy=0Mr1;t4SZGP{Uq>gP2cUWBgV>r{i?5an!)+zl>8jiAR_A4EcA> z)Hjq930nRk@O{<|fr&45f1LP0BDxPGK0;eSLJ*W>pfibpvqGF5+>e?x_?Y=I584HZ zWa~h@n((eZYSNooz<*LSo;H7q#RDQ1kA_%08e;Kih{fZ5E?GfK+EHS79d)P*<1pl*yO)|0AwmGM389Sx^D^cQuU-gdq3Qm=}KjND^fFb5xV zx>Vlv_td{|Lmn$;97KZ(q_~N$A~`^wlKvzM6EH zdWVzlquw(qe}KLm+vQ+$r%JYer}_l8=-f`@m)ch$F&a<1zMeoM=MsJhkVKU!10AY3x~qi$Cu)KGgqWkSqO#B?lnF$F?4SP{EUS>fs^c4s~UVR?NwfK|9zHey^jR@aIp)mk% zN;-fo6GZB@V`@V20hrTFO>ED9_`ry+p4A6fZ4wQ*x3loqq7je15`w+2nzj%??+5r}jX6Pa$$f;iayS@-03>E3(P;oy{o3BT75 zQfNMCJOee}w+pB5AOh~)WppOpl7xXTC*6(BLjSJh1IY;9*5M#i#d~;@aSju)b@wLS z0INdd-;lmtgwv34YS zVN((IruI>o?^EwoWd)+%iz{~HUiJ3~`1Ul1Hm1UOrZP6lhC9`7;U0qVEnst{VNZxs z;8eUeGPQ@4-6Qy{rJ3NfR`6MGPmAKSPV!kNvDYy+_^cD#M6;qMRLTjJazdpwp>l`` zo8*K|a>6ES!luZCC>|pq@`zR}q;)6cz%q8?ss38yR`rCg(kg7_kD$QBheny-A?6q| zy)k(R19>y_-MbGNGghG8qaD=9{L~1EOy~YN;2BPMgax%6Y%;NlnIR;!&<=eoxa`r5qvz%1^fdY!1w#p-)bzloR^sO?uV2 z5wmE&XWa>LyCTG*wki=JG;taN=x$@$3|P~T)Vq-`(R%<2qK1fI;#*3P4@5!4pKM&V zh)%Z2#5Vat^-5#b%_=@`Rv%UMoyb9ts-IE+u=YB>xWIT_`!m&df7Wi-^<5afU4Kr8 z2+!%Si2f^jr$Gj8JcvI8#>ayO6L}EJMgL{vW)q_~n_n>*e7E^E7r&xTA=gd# zZUtjs!foO!7HsDjjU1sx4BeZEH6rHaBHQVM!8rhP^~?)*Y=h6WRoSUbJY@K$x_2X& zO}r2bm^#(9TWKTc)VYA7MbNp|+87aSIn^~8MmhPQiff01>epo`{JQ!80Ul6~N-q&L zyh8#HDcMtm{aahZYl_;}3t-_FOr$3ij=%6IRt$s zS80(0fXP)_3|oC!tKJ5aYHdxx z_lmQnwO;FLQ^HhBUE8I)wu@$;dIyyz537&kBp2Y=G>*@HD6H%XWDcvqaUf)oZDkdJ zVZj`zcg}J)93tdE+K8RqSfg);JT-f0SLJ1$rU#2yc@03I!bpdoRi8U5-o3pa zUa?{&S}RW@A&`7diW&sb5Ig|2!-Y#4zk`xQ6ISeiyFu4YcR@CY6csg8A%SMdla{%d|!6&icBC#Vtx{0R*_uLRGBh^M2LkFcVa zLyr{*85Nb#TIF?UUAG&p-Ke`a8b6@avj*{f4;7nxw3{^y-K>3^df(Q5M7z`guf$XIE2bIomsrNxCa*9KY!>T)IU7`N~6?CL`KV5bml}1@>r@?;ywRz?M0MG(uoX`5tNQJRqt5}}LE~o{Qpm5gFB^RM5v8?}Sl!F& zJ5UfLiYiGLItUtF+GCodZ)?iI!~`WX5$5-@`fJknuhrAe3c`VD#br>vk=i$E`!&1P zaNzN6h8m}QIX)d&u=VVZ#3*tBR9+pCDji2IBfifVLWW!?s6iSM*a-red8ylam+kvI!Drs zQ9kU-+p6)d`qwC-lX1%zyKt*!+@{^G8DG^7M~RMK3ewb(+Px+O{$@~APxKepYHI5n2yNuIGe@%7{jyI0!kC?_AiGN6P zf`=L2QO^DhW9?d_w!sNfkU5=wuQ4Li*>@YsBb@ydWAr#9YpOBrq-y*?dnjs^rjaz# z$XHz_ zH^NsjRV7jQB9^8fRaH|TnP#dkPZ4T4{XOlZsi&ozZq>|CO|PrW95chrC@~XUmz$|B z)l4WelU@I2deBUEUAe+cM`NV>k~~w@vk0Vbufr^AEi@-88j-w8HAhiPA6{mGS_{n# z0;!BqX6i0|QYFuG6`H1NlbPgF%hA^x`^+>@^STy3X*CShRNbWz5;6}rwJcLVWojW) zuQb(5O>MlX7h>So=NmUPVCZ*frz|Ab(_r}TBz(29Xmo%p}4B=}~<=7~JFTY;|{<3HsI$fyacy*v39c1@V?i$WRfK%4YG$ti^w*{fqZuxJM4y@M(i=X)t0kHNg=HQwbnGSC z`koz_Ppxz;O%DIfrD7akl!WoF9hDd;;Pz*(gEqW-M;XEFL6`m+@gkUNPNkF8JqSsz zU`fE)(+2_5Ouf`pSNNd$Tr&r_s(#riI#rt4;-te)OrW_Z^27w!ZRRAIs=CuBT~@dM~Yyc0qL?!9u3$Z(w}NNptFc z`h>D>-s#5kzBE`Z2Grr^1=tT#<^?NE&m(3^r8#oGnE+8MJiSE z0RI7diSAk?^>zg>I;Grn)nc^V%v4QtKaXX)N|}6S8A#iDz9OAah;3$HC8+&Roi&i+E=NtfzEGid^#dSj)KOwXt+++&UKVNHG#%D6P7l?Yu8qLf zJ$2?3a7a64!X48B04-#BTn90|%S^;rN)^7Vbw?fgmzu6LkW0gIQcX`6APdp-nkg&I zq)KKt$wj_?ZOEK-6`jj!0M!#IHl&*)H=?r@Ml{Mys=y+_I>9xcm6_oB9`98mv@#6B zCLo5;-le$oZ6eO8`b$b4d;uaaar=0=1!ZPRo>@?6UL2y`A@iX4YU-mAF!e@)6iEZ4 z5Mg4Bw4RK!YY&=VXBK28v`W`W({rPV=t35>23xBS!{)N0;B{ma2igDCJ=e_X z*q;dvdkf8xm1cS=1V6-9ky>PCt|zeWn!&~nL=P!kn7rw#$2wIr|0rhYH|=(pnd4kA z!vvBqUFML(up#vngwxZJNnE4N9NN27y%|B)Rg_Nhks(5-=`<+~awOAEQ(8y{gAp!O zn>GT5bW%~x5&DC>$*4{$WqDl=@U+*-*#C(*dn?U}drVKEc>(SA9p-SDfARvCdp}w#`APa7z_D=?^}0Qvt&iP9 z(v@N84`N{49uU0}{(Q(xz{ErB*(h(e)FE_Hd9#8ngen`Ce%mgjGER1;8g}Uq?d~&| zx~7|IySdbjjG!kYJ}lM48? z<3`d-)AbAB?Uy`I9h|wY5;@{7!<|RT)}_CB9cZ%vl^7s42XG?IQy8bM8dZrM96=+) z_N0-jK;_hRn6K*JHMlHs>A$q8HS@U4$~1Typ%Rk@2x;ZqW2klILJ((Xrk&{X|vqZ(s00CI1?iMkn#^P zgd!hpzT4?GX)j?FVfK`aP3GtzdYj-q!w~mG9^Mbg7&AlP{t>3411TuOBK2IR-iH4E zO)fp>Ajhc$mzx!U8Mh0YA(yz_oa#~!n`u+gUPNtka-li3kUk43Kysd;Mn0zo%F4J% zaPL7WWhPTBEHks{gwRi?%gije&q27yGwGCO8<6g%y7U(i#3^-6-D6HCv^`vg;sjgk z-3>32a>M4z;A8dXn-m@0Fvd5LL=b%6gd4gK;#5eq^&FVosI-wJ?;GYcqL?Qrf*r}> za=Ga$#g$GUX=W;e5XR~3{+{T!OUy+A41Qi$LmGB)L_PN6HggmpX|6{ehVt~BqimzE zZ404J9jSlIO?~*(tJ^G}q5;-`{#{&SajC2?D+E6XP9-;x=R*hF5=A%$u-g+4bI>rm z%$XGBI@uAaL6koF8kB%~0d24T#4asgHOF8r z*nd0zxuDrm*uYAcdj&^31g+eY$cmfkOHH%4o8EiOk(*5KOXkRhruQ;)4P+FOpM%~-^A_OzJzE?T_qBn-dRPz#^k!I%8StMtz&Rjyh8^qOV z8J5>uJkj~MwvOf%XQRDyMnhFOC9wPLiTM`v|zuVc5%SalTcX!ATtgw z81+=TY$VfCT~t4yVYox|>3YRX;WJ&j88BAVu}8_~sR>O}gXka^nRKOr&@Z#2mOTb4 z#fBuDGSfg4K^PIM@C|dcJ_W}92I~y*qY{RKYX!ngIb~)R()CX!E~W~P;_4jr8|*wq zyJWbT9yU`J0Ce=9gUGahy!({v;3@2+enA~??T90MNvU=T$2tO)b+G|KV+ToN7b4}V zADNj|t~Zc`GW3==s5bjGRXh*wpo-tR<~5MsHkwIWO;-?WM-`-+hD+^ZS9*CTU7i~H zz1kbXm0sFuxe^kK1{(U0br`Mw*IjgRqKYK(+RmdG^XT8w_DBbeo&|%y7iPhl<+?iI zs0r;S6e6Wn;zA&?@(OH6$V_zSQB+9;d^l~86S6tF55Ktz1SyH+Nm_Kp?Ck5P3!@=a zoM1WqZ&WSeS~vNqARTD_VFDhYF^uCK{;dr1ZuE<3^mvj1`Tr3X?^UU z)T|qtR`n5Fm*KL~ooo93Xl5=j$39|?ZU>vK?9bx5jIPJJ;68g|yazIoPkvLy_6`f- zjLYj0888-Hb00CMVJK6ZIl@fbW@cVuj$dSE65)n4Qq+zkg!Q}C|K`LZYJq@FB{9ON=i%K6XpIpI1I44aLpC+O-U_l$&&)6DTf zO4{U{G(crHr8w9>Zhzq(9$nrcbDGf@TqxoH#phvyN+!#b{}JaX^(dS z!5C9Fka0m(ubL@z=V%raaN~Z9>j5)OUy19GkeLQ$6v85P{fh^!B_!w>h*Ek3ZI_;b zyBZ*(yVga?k>Gj;%fNWcDTcEdoTSx(C+=ss^m+&(E}Qi)ph=fFKOt*Q3gJwpn_dU@ zbWbEI!NBmT_Q4~U!*!kO-$>3HmizmdbU(W+nw zzgFHXe#N~i@@w9~KvSS5RMplLZpV+<1sksoRD~4!UG=5;bA0*vc{B2+`*NE@;g-O{ z`anwnKMIa+b$d<2!tHZs=gyw#%dO{ss|$R&^uMm9HMgdh-~yI&KiRcagS z1Hn*LLtuN=mK`Ddv^{>>y}qS6fG;NA(%4enzN3nMB%VnGtG5QK0xh))7TOkQZ^BS( zdvkRt6sWDDAG;6A-#K?Kg*1sRBJzS0Q`*+v7z$KvsSXC{m)l!vn%k5rk_W%+4i#3n z*H^V*^*fpZ5WA_hMJZpsYI*6ZimK988;iuaeShlRRQmh)kN9ANlYh^*1x?Ejt zps5kY)DWn-hE`M6Qr#R-zy`wCG(fO`(%#loRaev03W?gn09Ln0R8)m-BYtDv(rHb& zo#YBPw?NZv?f5OmI-pzwb0p<3O=yI6?@YxILlv!Z?4{6g>M9_Y6`R{ zSY^GBe$^2_k>y;D^^@@p)xjzV42E?MjXoGS#u{+LUI%J@v|c69+!%t^Ya3gtTCfYeQOiopOT>;f)&{C-t3%b& zV8}SCwuI|oPEZuv42&t<;v`sA*B%H!0vHFrPOG-2r9J>#*&c$4)wjX|8k%WIL8XE0 z3hs`5BQHM_l~^6iTisIA*wjR3+SpRpsuY(j*|5B7&AQdg z*A=a-f_s#%UZqqmX>Dy{fgwz|N$^){nqX+46ye0GV{>Qwur#*5WbKBMRTZU0<**>= zDI$GnM;r7j_QL@VwgqY$>l&dC>}-9gp(+BX6P9m#A8jBRK3s$hllfNB`dV5EUL8WT zP__ozgE&_OLN!Y1@>Q$Xl~k=PUBA9`)pBcv!G=H+)Do3c0&0)g6~q@e&%+gMizv0$sS@GWG}Jb9_uAap1=w;-e_b=9?7 z8*9kN1t$3MAhxX~7=%-Ch)|@NlC~UPAF; z=zHyk(vk{m<i+n*Wu+DVs?{4y)-5YveVI~+Fc6H`2Fb?G z%g)pq4q>>8ehSaB655sx>)|Y|b#-ufc4#bsHZW+%FPl0IAXY?Hj5rX4Nn*5 zj)>Wat!S^WQ8uiqD6&ngs%RdtsqY}8NC$g%dn${ z>U_&ms;ahQf(XS}U7#J|#1UR7n^AhD5L-n?AY!E*Fr`5$8-*i zr=lu~St>GAHGZEFCb<>76fzhQ3ZVNFUC94HVBR--OZ)>jl&Y*=qOTU9f8yrn!? z{7S?`yRs->y*z(ZZ1a>PWf|Y_CSJ5ycG%$MHC+ zauK~1#2mS+Y;%L%F}NeRRY4+cZ4XeC4I=8w$gkA4iaLNy3Zbgy8t4Q80@1P=TCw=R zJ1MLnRd4|miQ1S|-P96p7Il%x(9KAO)hIG|Q1XJ5@P%Jr*crA9kbFq18R3%oAeCe1St5~@u?)#gbbtg{uNt zMj~L+_nnG35H~5YE@sc9+=2AcfD%Mxu;`$Hs)6GdWh-(Qaz##*vJ#>dH??l#8mNs6 zEslq>$g|=$r7q-Ehy&>(m6k9-UJ3NP1w^b(k*OP*F-*RoRHJl3WQ(l_wQKpRt$fX31yak8slr}gv95Hfo!6?WBGHDnWY%oO=~+;0J?aan4R)hQ zGHi#Dlv3B;+AMZJx|W^pxlEOYir9*{BQLaS16#uNRX)#>P2n()_RFPI@LETC=%K61ET7>njDc`WJsJv=j zN%4lICF_*NAgKZhgfrDT^l2waVp@gRUlR_7u*K0vxE(ejeSO;cqSEqp(?ro5oK}PQ z6b>~uVJYo3(}d7@HOl$0lxg8$`?SWEnx=4VU>Yu=t7gy4g<8YgbL(5e)3{7KKMHK} za}b#(DrqLw)VO6@eND|^Zu$9^BvBNVylI%iYZ7{u9*m`dc_`4F*WiFav8@GwNW&(b zM0&7YbXXSWnJ-}hz^>E=>d=q{xd6cw2pLFJ=A+4#1dp|caj$~%5_8mQON*is-S;)0UExZZ0a zy3iFQX1bwTba)Ih<+5L)#}^+K6lb~ETwHyK(bjgHSyG%uY7sgR2?9X&XSfcUg^|VZckOm4oh(N;gv|5Gmb~-bzgB1Y`Sdkk!O01xLCF))49l#dZTug zhhCYav8(Z)j@U6jVAu1AqP$7xC7#rM+7eI3&3ci?ccW44$>}tUJ=3)vNuC@)iaZ&> zSmJRPCu=LBA^eM;Cnc@l)9akeJgK)5ty}aGk8ht*;>o$0Xx->4^33f_SngS))g^i6 zmUyNYd2*I`e83d6S0(fM()pE8{8Bd2NI zH+Ts)SHi3>1S42^9K5UJz(R3gd*i?k#DU!x10$V2DPjDbjI4)}q4vJmvsk+iYlSt$ zXrWZBHB~x>8+7R)+s>9S{(3*qzeOwcWbD(S=bH_`C+9{JI_-p>?^E@gpvdXvo}8r) zt16*y(;@vdNjjDu%K___h&!BT5i!x$!1DzKk<{zlzEP+`gqNAQoYRcyjqQO5g_oK zlj=GE8j|&WD%xdeuabk>H{wcHMAF4S$b=2$!-06Cx_JM4(2#CNujnD&j#LpizQqzT zPdW(o^z=q=6=NSL6gm64Vo4%Kn=sX_-r>-9P;~Y7vDD($^ zERPh4V;^AE68?dNa~uP#8UIyCor5zSmR-_cXsZrASnIll;mOKrN#|G&G{6CGMN z9TuJcK%3+_E$xD19$@!N_+m+z;~HR3NVre_sRqX}z+S?CqHoc)&NR;SCBF50C4Z3k zmj0!<%3m3ts2szYj_Km0xPUoS5NO%XnD~t|H ze)^_h!taxC>vup`08VmVD9~*=*GPDF416=g6P3dfZrMeh#LtSsZ<26d44k_9ps%`7 z@S_?ePb3bVwiLnm)@md%oH`gk5>YJleGCV_1Wc7vz9#7}#+i<*`BPDjFdSdhCl701 zsH;2VvBm{Ff*%d1uOS|M=*sZHKtOcyt=WUdbn(kNao|>Th#u0#H&;gk(bFT}>1~hw zgx4>f-G(A=NVsLU*3b!tJAMpY4*X2Q`Ojx8WSn1+a0iH+rzCt-%)o0BF3r;(JuTs} zn){=K$6CbO5^jHsxuo>Igpao=i^g9h+!q7?Ou{>2;Hpjlm-E}A86!c$@!h&nhxo1^ zm-3}3D1NV3;@=(v&y?^vG4KfzzB~p#Ny1~lqTmtAxNW z4@&rlG4LG{o?-j8`YFC_ex z82YbDID%Hx@jD6k$H4z6;djNr&r0~|82E=0zTGN7Bp3V%D-Kg!bUQfzUBXjiLZ#00 zO{Fgeo+#n|1P2i`y%N4R20l{4AB=&ImGE;h@GJ>`B_{AqX1GgvB}V_b622)0K10Ik z>r|bG_`L|1a&rv)Qi*>k23{iJUyOmTkno?xz}HInGcoYX7;Y*Jk<`y(T`A#bV&F9r zPTyefJQ^kZo*4XA3HQao!xDa4)^8TA>m>Ye4EzQO-yQ?MNx~P$z`usXXw^s-Z94A* zemwY{L%_d11pI*^;3tNF|8fZUYeT^Mhk$=D1bko!cmn(+-g-Slz%z${UpxeS))4UG zA>iwVfL}cXyk!XZ^+Uk-4gr4&b{|g<|272vSBHQf83O+35b$S)fd767_*+B3KN8Sy;FE`dFBk&84Db;s{ySu$d9}4@w565+)by(s1*&*;>90LBEA>e-) z0{+1eaQwkQTt7+~0-iYp+&2XLk|E%8hJY^_0={+#c=Zr)$CI0=H$SbHr6Mo9#J;`8 z{W#CcV_x#I9`Ml#!Z@)bvVYU+HS!Jdt`;pFpJ$9sQy z(;Y-3uZcw_@gue&-W7;`lo|KELFXfWJSoDHp%@51n~psG6pxx?aQI!+C>*@I6Y0mi zhv9e{npcCDpF;G^80(CE%g=s^Ddx=y>j`Ys?M!>mTUu|$YFqk`%W%vp^sVgF^@j-#T1@Xz@K>gj^K<^!0iGime14kd44|A%V!D& zOabq3U{-;c#h3+*Ss=LZXg<@KA@G^P3?VCXnZY?o6ILi$`bi=q#Q!i)YPZYO|OcUVgw@X7SuvJa-n)oy~J+ z^W512!W3rn+}S*LHqV{SG-oq~*-T*$kIrGp906g>IXrg`5dl`VqOmX z|2jMKxUa_ijekWHQE5ZPQz}XGRHO;vk)0>w3C;>iOq)zh3A0e$V@Ro$LPGpR=EHpY!b2V>otq`h7Ry ztgnkY24r2%*pox|g1cp%loHK%j!vKGeQEdhck2|F?>EfuRD*h4*5}xs>inklKKn6^ zS$`C*@5R4azw`84aUVVFOUE0~sS`x#rn-BFTJNx-Tic;$ck&oI+L*2U2cr(w;zH^PPZ*(fu&LFWR-S#?QX-4o@D;8Ws zX8P$R=;xK7$Ndl##N+-imY{#D1U>F!px^^-sDqJIPBMN*8drNekwZJ(_{FAopF2&D zYq0Wp)VSwuh56u;ko4Jg@hr|}iGRrUyk>gO!#~acHuL$&^zh%wbo24~n_chB;`I6Wyy=~9HGf|owwwMAtG97FuSG#T&|^S3&A88Z{i9sy?o5N? z?`L}VdDOW3EFg#WF7s)Z&WBJGk1l6*Hjbtg*K6GUaej#sH1!YRjZ^r0 zemWY5hvMuJxawUMcmXSTl^hG7L< z?ka&lWZE8N4=I}J2bTR#-Xu9gG~RJ z@iE5d8=qj@sJ`}cwQz)9z33ROz-i0XZo`(p3=PD4xe+3S1{hz_%X)MHGZP; zcE-;#-rjhB;~k8TH2x>!xX07md@eGd z%Z%fHgeuQh7{|IUe!cm7y~|7BtIWsq`MPn>=ZEIw@ozEi`TW^@JfC|Vl!8tL^TqR7 zjvV=Kn+CP3lJP0VYZ*shF6rx$!{77J#JC?fwlp7~k8MovKHW|4arQC2=Vy@Ve>WdZ z@B5MMrtfO)`qenvc3c`z_9@TL^x<(HK#qLQO@s0?(DaWRFTzm8Al` z@5gJBqrJW#Khe0)$Ck!@f7;gkegD|S^gbVln%<9d#u@kH?Fr`N@ysxN&(sFZ_gSX* z`S_%9k7uR%AQ#HpKLf9menZ)AK2M}^)mx@g{^xw2o20L^veDdS#^JB|HOF|b#O1Tl zIP^8>v(k8P)4xX!tuH5E8TY*HFrPl=Q;G+`@bSD=GVXah+W36)X;K0|#kem&7aI3C zyOU$N_2p_@3Hn=2-`C=qZhCLmT;txZC(Xz6zsd9-=eMTsXZ8MUdaw7uDoK!+eGsf7|q4?`GrEP5*=WOfmkm@nOdIs+LAlLEhZIoblVz zZ^}cjNBg&wM=oQN~9k zKlxu}J|6!~#@&CC`MCc*#z&g}Z1Zvd$BeuG6XxUo&l?|Q{;SQ${a-ik{_mKN`~S=M z73Tk?`MCf0#@&CX`M7`CLy~DKnD1AnLHR$3JkH-kjk|w=`M7_f@zLggocVbCrxL{sYa&{YM+W%KXQfkNZzF?*3EF$Nld!KGysnFdz4S+_?Kc zWj^k|()iWp|FZeG|9a!@zbZ|Og5|;acX_%y|BUw^qW%UfXsLkv{^IGfd7S4s*3)wM zit+o5zik|S#ijqk_-x}p7@uQ2{ojRrK|J>xuVVZG<8_TcXncvCzx#fH)#lePzbz_v&@E3hpKH>0>2a)u z0{yZyh-06Ef_j^zK^)s66zHExgE(SFX^@6z(;$95U@Fi*mj>}$08@d#FSmE)X{LWZ zeV2ZPaeNm~|DYsa;PXNnbl>V=y0BG)q6|es#pEwWBiYp{@UcDd@dx1w{IVwGyO`_uQNTi z74q3of*#MGp(q|6-siTN&+7EMe110lc;oxRAe9(rHRF$^-{o^8IXAy6-#Q09* zPa3a^My7(F;icuRhH=lsk;b9d_V)zi$n)|vpqydc{j=wdcGX)aljjBmz2?gm#_?6_ z`whn7ukFKafonUU=TOvM@yAWSCi!T-KW7}%Y-K=S1%CBG>Bm$KMG&b#i(wLZ_8i78 z-jMsti%jqJ_BQ^<Z%IE9G@m2Z! zFmUBG{+829T%vyJ=qZJzm~ZtbW3ZhV5(`+{-kwV!>@_|2x@L=LUT`Mq(E=U3ytUZY<> zN}RvtjH3?axklicFGmM1eGB6glaKO$hH?07`RQpK$2QWBF#c!bHyXdy_^sqIKeLQ` ze()Rs3iPYfpn4aZ|9IoeP4D?%XWaeYG9O>>-Zzf@l=>Z^A3aKp=Nr>cO1~@49j5nq zD(#oI$@_RbN04K_Pd1-=rgtComq$T7?$g5fz3Df_11$>t8>Kt((0%cb$F^KS0sX9PXogW(0E`={YE@&f)S z{v~-);NOsU5Byj1@qzDyz*3o$|C_zO0reh0z9R4nepX$^X1YSU1 z6u8b$x(D8v`tgCEKt3mMynh2_W8i0zZwdTta-EmqXT;y0{Kug0NS>duNhiI|m&)*W zalFR^Mfnr&MSe)o59GM=B>m;&>aQz4np}AjA5UJyPw^W$uI;z@MDh+nkN10^ToCx} z9Pb|Z9USi;_&ppS7Wn-fS34BXBjjp__(F2UE3Wgp+k*dd9M4*j&98rGBz>0QclfL| zuKgGItH!mT0*AGhn*wSguU`V!{w3Q)IF!69KgBs({Dv6tlhSZ7m&1Cd*RcW6F~(8v z8w{j%;4}BhzN_8G4Wpnj^{~Hwq_s2`PX%X?*hM=@&6e3Y@VkdfCV!Z#s4kyUm@^P%yW&vKfr{k z)DL{~0U2)^_;7MvFIByIKBQgHYdd*S;Cf#}-@uQ`s?CiI{4T~hHt@rl=bHk*j>q$Q z-b8U$q|bt&Z%UtKf!|5KKJY5cr}ne**Zq&3LEnNtr8s}2FXa3!8~8blvqIqNcc|kL z`CQ56>hPd%!TD7;@a9~e8wTEtaUU1>dd8#U5!HJw+jVNtf6e@#8F(4S(>Czzy*In| zzw*C=>!Yr_itG7@;lby8&X;Qg$Me)ElLFUqvaX}bzd6^hhk|}0+xukTo5)uLUWM~_ zUEsPN{eIxrGe4UHpT_y}ecKf~?3uA_?omCJ*!ql&-CcIi5*_)DxWd+*V%?PMdy z^H_-I9QrQ_T+ctO4*U}4XMNyJ5kM**2afljplk}fIPd&j@waDwDhED=(-#JQHO*ZYnX=Lf9!#-RU+d6*vf@yzqxfv;vhX9xZ& z=hwWz?`8b+1J`p_x}K~!J1~A-PZmF!%iFWT=SSAND)519*P6ipM;~36mVdqS*?fN| z=&O)_7Pz)|{|WpMj{g$)35;iN&Ii@|2IDCkxb`dM1HX{^DuK^o-f9G{cUAAn?fQ=G#rt(o z6i=OOG`BPOzr^)uKju&RBdOPQO8Gy@_;uY;`r6djrH}M_|6P;dUyJ$^gT5#8iTCcH z$iE;zmaba_{l(nAU2J+-Fbz3fZ&N&Nxc}1iGx$T##VR)@`0F{eo6H~DL(+gUCFl?3 za`j5!wHc?*V-(K<=JUItFGsHH>e7$pcImgEKZxrW-e-d%{U>bi0fFDj<)C8V`!oN| z1JB-@m&=_=j=bT1K@t6X1^s ze+9&;EDQRl7|+Y52da=)r}NRE=WNVh!v%rg!Ul8=ye9M9JMizh9T*t+!))iUz%`$)2t0f5 zUoJN-@KvmLHaXgb`K$6s(4Wb1JtwQYead(~4*K6{v?K6OnTN{!l+RkWw^86vGoNP% z{t4&Tz`*;^=cd57F`jvW_vHHfV&FO-Q~x)`SrcDU`8nu2k=Nj-^p~^!e+c{}9&dCB zygs)ZLjvExg?(n=y5Ij;;Qyr0^1v^~j85gPz<;IxSAnl(p4HI>KjV7Nfz0zU%%AuU z`nL_dDt-C|K91X~YXbi-$L|jO1?F>2;EmYc9f8l`a(*=9Rh&9*J3ero$F>dp7W(V? zQ~4ak<@14{KaKf(KJbc+PtTdkr#<;TtVjH7u3yaqKaa~_*TBEwc;CQhFphD7FXQ<1 z!1v|yxgc=8|6)bp|K@z(82B`{YiH!lo0bc;SMTXKmdlIyVa#X8z#rv!-@tF+e7`>M zFBr!IfgeZz1>|T>qco_z81&b1zPw@l#3XLO2{r`I^yl6)j`iqy`uxi{d{)tCOW==_ ze{CE-*?WU?xnBY=#q~wcT`Hez@FkV1oX;3Vy}HhLSm5^_>IP^}dUY!>0k)mp;bfQ=i+P0fFm2*%0IKnZf*yB}W(t zQTMNJ3i_)#<8L#LdMB{n8G&Cxez$SdTaL#|bB)7i6ZMY-uIpKklOxVXY1qoVtqlBo z@(%;wpZ?p8qrG~MaA_W}$zS(jj|#kyKBpOn&urG)!8qd7b<6>QSL6C}P2dg4XBr18 z;_~ybarmD^{ffY~zj!sL z=&{_^zxtx?Y4*xCOj~r$k{%6zY@W6GQ^ho3I-%kIA#^FDK{Di=J zaX-=~@RiKlh2)yQZMgp49Qf_z3j(i6{%qh^vc2mA|1j`=u^dOa7c zI3FahT`50VetCwzeKwkF6uA29v<>_+>iZc-JbGXG<;LNE74;L0L*I)0HsjDwAipp0 zd&!>*d^P#kf$P0y`&G^a$OG!t`_ro$N4;-ydC>F1%A5K*bTmDD^!{``FATk(rw=xL zlk}U;$FDYydbORu-8lSfW13X{5;&gWM42DB?)NPXT<>#VX&m)_&F%Jkf&WInE%23G z?|unf*X3&PIa%dxIF~m)Uo8F=c~Q{+NPbD+rMMj%5xCydd?z__mfxT9cwmm{(IovJ zoh3nkKHIy}IJPrm+1{4|A4k_{Li$t<{C@K4#^F<% z^Rb?B_~?3igTQ~FPb1^-(Q(Cz#^KY0c{?TWHsq%phtG1(_jbnN^C|V`1+MGGU5vv= z$LIY5*YWvqKNq;(L-$(Xf2V$Z;0wwBX&n3O^4L(Mve7u=|DMakw!n2Bk*k)UEWbQM zukCq-z#rmyYjxvj*SC!4h`_%huS1UTu;{ep@!|=AcO<_wa2@YnX&md`f75_6!8rWK z(Pthxw8+mNnV$v5(camdzt5Nt_B(UZfbyE@(cUAeUmtiC@_!nKzmAJG2R@SP%eThi zKaf7#1Mf+$=d88e*74N=yx_0)c4B)g8%I2gIUkQOj(Q)W|B->;Nv`Lq;Sc=|@;?Us zf5}@INB-46M$cI*{#M+ccQ8Ht>v6x(DRA|x8APt->L(u0U1fUIJB4|;!8r1udZ!pi zy^~n)w7@5j&nH*C4S0P2wCPc=?u)%-9R8os=O2N8ME-j4Z$kesj3amY|4iGAWBIR6 z{eJ8qr#PqcIIni#Cvm%QLg2m0+Xen0*RR2Wze)a3;AI%k3xR7t{Z8PzzVK7vua{4a zOQqIf*{9m|XU_LC1D`|Q%{Ug###|nT7)RcgP=9yeYq*_X8h9DTv)(x7%V$}5xlfJ5 zzkvDK5qM+riq*3T)vi;Rx1$5Uh`d?gJ;~bzehqowz-zI+HyB6!9L-HOj`&ZZ{)xcP zB7ZLMi^<;ru<_IQ*+o-#73- zkdFxbc=GXqwIbnGfDfuPF;Zuv}W&Mo9XBPFB1wMm(m~r@Y)k-6&D4&Jo^^L=ahZVUN#^G}w z^_>D&|Jp%;_osex;Che1V}Y-tehoQd!E&zql-_ioz&r7Ld9T{ZG!^;l zJno>twf;5@T-O0w1%3tn+mY{;>L`VZ@FkT#L9gri!;E9S)AJD{17C-LQyF6%`8k99 zM&t0Q!Slh1fmbGL-iZ8mFMFOG?cFC03^Vtp>ET~Q|F;7_ zk^GCmyOMty_(kOZF^+h;q4HFA7)QOMsQ)GK5#*)nGQ!{<<52U{KZe&lP6!$+-Js7 zZxK&aHU-{{{A=TA?-UySK(73Z=k=L#^^+(S&0qchk7~wI?@;%!+#omP7izvdE3ArA@30QL*$*w70+tMGa~SRk&iPU#Hr_&rx-_^f2aSn zz@H|+EBODL{!auxpM0(H{gVG8Y%EiG-#E}(>c0*AJ@Rr#=O@dr*YJ6lK2?namF9i8 z#>Sz~aeX<}IP|)2+9mKR^ywY=VdR$w-jw`S%GS~>OGbE#erW){;F~K=>2^k z7>7@9>c0#88u9}hBvC3@PT-^MSPkRwxrO?sfj>yz&NzJZ+~%dm;iLPtqXK`0K2wdu zX9c&GIDCGj{(pfV%=>T^k4d6bl%Lz^Q(zoEHK}hN zxbCN(XB_dg#-CJr7>7?w`iu$u67uQBVKI?D4;Y6}KkAnSejWJ+0 z1AmCTO2Z^dMfv%WK6Q-4=Lzat1iqI1eB-cqw=7)K^%LXpd58LOfqy`LoALdVzBWu! zxtAOa`-Pn_OJ$zvf%HC;cG+ru}x-CG;@I`TJ+qu$8~Ae9e{!)Gh?p9H>z z{9nf5qw}?IjKgO?-lzL6@V&`@B-ei7@62r}vLZ7z+*ZuT&jeCARHx8di>9aZT zdE{Hkm7n*RpR$E%;#9Q!^yhg;C35NY-k}CTulyWu9PzAXy(a{|g8UTYo}V_x;qwXg z=LY@(`FX}YKbIPZkNTzb2weY{s4uzN`z7;pgX!Vlhug`?LBEaqxk0b|EHI9Es_=gL z;=n7CFEQ@#TakZ6uKes^dw()L{3}6_%07*< zPwDduSVGmwwY(`mb&VsQzO47?z%q%t<>^?tBvL9hJGGLCqbu--X=KS@5%xaVh~armsK{>i{! zBVTIV^Rv=8eAIvarNFPLM`;0?=U`a1((%R%#Py}DoadEi&0;i;58Hv5$Rah`uw3%m{Wbpo%)?b5MsT7F!0XgO9Q`?e0kuL$X^WnZSpmN zuOeR`cysn6dMEHY>R%N2!{na_emnWrz<(p(7Wfb3I|47{b(LQNuTQ@3arw07x1Y#o zFY^5Z??GOkT=Q`p=S#!D^_+j(!1W%O3j^14zLy8SjsCX;egxO|xyB)_o;4@8z&O^U z#?(I(_{HQO2R@8^hjIAVr2pPcvoFPYpuR%je%PEm+>VtaN4s!cRNLX2#?juRcpa%$;ChatUhpq_V45hEBIBsz z={!x(sTfC|_1=NL#$7+wIP_iUe-pXlf1Cby8b|zpV*K|6-iCZOxt80m^j{hH0B(mj z1+Mo?Y%_o4^Lxg#SF`L3;zT@SSa0dTN09GNu6UkdJhcMXaZaPaU*!C475JCrJ&Yr! zzhvR%h8ahm^?uGtffq8K`;EhA6@3;Nhff>o|6v?@?Z@9U4!!ybd}kcT13#t#rPLp@ zPvuANvnU_|hyHl&uLD1q{2}9>hh@g$ zGoJbn$)Uyab7!^mCzXwX&mjLY@JGqN4qVr_cNoX<^MO1b{-p$7iU)*<2m1GT9JO!Y zFZ2BOn503${NgD~etdQQ@9z9~2vd>%>})ir|MMlT>Hk)OK8GZxBE5W$E`h6`qxAP? zljmlb9&P4kHn-V0+NJj!AI{@n`Mk;Ta{{l(yj^V^mU@nLP2iQwX8|?lbnu6MHJ6hi zCGbTh@O^l`5`B7>z&|U2>;F{9=QYODh1Xfd6~Er|CccUKWkEl0&rSNvnTI-9 z2~!dOph7l&S>R8T>-}5OZ#X#9KV^EPinrl%KN&}!r9X=6hkWW*%6ul5z&8f2=dk{5 z9LtrSlTt@q`K$lD-uD@Kf39bd>%EVWzgB|&w-WfV2rd=*=)EGB2L2$|hf#soC7%#0jE-v$9;-F-;l)54_y5-bsQ?a_&X)& z_v3yw>YJCq^`0~7t8ux%Iq3Bsqz?m^{wnU@!kp6RmUi|sM)t~JEu9xyr z|E|*lAI9xMx4{2GensHwcXU(Wt*Dy*GxErI)cQ4puDN9lP%)hqr^@DV?uNjSv-hxF34E1t?^g18W|Am)coV%HPjJjrw)Ma1HX_Bx-RfL$R7w??;~CwxX!!Z30&vJ zKLoD)S3ts2!3UaDll!gafsbc`ItN~v+xJ0%>$!Vf7nlDJ+&)eX`ug0y=)Ek`tDoD# zpx1S(=Z!Z?@vr0g%m;!0i~N5j@JgJY_?chRxAcE3jl*B1Host9IVBDCIId6eQ^_0f zQ~Y#}7Y5#!gqp7K-_J(#u{qyN-jbivf6ei>f$Mt6p90^Dc|1Sx z{mCy5T=%292d@8f(JauJ@1K5O^=@H6K*3 zmix&;e760uD~ag&kB47`Tc> z{B7!22mT59n!vvxe=YE>;DOU6!^YeZ$AsX9J$s5&BrR_TZ8@x^8W^| z_kwN@yczX71K0ln%x`GZZ>sk!>PxeI;+@E~K8fr9_v!sc;=QS_9DIh69~$@=^1}ny zd+PLmrtmYR`4-LRh`6pB{KKv@K%(RA&4KH9dv6{u%SXq9xQ^5A2uAE zmH$IH9}x=%9f!0Hy!gB|aGiIr2wc}Cw7koI5%buBjThH^*ZVERHQ%+Iifg`)4nCUi z`ae+8YrfA3dd>Hz0@r+hC2-C6$~-QRzwY1F4_x=@h6S$WMAwbvqwA}BFT1$TufI1R zU#@b6BgPCK*`sIr963Du?5}Ub`wZ$)II_>^k-5U&Jx2D(74{r4B3C$kC`KS}QrP_W zqfOGNrb&Vx!$*!9MwCs(k-R}tCa=OlLwofYv^y8+({oh6ZUct&9hzdufA7(==kPvP z{O;#uF=)Vuk%$eoQ#ZWFkbZrB&xQ}_x4UrAfFXTko*JdEz}@oWy@n1R+-FEi!jPdO z`xLfn*ZB{rX}vDvc)uZ|3Wp6JI;_v|kz*J@pZ?wY4(~BohZtOg{(m0@X)>%L`-aJj zIKJ_a-~XWXU$lDqg6qFU0{q;zA^W2D1Jz2SsE3=+;{RWQ<4bTZKIvOl3fSR;n=#>h zUBx5mOT#q4Gfv-_)1TmCY8^F6BdA};r}|CP_YVOmeoTW>l!iS`KeH}=P5rX5qFB*% z`s|c`!}pl~?)9^Yig-O;7BTLx%3A5OavEa&n-Ytjm}DvI*L_nkl&JkQu|3tljrAAV@>4ZwWBoWTkDdwT zKD`xxcis2S#&*}@cz;jzHy%t^ZkTE%9kv;<{{4~+O0KTyTUM@oF#FX1HxQ?5am)vo zF#WTOvni&A4O5)Hb_vtBdB~Fk3d%MT^HzJEv?@OwcJdQ|%rpLTQfhyLW|A8mU<9WVNJHaVw sh|^=69=F|?emqvJRP_J1va#Klzl!OHJxxDxR2KiG*@q@CUTy^b4-UrYg#Z8m diff --git a/tests/binaries/coreutils/dd.o b/tests/binaries/coreutils/dd.o deleted file mode 100644 index 3807253e17b7514f5cbb61fba2d4ec651fa07000..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 58216 zcmeIbd3==B^*{b31PqIrsHnKrQGQ30*Xx&9|!Ic@KMNt9QeBbBXb7xMj%*TFSpU?02&-Z&@nauON zpL5SW_uO;OJ@-EMdFHZd!P7D`GCZ3yyzhIdGmCoO9j~X3i}|qFJIFiGi|t)sRh92M zx{a}_Re|2Xsz7I7x)SJIL2Rp5`Bvu!TDvlQs|O#tVpdO}=&|UBo0uYFz3=E!&+DAt z)4tbtZ5Pg3DB~x-?|l)QLPzF0op*2saEbAO7GPC-PqM^=DObQZZC$X#3$*W!d@q=> zsl>OcYnpF$*M)}$HhVoi8D81_p7%`;(q+L|*Lsrw%VHmOKWl4T*wwwi@91KWDpfjhZS-j0>OuWVeXFzfYkNHUe(A(@ zzH7RswRQQfS=aw*)W9o5AzEJ#Qr)^AsIvS5u`fv069XCF1UmPp8sHN2;(K&bd=&(R z?19#G&|g-@imA}wuIRg(;i^DK4w@j){&*x<+L2ijd%UFe&5Y96<~=X1-FbA$#Lpw& z540vS0dD!$N!a7I`n8pbp^N>Ks-p1^JG*VzQHx}jA^wgd$+`e99U?NrDK+oIJ#l%7uh^;rL z?c029!@w#Kd$(}+noQ2{zPZ#oIWHq}z@v;A=8RYQ8n_1d=5~2>0A(@+z}VXGeH2i% zS;J8I9!1~214{F<0iGlvi|jifm^Z|Cz}&pyz5~wBo9H{BGB4mepf>Mp-vN=lYTp6N z@|JMHsQQ?1NdvGn&|#`r85nEo9IX#5-*5-YIPZe>=mt-J)zee>Y#{dUH7sf@D{pgK z-U<={iCK650c6)F$&4B_nNeQ%wYsvLGqE1V$VbYYVc+xS#J;4q<4f&bkqLYdh;8if zx(~ti*c$+_jAl*D}chTKzom`Z6m52=#1p$mfTNv^#J`7 zvwQFvoN!U!z82{GTi&mc^}&xpQx@C6WM#39*7}R$zRuaWB&^C}app$ZM#6~7Msz*k zJ#oXyRlc2FyUKhgbnWu}h;3^Z8wzs^#5O}~eCYcJ8`myhF03eM9BNf;ZeP#0nlG%F z+cz@+gKjTGkq-<(6&}Qa_b454wSp+O3zZJW_AtX>Y)AaBXg~O+_C+8K#&*VU!+Fqj zxCcoVy5^%Qbh6PFn#P_tGnObhD-c^JHJcgR9*lin*!3tC$h>14&pwxgY1;*){lg_W z9o$=r627adK@{WuVD)5t1KBaPNz#se?O`f;`37pb^DZbkzvP0FAC;7o|76*E%k;pN z)Dk2>pz|)H-`HAFQy{hz!Vv)rM+&!BNXCDm(t!@H;2IKB>A#n@6Tb%``!m7WM>UYo!3rTNX>q zjC~Z0y(!v8F|26uX|auoUs$=A9tM-h|C%JVmNz0H8EmahNk+0pWacB)$6DDnW%$|# zLZRG|=1?U~Bep+&*=4~FZo%H|AhimZYk>}Sf<`1{Mg>rll6k3Gl*P8{ib(de&z;%+ zPIRUbAu}?Ld_o}{0=0kQICv?pmuan}e$B7~C3=YvG);L-4p>>*8W`qfdswl}O%l*ar} zV4#ED`lEdS%lO&bZQ978V=UjJ;<`mrfF`uJ1rx?Q5Tlx`LY-iBcw1 zh$4(g(;-qKA5<9MC{9BsVH<=$www|^b|M&en8BJXknlClwy?+6m~G0kkAF!uPV@(d zRmt&Z+II={7vxGD4Jy?_D*i+8_X#;F%*9wD-)c6n_MTGTw2$I1e2f-v-v)6o*Mw3_ zeAjF&@o$WtR2F+9_VvvEJEEseYuoK>+k$Gee;7Se+FNQDt>mgrEBtV?M?)Pcr8E{- zkxJ4ZPD3Tzw?!T*+#L_0%(B?#_75ZXSsQQtrYEuv-ge0nB06YBXV$Pl#->1wB_{lL z!4dD_Qgk?Ej2s7%qQ?hEeDeTlHyC>hVH*w*Mfa5WuHBf3LK(P9gXn94*hkX}-w9kF z*u#SWrmfwNbANq=8ZU7=NZCIZ?q=&q&8lR+7Km+1TnwV+J3P47-KM2_hv>W20QZd z*r<<#T(JvaKggJLr@r>Tl0$CY;19;OTlHdKDQ3FtmL)w?v7q2<8xN|MFQ)q1K0_fb zUo45<5$tTtU`Nh!qFltjB01|Uw)ReR`W|2ViBv#GR$gFFWnQjt)jHqmXW=w`E3O8o zK>M@4_MhPZc0yo#HW8a)wQw8r5qF6Q8eN4Eq8kg=awVl%Sc37bWwA|6*}KnS`oJhh zdx4%yO zhA*~&j+EkSzY6Cq6Q@EqnURAMuiskfHlB&Chgl`& z015DPjU?&+a^bet&ohI*Y1@6*u1}1|MXre%AG&ksn}ODeS{2HJsZ4Y&x;;fviu#g#b`aQ!ak^=4wcS`Q~;m z2+p^|YmFb$x_xJ4+JEShv=c6Qn3Nko6MEtWY zGh~!B(}*NN|JJxH_0ej^>%3aS6^Ca&C4TxRJw28*`nTlKA1Q=d!GhS;kr4==NHkhi zu=X6kn5?xQc!)DioQq~*?%eKJO^AI%ZtgRk zJeq|(cDU)vi2k;FM1UgX_(<+{(Id!h5A{CsyeZU8Bd0UF&E8;SgY!)v4*b`q`A@V9 z>eKU0PiaxNuWbYhOVsshA6h?z&q$3zvFE5ebq|sG8ob!j^H`XU+}1C$qG!g>MZ`xI zN3CVXPx9^9g|X|>cM)q{dU`wq zjO|k9vocLCD|+pcO*7j+ymYMuHqm@DJ@dNn;r2ISZ*k<-&BWY;o9X@~cwV-;`zpRp zOEY)Gzia+V{v{c$UB3%n>w2|*PIU;E%tN?Bv#+nPT7l78^mM4uVZJwFeOboF0RGyy zT{_%qXh-}8GD~RjHF7&*HmUg>fk7Mktnahs@ z^(S2$>UZAyMK*%nmP+BWb9{H3++`# z3urveaG23p=(lU%pJFxB5$+_6~TCYB;g{AElhmeXn%q5?z^k5c=ZnMz>~ zvuD0;aAHE1)R^`$#t<{6#fM{D>b}AF|B|^*J0B8HeBRSz>O@7R{2Gt<)LG-3K@s1D zIESn$vGhY8OpL#qbv9GH0Oh54sEFT2(q`q7qK7&0$Eb&A@PHa9;;-mo2o>ZG1PKvn zWjF)TgC6>tz@}WO5rA(GBx0^PTx>AOmsbD`g{IEz5W*C$BQ}P9hp7XV>0e;DdfLY|T8twc+#)_<*z{v-j z!uZSAc{{OaU619Ujj(E#AXxNnWUO!XG;fkoxmh6-lZyTtB`iC!m+m)aAWL)$k8AOh z$^3|65i`5=1?zZ?G%|Y&bWY7EUNP=~z{#cz6BI7n)V;>~c~O6&9O|ce>Dy!kMiidR zTRQ0B%2UuC$W-8MLF zXa1M`%D0-kpp;kEx&gNj6VX|;QW%Ia4ftGkf3GGjrRH15;{p|4x?^hOrTl=%o!@3`$b<|c~#?6SVwt~c-ra8olLH&9+`LY+{*MX(A3ZtIxzP6h|7>un$*NW}z zd75~vSc1m)wOwU6G*aI^G0@tb5#2Zwv%r~foWrE;3b%D{hzCDN7SMeg^j0P_Sx8F( z7S%}2R^I?`1Xxsg+)g%wCEvM#aK@kEwoZI2ZYp+q z*iKp%&9;+58cZSxcUx!@iQ852zhQU?BIwGd>E>t@+p#Qfcrccg7e5`|I0&v-OC4pc z5V?<`)z0ET?3uubwPi(HE&y0hQx@yOc*qQjARaMD908$9I`&Jp z0|{h25b1FlI&SMSw1uzjL)16WF*r|Fx*%r_)9JMzj2ztyaiuiSF)l9^54x__+)69y zm_T0kO;|hZ<*`Ihj~V$hqQ&v|F<7X=_EnIbMnrJCEVZz<9BjI~;)n0R*8{z!(1NBG zsUQWi^RQzCIRzZJJhH(VsC1$qb+nW>?X~{2{Da3>FWi}X^#igG*bl8PjPFPObP52n z$}90-+;HKx!Vd#|*e4eIR^iU#NkjsznEQXS9vELneG{|A!K$few14PpyAG38i2x## z#LGzgd`o4iD)(BKn}xVD=?}&4J`?D_*4Oq+h!VuQ_z+PJj(U$C@pm}5TTeZ%Ef0B< ze7LGu4WrtSA2I_scUC{sv0p-T9?zh8Y0*Ys`y^C_yXdolj`L9xx-5!gMhN5LFQY32 zinjXN40fc7{3}lggZ5dgZ%C}Jr{b9)?eiR#@j&`I)d^8@$iWWeksw~|1f{T&+ zpwz{=0fOR0O>@j_?=k0CIt*rf6ewEn>)eDgaHq}`KGZ|WQ|Mpxu-5k=s&VJB%_Y8R zpK-;}+eFY{(I>u@o6&!Ru`hzLO@%%1Qdl{L@4D(q>ebxpzP3@|zx+MAJCTg*BC~bq zvd=a(%L8_~2{&qkv0W0gMczYT%*^*}BDTJ^-$35@*O+WcZDAB6{vC|%j^Ft{FidPS zpf$wGhe{-EmNLw6NLn&I6dJsbMs%29`yDta+-6%oMom}ritoz9lJ&ANQy}&lq(BuT zV~jM>V*?{zf$DtiU!pl|TW7q%wM;Uc3x=`R?A4RmAbf3GA&Z3SzV<07tJLVfWcRuj zU;AJHfsRPt5S(WF+CKwvN$Xo!LfnR<`0H5kF`XvM*S;GOgo)23iu7H@K?OYcFW*2F zm$QA*ef-3eAhqLzh;>@o2?PHBCexn@YM-~*&y z?ZaWLEO|VR30^Y3Mc4DSFQ!_VP}kS?IPN!CHib&ALcti4CdxWM z3#_XBXJ|hj(_|7N=8s7xhLAdH+#=lk^K~wuLumFXOvuP*%;t7y15FJUz1_5p*6o~x zZ&gWPP79|$hb=sw;8S*)HB7bHXcq^56S zWBM70G4D%TVMvCeC@%vII2hqV z$%@jvgNk==LLVtdEpe3VYyTm4%sIw{7Y%#o0IP&l+p=Shfv*^tD8 zC`tN@3jN2~p8X$%{_zZ2=U8J0Pvgv@6*f>soZmhcc4}+hJ_EMChimF}k-vK%=gGeQ z8ctFpsBgslojBT zxw7pMI7b4sp1cC)q5`PWyd@Z#Wn*bHd6n62g6Yb&Nas-0XZ0KY2VCH}$1t ziDBq)lYC7o7Wq;C)b@=tUv{hmdb{TQq5Qpsu zc2qzR4jV8h_qB~fSLp4xm{e+M;wLM|CYc8wbC;)_z1Qh+laTJ$ zElE1n=nvpfSC9m}LV^u^%$!{-Z|;;8kKWc}grTY6zxgmR0==ay_G)4SnKM-=6=Cyw z?_3s(c9CF3MIzz$o=CnUoe2>U(mI=Zq_vXwn#cdz@O4rZCmhu=aH-?D0IwL;lX`Vz`Zyf*XUv%zkJD=iRFcZGu8NG{qYXQ%o2a(XSSysMe%^G!8ELuf{S1Y_8+xEJF}%QDn5vR^B^^lXVCQBd~owb@uNqk_<^ zho*Lp*kZX!@R&f}A+g6=AJ1xg)>ryiY7fBfwV3(Ekh`pCQ{?a`Oso^xy1je}bnw9E~EX8ww`&rb}nv*D(bU zy~SRloZqzW*w4rl|HT&8eETpcCH7M5jv?_DL1-dH$ozP{ATxk0f6Idr#a@b^BjCA2 z_OInTGK(>DEETYZz&!$v77$ytz1?dwBe*AvBWQRae~FyFYxu17&97qIDA2}tk-qnJ zN_!KNqc1jWgA-Pa1GfM1p6M1YQX+?yEK+p7m}PvKIbUMWYenSeNleLeHe-=x60?{k zN^^}OpF1%bF*;3rh$v6udJ}u#hJA{#1%&;%u89piqba2_xX!)k&Q8(Yl%k8|jYMha zgye|4cr&7L;f+2=QS5zBan~xgV&BT=zP3R$YcU~U_X+zdFAfhWa*afJLQ8jTj|x0s z+(XZ0STpstmw**XfG@8*n~q>^=$R(`>+RjGTf-XZ$P9S4M`^(jo{MIokS7&-(SEdd zpU3{)-VTY~QExw#bU||a4n4q5f3WdX?o6;Fk?zp`0#vCkBsS8yH0$ywO$UgxJSUM@ z@jAhdL=Aa2kgZ!v)o>5kZMHT()sVJjg0yr+Fz?{PuEJ-7v05xz7ro$H`37P)tT>OP z>FhR|h9Ef3O*{ovlR~gEunAx=HazhFpj3QEaq5&|m@%Lgir=)Gn(-J{>E^^3Y8>*b z7f~(5wiFV6=+yWdBzXzl;Nj+iyof+Gl^zZl;rd>bC&u)>&!W2X9v$IKlRMnv!|Up*BhE& zP~~s-hAzavviho;`kKg6Z)mfB>S%zqmHq`wBjIL$MMGmvxN@X_Xfu717t-O){^3KL zN4QtLp(mKEk)~*UMJN)k^f!eo8k#Db2QWt$2HHHyUlFRWZ;1Gt!{J3s;LE=s)i;Kt7;!uMQuZKP5nZDO?_iD;;#ZZQChSi8qsibI1(Y^s@l-P zX3KSPQw@WW2F_{3scMddB6O}rTvXHOg`1inOj9^iNsK^X0Luixd0u6u2cMI`Gg=#|8C4Ogt<~3?t3zYPjBAe8d359_QivID=F^kL%Z0HM zEy+oRV+b37rfsONt*H;a4JkNzL7Il3hF%wJ>(CX_cNBbunK|{>hA#@&dNm80y#{>nSAkD6wL=XX4F9WW zh}K8EDpY7eZ9~PPB#-)N-GXqFH#*wfG#VE|wWFcRrm#55OWDD`NlszR^vH=t>&Y8w{&7gtjkv-WTMo98VKHPxd>OoC9x9Qcyt z4pl`Up{S1XdY*Lq#SKl1{GleaV5NUixT!u|i~20|n+)g@DZVi5nr45<|C4Z2gTIdY zOk-_Lxanknw3)iRzoyC`sYag#QB8d$TwfVRDN3$JGmPLpAvRWE(vcEaHa3Q)Y zIKU96r0j?_kgV6f^M6-%WiOFvQ$1R#%712gX&L$ENn|~afAPbxnj6CvHC6D(L=EM$ z94WiAZj?w89-VXvqrKVT z#s>6;Q2kPW1f9IO*7yW8Ml%&O+44~r8=D$_9Il8k%Sbp>HyVz{gL4dB1g{-h05joU zSG&}IQB8;pqpHC_YR6h5(9UZP zEew<9{O6rHYufCRGfFSW&(9y=_ct_6@)LaKthr@po*`U4@6?9IrLY>Z#*yNp*xQpI z!>|Iz=ClHGu}eo~Bh_K+>zeZifcJvtDO1mxJ8h0%5}7bmRp}?UANEHZNkxXjjHj@} zkUvsW7xoXY3|GOKL?-#+p+}qyW^SUc)l^d%hTSfJfrBf29q8cddX;MYYh>T$5Iy|w zlvB?<<17)=(o=1?GlrV|aNu0KiiWzn5XM{>HILKHOY0Ui)cR{{nj_2!4t2^INkI`E zETvIpss9W#2Mws~Xh}$j+)GH-%zv(r0UlUXO*ySBI4xNkv#4rnsPi*iQxA6sb(4RK zpoOSV?x?2)OQxHun&$XVYX|N264|ujf6{s=y1^0FWJc@nLss(Jl!LrVN?4QQKW+;e z;Z#%jhogfv7;uE2Mnbd+YBY*`Ka^x#K(cv=z|GAg=ae&&xzU7@+i6=f22Tl2J8N2y zT4yc{$(*1qs5eWuB;#*vg43k~v=PjCUv@sMzM(!m4Bob}u_@f#4134m-n2AQO@Y(` z7?p{n>TnHRym=&a=O(aNg0Zd_6Jy@>@a*iGXecDXVaYWW`(^^awU8tLo9c$eY&JCw zl{FRnVvzJB1J2;CY0RW9wA8->e%s#g1?KxsB=|S&605QqyZIE z3P<`EPZ=}PzhDX+!btz3sZ$CI3JOO0XW)CxxRL&u1~|c>Ga1DRU0O18%FK}irYi!W znx3K(QgS2Bh*9dxy*UXVzab}i3psWh^hQXBvS^u!9!$$gRBJe!$7tJ!2pkUtEA6)0OP(`($ ze3D;0jM3br0ZG03{h{WHni_6t?)1~9o?2RVDw$HroKwrnUWq28Z##^|p#?0Kzj<+}(ezM% zW2lDXOYsjhW2B;Jg2std$$eRm4n~70gY{>f%*hBK5jK;lfki5@dW>G-;6%kEQ8LC@ z)e^cQ#G1yB@REvJ!-!%e69;1aR>4rHmPQB)p5YZp^!kPhAQ9xMY`_UDm`>4JOvX%dWX2{%jQ zcYRGWIZDc(RD5mCqVQt4b2t;Y&rmJ;sA=80a3n<8(aTI1q~YgVT@YOlMh8cMBu8}( zl?YktLW^Ma&Ea}j5)b<{|2CqXY{CrajOO?@bPiXJupJsIt-)M|bjy*soRy6}lRc40 z<$0ElCN(@WK%>{fDI;z&S#W`Pf-YHKiuCEEx~aiTNWaCE=#%6KXTGH$s)^DL(I*3b zXrTi0;V431Xq@K9#*b0xVN8EGM;@#bTVXOL>kvpjoQ>jaz4UO;)!1Mk7Ibr0Y);6&PRoE6|@<$?2 zYOqNE1dV5=y9|6sBQ>>gktRgE@xWHO+9$aDUa94AOLhM=s8O<1!Kc#e zETlsllEY-=S|{hN2%xbzfM%fi(qd`}|HV9zjWnaxNQ_CBP!^fzT6*K+h^zQGVe8VF z@qy{c`+tiMJ3YEAuFTCZ-A*XTZloZYkzVCkAEWD1aD$NbdZ4i<<1*=^9IJG}jdciemmN^`HU z@Nrrre~&5KvET6beQ3ejY)6#awC47xJaLR&-hn;O2G+iR3hpSZ;5#(5Qw?_?0_&uP z9n<8#DnC$DgPSepJ_4574XfQ7a%1bUt#0j?{g%Jog3N2*>Q~zTZ4tEpb2DjU+Ka%4 z(*8SncA<4|#$jCy^k3ilWX1!lQ3YOCkG+xucY7lHo87jVzP5wGg=uUP^raoC za>5tz#1((b+oIaL@CJnK_V$Ol6X|Qe91`J{ZhJ9GPHvfd8KB|)?Pp1INSx&xZUKqf zJ-L2n?6aA^dp__j{|n^Wy#WF~goD^CsVcQTktsa+mJ`|~HWaJxi7foXgX{gJ^hket zqLC>DiSBO&Yg-6fy`eO576HBPD{xNJB(%lAwjaZZJ+!0G+__+YUUqd5Sje8f@7^ch z5yhQ;`^pY^s2iH_5?koLj}@HQ-b43Zj5+=f*wzr+Z`TiRsj;_Tbc-jtQ9pXTkwk)m z+qU5x&+9U6X-C*JDsIS~OLyOSyY48j*z@l6?!`8d_PdGNs4lf@uy^V9o{`ye3o+;c z3EFf^B_`;lD&N7t?uYHANRyl1VD+usy>A)y&TUm7#s5$82K(@~4qrOpthtNNIk&(Y-K?+iaYkmJoBCgI*{?dU95`tI z9AEAM2Oe~Dd-hL<9QKQ=jy&pnN4G4$ytQq>p+~HU{j6hU-+ue8`uQPOUvup*v#z`T zh8qVT{OiO0x7_;M+iw5e@BeVe3;C0WpSbM!JOB8nyYBw;J@?*sOx_72PQG;1=)e5+ zZ+~C?kNY2Za^%qR@1OGELk~al=$fvz>*h~7u6Wp#W7mf;8w^)1tghLxant6<9)IG; zi)!oY8yYWc`q5Kc{`s$`pLw@A61`~glBGX+_POWJd-0{MFTb+w)z@BsWBZ$Lz5UJw z@9ns_1oO*jr%ex(#S`y$fAHZYr_Tt^Jmbt+KbZaRogaO?>yz_;GiUC+vwnE?Ip==* z+3r1iKQAa8Gj`lb<0nik`r^y4zW%1iL;WX=${&45-=WF+Po6U7_#ua#GK}h9eC}lz zpI1BUl9?Brf5xKuGeX4EaQexQf|u4eEL*#7y^;JG2>1dC2*KWcZ$~_F_x4B1>z0!K z+OPQOirCM8L5lm;b=Ql&?(91A>09^nA9L(+c?b79bohu9P8`{Pz!3$7hm(BS6N@ID zoHh9SZzikvgV|CMt1qa?sHO!i(|P4pt8TdQrkj8Ln_H~@t=^5spLmkgX>><=`uEQN zKk9$OchtZ9f3yBSPS*c)vOiV-TOVDMuKu)$W%~q%9?z^u83Y4|XBU?Up}iJvG7~L9 zL4YU{YcVORikgPh364x4Cs46H$K;5i43B3=a@orzd3cr~NEXgH9^-S859gR2$YoT( zM*9ZI#5o7~LO|Ee?1q7C&!fpk@*?fs3NJA?C1kS$aPfPo3O4KM)bh`WH$ zSe6+cmPHoWvld*hZ{P`wfmolsmSE0NAqvzjz2_%-4zvw~2I-|w*h6x4fGCP_t_fNQ z{B{a&*;3+7KlRi}{^9c$U@0!@FUmhDzhG2hl+Ow;9Wy4sVB83UN_MhM(l-UOxI0X- zT^C`9k~q<&2|tFVXV7?0O+BD$yLc$|C__KqA!6}DH7hsrnYr=$&8 zluo99=jY_k9gve<0%2)m*KoOZIenMp3A(qqBwn z2gHl%ONjoo9DfAFr!n!gfu%V^PUS<7%3mpY4w5{rnP=p{^gPnT9dhj?YK*BlxmRUQ z%^7lKpQ$FKEJe6Sx3BcVhO#Cd1t_^-%9_SU|o zIR%&GObp}{hnVH;0Xf4@U7zDG*#xdnf$f%@?7+ZEpvZ!1o03i&2$f~8-}Ka$;b6N& z%GgQ;K|igTnP;)OGiTr{FpzW~fIMUuw+roAL|dJcOIjfw4-5V=;V5KfCiHnlpR$~m z%*>Zflc0tr1Bo^+v`-~zxjoQ+eJ@s|%y+OD{F~oFOEy+4v{#d^SO(@>n&Zz5E54c6 zm{wT~h*&dH1M}d@2|F~|8*d9rr6Xn`Yxh6Ie z$nm#kEkIpCj=G-4x~~-4CwkLDM~z8J>Sx4vmC!y(w5fhGJ?Gwx%o~kD(alaDI1!g0 z7TPkRV|f^qR*)$e?9kRh>uHjot_h>G*H^= zTm7Ld=jn{4j=7^kly|=5<-UY&-T#$8SbQM-zEAwPJ*5x$>vD#aa)WWXgJ~%S>5o$1 zE2;l$+kqQt?U#9#kvgeaxDs^XUdj#(90ER-!q2rM>f0@H?NBNZGEm>9Jl6@%iyg+d z;;L!8zsWUv+S{9@{ZnfeBp}hD_{SKwFGYKCBu(^+SKZA}e6*_}+{@f5u2Sye!9mnsos1Bqolimi#AE-OvwKW`gDl8V?Qs z6>{DBh%2d|h|R&GujtEtITOPInS0XaSU#%nV^%);{;%s>n$wceC%ex+heH~2y!rSH zk-+5^>NAj6`T+E|lKP(b&*|v+nN>MkGtS7_o>7&9jk-A>;j*ykV6i0fWi zXs}I}`fx=3?W=t}aq7;cKKqz~kQrtwJ~k(<>Jx6q3UPzn=Lq);?-S+w1bkn@)QH`Z2A?lD>6sEm@x;G?1V*y*T#94j)5xfa1L%<6L_zet z)g8x{{uUe){VIG@sy1KVUHB$?F^}Z;LxKxg5-0m3KJ-V)#+$F;nDAo3rF(hr3eMv= zj>+dx+Kms(BlI@*q+RKR=ZfBjGBxhA04F&=5_&7|p+a9Q^cjNWBG`G zi_mkt3VMo1iGQ&Wwn(`PanACHA~{~gwR*uD1?QL)_zJ=8IL+}W@Xf%9{}3tH%74A! zw!Rj>o$>x&j>uu{^FE=6P@HW0(xZ|Yuzzc}me0R{ll)IhgYYc+Y z7MBkFl<=cpp`dzgmGZ0}ZWEmHQL^~mg0FJ$M{rK^c!Lc6o94?~FZ544{2vpX>Osl! ze_8l^Bz!nt$MwBJ|CR8OFK<5>B+0*50NXA@1i!=Ke;jal0w-y(Q_$@dj-;?w2up@k>H zTO2z%7&z(kURh)+lYI2lBhg#?w(`(BFNogzo)Ls&WE>U?z27PKbfM2Z#?W&djKkSN zzr>NJT<}H*|FPiJ4!&6M`3`hC12iMz)26q zCzt{_9>?KRg5NvZ;I@CgB6v%I(2GLfX8!R1=$Dj=`M;SX(ztL7+LKbQ6nq4?Z+~yT z&=**NK-0&w(GX`z{_B&B{*sVKkNTR`$P`9LUo$R)i@KD_^S8d9wQqZAKgMNpXF+`L zFZ6cp(q1}H@Szrv??VN*_GT|1Dfk5zkndvzAL-!73qH-kPZa!O2QL(SnS)PYydSSo z=u1}37;2$}7o$!Ce z!J7r|a`2_XC!p+%NG=ol4Gw*~;IBG(hv5AjK0g=SmGf7EALY>B%y>VJe{~VJ32yzT zy>_SIwqINP9^pU6;s1BRZQNk#9};}NL%&w=Vh7*MIP6FKiRH6JaO;08{+#f+(Bbp4 z;BPwk8-m+;h2`_E;N1>=x8Q9K{;}ZKIrtvI?{M(11^Wv|p&`cw$Yml_1GwhI7~ zAu9L^iO(&civ{27;L8Q~?{6v1_fG{6IC!VvOC0=a!S8VJ>jjTH_-_QywG&q<{&#{; zbnrh3zQn=r6a0P$|A*k)9sCi-`+BE3?Ymy+t0n%o+IU>>>m2-F!YAPHc|q`n4!%wB zA3OM)g4a3t4#C?U{6oQMUZ~S2g5U4pp9{`Es-QCT2;St-_vN^zuh-$=0|kHH!Rekd z#UWcA{7}K|JttfAQG(mJ)8gjUD}B9J9X=-r{TmKmAo$x3K3?#+gHIOx-wr-i@J}4P zOz<-u{7k_=ckr_q@8@lG?BoK$vz@@GQt$!?UnKY}2X7L*(ZQE8-q$ z6@0vdUn%%$4t}lRKXCAy81LuB9eHjO`X-0|kAmB{*S7n8!sj}N55)}*#98hK{l4%u zY4E4g;LoPPUrvL+n+D&R2LC(_-WPs+U-DO{sqZ0a=!d1j^V8r{(%``~_*rT2$~1U$ z8vN2Ucq|Qma~k}ej0p18oVYA-k1hooCa@8gVWEL z?MpvbrlG$X_<>kwXq1UA-?xJ&dpr&OZE5iP)8O>e&-;>RJMaV5dIH~nL%AE%(7%`l zeXljZ!M#}LhVP$Q&Ng?LJ91magREr|O ziMdv8UZ26c1k3qF3|>t+Jr+if+l-$ucAVFsPfzmXEg!}IDRPw z@0PR2p~{Ow^%dcAew3%bWAZkDo9uxskIRkHUC((i3k-2v?Rbmc5FGO_Bp%T>?6KSIOdX zc~OMdR8D�q|Fo!tJ9r9yWv4E-kkvK#w(HzodPON;5RvyvXAXkL9o)+Sw=%kg~0W zD$wk-KM^`5+cD=!a@iPZz9_%hIa$+OULURX>TAo*zD4M?p#r?4RbC?=yM`iv5{9zz zkbk*(`i;&FQ3DZ~XQlMDUd_rc?m(-BDuuscMY}xNpi`%Gy}m(;q9@RB$Zrn8GjZi+ z&uUG%>|QMo<7G1qz0deDO)(?b>9`4Aw3&)PvvMW!Ynq!v`30yIdKHW=5?&Z?%7=QJ zBiN(ch%5G~?ELW)$4&HVk~=SZ5y=B=Ndu$pnDYE#xzUAHiKzqc*X+fiqBb0=kK&Cr zRh3W-y)_1hWI6Bzk#d0af&f@9DGgQ^zNj4U+zC~pPA84y*PmF+VYOO?rShiqFV6DG*}e%Pj}u=%*M5-zK8DZ@|+ zy|=@>6G*xy?#={?^!}u^dEvU6NI85}O)VagTMFB$YUovQ zV^Zdcb`*^V=PCnR1Nb!1QC8!&v4v zmh+C~ykj}nSk8s90J4qcTw_fx<};3u$C-NZ|8dM`9Mg|u4&#^udMP-dx8eUuOmh;K zbrP2adneq`8{E*Ft0ouoIf+Xg&t;8gKI55wJX4NmKI56sc%~oEe8w|}@tk)8=bgZL zCve^goEM%SGECsS6F4s{kPyy0f%8t}yc0R^M9wvlb4}!26PbP@Qx-8z5%ZtO+$J)g zBF|h{?e0@Ji^}Q2Q2;y&lw%Cyu^PoS(Rf=Otqaw& zzvEE@`RaMZt)i@6Wd+LS2M@~2s}x>^QLCaH&ynLTU9<^DD0SE34 zHLhjHnY_rCyhgm7ZV9Sdc@ZAd_m-e`C>G9#>RC_hnZ6wQiZo$ZQM>=4N*a1N1iQ0mb?C0aff zzt*A0G>_9w4vtrOa{7_*vwWx3|3K*MdcTX?{TLRH3q9@Qp+sNy8l9Ib{C%8T zc`5}bxw{plx@cbhu-Qrl7^mtUIF=uPcJU!Tt?#@v{O2oN*K48T69FGAA8?8&d@&HqzeV9hZ*Ozmr}*zt^iL~#YC0?bI|`@0 zI+lO8;n(B97iJgy0gBLltm9tpkq-$H>B?_m<7Oni| ze!r1N%YUPy|B0giqu^u@T5sn5x{+V&f1~1~_3(n?^M&I7mZGOU9ahdy6uwO1Uno9W z{)6~FmXSx7dz9cLzb@C@Cr;_#>eD`VK)R$Ckyv@=D*m*W+T!OZ{$DEG+^_w%JWCY4 zwuhL)zfyc|RORY=nfsuIKaJ5=p1&yi7KNMppx?H`wW?h0ubx$WNEdd$azf$MU##7J z>fqxj6D6!iQ=-%5_*gmnE1dWoDfIMgDJ423+>ZC=K4J>D@xhToPwlJiVYK3-^;V+j zwf+N&p2~ey`r|x>lT20*%?j82FH!upy|pTO;&1oC{#D_Z1GoBlMB%LpU#IwMdwX2b zYk9UQdR^a76g|mf?_c-B{R~Q^&#&>Z^6W3TZ5JEAO>l4e53fB?a*63mn)q7 z_K~9hPK8t1;%2>T9h~H)^lODPAIgMur@}QKx}QXeF#1?N4=SAb5E0Vnf)ia2K2|@! z9za)9_G$aYoeJ0OLhJaHh>y0D^@?8G$=8Y=w-J)%9wqxeh>z~SvjnF)5ufKopBFp0 zZTHI^{2I!Lbd`gz6#N>&soV@D&y5cK^HS~~9Nh9*qxk4}V^bRX=M~SvyV+xfux4sP`p65Q2KwL|}ulpAqy%YUWfqxExj8v0um z-mdg>r{bga^OT||JF)HcoP%3AUsHUvK0kNp_ej0^$bKKIXL@N9r2_>g{d|g#ZO5Y> zdON>5QPI;gKbC%iqQ64%DN*#gzKaw+)%OFD=W<2gNAbTq4gL>>Yx$p5{C}$Cc}dZ0 zc`{^QlB2s*) z^DYO^6FlMI)=oZlaN90>1$XsRB>QVfcKTR*_+c8nMR4NNSLy9GMNjhE{<}rdYkPQJ z(d%+QQ#g$mR-Q3(QHn67{xe1YGsXWaMX%>geGUK-67kpcIf9cs z`zd*jQuH0TX5}2F=(81lfuh&^C#Io4P0_DZ{LfJI+CE=YI6V_#oIh9e zTF#pl{Z-&=`TRlAYdP;xxR&z?#fRjye)4%mugl%8=vS$7-&gdy++7OS<&GJQ%t+RL ztbQgtxLq$j-N7e|K7SxMwc{YA&mTJUmj49~Zu$Q>4ZbuD{}m3s<^Kx@xBRy#KKm;< zUsCuk)WNpn=L-K+;Rha!6C|o{j^b0Ia7{l?;XXzGgu>~W8e8tpH27hMaIsvj=08&5 z+D;}4PVM`1d@TQ|ieB5v=?d5U7b{%r=l2TN^j!)+K-KG?3fJ_n3U2Liu&Ji^VH*5^ zLk)qYe;Z{`I>Ny%pA!{Md89jd;}lN)&hnY+;H8uasafH_z`51uB?`Y<;g<_ecB1FG zg+l-!5w7(RQ22pLZ;gW6`WA~kKXLFj!GGuAc3k+AgU=EAt%8$02dQ%3Qn;4$Lx+!z zmkv3MYGvxB-7O z_s1RFjtegcPI}Yv{M(BD8eFq>(yi$CD*O|L>-rvcIEav3I~k?$!K%G3RJb13S_QZI zw|4R~2Y*WRaHE3{7CZT^gIhj-cJMB%PX|9y_-t@+tIuZyr}}C?_J*Rr7T2skcPM(T z&z%a_`W$owX)`t6jTL!{9ejhxKi$D?eShHKR&Nc0ll%v(cDcx*w|p*fa9i#_)8H>S zxGnc>2edC zuJ!zh!byIsw|+;lSjjle)@y$UxAGj};8y-)9o*`Ftb<$n$qLtcK2_l)r!1RzKTLzS zI=GepXAW-Vzsu2b}y z|2l&){VyjJKJIr!~@ zM;zSJU+mzv-B+f;f1_|>ZR4mr6;5_*%l*6H)Q-Ac)++kzam}{-lZsyJ^KC^>{41qi z?>qSUf)6?tL`ZZ>^w!TDBl&@?TTq>D&TD4ZbME?X6@>ECqlBPkP7T;T-Sa(616_~Z%wUI(}RG50v) zmeRlVKgT<`wdXN{yZW5$&|AM3a&TL2RN*9|)x%{9?*sgHkv}Flm8<*vwTfQ*rQaxe zZJ&QoxQ;U)RebuO3@hi04sP}EnSt8MOUh zzU|<)zB?V<)@zT0ZxH=w4Kww1>y;xo=|R`)a7BNks#l((*Yz5ya9yuU6d$UWZI>Gz ze3;02n}gf+lRMMk_c?f;@Y$3Gf6Bq_`o^aYZuR!1gWGoLKfJd-?f8}J;FiyE4sPcW zqaA#i^o!|f@L3LS`Tx+tt(-qnII-?)#P;eGPVHjlk2tvH-{#;CiJm(g-1?tu9NhA` z&B5nLeeZSfQo*|vPLLhH{^{U$p7pxIsb03feC^;?o~#i@A;eqvyMYR)YyAwFceui} z-i~o_%m0TCZuL{);CB5d=HQn8`ZW0O9NhY=djxm;^+SqYuNQ4p^txYfQMm5c?<+o} z2V3r^iarZAV*O#}2}XgW%j@v5_yEC4PF?PS3fJY1Qn;Q+OjG=CQv8Dozggk)6#i?4 zU!d^cD14d1Z&CPF3cpq1H!A$M3jc$`Z&UbR6@I(I*C_mV3h#d+PLN1%^v+YO&mn@7 zp0)g=6#jc$v-IN>AFcnB75yI+{d9%jq3|ClK0}l|7bu+GF=)%ZQ1Q7_@wrIR>-*R3 zie9(lN`>qC{#^0V`nfI*{cjZhM+KnZU#9qMReZGGb}0J0 z6#XuR->vY^6(8M>V@84qiR|HUrT=1u{~6b8yG#?@t=BAtAEEdxP`K`o?TSCWB$yxvwZ(x67M~kJjf-h2N+6 zf2#Os{yhrU`s_CfnUUP~8m#cY;JVf4VS>Bum8Wpc|3t+{%U`7MzbgLUSA4YmWeV5) zXDL3K|Bn>@H^sj~@zMP26|VV56(7yNRpEbE{8uPGn*Y@b*Zgl#d^G<%6uw&VzgzLq z{O?z|=D$Yq(fqe4{2z+{vx<-A|C+)z|92E0&3~7|?^pcyC_b8hW|A!Q=`L9!aH2);^C`d^G$Lay^TS($s58roiyB>R*gWGksGacNPd%nVTxfKf6<<>a3 z<$s}r=ZPME;^4Nu{-p57P($1A9#Z(@3V%}JPbmBig+HnAoeFnY*gBbMgM}LUoajgNK_ov%leaL4sQMJ&mFwd%CB&OtUq};4gQ|Ob-7an19unNOlR8EJvZ7zC=(U~vLg6}oxJ&VQMe(^$ z(QEsBMA7Shv02gUaR|jsnxXjg!Lj8tThUXUZjy4(aqwcnYaM*AoG)|m59GYv!9SJrYaHChCpSB| z9Y-E=@HUah{+5q18i%T(|TUa!$V!M#gzKoK7Uy$ZAl!%Zh+dKH! zcCqg%r}o;baQk};L{C{urM$_C4;|hvc!|QP+}eZj4{5f8+j@l*PKUN1)d^1W=>2%~ zJ7JWlxOeff^0z8_E&q**p5z%h0RNEgbZ{#V{eBoFTVGo*``g5>JWnfnEzc{0yZYRv z=(Rk3iBQUY58t+40|a;Z9I5DurPUk#ei$W^U+X{L!H*omWZrZKA1Up%Na32leh-qq zkKC&0X>79ccL+{jx?OHj^jZ&hDO{JkTJh24Zcy~ssdArE^t#;F6}>L^eT7rGw%tEf zd~~^X!v^VjhbnhKUz{LOHeK$~g4=enc6hwPb$tsIA6@QbMX$>}P0{Oe&r|fez6%si zmioO>i|5LPfP7orFX!hw_$)bZ zbny9d-sa$zj%$i>cB`I?f@;{{9i^kdmceCG<2VQnGk1 z9U##&Vw5aiEci$VZxQ@_2hSCIwdGho_V-Wka_H^vpAHdzmfrpj&N2tLzx#QIgFoHh z$lc}O_IEZvaPfhLo_>dt5?yA|2Jxv^>frYGE|)pD{hdnseMd@`kNthgR~_8`zNBCD zWa;hiNKSTe`+Jeq4qkkaDeoEwx4%2t<>1>Tp8U$e?e9X`-y^c}*x!Y$bo!V5UC3J; z-2R^9M-Fa(&v8gUBd_Ief6uYn!E+^^X>)M<`;0d^xcz;``yJf=KI1zMZhwdI$o+cD zV}FM+=-~Eu6<0a9{r$vO9o+s-;z*ev*!tSv8LV}1`?~-u9o+u@;8PB6e}C{uv3KI% zY^q}Z=i@!gcp1KzPcKj9?`nJ06s`^B^Lt?PD?^cxm%pI7*~@Qgpc5i5%*PvY^(kJ1 zo6G}(P*Vi&wH6BdonO%$0bNByU0t|7;^o)lZLj&$&zLugUtKHbc#mm5y+u6S6j>@f z!`0)!cK;p)Jo|u;=!h)>SBf zfhCadA(HN~$#2i?x6NnISK)y4;?_SP`TdqqzOCFAz5@ru)6HKk z`Im^lvGi{K+i+oD?U(zq$+2C=9cn+CQri5s{q|Kh<=jpUi?o$GC=!`r0v|U&iRYL& l5IhfhDSvr>8Sl+mO7HfZ`0gwJN3;lv^cVA${O{`j{{X_l4nF_@ diff --git a/tests/binaries/coreutils/fmt.o b/tests/binaries/coreutils/fmt.o deleted file mode 100755 index 28c05a6f5436ae7e93ce9caa8c5153b97a911cd2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 68640 zcmce<33yaR);E4{-@ctrLKa9^0tgL)fRc~^B7vX;0(2lOvIYTT$VP^cWYXO%E`S8k zo`}LIu8cV2I5RqKqcd(Zqlmk+xs1y=I_kJg5cdUf<@=qgQ@5*&WWM)%pXdLtC*Akf zuTGtF>eQ)Ib(gMenNcy*XWN!awspFd$SKsaZg3LlQ~^)5hFU|cty4rM+PA}{leqYP zq`n|)@ODvPluzA$EUQeXeNjwfJDPS6rMuk~LT{-d!vz$Bwigwet?N zzu_o>N}jA+bYQZm84aTDR^sM}yhOLW*M2N5Ywv;fW5=@g9vt$_BlQV=!@Gol())(x zSXQ|BiS>iB?wQs3D_?YJ`y0U$dv4x=(hJ}4U+h}t7alk#)v{2U{VO|~U4CKb)PQAG z#1BAXnPvSd82zkce(=7xmx0YS?GO9HHBW`V{HokOKqLuyrT4wv1JwT5J;zD@`H@)% zg3;?cX1%d1?7MI3J}?50Yrv&q*H%*R@V5HhVcFnt@z>Gu(ukuz-sRtF9|&I^&bs43 zc=EDP^n_D33 zOPK_?KR`Vr{&7Y8tGV$vXJnNHP$@2KDsib&&6SV9=D@xi^gDX~* zt}IcZt>&9eaQrB`h1&NlgvMKU@`#KXHi8>y^C!SNcU;&j^L%-#j6_ zkT}H#-$x^F)KRd6U+v267jA#V-a0uH{alWYaQyXfT=b97LJkP@zWs8z_~i}RhjT@} zaC@hXd^E6i5APZUsyV&EXlejXZv%}p;?2cB6`GL3dcVpTeVBQg&08* z`#1G4O5=~OSam23G865W4lkv1Y}z$&Qgr@~f9{%|vTL@TRsKl)vGzBPKKz|i{O|=6 ziw|BfUfA~`!~#o*V9gU&f)#e*(~#_F35Gic@Ax2!LGo?bevR6j_26V`tF&eDYq5_?JDP?CSJ+|@!k1MX6!wpQ zMx(l83hAWx11u4igEuS-WrKubj`$w+h}16rdgpUA_Bv*S!n-QrX|F{GNk1c-KQ^*+ zG4<9Smb* z+P^y%%auluCY>w{viUqxIo>Jb4mr1+KSv#mztq_P9XM{nioytJFdgBGN7JH@wjVtf zdnbv3s^58vp}(hn){fP%*r5h|iQW+W4y{L4n-F%FE-jCLU%I4XmvAKVzKV_!;hI@N z?j*Es{IK#}EB(hz?#*NA`Vws5sO=JG|oqOth)blxE$tG`s!ZU*qiJnc3yV zueRkLUMb^3c-Qn}<;9OiXNBXBWIcFF1qSDblH-m8v46)uWN`vou`0ad0C>&JE?o(} zrK{}c+TZw2GA%t@&TCl@u03}6NpL!>4j|eiiX|!uP>0l(v-LcZAQ_-(L!MEJVougeb$KJ_#c%1j6wrg&&7g zD~b<wB5h+nXJ*nT?PeqdxczToAG;y2cRKzw1q`0MwJ zHN>d*!lPa*AN78?{oqJ8Cv!%W@YWO3HV@L&6P6K}=9y8iNcH4=L%yow3T$*}APmFy zqt%1wGl)`4Xb4K4+~0BtgyTM%Yo=OLFCH1*wZN{3BT$GQ5Q50Pk3}cPpAfmy_<^vh zc5ue_1F=z<(PEE1L`rr>zBqQQbC8HhVn7|fP4n^n%63a_CtA&6GhJ*YD0JImd087 zIgDeYk=&%icecOz<;CIbL-nB1hI{>P3=0`4WnfLr4u|vPd_{qqo#6G(0tk#hj-VPH zju09R$=;C>?fhQ)Om071{Oo2p>+79A_*&FK#JXErpW;^0ffcLZN>kOG0AG^}@vsa$ z(o|udG2$W^b?&BKdjiXb6f`gEo}-;DpB+1#yH(3uZ`O|2Q;LkWV$}3z`0UqJJDZ_g3_MsAQK|GCk1hqgWz5S`U{={ad=E zJpRRlAhZz65u>;(Kaz_(eKoKUaZcL%@PLFpI{yjDYIQIl-A_U737Dib{wR#`24%q< z(d(lf2cpZvlSNl$ZNCJVD5!|P_n?DJk(@Bf3T8`y}J&U{Q!U;`Gu#P#jnVI$F7_xFm{?E1D{GIn)B{$#^8_I!5mJVB@{VYl!J< z`%+exojBbVG-`axCG1A&iiTSSfY6}h&pA%Cel}! zzAD2Vk!&m+v%@=%M0-#GBpER0e=0iG29tYcE}7va6bqUP*=Zn%h_#K1JF*YsbqZy8ZpF6~y;F!FNT`0Tnq>_`hz}%r2T0E#ldaFA%$E zpqSs~8t2fr2;|Ae?$QR#Q3?ip_Z>aGQ#^_7xkAEAT!3J0BktEu8(K;cd^G_c`za#i!x-KkH5%>isH>E=tTDPK)Z7x9Sza+?bf~2*v|&wMv&e-SBcc4!p|-l}+E64~-CSGU zRvT(;ZjD6?(yX+(1VmffHifF&8e;3}nxm0Wv?bKk(%cYgX^l3vG)GWU7h31h)q{Ct zO-ozUE04CcfR#vVqS4mKq%mVQY}ioH&>SmhX=@l0X{nEH0FN;>Ep2tNXk$}kjJ2?? zl{i#4Zwf`*s+%KC)g&skI@Tb>mnc43VQX8<59(^7f@QR>dfk}QArrb(udi-ws$Shx z2c>JOo0>L-);Cs9LJR9#LL)|cGDn4mM}|j6u%3(2;1R=NnEW+$O|2tB)Tnh(PgHAL zC$yn9Es0b&)J;Ow(2D$J_j5fl=FtyhwEwQNRl*J&FrVmM()PvQ{q3YGE z+v?D^Xk9JoyDrpH5B)bZ)<)M%DJ!2NqMYOu1p{_PR(LrF;r8$UMsJ5}bzOD_n3e~r@tP4fz zYFe6W$v!dS6>DxJV?eFy8fpfm7Sy7A9jp@FP=}$op{1=B+LL*!>!WoTL*Q4}Tq6y= zff&iI6mBM%(AT=^jg9MK>x2bhSM+sgWNlr2b*u^FuRe6zsiB&drr5gX$SBgMf!H*( zR5wjY<`N>Ti|WPWh7%XTca*db36-OQ&M4J3!noBKsB7SdG+f|}wV}F=jnOnq5P*Jt zU0Z|(FeT~7AqCMuS_lS8pcT_}G;XdZepf(TJ-ja)I}oT1jJRU?L41!oMgB5gHe>eodJYAouE zP>JZ1s;0(ujZtfO#1av*uC1-5%>tDLF6$9cC@xvn3M*QN!J$E3V6o<+FBb3tJ+Q&;rDdwg}o(STuIr z_){mGHnF%S5{+$`)HChmL#m^?Rv>>XI**&nCvS3N&C^w`30z*%fO^Wl3nMF(aS zJyoHupv6UtzLw)v@`Yb*CN4WV&~k>d9$a9zzgO7)b!yf{cVlIV8%Z`U4}$F<*kQWx z=$L*q9Cr>~jiQQ<@x$isIFhw}1gf)Sss5hYy0~^#c~og)e^n~H03pa2M<&S6TX&^wfJ(nGi&=0NH6^(ag|qj-0SC$ zKYU*4)-ARbJI!0?eqZ`W5KC{xyPv{~(&Hcj1l$Sv&F|1ot%hm9~FwufT1}NBJTHkCMWo;juA|qH})_ zUiUwVuWP>iN;d1zFm%YS(r570WqrL^ZVP*LacK}H^H3*C>(aPMGEn=0G-mlMb)&rL zt@{A3*AGpDwB+@8yvHyhv7^VZq9gj{_n~IcK1BC(yU>VSL%`@vaSWqAZaWqo>nJ2w zd|QBrI-p4xO;MF_AtJ9ZQdEl2PmXV;j7t$_lbH#rR3Rucr-@9q%uE!Selk-m zG9j6nBr+pqX0pf>%1nvKOq7`^A~RKHrix5hW=ch7fy_)3nM#={>vIsFa57n!Kc%uc@$P1q{zMVxSZViwdN=`n zsb1=3nRnwnjXHcdok?`JK;`)!an5d*ku6jeUX_;C>l(0N#}&ls!!pT3~_gaLxGWMXhJsItdn9dGq07A5_xoJ?S8#42quzD`X$oAM+k zErPS*jrf`%BxcyT#91hpS>K!D#UNT&WsM5_3`D2l)Uuwwb~2+U2Yv@s4AWEzWsk9Y zL6clTXv>379{lnUl!t722+6}#dDtpg$zkgg=YH`Wv?jWK(%(1RwhO_36!HIlvp9UW zSz4=SNa$WnMJayLx_2nB2gHJf{MK1JngCav2gG-Z_zsHiRPmiA+tw>T^I$SNsiUkc zHI+er$g{5y6>}lZvh2NSf5k~ZnYl8Z1c$7&SCGd#3&X3& zML<%~r7~sMEtvDA93hjY}C-l!Iwy6hv zSrn3=MUm5tx(?;!*L~zer{H5{&p+`s5Tq>!K~Dm5jtDz`N43cDod!ZD(O2$_j6oQC z5*B6T(;{n0k*E7aQ%)r+QBT5I60RVaqOqjzeYu@-6Ef=*wNru~lk6q~w^I8%85DiA zI;jI4A>k?y4iROqaNu@@I1~@0gq*8vVFG%$NmH}W>r$UrRTXK9zQZ#_oF<07w@BUm z=wMAP(VRZlIa$<-5S9ImOhjMOdi{o^Z-pi2Q<1O`LDTVbMo-s_p>_PiQqskO2l{}e*3lS%rE0|SL zxu+dh-6yJ^n^aX6`Kv_Hl}WYwbJ;3Ub}yBYYfHA&EB!5UQENb}FXL%dlYRAW+5UG4 z7QHA2g*3uApz!TvmJ6Vk*?sQz3&oGi`OU}f41;_E=i%I>lf2LLl$Gb zbviP(NHoSafSGMCv5PH4s{{!eTa%ZHdtRcJt?HAlpe9Z zbmaPkq4Z|!sFS3VM^5rt!fT#{pKv{U-&1(Y6%t-cmLOXGn$u5jk!a=XPO7enCxwjb zWvFkw_EX752%*N};>yFxz`Ge=Uzw;(^hrd&Q$&_ET3LV^MFvG6lg4|-YuY@oX{8z5 zh0i#BbfwcbSkEOl!;?q$9*t_?oru4QPNQOOhb3;_{NAD2UZv@t=wE}!2+IB5=|!UL zB|Vzznvol*TNJ(a$K+lUHh$0v>RhFyYm+41?n(McNxD`^5Sa*ht79>2%wih~S^oCiI44dTG%N^&f|Gf+hF~OYPDD%c6`G{w18t_3F zi%hy+H#2M?eH$HM7b#o!^lbeIo59}qHL4?K^mO{`!%EmNCpj(&EH@cTuWxL&dOJO5 zDzoC~Y4>l`xJ_!8Fjt}_wE9V+eVJQw0d!xS)E?r5_9VD4fgDcX`5H9wXL(Iqj2WXx zz4e{1msr^_-lGOco?gT2TUs1RvtgM*94y2QxhiJ zbaPUh?iP-UYWvo}h0&&)eLeLy!CE)_j-NVyo!m}zk7eEJ6Sqp}l#;-1^Ce9&UU!qW z53{!CYpu8hX8A{=6(0SpK9=?9t$utlr#vD;HFXK9YqQ9*h`p3GVf2|w(FB0@# z7t!?~Y>+T0oL$eH>7=#d*Jle87;e(t!`&e6=4Dtp)PK+uoQ`py;+mfFNcO%cN=MM? zF}p8$Kb(6iJ!Q7vv2A@cEc5(f1y-H#hj;8Ax<81e=sWfRJrJhjp|$miofJ2{zNCxE z4{IlMgaHW*s(qDrzz6Q&=l#hqd_+@QNzROQg%TXI9;8t=>n(Ax|i2zQbaFQzgt=(I9c&|6;ZpD3h(g0gv zhQ+?kT3^xldPbBk_HEJdPMGXJvX(tQ(Y54U*^sC@Pw%!f;ai?}kVAO(=k6A>;X?nO zJGY?3DMn#jnmf~N3{Mi>rZ~)!Ca`i| zA>9Va9v}@W=Jy2G1P8iv=>q#p3f^&4?o;-5op@LrPkz~1ZBs&Y#A5ufc`j*^+28%oQrS(M54 z#e8XJqNsp!A+a12r>D|s(8?K&GPoyx8SR^XqdMp75P@&?<^4+Gm&ofAfnUSdDt(AM z)f5ZNfR#gv2$5oy>6-yLGL7J)y^lKDgUPi%4|U(SW4M|{eJhtKzSF(h38r-8$AgJ! zIe_jQCYk9-65$LzxeN!oFh%U8d@<$ud~PFFB7DB$WGWBS*PzjIT}&gjyoR#!zO&%y zZx*W_iV32ozd0oDhs)9iQA*t^OB)8z-ETfGk(9G3(x`MUH_zTj_on77MUk`Tnax92 z<3y#Q&3fisJ+o8GRFESbA76YI`<%yz8u7(5D#e%mC{-~g;fNHmHfxIvJrW&9)s@_9 zeNN$t|4nW-N|jtORf`bm4GvvkqPQzb`+Uy%rX=rf0kLUTk`l2f6Xs6%7Ckh%LK0E< z^2|d%_eZWw*9v;WlV&^~WV>NYF{cx_9m*jpqLsLNC}7 zN3RyCw~=dgrQSYK_TSZe?7v9$1kr$gO){g&#_LSdrn`Y_%|%y;6td>2Q_C*5eEl}l zdM#{UU~kE>afOcGgO}sr&#;`#N$Hc*i_^<?4zZO;{LKriyEzT91wPD=Kt zYqkM`o>^c{7y>=Uz=$VEBl@I?5jXwz=|fV|hxp5LWZw{n!J@06WqR?DUgbF%L+rJv z8cJ@ww8)Tjdr4oaGjx2ym?!4I9_i_V;gBGeVqX_0liD%-G+~gFRA0)ThQ=e38wg}% zvb^$~&=6<5u<9sbPTX@iSu_iFJ*B|n{_;8o_ixFsw%K{)WBJ}WsZ$^u=$ky`3%_#5 zG31U+UD(qeo|%*G3?49eN#CA!Hr%iXz6K+VW%miyE`(7i^-U%n6 zGforwVpvUtwbRq#+n_|tNtI$hY~_K_p1?`TO~1&74-h`t!-ZQ)uq3(dWaTNzbYA__ z#fT8HF}`5qGpHZRbH?XUW-6SM+Q2TayJl%J!(_jmmTnU*DL6fu4uW+qW#!gZJBPx< z3~$6>7==WeXR^l%kHD(Q^C31=IGME^Ddl>DENgZF281qgj_^tdte~-uyN+b5lDy_j zF<#N1^AZ3$Y7TtLl`mq6kmf}~zcmh5L*uTn{dfkjA7$u&na;Nti4%=9-Cp2NKO;Ai zf*)_tRa;>`wp{3wlX|p2)uf~m=Ynr;fxXgSP<$Nk;oxm2lc)J&LI2=kzVkf=a9O0W z>j`!}8|!Z3Tef7lq1 zkGT$a3rs#EP%z>jwr@|FG+nZkQ{XqJ{0E)u|BwAC7BK$b_zw8&m4XT6($N%NXrJjX zT!7{+Sc$Xi>^rFT9rhzO1U+IuVLPpGm?!K%Q~nm;{XY9lSjls?Q5iqa;L)+$=d zPtjX4KHGnneYXq{ z{=3PbXPb@eu+d-Flk2H2A_|SwGz`XRvtg~-D{&ULub^JI!oJ4lK#)Z2_eCs!_C$N3 zq#%!^q_GP^v*2=YT7H%qu3gY9_6Nz!rp?9ILULI>Y25mPTi5I=AXTXd}oin zmqyE8`${i3CMiLkzbYa}g3qU`*9V&Q8R|r~?Dr2HCtB#)TsnbLL{nlYL=8O(ANL>i zZFP{@>RjkZbuM)7c9IO+W%b4Wp$nk(f)!9}1v+G@zr((Y%zPF3{8Im)?dK`?ynV!n zoZz|C^pb~XLC zCgt7)2jq_0+kK$e?gN)DCYA+Ideu*Cd_QQvf$Vcz}ftBaCXj>6cMkp_mjr^?MsMck8iIJxxK!ZDfgQ1 zP0GFLyVyal!?_)Ype&?aRqNm)i$f^@H{cgug%rSn7YpKE(JT z`*XrSx4$L)TNqL{eY+0|F7aRD+fRPC-}jQlHR0-1Qz8v&r$O*4C3x|E|3SNxfKDk9 zz#+Sxyr|tLL;=|D`yBzllQP7#uXrap!7yLpe*dDiPU^A!{&V-*;<(qo(I)st`%Vem zN#djrXo~emQ~Eax5A(+K5EWVw1(M{91o6mg{b=^J{+s;HdV4<(F9eYPSK#tg0D|C8<`0R*jA0-Y(8 z?M(R~1#CV@xh6>2Yl43aqV%QUt3fjEtHDo^O-!^(cQ0PxhZPTsZg|zc*GCHY@1?1F zf&YHrH;%}E<6P?}R@eHkC+)9?0s?;}a8Zgl*^~0UIFY~6Un3zwlp{N`SCH7i*p2q{Q$NxLesJ75Hoiqn-HD@l) z=H91bm&Sl>=nEvTKmzpEPqG{)!!kj5Ws;P3TaV!F6b4p7-8+)v|3927{2H0Co~Fj1 zY0h}XcMZJT6x|ydzGS~|iwQMp=|4qdh%x?Z+ zrD`s??xgdbzCGvzrqtBVL|JALIKGbv4uTSp$eT=F5D=A~6nCUON#0}V1R~E;;ZW*w zOwF_K*9rbfXZTBJdQ&f;6n}bOJ>SFMtFM2+ARV&&PNsiANQZL#eL`scd$#`r`%7Cd zN%v>=Mr$wg`G4%Y!soxvcY{wa&h_^@(Ld}YfBslB^^>HUS^i#mI%&|K-b>Fz)06#E z*7;xc?RS##at2eB8J-;OonD@5mE=fcyoO@9-8Y#Tbf91(hMhgwBUbhGqt71f%Njxm z)zH2~|A;TKKo)0yA`xH0>f$UxCm4tV(e;V5M7AqTlqS9eN#ZL}U}4k3R3VMDaE>{) z>*TnBfbF`0J#H@?gMna!n~sx|z>nRrIOcu|Y`uVbwYcePQBdfnp&8o zyu$4#syP|gySX^C*SI|b&ZYu43z^hFyIX)`pKY!kaCX|ClH5T6`e7eM6m50W>)mXy za@yS!=uq$WlLwm)V*<{1_5-Msn=7;pwz+{d(Bv$kSK4eLp5*j8!*v3|2`IANz-+W? zj?mTKghpHW$D zN?=V6*z|Muiwy2DG{lG$#Lk`m|KdKWW)LBP3Y%ZtQ}*n#u8wtJG3R)DhgQ8(j& z+h@I-UFT-bb@OI|XS>@68fTXi`&{=V+no@&+@0cNMBN@vTfIABKdkXW4p5uAuZMGP zi92Bmuz5LTkl6tT_RBCD&2J1(DcAO zHwUymZw2`rK|V^FDFfM)P%^2~&8u`vOWbv{-JFsVHwDGMfYa-GcZfK%-KlhRR+UJ= zIdQf-n2<_Y5O7vS-IEA_vpOg3Mr+|*?Jp9OUtd6Gf{A*%z9FvjqU(d*D_#2x*LQ;J zl%U|%|5ok?BY2~*H5od~%^2p|6W!kAMf=?hjDmNkz;kRjBQVQ#eghBBanmNFFeaS6 zPbE$p(32QH)VovMY&%eiPLGLh&JN&?y`K;V-b$m4NP3g{Q{0||UArOR{M7eAzz)G@ z4hd&Vhf5Eo-mHT;W7G?k?kN~u8{J;cM%XUUOnnB4P7GY3U#{@))WC8Yz2rS>AO6P=J6dC;a-430d=>i26@>sen98n}9n@c;f1Z>)0pLmp;!H=dRs#9T-W}g>#PXe zCY)t7f)h8V7>t}3L|}7fqt;oKaGqaYfQZPp9^L8oM1T`&yQ5*M;@K4UU;!GD2+4@S z%iR-EQ22nGS>P6ecPdK!4Q?qN0?XVJ=~yqKx`&p#cyGw>-|gaoAM80>WHE3lqSM@> zjuTJ}zs;e;0~8v!MMG|?v;IX?Nm=gZ_I6X&$Ha)p4O|EPe_kIVCQjRKsZ{0zQlr11 z?!|WSdbA5vJ>9Gzq6IpZqFmP8=n`a>=h6VAF)~F2wBeQRFti+@dzm{5-}NZ@TzJA$ zLSSB?T(rp!Y!lsL<01gsXM>~tk~=cr%|Q5B?q=lEV5jff3NWfMLIc5(Py?wC&Yg|$ znhDTuW7G{y00$@I)0H_0GGIgf)C03{<`3PpU!Ya5!)-B7jDQEv#;jFI!=@AtkON9* zBmB%stGvj~N6kr5zvG@9a9-GiDM>^KM7n(E=D-8M)0~$!)mH-OJH!Urq>}qM#P!nQ8$lDDJ51%~bxy*iW@UO#pRiaK*>m4!-97%>^b zE8)z}ssbpM+Xi;hkixD%rj{zo%`zmHn>t>rt#cBjMocAGmrml z3Yg2S;F1;y&X(oRofkxtg&3@A;irs;CJa^t~&J!of3tOO^^rL)~8D1?I+7SM~ zZbFvRhDkNx@blu4ff^G1cmttZK27Lr+>#m2(_IJ2w-<(dVA`f?SF8G!AAX~ZZ9mV zD6YlC$fU7LGXUjj<{5sy+Y>9Bzzy(frxlHIvbVW?X<$~0OKL=-ET?t1>pFvi^>pbl z0@t(fKc|vbzS(YCu!2Sb+>r|VV+-g0;F=n^ZIOu0sexFBh#BI91`bY~oZY|w9cD4g z{N7pnfEZA~!N`g2CO*Trk&q#|flrYGPZTVV;*#GP{(wtYhzQwpqwWkkn=P*oXlA@z zPSNw`xcyE;Rt!|~$|-b>iJmT^uAo5sXRyk_&|BsXYIk!cy8wEw2E`9B3uL;1sUT@| z2ZJQ{EqCy3ZZ571t_QZp_4TKrMsrG_9?g#fbT-(|Pq);&1Dww+U``BcKq=C(R%+r+(+@z=Y(wvlaT-s+A3?;a({ ztc2%}xn4Fkn6KJO^Zy!J4TM047N);QcQ=Fy2V!9N4LCP$!D1$W&;{+>bU;xzy#&T{ zUck0`CkC!}b6#|DB|d1Ii%W_=PrEsj0%y_s*u|piE^_4n_}pbz;^h|GZf(O>TJ=^{ z)#_LyHsEZos;XL7w{Bg_`nsx`HEXS^@EtoOADtwj| zp^ezuTEKc;Rde;aI;%?Tg}gdeulBLT2A_3JO;y!R8>%-&s*>4a3pe~|ToNRguwLOA z6$_+NE!f|*txE1mi^j}HGwZ8XS4ZkB{9qV+Er}hP#aFC3(%8^kN1HlF1to1RTqkL1 z-_Yqrr-h1&3dR)_hVs`%W6gC_8tR(s+8S$+t!}GXGiBq%3HcMoWA|9`H-Bs>pFZ`? zE%`MqFlaN*u}5b#zZ!q}(Z+SyWt9pW>=C|#pcZ|ZTaX2+FM!`)HGE`)~I6IK{mg>re4dVf3a<=)m*oc>`ogI zCv38)x~X+dwJ5W&b29q5tt!@x%}&?W)mqr*6g$+C8`L&7;3Q!$G80>jszAbmg)bwR2S!wk;K1Y}G|-s$1)fUaVPDSF^UNHP&1cjmiCCv9)VmTXmB`SA|`N z>zZ3cpU~#ARdvm^kfwWSeN!y5M%&p>Xh{mvNfmFvZ6)vihbGlDN86gLjkRRb7`6zu zs_L7n8zL6@M^#NrBx==RQ(O3QEye}5Z-tv;SJk>IZ1r8uE=;B*>r^*2W7}DnuZlLs z#Rjmb1!dP+HAZXL`c2djv9+;iS4|6)SRb{p=`RG+PQ+-T9GYSnHr1fL5!yvNVpX*? z)mF9C*JBLfTpnptVGM}IdZ^r7OZ(nJaAQOYzz-xf+mMclJrI)yr5JJCS6vP~vHz?U z!GIMktQc$zyJ3j8wKi4N(@wUqQTZa#sjBzo0O##ztLmaP7U@@oK5dAu5v|AgSzFhJ z*aACak6Y~bTouJ$+h`vtN?)pvV)cMobl< zhfF56=VjLvQL_#$=CFxTuM8kYEH*5!UTe`-zRA_9XpmAMYmC5Jb@vJJn2O$>h+SUM&tU#t2IrV~RRt_BAbu0Z_) z7;UiDRkw=RjzK^hqmw^Kn~=pZbP=ke*e*KR1;oIn9;mObUEfGvR8>p%uObhhFdiO8 zCZzWADQy`qO93EAp<(N2f}+3*q^6~HQxzO0YGKQ9>_weulCY>yzn*quw&YgTayw-h zPq<bVjOqwBdXHAsV}pD$T1|o%Ix2#Jwyt{9YBRdU+M3i1XH`vWX=%d5riaUB z>LoQHQAC5MG}F{7U5bL27b?U+p(tprh5@z4R#A^w)bWbA9{X9VZmL=@rVkY(XwEgJ z!$qr`s+-qZ!j>}5SJi7#XJ%>H((*+!suq^cE1N$TmJqWL1te(NY|D=Csgn(PfUb^QG`Kz*jeDA8|Czd!BSHVosw4-?B^n~gSM$<1EN(`6+EZ8 zg?v)ZUaeRRw9w3yh>A)vw0&-A1=dipHZQ!xorTkjh~UKs@&r|D(Tp>f%$T>h95vTa z>=5KKNLE$Ruij}-c#Jl&4?Azb-lhI)sv}i2GGjD>K*84P+Ea0;iEhHAyqa1dJW=)l zX#fw$F7UNuDPEwJ7AmjDkiux9IaEw9G>u3T!zrRMj2O9UOw10vZY*CEYlUfKyq1w{ z`us(UrSD@=6Kj=0aRZHhG2eRsB!iTe^RCzooz#G)YAR@IggzUDR%E`!%nTh7YS1if zuC8pkth}N^xCXRsgA+jgNMamgy5?C|#1PqfF_Tx3jig%D%{BP<2i0wxFxAx4a%7Ph zDq_+XCP@TnYs{k3@`{CH5P-0&eI)TOJG9O7{~L)V_MUHSu4#(Z){Vi!vTDNke8`Ax z%*Ve28MC@E8j&PTjjP8r)YKeLQdBgCtN#ypjiE*|M^&p}40zKH{@CYVen&Rp-vO*E zSVNJDmiXAiKH6B{SXV2c+Qyc#@&x}^0Vjf`B#zZYt0=@E#|Lua79tYC8YkRkv^Reu zhvL5lj@^Tr7 z2!V5!nU7$PoR}eG4cG)H_y%1Qor!RPlbU>`iI{IO$pS19*Hl>HpN<#zr%#_08o6Y3 ztT`Iv>xlfKn8+4w9y_+6aQrBS`6YvF9O*>>Tzk;lA_x5R*dHHCx$Wqf|ShROG}`KQIeiKdCm#pYhqGP5u9m1p+5)R~qU z+U1{?Ir0*>G_!DLpfq!0drDd6RNrTr69JTFjs(H9%zmgaEi;H;8d$$&J|pN@nwh=R zcXlSd|3YQY5QfxM+557{iqR4E+I_xtRFUch#Y-31C?`=?NoCaDVO(}4m+kbGW%g@# z$}&Tn(=z*kQE6syR{FV_{bq_&v4wCY*SW&0Q_6LG9jeYqlx=0YVxmJ6FY$qHr&F34 zYWJ_r>^Dm^8b!nKxs_>uLbRgYLXVl5p#)E&`#aN#UyTX6IV}4;CEBV0-M369cJP7h zT|Suk5|X{sKRt6~yE`kh(6>J=bL8~Q5VVpVFgv})K+5qe5Ah~a1;14C2=dgHOMNpk z`|WbdGeej7(TzK)f7=7TcGQQA*_r)jWMz_k<30s6cTR5qdAE+f%#o_6@_-QA{|K9j z{+b2bHbdBS(X%tseJmM0UYbrmJ(cT;ZDNEC(Jr>3?@rW|R-2W+9Or1SP`Sc8pFwRW zJ{L0|@yl0XJB*E8G&U~rhdtYsW#XmKi_nI`3ehWGGXx(RuWF+~@e6+V<0ZbCWJCCf z{2lMdEa!4Rh*5sr7!1=GoK9nKR^|fdBquF%;*89~8Ofutl+^ArQP=scPmXm}=*YLC zjw^EHt58XJ3UWS;Ud139t2XG*yi=013tNL2&z7*qkrXBR9tM62%oVr13@cs=hkXPcH~paaZB=rX}GehTJyb#Qzx_DXAEHKF*1L zDuGC}p&q4O_z?Y8Hq3N^TGmxK5`BpC6fY_L3?IS^4Y{`g7jl`8h}pn?&-7Cb`o|c@ zK_t~K%4o0Q$wGX;h!64qn8&S%*TCLoJj8yg@b4L4z_^Ivz~~J|(to0%PYL5;##MU< zFh1U(9|c^rm-&l%0Q|=>J^39aWJRL!Mf9{4IVCYS;5c3JVO+$2;B%SJNJB2o6U3)g zys3v@D-tuLYR2zmT*Q3fKVW=;c%KhHuM^bx88hQIFs^oGqhcrV1}{@v);6Ypg9aMX zBl2Kfq2#i`&Ox5i&v7I>Z)HDI_Pm+#8yLSBFHutZ4fDyyFPtffxQyciOuvBbfUHOd znf@7$EFuo0Dd^TG>gA)BLQbQv@D3&a(;`*JVX7I^lyvo3DK>NFjN`pb)6+WsPd}25F8QtJ>yTR%Imvkk! zt{a^G%Sl)C7j}d1=?1^98~o;O@ZWTUKim!eL^t?z-Qb71!9VH-x4Y>_`j;(T*(a|X z{G@JhS`T%_XJR*aIq+VXX?J7eOG>n^qO_(P`uW}9OS{2u?grliyq7lbi|ZlCt?h~=__f{Ozw8FTy&L?2Zt#b@!Jp~|f1w-vjc)M&bc27;4X*C^nNJMl^S`9$ zZSu}+;sz=|NJ%^+?Bba-KiJTpRU{s{9(VJV?ychXEZywIqgB4ot=(%)e!Q7@aC6*q zCi7u#cQ>2m%L(GiuJ;JWds^!u;-L)P4(A6A^eBk3l0e)Q=Eq)%XS&|=VLB1_jOirt zG&b?n>iCD_<}+?_zg#^ZCBcFp{})iHiTc0E^0|L^Pw5K^sk^(n$6bJb&>M;3)@mzg zk{+cOR7@|l@Kr=#P4dJSRrGqs5MrK5|m>ljVLV=e8x(8!C|ZrI95m*CrZajT?Lb(LzY&<3G?I_uSWfxJ5eS;bhWF35jRSC>75xk9$HW zpE&VTBs{dz9xlpJro94$d+JHgHfL4LpH^B?HGk&JMKcyxEiRo_F{4WSv)nrMG@D;e zfw{fsJ^Tz>J$~mK`Qohu?L7~E5-lG9d!~`^EYUnBmT`Q)xRT{XFKQu6IZd@lp2|)O{$0EB|7jBT@VU%it>+cJ;M_L~`j=-Iv^K;OhRJ zx^J%N%eZ5AY5doLkJA5ggOBou0|u_-;y<~Gr1&d8`M|*WwwIMk4MH;MGa08tGd@Zm zT3=H#=_ecbFm6{_H+&Ww^h*D;3|#3?>s(!~vS*8dODgrh1QU8HJIA}BzsbNyu>QYh zoDRAjUN-1ed;ewN%FftYP$VjD!AIFMmvLoJ#b-=6I5tJ=k`J~s6UpSWq#Jy9H++8D z4gDVtJX?yh9x?C`+wFM`*T>N-8cr^$`sH=T$v#c^DEqu)&?`SVY~adnpLK(e~fpKS)N;@)o!oXM>R3|!gsSp!$&;y(ti?C^nsEBYe_ zuIz8~eRb16Qy4exmSNzEe}4m4`b;!%)sLqexUxf;fh+zI#!WrX({O#9{?g#1^tsKz z760EFxU$cmH2(VdeNUsG3gwmme5>K58lKJ$K>D|8c#ekuP{UVgxK6*8aq5?88hvXw z^uN>SY22y#`auI%e*V0HD}O#M6_t^cKb*f$=4ToBKE@X^PVJ?&ld?~G`gP>+$Ln#!3H(rvFimp6sdk=cGx6m3@@{gA9B$+o!<5 zm48k)aK(Q~H~3kMlb*W&uhHH%7_m(!iDf*BE#S(>EG8XRTHPSN^%dz?JgUDJi?DcG3S5(s6ZN`ELW~@MU!xxUyRcKjKvU)%9bpfpc}Mzkw@0CmXnuTWH{l z{wxDm^ye73qQ6MP=^A;lY`%55hEE5k;_9^;UZ&yu87Di^y9kQ@VGUoe;ZJLPD88w6 z?6U^0`sIyo@S_H<`ZqTdOp&Pm27Hu0Lm8)j*{I?98vP~>FVXOGHGGc7XNHC^*67!2 zc%6oyr{U*md~|)bY4o~2^nW)gQM=B^N44wzZt$lx`~r>sUmC8r>tn{rJ~K7??=^Z| z|K9wdn&@X~^dSuoYxrahFW2zd8a`XYmumPN4d1BY6&k)>!{=)FZVjKO;rldvzJ~uw z!xw1yvy7AdH*5Gi8a=(!r26Fxjb8VMZ#DXb8hwxhDcN(8hWBQiGOw#Bt)bIrw{SpmdqS5R6|3JfaeWDs4x+kXOo~PlIqS8Di=HU7HXKX-#a zukq3C`MQSd_IzLCqw9ZE!?$Ys^xzwj)GxX{dooV_qT6$zMz8z-i5mU`jen7bFW2x1 z8h_mmr5fI((J$2a=>51{qu2SgYV^9EF^yig&-ogCQa@_++cbS{(&)Eq_?;R~@0KY) zxmV+(>-nHYzeA&cMx)=U;V)_UMH>Ew#%G0w)4yq@ME$7C{ZhkqJ7Bj9k;otPe(a&) zD^aG})su0P|3D4b`!QeRqw}Av;j1+MQ#C%i{&O^3=f6Ld~_^BHH5#waH%QT$ctEEKx@5V>*SMN2cb}4%<)ac31%5JL-T-iCI;W~eM zPnHt#r%wg@cZY`S^gq*ZB31qJdkxpe<3SDI1A5i2ziN1mhU?FR^!fT#jb5Lp-ejEY z`D2ZbdVWN>9{<15=-V}V`QD|pL9K?%_b8>G>v5x+jDV*NH=&-Y9tcr zzZV~6hvAGC_b&#n`u!gouDACM4X4LDL zsqwi?qu1qvL?n_s4xbye@lOQ`zliM{BoImA9gO#ou!mp9I8W~$el_#YHR!Km`hEsZ z?@v-v_brrM?A0t%NFF@?H!?oVz<hpQN!dZYuUsKv5C0qUUtr){nGeHwlT!ZnaXsT9E>O67 zUty|&|A^_&G4Q>NZ#D2=Fn)u9-^2I;1OEf#Zy5N)j0?q4M%fYgJkGfC&op4FFL3Jp zqJnVhi{VVq%Ug?ZS`+5sL#dBEcsOUR{u(|B=SMhyl7>&_b2^-&;Usqz=Zg*eA3Q#% z8u;7XpmGEML5c)a|EhN3ABu^z(x9J04ue!9529V9&mQLULj!+->DL?hnW+-kX5fDe zNPyP5l$1XE8NXJ-9{vrt>n;O-i19xdxO!guq=9F!pR0AIlH1O5|83CU!tGM)Ohvzu z+x4wM--rE#em6!*(W{-}Rk^}b=mhCRgZ_O9Tk7`+iv9w&{}hA1p8IjOfp22|>UTPC+qW&fnOxW zT7Ne1Kd{_?7`R%0yldctxZgiB@B-FT1W3qI`m5(;8QgA#|ANP3e*^!N+cm<#pJhGA z8+dPGh&0W>{p{!R_eKeQZf5gXN)18!r-6UL z?V{hEP*UxkEwk2V2L3wpSM#}|zmM?@=BMy8Ip5#Ff6M%b8~ALtTcLs9&3a5W@UNJU zde2bFjWYcrgZ_TT&oS`*oR1jzFNh)17RG6sBo|cs8vMwhuVp{H%)r%qY1bKi)P4s) zH|X2stx)}S^sqgz4u;(L9gP-V59-4SWda2Qxoq|4i0rf`N}=`nd-FL(VrF zcn`M2g$Dj6<5wH_ZpQC0@G6ckj~nVaC zfq_3y6_K_ZxVkU-3jBZjlS z3Xe1W3<_~YdbJKI)Ns0|q~ghV16OfFt?QNCJMRL!_*Z!hMv(ZFXjzDwgna_90qb%jCS%Jje0 z=t-Y7BoygB179s+>v03$$@tR-zMb)x4g4y`Uo~)gMnXxwzpC1+?DmmHPwkq|^A^(=82D?9kJE7C^DNu{bPXpy zK2jKInt`kPwzC*l?Rtj$Yq5c=bz8N8f6w%r416HBYmb2sWBhspFJk;21E0(I(~Ofn zslA_Yd!IGv)&5HAeOE<)koEjb<3sl8&Gz}yz}3DU`2R>EseV+?zf%poi22~3Pl}}M zsqT}UsNtmgR7qy#YdFQ3OS!$%H2&1y!K{CULBEyd))@4u#0=?t4X5_bWcsZJK9%uH z4ZMl*9~-!Oet(sQlb$D&p^$#2;UxFB%;y&duI@{!=enxDa=Cx+VS1`gO?n0&N`KM# zkle?a{+|Y}^m$jqNuQ@!pZ5%0J=geH!-@Y}%>PTqJ$;x@W+sS`l>Q&H9r84s|TU@vw$dyB=aa7il=@c?Q!jGw{ibuhekj zqprgnG@SUXVEVNNzKHQw4JSS$*#Fi0#-twcxrphvX!L~3{gkj?VqEphHm3iXf&YQ= zdo?~JSMEn-Sq~cYck(*n1%v(u#^2Cz(&r}T|F(gv_a{CzaCJZTh=HqpF~8Ap((_O3 zhk-0)kd%G;F`j1NeHhQuaN^U*{oY^0N&jM|A7tP~jE`Vk+4&4!M;2=I^gM11K9ou| zocOmepBV&7YrSI@O;8CUu*W&L9sP9oLya)*Xf*WSqV zS7`jHz0>fabd!ctd+%laZ#HmsKl&~MKf?6)82G1*KV;zQzU?Chp2q9RCmC1mRo4k` z8~8Kq&z~6hcy4bhFK88?FBm_OadIc}EA?FDWP@JqS2$avC;Obtdd@R&b>DfBh7*4k zSI^dP;-h{?z1qMRF#iS(Cq8OD(5B(UhxQAiwBEqiGOpeOSL5zyjQ_}>-^ci6j4Qik zv7LXe;UlC-@qN37lfU(4`rjM4y5IW`1CKKOdm2vsc^PYc!?^0N7nt7V_lK39>N&@7 z##MVC<#vrS@CO+`&A>YupKRc7Fg}%WC71TIqO?S#r~dky*FRMTJ?&dXX^Tcr{iv>A z+6_FweD)Z4Ipcc`d)=SdAGK3kdo z&j!Ak@n;!VcDsY^@UDSB&iJyi#`hSw z`u+Ts8cuwMaXkE~h7+HS%;zQpZ)IG)2d?aYHrx3i(<{7*@mCCd7vrBA_>UPsX5ddV z-XjOfAu0ZUXZ&OX-@}1px`E%q_zDBRgYibji7nY@9Q#|upx;eOAYE%bf7ifE_`cSA20nrDj~G|>e24jbYvA~o&?2Ss z4QfT-$ao(E-@tf*fp1}arh(tY_#y-U8{-X(tA07m>(w6`^lCrfJsLgPSv`l^Yv7g4 z|3(A9gYjP)_*IPGs^R1(>OJOr7$^JCd+C+0h z=l@$7A7tQh#wQrKy00f>Sp%0-)T7UxrzDQZ{U|R{*-|`9OwUH;9oNRbBwET z{TSQ%BLn}JvVUJ;4$lw2U_95rZN3g1V&JKa7aMp##?LhHBE}mHd@AD|242bdFEpI| zq(G`|{Z7NFe;b+p9|pdY@pldUCdNNA@INxHw!&8S{0rk5{6J9Q|7LuQf&18T=V&iV}vqo;PM{p;H`dh(ys*&i-4@JWpCHSooZUt{2Ee~{}LSM5^26S!NW zCx6c3xc87oKaSf(hZha{TX}rFso|vmTGrUqx>8cuwE%Jg3u_*IO5 zui?aJJkO7*dB`Axli0LC%^5@ zeC{`J+K-yjvj#qb*OQ$Femdj6{<0qNr}3`#%kHV+BzGp$4>EA|p4nsr@8n5rfq|dH zeCiBby-&79!$}{tPxqx7PWqh3e6BO_%NhTThU;b?322L2h-*BSWvBnYX^z~5o~A`PeZ77J=T=QQxA8ULw) ztLHd(YB=ftKJ$OVz>hKhF9V;e7B2&(AR;3^>OH_Q1|DbnGYwqs!;f)f;IxlAr7H}4 zFXO*9@Lw_hn1+*m)V}k7*KpEPz31vbfuzXmKEi1qa!Pp`PJE`a9ZuA6qEBHzoTA}0 zb>GK$g@zM-KgOFGr!ZK8&-)zD*K71-vfX^2VwXWbjpOIl8cx3OJjauL2L30;Z!-A* zh56sE(bJf?86QdyX*ls$&wU>;@K2flpAEbRujijJ@HEC>V4TcL?fpCJ^O=Ev&iJ<) zAJX%Fd?;lMl1DNN>3IV4?`hz9jQ3$&$^C};7aI8Q8K14;)W7QY63aE5^#3Q*|Iok> zG2Wr!#HW(|YOjV9pWb|*;tmZbdiA@i2Q{4NLrnjofe&Z=EdxK9@sAC>jPW$S5l8Bg zT=jn@@-&>}&S&}}16TL0=4d$aQSZB-rQyUU%6!@k{8Gj*(Qx9U?$=$X;l$?}roY?3 z?`Hfj8cuvR@_2kz!->y>O#iuoKf-uQ2t-I^A3YBD3K5!k?y267355jgJr7+)LXh%9 z;^5(b;5abZz!m*W16S|8Ei-V%r^dh)eT#uFYHgv}tc|-{yE{6L)*8hIWnxwq6>Hd25;3YR zQ=@l5BHCjiC6gXdTj4)tk!c~-?|0AlJDvSH^H&G%oO3?+_qyl4&b{~CJHpvN+zjsR zc9ZZ z@X5ko2A>JekL@_G zT_}7FkD=$9di_ zeA&?fbXMVS2e zN2~D75%*R24C*_Ccl*LvIw*Vq)_V5FLGSXgowLI+UNT^w8Qa54~RVZlU4W&5%(hfz7cWv%key4 zN8F1Un>-zicq~5%`vK#m9bWG`chx$ZJdGB4j)&oUjoB-bgpndYwupg82IW?cplT)7GF>~(i z%=e+@MRsD|9&ulfw6i?oEmFIg9_Yih(tnH}#7dYV^-7pm~PBku9g{u<%6=>KdIeiiup5s%~P zuEM{MxclXG#31xr*$(WVUnrdYWb6j%eSnL-0gw<@`8-0NL4oU?9OldN9oVp9d5@FF zr7@8m=iDEz5YFTIb;8+yUMQUX+lPg7c{d8@eYQ7+^S;@Ri2MHafd^~pyO5RlBl3e0 zhiFRp{)e{PnUMG0?{b^YLVcug_W#ZmUWa;C_U`er$*EiIBff_%+}wh0g}(cFT6Y3H&jUZw6l@d=dE5!ufn>o$%$5-yr;9@Rx-1 zdpEBMUkCZE!e0b`TlgmM4}`x5zD@Wi;5&uy2JaUB4ft;1{LbTE;lD!uTjBivV~_A- zuyg+m?&?4((S8@N@0xM`p*+ubHx3SloX6+!Ou(t_*#0=-t5KgSob574cn6kuq3~{S zUJtrYpLjo$`!PB1ukIH+?9U8@J<78`Tq~UY-Z{eAZubi3b#9k%UbpTM&g)RFB*w%3 z;S2|s$a!6`S~%ZBVZVm*?8gr5+uIKNll+bg<=JmsCGxz_xl1^=liwpAZzoB1aeHei z*I;?681g2TiusmYwv@l4lw@zom2ye8Ve#T5TP%3R#m8ptFE`_={oiI;#{_c4(vpQh zK@64DfJvHiwxuvX*Fv6eSkgGJxottgJf`JbLqjpYwAXA?XlY(t@<=>B$Q5&KjrrcJ z*w%QYVEPxUP_jj!pY$JU)B5~EYiqvE7P+lZ%4ersJNtZFkomWv-q^Mz>;I;jFP7R7 zK)z|-f?}>UAJ*Uh{mqyG-vrseqP;p4w&QsY`Ct~1`(tnKLe-(ptoD&m>R%Ibe@x_l zaQVSuT8Z}`oMUsbQb_%WveY}r?ox*5S;=jxeg^upy2_$yA=A5>jJ3MkWdDP+sedxA zOUW5OKW1alXu|cOx4#z| zKf+7AAL6m#@L{EpHsHDE0s`dJCvLDpCI6kT28lyhQ1|bbdeo=?k}(%KV*R;-r8+iL zs3sZY%nDYhoUu^m@?f^v<#+ z_wUyp>c7*N+BB5hG1-4@e1RK}lFGhl^OU*x#nXb)bYAd;>JhT*jaQ04`7J2$`yL*@ zZ+ja5`^GByUw*yKuvC}+{`aG@Z`rI${#X1Jbf!Yp{rjOv{rh=dZMw=f_#Y%QrJ8(Z zvX%UI!~b|Fxc?JvQvdsmsZB%4=k@+;%P+?M^f@ek|kV_0U&N zJ@Ru5_;F3bOg2D2LqX(hKjKO7uln1eKOXH*dDXwn^ee5uT5J`yFzoB^G@Gc;&)*{wFIz8_Qd*l8%K^#hxw!xF#yi_;LRRMMY;3sqhRQb+aw1%YR^ Avj6}9 diff --git a/tests/binaries/coreutils/nohup.o b/tests/binaries/coreutils/nohup.o deleted file mode 100644 index e02988193567824eecbda4cf7ed0747830346f5d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 38832 zcmcJ234ByVw*I|+@9pj+kN{x`vNcKog(M^_A_5XfFkm2n0mHbooum^oW}99>+&~s3 zA`ZAcoKbNd9iNUm>bNWJj^ilq+c@gD;y8<-)GyF4z@MhN~bhxS(CP><8vrF#~NvkuzF@;;<1*3QJV;@Tv4;F zFUBgDSJu~VE5_*ZV{0}(zP`C;t6MxCk~KY5V@|Ev=3!P%PwkjVH9hZhAxzE@@g+4+ zRgF2B1R=6Ym2k(T3RjH@ig-T}FB0*Ph>yqGr{kptFAX(YNSJ<@U>}6o1cqwLSl%=zE@I(nUvn$ZcWM))rL1 z%L)=h`F^hO$(pTT<>s0R%H{=|U&pF9ezv|Ac|RrIoCFw}O#h zRo0U&miK%E4Gz|BEk;E)?@yGbx>6ZwEBP)|@(^`m&!cSRp1)9j`F@sH^`YJVVDtxb z_tLuBo{yk`s-#lj|Fe*(S})bHn;LESWWm?__wNnv-@m`JYgMw_3bl2v?rMr8+PXR| z>v$^>jVC13)D?>+6K(BrYf-X2(N@wFX>XVL@l}zEiYf7AhlQ~ainb-%qH#)2oyHlH zr)!a^0jEFOjwcb?r3LoTW4zsQr*c!DA5%vj$5&4b6YIhl)#L5qB$CiVFtvoOj$A> zD{F_Ax0iwDv8akittEBGE@-G-8J<_SY+3cZdTU`@M`%%WZ8QcfR!3VrPStcrW0B5g ztE@S?x~vmawAxxbyHEsd0}5C*b&IO4mPlKBv>EG+B|D*A9UV{x6-#Gyf#Qg)N+i1D zGs?==tXWgq+Lffp?z&=bz5Wx=-<*68aF;w=b@lpaeN$< z!B8Jt8yW|FS5kuAHZIfxL>=HFR4mp(+LVIq@_3{*Is=M^=G84)RJph+bbRHqqfaa? zEzJ#ux?(dzm{qr=enH)0VqOLYV#$f2lr2|9I$M+7p*R4M_IPP-t`(x7YFF`4sJSiP z-5vphtZIvsH-UMYL(x;)5^4F>(O4WjoQklIXb2n3nu~&}xmNCi7H}Bgi^Q5$*M^{y zNGK7Fb+my}6GPg`LT!mqORTE{I6}$JSTxd1wrv3yD9vEu>J1v@!oq*YrQCa5sI4W` z-36Wpoi#Cc+!%DOGLhYtSQU+}X^R^bfxkoV81+bXX)tixlvbs=^)NsptD{1Z`3q{R zCx(*oD0RH<&eXq(b7<8NqaN`n#7_lQ5wwY z3dhAWr-@v2&E{wVoE$o=5!we10`2O?nJ$jK1$E+J0>841;Y)syWl~Y?O}QuycaqnZ z?RBF#o6XBA@3=73|5D0wN?~e2kV1c)r_hwuwEppd)GtO zeU(sAZO^w<39JPNQdVWpll<7PE(g|q1zU=twykH38CVN4MKwK%F(DGH*$T0TfkIgj z6p(AU1+co|C2m30U%5Hu`^xv%_Iz2BT4~e(ZxOMrKVwYLD%d<8>Z+vXNxQ;&bP26d zNY(1{50nB;WZ0T*!yl{JdL$T~P`W&X2CC}Wzjge^Z+w*n7e5X?b{6Gq{K8kTX&_{S z#iv*Gyn8&a04u|fsr>0V1)DDin~@TgR4ZkGUBPCsG!_Qm^cz6-Zi7qpCg_@Zu!f+u z;6r{e3lVVlDjp~aR${YAW7TAuC~Y5Z$3IB}=>07(fDRjHjQOm+pN9l@ zd^H&P*Rc3OWvRpEBCe|7SKtCjv=H(ubN&K6*eLLwm%iD*zdH0})t1DVV8Nz|&=l!9 zq`-aXH4iDT*^dsRTi5gC-lw5B3GtA@my6I=3tdLR^a@b0DGC(jFM`*pCV`ih0Fw4c zc!%KiS=E^FBvT6u`SIYD(5Y&7bM zfqPE{6?<8#LWQdFJ)g=#do2)0Qh1Gfin^nGH+4vcrS`r6QaG?vgEO-RO%4ONsJ3Ts zMr%HV#W21)g>-p-&#Ucm$81#{LXEBM0rPzaQO(vVW775OB2ZxO9S3xZ>W=;8`_kQ^ zXV=IO%knHc2)u2^cD&b^j;V?4Q@HX0H$(Wx*ZbCQ3N?Y1=~37TRA?OKE}9S zTW7*5ZbT?Z5K;Lr9gK6oitii%?*bgZjN*Z70T_507E*Kr5f}>}>-9i+a45_$XnkvP z0Etz6S`Nww2|t|T{U|=2;zblcg5n{H&!G5tiXTbwNfe(+@#z$wMe#WlpF{B)idRy6 z3B~79yn*6XgDXI_lPNxb;NcKoMe!Qavzy`zD4wAB!o0IV=Tj-ZXuu+fuc!Fpf_jK= zpm<$yCh%;e_|k$}h;O0z%Dy-?Zm0P1LskI3lj0`~JsILxQT#;G;YNy|lv4%rw^2Nt zdl$9&u)r02BT2+an%>Wz|dPkY8-s5z=Zt4bT5JY0K!ACM^Kw0^a%j*L8fGu zreeoKj0BTfu+R$J1k$4r2w*>sS_hYY$dI!=KONseadw%Uexx0FOK$amBnm4hBq*<@ z-*ZU!5?sdr9xhHJ@*Nt$cmTbE`1@4!L7d`!?SZI42%XSgVUKkzi`@1Mx}Hhbv*@}` z704ejs7)6x2vK1)p%rkEVnE1$k)}{Y%58l_;n3Bkt4CKqT?2Ft(lv*!@CJc&&RFMX znr@vn0qb#x^}!o9;7Q1GPOjPeTk#raXymm3r1Bu z7_$Ob!iBi<8iqUy^d*>&6*`!*sBF$~hssuA9`=@k`?c5vAFqorJVDj8M#HLOh^hZ( zm3MJQUcNOEIIY1Ge0^`gj4Di#{D5^fb>(9S&(_UU3Ktep*87-6hM~&`DfI@PVfRO; z`HBRPlG-_Fu!qeX1=EshXUeF~tyq>;j3bKsP5=QKB&0~cLzM}R*2S!Yka5W9zRem* zv*oMIqS5|KQkkfiP?IX9Ty)}mnDMY~)pbKh`l-&rKTyWHA4%T9d^qV2Zp6Gz&=f^`8pQIgQmDZi-0kaozb>iTpL2&Y%WDXuD3xR* zOePKgiCJXgROeb{NaxhrsJIT#gRwB!mrsWYVi-ni^Q3@+ipZ%j7XlSoOrD_thUyN4 zmISbeb)e|d1EFOHLdPBm)o0L8YU*gVoELKsQ0(OlF{<*F3}`s2GXNZk^3Lgto}>do z=N6JrF-Fjq44V+tlYc8%UI&8C%Ydk!TfuE8Z%2W&DnSp3ibd7%_fRfIkM zG^|@}d$~QyO2IfL|EOWxuJ^45iDkYst+WVED?wn#l2cG*oybJma?YFtnK>}es9@Vm z?Wt)Ntmrr)={gFZM$?fPTrd-8|{wGon)nI!`T@dQVvydl~5N}xlC2rUp5O=u&ix`Zr=Z0&9@ zyAFz_l*Fg64OyTh4f}du9O6sUd|(opSScrtNl>^*6*l2AhRf4cq4a!)E7CT@1yf3$ z0g&j@MZp}lDE~S1>A94LN~Q@ih7zu&ZdU}#ZEaCih9s)RW#+fE6`a+ z9be}wz-+?T`-c8P*_;Hs~j1*hT^EMBy5yI?uxiFIBt zi;J_qPenLdZ}<*DSi`7*f~hV>_4a&+dVl{O>Wu)4{aZWWd^nW^@qIGwIjBvx!WM4h zsbDX#d_`v!f#x;#nfAIu8=TqktOam$`&v%^jM0H3^Nz?{P&gfy=iU@T9EJFX+&vd6 z_Kyc}IOGNjth~`dEE!Z>FmH{q^73ZqIj|1OEwzst3VeB3c-+thg)@g@U3s2WUdT*+ zQX-xd>04u=W-x7lnpVMJ)PY#As(z#rCyyFB6ZR7OkFd)Nm)ZBs&09XCVYIU{@3=gy zX@FARJ`%{WWTBTqG;l06deD@#K7$KE0vU(c_5!j@(P$7VgSHMWwPb5h=%AGL)Iim| zVN}WJOp6WAvzHG+l}3mnqir-wXtXnh>@qT=5%x;&xX}(48Fe_R8FKB}qXT)P-35ip z7MM3$b(nqR=zqAn%MR{u7v~q|IirS+T0W$|-48nK5a=gp!Wixw82rUkiF9nC?d0d> zr3uHSZ4Gh6jfjLE|QRXD*+@SUfcBk@`2~n~kPdh?ICJ|I1nI%irpV~GZF`0Lw*9j__gZ`TF8617 z&*#}Iv<%%viDG!;FW%?a$GZER`&}qezstSfeJ}{XgTZ}41?&p~#j%!NO=oarBn0tp zpRatEyW97n&tBqw=zG|)Pjc^ef9fH+&-=oU_b>ck`yuyh|8oJzeJ=2E08$?Zwgn-z zEqHGbW&S64TMpje$@wA&;4gAE=Yr7Y+}*j5+MW9Zrk==s8B^Ef{U#4Y(^GMVZv2-N z#9ZqM$5*k-eZslkwZlp+NdDBj-UGJly?q{_`@Ho*6j~nyeU>PFAbD@_l_2DjT9CXg z=bao#zLNu0SM17Op&RU0+a$YO_iuKP_e^$yWwyEL)OGI1{&ec9z~2Mu)VAOY!F1}+ z!Jp)$QleVX1Hp8a!8?4x)w=%Q`~KidXZ^wVu0Nf3S>WuPRElW@aKOK7p2k z*e8K&gIN69;Qc`mzdyJ+$AK+T@>EL}!4pk0p$3gAScoKdzusKJhEeHO~ zAi2hNVS{oP6#T2FVpxP?;QX*}AZtY7^|ltqm=cDVwoPUM7h33^3x>IFoqM}`2PW@u zUjYL^`i8)#L5y%o(J(62Kvvr0y9iw2MkORf1_0BaeP6+hVK%4_ZA-e#uYkD?s8h?< z(W*_VHo;T?Oa(>I1x2H=1EAwmMRHXUiAYcdIS z=eL(i-Td$ZgW*82`u{a<+sbJL*G5~Y?QXPRvF#JxH+{D{5`M$E*cEAVIKlC(5607* zzRP+UPlKREui2m3&=)rRCko9HgzhHa!#)S?NISYvMmk9`Dv>ppN{EYR!?%F2 zN(|0>mhCx(o>%A%@Y|l<>US=1uk_~mCwX?vn-?7D4R!K@+r4>Ca;E3_om}5xcHuy8 zxD6ss-1a=blkcmup>Th%?=jwR{{rt|e}gxC0|+nj3V`I28CcEba2o-I9sh@(AMS%2yu#oB%;~eCkXc?m9m?Cz zP43N#<>eGhDYM)REV=&RLY4pG>A?oB=2ghBonN>ukdy1Yc=|$4BNL|KC4=%&KTIc> za3>M|pPEqM#1?u1zcVla4NG_d)XD$c_h=JTUEuuKg~~yt&r>Qv8xiq4FQ0y2gX@4f zW$!+?&L%4!19*SWg-%`J<*xSpap;g^yj`36ENHI zxqkmfuZZs8#(2L{B}-Kb)TPWi_y!URBd61MI}~?1z=BR;!W+KDEBpca%xU+Lrl<%2 z!-FFMJjN^Z7dAlTD2OpKhFZIstH=>?AT zuLV6EziLIm*|qLwtoK{11(=}P`yjQ*tMFgrIn(_=@CE^v3)b)-bBi|^;sGb8!5ieP z+2B=_0(#3qs#Jq#U+k4ZGi+!3x?sqgfKjx@4m1l|sHoMOaGWkLufo~z#@5m=XWrdj`Z6r<6c1nq+2n8ky$7O>R;#$rTZ?p5A=qe z9lRMbH&f=&t*DAK8e9oP0{-A;Zje*;G?_o(EPEA9UfSZJ=@)v?!;b%S&vV|i8oXit zr# zP3>K9I>ZVus0-uKns9d_X3?>wX!u9TERo$?lK3u)Hu6l7j zu*8}=x~)vPc-v`Fs3;yygyDcxYb??c?u>Lm`S>b06VjM$v8YPWs5_Ea1*h5IOp93+ zC1v_#@-JDXO;x;nd(@seccnzqj7k^~+yf#X{(aQ>v}loDuq z0?vkY#Y(_PsItyzYLCQM>1;eWRnpSbBGOi}BN9Kw>W;vnoiH3&1M91UL}5N)6Nb}$ zYq7m>z%88U>I%czx3%F&tQC&sb+?CGnmQBhR!c03J=WD6ZCVYd_!4+#OPCHV#>RtQ zjakjf?h1>0%Yu_Zk?sR}KimOiX#X}ip%pox$M7^(XII*d;4F@+k2(jtCT@k-v;jqP zBoQGw>|qoOHzi}BYJ0My(`s&NjV3_bgw@oGPw4hUPlaZ6qX&_5gJ+&%wKs)3qH#PN z2PY)qbW}4K4i6@VTc8H;eeg%+yY&keRaez5uUDygm5bqkRd~VT6?Ml{b3rHtO;L`? z#)!19iL8wqDp5~`S4Y~DQEfbSb?{&Cv{RxnE7M7_TVl~TI=9u59+}vad;pTnj6R=$ z(b%C(n8DEq&V~kR?&`qdh~sum4ElryZc{Rz=;|=kq;Ur)=fr4f>kO~zf-$*59o{1r zG@2T5IG&^6P(1MAfEOB3AIu7?bC~+{l$s#u;Aa@-jZ>^Jb#{fNS^{QQvxyq@*eSrr z^N;r83JZEY+PT_7HwAw1FgO7i#-m-ySkxj_Tbf~hLZ7$z0#j3Sst@N?*H%{vV~}5g zX;33@TC@_LsLIxWqz>4fkG!W2tU8<#NzTcxH}Tr3ON;BLL?F zb*?wOxUOdTlJNY>1+~kURbyv2McPgKg~L=8_6nV6#r|(;nKp%ch@L-c&WHXYf24j4 zw{*aR3l5V)@5!Ub=uALp!2!Qkd`@&nnx|UOrEsFM8JeRq!H-wN+3VDR;qKwt3>~8p ztd;E64;z|Rq2D5Kn3!fQAZP-o=8@ap7FX^h=CZE#X5B+Aa6~zt_9|nDQrn^(;Ny|b zrndI>NNg>5drOy9b}ZO!Ss6?Xa1=bAK9+37V@-S>wdp&B)S>IP&ZhQcbF>VeZ{cZE zO5hN9^3)P|hLknJQBgjZ-PTyv+SGKQNO^e~7ylkyWr?-jFwfFS@9$SCzBX=^mbJGv zTIzUhlLbg3+EEHCfJAd!R|Q0L4n4vUfSl%N3q+_o0%FOg1Px_K;c!q=ZCz4`4mAS+ zlL|aDVJyJ`*Hspul7$!!8XS%g#b+L_P9O?Te5em1R6X4FG>8yB-9QZ77ELyGei!%_Ha&b4#%C)MVUpO+t+n_mR7bMu4M@JB)7J(YRri&OLS`y2Ge19MStmo@ zPR^%|G|2z44>&HsdbYW9^T(g>)#Oh)$3HKB`o_S~`Q5&z{8Q`l*V_y8x7c<0+wEof z-A)XupI((esWN{&luBt(i5g@NxNGEEpYQKY!ckjH8Cme2|~)T zwAW;2ITn1`!U&a=_NXK98bwIX zvx*J*7RJjA{1nEk4ZNH2Is;EKeujacPHEac%*Z*LBgBE8}|%{4U1D&>-Y~#^F2M8Q~Ge8w~s@ z#&;U{ZyDd6+Fw<4FVW4jzE#Q8^$o@c8$9nYKGwiLWPCT>)0aO|)NifV6DVhWPIu3G zCM`;_e=`1_fqz43zjd3zcRRTkjh6j%Hk) zGfXQxj(JX_dm6`6)%aAIY~VOE^h=ASVkp-eJ|hcWl?7j#1wTFu{$3WmDGMIUf^P(T z066n@_BZ{7-)pkS_hiBKvo&QHj(nO${$8p#{ZygnA(Xi?i~Oxw@H?{L_yYvJ^~)1k z@VBzypJc)Rk_Csqa`js85U_7=`i#tia2C8J3*M0h zKPwBqF$=ye3qC0eeo+=Ywc5`1qT0)QN-4aS#uKn+?k=5VmDbKX0xuMsjInZxmX~9E z3SOq-Wg1=%$IEoQlvmJI6(Ff{5-TSWl}Qpxno5^bMHNI}LG%?QSV1fm#8N>llPPyH zJGYHa)Peo6S~+Pb-wwc)z?^N+2r57$@Dt*s8Lmkqts!h3&ur{~}8 zE8;5)?5prLvD%AFZ@uVOA|S^tVS3q7dyVFP3T`&RWKc!9t}5XXQx&KFw#NCY7u4#x*l_(B9BAdX*H*Yf)7 zZHVIAB|s*AOytWdz2|$ue%U068H-c$AIs2 zGvK3n)cQs7z!x4<_&*?y0p+pnTK;PUAs|1V=GJ%+=4lLw4}*`!)%rs5%oMm z0j%Yx3ZCHt$LBu=)Mqw)wEPkwKSJQkg}l`NhXR-SBm@tBOF;9VF7QzTKS$spfnO;2 zWxda4!Cw+Q(w^@KT-x(9!6WtmLg3P#eXv6y;7!`IKjWr7hYNY>|Az?tDB#leDHr%? zflm|s(hijZpCja#2_D&xD}}t|=@#-*PdZ`(yx1;jpEHDfMn4MvN}4}ENIf4C@>N29kC4ZAMs3g61di{%8h=;t93t=!g}kiyD}hTp*u0*{Y}tDOvK1ayo?}K14`KJiH81i+yju1SOze?b9g#0mrN9w;);A4gSNrFf6w+USG zcMG0*g6AxOj}!Pt!6W%E5xBJfwSouVowXfq6!MbiRv|C_{2?JP`JWQ=fW+|`hXMOV zK3@(dRE?J!h--ZgWgO+@d^lOi%XtQ$DHu>5%W9sv2tq*rSpXl6>*pro7}q#{Ul9ZH z90nha>*p!Tze8b1#~2*@!3J{rFSK?sQB z9*)MZKoA1rbK#@$>kx#1_%Qfr{AL6pATImy4nmbaOCYZ0A7mWm(Iy&yhH=z?nZRGm zf~$Q9#V_TH*iVpuqTo4L_|LHdpC#~mfghcPr$xw1o}|E+3!Y7ar$pcv2)tC_mkAy@ zUTzXN`i!>QodQ2j;QG0YcBm3K{=gjuv~vS|G|$HZUn%fEGj8_RH$wggLf(gh5Rm_P z_-KCp{6+i(fzQk$zg*z5e=ijHiGoKy*UAKbJImv3lE5DjJkrk32wd7(KEI^?p9}eu z1pgp0zm*I8AThs5e>+ylOTTRp^3vb*e2(@E3;r{OytMx&!CxWdFBbB0{<%ruCky%K z1TOXeM&PnvhN6NH&`guzqy1ql<9L(ypCWK+|M>!!<7*k?$UjB!pCIHVe}}*&|5<`( zs^B?K$V(plH4O}SlXkvd;FA9##!=5{@X>a_-$TKGH_87SflK~31upr&5V-V*0Ups4 zzqDJ3an$E<_-K8`3wfyzoS343)yR75v+#t4ysY;}0+;-o1TOh66u9L11>>myboglf z?-KHo|1p6}{@)0EuHXqm978UAaww)QeL0Re#{a_U0RqS4WBAUAVX(Rp58^uDI}rxt z$%D_An1Fz5JPe4#@13LqKD#mKdVi#n^zJWly?&a*`C5J*k562yV9@wU+Ji1IHiC!BA@8 z3D!sNKWP4^S?&ZwzMk84o`GM={Mzp{&zG#{b%uN%r~li)%UNFUGiaV6T(90w(D)wJ zEbB3Y=Mly~HSpJ1&wU0yg7JK|hvx6YX}u4i@!zw&UZ-hXr$Yvho;SxC_zT=$lMTF; z(?=P26Sr%rfiL0q9B1HHvHXb!K9}v>WZ>#|Na1(q4P5V2bQ$JC z>kG}_!}?rr$h&N}2MqjYEdP>$dwM=M@IBn$>Nk7S_SApp7|iX~`sg3`oMzzbxZb4( zj_;5d+70|I)_;qEzt8&p+`xa&_yY#s$?baGz<o=Rus%?XBeW z7=dHnK$3=EvM_MHmMsxDt))4AxWJKTKJy%D;Cer9j=+&;F57vbz>#Mc^DH*-GZ{Zt z;K=iLw$F(IN1j>ipAiEuX1qn<$g_a;=@vNh{DS2Z27VReYXy!x4a~Dq;K(zY^*qviugfg{fz_M4vz9C@x}o?8t3V#a?daOAm#+x39J zkq3Xl8^dk`ha^sWdAz(YaI9DVo#0~w&*OREGl3&d3FG?& zjy#7l{*{3jGrnKo_}+IFd@uz0g%dfDe-PVefWR^Dc;*>w;CekVOyJ0K1Gl$W;K=hD z^Bij6&of>saOBbBaJs;eXE^IQ)4&HaUMXbMg#9=yj9?6f4$D^7C7?j{yk0L$gh4q-?Gj!a5(f$VWYs2NAK@!6FBm`#PT}~ z{CUPN6*%hoF|osZCUE2*p~s`Zk^fK3bBlrRW&D?nr#vfgjLzWp?lExqQ6>s+7+eZ48~9ozgs{=TuVDNNfuoA+**-rLINJXiB!TdV zz{&p1^S*)K!}vD_egg9s^1=zlkY_BCLkJl-?%`sXA#l`3?@Lw*9C_xWFodwcQT|&( z;XP5{D8HETvke^o_JiS4fg_Lpp7B)zM;^UDc#nbW_1F^zem9as_(sG2jjSd`upg23LN?MI^hum*ZWuR82G(N2H{JA zW0m^*>%o4MofV zYT%8GcN+ZqymiGu&H`q z=spAgC)?pM!Gn5s!w18Q0!KaXWd2tT{5HnlVqDkzE%Wa;@C(^LgZ-%*TFYR)>s8Vk zB5_*R;7>CiVqDjI8S~FJ@cS7*TJT`K+qvEq0>^qkVE!K%_`8gU4gN=&KPhk? zLR71kFuS|8MvM|rWyEM>?d;#T=Ud3 zuJz>U&N@}dqfYw3-x&t}1-EyzfmgAfJqA99@e2(+%=o1Semvv5416u)*BW?|@!J{K z?NaC3;2)6{@;HC;a@YE`z_Go0U--8Mel_#IXz&lkiXeO@a2#J35ena@5IDN#Us-;@ zASHlFDL+o&DBsHRlNd)GQU9^qcRX~5IE}dFRu5$4g4RB-)8XthWVc|aQ*kxR}B0WsulKW3|xP2Aix{8NQ-tp zgXISc9Gj~5pDPS}HtTb=z>()_=2;sfxCz)}8EmcLBkIJCN1{zieL z{2rFS%fP>8`~?FagoPk{Byg$!KLn1VGg!W02oTxH-`HwN9GT3+LL-VuYwUsXx# zU~Y%T-)1~%;2$!+%fP>2T(4&}PaEU<@9Y}ae}C-9^S8!_G4EknaJ|o=<@NcQ*A01% ze<*OY!EV;)>nwO5HWczpdHuZrvtIrFXX2*|9_%lD{`GbP$A1JA!^;N#Q^x;n;5qC+ zLB8vH_5S3@EV%wYo|f0^v_*!z#`WJ(Q65#;4Id1r2zl%({l0dAf$R6I>$2ebdw0l> zJoPFBte4jDKR_E7^&@5;(S32aoH)o3z`(EP(SrZZ#EidaQxZ=Ja6(K9|#_ z1|H>fg@Iqd>1hUjH>dUA!?iw-Gp_5`_(zP_7(AbGdXa(uozu$<{2NXmXW)Lem;PRZ zt~a0Yh#^0O@fHIQF@B1H>+z`97n*+>%O?$a{rCFQ47{4<*BQ9pC){Mr%ar*7#bM-)ZpZ^C4Fl_%@cm#=!OWBX2P9t62VK1J~a-xZS|-V)3IX!>xY*Od_VKNVcuIGb9%*chMOSBJ!w=2j z54K??ST)PVBAxgvkrIn_wjL-5zn>PhxDaTkqX@$Rcu3=~g+}4W`${|E2NO%-SGVBD zKH%x<7S#7)0>V zFh>J?Z&<1#>K~m~XW+0N{R}Q*IeZQvZd7CGbtsFaZYV3mL`Wd#e_FmA$|9$JjzE-x zuK#?aLY>t2IUwCz`JJBPso>|PN~PPc%hz*x)Bbz-@9g^T2fDmz|2oL%&Hg7hs1glq zaO@`>U#9(A0n@su66(5(|Lzgx_cWbn$~HnqZ}s1EvMNzCM%}S~Y?4`j959m;OSt3k z3jesN(XpoNIUr+VSnl4#@Ctud&6rdUlsy|{deh(9OvSAwmunS^wj`Z~|nFnv7S=(%;WhsRQeO7&3aRf6sZUgnqBZ`Uk+rtbY$+sNy8}$gq*^e{F}ipipn+XU$b?{d|%&t-mh+$1LR+RjG0~KgpoW={v3)bzI7=iwAOR^5Ec?a+fPHop*(V$<*(xMdS64!o8@s`>O$rmEx`91d7*bQr?LNr!bg|a z^M7x3W09TJc!j?Q@jN&j;zz*8ERWg76afhQeSR_BEPdWWr4F=Tf5_;qeDKGrg#Nxv Hw(|cEhYRBj diff --git a/tests/binaries/coreutils/sort.o b/tests/binaries/coreutils/sort.o deleted file mode 100644 index 507607cb6b3f92242a202ce244bec2a12f67b555..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 342016 zcmeFa3w)H-oj?2x1Q;;z1VxNjMi?X!0*RnxxF(RmGctk5-6Cqp1yVzT$qWG%iOxiL zb~=@9?Pa^|w%hG?yIc3|cI#4W6~n~@ZEF#$qEx~A3?o9Z0!lUi@Ar4kGnYtf-+kZr z^ZwuWv-x~7^PKaX^ESL>RzPse0b>_5XAIL0ijw&e`F? z(LsLuV{@0=ifwS&&x8}j;g1HJ+r9(v(V1+cvZRak%1aNF|AL5Cn1Ma!u4%lMF8(IcMY+^dr~DfzMb4>jxvB=FX{uzUUO81pq2a{^TY4uSC~6T)mhP;u>}BR z*%e-QNmof%dB?dT^wDzlSoRFBWxpHG>+S6=x8>E@;(M<|4X+gw6wRH6xhtoiz30p; zQmtZ-6_gV>qdER)ZjQNg zc;sMk0s0=WpG{uY-fZr?3B=!x|85uF%rbY)iof$oZ!aLDp&9++FEg?0<8r$@{wyBL zOS{{i4%mk+->a?PE$K>*0-Q7lRdpT@=J@T9;otpc&fI9l74B85%Wo-PU4E;gvp;r+ zE4eRS-g?w9dX3&*5PHn~V)JX@q4Z18qom6UZ}k|#L3=?0j1y7?M(C8ebAEB8D^%FA zwZsU$72k=GK=QJVtv48<7dp0<8lm5!$mH-zm#$X=R$={y@YZ5L>mIm<{k38u6_#(l zC%8pGgZ=on0qp4N*gAzpjkPLqy(HE#p$EwFt?&eIVxufprHWlAiDs3UEQ!S`F;x<+ zDp4wlOMNEkxTK4;^ExRYdjFi0n zpDi!?GJ1m*oh@*7lrNQb{Pv$x4NGGI`}LC3PxeDomc6H>OY%rx=$}$cY04}WQ~*Kf z>9uU7&J~ha0xz+m!p&Ca;ou0Aw_l@_h&<;V-2uzFI4Zx!ql$7h*!-+Mbi z`3wR_yxTbxQKb$#yMpfxSD*R|H}+0UU-Q zpom(&3?{*f3EwU$Ih+~_kQ(spBjxt1@gJhK^6fdJ{4h!8&qu7Z4>atK4}&%YaO7WA z(iMKg9U5XEiQj{g$k(c&!alJ*=Tbpvd&QMt#=S1HHB(QOCd4eWf z^g`^3p+-MPkb3-JA!2RCHn|+msI;5iej5gUHwSBG6>#&%roeoBTyi)iZ|1IP@pWft zea@Dj&e`M&<(fMyW*Wdskbxn$d@qJx_J^Nxb?01a_`}_K{_rP5&Ca{o<&}@+q0v>l zXbV@PPtD+FOVdw`Q2A{#NGlzqRDN3@d(&W^=(2j|mjM7I^Q<|1ex5me5OQejdy(|u zznDfvc}(R?1ImW@?cY5%1eKOq_9sg$`vZ)NCxgK%y!nveSiqZS#e!ZXJmIrB?W43Q zv8iwGw_FFbzNNJ0S$2PZyXidSr=15cMAyR}(BJCmPsEZhY5iB#`BrE!tn#lF`N6d8 zNx=TUCZ=hAE?;Wdr=ZP51z4S@gOhgkM*}5FSvW(j#9gE`TC97hMLt_UXe{?6f1&YL z5(oht2}iNBYx5vYUS(=TKf<*X75*f7PXKgwg+?hcCoR%7Kqt4h|56ShqlPUq-r2S3 zrR47$c8D~YJHeHo%xDdk%xE_|S(Lgq4+=W7iC{n(3lKhF$IDkkJ(WQ}6+t0}iaWNt zjL@~+0^6kv2J92NsNtn;R1rtW@ni7LFx>EODoc(_0lNn{{Td@BDZl+x@=3_EBr2kw z_?z(eEYRhmXj%SPGT$cQqbPY~v%4&Z=vGwRaotO+^I#A%^_&%5 z43l^;^hdb8WtQ!-ddkX(m|~YSuZvz=wu>r--TKqA^U1U#0Xn(LPmA#s&=VyTu-{j& z(!H*6oO8?_*j~VXLx6)%R8hz}#XLvN5sHA1NAV1#I#`m~VJ&aq7LsEv)SN)bERsB| zn@e_QxP%TxrVC-9sLp9`BY3eDn*&{a#Y?L!B_hJ#kGV-0C2$%^MN(A;ttWdjz(by7 z&Ju_q`zN5gh@5r}$=90_?zCHSz4IABai)C1p zzTRs+ciiuLul1*biTLx&Ffp}1vrRcGAMUW(?pxd0RUFxGQv$pq`}OU!_d? z`Q(E|s7NfkdsRu7WBL`pvi*|NV65USV*z(h8pkX9#NioUNeExje1M7HJ$#QhPvHmS zK)+7UEC&Lk;?>F*1HPH^SlYJqs&4A=1h3_5^5&b7C=d_$>b#y{@a3lu z|H0h$6=d+~QFdwLq*o8UdMG(OWe=GYKQS!4V`$mAUcdb!XJzozl#$2~j)-^VaCD$c zIU^NjVTE^tWk2NoHgK>b-XGwr!W83H47i{?vU??z2B4XA9(*mzQ675lJAGS2ju%p-lO=| z?l{q+e-5+OtHu z%!*Dy;7u7zq$hM9RDQn|MdZzXA7w4yUa+cV&U;>f1IY=POLi`YK7ji@{R*%7jjr$^ zgZT>c@I1VtlU=+h*0dhY-s8>p)5<&*Fz3VtNXk5;Rz9qj8Tl0b3b3T=a(F0U1Z)Zz z(cLVQj+N+?boPD}_WNEn!*M*694tY})A402165?%z}$6+)XbAYO(fYbmM&9&mJbt# z_Tj`YFA$qi=6~))z=q-%GzB?6DLa5EmmUG~gB6|_*tNa{B`F%Xs=$5>c4v^%Rr zgFY)O2SgUj@kK3T^Mueb&x%!jmmH3{7m$z1DM^<4@8^1c~!Bx99LowgOl*X1+8Nx zhZFw*%K^T$>{o!gKQ>_$9VB5uH5{kt%SK0dF$xYV{W;h-1NLW%I?X4hi@!^HZLsiB zO$LZPE^?yUvrmvGNl)GBDQNU#hhp##$t=XoA)bRzN?slI-2$ML)~F1#F{bk(_q_*A@Pd-#qhv8wnCiGxSohr$ZH?v*u;yC+6@a z#?n&iB$0!(^rOoD)Nj9+SgfSMADc1CDtsj|6rcm!K1qB<+T)aQow83Q$LX^r;iW>+tcjbUa(f~ZhSFPyy^Z8gX%5b=E{e#nAv5S}=`_6=N z7)M%$X$)zd4!uN}l!@M$WsmIy`|T>1`4}fWd?WL*!MpInSe<>y zv5d6?O#8vIn8J(Yva~qS`So^}<@OWbrqBG|ggq|Me2=O8>w=EWZSg3+};P5WYLQol92k zy~ZqIZPMLX%DeR|C znZw~AsPzmQ{o4~%bi(BsQDmuJ5#3@yq(GL1EV&#dE9@I$bc1-kqZ`2bzg`6bK7RT#1|UoSr|#r;|Be#z*<%c+s1fh7YNz z>`3|2ayrdtIB&%Wen!_xQK(`k&LnB{Amovp$EZ#-!wHhBDnV=IR%ri0!VU_CVsSX7 z8nlj;^l2jbJ%u0e`oz(-h~edTSLVXW(xDhA-N~HxS73fW35Xybh|rMlbr{amn8xMd zK{q0_f#(1{9eP~y9Q}*fI|IDu(Y_s9sT_VO9o#Y$lOi>R7dA1s|2^~VcXtiOcbxnl zKHD3tp>Oo>$gwLK1&hxDu^ke?!m1I2;m@QPgq_x-Hd|+#oj+p((AxpUR9b!n_i!ne zGoCU#zlI_JUs>{&WcO4W`N&EB7vvs!oM9W$t?u}bKE}A0I^&M!qpU7f?A1o{0pv)c zp)>+6da1~1#{}NJ~{v}V7yceSdbo^7PAs@Ok(bD)&Kn9iddA4Mq6ccs(y2DzU zz8TsD_;daIQ%)cek5@XwE$tr>0Dc?pHWnZ1(I3QJodDT{H2?dfv*_}^4cWWVt~d_= zpes0@s|{Rf2>6o0tNhV>-3$+7nK{=8{x*ILop6eVUcf9}#d)#djTVw8vd}AY=C^8H z-%({cN@>sVo=2hSMX5k^$^plB#Hxx1Gk7cf?pZ}XI=iO>u}wq49FAA1>-p`9D~2jP zSZ-I0f+Hfl?boiLOhS}))L}n_1JX-o^lV`TPsEqLMHAO68d%ya*KRfNsO;?Bv_iwJ zfP03iggutS98My?kLMJv!p72OAAK0QQR_m@w%jS8oPK5Bqu`wrVna{82|j}{ zwfmQMeBugS56Z?88MVe_?5vx%0FRCVob{S+M%K z@lt3Px^%iHP1r@M9JP2nhZOKFxd|@TBQ3@2b8b&$Aqp+te(BlA23JnohRrhEagPU z-+z)Cv9rrED=IgWb_P5SP`TZ>avXplu`vAA!F#PQ5 zvU~tFXD@wz@Rt*|or6IyMNC?%Cikc4shaLQy!me|?BTIrk@d;v;^8-3*5Cs~q6-c{ zSEAL?*5xa(YRM2v02{i7{qmi=-S zgBWiB<$(Pu6olGJW)=P_{wFXaUZM!16hPl%Qz*gMJNA{OysgCZD5&kliwv56V(os{ zjhU5Nx>c;h==;iIih69*N<0=|rHB?2L9Mbp{q0uY{A9LAf0y#Rr>vS^-DR2{vMdUe zPx)hycsuY$)YsGT`M`yEDxue#rIb7^v0Oj`+aqS4I_wzB*xhbo)?e5g8y<>FPOp-1 zH2PzOdsgaaHh}nlAhy;`Z;d()?Ws!9>5fx`!NThQ-Nlj*>-DY^T2}s4$GuC9(A8FS zISj|Vd@H&z&+-imUW)BT!JOpxWxo&hQ+)`hO5w{Fr?3eKo3xV2*Z4jgALTvC^0+&E zZ?&s^q}s(auOK)@afR~FtmwU^@kvx6(Y8{IUz{9ZMeiRi)|F%&gxf|5e_Hkt_~0Fi%D!aiL?%fwK7v+swtDZ79rSmr5yXCvjQDo} zyyXwfmO=Pml!uQMp0e#h?{qxfhRt6xZOL*N@=>0X*!g7)S>q$%t+o&uCMTGMOTD+7 zg|{GD)p^*A{3!=nJ1e|*qLZ@`*nJh>vk=wZ8T4-0Uf~_acN>wc^9IeGP2Np-ja?WO zUXw3ck($B6_jucoSIWE)qgHuz?~&tUPCFi^CAc>g{q~2qKa^ zzJp}BxpUbRs`K0FYYp*Fuk@IaWfB6e@UC<63d~3$@=&<4IDE=ge)aFLYo%g4&?~>X zo4F+wAk7A3dVoDMZZLNSyxjAG43inxnLBUsn%e{3J5^>WGq2x%i+3Y?U8*vD%$&@s zKGM1sx#d^)FtZdjLlxW6W#nD`6tkw5Z3k&oMeNMF#XAkq+N+}L%d9Yofz6O+ToYK@N?5 z+k2GdPz|1jR96asHQ&UW#~9@AiAbrUJ3J_h3qeirwW>dG>1= zvuUVJcIeOTHWS2B?I65;hlwsQ(VUv=3Pyhp5zRi3RS&}^^}o@Xci6Od>JAdTzLx{-Jq z8R_{A^KX~@?=XJ{1aTHne5St>EKzD@W(Ufcoh{(q`_9R8l&Y9yfJ2&IKC=p#q2*84Wmt8Qj2tdu9;xdulj-n+n>g)J2wkwVk2-)KTB`vuU z3(OoCbYO-NEY{0m!ExEuq)zroD!WEcy)6C@&x2Ty+xAG88QBH|Fif2{0zb}Es7+I$ zIkWQ`^bd0t>f{X91=3m!`b|VG9!o&83t>96wi|@U^Wa0l$pcdgZz|3tXZ_(IIV*7x zT%vmu8s8K;1Ft<&Tn@&Rp9GnDoRa9T2Xvcb}hhR956m6NXba zWOnw;OnfMgiJIYVueE1H5 zny4$Rq?f+2w>k0*$PzwVWJZ1lQisou57CCqM$K9j7ABCKnHUTYz$m`%d=0h!46o_Q zeO`YOcD*x;H{H;LQRL#e%OJzF#*e~(w0!&wI*`Mlx0 z{n@`boMaJKVzTNyC=>ZLm_p6=wK)GfiF_64=ZtoQ%<4>G%}5SXnMnN>{PTH8{pvS= z5h?Om;=AaqBkB!~RZ+?$lfXjR^RsH=GS#ga81M<|5hLAsH69ZsP-G7D?aHt@`b3F; zmJI$`MUr?9z=Z2Eb@%sydg5A4vz-_|AmFsyd3iMwJxZ! z&Vi@}vs;?6NigzdlnW@$UIp*3b1=&2bUC*3_A{6p*@04+IF%gqn?L!jvg!M+Gam$e zXU)!+2mzb83r||U-Da4*@VlO6U<_+^Zmy-f%?Lx=JOHxBqT|9a&^uVcGb4+jQ)DOv z$ply9b?aP5tVZLZZBB+-st_zUu-cEY7e+^>{LqfKAW!Wtf`erthKMGC*gHBJMXl0{ zag^10e{|A$LL-doA|N~&b{uxHiu*qzUQ#`!>q8eqaj}Q!a9V4r4KvI1?o#^`+3m~e zBK0_&{`U~Z$yoQpa-3zWr919^9EYIBGQ3Clu`5`>$v+k^oXP)1nAGIUhBVmiF7&WB z`Koj*Q#$lGf9BKxG>_ijXuprWhucUr5=Gg$^WdwnJx^>4;St$gCe?v2_SOrLfvdTz ztT!Al4xb&2-3T_K8Sxv;PT`l`Zw#?~5;NJjisdtdS)<9o2xdvwB18(ByI<%MF@WZ- zn|i~?io+idZXejO*<}O~vd!wr5)>CyINoa8lV$H$ft39cNI8H&${x)e$@^vgC5~D0 zzf$oN9CzyYcx*7g5eGO4sgT z=qCAhx{r!J)E3f^uvhsm?1eC(JM2$n)>(3T8T2uD&C24nQt%qKma9pw4B?Z5P*2C~ zF_LZ$WJPSlCs>25l-}BV^af7ffzVB0Q1bztLNY3RC)?-pJ)(AcG1%<9R*j;iV<&2U z9{$7?ytK+bs#&iBym#WUh{Jo1(a3g5=(auOuYC$bI3N)9_7m=w-uvyicGBqIDVK=- zD5`MwmnaA4df+JDzq7WCC=kxkz{`}dqptaXPwV3K2zJ?0=q!Z*=kql#HPZfe`EpGm z8UXEbU|k}-uOn*&H#sNKFoi0%>^F5K&Zx>Vo~u*td&Wu zIX~mslktq09Y&iU7C%-Z+>(bK7q%|jEX~jcfKM+oY|CuZ@-SfnF4QjYoJxWw{>4MX#-{@ zSW?(TAZVqjr=puOxcU&A4!_rdF$~zp1THt{sqnqBwsdN*(x=!N>yO@< z?~j&a&_9JKKVaPVQ3nc}k-x>K<@b88)gY$5nG+5qTNm z;QXc>2vqbzd*%aN>(u_5E@MW#$P*y1>=B#^8bFRng+X}f#{tT=AIVTe~KWbD(E%$w&Dzbj5FInd(Jj`7#Uw80o@w$A^w4e05o(}k)3BcZ&^Y&z(fAc-F z@l9Q7<10d!edQgSuuEQXeaPhT<}$E0LNX}(bDkBxM0KHK#y}(VPBvsx^s5dKpGY`P-&H{E+%F}}r z@_sMjL9q<-?qGBj`!=Tb(jMYOhFXjFWGPdgw4(n!l7=gKncqI`x1YDd=X%XZ6|&+h z1^nF%WIYwUDxelm5%fKZi3Co|ly}^XkT&+wpX&`?f&`8fW2NIr{3dV{;{$rOge0b_RbqX2>p$-3- zxy8Z7+@t9`-j-X^)v?7;r_STDwkT>n{tdvMG3j2!fT838=6b|a@`9!ohK?D-A<2g% zOy^Esp!u8_ly6@Rx1XrMiGUCMBqo&Dhls#8XGK3nN-N5=6BokS<$WHMcO2owGbonk z2P=G6Ua#5tbC5K#7az3RTyKd_#<(WGyd#w+rCvRh*o^TM^`!a189^*BT*)F<6iZ3m zx?;Z)&m%mn)}x=R%J2|+!wH96mWSF)3MV#b(EfK z0akQU0Q($njNLNR;F+N5IzkYzu{QHDke4;m?Q<2PGW~e~pt|Sw(wog(xI+AFCR@Q| z=TD)cqvD-TkZO1;fdofpHWEjb{m~`Ibh26(Fl0fuU z40USO67j}SgU%#Y56EhzJF0x|!0K4hO3YbSd;I3yXRCZis?51Z_!=iGep6-tzN+xU zs=_}xF@?@XiXAxMYH%qhq&G9o2^QEJ6dY4oY<5;6uVYIo*nc|Ta`w3zzKRvbrY_(J zUlyG*Bfmv0M~^()Hk=1D7CfQls=pE11YBA#OKd_-XZ^_^?r~LN4{W3snb6;}O zEyz**MzHb@bLW8oVMZL7cjE!oXT`s-fEFGwJHLTGvKsb~xct6n+h`1D#qU!EI%c3J zZ?h-)iCL(u`kU&)3J~tojpV0sB*KBzfc4U?$KT%QBrWBAaU-IQM^xcii0VxfADZzXDTMv-9_O zgDsE{KP+YZ4E`E*PJzW`fIzf35M769{{{{rx4+AF@NePtE>h4aqMoei1_)efJdA8i z;8D|n9#(jqQMKYd+%&{0vS0vKRaO22+1R3<*aVSw#?!${I)>tMMmIBcj(S^ zha$@2R1n>Jyv1ZyQ92|RLj>2-s)&Emv1KaYJq##T^dVvY)U@2}+|B;pw~u1vs6XsY zQS&*fUdDa{(NZ(=;-9eU?E7Q;g~>uaE*xs)1TW=KJ6_6zk7?e8`|}z&uzh6W+o(x< zof_{bGEfJejmUX?l~V_{`<29cDK7m&40%zkZX#mv8<274Ljm@pRb*3cuY!>;U|00N-z)@!QWPE&-=F<9Y+e^e-HTQgFp3=)^&MM+nJOHwjldlsGL zX;R!!K|_t*!Rs-J!d?p1albk51?e(npZ*YDn)m+%mCVS8h=NLsi5|Rg^pEdZ^DBEx z4pN`)JZydg{X)0)peQBFK43Uw z$JF||-Vq`GfR4%sFONR~l>=U%s*PD_qVq5|5Uq7%zqh-}ezz*t4EOYeD>T}F=G9BP zbdg}cGl%-P2Z%4~Avzv>Sr>!D0#!3TG_lHu_~kaTkAKk3ZIO zG(`{D4}pkM(i3N_s!~64L(Mfao0$j0h+!dUHh^`er?n(ZN>x*Hy zkuH{4ew3fLqTEI1@Kt%iDs1ENBAHuhMB zJ=U35aCy|ilBYrL_~T#;EBr}+bK7Omd&GRHS2}Qu7jw{fxjB5TLJPGle|8rBH7j>+{^aWWeLZv34z0JnuvlV!+F?jfCG?Qo~I9*u_~fmkqJ1Pae$ zvjNp?h4&;=b>1$1HF*!9@hW0ac@iIWUOqN?`5f?e;j_Yfz#$b3Q5iPQncsy-blH1w zzU<6F>zh{XLFqcSd<9%b1Fko)TcjBOo4A2wH2%Ms2QVSRsweREguNvbXa_kAv_e0m zi|A6k6TJp`6j2iI2o0p1+6;r;(2f+~X#Y$CFt|BJOqi^3ST;5dZ-qEoQEX>s_#1KX zYk|%nvk)GR>~mR^XBJAZ6|908*E_fqU?w&vDtn78?uS(V{IeN5e1*TG^Q+<2V-uM> z7BKqx?c>(-nAV^bE4m1wjc%8OIN^Z8Ua#;-`BKd!Tj)Zw7{zZwZb_yXk|(8ZcLZ%NnIC5o<-= zO-KFV_dW5yfo8%U&>vdSi!|WHcsU1v32P+aegSZ$ky{Bk^e+K!+vg6q=n@Ya@fUXa z3!nGzK0Cm_``iHRfr8t$puq1t7aUyW+iynvXtBz^&VtAn9~+CTO3rKMVauT#bDJ!l>zv7jmqzjTbltrr(hltb}P`M}v0-V)wF> z!7s9d{@9kI@qhnVI`<0@CKJl^_*-E23?QLj(h>kK00nXu5Edyz0K3h|KSQX6e1Y++ z&@U7LDL}QvYr?W+;A_mR@5nPFZ?UB6Pbe?(B2vO<)a$L6lNP!^_VhUSb)bXR^tpMV zBWdVpJq3QNfQNm{96Jmgs-0)-0=^?=XBnyp&U^^O<|+2!@-5jenXmfq563avIOg$V z(r895##=DVXfl>%Uxbwyu+TNg5ut7d`#cl+P2vRbb?ieXKAM)FK`T)Q3TrzPh|bOT z`(U>Jjh&7yR9Jn731E@D&9)+%(T`vbrI67YB~ z$z8g?;cZU#Z^TgF_uh8VQ2v5Iv?lvPh)odNXn9#6`iQp+WjKW|3*bzrMa#Z&K`iHL zrZ50Yc@h+v_qm;#46byqxu$+ZY+ccHDsdjNd-&w_kBAhQAQU zrw{lGaoOV`fA~+Xjf+tvz*E>Sl{{@d2fA?bC%cKc8?Erg02V0VTu^_oeQ0gy-1rK3 zQFQVlA1KD@JdW)0E%m-X{E=(pL>fyRT6h+Vkpzk@#7ns(&WYNkx;E-CkJA$W?zf=T z5OE_-djf@Ej%9AkwHIHgv>LTpF%L_+qA0{u0d4(Or?%NgkZigGXsGzqU zR$x9X+3fhg0vfmjnx6MT#d4-*p2)gWBc zsrG1f;KD=%5T;^VDGGzmW+zumfCM_a!sGWnXLf#w422yA9nRlq#0D^n2gWF0#gk$@ z>Mp~4Vo~g#p|Dr)$8Vxu=gf+m<1xIyvcP?;V3|LG-?lqY_z~B?uoQJLI0Smh9q8Y` ziXj5B91q5u54?bOwVgo4Jlq9?mmZ!|!3+4P(4A*wm&G3E79^_><=}7*vg|2dobnGY z=RkOb^qljIr1{Rs;Y5jyZ13(aE5%!b=GQo4g`uU=iAk{0 zWf*xiggDj^z)Fl2tw!4z(GB^D^}vhGqq*dRRamSE?;EXVY;>PQNCLLslQ=*%^4Y*E z30%t1>pTCc=b1YGisJ;lw-x8RxXcI%tI)MGWGv#{k9Sze{JTduR2L&*?DF8l+<7IR zDK8LragM_ui1?K1Bxc&!XOGPfSZl%^9XJ66Bv{@Pzh@^gt-!u-gng<7PAdL`0+!+l zGB{^Luff1YzzO=I4_M@LBFT?7Kjd_pQ=1u&1pVG;WU1|T|d zFbr~omx0)Zqe%}2Tg89q89*L6hq&(~cK7Wyzx)dnt+LMqd>^*H?w5lF1n0uScfj{X zJ2stQOOQW$gBn2uC`&<#9zQM_X5%Z(h!1)L$vl5_q~$v6?|(0N;{bg_yuO`=ab030 ziYR^q$c^qQ*IOa10sT%u3tZZ5pn=`hIM{%C)yeIGJxf>?x)6UJ`;LI^gW~{-yNR$r zgy%*ZJe_~4&${L*(@0DXl!_7&|%8ySnvKSC0whfI-u_Lucx8Bchu znA+kTDC`wqw?D#{0!<%8&R#fnuJQ5f6ES~qj=tJ^L<8z&^6W|)IhmVbXt+i9MQDq} zc=WXVaVkz(b(3P5>j_vxyYD^5@hN36yD*cqke2oVz)}|Om<6*}?e=j)((6FsUjhamE2e>uzlH0Af5;(U&GJV#=Ev6~PsWx$y=9L$0fs{xTz{b# z1-`X&5LCe~I&}{R_a<4gLMN()4v@Mp8z)!0#lFCy{(xcoJXf#|{;`||@Z0Y@@&^0= zs`S?;X5N0dr=TC!_$PR)qLcj5Deo_c&Uin5<~_DD!i!jh>9;2dj4FGAH@SO<+_LF| zuh#xw0Yp=vabt?~)F&$iG9Ea-U<1gTKRVC}Y{jm4%E^WnsJjyD-ZQ*rq*XKuH<{3` z?LZ2S8I|Upz=9@M){8*R0#dTdx5Y5;S1Y%i@`Q?#(tI0Sk?HXxr;(3=@Pjy*PvkjcAmsGhI2;i9 z5401or+{2uZ@KIWDVIA=Y3TBjm+uG-3iyIvck8uPu@+ZV>>ggPeFFEXv=v&>99+=y z?!xGlvo}VAAA%o}?BC|!z|dtBY<&qQd2#XSGR*mMUSPKt#k>RQ zhq-xTIq?ngEjySgIzsTRvO(R>YGD{DI55$YE+^KV${sS>8$bO9FDBTR`Z?y=;IxIaiw7c>cy8ohnnIhs78ul+f}z415o9yPXVBYDPGJ^+)ID`Nt1} zKIVBNZVW_DzU06#JuY`3BrZWgwhI4i9xkAo@+pq9xPmJ=#_kmVMmdSyh%4KV!Q?^5 z4+Gb`E#Jw|+dN?s%lQppgA?SiiDC~jg5m<#ZihL@48#$#=3_r%xA(?t{+-REEjo|Y z=C((~)l;`4sC#c7xIptNs=<#W`QZPLP;9M6V-Fxpnz4FngWYfBAclDrZpvO5yJ9$Q z4QU$+EJylbJMQn57T~T{VUy8#v>d=euZ6J*(g)6$Ho(?bOe9MS`|J977)nWF7?}t?4AM6w%Zt_#k$Pb%pVJ$4-lgT7}d69N2 zrsO!@{|LLH6NHx-0aozS*H)F^codaaQ+9FHY$x#&t`~-f)e^4p?D${~g43JwpwWEp zIp%P1qCLfjWgA@4^it@J#6OBi)8NuxVVMxuSs+VMd?qOlK`Q3a?{gj={AR3`_T?q zI9hQjQq_l0mbXOXd1c)4y%PGd+|eb(O!=dXzx=j*Ip&ehmJr!O1m6ZTvGeZXek1;) zCrG4yIA6XIyMoTTHcktGE33F^?IT$^;|`kmK^hlO(Vb$6kdKq{)ZtON*Z`3X=nL_^ zv{!axv}vrKuF#2pKmK<=Ol^^2yeQ*5=za`i9qi250z6n?3-TIfa=sVM@DXNF8SQ=t zzrXMs&Iw{Umq1%hrJ9E3ftgHJ?7%X<+%XXUDq5i{#UcAAg2AAvOFF=b!^Pe9K_vul z(S8*7gic3!=Ry?8aIr`s^3n#GL{8n(5g-avQXuz&LD-DOXeRiY%T*w=Vk`^{BigX}@$_-L{ z>ywHD^SOWKh!tBmRLy{hTol z@PYLpP}H%6j$7Gr*&O0*Pr(2v`fU>C6AcB>;~`!eNe24ZEnwWEg;1H*KT+aaO5 za{{h2@oGx8eT>2aG9)Zt9IWnjYjn(cxJ_U$reU~K6#ir3kt#c9Se1RxFvQ7Uuza6x z{1Rf_SeT719hOIT_snVWnCz2Pt}`?cz8-ViKZqV?zqlvlrGV==Zfr}L8APj8TmHhA z1DKydKhWfW+wQ*v3PNHU%23KeI!y^zr8)h?tQbmxoTua1tO`*;`0h-6C04*ObD^4- zGfI%De&z$mfeY*-s^3DViP2&Nn>fsVYSBHLLK| z_}~xNH_8m-DeoxF2+8ut?!`jrQ?4p|px>US?28qvl$p6ZaXBc$_#XxflQ$F zFflt1f-i*6a1&2x2rjJeXKu@*j?K~pQbOrRxW`}lKIX89=PkVi3;OTUJ1DRU5f5j8 z^#OJf6a|GrQBksGPR9@%lQ=EHX!B0Rb77z9N)#|S#7+qp-2&|k{t?D;?X9x=RoP#F zs|gl5MkW!brtk$YN|o!B?5GnS#7c9OeF{_el7opSIM8aM!aXMTZW0UdVW-bfiS7FX z-$OFe+K}h;GowqGc&7SKp2I9fowrkTP|EO2|CmyS9Ux-1KIDz3obbcIoF|AG@t#Em zNG2vM>sVLT=N_d`rUE4DVp1qe$SXOO_`*+;vBS0=I?kV95Lmx}J7`!4!rzVYbD7)v z5fCSzT%)NSqI9&bYtq0yjScR>@nS8Vg25Ck*EN&6*cD8CjcEA5@AHD5a<#d zV%rG<#bHx$7zB!9WxNN`Lg5Qmx(hmusQo9tSAKy5V==lC2Bti{I$1=Tu`uBeyv~oG z!EHvI3%v`-=FV?>r3K7tZzs@ok;B0Wbd2yTJ9kPvk2P0fu&vkv=#>LF4fcBr;Wn(V z-TyA3XIu{i@YV6{0FSM-RJoQF&hffR4#(euYl2YFP_81F+jusHZ6UO>`vSzJLO)_fxD9e%7u=w3EY+g~ZSn==ITu@!gcdhPKn_!t8d*U4 zXGVA`o@eum0q_tcR-hDa#Vh`WZCxQyH_r!OS?eMZJ@lR3< zv_Q{1nMh*1nLy z0NT;fgq_J3*wLh-^QkMPb*l*7sPa-;Ha@)}GjNEUjvYNV007{rs3x+D%T4%fAfEqC zU^o{ay4-ofU)1Z+u`K>Sh5olB!FdKv@3-&66aSwbzxdIoAx^!R(UA>X_+c0;Jw-)z z^=m?F@tlYM4*aV>L>2MJpBng|zyG1Y|6eIEsja0oxKjS4i*3Qy`kM8(wQQ(wHrCfP zHuvrKFl4|i;|RN948=dfsnbx|vZOOFYw58KR%QsKE3;Jh8 zV{o0Pxy3WjAE=z*X=(Meud8pCl&7)HQ#8SY@v8H*1#6n?YFg_&jm;ZE!HGkRAyv!> zwzO{c)U>V*t*>tmwt0dro~D-OwVsv@!N!*6HoU3#tWT9|0PwbTV29NEU`q=?$)8hY zT+!IJaZ<6dxwd8fhMHjGnx=Zg7~3`tZEvh;YOM1#G}bo(r49A9jSY>pDACgF8QZ4d zWR|OK2{i{jH9=y}RvS{K4CCt2q2~Hc01>RO^Q>>FtM_cEX=}qX`jEk+qcs_gw)&ta zF!#3dKw##$x#L)>y`}XIAc{6nX&vgfwgA)hx&m|1dTUK{8~VK-fC04;v}vztBO1W1 zsjhik&{GTg2BmgweOsG{L>dda*J(JZa`l_)YeOhVqO`Ik+FRRNv))tC&JirCE0h|w zHO!a6 z$9Ydp zz>RC0TUwMsI2BeAso3p8LeP}(rGSX6O zE}#V5YD2B9WaHMR#`TS0MUm5W!Qh6rX_F?kx3^DR+Z>wM(z+HVts&SB-8QKf_=kdx zO>L8m#q}f^`nMTO1s-ftY6*^?kZOhlC*vgq_>0g#0uth}e$p)HLa=7d#+t^a8t4)= zprHB2#u{qBh8EAbf>fJ@;0EYQtv{DS#>b&cMMdlCn>LISJ+dC?NwwDXf(>=;vbLJF z_0z~ms}@x+^)Fhudg8>1o>kQTd>Z0`37F>T`@X1%`lGG5sG+rG{mglQv!b;TY{j96 z_(0a7hU=SEpP^?l0AfN4+6t9Ir4fMjXbAAtrm*3TF|`V$<`J? zuBeWc>KbdQ^r6>^T3V@N1BR<<+OVz$3?f>hb{+TwTEDf8;2JV;sI7s7 zrT-dQU}TzF+5ukPK;=U&oKyxF;VZyeOIT~`o9n@UMY_2n5e_XK^`4qq44>#fK+{DX z{RPbf^A@TnT8$ZKfqgf?as;XQ@R!|7c_X}%fe-*x5y1ME=HNPwLAqZ`QtLehq2@c9 zTiTloJu^JxZY*Co4&USjq$(=sI(!9K>j-OI2!^~*uZRpRG?+}@il-pBXtDGZ)K6SH zaf0W%1)h@mg^E!DubJ?&>EmGMz{{eOHk`UfCYcr!5~QuJWqsdnwyg^_G&I#u@T>_1 zwc3L<0u`YmX=2(YdOS<&!NDk3P*Mn@^DhHhsI|6!CdGpJYhnFWJ07Z2m}$s?a5zV+ zRnVy42%gGhAXaSExm3r{l(0*5L()PeeE5ohnaPaHLzN3_0Wf{XwxIFMcHaq zD9umz)V09uz>;D#Ns_r~2zQ1W>x1cJ8}uq{j;E>dj(Ta5{HklWDx0F3S_3br zfq%eEJAy^p5u91Qc+q?%lHwmao*Ip{*f+la%k=Qj2Xg#Nuto*6K`<~#TbAlpT}w9Ce*YxdurCeWO(ij)whYlr%?>if+?#4)!&+; zN0x=sILX{ahD1p$k&$xF>;cAW&E~(zBMX-WieN3^+=-{yT(chZ1c!=4J?}5m)8F8k zM?a#76lqp7DFs0ENA{#Dr5}aeprU3jsJywNa$btON^0N>z*oiV=^p)lZR19uMCVUt zLZn@A^9Hda>&a+JOwwTZq(!HR1lsJFaiL5$?;7B=76MV0JEaf>TD$lFTCKsLiMG_f zKBYU=KUJB6&_-Cu=RjutF|V-+;;nkQX0xZRu?@v&^_tG>XA;~Jf?ESkU*D>9!xH}& zL}62)beuvE%n70;yi2R9`BJ7Of0?5&a?aewnKA2$ zQTm0`G~jE_E-G@I;+YH6RENjVOi6-FD1$9y2I*|`w1%4LXlRcZ9w<7!ki87Cm!alH zNMsripVTB2Dl|6DYEfY+IwEp1-Ls~JQ!zkkX>DAK zS0xjO=n$63Y7FL}p$7aWQy9J_&BnEP>YMA}K0&)R*JIE?+M*yB8DDEiyT!d2#FV)e{J=cAcjM!_^9x(6hFwWeph0 zVbfGC5!H3@BcN+_Z(I1x#;J1Q#zM;o(dbvAPr`4Q?-F}eX&Kazj{j4H9Pa@n!aRTq zLI8?In>b{MD6I8hJWN_K`{3Mz=1Gm5q)8sF03`6W5d#K=*0`y@ZJM$lV?8BfNkOIV z;Qn%O;eQujH^oz+hqF+I8;TZ06kfw@Vg3XUG+6Zn4}ySSnBch?=v;g4wVoB_ix>JA z&iCMX$Wk(Zgc!1{r=VBgys@#hrI}$sPmK&dA|X&EimVfdEJ=sY=8_V0s7WSFhwFr| zF#_rGcm=wHx@|)^r$jF$h#}LXHWe{Uslk-LqTL|0s{(^6vXCmLg|v_LH&XAlJKNSm z$G;B{$gY@sM6Fq@4HH6%vSFOi{2B-aqZ*9DWzLgD;&n-JL#uTP)7mn5M_rDNqs)H zhA`3pyz*_0>lt2?QQ-j8q#{3PrnLq#B!nVdy1^P-O{1}hP4{sP42Eq%4t_x_X(XZG z>CiNn^B{cDr}m= zAgypZHcGg~kd6TvtoR|g+iJ8MpiI37U7`okh6r0K@U7!wsn8o=P_OEI&@Slov~unI zI~J_3stzu_`3pvNObeJIz7FRJlO)3lo%bzbTxY!!^2ZR={TyKYKbXuZKF55r}kDp-uk>u=C6CYL%zt}nTcc|(9c z;y9c*&;n2M%oy8-_}Kh~%OG+(>Sok8-)77Up}o46T3Lcn9x#eZVdbCdfmITym_>2h zG=9O>i{_u^N%N#|ps`5%EsjB$hWY3s=qwl*HDt_~6kNZ-s9v8b;bV~!*Ih+^g$9KXw12g3y%u>x7XF84$7|kPh?}!9wLB0H7L28V};A zNs4^sJR3zupJ0cP73eS|$YFrKi~<^3J!qHBkV(0r=HiB9rPUnYIB$f~5I5IwjE^%1 zH`G#p-}s~hgKsP$dpZWLzUBgQHiY1sw~|(l~5h-^Gs7` zD8p#zNEM|3lQSb7Z!t3FSBins(7@EB@(VD$0G4QC2sP@awQ>czMRdA@;A zqcN{?j)4HAapST8{udfm<%{uuv$1f|a$^zX2~#ocJ@a+~>`#(C)cUeixv+#=m143R ziDxwTW8F4mJ1@3XBSY^v!bVbVy(%!jR^j!_ej#q5FZz$6{f(I{W`3i>d!yRk6qC(P zPvR(=-p;KuuxF1DoPz{vpY)Ucol;U)ZZF=>wPRH^^sgtd8mZT2}aRso@F^QTuv{qP~vT@9PQuy1{Ib zhVjj%dFLI@@_iEx@egmLWBBHRJ$6_sBowB|9ji+f@!K38@#dqZ+IEW5Ps6|DEkGLO zg!K59F*S!jE&{kV5KzLQsG-2V_0l(E-8IElYy z7~Y$MyRDrgS=d$l8jm!8TH(+jRXp?@Ze|}2EO7)8`yYv~X0gm$daYQ*`#rqUM;ztQ zZk{S!`-uh0@FliI>U+oZk2K=$1?)j};}y0(ck|i9XFhOm1Ai-Hfsw4?e$%Q>T+8uY ztthx$?O(*{oY)^RTCr-E zKbo`8mf=}o=X}bmx`5wF)FOVk{v-5N4Kw*nntqDaCMIgJZ;|+b7h6LA)^S%qBa{o6 zzGK1fsQs2PVF|Uxnm^N}Knp4C-Mk_5`!lzpE%U)K7$F=~yhbIr@xnh%Si8%r&Dn-C zXR~^bI{O`GZUJ&;yCd;1*x`c%ZrQ~lfL;Mbob-WTNYdOjYKNBoLb#QVHF;(SHK%bT^g&zV{_X^B8 zN7raM`I@>_pFa=tMZo0td$aTI3s4I?Y4L+Ckq5EAMUTUFkzHv@4Zllm>g_-e5}UCB z9jCcJ?>9NI-81`VdSt8Tc{h-%-J>z#Ol&;Yids~t;80#2(7zU-c&uEu=YA2#2SiJx z?xYu8p$Mc4-dz3#a~FOu7&~wC9s@rZIOu`XaF2U;BC-8T@`XL#Kj$l{$o;bk-ZG5LM3lWg{A zIG1VQP)hcok>_yn&(1#zhKU9!0nHJKF7Saqoo?khx%RtLgx--#(E3zECeu-y&;G70F@ncB~p3%oex02(e`@&jLdCz^}x)<10t((S~ z3!JEtqTI`!&+??yPY1JUWF!{;W#F=-JW(ixM3y?HjW;8=g0~mgBShUNa^d1%=d%#5Bj5 zotFYV#dV#-_}C*34!FbY{1gak(GxYV-zC-ni$A|XUFk%}FeSbVDM}f1FeZ%R7r`Sq z!y^Yc98#5Z`J=fI8~mg(E=$^tlbm+$CG?|lRwKX>{#f4@m6(VV7$B3}X{X0ZfZ(jP zxl0`)#&1%ZJI_k)UybK%N_%V*u8`f3mm$~Z5k3**vb>ZeS3{H!gH$5QZ{q=SD+gn; zg_ndEWsq1wv&IXtW4P&Ai9&YKY@JbtLRx8Hy3_f5hDy#5AZ2{y0u$-Dx$|N1rxL%B zYafI!6G4nz+Ewt|U5~mkAbwvLE@JIcD)EPc+#XlrMR2R5gA}jzp@py#6b?ET09pWD z*@@p(rq8XpT+=eZie*_ob;=Fdq^|Z6l-cbvLUVZbWm2^i3iA7S0F&k$Jev#BV7O#UNE`=csNK!ZpMbVn)_59GncL1vw3!DmR4F(B-R3@}Mj3>ntff6os7n%?N5UIfJUMQ?hUi1YNtc$mWS>c^y^N!_cE`QAYwXD9bzC~#cQ~RWyt|<19SfID1ZN;|^zwWZ zV_*I|jsAD)WFvO|(fMo2klz2jKez!|f9|Z5VdVBn!%$}ZLA_-CVV08h2Om4@kE4?L zCw4I-12fI6Kebw!&VrZw|LWhGKCSnqM@OIced%*wpZ9%}_xH`{ldkKN?wf4rlhL>R zaG&>mlWY5C^hr1NN%w_+N1yk7lk59t^hsCsN%u|aZR35jQ|Wc7r}IB7KYw;AcX8@T zJ@oBg=jXhC;B(&V?d5$+rIW4c$MZg^QwHf*eesK=U&&M7_e(zKeeiSMFYWWbZ!*+3 zqfZ(~iL(Cs;kowMb0-lt3Q>A-B2?$Y0J{e5(<%D=fxeV?5B4t@}2 zfZ-DLcq=onRBt}}InFIQwU}=PdWX^d%njgUG@nNDW1LI0;z;JIV%OzTu5Zg3fc@LX zO?)27kE`)-cm`eP{yDxyQx2M9KF&;)m^z51+$vG({uL5=1=#&y4D!jFd}AcXBbS3d zlJ!ROL)sdrx-zbxDD068I*!Yc=W*%;n?`b6KY^Zy_lCQ0grLR&P#M>be3KOw1}e*c z`LWdNzs-35iWF64zMAp;P)3=rXXJk)BmbKhUI9K)b^k8o`CCJYk0AA96u5*fyL7p4 zXO#O+2CVN%{_XD3zfFPsNk-8}GM@KjJU^9w9{iku8#xfVUvL^Sx#^CR zq~h?Y{rM~v3oab#?s6(#m@nL_DqeVL-kSiDBluo;Sq6t+c!j*lRc}1@BOp%{7inmm?Lu!q-5B45A_uM-qJ zDp4;9uSzsXu>xZRvG<{RCO2Mmxv#d;;H9(?sWeA3~>CJEde)9gR}a(kTt&eq6LFD zryx~bPDW6W7P`~e|t2C za&F{4g2x(WjwtSLKF3Ng;$wOpau_tsNqrc(e?)pT(`(A`*5G(vJgOZkTVz0ey5w0Y z&;IhPl;;3>9+dGpSe^&Ur;?%}@_d1O=E~<#`5Y#nrhMk9Pt~i7!x#P>ow%CVi>iP1)LL4F8C0C97ISO6t z&M)mptfYbbX~U?cbYl9j=}6=l*XHHV?l&`4rhEvgsLRZegp%I;xx?A6n-%8wYfe@0 zX9B%Z0aeW{a4LB67xnu^s=`f~6&7b!SR&0SvCUtaM=PMjHh-BU^4WGx|5sC>YKKaf zRdaQca2w&d^lUoot|s<U zkIgpqTbioSY>Jer+ARucmI?OjOqJP~3A8=4W1B7_6XqJ@H{?$qZ~_$+Zr2Y?KjZh4 zoFUGy7{~#%Zo~eW{J=mClq$b`Ajd#GH)iyA!$9^-HHq?JwW#gj9YcQuL_-@NQ{_lHOb-j`i7 zfbex^S7yrfhmX6LZ+OL~QC1bxL~{2NzZcrmASqKPlU1YOGYs=>SJvJn&z8OTu$7mvYn5t-FfIItW= z`?J3B%(tfN+-nCeMJ~9|Fb1ovt0%dBiY!@SF(g8eJg?HB6%`C80)U^gKzZ!5BSX z5^69;Tar+NG1@N)H5j9Bl!O|L(F@$P@6`&OfFy2GiG`9_tP<6dSfUb(C9zZ`mP%ro zO5m4n0ByNS+#-n;Dsh`6)S!>9k;KjF4SviFb-thy^^#bn5>1l0MJ3itVzn`nV{CA`xWm{-B=5&eR=$Qx+#p?4q#UD&tVlUV5m}LPj8BRwQjVD>2}Q~=((&DBT7&1VKSSs$Bu4Xpm;dSl1FoSFyz2FqUBKy&=Jt7%OU`#u!Ty zqlxYR{hnLq&hA@-zt4Y^*>lf5_ndRjJ@?!)cjh5+gi1^ht(U08L`f`DiM=xHStqK* zzU5pFty78pO1?zm6qT5iz5(1$Rf)+Z_aU)fC1&JK1%nGzVrJV%k#m_!%&LAKiK|s& zwy1NHN*p4??rznt9UNLBWar++BiS_BOOc-? zTDmB;k}eA5`G6J80~UG;kPyCW2rE=S?|Odm-+;=pnHvaI@g^al>jjdf;6{OmC8>nJ zm+$w-hgW1@;fFQy=leCPP`5gXA!Df{V?y`3b3rLRc1LDWYR;tQQflU;=2At<5-Ed>;{jw(z-<>g#n}MV1eGaO`(9_4TuP!Q5|Q~POT?+GCOW5-Q(&oCQ}5l= z9q_=R$2hO|o>_)*ug7?=_XGjM9=m$ICkmMEv76U>F9B7Jdhe5Exl*ZX?|mhwol5MN z?TegRuafKtire`rJ<6mzd1E0=JfKhA9AH~|fKsuv?+xjTkuS{q-XwimCvL7`hO&3x zThbelDD|>rCZ2o~fI~l_l-}vS_avT1a>9{b-}|yO*n}ls-`{3ra)8_i6CWd2<`jJ& z&V6m+M{=d*D8CEohz-ToSrQA5xw4kf8Q&oT>>f+(gbc;*i7c(H;3u3wfcdlja#cS`TqmEGi4_AW7lvVPy+NJ3e^@7&hJ;7o^6!w*HJ0m zW7*=Py?&kWtsm1u{pvELQcCx$FW(0;mD2qhB(X#k=+{{i&wA2KV<~~s`qx~5!Y!Rd zFnY12{JVem_VX!+B?oko%^(Q@1AF;h>dfTB3)C!xpJ_^vGB7~G0HFbr21ps8zyN6j z6dIt&02u>h4UjWHu>nd9P-=iO1C$$}!T^;9Xk&mX1GF_jI|Ec3pvD004Nz-<4hHCG zfKCReGeEro8Vu0c09_2w)d1ZL(A@w%4A9d6y$sMBz~Q@38Rzven7#(+XMp|&7+`>b z1{h?3!3G#&fT0E$W`LaxFx&tm46w5Sb}_(61B^1jXakHfz*qx}Gr)KQ>}r7B46wTa z_AtPn2AE)gi3Zrq0DBt%KVhj{bYBDPXMjlt*xvw?4KT$32N+kV+00e)$Kvkh>L0nRnRc?LM&02dgb(Et}3;35NDY=BD) z@GApcYJkfOu)zSA8{i59G#TJZ16*Z*jRs(tmayy_fPFwP{3AeUfTRKV zg$5`xK*j)B1LO=)Y=9C2lp3JS0Oba#0PxeplH{t1W~;MTp=oXRujL+Knb4QZy+ZDl za&IGdo(jgaOYZIDUM=?;xwn^lt=v1vy`$Va$-PeQ^>S~JduO?Kk$YFUcawW}x%ZHJ zPr3J!dvCe-k$Ydc_mg{nxet*0K)DZ+`(U{bk^4}&50m>&avv`D5pv&I?z_l+q};iU z<$0s!K1S|icyJ9|z5xOQBn%K5AZdV<0SXL|Hb9{PiVTo3K-K^`0~8ye z!~mrRC^JC00V)hoX@E8cs4_rX1GFdmE(8B;d4baN~y$#UE0DTS6&j4&6-Ci2-4aNe2!6Xb28UT-fRq>PoID6Oa zu7SW{5(WqjkTd}2wz`xC0)t_E(Hb(IiAQN5z&^TQ5(WqjkTgKb00jo%Hk;<7fxuuA z1_%w1G(gG#1qMhPpwIwC2FMs7Yk-^q_}OADT?2u^Bn%K5AZY;4W5AZWYalQfEO;79A;2@15;<5mRM^t)OLm5Dh)17TxK#9E8mkH%`0;IcxY)c8UTg7 zN}lsKLtdTbUO_YDb@`CjH$#pk;}7sJxV1ADuu>DPgusE4dPg%=WUX5l+?8GlNLGD; zTDR)NJ+g*W3;W<+XRRCDr`EdIIzdTcGd%cR`eQ&n@TRF3JSh2^&0{W`$0eawpTQH7 zP^-`2NlDZxJ)V+8j~<6E2DhgRXqW+B)mkHMLhyY0^#-H#79rNsUX+AZdaER~wBJiY zOWRibHp**hFUi3TwLlMER??InuSjB`O1vtGK`QY_Neotr*CjDTCEk$4P?dN~62nyD zZAt8;67NVtt^I>{B{4$fY_EJDx{dX!{*L-)$Dr<6Liiu+>EMHONoP~@zo-)@a;_x! zP&OvhUe!k^EyU}BPtwnUxW_S=f`3}N6`o5?@P&)y{eFO$8rE zPxq=S!6!?fYM`!Jxe+I98Yo5TH8=P!-O$At;fK=hfOYf#D6G<5X)BBuon%@~Y8Kq4J zzs)Tz<=_{Mxyu!m73rh$V)yjhl%vKGZI;i6q`+Qz3+$U0yT9Kot_X)|&9TD@KA>@@ z`>E3)R07O8Pa|jgsSOdbmY)}x>o*H_!gXPDu7W*0FZL+EnjIplp3okvo`N;QF3HPb zncs#wN3>eqn!rE4o2i4;aGX-KC96~sHF zmD3a^ynq z(tszrbbr4rkVj)#C3r(1d(kW!xU?J^l&ZY> z#kKDv)V5Qp!-^Zu29vs}%MM%O9VL&KdZ?VEi^T>Qn9D(s{S;-Y&HyCe^&d1llzx9B z5Fu|~ma({j;6S$X;Of*9%#+})ij*g$$QwlShQW_T2;#8}iqsWwr~bdqiXE#YRrNx# z+nDz*%PN+;DwchjCoC0uo+`2%(W0E<-$|aE%^{X*sq;yyM2%v!!ZMN)gWeR48;Rw? zvXGD`hecHW^OFAn^B?8ydES1{+e@g4mt~;_W@o=6^c102ag*m7ACOL-O(-3vE3JPd zS}Gd$CXf4Al1N3BQ<`=~o>Vy`geQlfQnhSf%*yS~e4e&a4^4IgjW@hq8f+BVkhWrs zV@SrCtUCE29D2Q1Os&pj7Cl`afT>cw?i1g?i&-4MLV*s0cZTw)jE};+?Ebh<1K`!ScU~-X^O(f~&GUPGFO^=!{HW5xcIfOt*lu7RhhDi2QdQdJMajE| zc~3L%en4K9U&d`9QgJv;jgqgCO3b0qy%pmx4cg7?qKf4DYI#mxa!)nD4`&`7O|^wI zh}^zl+>rD3`ym&Hp<&oV|2OeomiXK}#KKgXV&u_ctJ_H=r}tPT&!dCa%XrzAzLIeMZHoneWtVc!vQLR!*TY3v(FWRESXii;*=l#jk(nMi90 z6H!N5XS8bd_em8gFjk#J5BeLiQZ~x3Tw8fN6zRZxsbCT=rVaaOAQsq_d7qm;ube_! zP01aqH!Qg#U32Ph=bS|UJ-X%?6Gf4s)oQFcn&m_!58){D_neSAg=khJ zA9dC4o5Ac|z4YOd4iTIbYH84R15(+ z;tz+x+pgnsLx~nn;sf@kJIC&Qq@V9iDlw^)+qXV<1Tmts+?c0}^q7-jxNkB=lygba z_W6(po+=N^w25|0+KV)laZ(vqKA(E^Fe(l^*Qz3iU23Hi7)#OPTZ zwshJWY1uh+?elW?}pomuxd4l`33Xk zrt-OzQ~Cdt@>f~b*AcoMH!sU0z75RD^2lz(O@LIHXQa%tq$E$(8yZ$uy-HdhZWOXf zHL@%5Imtw-V0W7$-7Yx{*vN#t9Vpm3gLN9UTi4tmgI1FEFPBk9S?pxhji*@>kuq|l zsJPrBN37j zFFo&`(u_-?aqU#5qR#NkhWC}qrlrE@#p-WME4Xi&Xxz3EHNgQ&lfIgt0`t84OV!Q* zVO*J|-tS7)s#+nu%mVL$QrXqi2v5pASSri>81A7sFQI$5RBc0RLcu+fhwjl*SqsPb zJ(dUec%HIPl#QN^TSV&cT%7-OGTjFa z7OnrK9Y>A8yq zj}ev?oeBZ6kCE|e@pC+0L75!NPc&Yz25~`Mzk!TfLFfC^f;I3sgI@#uR*heQ+^PNm z-=7?;c1R8Z$)~m`NP-nk?r7u|L2bpDxhR`<*)wM~SqE!zpX_7uB$fSO9L_~9KGGXl zCaz6W3;y+8w7n*jRY>gC%p`M$$(&i%T{^kWv=#cpzMgld(kIopd1b1z56P*W zdekY z<@#@YDSYQTBlHl+b#7`<~9?u>S^KI!|@8H}QG;~)3DkBsIK znv>J6cpDxnMIAa89h$TCoxsA<3;xfgX^PcSTJ`uyt0gac-lfQ?>vl7$UdVHE`eK>8 zOqt78rlOpKw|U+REOXLLEOTb$9@B4k?8or)g)o@bBK))+OGDW36B#6u!pJa0k>w9V zF->P0hU;BTSGI}XD|VjU3d@;s2NF9!RG8vQeZeTy)2spfb7 zt}<9Hb1R86j5gbFV1jwuoRPBNMs{Q%@u3A3|lF8m-5ZksO*F2g^3m}TmRu&kIZh(>i>k6F+@6U3l%>7zpCJQ z9ZO!+LhYYmLV0E$G|2UKvT~iAgmpZw$e@xxFz)~H#yb(b^7z#?8lBItY$I?I@q|Oj zDTfSUmV!<2sYB7c2`nMUh6FkURpBXoeKp;Smy{G*8W+`xSVUxhfj5j-WU*N__haU2 zJjbZ`ocsBEJa3(wtNh2>k2^ikhZFtC3)*YV-aZ9XYa5X5JnxxX_@74(Neh~t2khC59sD;l+`%typcstuMX5^(J6p7$Hz>*}{cJ*T_=2?d_h zk_SihL~qyVL6Oqua%QD1>2Y(fXrk2CA4ki;7B-W+f<0AcK0P_18mF>j6RIx}pB5^7 zdWDy+>yobP##ZMGJNmlw0?%8eiyr3~bO8FUCHmlU&$~_$g^jTpAB#T_NiH;OW5wAX zpDH2_Q+eBiH0ixm^+|(SlV#RoZ82IC=Ig>%X?Eec4xtLptDS0%Ivp<`&xoD9BeG>Om*uU}i<5uRJ} z#n{+KCvjVfL&;7W{l6>j5Xx3eKDT-NL_GKt!l_YUvsIwhwh9z}kHa%!r=}8?kXC=& zA#7DR_Y1yOgkt=-tU7o!>z}WpY2#$KKT9IlozzJ#Zl1|eo6xJ`&S#e2C8%72V%++Y zoFcF4K)~`wD@QLu;%!=h_|&XU7pgR)u;k+a^xPg8nJE9ZQl4QmS9cBgO_` zX@8MFwTQ&aN_X|^Ed$RhBOEL!HK-06@S8ZTui#GMg3_{uCL4dPU)+Hq+cr0&)}tuF zfUfubJTo|WFCgqABXONSP1j?$Qg^)nixtXnA$smsTIW(!@C$3Zl@8$JXLD(~aV}jk zGxt#YuR-I4+C|=;r8zzf3>x=uV+vxdlIzp`oC+|utO7z+AgUN0{wjqRCsa#(pKn3x zixkf|6wSMYb<XAX;v`(rj9@sHY~@hvE$+Om&r%SNrB z-}DR^%65Lg_;$WEiD~xxL0HUULraTUC}$wOa{?}Tw|)jIW7XsWQChW2X=k@ptqL^tAQ1h}h>*|J#z5_@WHg#weiMU`NNykR zK^oULuQqg>R=77t8=lbPOh|r8=kP4 zRZ`l9x#kkDD2;oCZBrhG(EXOpot}UYN_I-{L?u2!T=l#3Hwu;QpFGK_q z2G^IwmK=h+A&#rX!N?m+WJ@B^xNc1?4@%x-((9ETx5Ra|9jdFY`Il4B^Y}w_ca)U7 zl^1z;#&K%S{rFU^;S(k8l#|83rxY}9Tb=5>4$ntq z!@x2g1;+2Vj6)Jekt009sN_iEk~9NL(C@J9w9F1fpzAAmZW-2vH{cOyQt6+2fy%mc*RhGUAvxSXctj2>Mu-MMOSl4~L zI#u@=4CXt##$AwJ9g~TIAdH%aGT92;18QSzxj+Lm(ci_Dzb$FUlhWoA+;=7U7p{ix zYskgI_4|@m7Oq^iR6zhtt1H2!tF1C)%^oUSjg*?msqr^%Ma(Y73MgqOF+}z>TK^ZJ zD3)Ur&iLBRhP@3o>nX;D*IcsYWR>Kf>0g^lahrj~lOL%JYaYWnTL zF!EtbmU>5(6w^ZzjW;PHA02NIsrfoHu;_+3Io_d!;d3+K4U5rgi4x>^VkBEUQf5f3dLH2Dsj8X>ln2A7d3T)mdIw)%a20**_7CEH(VB7+n5l%RvHJHweR z@)$h0Q5RXtrmS7-bzWyKzw8tPuI(M$4Pb>Iiiu+B$*zl88MN<*iZ-u(tvBgaEMl3X z;dis}JuCQ5RH?|k2EW5LspjFyPWmY_X6ZbJB0#%m8mWuu8OVTadmBda4 z39dSh>-fow#`TPmk znTnt*+Qc2MXw1Qa-mxtKF{U<0!kS}|mf|GcV7_X8ga^~7- zY8#q|`5)3MH+wks;r~(PZN)~);VMXZeiP?lqVl%l9xcY2ZN)9em6wV;y48@fFBK1Z z(6Gi|Y2;UmmWXo~grUl>700S9mXI=kEY7$`YGfH1ysnU<`=5#{_(nvc@#;0g za5xxB$#;v}$zf+L&N}hEn~h5$hsUL>Py+6v7T=hJ#3-#(@f8gfik(?XFU|Z4un=uN zD{iAkyUU`JOdQ2lC>e>y%hp6uO%G#Op3@1j0X3Nqkfw`ES-JWM0cX;VYR+`wBHM)Z z+Ee_d&hvB=UR2!e70letB~5ct@sJkHb#ZZQiX?Ow7Z2u(v*r@qCBYh1^+4)DqXyz&jncI=Q*UZ1v!Jtdh8%KbED z%cq^x{+L#CmmY!NezsDg2KyeX$0l1U!jt}9sVAT%&dM-IdAPuV3}%}_HN45*IQqReVB+G;`DiWX(X{aR>IRy@Jg zB5J8N@#rtDR~5&_70?>Im@~SMLg?V-H*s|?8oZbr^igMprT#khK@27frp5xO4wRa6X-6*~!52u17HK!%HPI)=8$&F6n zBt2oFd}&oz9`B5(%Wpao%m&Z%7UpXCmXbeh@O;3%1)eIs;jmmSY0M?K!{azF%a6&3 zm|?LF*Vi{C*{R2{2=tCQddHN3UAd-U+?nAIjQRr0!3P)>F?TEkq0nNAI32j@q(<+6 z$Eu6{isUO^#~-KT)LH)vFX%+M_Nv!u3h1TSMHYg6kYNkgYHK(~}TD zWtL*XYrBWueN|yzd@UFAwacu2oU)64xmdbQ% zzkpEa9Ip0;Hw#yns+`0sV_Iu;-A1wsnVML&4o^P#OabjB?Kxc*9MVoI+P;$2b@a}% z9qYzLy0Wii`?OdJzLMR!g#lj8L-%TSklSIzTbCTGz4gs(Y(K|p&uIo~9IToPj|o<*o5# zMK?9M0-!99*ipEK8*NNU0}hn}Y6=nKbdY3BE?8|iO+g=vQLIz4R2xd;=>-L3SW{6c zF%|B79L084iVTDrs&Rj98~1aqn%~47gokX{QSATVIr|Xfb=dDBH!IJ<5jpCD|giVZMpm$N2fR zc$IDaxaB(Y|zZiZRrz0(ZC^HlFh8J1=0Au>HcJ+*mdxh|iJhbW1vTMhG3+1T3Xe=uKan4bwK zgT6jLTk19`BjA+HV1_oa z8++L2wcU)5#jBR7HUpW(bKy8zw;&J}Q55YKj4QwthzT9aDK$C?}j;v}ydF?i&Jp(4|`2|JT`EZ89Lil%sY1&^#^TpQqS zsCf=s d{4(`(U=$aIGPc4ZdIuD1qQf#89h^{4JdU$P|(>{t5#>%DCj)P_^YOYk2 z1&y26;E5$^1#E@-YDF#M9!5X$j8z^yBfqIQn|ewYfqg8|?{0M)ozM2a)Ks#;9;BVa z$jmLqP{nSlw%?m&_Wr5N39V)Fu)|?GQ#~O}*F`p@pRKXEk>d1ETZ^A|kymwb*>qH` zk0w{GAFjpY@JO2UH^ebkk>e4zf#FwZ4S7u##4xaR6iV%^h_&nD5p2xK>8+y-1sFwT znRAfIfpf)k7HbvU0gxrmG9}<5(Jo@FPq6FuQv4bBP*JU50 zAO1pZ@8C?KJ9(00aWgaeSlo8?^ktSA#@W!gX2%Cm!5xy36S0Q7oB*5?A5?{IZYFk| zPH^+$xZTNQNyav(j6dI3z%QOYlydqPu7>sss zT(<4TaXC_l6QoPEIW#DUg-qh%tEAf0|-rq1zuNF<9JoAAW>|!KHrQ<`1;0p7! zL}4bj1h6KhunhjOo@!=T|l(c|=j%CFgr1iiWv$mf>TUqS#l0q|RfCT6*NzJh*Xr zaO3mfb}Nbv(K7V>P-G1w>F=VnxNk>PLX??M6!UGtO)M(sx8ltuxc!S_8()H(9LEXc zS584AEt}^ZSX4I3Fu>o;viaUYag?x_UexmN_l!KanMJW~CS_;k!Obozb06r-KzK+| zDccMy__?CuEhj^tBfZ0ls@yq|uskx3vvKRe7oGUMg9%3V$UWb<3O{QH!E|0V!-lWg zHk!Q=N8wt{WpMRiSCmC?p6g6h=fQP*sT|E!?ci|GiN9vu@k)G$Fh=RhuWG^pcsCbe zCos*&%u{rxjAm};YZu{7FSn%3+0|(c(ZB{3)y+)pSIeHT*3)-PG3-M8{;y`}_HSA} zajG&PmPb}Q;@h`^AKVIl?^f^&TEU;x3jU&2@VDl{pZ~h&{Ym4M1E{82;nnSNJz7*ng@4U9^C19a392R66H=iTSxdi3uDVHQQ)3DxO?NcHb&$9(K~r{ z{H11iQDMuNeQ_LD%NKhtDJ)eBkWFd{wxO_;7UtVHVyVjuOAnFsy0sZR5V)c+K4L6c zo=Fu10$bi$dK*YD+Ims+kB`%U^dW z@ILD&d3*UZy0)u^J1$!kB!EnZ6NfKr{$`lU!&H07oV8DHpFA1S6U(Je@y~vb}rKynJl;zs6g&~f*&0%r(@+pm^`{pL zd6e12&}TVuM1M$eYOx&o@Fyf#29!{QaAs7YKBzLKSQ-jxP&6DEES}Za+bP@Jrk0RG z7CVHF5bI$h0pDa83g0wS@i zEcLVP-@?_YLp0y`9h9(=IU~6{l3b|!qSu1x^@zw8<_pwcDt!EOG~K!8yjI%1xhY3F zge^@;R);ziZmnaRaIE#o4xu~!=hsa(sJs^4?s2C~bLOLsImrAShtOqCD}1f;T3Vs* z{2j0Y>o{>o2&u+#4xurZj;XPR`K6+3snRuuLF5JG`-DNm&kWy)f|Y!$HI7M`*F?SM zCbT+HMt6rWzl^bpLbSHd7|oD56O;Y8zUq@63`zju`ySd?3oh2D>mB8zEa`{aw@C-!6 zjxUVu$jA(RxA+X*+N|pv_}wQIHs&MGA0Sz3!)*@=3eWXl zI&sUV8y~+TXCy1oL2@#MvdPnF{-O9$>8ws1b0mH%I;RqfZ0ABbIiM1|sKf}BsxFi* z50&VoX2J(&A-dC?IVXBSx55eh@e6N6rzKv{vryhyQ?$JbWruY{rv>;K>%N8c+o%vO zdFJB9nxS0fU{~ufFqUTUOjGK1|I{|eiI#X87X4!KPt&obfX3Ck`zjs3+@j0bKfyoJ z$&Vo~=f7xik?HvXar*o~Cz$f*Lp%uO;G3?CIuG&f41SJhqYCl;72e-Dir)+et#v15 zp6zK@_mNsXzlqx%QoHTxng=7Ly$Uwz_H-W?C)29;)3GBV)`|{F&)4;}ufwqSMTD%cpy@^3ctS(}|w*)3MFNVsc%WPMZxg z*+M@w-Ezb7uz3B1*Wu|xck``wA-<7wL^?~|aqwt%?NaZ^bol^DZJRA6o{38rcbs#n zo>MJKx7?as9LK?!ro)}0Tv6DbA9qW^HKt4403^5z<8(GUa5k~{64g-H54L#z+RG&x zFFRqd8HpdZb_KZkrI{Y^gNg zMd1cvz2by@q*;zGheP8LTE=RpCS%bGvtzQk`yGGgLz?A66aUf#rJbKw8n--eHaTCo zdeEYeX?d74SzFb@27l3bWdo(h(q=RnI0d_nI?E;p4aKSvCraq7shUfe*jj1ZEm@lU zQPPpj_C7UMmfbe~c?|wW(>0n#?d!SH$>ABDEA=zJz~>Cs3gq#Z7!S9t=qKsRjDDQ? z%1)m@He$dgX;3819DoXpl^m`_n>R59&r#*D6rD}pD;&L8_;f8<>SncfH;>8WI!&e8 zu(|e6>s-}(EwpC^vv4-m08~O6xXV&J#EEr-*fSm73G9qO&1EVwcoz=5WbWe2J>gY8 zSPCmxtO~We$3p!BY@#5O;NrO#FUId_XMMw(CRQz!{Tx$|U}?{ComtNh*$q08h=wBoUD9uHQ< z)>sttD~F=_gw%E>PDrVu`f|K}5)mzv_>l!m%K*T3SFT}$ke+-DwRBHu!}(3ACfzmTk zI?s|s?Z_Yey20{|@a#sM^US6WSIvtxp ze5kALH}Uz8cxxIzovE?>Q*r1#FO46?lstv!G0dX4|MD1SCXOm6aUr;7jy%yTPsg4P zW{&kL;sbSNkyjbV*w)}e`7P9fUa;Kh6~zB5!dp)uUeiWythy41O8J5lmYM_g%g=Ib~keLrZn0M%W?{kydKQqt!qM$_P--MY&Y>$5`1_&W3}8JgM%RvFgs&O5v3jUEMbe;?q`C z_sxP{vFgtA-c}Vr=c%3Vy=M~p$0~9T7@{Iv5z&#I$AqlN%_>**W;c@|ev8g*9E+0j z#lFcH!{R3 zqM$Q>72I6-rr(K5af^XczlbX@O0CR;J1K4jeNYKUug*{b+UD)uljbLiq@ybn_`ON+7}rD7{f!F?RZNo?N!YqY`= z{C3R0Q@K&b0{ANhzD~tnP!ilXd2s(p#R9v~{Ws1}gdGN9l9?!o?Fa}i%!5l7G<(|T zrQ(>5S2_CzzUUu>1)UaMhkb)TI$62r-NZv~Vw00#&-QBm>|pGG!k>Yq*U8*fot@$+ zjVBE1l@HrL`QxqYAs@sl&*t2YoNM#u@WK1DDo4#~5gY6H_?;&eZTWLie!Eb`pBM2M zKru{9_4EWBhvqqX(1!wITo~@UX=-;Q<-~20!sne|T1)72U!nROmo)4ZC|69|?OPzH zviJs(rC)=Pk62C|bxPMcRpMF6hpaOCdxV$a9U5CY{<_I=`gN1zAuHc!u|7`~^nlr7 zUm_dMFOlWkFOb>Mgr~@x1(ET!v3;rcw)raX|WlCO#QCoN`Q@d~ruM@jXuqvgt z@MPC+RjQT+J4l(;s=Jwl`ihXSpQPCT%d(&3vY+I#pX{=q?6RNYvOhp~ZDGHAitlqK zI^BSVX1EDPK6+tZ_Z6R)IF@^7z)wvkz^TvkQGxXG5o8^ zqFyE+e+Bni9G5xv&||$n#BtC|UHl!`?_n=kSXNUsb1bt4$}n>Tr&P@|chZ?db*60~ z{t~)P@Yic?LS~fXDf~v&bhm;>H~e;7aAUIVLZG`XAjpr8d)?5UHzxaYAX8SnIVtDo zJ00o;wC}OlI;wmqmuQ8(NW0(WYlSq7aXJ5D4xeARVM_` zMT+N$PPABXYO-9JR!JC=^j8}RLy~Qbgdxd}M#7M!e5{xfhPe`UQcXs!hbsw6@~C9# z2heDy-j1J@%u;~k z_IFd#@ps~rFsZfy0-?IbD7!>40q*XP#DK(Qw)+c!s$c&Qx&|-NO#G&M!Mftuf!+^c zCw?WuTouO-0;<1@5=(i>wk%;T!TE7qPm{@Sp?TR7Xk12A@OEf&8mzNSzg^E_-wvzT z6U-%y-wiv?>|rq4bGC=EuhI$KdwFp0hp|O~(0vfc)h<}-{W+}sWp~-AkG=r6?J>MY za+|WaJ6(AX7C&F(S2@um_W8^cQ23rag}GO`MdRIwbs_MdDZI>54v&Pu?8_b2lgh7Nq z8Zgx#5oMnIu;(4FGhNrDMr$?R^>^YeXZ}L`twQ8%;6}A-QAJzdm>`$ZS-Gkz zRvt4e;5tM*-)>k1opus*>>LX}4Phn5`swk{;oz_06FF`~8|^WjAG+RIpxeN2;aH58Vj#OWV4vy0m0@So#8+Mqe7&xy6*EO}sg!iL2sK zQE+X;*jziaF)_)UDhk=ti~O_a9SKKpAT_8T}>r zWpouXmP7?Cp8exYg-7ezK55>ULl{t@?VW_Hb3a=tz8Eb=dneK6L8Ar!RvdxX&EH9M zcX1rswV&`9|_~y9c(^=O|;1PwbHbn92q5gPNev8%2VGF${60tc#zKOsSiONx+{y7r? zm};u@>8RBh3xVYn)3e&l(c1KavJzId#MKepi;37Lnr-2ob>R{ewr$0E?bFZ}ZRN~s zVR1{r=K9>Bh>XNVOrGnSEqE;54L(OBZ-L5_ zqXkp_L6McN86t&Tot&Wq3MPtPOEg<&RUQD*Y;IX1XYh~$a61}jRl@zY^&+Bh`ArA?$7_Z0Z$}#Lc3_@0)O^Fqc{P<^md1j)mU7iFPdp zrF|3i?ykQmG%3+0?#_bUKhbP=ivBz~(Q^GYB@ga^ggj(X7C~1y=Fmmn)I`g@{%MJp z>%M~$vP)vha-5r0#OseiMI@&U%4#L}XnABt2zRqMcg#Z;!A1k3&9ffC^bTWMoGVYNiRIFQN2lMXlae zt$tRmufRYJeAO>FdF^(&_T zHi(52tHnG_)0Tn{BLYq&SPyVKZM!9oL{mwb;cO4;-B@c$k3pAsLGyLH%9+3y=w?gz zmk|nsOBBvyLk!;=aTZAOz(FkhT;SF>?VDzL;!$mp=YpI|Ar^TdkO&<#st?0%3G#2A z?5geiIkdFZVf5Uf)Na0c^0-Fli<{P*v9+DElVZNYw;Doi&)r39umH7*Y0w@BIBs(d zcGKv58d#@wghsC?MC`}G53W>vN|$$(i+C*M#I-@s>BCl@Jf&)8a%etfSg z$vKv-amjzqZd-G8tXuRlHL zOxRqu?|!2KnLNb7$8GVYX-@4BC$jgVFDk~XE#nTlyx%nHam{#j(1EbIGRGgf%v-Dc z*5GW58euJ(Jy;5wEQ9^AEEF{PzA3!Bj#PdV7c)|qCO_*g?DBm?Xro{BB((Z@zcjBl z3G=-daIIgEeFE&<_X2FK?0W&QoSyu`tGs-CKJyEv?GT?Ryf__-bDlLQ&JNYWgqV)o zX5#Pv{z?(XmYZboySxmdvZVPSFAW{T5%LX$d@F?UBY+dPI9=*rn6z58$a?gXJD@*V zA1H*vI>un_jxxBk6$X#)D1+BqVcwe?6o5d*lCvT z2q8Po*{w*rXGa-qX@$X8JIWx3AkEPi5ir(mhY9|F#4T1~zg8HWu%islj~JxQATs?m z&#Rk>Smef4HMm`3N1AA^$gOM{X)f_&Pp~yEwy9)m$?cR96g1J<9~{jrV%xNw*X*MS zv0)OQO3DBtughEI=>djmq`!*B-Xc~pI4K%0FV}VUn?|F)qVY+-96K<^(74#|u9P#= zf8M;qx7zQx02Q-!dLh2Z$( znSSi#pGaS7rLXtfQF>k}aRUr@B-SW_-ZPfZS&C1r7Pli88vk@HtmLOv{iIQ_+Q3xI zPI;@exL&A~dhzibzjz1L9_Uo=K4U_CfMY-K)4Nl9P=voUNW1}DADxg7Mvr5n)L$MH zU4*QzlC?Zgd(S2{lhY6do%e2xz9GZRv<9PhVOznO?BN zOczr`@*v;mR64=eKl^A*!%K()CNY57-R8_$L|XY3Bb77Vulxe8+-d1bFL|)9_P=%( z28;ZK_*?QKe(gu4>o8<^gFKacxa9JMf0cW9d$Q5+NJY6H%l*#(gn#rE>c99^Fch7& z$opLlKc(qUTT&2yfIR=C zDHp|IV+WT&_#?}2;?GCU0*8%#_F;OOs#@4ns#dvGS10T#FGfn$!k(QLf^?8~Jno)9 z&rk51Hj?Gf>&Ps{BQdqtD8L7q%*51P$0IF-iK+8x9!)r+7hmG!50k3Q5yP3*@NVR& z;mNYJ65}Ttq!9PxRA$47s8GYcTw!VaOs7zd6ygswtIV2R=^q-N|G6zxvqTE@=fOpD zZ387Qzv*C@GIx)YmD}nj-gFZmJBgaijfw^DHSL_lB>64qFICJfon;o1q zEtsaj&Q^!P)W=xon&4@66{TJmWDv8qMO>P1~9dROaLh zUz3BvGn;QV$#!#po`p2mP1gUGybRlHcCvE6cM>&kIEf*DL4t<*hl8B-BoYVg|Gh?i zi;C3z;N)8;;6csEY^?M^h_;oMs+w9)h}YU0`xfw+FQs@~l$A{%kgu{R83*7dK=M7ne zj6~x@(T8;S*^F}Ju=>p>!MiB@PcPo-O$!`CQgdg5U;IGFuoim_7CS`?k|X$3Bg&@t z-s-T4Tusd!)5dIZ?~Tdw#vJ3+d$lg{$g7SPtga74zUuZ;`2StqDGp(4)uo{06kSx6 zcy%v#*hDlxqq^3%^x>}*H#PU8R?3CxIIZ|F4@FnN^~{0m30ym}J< zn5Qc-%FbKIrXcZQb5Wy>k;&(EBdS?zSVQpm><@~lMPKj!M`a*5PW-X7yN9+M40hFo zJPeOP*D{}myu&50S^2>cjm&>{L=Xw@{|Q3tZX~oSP`&qcseJ0C;D0Tu*G#?sLX&^s zw}Lq5-%~MTjI;hjZRlnBjOg{}ywhA64fsubHEB{kvI4I^Uw<>#G&?--)u-G6PFBra zH*u_+Sm`FtbP_p!9MxRInXt9tbh`~?FeWZ|vdBja@aT9-X6CXN>9AEn~*Km0U%%rHo_DHo@6~Ac(UkaUc)$><{A4W3QbG9l6 zzJ;n>;AGWY=_YP*6Tfv6Pr8YhoJ5XaPcqkVCiZ_vW6pmQlbLs&>>-~bk-+b2?awb6 z@u~;OkQ@?tXQrl|MlxeeS0~Y%7+hI0?B--dPWs{L2qx@)Ky{MqwBm~lUF6``g)e0xqZA{i?7P|U%L4C zWz*$C%_e$5yEW}ls|o&Ue{F?d0r%wT{0sw6Dx)zLZyZf zQ6KD*BqnJ4+wpBNl1eG$rWGgDeu77q*u6{Uq0fLxx;c|Nsg%ZyH}U_dLmY`2H^FUReBn_%qrNZdP@kPx zk*oKQhVk~Yc0m8i8Qbq2Hy=%~k2JXr7f^6t>&$H4>Ggr}=lxW@d|In{r<%kzsD)qd zPm`(cJ9(&h^^~@ex7SN|JwTc`=Xq15Dyp9rs_-?F%znLvy@j#1ra(?WVTcbnjTW- zcP*~SBs#V4G_7r!Uy2?uM|U|4sB;k+!C;<_aJu`d<5V!5OSZ_m zB(!Ljw>VxBJuRa;+7juv7<*L3u%Z^T>QJT!q~kSbsfzOTrOIyN6U@>)tUL9W1tlJ#;2Zo!2ZOKIA`jz3fROO&kp}}B#*&ovd3JR_Gg7xriK61jp64-*JXgXF7wX}_yh6J%o8~v zp2(eCq7WyS+|>q%yV_jXRv|8I`$jt;-e~uFwL-jJ{b@B2pH|;lqY!u2{H;9@e{28S zT7~#+?F}7)xS`{-9Tno)j<3}L@mk$ybqeuW-IjVFw$!h0P>A&n?=%4MPQwkXI25~~ z>t|j4SyFF3S#D+nr>1vdIUa6I-kZdqbww8x1p_vQFBH8~qqQ^}R#XT?vH z5dTEUYbC(HR&rIT;O{AWu#EVBm!DT5h-WJPPys$om3LN3`Y%%jE69UJTU_r?0VyW($L`VOTW%@U|{Vhnt7>9f;Fot-{Ejnw(+8`Fv9Yd41Xq&E}2IlYbOy9%EzMCy*BXKCwa zi#{m=^8U=D7?Hy*nQi>DE%R|kN`963Zw5sF&0LXXt**%4oJI11>_`0bZtmM0{;V&) zwbr9g&bpSzM&>aOIiDST<<*3@GuCLc@vnaOWc*U>Q772IBc z)a?Z?F?CPT^WtZlGtXv#{ZHoFEdE@Zy)7$Vb6a*Z)Bnn@&*9J0#Xl6|&kw~Hlq4D- zT^U|ba(gM#x0gNwCq(*@((jr6zVys8DSc+yO=U>mRQ5ZS{$1G{Outd~SC#&2*?*Wm zqx_O`{JErjW4RRDSpE#t&y;_GG}yjc@l^%VUsar`T=~q(8!M5%vGOjJzN_*9rXS!R zG)3iWO#QLy;kNkmaN9H6B^tM^46m%-RE_kzHUFp)rr)(cy%y=yYtO5d{H+~t?j*p2 zowjyD#`aGC;Gfg#*4N?B`ntR8q}Yq~@75#zZvB__lKxwl@4F!VeV6mQitguky{0SD z*L1yG(q6$&G+h36JHTnT_Y3?3Y!f|SbZQRCQ**j4{#}U_dn5j^6XFm1ApWrH;SYNr z{;=cu2Q&-ud1WUWUs&l#zo$qL#zmelx)1gS#RHYB+zTtCm7c9+D{L=o&K8J>?XTet zKs-|RWEmpXlVyMFBI)zRhL^2W=OC1*4((55dkQsvGkSxbLZ*V?K| z2isSU$!-k4X!CV@Df@N%@7jYGD4IijQXXaQu0s0ks(Y(A0^C~#r<@Z$Qw=wq z12_D*0e?Pj_^~sL{bOf1M>4Ly#T9$;DrvacA(m? zc4&h2o>#gU<2jP5p;PrmzJEw~v)`1&pWh_UE5o1j$}VAxUQ%{Noqve_B^gsZ<|~&= zkXEX$TNz%Qx<$gYQW=OVi|&?~e0R|ch^s)nP`a%YoVS%yv2{4X5U~a1sOECU3@y$X zh=}tWuon>jt@s9=ZGF71G43w=FuBAV&~IZHzMU>;+_W-9_%DSQS zDu23LlWZbAAyzd`%VGpAYmmi+E_+r0M&@$V>;T<5^aDk|*@@#20%xBUU@AXZDbq|L z&I~i{5YF1w0;=r*!fAO4cR}_pCxP&!H9`}v`HSx#Xr$w>qrgsB@a(h_1NTbOVhyq8 zZXc<;{lEB<&Rg29aWFi-yagaBiF`?8^w`6s~YwFRZ8uk9*YH7}j(SkH=q#vYs(m zIUJo|j|2{rS&%U6dOy+l#p>{S|GBULK&o?kWB5vlPt};j`N@AJh2&q!?~@k$N$QLO zlaRUv!av4+YB=jkaNkbu?;`{NI3GL&V0i*kHdbnKIO}X=eIr@A*ODqmG$ow%e(2AJ zp64fFqA44NGZ5b=Kj8u!2uc9rjDoWZ1cAn6b2e+zo(uvX2mc5P`14Yo;k*9`z7H@> zT^)Xr_(wu?eLneH43N;(c6T))zz-+J)cOT^{o-pn-q-&3(sjQNu1p|#W#WqjGs%*} z>a&y9)u5*RaawQSjO zh+yNshW5{{4u6fngXCGs3t@Sre@tG1+B^&Mwk-E5ihR5}yfNGqqDOBEKS!$}{Z{fD zl>L}3Vm+&)c$Q6;s@QDWE3W#1;phJ6J_6C_K5B4a_+aoT!``E;$bqUNs$V-5?hb

;ah3xBoI zUB$=4*5j{))2&+@UK>0dAo(!(OZw&Dy9B&=GdSW8*$Vo$)Q2ggMdjJT-7&;?ET+a& z@C9oni*Cz*4oNA!uXGVCdAffi9d?udSN?fE`C1ZxUQ2$Gw3bV9>eQ^;sPZeI!iv-V z#A=L5!e_SPGh6YQZTYa$j`TuU|N6w82|en$Ifcvco0ZGF4z(LW@n|ASf&(vywk-_a zb{<@N-f;zMaO$$5GriGz$8KBAs&8$gl2(j?k@#3}j)Cp1}0n6P>gf zr;1c|989z^tQ@2vVdn7S4pOcYbaT3QfuU{Yo}yQQoh&$9WT-w?DRb;1J(N>ajAm+B zaSTT0V@Qa}1PG_v;O`Q$7gg+r`prKIw__KXKI70#LWL)N#OaWpUg7aA)Ser|18(qbLdcp~wH*A*2P5LnTm)#* zdMpMlSu@gK;xT&oOMfd}du#A+5G?b;cY_THF=DtO(ZoTsDZD0(tg2W!N`uE#@Q^}i z!VQUQ6F^*xvOGIxN^864D?J&dFH4}SU6v3gm>zCOY)+tAHYctLWgTwxkBgmxf)^y< z4;QF{XqF9$8xv@)8(FZG87%ajZuFhb5)USTcu@3x-Re6%>S&J8?*5Fh`^6k5E>y%I z!;=&5af-1fd@u1~Lg(3T(!!*ZQp>!PJj8WyECeGIOd&csZL2$)rQzZf)zd7IDzy4(^&ZHm~Ky0anE_;67z2N5wF*JL%TqY+x>@q z3_dBHeAs`PN>5WsVdXGsfV(#IQ_k2du60CK$6j$ibxKwtyJ{&q;L?)-owUj&jFC+Z zt4=`QIe`?`X=4Z-*faRpHAtOdHC9FCM9p@-gAT(&-aIG-{Uc1|#@QXcX0-AX! z!d`Say!t@dK8WJso)bmmaN;4r95P1|Q3;oIXY{_#dqDgiEP@_6aRw4ISR`M4I)GmX zK0?ByvW}x|oOX2R0ER*VUZ9xT($(9h(SXZJQ`m87S6=}5cn@I1a06;Z9iAnrWJAYB}_Cq2*izP;59Oaw=^f4jxLkoSgQCw!I%pyS23pT{G1qzSPf!L(CO^ z2s#f3S777~uSh<{bqo+s6>Q{_y^ZO+$PS3R(vYa0mqk2dUe4|Ht_Q+@4iv74NW%3H z!xaeOdWhl5p@dvjh<0lH6_()PuYya`P8@Tx2SEJ+=V9u)d2M)Ja22PrR|V&$nRZp% zVc22a0~YLYAS!;~LO=`kO8s4i`7?rF1^Dx;;E@3F`jOx{rk)EfXY{^2@tXuvzezm8 z)FX+%F?CwFfm50d;cW=yxZM%T{OXSIIi^1duS+8Ly5tv0gy1id*Q6lzn$-O%An#9| z%O^qS7F<<;)Kvwy6_7!}9R-R(!3#`(RPY}VApkKLn9He3qHqP=tTtWOeq;Ey{~sU8 z)jIhf?60MkU`$2UwZYwilXZ9S7?Y;pV+f8;?xm^gQc*5sbH>kUQH!~IE{oPkElsDC z0@Z`#>A|B)n2(;<*^s=1#X+3t6k2>5<_mA|&x45@!+8Ft)PrUhOjNKp#|lO8$D&S& zHFX$^dMDP*#gt?wrw1np>V(sL!JXzm$!+7O!q2%{d#>P3vqmFJhuZ+?F<>-)up%72 zKy}0gi}~{v?&XkoM(cGx1nqjrd_ePA1aV}+B48FRmV_xhqitCM$8;mvJPNYelC1?Tu=ip zH62Bzj-4VdF>x|KPlwBI!oo3K_%n!{F&^8E?hxOvwXtdjl$vplAFLQ2p5x!k?LZ7E z_xf*g`ShlLyE8M7tQ}K!EbKRSF6=k=9L&vqtdjBfaODf^yOhlpe{$(hutLNk$fe5hPe~a

jM>28_eSOD^{YV)MakTR>nSrmJn+r{UKEn;E#f1t*NVhfCSty7yN7u6G}#*W{^+ z#DYucJeQyyTxA^{YN2XvBOS6)5!r|kBbpr6!VM0A8we-s_zuw?=uCSYi%K7ht%;VC zxOjG~U2VeQHW-E*ycpaTpRT+5>Hh6p=-%#cX8UgT&*Xad%-|e7T{|aui-@;^_cY?Y z;Isq~rzOt9g35|8fFr6WOwe;BTxTU-Xu_Pr7l{}}MB;&vh7C2@xtfQ*(|5$qy_^OKY|3Bx>nR9P)v)?T2gjG=p;x2?u&`JV`%95}J z6oM#=LIM^AG`Mte38<|ri`r@{px>%hv9`6=ic1$;MXj~king`iwklTr)^ET5-k&-5 z-kck-?d$*gr`ee-l7NL5ixWo*B04JVIS`)f0f^ zgnG7g{aI!;QrTH;W;Ie-8xL}A&v-8TGL}ar+=@j;axS>Pbu!PiDG3?+{)$Qakk-EpQyN_AJLacFh*~zYM#-!T?s5AW& zHZp^at}a{F)$N=_q~8-b@lRL}&eyxT2nDWg=N63A?GMfLAHy<@SwL#pg=qydQo~8y zPZKC||Ay>@!$hRgNVelhIn>_VfSc=Q1gwzQTYMYAa3p?S@@klPi>NqP^25>}(c_z4 zd+ahmbREwCS!e9gNwf#28zDRzXeZte5QUi^ z!n=w<%3Vc21~T${i?0VD64#e}vxJI2FZpAb|D(e88hwFxFec7`Wu75S{33)qGXFDZ z3-U5!j z8!}==6a>K;Ff|XL14HFuPLQ?5IX!q7AkfvZNXKC*w3-}0LLyA%|-H~*(RsG2?USvfbc zNIMtW^-Zvub#q2u_GVhW2NkW!J7ypY5%doRaFPrjod| zR-?nKD~1)Pc+~k$ILz6e|7p0yV^sJpP$7+ zww0e(1@o@DOtZesbG13OT^#KVkim7G zvkRNAIEFPk<^;2zu#9o@NuRe;#GCmS>G60(m*c;qh>-925BuR+{ILIXeCAy{?#rC| z{#-#LX^kb)i`(^=;=#YvvAcBGXQaXz+9PNDL~`Lzurk_9oF4W}4ByLK|2_XBpR*zK z8Ra^z}wAU z0kzls9NFLhx%s_|F!{az2f-Nr>ujCF$GcH~z)?`hQ4^rn3Hv0Z?aSCpK4Kc5toJ|i zuGF^tm6WGul&9B>c4xZZ2rT&!_0!&~QdeH}{t${r+1VhqxEVz1CyU$gz{oHOjsm@rs^;S~ z_E&sM0_?Xug3M+RWcFZsCq3xBpz;?8c5#(6T^-z`6N{Q4*Cut#wxZkV{t7HV5?Wn< z6h5e^nNA7uAh?bOtw%eXsd{0<(aRbB3iRFiPWucCT`!sa9hub_HsBX#@w3N!rBi5) zR5)47e}h=o&EAVqxj0hiSeV1H$Dv_uluvOCL6~RxH+Vni;h>GwlyB+ObDVIT#XF23 zi=#+Y=TAF_p3cd5>an#QlIQdXYyB6|^P-Hao|=c0zpJ3?qek(wW+Oj$df(v0J$PM8 z%q5seO8PP9qrTcX(!ef-DjpA zX?>$k->tzu-2~gGTQf7bHM6UT+^(XB6%qJw(J#rRg+d92VJAE?$xN^57pf2$;2P1! zHQw#=klY^I5i_mu)^F>OozEfrO3Z8^|C`uVKKXz6pGnI4%zs-E+gmZ|`^+lvzbE7V zd>&5+uKLr#+sc1G{u#D;|DpWH^O1)i&woe;{wE7|BzfGE{J9?cl8E2)5x;jAGX7JA z`}EjX__hk)E_}bxb@zVZPm4H@_)`|4N+>p*o!p@(8kwLJIR7#42ZZl3lOJfN&EZUy z-;og~n5puw#5Tz-w8>lr10#QxxlZE6SMBwRo4wvL^XBx--*huSpwRvU!N*~!|HlDt zpk`+Nrv#7hXy((IIa6*9r`*hxzgkG{F3q)>RpicHbDkdy!zDY{Dl&s1u#h1y8gTfu z|GXC9c>tkos|Lf675}~--`AC`GwHrvmyPZ!q~9|!02r-z_FtsefjGL=>m2_zbvGyM zZjS#bN&>mB7F<`r!*w?&>~4;_QFl3AX8Z1vhzu2T9#d5H7!lk42`Aytx={9;lO`~k z7hQl6!Cg=4TzZmI%4~k6nRDt*=n0Qq&OMgzhr^i+K*XnA+wfWcQ z`xoT(#UP!(M+JY)|45H}3+~rVwEGLbTfnH_EqFq?>yn$3nc+7lZ<3$o_T(Kr1bvpM zqEm^?qlVfwpK#y--zVOuF|6UA#@-3xeb>L2bDS49#y{cG1c}cIzKP;PVpsChF!8A* z^Cl$oYf*rBac$8pMdWWOy36Ie;59Pv4;9Syu7A5i@otPiP{8A~20u)T-?3{GH#ilUpiG8*l|p)S(TBzE#k-rZs+-yqZ!()`T+RNUd$0pXU@2)DdK zWP3&YE%AzX!$Q|C z(&i<}YA<=uq&WN!4#nf`bobV5erg(Dc(UwXK>O|bti3y2oP&V-16{tME(IltuuBpllzQd5BoRXSh7jmwR4lh` zBAw0<3ZD!u1{|Tcy1l&@5g~+^lS>tL=U?s2GFKODF3_TFF8G@AfS8qfkEA?9Po1RZ z=gC;|rrjhq`I=bpH2((f6lcZM9HcpI?sfZj2gFbF?{s5cS-92R;xF1)0K!w zK{lQsI)^y50&yH)ciDqie#k>Ww52OSMv9et9yfN7pYAiqEMRF^)riFDHfmtN39 zx@EabFJDc1^*Wbccd3Z-Qtv9yWv}v3d8VQA+z{q(P;9|8|0X@A^VsIOVYhjADSww9 z(|F)y(%|>Xd7N1*Em>qCoY!v}s@b#|?nv=xG?Hm->O5a^svpIUIqDR#h*Q2GY^6U_ z5a}=vlFBQ0UrZ<;Ozpvko7L{d;UQ1(a=y{3B zlSq?wWY|iEtsLpLNS7H(o5>$VkE7}`J!Uu2z%*JuS9aT_vv8MrPcF*$0>ZXt`dbpa z^>vKh`OoME$TRuRNX-0Y!NdA4$@h{^OX+<&`CD>=!_kNm`WFG0ey6*B9Y}QjCBiLT z*I~i#{9j5^R<~in!|M4g*K=kT(Hj?$uGgVBtOMZr4q%KLt7X*KlDJu#tb-G+m)fbet2n8WNI)5XB zZFla1?Xjmg<*%OSKb0~4y&mRYH-8if{L%ajHxcizi0=Rx5<3!C=Zh}CmH&VgsR#0Z z$gZaRhxtz_|5X0Bfsp)t1uwWnj!4i6Np30v*GHbexdTV?N8Y9w{cVbE*WIb@__>kY zUpLoFZARtbI$lE8>qx%6}yOyp+P{M@fKK5_6 z3D%8kKM=&tfQ652E`Z%F2isi#Zb8T`Er(I^4jk9rQ~BSJ_~+o5*F|8-xa&U`ahU~u zf%El~xeiq>kww=1z`=`LbiHM@z!VESP$A%4{@)=`G$8c3%4r1N2LhGP!WcmrqKRM8 z;7H?H-G`gT{YKq~yLw)>b`FZQ!2SVUDV*zn+x`R~NxU2XIaEmE#l%N0ap<-p2m3B< zFNI$1ZnPoNHv^oqpb==V(N94p@{|+J{T>elnRl_H% z$3oU))&Ch`|626y=`bMY&{Q9hDGh@851P&()2~b$&adr$g`_rlUt^a3*ErJCqerSbl)OVg{qPQr-v=nU)EX$`ImYvYb^wL^l7)bwK={e1tY=o9yEWXLQD7|I>8BX!+vn0apO zL#=~MI)OYAvl_!iXq=aZF4Bh+yXK|8Ll7xHmd3||s6%z^Zv9WZh?+|b z8xm@Qk$H%Z#>OzeNOeB8vOra`$W2=?DT=i0$5{PvNzKM3^*DBkEbO_7NDCd211k*Jul4r{Pq)Pvmx(L zm~~SYq|6u*95{dB8=PD>ZS>!OZL>)4a+yK-Ozr3*IzOPQcc}Vb6>xP3(fz}A|3TbI*+FtpPt7-Ph2LEb*o4VZQ-$r#JL82>@Gw?uj$^32pz^7zye%D-$H=4E&`>yn1{|y;N z->@HJD5ciN_UmX5ZUX8r(`RI!f04K6FABb&&ws>jljQld`kF^yq6OZ*;lCqE z^d0|hrg3TKdV~N+Wr*Uf4WJ zfQ~X&Q{e}U$q5+YIxM*A=WM$i92G;Y#Zw%br<~;!=(F^3pIM(WLr}jx_9LVi5`W=t zmP=gWUmLE{F8`-4k%mW)$eb$7#T;#emeberuXrwVAHH^%_+LeIAL7RPnYx*-PaueF zB7M2}DKI3$U#%>12i4Qvb|}SkvR!NPKU2jlA5Orra(!I=35Tv0f+nZ&v#3pdis~sDMDCJwt3$sewxAt-P9nwTpu>bY0_KZ`@J6# zB|omP+q2j^w@EDC8gt(f_=Y0LL&}Ye5BKxIgCEJ7zwZ6^5F(vhNaAk~+RN@m zKf1~|jw2A13xe{K@K8F3)=8riE+u=~=#$f>pWkj6fDb!KRvG`KlMjZq99YXa-@2m3 zMVRX&s|WiXoaHP0{%ThOkNw{Xcrwrtdpk8@pb7<14wY6zbk#Kn<6x5{%&R>Z zbLQlUbfN123$UnRMggEK_sN-?TfNiR15=0+pNHUqSP<2mBi+r?V$PZa*5|wldF~|k zlZY7={*8!A6=V?;Y2_l|2C|X^hsG}?FtIJKzdv+(dM4Qh*+itJQ(U;ZFq4b=-%jK6 z+X@+4KNM*H!R3v7MmxExEgA`v34QPow*C*%xN|FT}R!LPeS&vV%nz*+t1s zV@=w&XbHDSOyY~J-aV3*ey)9sp&|ApkF3y?=_dm7c|wQc?2xm5=y3BR?y{@!mmZ;A z(+KV2%P({NKY8Dcsr0ef$9krFigcvUtt>c?pFLVS9RyiUASZN$3#KDX)kUPeZ`KrH zH+SC=D^=PJ5vkzlU3Z)#NQt~2z~l!YH=gC>Mpum~?KlL>IE>wK*bd=4dnqXgl7390 z-#N_roJFJ-eUuUNBZIk!udi@Mx%fK=Y3^*C_4NmW=Fi>(z~Da+dpzbC!>?mk;J)uV zxf7xJMQ@1YbFY;G#sL|Ha$e7Ys}+*LSJ%l;AaV(80Q>dGMPwAN1n&h z{jsu@qg&Ux&#Nt`WO=Cn`K#PF9;9(|i}PkN-J5kqK6jpn=(-O;^$9KT>Xpx`xeIRU zmHDo^RQlPa-tF4Ox1-R9#h-aw6yvpp5i-*WyNd2fIZm3w9H-#aVT<`TH3TDyeWn>I>5qoqos(y1(&5n)x4H91*D$YfWg8Y5LsKI65F z)*)(o1EGlOC*aF3e&F=SC4t5sJ|s@{Eb zLe9pUb<}IMvPeX*i{h{Vdr0IhAs*@8Bb{?k&+pmSv~pv=Z;b=y;5v>!y6=AV&eX^b z31wwKj#7)W?#Tn#Fogl8Je5)WBO^P*QjqJ2=FD}y9b7H6?0jCi8b#ifGiLdCFgD(W zzcxiUaF=@cEXOk^_}2JSF<+cIh3!5?E1%x&kxm`MMh5KU<~e;0q~$>8|C}9mIQwFz zfAK9L|LZy{$2R&N%m2?mjBo2A?9i%)Fy zj4vtjy0r2bQjpNw03O99+JD--9SvY zxgdLPXv+2HeVa4QVO&2E5ZtFH<}iyns>!0OW`=)6>S@OfIfkG4ZHFdr_noAxbaGzh zeJL$yf62QidYwAboihbrDdFtOur?#R+8R1LJN{%u8s;2y=sY|fA%7aI`_GPb$DU22 zE!%WpTJ`NRUB_m&3)S1bJJV3!>HP#dPI{ouM+Dj$h^dA+G9rA#RzQ2F_une`Z|}$9 z>FxhG_O9gpcVkb4N2C9Qq2JHh8jjeff~*;`d4J?>md0@)_DM$8hzvdf5}No29demi z^2p0gUR34Vgo?w|ejU5dM2lZFH~5jfqvl8-&x?qE9pigD;krj&Rf6M}HBreKIcqRF z(jlKc{Xr~}&*CuBlk*NLTH$4V9by_6>)wporXw}eOpxpPF>bI-eeI@pvHTa5R`ek#;Vi%hGm)Lbz7UheYF`u9L3mj%|b5}wD^hd(% zLvpwZvybXqwIODOlL#h`!R|i>hguVhgtXY?e;`yhMJ0e2LG?GXsE*<^($5#5r7t`# z3-;r&E490Es9tHd6Efy+H#=p^-pRL8!}9y|S-?4baOs(_fWb2VB0bhHtC}I~`5~yL z*wgi$-5LJ>=v&0Owt_>pk;UyuP&%`-;T>YMUEbOld03tmbrxWwYF5n#|_{XNrhagd0PTVhwJrYW9+4}J8XmhSoc4b38QFE;d z-oT`rqt@8qANs?I+w$t@A*B0kw+^*etaOj;&tJ>4$(+PB{MnMsABD=C#sr@9@O#ho z7hmpSzq!fF9@D%q826(2mHz6r(R`s_Qsws<94#vFiz=e|xZh{EfBebOBI_p-etyy~ zEQ^-L{i<4j8uzL0^!?}TTLFLD=iP+=kHqHuXf5N{9N|ws-EY1*hGq(?p0;lU{#A*0 z68=YtYjUbuKUw5=J2%?8uU|7hnlAzVXx{iekBa8Y{EF_;e4g)@M)QGRR2j|p@XuU> zlkm4WNF3oGH_ERY>z_6yTD6~l#EH?o^$Uvp@}d5Sk^b1J{;Zc{oTHZ~{2v$GlJx&s zcw&}o&;hcNd!*>61&YPrPT*h2L#}KX5RU z<4}7)r{xbA7yDIo+=O4D`$Xw~eqODA^l|>!h0&rR{=}So(og=Gi?zXyq`UmYWujXO z{d)_aD)e9DN>{XH(!bYS<@5Ey*RB6#JY7Gx!jtib^0}4tTtT#WhCj2}Z~2Oc@}Jlr2X$*;#7H8)!NCy$t#eL0=w`$dENLA#B=k8mdcoBY8n z{}Fp>PG9%OxH|T6%)f`v3i1*9_MBBL@~gW0z4}E*8RCz~p~$ZEV*Tn~{|M=OtRf|)8_g>MW3V+}qJvj0Ab1*l~Z{Q1Sj}m?0zvtbO^D5z& zj`PpYT_irW^(!Pb|7ZTYIS3r(PiXMZz&^V&I%L96miXnBe8chEJ|9HS#S?#mHtARP zh}JLlOW*S_wd{@g`_1KC3g;qS?)&V!Xfb@MCYpcE_s# z3Ea}$WBfh#2iE_weI{orK%B$nv`3@8i_1szC;JcDA6sHDpUL4Talg2yU-Oq7jK=-t z&qBPoTCnR(s>a>{?H;!hR+&dNVl`43j#+1-Dt`!l`# zD|&wmvqH_Eb7qT4}Q_6p<@`u&_&TdzA_c!MGB9?6-V@6XthLzKt)Px8_GXrunD$X&Mc&xKv_ zhL`=*VSgQzcVBaOAn!v)Lb>_0xJVBPOkqLa+;cv|>LSmW*Ed$;ym?N{>iltX!sq@t z`@IV}bw7@YI;p3#>`-l8J@=wZ<<1xGtpmeN)MedUmvt%k(>YM*TUX^j{pswgO9x%D zo&7nO-OuM%>8$Kho%K3X?uDCHm&#pQxNM$1Dlgwv)|weqXnVA0j|x0Hy4HGu>9xZ@s1njUs2 zF9WU$*gmGP&i1dfed_JtT06AP4!X%E%*qxU4@|Pv<_8l=-IlWbgEE^x*%nM{wL=55 zmIibfZD#^g)Mx`YOtX8ITm^Xb8rrO3IFqciwSiezZ)>PDu+G-h+rw*ZZ5;zVW@~Rh zMDfiwMb&uFAYcnTTVmSk!j2MVZi@8$szS)N`H8942D@xQ;02Rx89kKlu?2OD zW--JkHeO+?DJpKHJFpwVyW1u!Y^jRtY?*1Rx5b)#DHv^ZHOd3Cx|V!}tvt<^*3+~e zxGLO24xVO{LAxD9>ykQq;#T)t#{j0avCb9+rke*Sv*~hKJ*a)wEp%DXWGmHzDfJJ$ z`bMx+=GA~59zueNo4WdnN4t$m0h!-T@V|C8E> z=-}TMJo+Qi{ z_oUl3WNN4LP3gSpm#EE-LhVSys<01V+xXsd90hsovsgcC_SqN{hv3HASZ{0CpTTd0 zh|haZm?`Lb#O|ZZ5W#G$IyEzQR<&eX4!7Pc8ynqW|Lir|*j65@@_;Q2rdaPnS{`8I zL4!?h#%1-kXT3e4)*fANQ^Rd>y*;wlj%u|hwcDPJHZjcBK*F(LmaW#);gzkJ4>wBG zSJ*m0$#1YdMp3e4Q&7ibDjIVb!b0%_H>I0m+khugV{eKv^Ew`6+j+Pd{B99UI;?n7 zKQW~uW?++dhr9cb%?&II3K|_Uy9K9MR^6C_4u{NSka#{NmaT&>^_VRg1<{XoV-9MvsYxy; zrrNj3_L^h|)v2Ju_U7bdd8+PZKkagC^00PWT1PM8?y78eP{o4NY;T~$FDp7?OS?E@W^Vh7$F8}A+dwpwqkjc+7VQxllasvQ6DjXlDA zwHZuTzyiEI>=q8z4{L~lpcdL!=A)YSz}&ELEAvbqZM_R@ zavYx-V7~?jKut36wrZ=!gT(!gNaDdJFj%4kg#nrp^)QnoaF#Dg&qx5{j1-nmGt3{_NAt6E(n zE7;py7q8`Qv3dWZy2e^csDEADbAn4>ja{#wcK5@(9+uPImNb$aoo4+_Zp@wzPW{x` z5iacr{63b>7VfwAv2e(J_pxw=J9*T#x)t(*Znj9ZMdok{H)-e;;maLv@bns6JQ}n& zg&b^74U5vpjcD2Wh&xs^a0$5OQD&3Rg!E>LJA|)xh^SGbm|5i(yI7lJ73|m)*VQOl z8=TKnpvQJ-twHl3x5T&-qWWd?(R-;Nh@-f>>GMduj z6(XNdG8yd-cyCi+wqM{FU*DswHkLinSg_>qOR-Y)Erm`tK8X6iA3|WM=q5P9+ozJRz<{k@5!qqG9XT4$eu+f&CRKCd;2%Ez# z?80txqIET!r2|$u3hc~jtYL5(BBpEQ3pO*Uw{5}gFiXu?YY=x-b*0VM6SYMT{KZh3 zqc_3Ck{}hwPqW@^8y_lse-RR;t!MIyWU?^8zptogUlf}5vPSaI=KrqX)T)@)%uUPNSz%*o-X}!(g#_Qp(*Mf{H!oI3&p?F7baeFA0FAZTnfZoou!8tR$ZKG`$bTUG70N=wsjYKDh#0w6l@nAC2wacH^ivZS z4YS^oT6Dp7lo9k%(Tk5*(yPfPuA{Rh)~BSG_{?kv6?#WY3(OOmy{N_=|8cktPVY@&TOsN;cJx|N4Jol5oqc!?=W?14B|$0oVVUZr)MCXT7#=;5Ce zBRI!OT5KZLSZ;&Zi4``niYo7LOq5#A2NX&-^iYHDoo^P`*@EkAY6a!U8`_}dCe?_L zY0hbE-%I9%y>Pfw>jG2qflZ>Fg?c;u9S%G$kP5cTCRJFy)Al$0+U+=l!pHkwFjjz; zfFgF1YNya~d8b0;?>vyGbQMa1?>WX&5+ojTtg?({LAtE9JzFILn(u7nP|A*60)a{_ zt!cC+O?Du%u@ifmY(HTrc*b>+3|@D@N%%oi9;e4Xrx1GZ7D+*wjT}_lvTu=3>~$ME zafOq$6IZ%Q2~KWp_k`WYe~sfdyR|SSgp}_Mn?zKhw68ijt-f z+e*;p^-Fssq?Bim40a;n&f*EH+hvbr3-Jiq;NKk?rB8KjbyLv39lA@!29$$XbLIyQ zwf#(MyG@xwou}JqYR>Oq6~5R4B&KX@aPDb>GmTmn>(90*3ft(Dkbc=*|`=JU*TZa$%u^RL}-U-v6|3E)<6&9 z^ER2d6;3uHF!kaYr5sH|wJ--#GVQ44hpuHJSnJRrRe*I7C_;KIxUaK)WoDXU&02s+ zC0c8pwiYvM+igFp>y$V7V&A5%(LN*rz(=rs2*%~tN&0vw)(9Erv$uBZWrCNxLz#QG zWbUox99KKW8F8F=7UzHf!;>YM>0lmiZQrgKf5~v}(He#~+_Ad~I|3z(5qh>-3=S5$ z99I^W)k(9aEPb%?yn}6-5b-u_atzSGnA|p;ZA(Ymg5kDwlwPJn-kss$dV0a8#7@pW z8{C3$w%^))wihB}qwUop!O^4-Aq_7Sf|k`g;ozPr*&3LeE@45P0rYm;O}Jj-6f9Q4 zn~btBlY{lYGe??fVE=+~YbNn{UB!i><=g4=TwBOz(Sq%P`HQE84SvA@7d1Nezed=o z(6UO_fk`+x0tv5=!y!z*j*GR8^|s37J3VUQCdWA9KrVY<9IhoJSE|VtO(KUyFeFcQ zb0~a?JWyI$%kD^WZ2)52{xS1nEI}OMr+g%jHNt`99@SSD6`Ha5(s`)c`^gt%~s>ZP0%q*nkLTs>GndeCU;_f%s@z;Fqpe7JoCaLg%tt6`{ z_YFRT}4f`w4d8X8EL(k6q#z1h6R5-lFfU>wWw;3Cq+wqP7}B$0l{uuMAzXt*?_b~vVR z)!HmmfL*XWe@S?be_X$|zC&6vBmNaOCeC7DRvJMD#<;24>oUw?)20kF6F#Yctf7@< zJqDvHQ9u?|2_t7bSPDdDB`H(J_ROwO8>`{0vo@Fxxsn;YHMFTUg?0$6B?vT03F%Fu z6F0zeZ_~C{5?h?bEiN{k+NbVe%TH(a`qSZFe_DHeC&g~BUr~%A5@L3r?KT=2p-RMx z5eKVFD!AY2(%AY$FyBtg+;h@LHue*-o!~5IM9Nw-;=vYYODvmg`_8nfCAN4Lv!#*n zF|UTRVU6%_a3#1RbkdbhGbu@ox86!#C6;LCq!)LW=7_N$esCJ^WNS@1+r`sg>|j;$ zSxWqgA}9(f-h_;$EK4Nb4c6?fUn}efB`!)-u&|J#8I$kc#Nnre_xQ8 zD0*XY*w;BG!Fyr?>o97er5)#a^Z8Ymd+v)0F;_rcZrC8Sg9*HXJooIUuwBD&yKnrFMmy$ct*0u>) zgaJK}B%DE4aZ6zgRw{f_A<%WTt4M!P4o<>|BfdhKJH zkpakW2#d$q!OEGnVKV~4+>ZAd$u*l6)*fnQ3G&UlI$NkjrZ&=#vP?6#ScNI4mFisx zK&Yig@?j;(nw^Dgt(<&=a!3H_LKtdMOZupkF{RR0odi-Z*Ji^Sfo@kz&6t@N0vJmp zHI_zdOh{$t2%s2Cq4PhMMrtfXD#a=ck*cjHcrf*6nz*+V14+p~Ai>*qnoW(h#ph5Y z-JOC*lyoZn99wmrjshL7YwJ&`tq(YNshE^}tTKHLMoExr83`PaP5{Duwv18Cnms{%(DWGZ&*WUiKoES5^kmWpX&V37 zpm}N`OXVl=IGrY2JH~2*Plh!}Cb1Ah!M%>76o@g*-n7Yyb}~x{`E}s_gAHkY)3f>;_#A%$vBb^pjg7X_949Q*W2!N~ z%xhd?Qw_HFY+JdM!f*0EWnRjo7Vb#%EwUBn*UFw_drn3QP=%h9blA!%b_fgSAzYR- zXXhQ)Vz6Ogz&n*JZ*+KLZJo5vsF-ObBvTTar=4&TqcjvsFh$U1Y;Kr6J9M~=3v(Nt z;V6b!qAH*^)1*pyyhVCoPLRbZc3ZkuLz+*dY#$Y`34Js(vTt1}vVn67wuSDRTQei5 zMJjy7`nmp>IJjdovmHn%7putt6|yCnyO1oLYp4_8^t-Tlk3G^g1;>O#q~G$6cjiTeT!K;vunLr0+yB_k{S<`B6NPVMLP(l>mR2YX!>T(Zy43`E>o3 z1h1&iT6CRq+Y`%I9m<{<+7Wa1?UCD~hZDu~1FVe{e?VM|DRt~Q6asgZIAfi7t--xwQ$4!GM65~w@D#V$#Es70_Kw;tu)`9IY3mhc~6fYp4#sKxZ_NNG`d`3%>3)x>z@;Df~cZq&?nsr~SJd zpB)as3vCTD@-A48+m^ z0wviJ1__v>KKQqdC$kPy8(C{s`Bt~ekJ_?{Hn}=nWoOC6dZBr+y=Eh7yQ-g05X=ul zB+h*i98KUjIlW^7FvB?gA6+YBOo1tqJ8*Tq+$*vE-72dvyUP$6?6oDLk^DWj_BNYb zV+-Kp!Izx1g%E&b@EteRV$s`;Wa-M;ybJa_O?<#;+h>?955*GMoC{iP_sznL$P+cc z4&$bo!$?$lN1Hau%9PBsz3LUAMkH1-wIw0k!N~{$G(sP_MGMRt&1-fjlt4=2w?&X+ z51!o`ZI4!Lt>+UlhBqNUcphfp%%nSMNcf#+j;xCfD#t6ZX`_^m?gJFv(tU*WX4vji zP*P4pf(<_8VB@7kLLt7>q&7JWGvmn2tv#5J zvq1P@q5HY>pJ^3$B-)V`12Zd(&p5f!4sEoj5iV6{r%Mqthl6{wCb2W6$Tvk3R*Ub- zr_lys3EGdHT!UU(gzbrPQ%VhmOASG$XtYD>_u1kpwtOS6u1Fsx=V~Y8f+z{LQP03k zhd_N>Ayd!PKxLaZ?xkGwO!Ttd@37txZtBtL+P-(%?l;r+7-!sKZ_Dc%GT+d&TY!0T z7_)WCCWFs)gO>(3Ie0x&*_e=wu1R9oQcIL=j-I$#n`lQEVHr~xA&A;S@3_~-x7rl6 zT8AL?u%rn{{b6hd(8269S8lgYH~Y@T5-da| z9Pf?^-o`^=m?n7Jp$6ksijxok3c(E(>1E%=wD$;%-x>DuVz!ssbT52fm%0cqZj@hM z9NH*py^j~3+3mORrojC2;`(%6Jt<$4&WFC_UtZjr?(inpp$7l|JcSa8UF?Ah-250= z;({so*?%x6hAz=x>Tw{xp9P6IssthC;yr>gci&zJ3M;G)#Xhc5A|~8eh#43K0U55> z7{=y^2CKryg)O$vSc`BTy0Os^P-WXg{G(I#VO^^Ti`}k}Mq&kR4~%o>2_*lJ?B{A- zU}&84xM_JgkOl)fY!C5(^PEsmd@E*I#!kTw%!3o3yQ5eCFsCXl^$l`Y&!tA zF=3IMGkaY>+VvXsLz_IH{s&>U8A$)FaMe?T4%i!k%o~w;yH2kglUv(j3&t{fCI;g4 zgXXnckY?vq8AcSKhXZ}7^>zs2^L9FbWfolS9Lq^9-3Kb&@Lgurg=3w~EbSOBDlS zDM&8Cyp;^(K8IY|RVLd&T&EIS3xS=pNrD$vtr}sDY%L2g!$~zo&~O!50%O@JRMyhv zxL5zOzQq+)6LWux&0j}PUnD5vn>;TP(@6}ME{ajb3_-4EZ#8)pvY!`fCC|3y4YqJf zgH5f3oSTR}OjSyH8XZP}N{+((=GIUeI}7JDi+0<6lRaDoxJZ$^f0Y;7>fw11tEf|v zu|%z>|I!raZgHC3f2V?zuIcZ%pUwy5#HaH41|)WRG-&3D>OF-mP3QW8Lo(D%EVH zv=j&R>0AiMjtpRRS-^OYJe-EEBRwX~f9HA+_N1Y4Ay7%W62k}#de zGI-o`NIdSOip*%j+rfCGFx~Z(Cx&pkBETv5HOEWc!Cf%9_Ifj-0ZWU1CzGt^?x$u*YPa#?LJr<&QuWQR!Se$YW>p zpt`dGrv30l&L9!v52klNH1XkX2ubENr_yKrjk>OKB7Gq#={>Q2ef7A^mi?Xn>mAoG zVaw-^)8K4p*jN6480U)YIOXO7ZXdu8`|itG&r(Ec9ck%xMMUKQxu`?Lwi9|Fs!Qu8 ze|8uVl*LO)Fg`kg{U4|y9(GabkgXQRK7_y&crdum-|BEGd`Ky+Y7x^l7wuH#1O`-x z7V|f*_<^2UO3f{pV5?Y^YRoRd_0onC&}xDCEhZ6|U<1kk9Tjp$=$X+?7>b}C7FBvg z+84-9(3oLR=JlZgBMihO=FMO;g-&4Z&xC2u-tH1(2|Urux^%uVo4+9}*GsV~ z&X>NXPQp%$NTWqs_SCHqbBaTKIKz)`uwy6L;oRS7w<9)7Mi?>N_U78gqqeuaG7W-S zK|Q98D>O7HuB)}zh0t7+9-YzwrdzvoJSaxd9;s>_Yn*UFVgeg^yJHL)r>Pu6?4uq$ zu<04x1v**LTsbHE;7sCyR3)GCaJLWK{U-TW8D330kTDu-uwa>0sP(J`Ca?t4Q7^;R zIT2d^wnT8eYo6RsPZ-%nERK=a@EE~byd1h_07rki^hCJ1{`y~Qear4^=_Yg~6> z*XJIdm-rf2#2_oP4okyt8tZE7iKLTj1Hg!~WB$daLOzX_Gy+Gnh**>rp@N@`1=SYT z;oKKNdNA^IeJ$HTjI|J?V^0;wKuo{eAlTQeXm4j9 zs4>@YY@Fa)qU6jXXMfgZK}4F&5*BicCZzAlZeLZtY%5-30k%0yUlNrDyP@>nJ|6R{ zG>yoh$zZHNE*m~-_%K^BdQ!uv(bsLBg@euvY@`zSTESEkM*}M9bsmBj%kvD~q$M^s zj$|(ZD3iS>qcEbh6Go&ZJnLqQu!DdORX8aWZy6V4T3DY9TJ15sFCB@bi{Cg5j~GO4 z7c-@sSOx{Wz$}u~)R30%<7{+E%@Z1M$Xv%rqwNIt_8rbi-{(}DnyL_xR6Tc3u0?qt z$+oGo6Q-vx)YRFjqV%oK!;V8#rc&L%A^sfS4`E6!+))ZX7A@LN4m+!}y|&O9y|YXc zX4;<3vxrc}C_dF($ZkD(v@IKjH8+?9kXnigoDpAO+2^>NK!$sYTupBelvYC^MPqIC zNqFrQ`QgGW8f9u&w8s{Gj6GtZLtj4)F#%z;CA_VXhQ1{Oy_5m*4Yn(HZ8*4!*jp14 zU&w8Ymny$y7NA~4_}auMsIXVvcQF^Xa@nG&1=a>JUeFr4EeVIp#9Q?|$8uLm@fG6R z*#D|ceuwRS9g{c>CB?Mvb({OhI(z(9d!$&Mw_iV4$k;YVCi-SxR~xkQqRkDb0n_Y# zX&m;Hv|TaI_9PtT5Lg_-5*^DCJEYzot4=YQx|3Ei{ma6uQ$tgA7`I-6m-c)r-EEnq zZOlWRJr4;!aipW3I{VvyaCZn7?LEsD zjcKser=cRqzf#mLFQyr>Ux%3RTev@w+O?a&p9@icUc@~ zx!xk4K;|Il`iprUO$#vKWxTG{xIG8J%tTcODy3#fcyS6y)t6amY+hB#p<{E^upgnq8ls&>*%R;!)!7p`o#dS9uqPm|=Qn;J zCY}gcUH*~)Gg>?`7J;DBmVSXZ4Q#;vixdtiL9;*oRY;j}mvebe-p1V;;$#zh*s}#@ zaeHl}5Y=e=5P4H<^6M1^XNYd=hA>p1MU79?lTjw>dR)97)PXQ8rh)nH#>_Q7vF%bk z+1zHHLlXb*PgiolRfwUL5hWRzTV2FskC*M?1f*Udq`XWlCy2mDl2DY3lZwTAnnKfp zLE#s}gZBc;;fDJjRi^<82K_3z8oRFpaP~NNnON06OteT76(bXy-y{*EPM6bVEj^Bo z4(qTdhi^^}PgAZDa#SP}%@~!?EOn=&*!-Jiw%}FBXW#m(l+<^S0OoR?@J5lDD zUtvMlo%p!H-OYiT_AFkX|p)xR4*rzD#zti?Ii}AQ3^BqMVG#!PDv5t8#&W&^h zi!E2!_-H6jbigH3G7=qa_t6?Pt)#f8LYqopa5^`>&-@{;7J}>3*9kpOa@T-3Ll0}UgE7a{A!zo-qJ}fc zUE_=gbuQfQfmO09g6H9Zd9EmQ@;T%nRnZyq!8*XG#3< zu+;Sq%s7uYQtJOWk3&R&Vl{>_wA#wiwmRGgnkjmP?A{^G>C8>m+QTWYXt0ORA}{R& zMvs0sOSY$eP3CUA<%i<}H~aE*j*WH|X!s4vi7_OGx2O4eUacJh$0x#RrV_A23?VLZ zH87{*kD<>pc3%%d-gVR0`~;3-u1a9Qz>ZMN9r@MT7l=MobYVO3hatap3bkm0yRd}3 zh_`7a6^LL$51yiuFiv8vU5CJMG9=W`F*NSe%Q7Vws5W#zQ`&*J9$H^w14BkQ{DAFu z8Hm{APBzej6;^gtHl942Z1Xw|TCcl$)xl-jQC#S)bRuEu3$|bfS@|HL>d+zn*}06F z38yrdR#R*)UD~3MSZaPoyuCI+oKr@7TlW=@;fbs1n7Yw+z$6SWG6zaK=!O)j>ncp5 z1U>>`YWFSJ=EknvCOq-~n4?s{q!Z*Ra!X)K)HuNd6)aaI&p7nCnwX;W0fe5vP1dkkJa;>mF~s~ZCE)C;mBdSof)H**1&0=#i9bQ{tbN|%IdAAW%y z+HMbreswxd%@UV(lHzqB4aMi6KSPCF9+TMUCVB@J9r!J}Vxt|^uCI`AZvvT%a4Cem zQKYf7vaq`0q_IjsiTgkX5D%6tXlEIj*YxRV5%Z88BVF)pVfhFfBmWX+Nku8XN0H-!*x^&_^tNvhT+fg=mN z`5HVm-wfO1s;10Qv@z3K1Qp4A1wm4i+j*IqL(s_0!bB_jQDThSV}~&Yo@EXdv&I=@ zigvQAY4GqQBZQLI9_DbyB<4%kn!-k3thHb{`kg_qe^$rq~8E12%jlQ(`AU3qZR>cm-cV?C(_KAU-uc1CWmK-Fey}fN4*TpdH65_a8AM-G` z@0GZ^jr&ug3#4)o&P`op1NnldV^}mgwU}jL*CNNL0@k+Q2$f04H&+E0Lv@g zM~jLCg7QeoX9r|W=h8UIOvL!^L>Rl?Dhs|Y+4Kfs9E`Ywi7dCMvsVP>VZXyk<>GxV zw4yhm73d-(QE~dnG8gVe`Az#zfoGz1ysZv!@94c_-G}w{UGqNBXSWD7HXm#i8CAd7v4Kb6X zo4C4r!Yqv4m0s@bnBvh20_4LwNR&!^DdgFs-JxnUYgfF?Iho89RjG6Oppo|I+M?~L zc!GWqH1$C0)x$+Y8zDaYVKk|dY$Qn`N+G@KlTGr_71i1iGx!XYzSA_qVDC!lDsta+ zO47!t^n$Wc$~&B>_!IE%M8y$&&81Jsb@nb47b-T7_Gz&r5cDKe7MQ&YGXmtJeOMV0 zQ<-T%)-uPnU}DIjWeSS^_BkhIw$DZ`#Y-e3FZ9CET3 zzsPpe6=(tE!Iz!Hz_qRrLrJs;IX#JCE@DH8>o_+YS%j%_9B6jHY{_CX-PtBh2ezaQ z(&V(2@ds?*>$K&zz+8ZRmhA~>vuy7%wsNMeAdm$Cd8BNt1E$HRjYpmcfO6@Y>@iGl z?5b+HLi(BJc5uSRI>F<7fD`q{9>G@}0DcjQj?`g%!&qPQ>lDk?%L|@JbC_6vq~(|k zN7kGr1rsp+!heCLHQ}eS%DE~{Bn(*70o~1DfGINQtZ0x<+H|+TKpSB$VkfdH6>;vC zEFvk@t_bS~ko9dzA=v1;FwvEd$;#)_A?2W@ptO;aN1Ch6Q zEBuWW5)REG1f?z=AnOT}YuAk1DE4^C_Nv6 zEd>O2+iv(~MtJaj#%kTO5i3_oa6fERyf6F&K^3P{a-KL~z2vZJhdNpPiaA%iZM89- zC??pvT`K!Pkk(DgT$@v9B?BU|_h7>84fCNp_ziU&L!0C-RS+{T+qpS0EF@x3xu8M6 zm{s&B4r|C>;AAD030y5Wb zY}IOo;XglHuMg}LoA1OF9>jpp=e7dOhq>b9%to!c!iXnWc8$7VZWDJ~Q~=9LmvqU` z?~x(ea@w?{3uLDMFEQl5G2}?%yqTk+ou%8&TG2P|PS%S~UV2ae|8Kj=+y0YUa z(!0c2GC5^*#D~;#^k`4cqd48kue^_rWtUx-1KR zWK-|k@-?=MuWOOG+?FjSnoirp-3P$xF^P2SG*~5HNN}z9WLghJiHfsiF04es*2t+p zQ8i-<<=5hC1g$o40@=6oYLV1%K2`y+Ijgc@=&($JhSivP7*jACa9DdqEJDd*Ga}huhhm~w_;%tvF zDY_syQW9z;>CB5^sSF8x^h^~{TBU_3DKlc9gDPZ)AZ|Hq7Tz%#8?K(3ixdbSz$mGd zEJo%hmtgJ<%uA+D+{sO<*Iq_Z>J?X_YvpEp`sHsjl{o9%b!-LQHaUF<-$#k46J|^6 z?1wYbRw=st9;Qv5-N|4{$j@)O1OlV3z9d6zKC9uv8{U9Ut6}}Re*rErj-{<$h~r>QVdXC;iY=RM=M>$P41WT+dV6;N8C#B6^8y~u?;yVaqI|1>mp5r zu_kVR>ueXB(1sk%)WJ7@SH)Q(QLjz#rRcI&_UQ8i|JSFqldeSNp zY+ZOLiO{d8NNQbi$$!fdrI^3ZqK@eD12zUp;p^Bv&uxI@Ly3f$EO2g&a=zOMDM?-| z0ysUZ6bZf4$&Gk$doT`C1O`?CUK-v9KqFJ_FrM#Rg@UEK6|2@#vfcSoDxTU=!bxyn z_$4u39H%^{8a?#Um@OJ7t+GiHA%xrfX@kyowk1|uIx(;2wT62L^RwC^z$5HpAPDQv zNyE{`%}ZCZD=;I`tZSO&cawZoX#mE01vHc8tFr~X?v^*fllGo+=b?#`6(b_&?Uyd!)`a(re3R%SZ;h{>bf z4gf?v0-&J-<_5*`*Y)lTxd2=v$z23Sj0aC}OqAk5l1B4wM4K_9?n=i29O-w2VzUgN z*E8Jh8?josn3>*eqW{5#r;)+pd9b zWBHm95kxo_Zdgx91+Nclvvrr*!y4>yqe8{E$?12d-cF`28%)|B4}G@r1nT4Klr#)I zM@uzA?es z!roP+rQt7Nav&yS!?bcClZ~6BbbCfK`cRTI-h81bU-01=7U5>CvwU({SCn&ISk5l%aVrxz)3(!r%=%%|jht@-*Fu5=ZKIV8Y#i6o0a-Qw`5Y@-qkqp-paZHD1PpDK+*aWbHrqZ9@)6XIA{p`bIWU z_4j3JMndD8n!>mFKX#}HB|sG?f1fV?y^1S?BKuDX$%K;q6Pr5b+JAyF*!(~Bx}SL!3}a-i)!6`W zGEI5d33{871RrxK7s0&D%pQ%=2UjB><-!OD)1xuIGSb0=3nNh4t86`qod+~D-yb}n zzF{3ZfH#y0?oYFgo7}wPyKU8_VjWd@If5~>9d&*y#^p$T2xAS05`9XJkYkJDJhEu*(Q{GA`&1KH;?6+Kntvnr0z7ea>Ks5Z-1p0jY-;^vj-=QU5A+&p1=)3j5XPoFV; z;-oK3ntoFAtO-@S z^JdM$Wo?U(KQ`}z)^k@aUbv{428)`Pu2|Zdw|Z&w!bOW#H7{Fzc3yMaini5@7ai?J zn?7mEDa{kcPi~$#>C96mOrLc6)V$S;TSJKQnp>7GTfAZ=J!g7c-qyPKqGrYd(D5ga zpFDla=~J6W3Zqh(RowB?1aH>%y~FFI~r?O**~#?6#KX z#VZ!&WeDZW$&;plgh^8-O+PEIdG)y~SG7_lZ`HD;%h@F&_vWze#PQQl35jdcSr@de zI48vHgwrQa){8S|Og`nTQ|Mv^J8bDWtxH#~SePb&aQkM^>$dMXtDBcCUbtp)-tv_z zTF*Ti#I-iB1P84PTic>*lG*boXwSQ)N)I>T^obfSZ~4NDnpe14=dEsAwPxv>#mz1M zkFhs_uc|!${|^ZW3PxPPJ?^Lk5(t}OC6JIrLK2f8pyDMYHzbnHED{te7DcM4sCBm$ z_oc2?>uyoeidv<$b;U~S-rAN{+uEx2H#5&??wvd2eExtTXl5L&cq@aB<70|k}syVeK)y4`n#uFsQ^<5326wfXxs-06) zGMmhp?ib=NCYMNbG&Rv(DP#?8ogCyuPX|XNBx7AkMM-s8Rb@$nz9q`(YOWp{DDm5S zJEKL(#bTmSs0tU6Su}NYEs18A)Ra<|R#nwedWGyK#Sl%D)>O@@F0U+&I$9f>8u^xF z?EbHX@n(ENXBCdWB#cr|@ zGUt|dO1<7Tt=&7iU?VVwxh3VLWp!jB&6LmWT>7*G6-^KIW_NQJmxiYLhMtZt%1<`> z^14K2bxjr7RiZLMnUI)1KT%sAY)CQEH(XD8J~i9}Odk2D2b2Q@Ue&?UBD z))h^!D4}R+^VlGD7}A5%tUH=hIiqTJH79OKF`EMA2^Z8wnFis6sIY?#qwe}dSF)SzmNioazO<{QCn;4p-^ay?O1a#g z%#EuijpDX8R3J9QnmO9iSWsX(mQn*2b#yf%7FxS=va>TpEn_z|5Zo$I!y^r7vZJ+u zYQl((q=%dXlUXJ6>c}IRT~wVINA?xsDW_eai>j+D&@{{Glv&THshlytwyuVQNLJDo zH6|DJE>0|MX{5T71A=;kYrUoQUF}rQbVp5HNvbVc6O>AARNac-N0AIQ0RN;mj*XU^ z0CMao$@y|L*%3J}i@WMkouPiIoj-eeqO7R4EKys2VhN=|Iyu!IrARimP?#v`LWRXb zbAz+c*;=pWln@E_DYV^bX>I9QMlqy<(nb|GwHciq-7S6N5-0%_QmH7(A#SGxp!TRS z*;L=#N)eJPeZRqo%7{?%$E13+kh$`o_~+M8Cw33T6`} zY4AbF57GinQK)B=p!&0$ETX5G93rcpQ=oxb_a{HaY9i=d2ynyDx!vzD|&HN<^OT=|9JVoQ2w7F|4)?vC&~Yl<^L&BUpsPx z8!)O<>brWP(#koxGYTf<78HybKPEpnudS!IJ$Z~cjx7!JlUw{_`X*1zn^>5ew^;sF zjmypBzozz%JTe+`ndo~j^0ch#IpJgr7i0cj-@UB8p}DK0of0Ikw|!|#dt)B? zfK+Jdq*Ql#Wam9eZVmIu@~GxXooHZhR!>s}OeY$e%czmDHBkRz}**(jHd$91mWI&k6XPh|fv*oQ%&Y)V)A)rGSL+)seeZ zT|$*$XR@KCiF!JzV$a_=%e$rajT(Bpx{~b;B(bb*5%pBkSyES3Q8l-uW<1ry9gD;O zsLhnZ9m<^MDS76Xv-799Y|CsX4H~g$&3=pOL4BH z$)f&C8Cg(*>{{GDY8gT$7Et(%?zgh^oLv)K+ruF1UY5GPC*y9)m#G6Fe+I zNltCHj5|o#Omx>bB@>M;Notpp)cDu8F0EhIO`YZr>SZh@@nx;akc?ar#eqsore$@sdB#E>-h+tPoM^98yRawej zYk8&AkL0U{VVcZfhb&7+o14@Is(nI(*TroD1&w z`OPxc0;6l>2C|)dI9#n$2add=(9b#{_=(&OEQ+{SjxHCqr^!ehd`gN68ZzKsQpciG zsnSbG&q-rbbwWwaOe!8yTr&Gh#Z|MVzr+rLWS(?aDK2CtT}u+&Msg7hJ?=z#ZGCHJ zb3H|F301h6wZ)98O1cf#B8eL6E|W}ChVQB!Op2v+PfcAZJrHpp)8$!eHd4|?^(#e7 z>V5Kj!q`;(>FkDeFQuetZt2HG7k5T{Gje699I|n8uUpND>a^+-a`>o+$9MFeY@OuZa8R2u-@S;$Y$z0*zmpk_bA^=}2W5eMJOtZj#&w zF#(%GrpNv)*OYX_v|*~VfSPr7$?S?M@@RFaM|!5Hym~sw>8@`V|CaJFn6T8GRHKnK zH?}l2p($k7E0T_P_fm3qNLZ@B5I??U81D<57k&~sIo#wn^z?;f3_aoM zB6gv;|IDQ)v;e5U67BWu52gnBC@W=HZRHI%4bqJ_CM&nt*Wm2~xl@INj z6B#+kgKpeXa1G7lCZUR^*2HyM(viUkSQs}5!(d#mcJSC!vouDb%u%?PN{&;{m_{(_ z$t1hOtckC;i>3#A+m;6l357s2Zz5+N2PfSkN+nuTGP8UhH?};;9LDZsa6FWN#q6T9 zi6$FbJ7qos9bl<&xklhY5BdvZiIN;`-8|?by|Gl2JPV!EP}fp_pPVJ`8)EP!H407& zF$x-nyKQmSt~o^{QNbmMA`{}MXT(4;4@A{i6WJ!&nmA;cE)DfHTPW%2gBx7YG}qK@ z>FT47`UL2^L=E-5i<`NB&V!xg<;YMb*Z<_CG)kv5^l2$rsm=^K6&Zt(+?lE=p@9%} zT+?$;>LybQMeTt44(wR-tQh^KAq926#5?Gwa!0cV9Eyex9tJP3C4aFibQPq6o>^W~ zOXHGMJ@dpwB9YO(io)2F)a>cxRFf$blPRwa1BIcxMjL>NJWq_KT6p9_)f+|dL?`?mqrl`1lp3D|CQn!iRdK&4_(4^DbkH&JW z(iQLQn%a=rsKq$L>ZR@^_n^L;W_ZX8Nze2|J!sr3L-Z)%bKZDu}>KjsbH@H+3IU11) z{Y#!Ij$Xegetfjd~Fi<$wNS)eHqF-jgti#l5f$TWv`cVtqS$`ALexlh(atzRR3 zBOn8zT!x!z+^Us)!C=lVC1%o4$IPN)8YZBYysC!A_xs6fDIP|ugl2vyfbcZf&8Q{Q z(i?GQ!;^k4KWMyJbA(#cE;2?P0)PiBHeHU(;4lOCIs-be;+Od?9 zO9t-h+Z$-Wk0$S^&Z8+szD#Nc{_jMZa0pSu(5Q4H$gh>Qo0FRRXVQ`5iA0`%ET`onEhkw_aSZWo(vT7&wsqHa<| z)4sGQLOOahJk0&!Ih8dfMJP9ttYkrr)RB&oG`~O=pV^|(EG>=CkPnkNs(>kT z2?tFqCc1ez1U(>b;khcIBEXJIYGN-LTv`fpW^PWF8HP@3>nK5a2v?hbZkcGth25)= zdFG-L(A>6k!FZx9A~z08RkX&E89CeIG_lAmgc84u z%R*<>#z1D}b5p}l+>A-@g?eL|m#4?BXVz5B=0r>lS8>-Mq?pbLQbv-aK*J|Vp7P3= z&D$nCZibZ1M;cxp;ak+2SkyuDG2)nZC1rk`V;ihNTe?uTd%Cz+L^p;PD`Uv&)N!_u zk}hM1w7%`$Cm6 z*%wbBwFl=iYT)dUSg<(xBD6+^J6Y+QnXzr#f^c6WxYoX77={Sjr33`mCOrolTz?99 zW{IMPuaf4WC@;6MhC;Rm3N%fo%A%WwR1cKuG+8@hF2bOB2z<&U(`%G4mcSimx)D|B z3dV&QRH_)n6`|oCtP~Qfmx&mvXk-YWt%bZe8u69LlZl4Xli+S;urCuHElOh2(x^)! zODye7rA)z7ib`uPmZj5gVrw*7KCna1KMpaVl8GP@QQRSpTeF6C|pPc!h)dZ;gC3O3?d+Jr1npggCw2s4Z3RMdq|TGZ7^Jsxs(#~BNv>G;ap z3R?KWDNdzk9yiTs6jIrpfUCQ0Ze=#B>;z0*!>t2Lz9@zm}3aa4y=g_W+Y zQ`xIaSZv!%Jzbf!qqJzGK}K3q)=G2LlsH@ma5u5xbaMTIA44qXJ!yhocGFX4*Ss*vM~9;wI-I%(IomfTK`G5)Xt-vGWixt4>?ynthbF# zXU>aBV!%eVV6r3B9R`q4T?Qh{SlhT)CWAP=G6|nf%`lybp>ta1lxi;LO062!m5^b! zvI84Nui03*3FUygm6ANC#GO*92{K%Z^c}Sk&1YjJTch=2Jn1j}QDS6w)bL z_hP(n*9_H_*U?fd@{_1{PX2&YN7PZ_VRABPSwI%reHl0B7D4(4nIoezcwHd>Q%R<^ zq~x;7uR{5Mg8V;G))vY%p%e`=fH1fC#Z;@PGvT9 z1gKG>?BF3h^jc?B&!KA;x3(;5;DsT{F0Q$F@voi742yO+AA^H~?m(z_)FEOQhO@(^ zVbS#IJpC@qcICW|45ZgXhCY$FUyFNX?KkQ)$++N9nY8k^kKn55Wn(MI#n5>jNeS)kgUYaIIEfjVl8 z!t@uFNm>4$nT$gZyMjhjds?vgdxs@*R3u#Vy)l4G{l90w< zalb>0kv>mpLjh0!E_A7fEM=odI6jPlF*m1P&Yi!It{RTzwiG*Q=^*F(@p$RSs>*guQNA>c{w z+NwDng35NA)5$?oM(*0HIxwy_DCr58BRx$ zT_%`n3*nqMPr1xFd{QeDB_G^vp;SE;DbWO`LiiNt^g-Dsqg<{T&y!q{V(EXgM8 z<3Wco0YX(KJu5*YtR$#I*HrIO+uDKUSk6F$QSyRV>Phl*0tNg%+(oC>;r5ez;=F)V zGSNWZ(ujtVWG#9IB~p{8PJxs9QV$nVI52Eq<~*C(D6b9UyQx({>`I{arP^J;QpK)csm9Q+RGsTr znnc&Hlsfu#iu5&_WH^L;B3f3)RT=e?GNP!> z7v!|3`G-AHv zN{L}`O2hx+KT=3#0Gxf`;BkbRbSlNN=$J-cc?mXG6R9Bp>UYoK=c{PigKE=WSzg(5 zIvF9Y;*nI%oJ7J!o(8kW?AzjRo(?X`sYEMDiuLuR4h$cYe2 z(%kamx-wdY*xSVe9KCJrJeMz(ifD)P!83mpzJ&&3sc8+J174#c!;v(Q))!{; z=#fWSaxLqn`T4h&9_ichSMETCwbP_R#z6ZAQ&Nxoxf+yGxNdqy7&fPIZyiYCdqyp7ovkem z)bjJ9EK~iaJB2(xnX)Ct<2fQ^A2e{-MI&5T5n{)i$oJw&)_$&~KugORCe$&6K|ZJC z;Ro;~cG}XUAw1Ri`Y2tH=xb$Wx+aN)%M`qU{hGCtnh)c*KuD@T8_{;-}tt)KUH; z)8iFx=_X1RbJBx=p~l36T2e1jEzA{Tn8;nkbtjGGP@f8q_@=T&?P~&O3(1oUo_a_( z_-;IQfysu5>L*&k-ax%OuJ&nA7hekW%ed6c*r~K`K%z|}22Dwt71LEqCSOw}Sw_~_ z(kO;uI4>zq0u7AO*f_1X2#dJ-Sv?S*6WuoNrM$?fSCd)`ryG1u)Lh)HOpP{kg+uFA zkg4jG^7IBd3i5a`C7M=wp^FuQP_IJ(l_~6UQI$R#H zkY)1H@8I~M5Yt#?=mi=8+f7T5vrIj4a^2`&D1?>ebmuVj%*h*`^<+!jcDX}{vev-z z1U)s3lsB340jXLt)sYF^;IQa}A9$nTQtn5dE^duBZ()`)?FM96bMQUVOS?H|>46^^ zL`scW$fIpD>7jpmhMETQsDnbI1nP%Mu>Z)tXt3=c;Nb{gJ8e2>8su@d; zJB|KykEL}pNpit?#bH;&Sne*2Y4|^7qOrZ*U1RAv_}1RWFVJT)J8hfM9Ugm$FT@K$=ktSsMh7RyPQ1fUsN5@4+&9_rAI3n$TAlpGD5|_ zxh-Qt{vF>yuc3ZFCfE67`fESSdiW~w-SWDr;3w&kJbvh%FT*$(?<7J$VVCK%)CMdf zPB|>oewkk-094Ep91{vaaOc8z8mbCk!bC2A54U2IrC+G6=^HO9=dC?Ngr0rw$zzA0 zJ@u2mm_!g?j8JHVMM%<#$Is~(J|yYsCl8JCDlYmeBa76=(N}Hh=&L;O+0Ey9Fq1y0 z^GW~9Mk4eHSChVRaiY@8Pjb>Pbh=oQVvn@ctuTlp9qAi4m-ImaqLj>&rGfO5ylx`& zg<>kM4}DE9I;S5PhO?r){D*!c{et1iZ+_&3Dqi}|O(i94_@Pgs5^r17ErTBPH9X5A z*J<9OLqd##NCD!Ukkq12YL44Gf^-XiBI0>6SH`@B_LAVVq3<#ZLluyS^Rf~8f^5#C zN9pO8UKJLw5#Wa#@={qT>+k3aIx$tAO3G_#|6UZ8&X{pj?x;D7=(&JiJiMA$&?`R+ zzCUizTpG*9yWN$+5zF3 zeQ-`?Sx-I~>)?Y~v3!f7o$<+R9=_)o){5^>;d3N?uE6&${w&VP&1&8uXGqb|Xe#}@ z9_K#h&*?eCFV3pS8F^85NlxyXfkio^Rt+l3$zQo$*3&!Wj4H~>ot`t2WTxi~nK_ii zISiZmIy!aAIN;s~iIqL>w zRqc>7yeMZ#$xyz&8ZvS}k*Q6kM=Q?l&)19Yd2((c{alT6i#SXak4v)3b4FgAU7nMB z(ZK0Bqt zJtVK_cRu}TLHLNjOZrvkj9kU(w{l=9CH2WW3(}xz*_u^CmVSD=q*A?+~bZR-}2B*nxDBRC8 zCw&)DK2sPeO;!zL^P_Nbn$Q_a6Dq5m?`62Aj<2a=JDWq{s~9?&em3IV5{H$rA6kELqllVGZJC(1csH|eUSjll~mZ*{8Ntj=RoTP!sX*oEP;yn`< zIyYxzdCu?|bWJX)`v%u6FuJE@RRnXUc#R^S%M~Xb-|>GoZL71+P9-kMa(Y%k_7s+- z^vs%*GlcV}5&S&nqGMLd#Gd?BZ-H6}CK4X<0eAH0ROWikx)^W&bIg3e~oyhfO!)I%)KF^dB8! z*QH!PQ5vtxp21~>sufsT(Q_}ng8C2gY#$M&`>L$tUf=@HWvCD5O8FdR&#J72bZ!QJ z5qr8C=cSBMJhMtdA!7S{2P-|tf!7O@Y?XDZNa z3uSbE$YA=9jsu}{oAjbEtlCb}t1@THfUN8KO{%h?e6Kp_Dqw|`Im3^al3LAC7dz>} zdA1q0lS(?n-`9X2!JMu;5n;Op{DQc!N!=)6tKzV2ps-PJT_reE!nPH_IwajCo$4v{Glz1zkH)#n5RNrjWU#0!Ig73e=}uQsx|7v#nO%r$r0t^n zUCcIo5!>M!F8kVscas^DU8mY`Dp6FP=x-gazq+5em!#SS*zuMD*@L)Y*f#RVvA$9C zw-x#hNX3D|!}ZCutTR#-xdTfx^$`po3(XXR99A4#|7GC);Q z(a?o-`eexFrNU14LK&2>Q@w{a?Krys%6?6%cxcvwoXI3fspZ-nPAGvlfee4yT{H?Z7aKAR_S|1$Gpl5WAtcAnzNsVWCre zeH~=UTa|-Zv(w48u^cSHQj(TbYNc+kOQqz@p;VfYs^vq=^sBU`PulA#Otvkh^j$fq zGAI8miF&G4k+^(`>yF|3l8>^6+qYHR2Cp2LG;!f{%4Nf$Bki-ymvm|*HWlYKazfGl zx2ZGI<+3zqOI9|$r@g=WwPi zv+7d*Iyq{qsGaZ3;*##X^OO6tgJ=t$R}V$)Q&WzC@Uq6SV}<3fv%1t_lw+) zej4c+L$jv$o9nQlPjQbCT$!cs(Z4@%e{ObZ|Gt3qt;$Hn3zQ zR{IGw8QIBn`MJ=Qjz5+2i?hp8@h?lYy`?$TS?80kleQ@Q*yJa$(JN|{x}L7w~2I$ z)2;`y$FTpIPCLnO>Fbc4!PlVp(i?U9O}rW6Td#+%<)n&rq5k)Ao1Zg^!jmd4)Had$ zH@Nlyl(|c?B;B3eNgf`TvwlGKlKuli=~SHa;(*yXn+7E5vxr3D|8d1n#~A*PRM+O@ z)^H*)?!!5_sZ!6a0qfv?NjhEnv(e(5we-^StbP-Qt1i*E8TwvJ#ZT%@(dWulY0lcL z?A=-4w!TBk7a5HKj$d*{{@>v{E@vyf%x!SL`et+Z*bbIM-`(^*=o9~-|MaiUs_9o7 zg|31we-XMC!^Z#5wust@-Q)6-bg{mX7&N&iGcVFMDs7wChU7&>|Mi8W9ot$n^j(;# zufM!4%~_w7wIS!ltP^uKWi6ynvZyS2`(wYE%@xu<9DnF9Vg1yfSd&G5*{W=6BgqFP z^eN8&l|SjcO`mf1Bc;q87wW4O^d`hXIjgrjA!qG&4fHuZXT^5Z?_9mzTmmQ3XAyzy zS18J>x2qx4%sJZs!Pzk|`nz-=y+n4zXSY4Fbx^{c$|g=BQD_q=z^Zp zMSf5;O#_be=RlsvBKi0@d_)(}C*OCPRvb8gsqmpuF67qZllwU$&vgJFkiVV2a(GsN z!#tt~!PkM$;%n&mCH=AdR`7d-M$zl^Df(Ub|DaqG2KW67^sIyYIOzErd<(daG4ko` zNFxhjd}OD3CTY%nVhJbidl*jfcqVfl&rqHZUX5FzNr;NT7lMz5o)f^=f^)j_(M_Dw zLB|i-F8MeU^7*ib%7CNQ;48poypYaa3Oy_6laCehe-y2Q{5r_zf zst5k-^WfJI=XkBh@9Xh-7v#4>z7G5m$d95=J~YK&0MB*&ci{PszfZq8Ue!54&yw&F zeFDB7d@A@C;1LRz#`hcW72pdXKZMFZ>)!&d4aachsL*AMk*?Vrd>Sh9^Pp!m_$F`} zL!@&Pz}KR}lkq{~#l$&1>z&>5ST={JlRLw7s9n{AZvn?g)B+yu8RSdDM|3)PHMrXC z4~R>7fkA1$Tmbp|AB@)dxgC1e?-jU)^8xTJ;4{sH;? z{el8+&-fTX0-P_Kz%@O00?$W9C1Z6Yzo*LQ^3_z&hL7k7@XiAQka0HpdNgs)7mdGu zRtO&yZ9+P0d7lS8!w(92WPFXjo&rAY;J{H`MyG;TgRemTE(hOqNRXGYGy1v;JVM2J zbvPYe3BC?I5BxdR1FmCPH-c{gKML~qg6ED3K*z400bdBNdVU4o37&wSPrx@h{&(>F z!-L>4kRLb*yqIOJb<=CI(IlmUU@;d>1FXR`JIl7YMSbk5( zr{cZ~#|OPK=0sn+=teBh?E@b}!bdb8`tdWxo1iCuLO6351Xhatj?qH=R)2^6390uW ze+L43FZkL?;Q|?3qOTjl7fuOW#*OIfXR7Duz_ldrNbzO;TfucKXkYMZWQdLj<$>Q1 zLy$2cQu#gb71M%#EqCSMTfqMoPDgdbxm?2>=zBO$7A{61Kso21l1Wf|&yg>~ zlYvWrnZ90#aNge>xb%C&R|@6!_?G@ShV&0$KcDpRF*@I z{4~f@Fyv?u4yTC7Wbih~&xE|{SqAxOkjusAxx&*PE8NZKLg>*scFixoEL)vP=+KYs zC>T-#CQuL~a> zeWd`OZ$sY4_kHkUC;t(6jpKg?*LGA-{~f$V0Y3i?ewO3k3LhMeauLp!q#PX0b9{T@ zLn8I7RNYSCw<*Bq?%lwI8Lrz5~}ab;{{ArgRL62D*G43a);q z%I^&Rn7i)?@EoUSUvM2KQ9TENKjHKo4*s&^W5Ivt_yq7jJAO1cj~m&e2>d`7&Qjrn zQ{#bp&1}d|aq_j`rH;=BpXGQ0{2mvcr0~J?Ms>Yo_*?>B=J;vQ)8zCo1@CtJEby}( zUkQGN<3AKWIC|0D_Y&}}j$Z*jSsg1x<2vZS#p%Bh^19whV|_b#nY33*X$>lPuGnvy zKM3CG_+#L!HkYA^c8!mYne57`mz<&*%KP;`Azr6{**12%+f#+fz zOt1O?{42*l6Fwx`=+bQ~;5^P`kHz4%j<et%!3!M^Yk!7B<&Lj}{9G5F3xp4jM($y?(>NC7 zZ*%fjgYWG44d53!ejE6|T>jnz-sj{W0zbm>C%}K<__N?2IKC156~{M$@8tNK!Uspy zE**Xk{-_QhBAGq{U*YWJbMW4*}oe!m|@`SEMDR zEis(eU-c({L=2x2!>7e?odpSb z|89)@!WjN}4F5WYZx@qpJIBZmjgcP_!}pKjV`BKnG3hWlMt(*NFOT6b#nf+AG4dzH z@Fg+4D~6vL!+#LNFOA{X#qfJ#_!BYw)foPE4F7Ws|6dH>Ats&oi{ayAcu5SO6T_Fp z@ZK1HK@9&<48Jjk-x0&_kKu2})aOsc$Zw3{ugCEBV)#cf{2wtqi-rRGtCx0;;rqt$ z!(#Zv7(OG0*TnEeF}yQ|FOA_3#qhIZ_^KHGBjUTz49T?C;MmGKKl*xHOnG@(L_!lw!+ZaBWjIBR=+ck#o6~hmR;dwFq zs2E-p!%v9er^N76V|Z5#KPQG?7Q=OmgY>@C89QO}dva)N4BFLB-aw!~!=56t7ixdo zhG)JQIdji$zwKpeTQuzBBzvUs_LCV~weUtJ^uW7p1g&qQwws&qcZz~+ra|wDXl#*< zgA!Q3u+Q*`!t&_HQrY)~iJLrWy zxm0=Bf`uf)o3|;fvg26B+b2_7ak{s75pPY>wmj+WK{H;*M^EDGhJ)#i7|k|q{HQ&@ zmtD4N;zZ(e{cHmyyZrGMK$IQ4oe1wYK)Yk(TiE4mOricB!<)Cz^Z$5#xPPrgKd)CA zGl4czlC4s8Kc)1puKxY4A&j18ZmF5tJU{GWl=>O=BGjK@$2#6w$iBxt^(s|*-(PBX z9J8AztR($>0N%)@B2NYzLTRT_Rz!cU8Q{J)E6PkciG-lzENtJw@=}1NbY^WT}j$?igyF% zaD*M0ME^E>F`0Jh!@WA#%|_Tx&==-slT|C@J5-ml?A=Ztp9Ds zWVfKOH6~e?zAk)GzGITRV{((1X>-!`#Bzb?jRL!B1sZ`1k)w3Zh zGfwsMDy@w3oS6N*H8n$qc2SjDWK2tUS3L!rw%^bAo!VGk1i9pzitp4;4-YB(;ESz7TBAb-)J}6_RgdM9=8OTl0n2EtQ zWRIBem3E(@SMsp>uyYK)3zkcGL)dNJN;PJ3G^S!kKL1z1|Bd7S#`AxL{NDurZxa7E zk^d9nDg2E#ndATEngY3~K&~o~%L?SW0=ck2E-H|##>rLV!ky%*adOo-xoVu;W1L(& zK1j;7vN5YaGEv`rK} z6GhKN(KAWzI4N8ul9NPoQjiH}gQQ$LS?)Di^iLN3lSO8-XqYS-CX0s2L0OwNvEUDRON=zFb_8FIN}j%jE_6a(zL*C@7$HjAB2c zq99*%6pRxk1tF&kLgp91u3%UpR||r{6cmKZgUJ+(3tB=p7mN>K2_{i6K1jka$A=pQ zb1YCR4lp0*f-<%35Qkuu1;J1Y^1~epLo{LS!4M0AZ59OMEC}{m5KO*+?4Nhl&UjUv z+3KB}^Yrd{V!w*FitFR| z;8A-Vb_oyrFYya|QX5+FhWG=AWuJcAy^sbup&bGYmxo&ft`XYPm%IlG(vFG=j@J7$h({Sh2^e<9+9s*w&Ss10B)#sk zzJbFL$xCi0oHl4w8^sH<)C?}N!d9to0vQHVcW#UNbX}N$* zm|r`fEaOF73Pq3;DyT6pK2eEqnL1YKJw)}qXwcK?_fh$+?KzbsBj^`I0`u+#g=QooKON1L^ZEl44?uZj1Y+BUIy89V2)5VljJQb<|U(b}4yN{Halrhdv! zy_uUXZu3T=%pH7LBW>GAAM)lk+7FIO8C5%YC$Cs^Z#TaqhoZ^5RLk~g<9Mq|+2?ed z*GViQ@0*hY?+KL-AEF;VD3R&?2Q7=K)6lbww<@Rac+VPt3-7$7Z>ha!>BVW3Ub^ox z1%tOSWG6MXg&ytEo#gZ6y-?8mbZ0%XBZO$=!ZN#k|0M) zKkhr&b6o$W;ddGRS%@EBKG~$hU~s-{is1(v`JWm+;|#ZYCdKG!GxB#EJv}kE3)?X5_zT!n482H$wh*M*dhM|Dls#2>IbyXQlU5JvHDyeNHo+pM}-<^7?l^Sbm1# zw>te=UhegrFQg-^<4&i8mX{Y|^zVRmUmAWbzhOOc2v4yIkM7l^@+To(jxu^~q;P2Y ztp?}dl^8uI89vkS#fFy}{!xtn5)8$2cme3i7iIZ!-72-`uy& z=&|~j8Tki{{0bv)!+DvJ=Qwbk!pAL+Yra1c!=EwwD@^!bcJg-w_0b!StNzc79-9uj z2b0>ThVx*W$K!*;KHJ=PEI7;CdbQeczGhbzpktoll}1m}=&v$-mEqNf|H$y;4ZqQF z8?Q}q5hpb^7yI{9mE;b{+Ifg$-T=nm6_(O*81eo(oJm6gqj;bF|}n-)^Jl6r<-6!xM)8#&Gr>G#&P%`BgqR zJoSe2d^;bW*Mf8OAEQ6jlQ8l&zpgX9!RWsuhCgjM`!cHkZNqK8XVW|<9~@4rpXY)3 z@cdoFt)4%DYyPUAGYadgm21CajN{r*DREr&+~&CIdC+my^C38g-`2xl8{TBnNB1@2 zaPl);nr{2!(L&Z^^Ci!4TMthGXFa^Pg6f%OyhLhVwI}s;9;1=Q=}qw~@E{ z&o|uaf57PBxV=Jud_3;B)=SSizB!0TFFF1>_-`El2K*hzhf&=4_@m?dfd9#HjsqY6 zaC|iQc38Ks_QpO6ANxD5&vQTFI6r^Q$5~jP%xPo&+gl7jnRILVKODo~G2E8N{jn~Z z^*0+mhZ%0`r6&!y@-G-}{p~%m4xIJda2{-Ui@EP)!>#-b!>xR+;Wl2U8E(UQx8XKD zKQ`Q!M}0(>!*BTzJi6=iN(4w;0}TpUu-~q-Tnz7u;cH^}Z@@X-I!(TBG4edr2sbJE%y7O&!}F!lW7B!i zz9d8khyNM+({ww?aGSqJIIiPe

$pP5xX#~a>i_(?JRN~d4#=OH8CW%PVxxYhrc z82*jZujT#F{V3pcaQJQh9&h+ebKiQyc`rJR?^1A1&u8gR`SKX~RfhK%J(nBaYxpfj z|8qwF-A3Mq=OM#w_%|4C<=-^=IW4rl{nW^xZo;!OHV9$arG}3L*K(nH4l(k!A9RZ0 zw!OI0aGSq3#PB=8`Mw)W`rK>e?YPPx47cUtE5q%5_sb=vbZ~sF{E@j#1Gn;%a|MgM z<#WL`eYDqg#&|1-m_{_PLu(5C$a zEnmBXbDV6s-pg>Cj|Uh%FVi&|-#jC4^W{v#mm51-8^iC9;jbHhmeKQj!+CC3!}BpX zXA_SBDF4dvUm3pZA@qX|mVcH0RK7HZ*BhQq^6LM*0zQzKO^5l15}iM_ftBm}2hM#ZvPKT%U zpJ(_y!&e*LXZQ~dKgaM341W?_%jqzb(^rm6-}gcz|C!-y3?DkWfB7Q~xAHZHTm4H6 zzsTrcZMc=c-f$~_r{NbHJx|2&UxIV=U!y;@=huyVM!jLUt@n1w3+cdmHW@uTgR?zb zJqH_Z^_*z**z&U0@LwDK*BU)m|2>9V{X34Ki|OESvVIItMY|f#VbyWevEa0mGM*kM0$Ljy9 z;Z}dkSh|=FPS4-cpN6v&+~@mB!>yjHjUK*ccUDNpjgIdI{*2LM{iRop{O{;`4bSfk zf5Y%kjGjwOdHKq48_pf_IaKNPQNuaHaSi7ojt@onX-#iR&ztm3!+9*YPq!P5JfBm$ z`Z$JvYxuoJ|MmrPTWLqEz3mFl!L$1JG~AY#!wi4R=%+_H$&Zb^wUb*6w|4S#qsQ9GFAcZh{G-uh)9ow6Is9rT+l`ZC zlXApd!+!`kGaLSKM&5>>)_BXo`DnvG%jmJ;KiO~_{^f>SJ6Ub?zeD#>yS>cF+j`?> z!>#`J4Y&ILV)Vaj^#9YyTm9ROm*|SkTK#)~t3B(y##AG3?^|Z%H=Fy;G4j?=d*1L0 zQ*Zpm=;1soM0x+#aZR^V3)A6WYxJB6uHjetHIA$P%N3G?6qh~SX;CR`3X`zuXH|cP#;a1OWM$hj_m&W%VBX7g=wBgoH zUNm}cB0VQd=&0-%`AbcBJ~Z<0oBQrQFb(!JzzUz!0d*8c^y!DHo zH{9CWfJy1_*#6GJ;2fSU^rz`I+VDRZew5*_8h)cH=Y7MMn{@uh z=&|vohnD2v@Y{5&0p~QZ>2{*ww!GKJ=xH|mkEBb}=LbfQwW}))w{~^2;k?(p>bcM8 z|G?;f%*b2)n+&)5-!k0B>wTl&rq9QQe`xL-O`#ujaJt$1?q;~X@7~~?{vXkw#w*vz z+whDw@*f*{dJ;+wf8W`L+xylSZtX2;^nYUXcN+ew;TIbInc>$O{wKq4GyKnnzi9a9 zhX2;^zZky7@V^@Vx#52^{42w^8h*f0^n(sgx1)_+O#tV7`8)k-zLXewo4*xC{vSqu zp5b2@o-}&+oi3{XG{Y}9{5+%QOQYukBmW~Kzs|`2)5zayvTKTTwl`eJ?F<`LW0L z&tEfqPu9aXp`&G*e25*|b!)wb+jLk1&i2Xo)$y+T9oPQIV~%S-Ye*4YOb6@Xpd8FU z=-3aObzf=hVY-p$b6?XrK01y3RYv|QBmWRqsJssD4KhSZ__Y%kVU<06|)p1R?^T0XXY&d^rxQ*AW3Q?Cze+|zZ$MyM~ zgyT~&u614vztr&x$RA!C?#to4)}-e-hF@p+MTXmS{yVrYUtbx{$l~1mf)YDABfpBuw(HQbK#-wn=oa-&KA#|{6Q&S^S7YxLN3{*95p$>{lm zk-ypSzZv;&jQ%f;yw(4;k+=HyJ~5pRHh|pBTd% z4Y%QZ#&E0u-5CBAxTdqF+sOJz4lZ9-|A8_5h!|cN!!M5ER~l~1>BolK@O-c+9ZqYv zOB({`cs)#iTJBbZbG&T1xY}^5XQ#%Xhvn@!+bqLv|89xlcAPLfnbu?V9}3RlWP2VS z#G8BtKl}?c56xN*2=*{lCJ<+xF#r!*4bD zzSijZpSkZ9M&91{F2ffYJ&zhawx9b8!@o27HyAxu|7(WZe(n~d$Ljy9;gJc?7eOaEhvHB+)o@MkOWAs@4Wrkb*RYs51 zzrgTpqkoanWA(QgZuR#VJy!n@3?FFppKtV7{g)YT^J1>1Ea_4|GVLXjsAZbJy!pKcDBM$_gMWyz`cF$VfYZE ze{ZA5>Oa(Qt3S`^vEe`3@a>KMX-1FLKg)2dzsBgX`WG6$gV9fWETz)H>hCn%>R)Q~ zSpDZ2KGf*H!0561uQ1%|zuD*+X7t=)(A$nybb^BhUXYPZy7!I zz8@HF!~Z9v$Ljye@STkQZ;c+Se@I6d!OW>Mt~UZ1|@e zzO&I^YV=tBHHKUL^Nk*>f3e}a82znAkJZ1_aI1gULH(!Oj2M2B;npvG65}Y`?tIUL zXZGN<{%MBu`!o4q`RRuLV~AkkWrklkEY0T_Ua?b}*BjnrxV7h_c23JDjrC7S8*y}6k4=Zm zk4y72jGo5&G`IH+H25K0mbUPX=)i~gC(Mfgkc}x`0*-7fR{Ob9(aZ0KLoFK{337+L#E=T`$Nrh@>f6}!z3yB&%qZu`5%Kf zI)s8<8`8AGj1Yheo zzdxOiABB%pdOit$wc}TBAHemFZvbEC_&V@g9DfD;4#&5E-);C+^qt=)&d2@XL&C{? z6yzUr{O^!|)bW3UKk4{?z}GweE%*k<2cR8#(eXjxuQUbXbmyQ>Jf93cD@NXQS0?vI{KDb`x{5=Mo z`&N7?F9ILpcnLWBs8*ie3(p7pV0@?^-Dhn#$B&2nNXO@Z@8h`c%a-f7u75t*@p|YP z<#-Z&wBs${`Hr`N7dn0#IQw!ozP;ewc3Zv-oP8(D&jK%Y{2cHy$Ik<=aQuhh)s9~T zUg!9w;PV{60{mphuK{1^_>aLG9lsHreGePoTfx}}v;0o*PRH*7?{WMA@IJ>M24C*@ zW8fSeb&kIWev9LO0KdcW zkHGJC{4?gTP;Le0%Usj_(Nm zTgP_>f6MXR!8bd;C-@e}o54SH`~dJz9X|y8bH@({-|BcC_?M0^2mi|PtA~bi^^N1< z{h@S@D`tF1{SQ6*T%gw5Yruy%`4VuQcUAdv@ZnBg`;9tZr1Hl@Uf&DERrz}GQBFPyKHBjX@O;PHz;#|x^*;$d*~uS0B&6?D$2UNJn&W4I7d!q6 zc$wpyz$+a8EqJx#Z-Li2eku4o$G3z1ob32DkYDI{?ywNwM#n#ge6!;(Lw~E|cS2s@ zJI|-tKJNkVaq{1Q_crMNuI=%pY>}SUitcXwlh5mFtYahdRr8-dgRB-Ng-EMfL;oMfLe3RjK z8jfLgx$nIsqw-6Qyj|z{eQ*xvZbr|AM*c3tFE{+BhX2^;VO^Us9(0qD=Qdr#bB~ed zI4?ju`?DB%+mB;;UHA2rk-x|2-w4iOVR?Oi&GvVg>vNYpx5bCbFUN15v#?zEHQn9t zJz0P!z3JG?aMpD_?D-IIzURI4UDIK%;rAKdYB>8mD&Gyxy7|7Na9`^;@;x;CtBpMK zHTccXWbwgz`0r$d^CrVt{(Ago8{mUwnR8z9Vf`iMPl8*&i1{nv*56>h8Ql66%s&So z&o`ulKWu!D183O>NLJJ5B*SfbE{f5k^)u@!GJ4K7^8EF4*yk$4IXo47AsrWj^Ut3d zJ+~Tp{yGfx?PErMnUNoc{N&RQ8eSB`7sl`|!#Pa4KlpWq-$eXm`s3q%aF%6XTGR6_ zBhT@@gN5nX9`WW6_U%-ufcfBX2bdG*K`j){_gk) z=#Oxn>fZ+yuY7md8t^O}+8Iz;dL zuHhpL|H$aE>oopmxV5XVjGl*$p6?82`<%)NLPrkDE2r_#jr{J0-$ds$ockC)(#RhG z&T1bqe3X&5_dU^YzV~L7pHmID;aP6Djn_)US^spz>jKM7cy#=O@5%8}f8r;Q_uQxi9lnIW?T`q2+WZv?nZU{SfV^vaIz(Mj3fNr*?icxR;+{xPAVs z%IM*?So2r=XROEC?WsnOwf{b&N8)=pT}a1D!&#TE`(10e&EGo=-`j-e=iscv&TqbE zFXpgVzSYRHuH9IGj&BXO?Z`m*tt@84nQyq2*Z!j3_aM<8MP){w?>i9p ztuox|PlEgSo@L~%p4E=4U0q?g)qiUYf7oyi;+jbz0xubE^=tw6;mkt2?bB@+!}**( zhkTgfR)28}*M1@E;J?q⪙2SeT@AqF`VVqujn$|-uG<7S$-;hzwEfyS6S!}X?R{i zKYE1WR(~G2Pq(TV`GnzokIfV4KRV7Ze6oq}O2hXxe2w9c8h*Lq`x$<%;a|}Gw0^kJ z@J|iD4V>fkn9*~O;kO$8sL{jmY8^@c(ebR~-+*VKzo_YacXN;*VmRMh`yIO&UTN+- z0-R;*3_r|p8_r2a57#Gr9UsTU@acwgSk-UQ_df9T&E~!*n){X--e~mfZ+N%ixrX-{ zJ+@!`LnF`O(eiSI;kF+8z;Kq=^71dowOo|I-dWb#d86S6m~gg$b2`}erPIhCXym_d zfhdMtOD2KVVO(#YF%IMm47boic;=f1O+(=x;P-kM+fz6NIer}fyaM*dKv$G*qG z>Ur15+kF3{;fEPLpBT=1M#CTax8quW4$UDUI#|}Oi`xsF)9nePzs|_pc%5muweu@t z`1OX5GWzc_+@{079M|;R6YHH=mj5(fha3I~am}v@W_^?`7gLSAtp|z?XZ@p5Z_YB@ z=1Yy?hnslKHC*%{Uz!ZJ_Mq#yG+t^~4;y(tr~DJcZFv4__z@;NUl?w~^PS;G8u{(e z@$}_rgyFWl90V@9jh-WnyiNb34Yzux8E*aR3Zp;I=s&^8Tm7dRZuKuSdTjciZ@5k8 z8w}@u%BOsij-ML-ApKT*`SqEs-XE-?DGvDYLVdSkIecuPi%jzjLdN!E!sWY7Ku@CC^gwg+`x$milKV|s$ zot_Hlxyr~}f8aI4ZMwZ{^b{EV9~pTY-~SkHhCk$>Oa@$FEsiuHu6^gO@>?j_ZmGDjGl*$yw&r9 z;Z~1*&&Wih=WQcz_2~OVynS+B@j)si&)8P@$d&&C&!g{IsJHVS-wu45<2!&?JFeqF z3mxAD@|}+F0lvcVy};Kxz90BH#}5R*-|<7i*E@a$_$J54fCEdqar)?bRCHTYT-T8f zcY3-xBj`Z)BPFlvKXc`5I{kH>=P1WlL(eqF*MgThekFLddCn?Pd6F^nDq|`wlhyb`_>iPFp_ozK4tt zzsH4-6#pUG@hZn}8y&!W$FIXY@9BUcg3t zMx*0fP_CCbK77BR=PJh=ID&NOIvkB})gggD>*SZ`2mYGl^Tr1LvE!uyNB?mAh-1SE zeJ{D*cOS%eyXy=0cJdu4*J~Vq3i*4D<0Bw{o8uh^hJZfk_|r(wXB?jidwbRK-BF*v z>v$f@^{0+cMtuM2cYmAzxt<|4yymRPG0rvItP_kJws9NDsRE~ z(Fn&?|3Qwc{%MZyj(T#Ajan;}ExawDbP{a8q?CMe{--LQe{l1hu?B{+bf5Qj%cZuVNzz$Dyyan}3pX2jUzRq?02avzi@dII3x-LS~?L*|_-A?{8@JAj0 z`Qag68ytTQ?an60cY~kyp5qUp-us8+haMdCf9H4(;Ff4dS6|)uJ=_vx?V!L>Nzh)&t;DP?Z^=R8ytTO{?gr!pNRB)&hgIugC1Rn zuHm^Ha-Vp4)E8=xD!)C--S+SYl`nxmyocir;kMC1j-P>iJj(GU=y;VnegW#SQyl*_ z>iH#({|0_VpX0jj?Gnc~qP@G$@inmX+Z}%dzklI)7t--%$1g>Gz3F&8+PM!Le;Mhs zJ>sG1+>Lr>5653GfSo)3UzEFi$7ewP7{~uPCg_>vcnjL8xsG3idUCnry5IV0$Im$| z=zqxZ&ya45jjJe#BXh?}C28xsLx83)(JpJR4lw zTTO?@Q4d_>v>fFT(lQoI{EKlR|DXOs(c^P zA;)oD@4mO=+re%}Ij-*|n&9}3XqTru{w310%JE+KV<$U)9MZGJ@h=db(;e?XdYv+Y^;ex9jpNI1Dq~p0q1o;;nzimw5TO9v%bl_h*UV?gWFziC}BQP(M{{GZUSEpYP3qQB7KxV~Ra z$7xj0Q+XkMI-LA?8c(lapVA`r%E-zd<|wf#XM_9Bp;HhHpg2 zw~kk9e;)a);rS)nWnJH;{67fK!A^chq(hK zKRF=q*^ZaNzpZur1^C1B9si&(=vnCaiOBCZ$FD{GaE9amEed+hcl-$u6{gU!l+;6dyUxjkfs@?RXyQ?FPp$K>6x&{NHOssIM+?{7Tr*rH*TOe(ZP=Cmth0^t=D#_)_?9S+Ga7&q46hhC2Qd-h3< zj_0C&t9ASZ)Ndy{J_i0t((xSB!|jgqnpZxSI({hpjTMgXjP~M(jz5(vYNE>=e+m3L z$BU58w>Z8T^7lAi3HhHp{vG6h;rKALBQH9BDE!i2J6-_(j^k6oKX9C%b>ZW4$7>+} zPsbO4|IhJe@WFcoeQKZlj2R!p9oO|wdpceZ`2!tq2S3vBGrz9@Pl5bZj<uBG1{K9>L{!bnM3Hs@Ocl-qS zKmT=n14o38Y?MEZS2_H*VU8aGzjSxUb0!Bp`#Ii#{`+B$Z=De2^BvDRD)1?eZ-Sob zj(>rE@hr#RfnC)(z6trY!12@e4)<+x{AR?r!|}c#9`!kXA^J7vIDR?Wg$o>i8sWd( z@i)eV8(i;r5&Y6y9iNNzyw~wX;Ey=o2EN|$KJbl>uLS>%;}?U!>-aU`A3A;u_+K0! zgZ}fs96t*DJI7~&4?+8>cB}RE&W`_g_mG}@IX(pC;ULHN03Yr6!Qc}d9|!(D$ESgp zI^I_p!c*;d9pvXbep^A1U*!11;7c6e0N&&HgF#JnmgCQYuX6m?;FmbQ1^jBq{|0`e zcj*mvWu-WnB(Levl@k23Q_gBaF zMLnbAC2EJe4-EI!2Q!pEgYl*9;YTRn1NYs@@$8*~p4}b)724Ci9X}Ixb%5iWA%B?T zZ@?b%9RD-q$2)%2=n$SMj%UGNI@a->!Al&UihlYm$CsdfKHl-t$>F|p9oPB41&)7( z`l7+{7m<%Gjvop64##IA{d*lBit?!QHkyyWK|Y@2beeqyGHP z@s03H2cbNvoqULTY^dXRqn_N^@!z0-F~adYjKk=2532uW$Q|V5k3c>i?zpxSV;z5K zN=VNMjz0*0@o2}VVEm-W@v~4~N*%98`!d_{O(>_ejt@h7G2ii-sP__%>+_pQ$0uVP zW{KnfLw;$0Mbqf~W=(OHf^j`*&0d^YUxhmPNle7VH&_fYR$;rOvfh45VG z_zReKxY6-n!LDw1{8IR7_c;D7+O-EAzYF&LnB)K4F@)zAj_)!p@aG+W68ZkJ;}anN zYsY7Szv*~A_YDi@-l~{ATdKIsO>Zn56XMh|D)?Jz@#d_ zKY$Ohba%6KH%Pp2xpaddoeBto0tyO9DIh5#A@zUHyx+s` z@O}PspNCoIvuD2d-1o-ZiJc)ojP0i-`QYq6rz81!D)yJL zVGyE4D8Pek4i_k*d)$09!q`Ar;8 z@{r%cc2bmF|DK^Nd4AMaB_D?Kt9s;{QU50SOq_4DBd?swFK<`!3{}1NAuoXW4kGV^ z*Izy${{`n86Up~u|N4yl0A7dvg1imZ-xBgHST22?R@Y-(+|O>I`e(SlhdhAo{4jYn z%vaA-G=Bn)kH1m&0Qa6XooT>tK+7`c9aNICNNah$0}-oL!>r#|_3j9WAEad^J8J$WJ= zhr5wi#d(PS{g#eTVr(aasXh%JKaM8ffX9jYx`F20$Nn{)>YHHu(dU`8z5pIyL{q)~ zeg0bV+&E9zO8y15gT3U_aQr$#J`%@`ljIK~{P>?E*S`z;gZv@REAEgF!TrJ`^2S(S zfp9+`9fvnj7oYrh^qGSEC#>I$hh*guVrKKd*X?0F#w|Jdd7SU1B`=8c!_4HXaK4n2 zd?ogyqVO1Q_OaYQ+|35cQvCtE4po!m)rMKfxLaV_d4X4aevyJ{A=95yhZ*w)=OXV_&5#>Coh5Jnn?aH_Ul>XOR--p zChv~zb3OStmHl$wNzuPl$0#jrr^PI)a>X*p0|{SxdK zZ&H2wguc(AY0?UEXi7ou?u{iR(GY%iugmKi5Qa;$eFzhx!<9HnH8m2zXP<`4{(VQCyGxu?N-9 z$MOu|`q+MXMpFIuSl%adJ$we$U&r>jkn3amob6OU8{=@u)Gu(Q;l4cZBh~+cbebyQyv``1oW zFXNmZ`QK9gpBVR(RG$v@=cs<1gt_Sk)h9#!eX3uM{rV-<>-*E>C*wS`HhD?xFAd4{@1Wi!uZH7KYx3Q=e~BXRf%EFF z6cbzfbiC@Vw$^ zQ!k~Xq%k*5qWYe=|C&So6V7v%l6S#&c$oZLT%UiOyg)YZr^#1h`#DG6I=ip`i(Jni zV&gnf$G;Bts}$r3!+lOs@(+u9uLzf6k@4w{@u^Am8*v`q)YLEV5y8ujRDTKwrat7_ z&v5c$c%FYUdHsxjCUfB0XB7I}O!d_(`T8B?eX$=Mrku9OxkmNlO8A@yrarj6$w9?U zV#a_-uVj^_q?RLVkaPBINqLmKDik;ykS$x&D1cEAl=#4)iDg z0O!x2l6R@<``JJqj^pG3^3KTlgS-az_ow7p!+m~QEVqu&Cm5f?P-;bW3CU94mxqpp42NK}^Tzx6Fg979WaeSyr-YBOJYC>KX&kOY; zzm&t*Paw~T^ZYI3cW^xUj(k6s_cFO|PqA=2U9Q;Jf76o>!Ert}c{Qxps^mXm96FJ2 z!g38K-;L#(ORk?+vzt5&+sV)56R}?JlW)WJnFQypy1W;0d?-tP5Zixca;@)5{shP2 zcgUZik59-qAb$<{9IUT{qvNANsYMe^NvyxfUAYc{_f zjwdgU?O`c-wM4%DDEXBL?^npDVn2$7*F&_=JUD^NLY@YX3#yZM#`#JVc}nDTCm(|C zLEmSp^DT{W)Ay6A<7vpicFGxn^?Qsw3a?LHCr^w0c>gvTMg?aCwY5} zb3^hGIM3A21=O5>FwSGBzDhzrzpuzwVSS}1*T2&!Nq!mYy#o0>JP%NvygAlaB>6EMPu?LfQ`Rr`^~jJCAQB_R6iOy!^z8H z`~Qr*C$@)8vNJZ5&EGm>0CA8#Z1 z?c~1xFnM<5|4QB)_jmetQQH5^aGw(g&j+agi1Exu-WuC$3Gx?mLpN0>zm4NYbMlla zeEk6ODV_tLl9#LEf3b=@H@1^QX~}U$qtV+ zE;;k_x(he8F)sD`y}TXB&m*U^amjg#=l%K^mz+`Y+=ZL^laGK8GA=pya6I|Yxa53> z`tjuYxv`UtOHMmH-k4=va&{u;bMlpNeIJut|iYH-`8(4F8#cT z=Zkh5mwvjVem{9j_!;ApGaBcwSBy)}KGa_$*UxpmWn6M}((@qQezM7b-1OAcOMYB< z0QVa@KCfQih0Eb0z590y$AOflKH9l{4tOTx(vO}W=P@qx{SosmKzSex7updPlm;9T^d6WDaTt81ymn-<>y}R9TQ!o85!T3*yYd`W`k20+yZv#J0 z-WRU-&zjQ^CQ#-fH9<;q{G6|6Oo@(ZaZlPZ+!nc`Ud-j@0>{ zMSc%cFZoAOx(heGXI%2rA!iV|et+*6#~){XBnt--oWRcsL&}iN|5;8Q~3$XK>54 z73b~kjLY&CMEwBrBRHR&M1CH=#JJ>NME)k@l79#F$H=4Mm&w0@KQk`*fz)yl2qeVg zW?f$GGbdd4ms=RmLdIo(NsRN-GR9?psf_hofn2{Qy9!+A`v~i?Ie7wXZ+(r+_O=__ z+eqUwJ{eIzo4hi7HF}Q6CeJpLDsjpS0xqc>=|ZOa2w) zM;MoU?Y|ZIHk{}5GcGy$cXPwxx*lI(Jx(z$>r0QTpONe5T+cE2($6OJxySfI=TYvT zOg|cz`ows?}y+{R_T3z1*mxa2oNer@BD zAL0JV)Xcc#>+7(cjZ1!ycv2k*j3EC8KAZe1d;__DF8@*T#<;)M&(+iIst^2cs{at4 zBqG>WKy)kAdxH1G#=r(hlP?-}RX9N%C8GV0_)U^rN4*eBZd_ z)KBa#+?2eE|Ec4tpBs?TxYX2=%*++kOrimwG)upEWM^dcS`aF2f$}{w2e4>9%pXzqo_v-yR#6 z8cJw)kd@Xz`fY;xouqL+Yj~0s=F(0(&f4w=C5af>v-z(6$OmTxV^ym6d~8oJuX9@ z2FIlesf^4{={VyX-GRu)l3J^|74e?me*Axb#^QIX@Y<_2*5#96!5ZKmF6V%y&yBcj2bL zjW2Q6^?ND)CC`EF=RdfP^Dy+2v}Q2w)%|b%*#3HY|?JIuJuS09%xC2tqz>vzC;y&N|6GR`{vWL)z5Am@s4TYty6)X&9u#;WBL zb-thLd6)4eu0+58BL#UyITWxExP@i0OZk)wrzRCa5n+-VuBamm-IopH&Zf?o_WF7+4C&uHUPFaKnk zOTNH!U?aJ#OPP+4f9*MNi9Cx8l$-954?{l*>-gX6cus+b8yC{=56y2}dS8zEs^mN2 zUC7Je_%odRSNKHo*w}v;lOK!Y``$tREBr8d=D5E8igCLhZyT58s*L*hb^YyheDr&= z(vY`9eNp3b+`EqZ$I8Yfzc=bTk`IHAA>Wa}_py-tTlfz0jM!felk5H6MRNT<-^b+b z^?sz@>*LT1`)@wuGM*)|9?KY)<<;*iYGGXJ>!7})ajAcV{E_4_6T4r!X)<|gc(idD z|8%(D*=$_$^P~Qhaof)Y<5K?=^^eKR;&E1r`mV@LvYkkd9%r%{mz>(DFK%4wn_?Um zz!NxI=Kf8=`RYnjFS}N<`0m0@r$YDzlOxBB8o}y7;4kBHoZphj|Kbk$X80rWL-42M z`u>O54Sb&TFZpLsACLTJcv9oCyw?-^+oy-ic*^o##GQ6oQ!n{9kW-QT4|t?;$=AQf zY-3z<;v{w#Zt6h(0y$lbOU~mg!ScX6aP2b+`|l^FUh<14_Vv@qbvv9zIr@IE#pLfJ ze=qrP_%9}3`n-nc-7Zmm1h${YRG%c5?=x0I|5Mjvo5cQlT=J&ywB+OA8Oevk!;MRy zx8zAUHx)20>hF@*hd(ebIr=`Lm&PSWzjrMbPN;Oh z?uMLn#wAA|N8~UrIeSo_hx}`JLF1D1GP%2OQ)%OplPFn`1LesdBPYVRubSv zdszLp_efJ8?dVvT_g2Ow=bNhDI~$jNx}%@&%Xmz))M~B(Ipl z*H<(w|X#`x4C zPYrKNo&q^N$ScDKkn1>qNM0WKpTc$g%V+le&8GTfUA(WQdcA+&W?aU33&vp=`C9mX za`ZgmvT@0&j^omwgsBy_3iky+;@59F!mz?N??!rw| zj7!cJsQ-+7E_^mz_xHYCf-!-080>`3@n!1^G%m~44)eWAUI+ffxLxnDTlqX)@2gNBk31Tl*tql=jXtv(mwxp72y>Ai zLQa0TjzdSR-&)4)c}Qd9a$eB~_3g<&g%2_=Ic3~GnZ_HJoG($ofV^$@V0qvN@^Yv@ z1DA1=aoCA*xMN(#;ZH2@eRBOAv!~=QQ2&zrKX~lczAqiO%IGH#`5G zv%hf}pLJN?f#fUT!;H&%)bqpf#wF(z>L-yOg-+7=nC)1b4CFeQn7n1AuUoM5~ z_^-zD?jrvVe#W?r^IVy!o30s`asCPQ&*3`GA7J~B-7a{uSL<>9TmE`RxYp}9=Qb|O zl`W00&rhBiUc|VJv!2hFGcGy$J(`us%OabKWkiadL;6G)wuMN zALmQg$+N?6!*zdoj_vk8@|2x@e%ki_r`ETG=Opg~FH3#~-Vm<)MdApb+n(w#qkbTH zpo_2ng1iyxH;~6g{T{f^HxHht{f_GO`TYx2ub(${!?=udGaXOzI`I3(Wqs-M+s}R$*;f{k{4>~bM}+Zho2%J41Y;J7M`YKAUNr9@>6(DxE_DgX&jf{YDy>@eIr0bKWG60dHko){AZ@osCOQIO@BTXM*>F$8fcB>hm3zYm}*% z{M&E13pb6Y`g@VyzodFSZY(!0{pj~2t|l*yel{4F`Reg-r*X;Yiu%3eQScwhC%{jW zkB0whT;{9CpFfPteD(XkZjdiV&K={jpU%X7`j2tR*W>dGFF>DJ$ydWmlYaxR zPJSHT1g_Kx`2!{L3YUdLysaT%YM=zk=66Zjb8%Ur!~hf|D8&JfgpM*bdrwsG0c zN6A3BX`XS(*Zb3D#wGs?y&qp2sFKk@qtH-yp#$~?IsIN#q6JFJLaNIIWmw`Y7cu(V!Qxvajyl-4`dZKey`QX}p66K!1fuMg4BTH}(h-(RrJxa60|dB`sEeDM8n-7mT} za5r+(kL3Ek&%5N+8v1&D9Hu#K;kml_->c_s4 z_5B;;jW2Pt{0PfCiTnfj=j8f*MPHGxLj7XnGXAkM)E(AvlXu6^DdU_ zl=0XuCnAo!aMK0jG2Qh=sDEMdrJuMJq}u)6RagI0^H1dU*R#TPob`SrzwsrmG<~?Q zFHD{sUc$J{SC5C4j7v^U)K?|10IvntK5wJX4&+ba!^vaib2D+%L~{MS>4oGOQNIPQ z-dZ_F3a^@xKz9KMZP;c$bl)w zWqkB`mAS?x=ML)i^)BgC{4e+-)ay8G%;SFPrmf`jaa{eLd@t&+lk4ZBhIRLOIzEf= z{6HeO&bKeNw;WWj<5SqU^q)AJ&n-?K1}{zd!;oK{T)%HrU-#2~rl9^klfTT(@{jU< zzC$S|DzEoxRImH{Jmb>;8|ZTZxqg3DG+g`Xk=N(%GWE+GRmb_jL8?E2^>U8twV!Lo zrJpwF=O%eG_&v%$i~M*!d|$eLZ|CsWQ^2)<-F~W2{UIDr>Km7ShGD*u+{K98JGMU$XP`G2Yi|F;CjUK z$s3JJPQ0A%!cAMqW5Rd9rM;N$->KYE9SA%ie-6)q_djZVJ9s5{0(V>KCueC%aerS( z^+oe}Z%g&Me|0l1{TD``Z~P(PBq27HWh$;n>8UASqAamjfP z^`DXVhR-%GIlBEUGA=pMs9#F{C43cJ$GI)W?I3wC_-`gh=KByie^7k@_fyZPUdKP~ zJMPAAlJzKkoGJjrNWavq~TEBSqRPUDiJ$L%7{82=&Uz2LLSKZ1X6 z@}-|C`K258egvvtSJ(Rus@K;m9~hVZr=rit{l@F%=cC)nQ`9FSzX?xn zTypgFpiIV>IB$;QNjP~WcrN3TlLhAqMU6|&KGc^a{~BJ_c(kkU7t39^sj6|wua+{% zfdeF*s6Sv_#!dI%^VCaWy}UtQ1KyIn4g3T00`-0FGPvv)(*Mo;-q%w7o;u!-n|fKUqv-!6 z`7ZbwjXVzSFCLN?g#SmL9iE_%?^pMCy+2Aq{wC_Pkbex%POgtP zi;-_beJS#F@N#fnk4dq9TawR$ziV=2+;-&h%QKYf?{)G%jq3INTJwy{INw4)3&=0R zqm9da_5E7wjZ02GY$uz^v%$9+mmJ;x4;q)8W~e_*-T;1<`~&!T^1<-S#$~?x_Zqj2 z%Y0X({%`Un@Hl;4k(&~@f0Co`-%f5^a?YYYHTjS53~*iVdEat3a#LmUhVVY*li?p3 zFXV1tCYa*h2Vq>!hi9RF9r+jVU2t8lAMkw0L8=dL?PqX~>UF!iW?aVMDVFyp`6Ku} z<954xYFu){3;6lIBu@d4{jUGL_OIJjQsa^{8ucm3JHvC3hZXd>dB|hH3mUiERcYhF z{!w3^JQKVgd3ksv^3w1(jmv!X`^P&Nm-*`V9KA)}1UcP}OOAf8;UMxjmHjw;Xk7Bg zB4<2#FZg8R!STWCjI)eOPD0su-Sj#6zsOlhJ{a|D$$P;!8JGFy3Jb;ub{m)ZZbJQj z@^$c&&u&Z8PA{bzNVVSrJtMaCt6I&zkhPld07>$v^h*4@ZW$4$M=cM0Zu z*|_9yM9!b&tKt8W{|0|T{v-T_aapbdIRB5|-(7K&Za>M3`s<0w!{8~5OHLZRKAV+% zWHz6Z-?%JSUE~xduL&<-$bsTL%5ZE0_yjY&w(E#p9Mbx*X1pY{(mPQiS6(u`B`|{ z_xy5e&R-ax%H*+;--G-vd;ode4nFro^6Bts^3CwGCz9*?J7-!OZBfo~nQ;*?#o;j|vU;dbbULS`O;r@DhxYp}=a!%uNJXw$ZIxqQh zcp>9*9M<#OGR7t6JnAcupN3a4E;(1we|_VUldzb(a8o3CEO-=oDR^h{BJh6XE#U*m z8^VXeW4IpV@ynfXcj2bl$x+;UC-Thje&luG1IVkxhZ>jpcEtJ}XI$pn7xfd#d&8#~ zmz+JheV=oUOU`Gg|C0P8_#)$yGa`%6SpnDWwrDHw8%@2OR}{y2#SY_=qwnMT&bah* z67&6@d@uZjammS(!CkoNH{+6%73=GF^7QblaP43JzWRx&m;A3~19nsFA^xXs&y|o9 zkGujrv2n?{UE1G1opI^25$ZFM*Mny>E;%DHo~7X0|JhbPzp|;9@o$6rNaHf!50U>S z`AB#>@;UI1r855e1!e+%yf z*Kz&|{r4r$37<{g2mUqrBlv#um+;@nGh_UplaI&!OS)lxT%}K0FZwx4*^SGpI)(bG z<>8~dx&j(LsT>8}Kb+a0m`3^^Y4)Q+m66D+ArO7wLD;Ssg z&P?n3tYuv0dk*#W$bW`M8kd|B>3vQcW8`!;F8k>z?C%4NOHO{|3?a`A zA8A~2t|4cdamk55{Y>&o@Xz78KfYJR-N;QF$(O>98JGQ{E9QI7xX^mk-y@$6k26B% z^1tI-c6br;1MoV=?R;Arm-!w?eJ{A~7cbD~K&ro2JJ?2GmZ_I~OppVAlUIR1G%h(KkrQK-znvccm!m$6d=5N;ammr` zKech`Cl!`AJ^6LyWHBx|=kRzZ7hJbD{h;~6R39gnyOEnpjSBtWJ+X1g*^2t)^>)( zamk5=^`49TU*zOBE;+s8`J8gbWxZF${#D<&_P>we zen|gukzas3BfJiIPk2}I0q_sW*TYwn{|-Mz-l3}R?-u!Hc?%? zFmCn9bHF>3w}%fS9|@mMz6QREygA1ISMpx)XXGEj^N)FbdFR9HlfPTT*L5ae0v|@6 zuC}k=M?MMuEBP$=eey-{1Y=+Cb1gh8`89YYxE_Cs$bZ~agX*W^eMfDn{sWwsb~C=j z-F^l3)3?c^;eCxSbM<+UKh(J7976p_@&oWGpw zmpJNH$@>=acJLj>C4W&SU;mwP$ytW_@5$%FPZ*b+LU`ZBZ^k9(3F?0*zYV`?Tyieq zIDgl;b3i+qmS^M}2+r z>hQ+KC1)SbAKDt1oI$9MBJT_D0@wSCdDw1;n0m=Si~G~D#wC9tay}xT5C6otnz|3iKa{tT|; zb{*puXM7+y$#xs<{_Vi_lh(NOlfFu@ERc~rEj%Z={(XI3^4zE|1ee*#E_56HG$7YL zTZHiblwS?`1IeqvN0ICIMvozHhWbz7+GlUc`>J=tWp*-dMbOXhY zgP$PJ1OFASea=EZS53Y2lOm>{@4v>SpEAgKLjDFk=12Z^x*gVo$04r)PYBn3=A)mS zi$g6ANA z59do2jZ1!C^k3h&(0J7MC7%Kx3s2x`Wq-+zoKK9)_$R^Z=5vh8_y_PfZXWrws`5*B zUSnKx^n2Mhz;(UsL_bH!55g~#UxNQfeiNQ*a&Y#+@sy#=B{OnUHu8kuZz4Ad=q&~_+IjE@U!G|;rGec!4rMr z=P#Rq>_^w7SvO@gF0>c*70Iu{TNsy|GqEJa-JctmocpLBO|I`VpG#g1??c;UT=K(l zJlStt@&}{-ck;y8P9BpNho_k0ZtNx*heGaOnC>seCBHW6%Nv(|=3{y58khREsP9KU z3fsdZ@|p03aMs+7E}66fY;OWl1IR+khg;Ofy?nz zj&Ehd+=ZJ4Q2jlbiJLyBdOaRS8<*p1O&nKOkn8hu>x|2Mk4Lx*H*JIKa?Qtleo|U}KL>vBysF6*&A#(z3_b@&|PGR`^< zi;YXp5Y#Ut?+srM*X8PiKDV2CIX@Zd{>gOIxa6-y&I$6R@Y9q(2>Cb2v%_P27M#ti z<3l-kdUE|<%cA6Op}wYZ*#vv|*g$i*uJ?3Uzfq=MR_&f7{ssf7UboND#$_D#V|mAs z?}pDLKM$Wv{tNso<97Y7FfQ|biuyI=Pv9Hjx_*Dga{X-TB|n`Uq}_Cp>h=4-9#Or% zz8`bCznu)D^pl~6zaED?9z3COnXkTXo5r~0^h13H@=oxq#wADJCy?K`J*U;nLSTynD3bQf-_N}d#6%edr>!||kvamksC`sU>Q;BAacj=s(~z_{e(tmQ7; zG=w|=A8A~2dgKe12PPVqoWrR9gj`=2`^>oH=-tRFZc(Yf}k99|V z77Ju_VQsa_ey0HI6Ch}Q$eI$=@>3=cu3y{x+7d0;VDe-zodE=7v8|o{Q z{|K*cTyo~2pGL+dr(<1r;ijhKt>7);di?nym9Othz6?H-{2TZ#@(b{IGku=s=Sc0Z zXD2TJFGt=2-ky9Yd;s|#_*C*E@D=3i()fP%k^cq%lRS1>U!Q2!>&ul0o|C)?ye@h6 zbpG~HgO0gW==I$G{hp zPlta;z7L*w&g*^FPltZsa=#|qe}%l>>rwrQPc$xlX3OsTnPFV!`!DL}kl%)XX;9N5g|GjP zJO})eaXC*L?#l!BjLZ30G1SMM>kBkrzyCCwaXFRAD+O*UYFu)fAg4ZgM|f}Yf$#~& zGq{|V$e(3g@+YDGYx3*ZPWF@Q_nTjZCvX`u{s)t}3pd@Q`tZcwV}9;`YW=BF{(55L zvc5`Uy(A~k4KGYS9A2EfKfE+t$G;}}d6T>&d?0xb_!RPC@TKIF;YY}K!7q^?hCdia%NktczVH7@5TiF|orwsBdm(y0G}ycm21c}Msf@>cL2zI2>%$!UW6iR2C8 zQ{cM1^{~8asJ=VuH;{LQZ!s?YjEL_p+_Z0g@W-pi>4Q=KE%`wBQMmRKfqt%%kA~kj zIWk}UUV~>;AL)K4Q_2PYryd`4J!Ua3<2D)nWG5d7FG{`(UXpwnyc&6yM!t_)??XNw{=RX^DObSfjD*KNy^nSjFjLUq7q5dfOAow}*S@4VGpTX~uZ-qY~ zUju()T>8w4`=i(keZP9Y^9=Rz$REHH8<(6SS^VwO8JFcP*4TR{@*MDN#^pS7cPw9D z%DCi=M15KEKJZG$r62uVuR6vh=Md@}kRO0IF)lg!I#fI3lJghpJCdJ+cQr0K6;rwk zH@$0Ia>_Iba^QXP-0&gBCFeNym$AkrXBz51A|C_)#JG&}WsLJIRk1&QZCrBhqJA6sZTN2E!G7Yo8@cI-amh)7{rU&;XUI86-WBy1$=kwj zz+<@VnC{=rH{FGs{xS73ZZ9!zu@?n@{px;XHge*TPlqQb-vCcdz6PF!{17}l`M2-_ zewh3-_$Bgl z@T80Ve6*jE&HeQ}F*3)g-!8RkRQeU*G%$mVZp@=M3Za&ujKlE z$ZOh~|o*CZ4 zxXf4Y$2%F9oQA0HN?sHGwsFbP&r=#;Tyln>eh7JA_(-@e*FY@SEb{H}B_>Da8wdAm z`^ZmKcE5DfadQ3qv2*15d15!nb$lL@hn4mDv6lLu(!cIPB8lL-eoKdoy63sc_3tq& zlYbP;*ViX+nag`e@+=9xzYW*%jLhkMG}Y^TKQ=DwYcE{XV8BxNbj5@%qs;a{a!KRphCY`u_eTPg~S`lI8xV=6{Fh z(`u9J`i&yb7u(;y4|$8^-ajGFjs0Z?T*qyGTwlN0)XVxUjP>#jc~1B)E&lX1!Kh@79v+rjU^wa@hNd`_$t{-=za%(s-k8c1zi^7T99oze64yIdN777w^@6{Scnk_ySiF?#lv& zjm!C7WSIX&S$G0>b(#D3XEE>9LezIQ^)jBhFmBz+v%v?FN5F@YSAdT)F8w4g>HC>v zT;|&b^;5`Oz^5CRoEtd)e`Q>92B3Zsc|Z6vxNZ*}FmBsTz2r~A`r1eJ7x8%WEY&9r zcQM*9B;#oOHN_b=OoVy&u3h6Vx@K$ZYpV9a+;vN47omjsc2kss$#v@HZD2C zkyD?%KRgPq>%C4!cOy3qB5w?zO5O@SkGv;*Gx;$1G4d_&yX42<@mKr4q)&N#cg9~0 zq%$u2`$g1OB7Y38M;F4{9yaD{Famm?L$=9b^8ROD_f7I6?{{Y_FxNPV1 zu|0G)E;+g%^@Hp7d@Zm0rJIIPeFPqVeQD}tJFkcBVIg@f_)^NLg`9n+UXBk_lgeD( z-!)KuvK-#;n0lFSPvqYx?*xBjT=Gled?4m}pQro9bkxTop9)WCTypfdnt@!;TXGqf zJ~tsJANeYHVdJv@HpBWVZCvK7$KjfA-G16(eBL5o4)0680Y033AAAP+ZTLd+r|@sc z<6!-sAWsj!MxF)!fV?0)Y=c{PH_7tK_WT&*lgzkm&t=e0aq>a%TE=DniiMoU#wF($ z)W2<9=BxMbLySxPRn$)-FNXf-!*%~^i`VZ~Q2l(I=j^3=UGGPY%Xak(wx1K^C*h}! z%l1<$v%7H9MdOmApZ|Q7{0?$%7?+%rG8k@pU|e$YwhnUOF?mk-bK{bu_nYxH`rGOL zSPk`w$ScB=8<(89+5PP^8JB+EMtwMW2Y6BPUGS3Ro8YzKy5Ieb_0@y?F?;}dIL7}I z^3w3n$?L*5k~f1NA@2acME({03Herd>P>$9bh(bhvyEqns`HuyZaZYTR=`{h|m_2H=BMfExkhmFg4 zuE6phBVPzVPktPJiTr!`J@V`D2jqXkpTKpT^P&HAU;E`#uLdt}T<*Wh__9D1<8pu0 z5cSRBI&SynKW>Vm`anYO1F2reZM1P2xA<*+{W$V}v0O9BJEMLsc_e%}`A+z1^3CuK z#)JEBHs8+27d$+%qoQ!%NgB z+v={kN$0x+o|$|#ya0J#crEfC@Xq8}Fh1`a&*0|&IM{`IozS@SFaKnkY20q-U&D2O zzZc8b?=khVyi;);_=W0+<@fbhO}!jy@h~cIo9Z8y^Y#BxeYod9tZ)2(bUY7YzL||n zzSie4E`8oceJQwHmF+5iW_RJH%2eMsoA-{UUbeS4uw8W_FAnc%T=MmC;`_!Wr!ndW zlQ)2mFfKW(Wg*-&2`=N1-u*iPpHB7t^GdaQUd`0Y_{0mUdmL%%rJr{(->u|5;5&^= zKYG4>$hhPzK>bnj&)`2Amz=Yy+=ZLY8JC>1sJ}>l8h(%b0sH~^J@^yjGGBds9ebP1 z{eSPbN!#9Ek4GLKp4hnL=>1wcqUPyRbRlKecpIb8eS zjOFT0eh~f~{pt*^^U z_4ndID8Nx!E0J?Q@!)$4KQjB(lC z{=s@bNB%eb66K#o{!>#g$Da(D{rJS(>3{0>(>Ig9o}PRnyf9ps>v{=aUyAA@QD2|D zJ-jn{XLvu#-+;%(gQ-3l>Zg+DfiI?oI}XD zLw*Jxdza7Cant89lE8KRBh&l3qNZN@iNJhIl9z**H7@HnZ)%@Yn_Rc6rp6_|BXU}h zw}ZEZYo7zr=X>PK;iFBC^s^e<;YU<|B8%^HKGo~%k1LH!pTp75TJrbdo8a2#tt>wO zD0%9v-fxkIdk#DykATP9?f;|s`H+(auIslMo*xLO`gItes-|9+E4qWvtx5hRyq<9x z&jdMreQWY9xx9BVF8QaB(}VmFyf<8zs~oo556SDn=aP4XZ!#{A6{3ARf&Io~I_rV@ z6Xe6;_dZOge7#@((bP*n4~zTyGgLnc{oJK`?dLz^(oeG} zpYwve5j@F0|9jmY`omL@zY9+bkKt}6{m(={g^bG~X_OSWshY`=Rv}R^^z0u zPLKngs9u+=mvLFH2~ocOUGh=zA#m+;IP%AsdO2n!ME^64Oa4ma%pqS2Ur4?e9!AV8`Pa#RfZwM4HONoC-`&_v+Rygh{(45ZY!5Qu z0+??><1*jBqTGd>ijw~s734rE%HN0lddB5Ac{rx8Z*E-ZZS>jKxEu-(h57oC#-)A| z>SvM9fv-0%IrosW-MHi&Lj7suQeQ^L-?-GDMEx`JGw}EaT#=h}oX^A4kUxSKH7?_` zSZ3m;%EpCa_6l;K1$id;yT+yeLFj*!ammSp`q|`F;2VrfPHjBy*lS#J>ZATFc~|&9 z#w8~_p1W{U%!B@?j?cTO&pMe)VCpD2Y=tVQWL)~0FFT-{;(Y6W>iC3VKgvR$6<)@;cmAi2&m7ceCtn4xU|ez@Bd4Bm>E|5kyBL@HJ<0t1-ZL)s*HAy1JVqa1A8lN6 z0yt0GY+P~@q5c?oZum9hl2a5p4~g z_b@IwCsMi#Hw`i_IYUuDm3$O@k#X6NmPx~IS_7BeVVV2)J|1UnHuaKU6#L6js=tlx z{}3!doxBS?<`KEo z|HgkJJS|+uXJlnxSH!sVxeWc3AYTkGV_f>og+3d?wa;~!Z)fAOzW(vE4ZLSumP_kr zl5a)M8uCN%L*%pISIB$9!@l5W6AaL;2d(zi6+TYBHS+iyG^YA{vAuUEPl%k+#xeB48+>Y9 z=9?DvU%_?0&kFkd_2k>*c;7|7A&vJl`~c)U7X*B1_-fxc8U3yu19{K^BvWDb?+mi`f_;P^C@|REV!HE{@{P=_&+GH zeO4xak=y6jBmcCb_mHTB!hv;V>x#lk?*FHCsYyLj+ zj4AwleFh9`5<^tcnsHeO!sdV#_dC@{~Yz>$v=Zn zH7@4^WhKl_3ysV8??-(!`EK}H^55Yb$L!nOay=>Ir*?~=iG0_Vt=z;BQrgg+!d z4o`Bz=jnX!!}A(1utYo5;7r z50d``KTLiEe#W@$r}bsw-1LWW*-sy%{s#F&_#L>em$1^on7}jg^ly02`;-4E^|HR| z$bZ~a+_nm|*nXCKzMe;ECJo0Mr1>_~*JIH6i z_mEG5A12=eKSsU-ejcvl+#Dy$Ps!WEQ=at8r}g9Dg^bJiH^=x_FfQXc7xkUVm%=|J z-wB^*T=r`{4_{?m@=u}ubO`^8{2c0Io^m&KlP*_mJWk1ET$bxyELQ>JGT(HlZ%UpM z-rcz5OhisUw&&eymzalRKUq;>> zzKXmFd>dTHr$ag4&jC{}$Gvtk7;ZXke2Ke04moGZN5C&oeh=h7HZJQ?&wt|mEOYta zb{kRNU(aIP)|W6YEp9=6MYyaN>3<;lZ)jZlUxz-MkS~L`p!{9PA3}Z@eSS%P1NF;H zzVtH_{d{9w`ZccS(-;vjc zUm@=Te{9_LANNdfHm{DW6H%Ydxb#yS{S-AW{mejpZSvLd_Qvfv^fN9w7g0Z*{2qKQ zT#rkSu>EW#{|CNX4U!HzA(^Z%#f5-huou{4MgG@OQ}ngZCwW2p>$I zzK37_;pEBTU;LVaBF8Sun#&G`m7xyhpO*5c0+F56Sn#$CK}cPcy#E&GCFTKi`=l{Bv@B{`M>KPh$I=#pL>Y>@xBmC4BvA z@(m@uuP5)H&inV|r80UyPJTCq_ssrB@H}J|{x3iD|FVAd|KcAAxJf-HmMa1FC-w5a z?A7~>)ThMvzc>)f|5VrdVPXHjKMvuI;{5;hJ3@HHxc`6sixB=nyw~d^{MEp8@+R=4y##p_ z)>m8d2=p@{gzNW`X};Fqq573rFLAKkS|0_^LS7X6XZaA`hWrGUe-QZv_*mnzDI~-G zwa~bb*6$==*WLZnO&OE=pW45A;}AX|gzqK4g8anEUe8zWLEg59ubV}l5q_M!68sr? zuk|xR_*Qa# zp6YQ3e*Wdhi45Vx$S0tF9{GIu8ghMnbclRgH{Zua@~iNF$YXZ(_2H>r?_d3m z5Z<1AC~{VlFNPl@?}&b`k(YzN4B=T*zusr?kGUPyAy1v&*S$@i3H|}O*3Syz>&g4# zeCc!ue-Xm7r+K~q`FLHXQV4Gy!iRec6w z=SKZ;^1|?!ADe)47VKXtz9jYIg-5dJs0e(z*5Jb=;siJOcUOgz&o|JVW^F`6n=*waD+n-y^@6$KQT&2tPzVAN6-bc#>>B zPsg)wK7YM5c@+9-OMU|R!^s!p@!sSRzKHxpE`RV5)swajw$?x%Sf4s>T3?MkH*z|K@K4Ft)%DB&EQGhfc<6k!et!smN#3iT z&ksjmnsXBK?LdAOejtR$!G5DTS5QBST)&rmK?pxazNe1wGa=Tq=BpP9;qAz8A?K42 zzMcFZ)ZZq**U9&jKfnK}{irt&;iE(Nnh^dgd4ae5{GO4AxAvZ`!0Y{}e;C5!6#W0| zvxV>qA-o0oNc1xBG`Y$jg-KSRD5UZU{p`Fr8|Jz%=NhPLx{_o+Tc zTko-o{Qo)Oer|=l1Ue6Cy z@z?e5546vQ@G4Z_65gErUTvQ9_sPq^Q@rtd|0mE-p%5NPp1P{P z{rV6-t@P{pTK{I5|KC@H@YH2rug_o2Uq4S?3H>xL_j+ItH`xJMTOUMw7xHSR?PRC5FWeY>p5Dl?|0Dc?RgDfH<0Sj!&j0|#d*o$5dMt( z2I{-xby1zK`tlI|UkI;W`Ss<}oLM3K7WoU@f0vGUJtro-0eKgk_Y5ZQ4_`#S0OviM z$k)J+hwytLJOlPK9k=VqDG1W>tmgCMYS zML}Q@A=i*ZLXt`bje=}y#e+rGh-<(qWTUtO1zMhn%E}>Fh=@>V2?`j+0|gaWL{QXy zZ{GJinfaRc*LKyUr$6(1zxTSQr@PbV1bBlW2v(Wb%ZJP#({Z_?`EQdvJ+NIh&*OZK z3iB}jUx;VDucO{Io;mU8@#j!)9@e+?S}k1szr`oR4|zQEhQ#(SZs~?A#P>FJ zzRlxjJ>GUqV*cNd=Nj?QWiD=k_(=F#@p3!jrhCidr#;?stSiUq#ykVWzeN5_kKZqT z3i0d2t1zD*^mv_diS23D#0_^4Zw>D)UWWYRJzgSSg*=NrzFIsL-`5_G{~*2s@twve zj#m>*pF!eR!Y7Ikhv$ipf!`&5D}0G~nrlX|S$rbA8DHV?4RK!Ag+e3QrT_V{w~c9UFtUKQ^Fe<#lCm{9EI3O@7rFL7?$*$;X8 z-stLK`{`xkcOd?4@xQ^3i$4S(cvE8jRq#i|Ux4oyKMp@BeiGgo)0^$*bBA-p3vPDp zcubu6U-bCf9{JI;&b6&d%V$Pmyhjad{^Hxyiq&n=i}Tie{yYuP1g+jb=dxvi0>^v3_ekO5`2L;>wQU_&#(MW zoX?A#j{PxgPq?FN=ab@N;K#-JJihwa55zp(LM~5haXx48Dvys9=X2s_i}SeDqaJ@* zd~lL$&jE2hC+ob&yH9iFV&m1p4UZ82BRpSxUwaq7S)B1F#QA)prne;4OTSi}&-a<@ z@pa;SuFYPLe=W}E$TXOq*q-20Hyrl(8{+*Ce?riSz#X zyFLCPynz{=Rpxc@kQ=WmPy8A2o!IWW3>$JBU*4~Km^km7ohi=yR4)+ceWzE8^Zv{q zi1R+cwbI>qustK(V9>L7ey5=$Mt*e)=eJ-ghEbJa%6QkG~;4qra_A+}6wM!JilBb=C*PdA;*FabB0&a#rY-NThMe}T`zY1MWgx-t`#2*A1Ti3 zL9iJf%fsjEVYFgiyOB#UU-INMcCb|ZaB~M6#Xp4~73X=;XT>kR+`+{dZ%#LQEAeZv zzUwN^`$JwU&i{`_iu1WYlf}m;x%SK!e-2+r{B>&f`{Mbl4@>-o?k>-N#P?q1e6M)p zp3aYo^SIA{#d#d3j%|eL?8o*kkJmI8=kb>$aUM4rB)$>r-*Msr)-N-}d4Gmdao#^+ znK+ljFNpWY?{SBC1^ff?v|)DagW#CQ&x!MRdgnT>9H$$7xW}i7@51qb67lpgF7HC| zQ`kSgOuPy913n|p^U1e}-+=v1N5yx-gSv_1^&Y&r_zvt(NfPINwtnL8PjPw2it~Ju z>Edr;!ILlEX}Zf(A^rvYY4N)Fe{ZWepKG~Kyxk0!|8sF(@9>lOu`Czg@*>yg{6Oz6 z&g*@KiRWT_Vv6{u@Q66Cqq$$4+Y_rj{)Tu*tk?I5H^c(|xOh6eAy!}$Od8G6oaHe}(6W--F-hOX9a;{{Be36zi#P#h27`75pa7>qeX6b34Aa zo%dq8B#G~a_Y*H@>hfPNz6Q?cn=$`B`wzb9awWb9`&I6Wb4-G0{C#n5+sUpo-q^Hj z&8rKByNYA8F6bdX48zId*%)}s|Z-cKE-v?hWUIl+%{A)PpBhC+J z;IB*kZ}2VR4e_JdA>IbQOS}{OJ@H=f_r(Xp4~kz8KO&w6KPo;GeoQlj zIPWXK{GY;;CH^?PpZIzB0P#9lzYG;`1n2LY^M>-xg1S?-3sW z-!DE4en5Nz{IEFhXZ{u3_V5#mE@84T-t=brhRoz_N zQgL4QdPk+lyD?_mCpa`=yK!=Y4d!JZFABUt_++^Sld= z2jhAF6YjsKm*f8zE>GzEJ$^3vc^oY|qH*KP<8Cc%f;i{zH%0s;e%F)4)A9Q+66f#z zLGen&b9&p4?Th;}>tcG-dEb};;yms)RlMA;uuRAG9`o?{`+AAz@%^3RJWqi8TbPIU zlWBwHE1l__9uhBa=B6{}JLczp;B?F{be@kfU!2SH72-Uuy-}RUsZWUW_;^FiU$J`Ix^_+# z=X116#nZ6Jk+uMy|@FlWS5u5k6Xz zC9WLn<#|C@i*x;$F3#)Xw~KSVc|p9go2#!4et)c&>(id%T%S%A=lV2XJpD?Szf7F# z*)8H+&z=)c>F)A$!G0RHlk4A9ajt)Pz6|4e-29xx^LTWZhKbXk>uWAon1{!OAC!3B z-}`-WuHTP|^El%LaUSn$f&)>km&f}iiI=6icJsbojIV;9ka%7nHw63b7|-kV9uVhs z<;TQ%ef?N$4>Aw$k5MYl`+;m1=Y3RoppJRCos*6Y6*}+JGGCm>2g}8IJ~Nl2%){$s zQ?S2~&g;a>#CbjYZt==2H~rgV`N}-JZ&kiH?=!Yroae)wi1YaEx*)ma&N-2cOw*4P zyM8X;6^HXPk|W{LNRXVJ5y=RWGfPT>}6q1V%E7BXf&D zwye#QoL`ugk*`=>7;~2{t0ZD`+ty@0{z)X~a!bmuI)cBiwnX${7jp3Yv zxyePvg+<}w$en0aICti(;*2?A_l^F4e?z9Y-L%7MFP1D7@9r&(QS=RF+ZeVp@9ZW; zYE0alsb}mQW}b`wXE)s0^lUv?tpsfxM~_!q$7T}LJP!u-VzC-?mM8QyZ>(wgpvXn! z$%us<$Nt*=)V6-t+8CP$g}V2J*k0l%A-+MskLlMm{%eN17VX3Yv*T|!b=ZE6zx}t# z*5B8>;=7`V8@e6;kMc8?w`FWM&b(?W|K;DK9|wJ9{8^6u43w9!AoQ>+{~dnkZm9Y^ z1rFQ)ziJx)qVaD0LpV-v$KS5n*?x|{9ZlO7{r*Bv88ls0^l$Z_Q1#pBJ3E`yRDXGn z%gFtAwtl-x)%q71tEv9zL&D5wsWy3B7m9mt-!3$-n(E(~>+0wJDqFu@#cBO3jM@5S zG6$(^4Vo^+^02w+6Fuv#^8jgFHJ_-D&xq=A)Y0U;eRGGyhZ>s(^NYU*J*d-%M+(Sb@IN7tf`|YB diff --git a/tests/binaries/coreutils/stty.o b/tests/binaries/coreutils/stty.o deleted file mode 100644 index bf72d24eac4156439cebc4c4a562cede36d85436..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 61552 zcmeIbdwg6~)i-{UrX{2`2~e;omxH7;jTgY3nd zX5s%O@kKW;EAzajW{L~-Lp9GEqJN>}Kh6&&_YBi{ zleK7Yl_aQ5zP&o|;>ys#(GxkFO=R!4$&Cu&zo9` zlTfm{WJ+K#G!QQ-9=Z=C$g7~}7u6+)HsP!~G{ChXCE63}8;qYAKy}xZe{GuE4$&Ew(o%^@f9exN5ofwjOxG4{5_RUGRfc}$EjYH?aEL8H9 z{VR*#eDL_hljq5%7Fewy=AC+XoCVwAx)A)Mv35g!SjusB|+3A zi2MB{NChsY0^gZ`6Zy_s_!%dt^6L6e6s7BuFL5b-C*$)dhr z6MWMMv^W4G2H`(>!Tw1lwa4d`RQ0}C)cZQ(FMaA%#P>Y?$K+7=eK|e9%?lAG55n0^8HRI7W`~Z4zo_`9LEf}utnwvJmsFJfJr$gW zY?B;H8D@0p6Dx1J1YX`m(uc7Xhr5w}lu6>(jD~g$KMGMUPi-=<#H2oL%+xbRrB0kk z+D?Mm;*p+vaw-2w$)VwKNKU=W?_e53_{uwDsFMhCS%dwPOQznBBy9a|Sf9<=^IM-w zpBxG%CzlNW7z{mo-{C9_=QqdXJdZhliTcP7-TYV71BgdzkDpu;y8Wr~wG$_)tZubg z)pF&c_MrPx%IBVno~QrHxpP*mK>1kN#cM{{BtB~tRMhu*WEJce2m3xQy6?>o!raL4 zVHhb`bYqRTs4HHxD3TaY)(i%F8cXutHM!$-(*EF{yb`2CCGV*&Il{{sz8dMEXf2GB z)^vC~P$IbPrmJ$j?qE+{$)s_ioWa_IZPhkIV3dN1MP#)+O6YgrJB9f2pxQ~0?SA%6 zQq-9I;|x5{@dlYP7F~S7s2t)ajDiwp1TTep#RZ;cxb8)JycrdjL&{7F{c;2r#~*5M z5^C@1gKH;FrWP7Mw`cDGTV>>KUqm{GJ(wJ1&KmR>eR0I6vI<^WQZn);fV-w0@i6&tXrQ;`WeB1Ei_u}5!8J5cT~YyLa)ls1ca+K9eS=#*-Os~S-{8f5 zKaT^`Z(s1}MQ7axgPU2z9*)Nq`fVP`LjA~!3DRddJc*#uw-m!{o*8CKLYLmT7wOj0 zczK(TGfvgRggN`J=PUlFW_-a_t3%0mRwn<+5g78Ogrr}`F_^rQ;oyQh6H6?f+%xp& z*GEQrACplll)T%H!9~^k1A{{?Xx+V!B?{6dp>A@w>7NzLm0-bTtz-h;OEhm?^6633 zg`nPdjZ%LHjfStSUYR@)7{OpzoKac%sI27QhKApuIZk{o7p152h*0vb#QNUHih4f> z6Y&ftZNo0~>&2|D%+HE`v8p7u=ofQJdLN4)CM8B0`_KmV@w~)LmjHDEN*8(GccK5S zG$RR&aK`-!kLO`B_X#C$M;b(%N^*qF+|tf8t%d56PX*pEB*{A@b#N8S!U)pZs5;pe z;xm{bARX-dDX%tpyPd*47%-DK6nBbLPA@6ru|NC?_6#N896A;C0UvmCH?{cqIh&teTb=wHFtD1LaJsG1{4ID+aCL3+PsoPUgx`%-YqiN| z>rinO$Q~7UxUIO_vq>A|E_B&*gx+*YbZll)rn5jUm^8k=d;0cO^IKZ>M^r7YI30@W`r-8 zT0$w|T&B6Frd5d(ZyiC6(4c(;{62YCZGVkdwY_!RAvF0gQ;*=fU_H-^Yl?21Q&NMe z;5wXLSdvqN1(%%*gCX#um?VC4s#mrvjrjM1-S4hTeBsxZQ2lq0oErafu;|v2p{HJ< z(fvP@ckSDju0zDUJG2Ke$-9PI;T6GiZ^h_<>CegdPqoXJ!PRvGyf7knGG|c6bXrvA zZRo>`ZZzdhHK4#-BO_z=gZq}z{J(#3K1$X&{*da0$H!-nGFIHjc>Q(_-1_rS4s-Za z??f%-;eP?^-$+yVDWj4mu6cvI$lRjdc_<5vSk!wAPDJ5f(-I;0Ybs?;;MsHwuQQ78 zJD%rhJV9W@QSa{{SJ(fUDK!6I);AJwFS>DKUez0S#i5f{<|qEM=egYY_v(`GrurbtVCbFw znAP=vW`9lKMP!z^Y6pmmdM`)1w4#o;n0}ZIZA!(Skrp40qFPhySDhm=8M+J^4j%=H zbWIKa5#CvJK_N+x-jpMp_wmn z1{tpP8F0b1XuUUvYh6FKU6vq`od^{5y@E1{vjy4P(i+tnb!yO~n`X3cimAW4{+PJf z8}V2*`B;#AY^b{b_?iW8$0v_fJlLihoypdhN#jgki(g{=EWSM0^ITp{^7;7Hb;&m} zeeFt&qsVsuGOV8m#^iUqC9KCZ3uuSxKr(!4rvG@#BVNzq5vl%km6}b(ZZm+@EqEsJ+*&SMmhr1+Bqv_bGm;xW z6m9$9-54c@KY`J4_%(E1!}TbL@?9S9%xFiuKOtJP+aCYsVyg7yKhQVtA)m&%*&(U! zABPEYVp^zwwb#9HVd9wD1rNoKOx_V%@Id0wV6p}~a(CueCkIXczdOkLK>Pllvd=lS z$%oNalK0U_V>0DZzh8zYP=?i&A5R=j8BPg(pK2vh9Nazu1NtDW!9(T_$!}jOKQv2Q zvdWCv7f+SXD=DrUXe{yT23oOEl>AE_HdltxAE1QIJT}Ahd7*(VIb`|25>gy^tZpEB zNQg>`OH4;=^3ng-4op7kmkVJhV)!sr1H)9ykV6cio&(1w9tr#=G_bmYgkI%r;>VzR z`|Eg~Jju+H4}%3O#e6$>O|kC@aSY5)FkWewqWwFbr>DoUOJCRyJu=F=g_Z?8h=h`J zNaV*;U6>Kxrf3ingzt4bHgoQ-|^7rUu z1D)(E=J7E`qZTUS&)EK_7DztJIicU^K= z5{eqN3mzBExkf0ZkXQoDM&UDC()0PVuqN7$?1(G*bYO5Tle0JT>{Rw|?QX77$ruFX zgcl*LH#{BwR-1f$_)fSKBkB3jKZ}leOXlF1(NgoS>z_)A&^?qp+V%4s3A1rCWlGKA zrM9S#XOnOi%aVH`38hgD(%CW276_mt=3I0NOqsF$%tAw}hpDe-kul1qB>ydh1)3N^ zHw!l7zwLyElX9vLZPs!+b^+-_#bY+Qh{0e zjQ{cM#;oU*H~l-ie|J2zQvM(I@qasA>ejTHOsHP`|6z;&5A;uCRKGK;{P*}`Cy5`( z6F#s(Kd|5j%J%=V(3r~eBEw8eWJ#D>5Pcx^#w6vnr8CzVLs0hVC3n_@Z-#L4|Bed} zorvww;jjG@TRx^gNYBHDW7vx^`_ov%)7AtQobi%UEIOyq&9h> zTFvIumgrxwj~eVgwJcFk+p{MpcnfW8$4>y{4S+wuNv=4y$D78Iz z`Pi|+Qn#r0TBJ=UO6(0q4y2aU2ST?$Gd?u1XbPT?%UE(A9ZZC&UJ8@(a zT=5Q8i|MTf-l=cG{_L|web1B9X0M8NJJ@pjj^ur*W&Keq-xQROm+NOBH}u|Vg%eLG zWy{mbt|Db0Eb9FzK@r%@tdWz?)1yTLd28{!&+Wyu6H+|1;d!GqsXBZ*w50um(T4d6 zv{ZTBkvqyTKL(UGj7Q}q!?4#5{}q=_JC-HisU5h;R4VuHk`b>1c#(zW7v0wirIy2- zoTGSO1BBRqeQhZB2}9p`cW%z2oTA<@`x`Hrnk4@!0LyMn74o4$;R1T?IH>#3!rpeKn zZpz4X5AN5SOv_W5-j7W09{N45hj;1Q`Kjj7GD?r4zMjk)D^6uRa2`sFhm@$mZ$T)8 zLZQ$@w?1PES-kzUVzc8{)c0MAhmF`fW*~3z`{Qsrblszr0G&iY-Rm?@$qilbG?YDn zJ3FH^ixflLk?9UqlWJSeg*}y&U-45ywvL<>!yQz!C>T1uk)dh(a0eS+^*S6XTY^)N0Q$nj z?->>)+8d)yr+5|K;^lR#mz}xN^DaoV#JyNoWM(WL-&!8=*0;oConCvZ7v1Q^!tGHn zvc4-C-sp9PW3fuFwI$w>h55aN7u^(X??m#hmiSh$qp`8mi*-h$jsDcugugzVXgtZoSpoec2q!UbDq<*)ZS8#SwX|;vx3)C;E$#7WbF|A3cQq&4qU~{S{b^oXOS>0uX^VR6$~-P9 zq~l$bceH&ybZ?LPCljI9)S8HGKu&ZSJBiZKS!?1XpOVXYfma4y#*Tx!TNbL1M;G2& zkBsQWqp`RL1vhm>!ts_4=mbDtM>@KqiFiwE%v+XdjklCV!mX`3KDHq|Yu21tqRpc- zpF~^YEzuZX&YdR_vn#F0+`uft3Q(Yqb}r_IXlv&}f6>&~DFxorGgrfcHpggty|*NR z{2DtVY&cetL|M3CWoI{5PUcvH2yfYE^W6^lLrM;PA zqFt!*8UDtW*47#RX1VI>>_UYUEbeGq-_maQRTAI#;T!mGLo5uNhf%#T@I^LsM1A@X zuj1pz=$N2i*0LqszSS#hiFCEM`ei71q|0mU3d0Aik67OTGwLxGgU%^`@#7r?cd#?E ztHGmDBjRgbtmV^Dc9|3#8@90}7HR3^Q=~SDTg+i*BGxst6?NV^6V=ugHRn;UI=l(~ zx-1+yBijDymZ(=|lq?H3FIfnO3AZmVqjw^t(Dk{9$ z_{_s6Ko@~Z{F^lg|K`xy0*+X~VwHqOx5UHrZ@o8nKF0;-Qsk`J6`W>X1*Mu>LBU9X zV^)AA8AJ}80!NWTathuoxrRD?JzK89%h&K_bR3(aUQ37dusrn3g|f-pIP_>@Ts5 zE<6sUQ4b{0iAupIodONh!zV?E1`0;5Rqj`j&6ap)S4YJ23YL*~$2+>VrrKSM8eVG$ zT4F~hb&fH_ME$muTvJDvAKTD@4#LLAJ37kgfiwiu(x|64Lx*pgZyGRS-qhGazrDk! zHjIV^$~Myr5qW$=OU!SKZfc3ZJLB=r*ut4JH*elt-rSxj@91it8S7|@Z>Hv(>N970 zXGc3pBh;=R?+UlaS`FR$L^Bs>k>yd5Fu)H3q!ZV;Yjf<(!$s`0t5?vV4 z)8i1#;BQF4hsvm-vvH};p=wz((U2M+kS6TY5I&k`3GpZ^!fc(kuWRwu`(XOsUC;T3RQMi@TP_H{ynsjcqt=OWmXP|sM zpr(>4Jt-G16^*z`&kGVAaVToi`#!B3QprbYYobL@wkMC~sRZf#x}um4ZRQL|tBMlx ztYFM^CWb63O(NVxs?)&LNi~B8#OXUaQ^~cS5aV3M$4C^jjxj~q#nPP?GH)kw_tKZgI*ZU-P9B{Jr^2!tB+5eWj0MzmOY4D5rU+t#%))btsVdHt6x0rARhY6E_2rCEKP2;f2!of_ zfhjQ`mAU~d5T0Sppe~PWkXkX3a7$aFjY|}UaoRdtqi8%n4Np`Eb$+3$W!tV{AE^ zG36L6K!xQcbxQNmmLsFE5Xw)QoQam!9^ZhqY!li{EE?%(mu`oal;|YUiD&pbT*=Js zSsTa7wc?&MsZQ)?X1D>0&uw1RZWMAR=KfO_*{OOwXv# z5__Ty9bM?~B^W=Kg)1drAB~!MXd`s)K-WwgW@wE~v~y${%lZTjX4r57oXSNQ!9c~M zg)=LYS~a1^F%}?WWGMr!y-g}uKJf$L)TFOfcbdwV{H?bKuN|fiYt5+>4t3=C>phL0qANDt1^qchQN>6m6h0+>2 zZ4_DZVuUB0OeFc!c7aKc;Q`*YHJt`NW9B!e{mkH6z;3}-nGmIl!xje#*_(DG44+tz zn!ik?nGKt~=toj%Q|^WR43o}waBG&IIdjeOB}-88=pCgKO}A3)k+3|qtW1~kOWDoB z{;auk%PPuJS)nJoAORajZ6{?mPMAgYEL;Shhpf-&N7siV8@UBz%%{atEWWiB+m5CK zttc-Km<|+njdbb$*Kx5dsb@>~OZC#!q|?(f(r=>e>i5gHy;Y~PUjCk`tRL{Ukgp&{KE?PqZ+f}qfn4Bt!!45oJHnnuoijJqi#-K=y_Q+d*hKDu*?Lcc< zv}v~=_py(s90wa;EuY4e1uJ$$WN|vUD-=b1%#hQ6+lFXckYdX+qE+l{vG1n1%9eH$ zFj&54uGGW|>S)hu^z2Kv2cZY;3d$Nd)%Ia+OxJA-F5`Awmbw;wWD8MB#Oqqx>fy;a zrurT0qrBxn(-Ya1>;9srOT}BOuPD=40blp=@)N3Y#3+9hikn28c3A}fpus6MykwZx z@bLX=!=v=)d)bmBBF$}ZBb6?vYypsA%Q7S^k_s3}68o5plHWf_qw&en_ELpKYy zGPBw=v#&BUIi=g{bfePNBet;cB!^^%gXI(*9ouHeT2X5PDKk6(sc7SXf)xVF6+>3x zCr~(6OIR9fNo&FkX-k)BLaKUGAP~|fbUN4sWDB%Szf2k^U4w+ZhZaF)7{jqzmCQ#s z0L0T8SWIf4Rp2I#=ND+XCOrrqV4x;G76TeRnj5Cse!%RdVS)!A$xztpYZ|na3Vu;$ zT+%!%fh%)s+AlMAc|GvZGd`osZ8pek=~IQ*g<+o=t*;D*=B~3$2Qd5a#xHKMbzu^FQi(~NQSK$W!%K1;ln7t9>>mHlu)7 zH#9>}V22u$p&5oJy#;RO6?D&>XSXrGsjH(6)M%{aK47hFPu(V*VeVnzW@bFR5i>OO zW$3+eqk9J50H#e8S`WaT*F|Rd6W!;Z1%@y;qM)x@h6Y#8cBxb zIo;~yOErPP+JQNbPk%|CJ(e$CFk8=lJb6kFkoW8l7xjJ^Cq-A#YY%$%b4IGCzg0VscW)@?xAZ_WzTQ0f z5BB@$A^A3a&tN`%WB%nJzM$WL2YPM%#p|kb@bU zh#(W@1aIYMUJqk}Zpwv>3YZ=%9ex{+pW;#2W4!o89FB&Croas5;n?1PKtc@HI~(Hs z@G4&0IdZd?pLzjK(e?tQpf}_2i*C|Ykpunk7O}v{t%&zhkI4277H$6f|skPQZii>_7M>^EoR? zN%Inh`rsO*KLKT;7pBnj#_2a%74>}wxzVHZ_`u4uk^C-498Sp`JuJq~(|a0h zumX7^pUf{$oL5qA@~y)=Ea$TcKKY5^`(WEtDfwYwj!8l6fDBRTgCOS%wlZGWlJ)|5 zC>e$DhUcOljnfhje^(<#aR3x4_7r*qN^tWcwxDrI^HLcb-}?;IymTs&kBq$h5{f;| zOZe}V;HOBy4^-;Dri$n)Maz^ggT za-`tb9L{iX^gA5d9h|x$3iKvX9kSteO!~4G#yJgj6z(yH)c=FzY=%`>uJh%%#wsk= z_~JT;>#YKEZ72HqmQe7Ca%`{(<$97F2M?7KIq0L69w2v$CuHCs5`6IPvJAXX@V(94y`|!c z1osZ+7ayeX|I?H3`w%oc@tL*ec}tvl_wr&4RW7ElX&R%i-|sxrJJQle$*HR!y=#tw z)9mn0auZxW+YIed#8L;_{!)OP*y?fdOz-qO>rI*7>3N4qLZ?}K9}(R42bSM9bKCAM z{$V-E^m5O$-kRyN7R(Omf)j{_dxP_S7bwC@5qh#H! zpwuZ<3)OwL>LHx+&sIGYPyCVx&N73I&!(P@FV0Msy0Y-%TfS}=lXw-cy4=H44mT6VnB*#{e7H_5mM=^#)t$&*;0Cv z8!J#e>6b-4#wk9FdMW-a=1Zl|VxCmIk37Z-R==vTB7xcX?)Ql2vRMPzqsUWS29$AO z_&GgSB82TxrRR8SfNb$BG2CW5j3VKSn&O?n{RDsPfN9 zKSn&KuaX4zD3=tMk$#MLPTwsF>`^X9rFY_KzVKfDZ{s-+;nW8k?>W3y#>QLoTHGFO zysaLK+atwO|M6b&q`!~PSb@@$%T$dO3CzZKzfZh%Usueg&#a`hR4P6T0mZ-9_(<{G zzh$X_RQmUb=k!@BAeH_-;nvIgNXRgpq$zm~0MS&Zp1za<&xbe00)5`8(jUl*X>LtSn&_BEMLUgjLJ=19GIH zV2zwlqhqkJcw6qeLMrbZeC$o=^%QqnVew_TXB1A^Hg0jD-;=kgpm55P!s62k^G}}` zw5JfGe6A&V1iNOTdKJ6;8QqTy>$pEpKsQY0vnjg%w=|g{8ql zAL>E?nlG8y0Az_mY9@}GlmiS!Oi5KwECFS=@Xw_qa_-4Jz3}CnaruxYEvji9Is>0w zB6kDMjmB>Fu~#^*Adbt&omS`% zjIpc zI)`4{#zm+OFL2rhy;F$7apvGv;`q2=8wf+W26AgszFSScOYLPb+!9`ta!c5E5ya`v z5Cxm|a!M<8gtXfzZO??mNk2#f1e*P2X#21m8l#NPJJnb#pd8qU!3Dn4VVzJ32-^i%+zcYACJX< z;%N}{0Xfomk)!mn`(f0lkv!e=rNH9~j@0IuNAUF&iEu7Hgg+p-9WxpQ-zzwe8^B_M zcaqN`oM8_9f1G!ax-zGq#ew(-MgC=xxC}?KgD*aIkL2?og3F}Ps}fUP!}vjLKccYZ zy#?pQf4$g|#~)yK2|k#Q69gVNaQq!UWVgo&M3C&gKjWP6y#yjy{I57Cew!hWE5Ke9 ze9$T)`sd)t}7xmWO01+S6~P40^k zw-z|*-ym|-KTwD=evntiSLt=o#lo{w9F+TE$b4DkOGRGP@_sDx*ULsL_qC9@U+@aq zusu%Fy&!ml;2Q)#7=A$IeZav#CV16kBY3aK&lJ2^HmJF;L)>!UIjWu7`U;D@S7Hdb z?-H(Yp1YgudF03BhYjLCgCe_?@jP#*Tw8l41@|4CF2|{MEz#arATKL03-R$AjGL8@ zj`)_yi`%B6zALzOHyiOo!R`LH#jh7!%xq!r=Ymr|q{GdEAFn~2^UJ}|FU1}FE|LGV zga1zOOC9_Vf=_qwhXtSE;ExGD)4`t-oaR+JJTLf38pQdFf(IS^pMr-R{9l6CIrxa+ zD;<11`^|W~5GylG6uco5_6`xe$-zG?c&mdSEqJGcA20Ye2cIsubGy=;$@m0sg(E*# zgO%j0g->*kDfdb!h-V;2&;%@!C!Xd z+XVlrtUqj$nBb2%_*TL5ouT;>!K)m+Pw*iJ?-#t(nG#hjTc>5jvfXIKza!rzxbIA4w+jAM2k#c#t}iVA z=L9d6^@YVR7ktpcza)6ReK1B6d_(XG2fs$}H4gp*!EbW#p9sF!!EX}0)IOjh`SMRe zp`Y(`@VhO)gWqTQ9sD82$9rcxe)yQkhwKA0lJC=&$H9jM&vzCQFAKiL!QW(jyw~RB z`>x3EbmYf#e>%at$H6BFUVNmjL32Ee@$p`t!~YS%|I5LT6P`hbr&Q#B;mFSv`C|J3 zl4L(m@Ja_iS?~uOyjpPYqnY}jA@~LdKU?r!4*m(o$9sQt^lT9MM;!TP%X3s_zU_i{ zADxLO1mEf47g{{?u|BUy@VyTHdBJ_!$Wq}-!5bX>tBjBL+-%pX1Co zt`+=H2mhJiX1$o^xmoZd9r@b@KgPlD5!|f9(meMIexf7)u;3LA{)FImKio1sE4W#o zSrk7yC-?!U-d`2`e24#Ef?wv~W~&bE#la8a`Nw$g3l3h$IM$EHrFEgR!$m&f$R8#0 zTl`G<;{`8ucs?%p%Z_|N@SP6+Bg|Kvp^h`Eg#1|eX<6{Ivfyj7;OnyB(JXjd7X0EY zcyAW`3t8};S@54^!Eelh-<}1(FAM%?7X0s7@SH65bx;=k&@A{dS@4f%!RKeePtAhY zX2H(_ekgVdt7IJHdnWL>OJ#*3 zeviI7P(~YL-X^^80B=h6@T#%$c?$xSUbL+xUY~kbbUnVqT95BhMm>57 zSbH<2Cmydk8n55n(q7N+aF5};%y{X&yw=d8Z#~x23pDGSTEop=`kRpQR+oBup{|kQ zv-+!2Y>#aT>y>}c@F)u=I zkz>;GdGlw@@$kwTdo_EOS6;Wcg8l{QA79RO{b!Z{%LQ02z;Xd*3NTfGx!~X=&uM3I+F3>emYl_svrMimX*8W}WH{AqPBoiz z!S4rvZ8oPx-O)Lxoo&*x{2Wd@hjp7{%E%0JIMp0xn8Ru3aN0SXb}s*)!whrHe@-=* z8Rl}Txy&$^)6V6z^H^pc=QxjZoX7I>jJ&~(yooibm}eg6IFIw1&ph*4em+aiXP)`Y zGoR(>GtYcxn9phFbJ|KyTghoFIc+7Ut>m2JW5>3_!NFPf^{)o6)>(FFuofw&KsCzbTQ6`uj88pMweMe7vp3B z<97k$gaPAo^rID2TH|#A<8}e#cLC#gf!T&-j?u+|#DMX{fN{lu@x_2~;ehd8{Okp@7~c#S=d3hkHa;3K z&J~zvs>rx(V4ks#an6A8&VX^xfbq|Oam|47)4)7qT;rnw;X+kFEmCNQ_eov*o9&Z?J@2H0yzl#7rGlX%P$7^VTcQ?}b$iE1J_mFy9 z@ET%_4Hz~-g3dZci1QSoQHivtQqoXDBPL~l83K@YDtLl^00CEcMST}a)}#`#20X~( zMSRU&;kNpA{O*jm9-}c?vazF$embUpY2EVEf_3$H_a)wxU%x7NT3t;&{d7ny3dI}o zHU|%H$iU0_@$L_L6D%1SXDDcUGeId!K z#m`l7xWvKnb!`sY930=5=CH%TE&sJy@H-q_XhweH;5OesI=JQki-TKzh8*1TyyW1P z$KJ0byOA9%&v>~XWN}IEO>%Inzwh8SUwS@;g3Cicb8qngPOLukngELrD}1TowEg~f zh0}8@6o`KoK9(n@aP22oDV`UU{I?u=%QKmX5$G@*AB!I;IO+2bh0}8=6zD+D9$5K# zN}lS%;u{tIvck70o+5?Y{YJ|76@}la*_1~`W`3fHpoYZ(#;a^npnt!LlHNUxEZS1M}ug$_gPs&YtR;qkY z5u6UX-j^x)1xnuBZ#2($Y54{vzfj3<$ilx_$x|O??Pl&1j^;mt_qk1Zwf^S*&uIBG zlsr9qWcgPLPT6byV@h6^_cK}Kw<&pDUUNTWv_9s3h0*_HrOz+3@ZYKUPf_ysW|7Yo zKc)ITRmm3!?w0o)C10iF*JY8vOUVb7{C!#EA5rqBDfzuw9|IaM)mtmib z0+qKKA6vg)6x=QEV@ke8$v=}t{vS$yiIRUKi#+YmQ6PPm;$!tWSa4ULdL7(`kvf@8O@n56xI)%TWc>bku z`@6wg^o{&6L*d0tiWXDj&wO8#wy*G|F(0@;V=mexe^&U5 zO8y{u?!vY65rR{FX*>H$UYB>O!nK{}C|uilk;1i}X9(`*yGqIHd|Q?LN>#4UD)|=_ zKA_}RDf~-W#_=^5-b|ce2QzF3+)0dCC9J!-vA!EO=Dm=R(fbdz->% z0xzKoMYu@e#NW!O=k+Rl4KT~|CBZ4V?mxe-c~hJa;G_ZU4uW{3n(C>k8NP z_)Zp{gJ@EVVC~jyF1=$EPIj>K?O6)f`k$=uwUD=VxJ2Q)UT#qMawY$m!Zp8rKagur z`<@=FzwP%HO$9?a#5D0yA)pK@?p?-wY19dxpO zb)mwE=Mhs(uV3M0XWNdxqHvP8cK9!a>vnXl!b#rN?~{VNc7E28xBUL0MlrWtoFcf( zQ?2B+o=pm04oYi>OS16vD|zz&5~GIq6@_d6zgpqi|F2Q}uc~}+Q1YZ_gYe(s;MQ)x zQFy)Lc|hUBVaxSrg%ke? zZ&WyqQI==3!l_Oy-lOmqg+w8=>+*&bkG9W-Eb<)+ z?@;<&r0`CKZ&&= zA8Y?&g~t?rxZtio_zK^r3g4vo_b49C|DeLPJ)cxOn*RlbZ&v)TC?3uK zw!$_4xG6}C;QGTM3g3cwYv&^bcm3fwg=_v&#iR9~r|_+c|0Knu^kLLf5!Y@?(KTtfH|K|$V{I@6` z&Hr14U!?f&S3H{kFACTEPbnVF|B}KlR{XCi9?d_ZaLu28BoZUI{yACUmmuEy=aGWD z{#l}M&3~fe(fTh?c(>v|Me%6;YZb2fS12CMzfR$oD*lM#(fsWS*Zc{^qxpLj{#nJp zUGZrCs}!#JzovLJ|1O31DE{jdkLJHg;hO(8#iRM}Q+Ti9e^Bvg{wEZ!`JYuhn*UXW z_bL826_4i6{Ro5*$ged2!GgQ~`C)}`LmKO!M=2i7KTYA9f3D)u`Y%%W=M;ZX@o4@! zg=_w^6%Uoc-j|Ome7oXrRXm#iA|;R+`utMi zy1avmNAv$);r)vLkBUe0KdErd|D58{{Qp$=Wr}~l;?ex$J_;cO*WU^Rcl~XO!UvGf z`rFZpNAs5|Tb*Zfy29?gHP!mm{PKT$lI{}zR7{@sd4^Z!BNUr_uHD;~}Nl)^Rt zkmAw&Zz%jK#eYEYX#NRDK?uS1&kqUi`sYU#{zas-{^=_o&3~f8wf?gdkJi6R;a^hx zHHt^`uTZ$=KUeW+{;0ygtoT2rcr<@P;hO(K#iRK@ukf!Z{woxZ=Kq?)HUGC1kLLfe z!oRBcZ%{m%|2Bnd{<{^A=6^`x|DpIFRXm#iS%quUC-(~3v)zo>A{|C-{_{JB0z5vX2%jF0u7gM3^dxc+&l z&+w@6{Yb&x`kkim>ygy*&k)?@pRaJO|0#+`>tCnvpLl8hvlNfE&v^>h{1L^Y`7coT zPrWq%CdH%qFIBka-!8aopD!!?XI`5B>xxJ7e^=p}|2oB^_5YQ^Z}8ImgNjG<|4!kW z|53&BbH($dlGi-XDft_f{A)^nMBxXNyw?BV;~<1UcKZcB)_)2Gcm3x`g=_tN#iRMl z6@HWApRIUwxlU2I=C4sant!Fjf2sJ_C?3rpQMl&+l;Y9+TNHk?;=f4oX#VXA*Zfx~ z9?kzvh5t(N|Ci#?{MRX5^WUI&H2)n6zeVxyQ9PReL4|AnM-`9ee_r9gR{Sq09?k!z z!ZrW9ibwNL`WQ$N$Ukqz$NJ|Xg1i2Cl)^Rt#}&_Qif5*h*Lu!V@`FmgM#<~;wNlC7 zuH@G!dCgz12vw<>vU&wCaA2gUOT z#iR9nT;bZDFDjk~70+u*Uh|w$0wDzQEBaW!>R0$56@HcAC1ve4OI{qvHRw zl7CFe>+;T>1|bA0*CY5?Jx>A*;| zHHB+_Z@MW6mG?=-KUHwjU&{xSy!N-1@EHmuultk76#gROtbNX(MAAn7T^ucb^kED$ z&ua=la6}r{{h>ikeNk3BsUQfX2L-w${93{D2}H2C{k;!SCxw4oLSt z0%TzIuTt`JaBlI_1t)p^eBD_}{;x`Yjl!E0e!k$uGg0N+m_@!t$0P_~62qQzOt^mjdB?@v;27aZZ8sKSc5WlTjmo zsKUuNC=kzK3SWbB3WPs}kL7O`ocMLW)TQM0c=YKk^7i}DHeXxbyOg}{C+++9DBsDD zvHF}z1PFv5uJBJ~!9OE79mtgD;X|QY$seJ3%zNdH9kjguzB8%(_VG;P%_kuQ%l{2? z>7Au;Egx3+(~!00GVcpF<8o4>i1BEKZ`hM$a1*c-@dRe1zUEUUjYkMXHr}F+y@n53kHNSb^u+dZ7|LaO#=etwk zFDw3QRld(F{AWsD=WD-rPvzD8e^T-mDpSNqB9N?!9%n1BosC|}KAsBq1H zwBTe<&3}TD*Zi}T{1DPuzgnQ=wH;1ZxaL`_aII%V;ablw!CgH+qvSO|RO3Kx`XGGl z{A`MWxvdlaE$JUC9Q@mYhaB9#FQdW1e<<=>9Q?yn7t{HId)z;BN`O-@$XJAs`f!;~-Ep`-9-64qha9m4hE4_!=BH)M8Z(Dqqq%U=FJ1?>0sg?hk z$lGz#;x`N4>G04Ro5FSn9~5~z-dP@6D^f7;zfb$~GX}Ol5}fk$Hw5>kAGSQ!UR4f$ zzvSEC;13Jl?cjg0dOG-%f)6_Q(}M4HaP#{VP?j1$g4Oc{k@p?k{(ec7gTE>A4G#W} z;N1?MCwAZI;FAO&bnwFj-|OHX5!?=BR{!G!_ho>yxb>$h2QL@-1_z%jc(;R}B=}AT zH@{oqd4mpa=XrY_yiR!RtCFprXAABhoLMiQ5WLF4>jiIc@TlP34&EmCP6xN|X&Q8J z^LrMax7We#{L=pZpw+)m`2B)R{rd&4a_}n!Z*cIh3f}GDR|~$=!M`o|po8xce6NGs z`K$eDJgfipBJWSk)c*#-s~p_+3k?o_i^z97`0ax4ba3-~8Sozm|DDM1b?^rSw?9H| z^*6tx;d#Dnv|0QSk*{*_#|3Y2@V$a}JNUDL?{x4X!3Q1uMZxzv_-lfDAIh}z0m1G2 zRjmG=^j}quyq(`SICzoBcRTpug70*2dmm)b!H*aDy$(KIaIY{^{|do<2d@;|{ywHH zS5WW16zEBH)@?|dxw}4t7oU+z8q;fOK~<>eJw7u{5!fNWAO$_VE1V(ULj<5U1sqH z!LOHe7JoqSI~{zl;Cmh1&inT}_#hD?lt?Sh|J3@Zhtqz&d)7wU+_^a{W0MulA&xU zk8N#>hu3@M^eSLJZm?%v(bjM|zZzu6UwTASQq$5|{I9hdsP}zO60V9{0-WR|v|Np1Hb=U$HFL&FzVDylc1T%>yQ(?I+3p zv;?vFPchM67)Q$ADW})YtAJ-txNtS{=?oj6( zA^(0W=`}{@Hl4+H;)LqOt^Wrky^lB@to|0e2`9wqrhi$|+xfkfchmn25o6i!p65-9 zokC3ZE5^sBxBfF$-js3|RSd%RkC-D355xGl=?@0x);*=D_&ojhJf8$qaP3F#F;@Bw Pe>aKlP-*GZP5-|Di_mXu diff --git a/tests/binaries/coreutils/tail.o b/tests/binaries/coreutils/tail.o deleted file mode 100644 index ab303b50f8b4721b650d5bed11dbf31f1a2e73be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 169000 zcmeFad3==B^*{bRGm|}Gf&>VgOkjXSNFa!kut)*{p3wwZ!lr_RWCGEU(98^rvIH}O zOs7$3wOXZWYd`%|tF2w6)V3NHp>}a?)oR_hj3{muan0|2&b`kz8J5rI_kDf;`aUn6 zJonyn&pG#O_uOTM?X#=rI8;^9A62!RX7--zG#T~9h(YQoFaP*pQ)_9Ay!1EUhzpMa7H z*VhHJHeAH7p}LTI$i4GE7dNeMTT|~2_eYlv{{1vUzKYo{H+6MZ zDLsc!ytH!8qToUI&R>hpMaznoxx>#h-|IxxqB)md<_iG@`Ze@6%@o$1(X0V^OZDs+sK$fAEbYzG%*} z**Y%w@OE@p7?wu9Xhr2Lclagvi%Q+$Eqd2?huuHc(sj=HYX4wtLtmDK!_huSZxbTh(Nnu=LSJ`yy57C9 zUt>QV1e6|lsISKz9xf=Q3`+63!{_LrkAHFh5FNCU?5C*-mJ|LBnHP=Jy|V+Ks9!&5 zfa(sv@HON;3&o%HEk*IKD7tsPtV;y-lLommFc5S{0mFbT{uDsWdBHM&nobL?O2Z*g z+Qldi2_iQQascZcI&-&B(KNGb7Z7Vpi3L)5^%5#-I`&UjplAYb@>1&}pmOj00W26D zs%BDE1y{|NRW(#q%vE9Vz?$Dr!Zs1n+*1lXdBD^VBwN{Z%qPnSVbSL#@eFs;== zmQm3h-<2Ox>&0jVw%S1|3e$DaMZ|*y)v^8fPDR-`1F(1E#eMzjP9D|1Hp1c(SXOe9qt4^_s)k<#ro-@;3jEuMe`beonC=X zm(02p@opJ933-o4ouUq^b%%%OY%iK~*%G}6qo^sJvq-N1_#6$z@OxiKQOv6~Tlc^I z+NZB_cs>Da?ww^|YyWq8wtS8{rsod-7X2Rbb>EDt=V1RR?a%dm`Z0C7i9$8UO%;>C#DT;$Ge~2|IZXA^!evtmUQO6{y4o}w07hk zrkFt#cf5v{542*y%>LeU0YBehv-);_yQTe2pd}QQ@4E9pXGZGnAtFJ|C>8jzD#A) zP6YjTe?9rD3k4ansf8f1f9;NKkJ({MyAX*Guk?6ysIjp`mp$RBteqV_yjY9=eUTRZ zGPJH9GY;XpA1gcI}e;O3;8k2BDbvnX?I!v)!?|>5;BY=f(!^cwPBWQFeTxUe|&`&JsPJ97?tps|0%rI@m{*tNvM@})(2;tovb8D`VmA1MRQj@S=z;P zk1({NbsSDd{@9tf0ix9oybkey0e!^M+RKVVh3%VEB{ZUa`y?eaG&Z*kGV33kJ7E;b zY&wZ7c&_jRUq=__MN;h-p+nVBkeoM;&MhNXJu-Kadh8X83|W6d*KD^;p^p|D*gmB= zl-hocYSH5xrXCHO?wqT3oK!ca>vSp?SJuM3KV1}spS_pP1B`Tqa%psAv6U-?y=l?o zkGLQQ1`w*y72}IO%C)}eVg6egeZD#xua3SRn?P7f5itZNp{WG_T0$K7qW@S72m7R> z#}ORS(c^T7$3W;EJ+9D1Ew(LJDne)OTz=7Fi_+cuGPTZY)b`KEB7q zJT(26IZkC;ZfO?;QxAh`-{OFPUM_v#{qRgxi+&M3(9u1i<7CFh!Mgo$L&rf?Z`p9X z{d45?FEH|EB(D5|O#5EEzQAqHegq=7Cpqw>MAbn@sW~WgNB8xNY{7-d4?F4E>A6TB9wK=)OqD%EtUfy z$nN9HTGBa7N@%qF`L@){+2*tuJEN!;hIY2*SK6anUlOL2%B7WTaWJE%r&ZzSq*#hJ)BBKo(_JiGWwYoeWtoI=*{&-|NfAImg?w_M`QH=jCNsd7I&3a^T?BqGS^i3@a;+4_oqF-y#ziQEJ zZ*^z0H#dolMO>6(Jr1#I<WjX4 zY#`@7B%Rfo>Z~sRaN`JH(UIUdDayB_A24A^F7z*95&ar>R~LPFN$0dlTJ%Ww0;K=I z3}Yi2rm-!BOmZ#822-nm#h>+jkld1veV@4z(f@B^3VH@pP@%;ns=WD9cwlytHt_{nB&|kZ2ODEmH0bBG11D!_2fEMK)I&So=oyZ{Q*>xQ1tp{`&m+w$ zdf6BKPxnm-23qum>gYG<#lwMIM2M;Y1uZts>+5v6+z$`Km=T=Qw8;DJ$Q^hW{)jkr ztPpu=^yO+Z&;^G;UcSzGJ=H~D)I?6W!#e@*i#`tP3_V*twZWU~4tp7UwKv^|80*2X zo(2Qe(3JxmNz?4j6K^?5o+LBjJwPt`i_@ga`A^vuEp~-B9dcp$XwiRlzfM~Ml4~vcG7NP$R%kx;Fon44 zs7J(O+RkHj8u55`X^%0*$*C;=5%OOI;A}0L=ViO&K3uIGZ703ZL(%nUJ9$4n)zMEF z3JwKZk@yh?vsr7HXk_bQt+N6f7AL>Ph6TE5m~(P#)OV^?Pfhf{2(>TvF#kCk(NSOA z=^CR=Cu7}EQXM^66a59XXk$AFPMhlTZkVA(U#f{7_eGETqAzK&+o}E7b%|+q|3N&M?5NvmRh1vOWKx(nyP-n0Kl3LM+TDi*` z7-8fuvHOWM_|RexGIxLggB#!0VkF8Bs>{D)eu~9BVi8D>B6V zv!CN%hb@XZ9#gbVIk?mGFPh(x*zz)A5rt<8UHOktI+VnosM=ydWI3jF)kNPzi7b&G zp@rztM7u(S5`09lR@Lq5I6AOh`J#6UW%alp=5$$8^Q+Y_eMhg?O$)C&iDP{lcl$cH zMder!eIa_>l4^xs_r-1@biUZ1=ueIFcWj28t|`(uORJ+F)tN8!RzOw1kccLpo`R zUve9wvaB|zCz$Q)V5U@G#}Uk!A67@-Fh)zx0L+m7?JNaEh_M|kC31qe7W+9fMOhat zSbYg;M_?Gz4&=M<(tKE@yC9NUiqN6s2pp81zVQip10&TUF9zXo?Ft_0jX>6Yzy<+- z;e~j7FeGPMIiekp(>gEH>g0$NsEEAP(T}Pr_8ZA;{4XqK?C5lxE>UJC^Y=-wDXA=7pG|_gCd8?-<(zSgo za<#1&YMs0udgyPozbuwITIY0h))!Lk^o~V)=%4V>V|&DWEZ8{KVOy8$n=6=&u@}KQ z7eH*^Xg~^REX=UH!Q!5!rG$_mqHJgadj}nd^A8DmArXqc!%I!=sEcwEAzh@Ee>qX* zP0bG;>fQmvN@Qnu1V)U;Y1gbX)x}{jR3(;954K4 zhu;jX);Z0y$gLf7K=|)~WF!3|dYq=H2&VeV=wVu*NEwO+iaRnKyhDye-LNiRq=<1^ zk>q|vW)`eH&^;Wuj{W+7oVWL$9pYEXxTPIEfVZCLyI2Uo1wRETpPCxKgqsnE9wHH! zo-lIFLn7DAM|H&i^BWeHqw(g?JICvqV;+j3<>#q<@j4S9h{1u=ejb+-}hw{8#P)Qf@Rsi@qT{ zQL)1EK3_Xp~zEz34B>c1D+TxhTzCy!FvslI<>r0%DT!X4YodV*^y zR>x*wW#>aQz6A~wyS5BFA$rV@J_<*Q^gxQSS^BPXI|B478G(YCrSJR7hk7gAH$NI% zR3^O{z6?JqI*tieos|v~39U~Ofkui5bQh5883hGdeSSm7@+$8H_jm3AKkT z<1r;VYg+f0-90@=XO#hEPkcB&r2Junyi0J}bb`F;1Xhs7o(>~M0D@ng{{f_SbXGbB zt;D~t8^P`lP`IfJYvY>^mg2Aj^NFEhXmH1S`vDF`(&m_Z-*`(*3VVNsrqZsC_lrX= z_r6xuy>HfqRk6UdT~%H;c|Q56dms7%=7d_|-gn}_+gW0`foX{M;H`Tb1{j6}%i;W( zh+^%Dzkb{KT;hWe|@ zKXgYvB0Gpp?H+_}x2otnw1srXJCvJE?M_7%=u=e;RZ`w$OEf5BhIU78cLB$a!z2aW zmUu4{bK41IJMqb^A?T4g3-T{(XqKj%) zI%^uZgg=$xfEr|xytyO&iGSee4;;Meq9GHQ)n1W}O0()^K#(xzjL7@EABVY&_JX6Y zRJp6VN}uj-e?v%fKXxg|#+b^yl%xEz8rA0 zmIwlejX`?^)Z+&1D=}Fd1PrEs60Snxr-$7|cV+CK=_dhjj|0*d<1fJuWL`qMy^s`? zrE4m316fIxx6n)=-H~fh7yli^tNSJOi!%=*|Ffe|z+57V_XtIhQB;s}NKxTzRyNJU z<+BPyMZB2At0#1B_j2S~QvWZ%iLQ$U(_vDh(mfTerxl#gHx73Y94w)MtfB`SPtpy- zgt-qZt)1|~nqa3rq&|3JuuvWbhlaD>=)Bk+{xQa&iD~QDL@5uwSq)`Yc6@_@T?5Or z8k;fWK1v*H1qY|)Uf-GOCbi>0_8=YCv4-LvV8;0-jyd$jCQpBxux zV+?Bd*C)@4J`=Y}FMcv<-@Tk9|L~X81tMo?v^>yZ@VkgbL&!I(Yy=9om zCI|^*W4}yF2?r9mLoxq|L#c`M1f5#!{D;Dr(&cKwy$|_$be5*YoHKW2m&F!gtJ%Hl zN&tWjU|EYCNP;2l|M&E;aVy22p6)xa4SDQuq#ru3%Eh`!$d|0)pRh!sa9X634Y0a- za3y56=VFAr?LH-XM-LLKWMY?nQ4DJ zy)t&8)%69B1QOp4wtStl`@$4CJFoK27aXCRMk}y%NCI8~ZITwqx-~2+x~Qp{*EZ?_ zYF$O^xMi$QDKK~V3-qj>+KjZTgI$Ya+PqG0VI{06yAlLkvtyIIVmbI^O=ole-1fIz zxcGJ)+kFS#NvU?ic|U`{DDY0) zOvR@$lIOufCD?b}_zH8o@SLzWUx83 zW?u^k-CvLpHF&jSSLtPJo46wjF@5(RY-o!OKdY7TX4V7NT|j(fcZ>NAKf5 zjnT08O%!Fms~r`-1r;D5uU8of{#H19yGw z&gIo3{x*2?QTyJ8r}56=6L61}qO|<*$L?`mAG^={GujWhZ#k$Qj5h$G$bX<+Qfzz+ zl8dTc7@~Vu5yaQn@kcLhZX=e~urzDE^J#OlPzEt}6&7O~7$-l#Yr(E0|Jtf$rhC2H-HSJvFl^>PfFuoXh2F=sD#$yPX)~2XOyv#k+LF$`yR#aT6_>| zYDV|HSZLZ(I_tn_>swFh4l@R%Ls%YLw!V|Z^4rKKL@c+g!t^i~ABs^(%Xy`vY$$Df zhyMXKb-PJoGWyya31u&Op^_NxvGUA8XYD=awvU`TDAFA5ej3V;AJ+}tK1j)pK0@3y zGtyS`3R3q2ahQ*}-rn&Zb*mB^Ky-|Sy*DhMIh!i8WmB{_RoXS1PQY(Oyc726;A5BL zbiLkla96GOLg)&OH1VWk;+c$zryC}L%#7?0HF;>e!dqDSe*7-rlld_vvfb~)Bx8XI z5K>jNyQ=)^ilA27#p@~k77^3_kbDU%TKXG3*#3BW`IETI()BQ?BGk$NK#Q9v08kaZ zx&qj+lLM3Dsp%sI`+}~ayxm>!EP*EC~uqSyokk`2=_PC?r%JeWD84ucvay+jKdT;R(c} z-`zzvibQG=E)QHjp>oGJN;?RJM*$JZBH!F7h#Wv&Y*vMaBp{!NWr8KSv8MNnG}9Qb zy#N?iG4{Wc-}$BXekQJM{Lmq9XW_X zY*7Wd=_`?^v4wb~dlXDs7g+qqXxHa&VB`J3_3qBU0Xag^skhn4d4$49Fdq9>8-)tq z1L^7hGff5hR@(-a0M?0Ruvj5Bj(1E(r1#kMgQAfmQJyKU_8NN>x+BHkLwv>k0_-Gp zKZD3KQQ+;4;jAuRLT#)ca`*MvI7oN17~;18%t%e#VcI)jVx*<;T$FZQ;hh{mjtFWs zS7VXR(UHQ9C9|eQ72+eINt#(Bv|!T!VPyxfQglt|&zCSne@ir{b%;Cs5Rl>?GI~d! zg0%BYo1rZ@Ec^aki5=lx)!qx^BZ1vi7wIP1%}_nilO5rzFSNwFqm{8z7K0g$WnhY5 z1+?6hL>@Xa!b35=D**?OJpOGguZ{Kdj(3zNv8C6;ZiyS?SV~86TLBj{#jRp3`gK+G zGrH_~7sh9c^0%VGdcf`I|HFOV5rT~#@GqM^hC90V18Yv(_7znwPxu>lPg&9GVG z&rny|Mc?)4#x?F8C}A1Ysv-#pT_e72pq9Q*``)^7Mt%r#-FG20LH-)1ymZXd$eCI& z0ttf?04(Kzic^VUq;Z4_qGSm*$EkY9VdBYhn2fV1r84>`f{$=OFvIuIqmRxGBgHQV zZDIzg3?$=@tN~FLiY|-jqd~8X$1!Z3pHQoI1t#I_1u?r2lrSmI^6+2eLjQjA4B4#6 z@vy(lxgrM_{i;&@JT|O$!iDdM@r~^02gt%`6G#Sq=ziB-XovY1MxSJ#wVepO&L;xm z%PSFDNYR2b{Co7M?D!f(tffnNA4QMP9@K@|t`c9r>yH1G!tT`W0|hJ&d~9B+y*5Gq0x>DZT`j&ih33x8W94;In^O-{+~sfUm2T(%YeAU z#gbtx`hqt$6@o$zwrkd;?hvpEUcUrCQaSN=*+$zjSbcwu-1Z-+rSVms9S3^Q7LmYy znJmuVRi%4Lk}0`8EDuge0D?h$RjGz({{8h{M+=Du6~Z8JSCFo08 zvD;Zfmis33eWc1-hQ_WdT|23cjUs_y^RYy3N$Rt;$Vfp}+#@kg0p-e$k_+||rU7yA zG7k13-N-%=2I8-QB!G2iz`nXC;X`tgq#vRb*%tA6RzOKm{GKwrWc1Gp;s0eIBm_b$ zR<%ko|IZ|GR*ZKafkVef!837QTP-eQRW6Y?EGidE>#eMmnB5N>(LU*TBTP6XwEjxtSzWxax@dCX6; zoo8fTZwtWqUPe)2+Ygie3-Y)+OPhS#B|~6M=I(OjE74oz`Bp=-^#|)>G&C;jAS8+* z%z(jPw&X|ftHi(JkXr${BA-6WKZOzR<~p0aB@Gbk#9lKiit@X8kS?!;J+$k{`;6C3 zA&FB$ij52o}k{FIu^i^0vv&Q9j)#mF^V%>xy+navY z)N$A&r89jS5W6EQp({OJN>HI>h%5ddFefz1e0_*jm9EE!(4=QK;YYx=QTR3r`VLHZ z8qf=V5udRFWyxS8@dAFqt<2EaB$~6YBn1b+%3{O!P2`t<+>vp>j;mp1dbW+L2wKMh zEP+`f@d4mb>hX+33?^^a2NIbF0VU~&8I06t<>M#B8~8}N{4+NP?Z}J;npla6sWEW{ zW$hB51%{-dvG}Zww2>%gT3*y8$Hu)#koX$2_@l5J;++&sPv+95;95^ht7nd{diFR^ zYnx}|T7L_dJWT;l@ie|+X*7;k4 z0Z*{i)7;v!#?!h!*woq*K#SkA&VXwK^1#~GwxH1-Y;6T9enthRcx2FVzyw2WEuIZ^%^|<1v8{C-hI%C-YQC~DaAk1wdjAN)m7=T- z2G<9sj32*otuPpShr;*jQZ1x1(>RJNC zI+$7=TEk+QrsJ_Ru5W9-3j8q2pucY2_=_M5$f#~ZT~l-2>Si&v=H|_w4NY}ZAo<2t z&zM4kW)X%vDlo>7pJ#1dz_Z#9<+b_OH`mo;oEu5EbuFGyOHfA{*t~9aYjab*2XeU@ zgB%q&yMB#L&3;nA*}}K^*R=*ATy$em%6@h0*ZU#4hN&J;BXrZckrdV9-)I0P!+%O( zV3ziHFK-$hPa6*fhu#n_z2AjWFMq22X1!2($LU zbYR8|Z{nzLCF!*gqf7;IrBR^}fTY*8;+K5T!(zYnYwKFp_~BD6t6@`DQ^$3!4MGf7 zI3WO!pXfJwf@|S!WO`K4rL8En7{wR}rMP&lzj^%_NUaUn;8$c0ZR^;|$cGjO>el$D zcmR3%rSofjm(E*JQc~i%oV=Req?I7?XlsImf@@)1bpiNP0~vxpKt%m@5FvFS&oLZc zh^9ou38oyx_&lv}JrOe2L)iWXzvwP3&a)OV!{6pv)3kv`Pt;gsEp_Ysk`<4qxPBZ) zwR&^VADDjm*cI~@*LcJum0|EmEetl5!c!>VM_12SstvYg%09{eNK6=uhzQIbq4H2~ zeaOU`As_J7NPG$9Tt59;;(1GhKTzM+v>rCKb;apON`hqNEe$XfM94Z1?8K13nzq)B zfvKlM;UR~uTOA-n7ID-Fu%2~(L>A8&lbbQXR6Hm7;5`9wPQ>-WOsAosgy`3{SsyU^ zx6pXm3eKzt1{(+C3m{@iyERPd4CB(3*P<&=cRRa&hy>|J3aPkwUEQYQP>b-YhGGB* z1Jmc7PK2yx+o)+4YlTicb;7_mu5E&?Q@}(JI2|gFN7D5Kny!H~8!_#8=6MPm{Ec;? zX7ZmRPZR3c4+E#iL|)~G<2Is)8FWJ}81U7w6^IAX3o2?jJ(@y}6cjArR-r(st{D?2 zoC45CW^TIlQ$Ynqu;S!!?GQO?x40D=uE&)G&R% zugYqALhSG!F*Sn|DKAWP_5MJ>9Pa=_LR+gw5k=p($K9 z4iQQMdMq*Gh%Rht&sIh}o~!--^_Yh@bM$G&m{|4PSBM|OYig;hC$^d}(`G7QC%{}Z zqiZo@q`wX6!Ss2+Ym6&EZ5)B&;BBp&nh<_TLi3D;QwKNF zWNli{|3FtfX-OrFgNgd-x4`w&y*snx>MrviCiLx`^Nx3v}<2GKzH*ufk8%}wiQ?388BTU%oFlfojA^O^-NFcgb5SIc`m`Q9x7XTuYN|pKG=YAm$|iBW+>Rs)dh?^B@(!Y@BC#N#;zLDKvyh7Cc~{M!o~n zA*XDBqqVk9@m$h0bNVIV0)J}8naD~q*=3hf3aH0IPhoLm5xOB6^vDRt*{PX|855N` z$Be^@0MRm2Og@@)td3EQLBtWRMF|l{FiB%$Q!|1S@~5U2B-)67$bRdu&TPU` z0rO*t$5Tt1)MM#tKV;v8Fo-%b2C&f7#(6L=NjA5JfWD6M;f-~a!?b2HI*x;N^+5`R zM4SSlJ`7=1dWkT~Y1~ujFIiJEjv{3yM@`sF5g5YHZW+=N^JP;Duwl#;W0_-qhx{Qq zlA}H1 z%!Jl?T0-kqQ&4O~GH*;tG!+_wgo0c^k>Q){0}&4Y2{fbx|E3_u<{4E_CXe+CrLprSSHDwmW76)^zP3<{>DaR-n3?;JeA~*#5vf65fXPcx-=13 zXzKF`bPwJ!;UuMMC-cn`sUUE%|$2|Ha1L0)}Ry@E31K3 zs7GiQohXA>5^`@vu3g&1+64fjf)?fiDR-2d>8odR(Hv;2A5W%QQm?O;8Yzh)N>r_2 zq#NWSTDe?-fd;KL#(Gn!p^#XNMRK#XJ+QWJ;>1aT&^m?QJhU7JpMH!2#S1Q!4d<8X zAc&zBNQkfG1y@u9$-eM4oYJf7ZAtzQK z3xVTMunj&!iIB1pGQ%WCYd?i0eI)^08NfaO6j6jOG7*D!lC7E<0h*MldeRYEZ`c%h zxYAgBQDcK=`gBimX#xrhf)YiynKpl*HPnV&19R2dx)6-ALDz&>w}KWp5erJObXTw= zL#*-=Q>;D{w5}uPHLH$}_i89e2AeP*SY7?qdK2eBphAu*Ee8x*&5wc$DI}1jp4VT> z>Z>nVS2MSE{_M+^Pk;dnS2CdC(Z;(Ou4HP&hFyjD-r%XJtG~qGa!r$8nU5UWvoN%} zsYSWCX`QFWzuAxF=^Dj{Nv^t%@{`)S&CSqV{gjp|jdQ*gn6lxT38fRypLD^6lgrAL z@u5K5c;2=d4`aiA48Qx8VtvelK@Uc~dNa=riWrAvTnskJ@sM(=x5MyHJ}UaTI?drnNiqF*K+8) z^t`W%%cU-qu|?m2OLuhDlyWe-nv=_0v2t_%5nRpJ4|jOCp6+H)KjW|1o#s0JH6Hv( z(#uE0)~)!X+Dh^?L;lH>v~Wefnr^xWB}>EL6P7M*`rb@?Zu_b^r$ zbFmBkh*S{24!oUGqaK&{$>{zhj^;ZaUBz-OIOHoo9_p5o3w_Ht zKDd`g@d>^LdWe3di0s00RcH~0f{PqosMQZIaC9N=qo&8dgF`5(*Z2n7^yg8!BO~!% z+GSA4L-E*;aki}gNDe71d@XgreSMF4@PO)FcYqxXv`k)u%EiH@I3P68(bXplGP=3+ z7*`3~pfcUF(23Fc);;!e_k=g#ZZPk5(;i+sTr4^k3`k5FACz1i~rQ57hOUnfoy<7w5ja<0~|aX&U2+;t4?7Y>E{ioVjSEes(g%A zyzjBRf0sc;{r4>IH(6l5Z>hh7p>13*swO8D(6^7cJ#n@QA_`E)OBC-Dv&lpmizj#D4|FWKliV~yfhBh` z3tI4;Tb6zYpmIlGajWE(b4$LGw+wZegla+N-SkQnitfQ1qu$+jFqs20*mrmi4Nexk zIW%g4y6-smlPKg0u;M<4QOFmC@i}*)FjN#KlIpD}vjsVn z%pc>uh$7-O2vz)^*Vum--ltaKqkmEAOX#o&uZr@Q+osCe^HM)V zt(z({l-d**jm~+os`f!-uAtg)w(*~@w+Rgn@Gz-~)I@0WJRcL#qu`P0Rp zDg2qrpK1J=&Yv0lnJE|^I4k!j7%vZMVAUW(ZBQCC_}6EoB(Mw`Gb9X9Hif*wBeF5q zV2p|~cuW?(%R(U+T%x6j3+bY89v8AjVQfY}^vT6M2F54?b8^Ju9b7W>VbIAN3;v9UoJaxS}x80V1T*}nt=G0q_#E~JmZ>6|j8fD2-rLq?=i z_goQ#oS5>L(BvlQ4lUsMiRq*d_0B}=h{gtG=xBBZL1*X~_Zq+pIztP&kSbW)G%WuZ zy0AQl4bE+aG0VabE(oy?8+Hy|2^a1->|8G7i$24-;1LDSIrRW56ompV2&WrX)MpG@ z%0$a~jJiS;#&SUug>hV%FABxE#M&}tAaV62UfIQ*rr9~J7?>dqT$;9$M{on_%jo0K zBz-b(DBgLcy>2j7XHY!jXCNV1qC=`m-W(mWZ8%k%kOc(4%CYeh>@+ZYj%#=hm4&St zHvp-SmSbB#iX*ur8vGj+$My{Ry$sI?>~JZL_Kasy5CU@S$UKgM5RhYM8d=sPfjY{C z3q+xl3m1}B9lP0jgcu#)kc~NRudHNmIzz@n1QA0LU^W zZ@oU~d$WlNbI>faUnHyi^&k>-0_20qAonM${6n(Jhm%zv$e}6PBxJ-K$KkC#!rVp^}5Q<4yHJoso8CX9s^?$DbYi z8RpN3GLUA~M*+=-=~nWnCo}Q>P^vaLgGLnP-2N#P^FKw4^E|GgkKqvq&(!B+qnhUg z`WT5h0*~ifZY$K=L~ZI&uC1Y3{-7Wt`f?=6bfa8J{fE;B;oE#FSOy!cgWcX6OpqMB zw9h2~+DGmD!J#s9GT9e(9{e@8KTGZWA=)WCbNi50%<>6pHwG!13g)E|>b|&)%0X6y zYJqjGo8tBuY9gwl!-&5#u9;LDg#kF{;!Vk<>AQ$3Mc3Dup)~|#G9-Apg8N@jP0R}= zL{19bqU*?+oJReS+BsL^Ufz;);^j9+?YSr^qi#`|#lINU%c#2G{2_vieR)LuD{7_Q zPJXL|RGd6D(bS`4j>acr8&R$@Ys2~gz#JN-7shzaLK*~(QT{zYeqiWKF04^wJrTmC$dFs53;g&dZ7+2AdL6iqR zO3f50om7%!B24Bj8ySIvX=M#|enxGSMT=2qbvamu!{AoV9};IQD*m{WpalC@Gv4V0 zWUw#ra{GDbF_IP3-hxgRTVmOcU8Lqx+PKXCppp;*1LS{CO`~DlX#fmH%3%@kxB=|H zf1q|&0Fluhbv-NYS!$z9Uf^ZMa%XZA{a%}3jNceR3e{24tz>=&lrt%woR5-HTsfAS zNJbWgQy)pML`|mjZPw`WYR3n3`{7=tw0ee=rLEAlV7<(s4Od zligPiMbr)|?L$fEg?g=%7!&d{>Xb}E${}y!IjkF@=|neJ= zuH>dqZM~!=yH;@9fPO%BCwLZUDfo?4t{}RF>m4~o)XI|O;b;9u41YFNbDX4}a^}YCJg^Syl*Hm(Q+2?RbD4*-A#<$xKk# zbJMn*)~l7=3{LH+g&qdU%iyfcx#!kxux4Zj8Jx1wD?MB{AS2U?I%keDFrz;)qdz%K zN`8`lgOboYH-kOfx#zBJeW-gNPckwygSWLZNKWG6_Q#N}FcVq^ufFs~P8_JfF&lpi z0m$nyswCrm4474Qu{udrYb{s}7}Cwh5@v!8MpYN67nsP%Kk|T`kP#q#EOcza?k16< zhirpdCo9TWDzjvlW%Q>R-?`@jA=%{_IUI)w0FS{3IqX^;y;)7{?a`~x#NPcDKy`x2 z7&*MoHZcOaEY~YeV64Q2;6Qv51S}w1JtJnU67^iXj6P zjgf&Yok?xi$rSCPRI5<6Js|T(BK4t57CMe1mwpLiV zL3cD-^I>*( znLU0870#AD$eL;$>8s4vUk_E3m7>+T;jZmw!%tDU#YV`gTQa-viB@>IA-t9*2se{f z)fktee8}qndZWiL{$Tnj!9e>qqPfT#yS>!@Vfy({pQ6@ss6CNxn*%tcA;h0d=LA;b z6OoSLzevxrMm7MwN7hvm zH~N#aUO6{i>`2Qh9`f)cb)F=31%huK8}}WNZkvX=Ze)@=Z<4y=B=|~_z>T-p8MCEN za&j5OV%QHQ!iMuv;L1QN$0VEcC5iJ!FN$Jw%w7vjZxnMS{KFBj1W?P2Y2cuoZ8PJr z&esN)Q$fOrnv{%#Ihu+Ws8b9YCRu3~zp{z?W|>^5dq4HCFZ?R)T&pjz0sJa$EM@Kb zlY@P*-=wki8CA%oew${)%u3v6uj8<{z$0hcXVUue3PYdh7CfZm{WZfy>8iy7#nn@--vZckc`iv=7n+doO^NWdv z$bKg&Srvl#iReaCu^}Mp@o>@}w77o3Bvh-OZ}uW?ozTjuEZ;y+#y-{ps3(ME?d!AEC0?OSsM~9E_gVk7poLK(Ku}(IVBnoBZ6`1IOAF_Ae4WB{^csHV*x&VI`P-=QNO#dPsdg5xll~BpyXJ*ym zBlP*ypEih?8&A9W{+o$pa}vtolJ#^gv2!ubJS1l&PhnCx43BA>~|3 zKJ-V{O(n$o!*jv@l-w%40)M&g4=HZm+>!NM_ooz_d2!vt_PW^w{|N7y@oN{qGUNd} zB;pPB!%}!{?%cC~E5jU0v1M~ycQ{2HCJ{Uyu6xuDmqX`*N9=VB_jn4Q6^fo%;58}F z*`fMS(?_Eu+JC2Gk(xE`8`SM zX=nYU`5?KS|%wMqz(~D%3a$Gg^U4HBLP6s$+q^PDQP+yM6}+Xz-KLY>6IsJmDS1k zv?(na({g6yiG>;O#-b&av@aYhA-F1Fy&Lz4s@fQ=Kco2j6DH>y$ z%uYM6Gx;wICHX5;ZCf9s*CP(EN*(kd=o?#L#X4|9YQGjqkNy};l*q~-f(af}TdFMx zDV~d$oBdRNb!M1>Z zV2;iWknzJp`92UB#zQh($r!Pzb_%N}ue#2F=|yO=1s$EbJS;#(!tC19O>VNlwP!cN zpv`~`9!`M0_eCcOUYh_uw-)R(^MhefIaevaOtnQb*2W`t9dlh*s@u9A<+|tXb&R$U zlL5FFliDmoBXM3MXghQQhIr@z`XsCz>|GS^?K45h5m7T~4#=9GLvN0vqtyxh-iNkGdO>uqdb$oSA>FYWSUJyf4kWMz-B)~Co_V#E?o z{QW7m9bw7qQXA$<12dg20Q1t6@x3rFO(_@r&XCZ`Me+s9i{(kFXf`Slg9@E+fQptf z#!7|#SW77-D*7`z5L7PK-MC8}Khf+Cl9$*?8s4Kqy)X=#olF}xw+g1%c!HVnqwb|M z8SpeErNqh;%XCUg8S$jn>N1^XCoN@KV#5qUO3ZZX0?Z{T=k>x|k}^qPHe`zVogWNv zLLwEhW{$Wd2-bAsP2D>Wp#mf#E?a`a0*$!F5()j0byG3R8V}p`E?4hG?zdgNm!&Z~ z9Q#rQ$b;cMu0B>$jP|=O+qnaSr^AwI%l7*&TjI^|x3~scH)^=Ar2fmwhHFndbY)mCO+?0ksPH!d zoB&4ik^x2}Kaw~DmU^0f`eCJidRmTc-&qm!3~99&N(x>yAuI#?^ZUUgMH8uo2TevfH>OrPU>8V-d^g=C^p#H~@j4y$3L@0`;@bp}msa zXPqOh>|mVuN|{q8xp(pXp?^7hhw&GZ)V-Lb?%z(^5gK#!k{yo1_RDrKjktIUOq+5x z1WD%xhF+dUu-S(kn#?q$M1sp&m~GkP}g@nQ)dFPbQb+4F&-w^S*lEtbex zEQA&z&2)-h>bXvWZ%=}b#{L7*o;db{vYJ*2rpXYoga!U9CSdQw#-7s@ynGwu#aU2nx_jFQH3heVOE%X9Q>Fq5u6 zumD;t-L?Tndg(J=I0h#?y|=mx(QFLZ#^4OmF;UoSW%U__{cQ`N&Y)eoX{qc?qhAS__4JlI{Ac1a%>^{128-x4HkFhOpX1v!u<&_!CCZ;%^Ll8tAyou<1=^SJ|X@_hTd8ONYIc%$`)mtGQuKr(q1a4koLqz zC#OPo?U7*=13)c?chrvx=6@RzIO24 z5509coWL$%r2!`50_ldeCENU zTuhaz&d+phr8%?b0fYWz5<1pSnlsPZkP}?DUP*HfvDGyx>CWDpMH%)w`hr8IJpwa< zEISx)w=8n%jCg)}x&8``^Q&WoGi%apoOeEMY05rmE$p)t413y$8BRn<;Z_!dphJxs zpoB>|Ga*f>F?_Qd4UNef$Ovx`4Jmu>+kO*fGkFKhZij^6zmp-LZ_zy>8ffRl@NHXo zp~9OIXoCfaIvYHasprD7C}PkQ;M%i4F$9&%=Kry=^D2p_10|Deh0Qx)Gw**J=KThY zk?l6n+q?rw%sY_8yn{*1JKwXxF?6nO-kTg2^WN;Rn)fxLlrD_@T1P%{1a-2pZ*@Ei zDX__Hb7W5iKK;ogrZ=G{a#_>$s@~Zj;l} ztju)S4hIaIp|2440SqiaCUek`Az0F!Vc4{P4R zTH66>DeB&8=#O%xPgMTNFIg{4^b>WUwG(^6C+f%+9SDDA-Q->|@>A7jk-RWGp{5f# z+#lGU6Hq==ZTB$^sjh&|zgxqCmuo;yNf*$-44`}aD9Wz{kVsewscE9Ny*1jtdR4%( znI=D2`b>u~iI52l2E)<>=om>}cQ^Q;ZTnIQl5i)(@E4*lepiN^g_q)aBIX=Xt!p;= zw@&F%_mYRPWRIx*t!b~UE3rzOly^j()gt=xCxabThggyG#PyhJyNJPcf3er~Aqy?c3fZ-?xuT*zP60jFw15=-Ot9i?#_z zo*(HRZWsf5jFwSx}CruNE!ek#{kk)?siPgYNinz$^WeJl;^s^jo8Fln)6VShkZ+fz0D?%jn zyR+h%A^)m-Y0sC3f3G^kDiSu(`_w+w7X9whYKT>T+?#$4N=ii<4W`+6AUCM=UP$E%0WQ0 zYvm`hF_}jg`X=j3b`rNtj71FPMq?=O9e%Low}^(K+^CMUo{!PsZdA|f6;^iJ=Y+nv zPqJH`KsfY=Ww1x>Z|!PGoX(|b{1~E=Nk39oLfsrYRg##x18BxKQgJk2?GTOIRZ_7^ z=a$sCT^08}#E9tMfD})I{HyMz8?1cmc&*x(Zo@hDtV(uUxLHjb2gv{BZDAnQ4cK

dE}eP!H*0r~vHcpcP3G*oibH zg`srOvSulUwhZHW{;~uh|&gHQTZj>8Pdd#px14fOr9MUb+T6>mFZBLpQ}e+Eer z;L@`JBvxBbLFv}BMex8W5d7L33tQ@Xx&9QB!O`*77Y5JgDAFU&*K!5Tj@Z-FPO`Tk0t8 zwjDrN4^nvm{ZN{G_tNjB$@d97cW^+TT&UiS4(DMynq0`gJj^hY3x_j|pAbzh$SI@0 zWizSnX$f97a{v_?ylm#V3@*SX(mTyWgtcs9p$Rr|wh31LUHXN=JP6=COmgMl_3|WF zg0715VcsloPDJDQz-lUsR&3{?HQ;bQjFv&NFoNc`Mk?ewLypXiXu6P_LJkin3VP`R zDy1uV)qof*A!a>p6t+9~y0vI&cMN*QX!(w{6%ab{{9aDX>R$4l>|a}&vLCS){%S2eZz+_& zg#w+n7t$9|>1kYnpB;C~0#yvlwG<3#H_pL*KX3|N$*l zdkgS|0s|L8<_m?$Ru$n>I!$p=}KVo7eymnow3dQgwS(9^@!&!A@LgHqKoR&tz&`L6(MVdJY$gNXDxt2v#Z>Xe%Z*w?* zd0N6ZS_tzwvVDDTrD!%MCAHV#{3?;uBwfga=eSPF%)2;gHv~an(8^mS>~~9o9ZVPX zr%xR327=`h@B+%FEtk|f(6*J^Z0pYj)*Dt7hJSiCgb477(*PQlNr1-qh`p1iVQ(nx zFJXDyi@n(lbB45#W{DL7870t${SY@~WyzdL8Pl*xF`gp%rtYPykJE7_7LZ{#SPF&sM;Q3|Xf?q0T3QTg z>!Fx#XVCYlDfUD13rQuWQLr#TDwjq@446%XU=o@ro--2aj`>64a0mu)g>4pgJ0u*( zScXovKScA5fz7!^8BX{n(r*mP0dxV)uu!tmIA)5jNeP%dQ@nr0%Cmh)#DD`TGML~H zZJQHmUKuMu*id;^SzrbqW7srzXc92#<)Lp`uvmktZ5`Na?)Z_}%OXO9Dkh=8*W z#Fi~Av$iZZ3#Jp3zV_;Dnbow1_M6_-B$(&)YTNu}?|NLqSn^-$IuHhXRyH=x0?0Oo zV>(=2F-^*1W`=RnFA{GT9obR!pE{yknzD5=9!r)$U()zKgP;CO8h^9!VoH#rX~IqL zZVRB55RJS?Z!_gYzBB~EK^I73mnutJB3&cd;tbdV2qcD!b5sId@c>9XQ$fmXP+rqQ?tsmeErI@u(2?SDheD^Q>ex<@OLu@ z!p8*yEU;6Ov}Tm3GY08c#ticHn>L6@WxAEDf^?#mHNZjyaWX|I)iLLQTzVq8K3VGG zfrP?ch>k2JzUlgkZ4Az`c#)5N3gj#DSGQ{wWw;I3$c= zlg!bdYe){#HYGPaOCEW7hq4bpBf zy_3f9>rXaR_|@+$75knx$@uztcnISq0yZ;T4rDvj&8`gdYH2_4PW(-DVXzk!q-7Pj zeEr0bQ)$TO8^X&fFUT2#u~6+KGS%zULBiZGFiO}rlBUiS$fv*sY5DP+L-w{cvmjV&J6wEk>>1V6n*N%RYx_mSr@e~AA=&x%sPcAkUZ|B-|X zQsI#W*)4rcqnK&%1QRocJIf|qA=;`emB`O#RkKJ7(tQ1f7Qi6pWGSRqTrpztqp{$V zOm=h(OQR0Hev<}~p}_cIVkyEk3o;4e#q7oc;V?2~eA`?%uL4*sF0uAiNA>BKUdm#eZouml@FPhZ6d7qn4q` z7OyZ6n1IB_3VXdh0IkIMl`A=nz^+&I@@O1R*}H?j)%#XU9Wxhp)b;G(`nW}~ZZME> z2V&1}9|?BGi~u49x`sSl4?1fJeA=LvJ`@O>%mO(dhB9qD{S!0LWWobgiN~dk#LvHs zJnU3gxQ@9#ci~SY<;N-bb8Gssbo}{E#-|x7_K<9krTZ1QHG0LXs=CPas(RF^E)iIk z2rNqkmL&qq5(Rc=dn|a4I31;Tx{f%%ast&?&K_qtcGElT3)e9Ene{iT*xE^=JocI%S?skIb-OlHz^qlh>Dt+U;&4to! zuAjS5`nl_c6qMdic{UY)-b%eUO})b4-GX*64f_ShXAb;%Kcy=be|Dw)1#Idp@Lx*@ zr#j!|oC_h%ZC4@N2h{^A3NNewAi4i{%Da%e;shm2mp+aOce;Ln>jC%+bcQOu>U=YE z>D8f+UtI{!-ge;6_fqdj#h+bix2Dk@13VV=ZbH8+<(?FQKB3hGeqC)~@pq1YI@BeJ zo%_Ia`uJVAL~tkbV!_L7gNtRzehi+eG7*Q17|0)GRiXvWC{P%6$iXCBha5*8C?9n^ z?-Vo{S0ci3P~f;FP{op!fU3RIwelV^se7E+-_CAKyTvM6#=SGRgAx+OMUhQ5DN-v@f}??;(JvFdq|V+zLeSC#(! zRs9V4H|W0NpyDfzcgRfMaeTnV4;&|{c+zpB6RnBT{WTeExB41c1LmfL$HMU<@=_v* zKYvy4alpWtAc{F`6I>w(qIe?&3^#z$m=^#*#)cXuv+^182-h>}OHAS=BC%4C zKsA$C2@)6tii{K6((e83v}ElWoVnjImI(B!A_~1Ki3BcwTe|9l zwMs4@R+N7~MXmeQ2UX!!52`mOMl9-T;p$>|)Wut1`&+mVT<*HH9CUm{ z4vG4Yoc~2(^uJs;r*TCx89GQIJJq{M+IOqJAbWb$`4S={h|2jv6`KG5XnPazDvGRs z`1Y-?&P_sg!XhA16mcQ!iyD+wR@v2n$TehvNH&uj78k&V zl7%Asolm*rKXv|>IQ*~kFB0Jag+WfIAGp8oaUUbs^_crN5~oRDPVUXU9A_ji*Xunb zQC+KJirAl3ZXMO4+V;>|`+TFV{H{oJ?ZydG6CVk*GYu`Y0os{{R(PER+G&P%8q-cQ zw8FC_&`vkB)0uX}>;o#vFd z(@4zsd@)64KKx$(8V5GA#^Gi{zrm0tv1y|43vPJ82KQ>+;?cRqJCv@j-*l;ab-V8~ z_~KB;TbX?ER_6a^Mv%4M?bj9FFY}2khM&lKD~n3LmGxHx{59*%Yy#fQ{s2t}s}HhY z&LQCCoIPkb0Xd(Wi)(XlK$AA%{v97es*^AbPU?f*7q`z9AlZEh;)~Wp5YDF&GXDiv zUB3cCqZNEXLh%I&!xtn3U9|3MSaxlAJsei}p+@)N@S`-ZJsKw7NMEfFp}%oqc;mwG z#)aYi#U+QCSz2WdUWt0q1!x3!0nRPnYpLq`wU@fDr9PL2KHZsiV>;#En0_C+2KasH zSGNOhdI;%58Jp2VxY(TecqTF)&!iqh`mM|xvyi?qi@FMF?kaFHT?K%<3V`V<0Nhmo zOji+*^Gyy|e3Nr6dI4$bF$9&V!PW%QqH%r)VIsX+e?SrX2l^AO>S{N*pXkpuRQ$On zQ-k#%%J>C>#%^ zLNcmbA4=g)T@kqvN=IMbn0iYp@LN)!HtD^opP7rd)Apw^#p~%GpdUcGKmF!*bYcDr zX~L{8YfPAvf?d5g9dhqQhq47=%ppl54kzk8?ssSbN!fWw%C19Fb{r)!!f@i=Ixo~t zh;ulid_{1m6t~^x}XTg?NHpNcV z-J11GmJ@ATFE1q~Dg5B3dw!-E2W)8*`Ar0?N1f+rihs`e&_U{9_a+agJ>Iu; zdLm_S3QpgqG(~XwBK3zK5hg&SZozqmnAw(h7Ti_VUyqvLq2CT?-> zqWbP~A8=7$>mej8MAHhJDUNA&p0pA5lg_KO;(S&8vCTS_c!<(N5i|`&={bIBM2$~6 zo5?aahhL**FM!v=U^mBS7Y`)`8y;Je;inqc($XnVNjHRTE1mZcXa{r1LD#N@4aiPT z!xA&x+UIG`OqrX(FAO9!0{h8s`d||js@8%u*K&mk#B2&#s&VQDH)}+jGUTU&LiPds zKC6vt+vd%*c~Fa}n-&4d>z;_Z3zOGT-~Uv`RwsKm2FYV@!+We<=DwY}KNZRS zsaIg~L;8xeXQ62K*|aw(7Fp)Lk&YP*&vxSw9XlQN!6k9?FX0e0F+{Xn%gwfy5?c$> zTuX_q1!=CO#Bvfmu$Ok8`&;BL?DV-GrGAxWjYw80sIP(x{qa)wUgwbFi$m&37dG~! z`xm%OWPHUj04`oly%DX&#f@oqq=Dj&w0)e8FMUk~f;G=Md7mS4ylEL$?^p3^?kaUR z7z22KoiZ+di`);j;^L#!m%#BR`_n1P_#?qDABN!OzeS78x10|gwP^VU_XFpx2-06g zu1>}2)zp0uEgluODNAko&TkVgh@O!6WFtykPxI6#;jJ_?J)iOcogPoUIxRjOwrMWU znipemzY%VsS?8gYm*})1^~F@2zD)fdr+7tFT2yvE9Ml`(>lIE{W5tBiPVZw6CuTAi zOukHIuNC*#nRa#%Oxj_^bD!Fz+HMSDmUq8Xm%+8L)S^sAN*!J%iyXDV{k!@REikQ; zq8$m#KJr-AIBA1>>|`@&ERm$@2&#^^(%$K<;d|^B-#y{W+llQ{QR@s0g&9l+mv~S3 zp)k@9fg0>F_QMo420v{DyNvgWE^}HOvWxGW&Ahd|*?pe(2cFlvQ)s(tcgn93%KtU; z2yHIAkE9+-rSu^>BYh}!cN(R4r~Q&f>8A8M(&>Ch`jfoCcrtwtrKx%mk%+b|iwv6o;fBF( zx4&TgZdm62g*FYRy8m#VhYQ+(yYYuFh^@!Dp#6@v*VefAl7&5;a!&-OzeS!-!|5Ms z&FN%l*tK!M#B>B-aVRfj2$9xaa^7U^zv=7_lhz(r+j*3KqrT_!*X~yCjjejMNBNsm z{wIaXJrvo(y|N;8HTTBq)W^6tzDm7{dVz%(b#0|t^%dv#bc`T6MAmUIyyJcqGfE)8 z2TZF+DSSie0=6!9!LKxV`uY)^dXRwQn%SzFops!J052(E}WM^u^U#7udojnBXaaQ~%T~2~oP)Tg0nUc`uR_71_hfK+2x|{@EPMQlT z=azWOLUkc*`;>suTvI$rWH||{r0Qn))j^e9-3-6FxGEDmj-uC|eeu?8 zNVyO-7oKK@dj)QFxeaS~gxuSlCJLjQ)EWhuE?4U*)uOI)#RS13;!CuSS#<_!=S!gB zOKzl|y^(IT&2^tg2!PZF&aGrJ%!-w7t>0(np9ND)bFOMY*#>M6&cOB{qUN*RwRAh@ zJog1!KuvXDrFH6g?uX7nB01=MfO{nFSK;qzhFhyzs1Yq{Bi$n1s1VVg7wncyZ+YlK z>Xyt-n2xD(Ck%UUJ2YpJJDhbTjp}=ySLpPL^JkLa&(1Cy*}K9AXvgh97`y6G_s{Az zT3zwY8t@X0dX#UuKC18wadSZSJWqztyRW(6Z*?H3d6Dr4TAF+r-ii_sKOR|R2a|0Y zr(yVwp`&4QS#85ywz&_nE11OQC@YE0QC1S0qpbgAbKRh$ZhL8(*z0`ZxR*4;=Du(a zQ40@+f1?|8E9h479QP)58}1wUR*`TP`eAlQf&3_R$$99Ky^eb+@!ad|r#{;6yTL8g zM_cIL?0H~~``z$7?qziA*Y9hp!pt^;{}aUI3Fl=J_+{s6VsdqOJ$3Z@Fz!=Eal04Y zj+Lakn}ohwJ&u9mKJLCiy^n_($d=+Y2)-p`O(i$c^nO$LVdD32_+ALx{kpbpoXQ z$$5lE%Liff!VE0G_tRJxcD4;8D?SGZ2Gsm8oSBt-mk~W zoEB_H7u5NC2e(w)#4LQ@?fF2I$;G7}dP1C@BT>=Fv8MCJmLpMqFO@@laW7&oq#wfk z74J&JBaz88x913GX9O{sw!s}6MS{!9IL#IeHlZgvu_td=QfWjPW2>N+syei}ZUuRp z6%LDo9A*j4IggOxJVF|ogZ)_+&PF4`0#1N#map_xlh74B;-|q#&#sbt4Z(3Y9b;p9 z6KS9caUnUX2k6f8+3u$_$)1f#_B%$ubGFh033Q11Y4>FMHWMgwUYq=B?(_rXRuAB& zveDe9&Nes`rcU5A-EcB?ZhUh>T_-~kr(I3zxZ1e^O?Gdf*kF$PF`{>4U3LTtt|2Hs zG!8vAZX#@)BeIE=NZ#PwNq(-)X2!&08$!9_7hLd*E*;v7bZ`C{mksVYmH#CnRrKGH z#?=>4A^Y4R@E1cyqRk`gaMiG!x*gM08*gzUdh^6<+KdRHk>k)~$DIh%ITq zygTF?QinMNaWAmz)gL&*!2$JyPDQWSoX~J6%QN9Pt_vnp!dJo|8?tsNeEQZM! z!{jgfPjd1Ku@DAWNJTMD2P{Ei370X80Msa|;;oK};68DRFKR-57qq(zW!b`_XcuUM zv+TX>K)LB|mr1C45*3cG2NH@GyIm&35GPO3P*RWKa_-_8SlJaBRySGzR28==_u7!GAjI?H<>93ZJn+R@>U#9uP9~^Atl- z1a&vQ6Z0vSyL@rTSw|hVj-psIGzBd^b1>-4wlgB#q?&mFaM~!MLzG$Rh!Kn1 z74MSH-VZ;bB)m`I{*D;f6wwMEuT#+Yei-3u8N)#F<7`m&%&xJ*r zg$xL)!AYlLyzZst-c&62_Ty2g!%_Mc4X$hGdQJFxY+71MApy2!@eh!|@hj(RVkHLT z@!rq$!Y2*N_}Izxex^4z6R>RWXL^J2utT&1Y^cLNvY~wtmE8~4BA@#s)yN~nX*ImR zka7IQ6oTP#A-P!*&0(1Dm@I=q9h^(etA*&5f0P9l0qKzk?f;LRK6L&xCf}5&H;5^-(vKjYfZeH$g zPW>Z^hfewB-a<=M6x z<8BDwrX-VN-Q~>=p3(brLWz)z*A0ZcX>LZg+jE?Ir+P4D^@d zB=^jjGM(n;Cg`QF`=xVh7!OW=7M5fM?t*19o#%EafPend!Oe{y5(H0oGxOn(uM1=9 z!hC#dcw+*i_HL&h?lC>x-u>Z>zey;m-R}L}qFci5Tj~qt9;DUx+jtPmy%Pa}`(ySm z+3v5|D{|Z`a<0vhqHwV}JDvX<-O29D?XJp@C40LAPjN?&hueE!x$mq0Np*Lnew*fA zm)?@@Ue)gAcJ8W-8#3IRGj<=g)YkBm%6-o};JL4)py*p^eo-nVtC^2^>Ao;FcV2cS zyvuRl!BWWm0PfZO&3!?;Ya=@%l47nq4@8tN(TID(35bd%l;eJ-Z}24YT*TcOc|GFp ziF|-7a$I+&y_+T}u5_@fe#~*VV~GiOy(Punk@8Lo+{)?%GUcXX|H6I7<-47dLB9K1 z%E1(gz>L?TyRkdklwhM-?z^}VCMk2=PJLy1n0rh3CF+AM+TE^SNN5VU?r?U5v88)| zf*!Km+|H6m#7)nYX^fcmG99E(aa)`>wfnBV&vPI1zVzH*Q?8A;&8cssx_?f+H9-ld zyI;ExYsoCb?a@=FT{k7hFR1YADKh6ccccC`q3mN}_mAO^!?-Q?V}hDe+^nVU|2VMZ zXT$j2_V}~^qlFvDbFacOUGk4$oINS1@4U*1m;6_1XoP(|X#pkx1ciq(Gw4LKfdRTF zdR^avigVcM9?l{!ZRQZ3NLs(xb+>+T=*UTS*Zjre^90k1wU*#3=Eqk|%neBT#jN;? zOSICpmgU?)MynXDbW9RRwiXLqwbJobYcfC=(oQIqMI)tk)GALqUXE77w4>HK;oBTX zEA`{D0^L0_NvpGU_jOwRs=J2=wdeC`j75-$j04GLlX)D{ApI;7)2a-xDT8l-mIjm& zq+aC$L=ZU%Tu(6tZGp&VCf9O3nQAH19n~5qQUs}fUWQY5BI3Go`Rp@{m}Iyw6{@!t ziK4|Qi3Y7erM=q|F&c%kJ|~mHH;GG9ui6u5AMTeM9-PZ^9Aq(yBQ3i70tzWL!*l-`vV{g6^kGy;5i3>`W{uDD>3p zx=^bQIt7Rq(?^Bydz%wa>AavXoBuUSCscL ztS7VBQ(GN$RGyAFx|8EIY3;4l5h_HyV!8vJCfM@l_@z_58?-abn|8Q@Tq1V35*epz zXSSz0{ipg0slFytZL{W7v*k5Dq4qwW%037=q1rrdW!?ns%<>}rEtaR-1Os#808eg~*}^b&Hy4t;se=)znFL~79{o!(yOp^9{`QFo-O zJoVQlWW}~?H6{(}*CSBUsW1v|vYIWInzg;OZOJAon~fqKG(@Fd*1hQTsXmrY(BI_Z z0#tq*>f5DL_UMj9Iu{}%W3x^fr=3X!$R3BJC)}6%u^l=s4~GuZ7YrJrHaeTMr_zgb z+AN)Noj!hDOdnee&7H|@3VX9amcF%{}#i@^02;5iy&^jL2^lb8(U&2H~Cdy&5r z`!k^jHGpcGou_j^r@RZ$b0p9We2#dtX|QfD*6Ad|M9wSkwou!W^fmPi>?hgz*YCyOd5~`sGh+CoVrs^wB)kBHS!++wYGdhWr zV8iDLB<_^rGFW7v7+rU0(XTq56KU3wCR`QkBjEI*^gq>;x65Pcxr4tkX3@uV_w6P% zpO_ZwJacm9QkTzsTK@=++Jk}p=E3L1rubjsUSHh- zrE*V#jdjw6;gd4JC8i5eA_u-UTh&w$eLvKBK&S7~U5a#vCUlP%$VhIF$_5xZaKI zm5Q3s(`tc(F3f`@kMVdyBeKzyqC(W)(TN3v5KVbt&;i<)i`e#yZy8}4y(d~+G zD%R~{I2GxcF_O9ir2Z)ksl&&xiu<(J7*#2e%dI#IAr9HsFixj>vxuFiVh%bg1zMwF zkm7yHx!JQwM=E^+6zOH_BTmz~<8=CIu&y)@3h6_cb>ZV^?Cd&>5@AUy3*vl#Nij?e z_JpqO0QL&1Xm3nQbu5ldD8St1sVb@;W1S|(T#Sm8Ik3{Dg*s)F&K;^#hEu8-B>mu1 zaNe#v4%aC$-4Sl3$lHkARPt;aK%rvAmWKSdIwFD&H3k>%3BO{h&c9KoEQF)*hUk3A zls!tTbBgrQ>LS7-!_XVBDGXqAPD*cF%%8;_ggi4U6lPL#swb`1c^4x8bZg3=>y!>; zq2z8?87G+zsmR5{Jju3n2Q+XzQo{({?y05FxXLp=3eu-;B7-;w4QYIpXQ~u0(#Q7R z-Q>WVAn|FCMxEP?A(cy`k35C;Hefc$@>Fiix4J9p>5O5W1&4z6VHButkU(u)9_|mF zoEAHr;ge;cOJfrv6Lk+<9~FWBOa}*KkZt9lGom8ZL%3ZWa>k~3qdZ~+GE(Vi-E zbiV4kJw{EuaDuD#3F=3vUgcvV&hyl2&jFUE4lOO(1O!BDP#wiuq*ADo%;acwelfTd z6g81?oVSWQ9q~qLi|&c+qhh*Gkv^)3zBT$qd3*I~bk5Oz=oI5QNMWc^h=wGi#A=~6 zpJ!)dG@|R^tC+!FcKqrS-PsgKn}bHHCzeC$uZJ+`c+@sxKxU#JqD`?vni1-VBSz54 zh(qjmE}R|;)?wJd;mH{}?P=dRsrDE_>W*ax(5;<$5>D)2L{aG9mc#V#QGWk&hf(*Y zq93wOg&1@R^Hbg($@@4@=drm%#hr(tXO~dV4nqoILtX~1A7;L(-WEtj29)7V^71aj ztel;t2O*tbqz4t!cQ&-9OIUbM~Qs4r6&9s74d~hVM66gG>OkE^+|LdtBg#yZ(K;L9& zo%J!q7&9rETY}v_-PUd~Oe$#nstYzj4{+3{>W=8H*5DAX73(AQ52x944(c#w3uRm> zsdN?(kQ8q+*OQ_a!C$Jh3Yr7c;O155iU{o5Q`NiJLQ|){Ga~P3XOX8aUxF1NA}H@1ttO&D&QI{yG$~T7=%}vEBw1CYB`?qQ z^qW|d{ozsv=7wcNxCL3OfjVm2rD#BV%EpcDFb4ZeSU?vqjF1oAe~JQaaI?-1^hTLFXh z)Ex4pq(c*)rDE`brl^_nmN*z=iE%#uWe`drM9hfeF$)yyuGE!ha%0lY)ZW{myWTFzTvvT@ zaj~n^&2FU7tk*uf7`%DCR*Vd)<~A2AU}!>lpK`}_Kmd&PAg5guM|j|}=VFvs>Opst z;qp$LOQGem30%^=$OM!B*2QSAsb&vqanxqF0y$~wt&1nvG;yMIflZTql#W@3H#0-5 zGXK9fAq#;fb!Yn+8U`OkGI?+Q7j1$_S?W5Mmbhu^o4815BO#u8=i=>TtBH%f-@$It zWbzu$DZ1ThGfvSdh_11UK^O!(F4i7L zknrv_Dq+3i5Mm6-V=WtQ$(uJdU` z4V%So8S#ulF&H_yLd2X{Buo&VexDH+2>{J5+?R+KKAO--LNfAEsf@-0M+EP!=izMQ=CBreBhsIoBHX&(uJyKOJFSt!iU!dk8evCZ0} zdlc!cV%-Bl2D_+ZVtG1MmBF%AmvC<<&p2*RjoifX9cI0DD|JdUB8elv(VaJ$6gBmg z5G;*?JyJXQXh$DMUAGC1P&rsMsnmm*%`Vu}9@>o@rBmM38N+nSIi@{`ft1REno`u` z%eT`W1vS3WbTS+{Oqf)U8TERdLy_1-?z`0aF`aguL^{EN-=R~97~8-3e4b#^drT73 zr(wmJ7?6}g+v$X9x0%jpHku48-enr-MUIWj1nbPf@P?+*GuTf^7!uSk1E9hb)zBO- zVY@Ja&|5^=*a!D+ChENHzFP3OvpNQ53o$TJu3Qci^Hkr+9-TT-cWN-3CZ6iH31ll( zxEHOpvsDLL*j#|%QgxthwF_c&6{FSd1x0*KtDOtT1x428>oE2PF#dQS3(gC>WaLIo z_@c0>LEC2S&V^KUE$4s{mP(k8@~IChbb-P?L_0MPF5q=M?0 zEOL&TtqbPp;k2Bh#Uh29S>A9|!_Jc&glm>7?sIIe?hICw>y2QC=n_2J4CAi_3(1ClD9+Vx&@xXQ!gx|n0}Ye*`tpFP^^z?!Il(i%Aqh#^*q3n zSejY^zUk^R^i(Q2q*-VI^hG!(6}7@?M(nH(Eu+1x#T+@}t$jpeus##brFd^})1bc7 zH*tI5@37NJ4V$a;=jhBc^s%(eyeN!0z>~)@h2F%wT zC(x!FtqXiRemtwrfY)O^b zyb%~Q@F*12+Klv9bml8M9rsMoHMD+dp};g!xSbg7K@XS_pmvAgkMm$3xi5n&jRNeG zkk98hAA;E$QL57>51K-sy|(NiZ%E}KoAfd?ri;j2CYZ^jSa&&BAAKTpr!p$g^Cm1; zn;R&Y>8$>Q?S?FPQ3?jLyp?%+2x{+)3DbLqBlQOmgR1r*h0VO%&f%C|J=8FPO2Yx} z#kO3!Dw#k_+I(xVu#<7H)9t*C(X%(4(=)t{(b2;kevO-rC%7g~mTip;-Wn*|cT~%uot# zM+8Jm+;lIJ&*ih=oO$dXjZJ-w;G1F0Jy0#ic@KPJx5UbP%%gF_yzZbxDnM2=0}?Kls6>epqF0usdAOy8j31T;zKSth9#W0+HVgh`)k za_5`Wsdkb;AZN?+_V?K)xz5k!JYK`R3LDL$4OD8$sz#dCXi4p;=V0eFFFNp?eD?$t z8e1J1YOm9Ra1aLiJV-c{Al(+}Bb%UJ4+|g6U7t8k}z`G+J+>}F|4m0=|?ge(R zopy#YTl5a6xL9X3w@_9s^*~}o-*gGhmmNvIdPI}q9__I?lc&30r`vC!IP6mdrWEqi zC{8(B)2&i;F?RkygztQ^v22}5n%V65$+Y8_k8z|Se~9+H&H*B+}c&pE~?rpOj%#UK~z<6JX7Olc+*3sQJfz3)Dtf<{n z8zDOn6pBCLN_Meh!!Yfta$0~;6iqwjUDe{4?mSEPJXd#J27IL*l4o|bW0Hy*n_a|~ zMf2w_b2~NL`wrSf$a0~%E42$EY|tk{nl2RTt1Zj1M~GCOce(C^Ggd1IoOq{XJKfJ} z#x6j+T{;gY`>@UnADin%jz&M_=?>#{zee5RGTm{3_bL_&g(%F*!{!=IvY&wp<6@8Q z&VHsloOqG9_*3?UJPJKE>!7){N7b|18;y*9dX`DvZusIp9}yK=+F_K4;P(eyXC(&6 z@iC9XtnSXaCXDbf*>7T+B7_5f#K6WTBMGS1u*blS<0G!3sZZ6?9SGPn2Ls&@3#6-3 z8hPC+3Taj^MIubWQ59Y3XsNovy z0O|I{IPcNzi*P~=)q+!zKC7h#8vZ{an2@7Rq#ZxCpqNJ8cEplqBtM5xB5O|z?ImDG z1G^P8E)nu+=QE1a4@BrXB{D!eLwM&auz5sl=JZ9{tA~v)U=uB9(zytonsx4GoplgZ zZeTOa!gBzg>fXc=TL!kjFk{gg-I*0RP=Ug#v;d=vrf4uoM|8|_S2No*#f}*>h$s~g z8z6CFi^dIu4ihxi%l_@bRJc0QG;SOmWyi{FEFs8`EI{N&%RVeD>An(r<$Nlgzs?#6ib-%c*^W^%Ju^VHq($cIb`25vO%#7afMUpX@TiEl&eEM0 z>$H=ha6|7uc92JR^YX6%j@v-wA1F+ta|+sw2nXwM-V4SC2;bDxX?=CdDc)?R#A5#l zO=`e%Fh?}-H{InKW()>Fuy=*o449zX^Zo$Zg#7^uh2W9Wnv=dHtmjb!-Ck<%HI~!1 zF~~l}z@+HZ>>VM>rLY9kPZk;o4)Dm#;RwWyxHtBU&N8i2xLZL(0D_*^l7|&A2a%1q z=t9xtL^O=qgIO3m#(d`=E`=r`jD1cbpHhfe=>-0Cf{1kTZp5VVB%14}BVm94y6_*?R&dR{lZV+Kp{lD|oC8Rs=>BC`h_WSN8#4?Z3a`V# zytZSR15KMP$c9I4y^*1@!oJS*)LDLqP0I zLcbcj*hSu)Kzc5XROY#R8S~6gTYSmiOq9XH-a2GRTH%I2t3XlvmNY&9V&rcH-MF?csG@)f#08>5uAH`igl=oB7+ z+s5!1c?~eTMmFmVELwPW4WB^4y{f@3MixlAHqgS1sMwcc+X5^oB%sw<4;WR4vvrRf z_UI1SGDMMdZ;h&@{YN4&&j-={YI18xtDbbnj4yBExC_`-dN2^$%pZ(Ffz@LcMO5=u z<0i<3jh0Ano%yN8vqF8g0bi_^G{w2~YG${^Ot7Y)_;^0z-9-p2$em?lYCEk-=Tx94 z_wlTbDM2+hQ>4bUnNt)2x0uf)3*1>wTFvxaZXW>BK*My$s3_fXevUzJ>YaD zI|hWT^#_O%ZeM%qP0ZcKZ<_UgI}iJgkU)8_L*>Y$4My{XQFct9FhTdkY8w_vYDz)N z@kANz(4uC{Wg8>Sg{TLy7X=KEZ8x}E1+rJpe^z4(%g0U`ZR9NWYe=5}+rZiuou(t_ zVCQ?3)@mv4vQ`(usMJzK4ID|NdAH&!(v{kqZWi~CLm!A2AII)MHXi$cN6R*wE$|_8 zV2jUDB%Zk)XRNx5aKfrEh7)#j_$iS-PFUmNTns$<{HVGnm&z%Hg@dCOVn2dz1v#pk z#KyFPStScGhq^F^@E-RkJ5Vs$8MCySPrESJ)4msl_{N>#8L7Nkk-Se=Jp;0iI`1lw zEV5c|(`bBbuR*5z9z@ zBd<~Trrrees8a>H>Lx~0F^3{5NTtV>+Fu9Nf6g)akueICI*))39H__`dlMKpA299-@tIv_ zlGqzyv_UW6j+b0J3KN{aA~u{z% zks7ky+|ORg6Re_bY&_0OQ6X**fgj!N+2RyqCy!T|v_H9(B7tl?<>fz!xfUCDAJO=t z$>JmPXxv9=Bc_Xw&=n(N;WP}%>e`yhSZ#f@wlP-M7z-^~TwfV0k2b{00ED8^`Bjzk zN~87V4dwNV%F6&W#OljSszVL2XlbmnI<&Z?CKg>#UQ$+GA8M$)s5}}ARX0|}D(kAs zqZO4^F*D9OlekYkYi4xn_^D(33g(x`(2kN=v>Ht)4^`IG#wsh8MwunEXee1! z9xbma3sFAF9xbh|L*pwND$CHqspCictd=x@*SyM_lKQ35YE&F8udlDIC&e*kN!8+# zr6grVMSVFnhpS|^q$#eRWHwr#SJF@(ic)*1;b`5Wk}9wvJsJ%zUQk|BS{}Nvu{Ks- zQa?XhgJvv6W@&9zZB3|V-qIKpUcP8vV@0&Kq9QbD%H*-*C(nci&K@xdGS4{cj5Ed; z8{Ja{kgK7tq#kub1a31+P*-0bi!F`Tlt4FSjn#GN{_2v-8tP(HT3r$=T@Wp+L@9Jk zRaLZf!NTa`lKPqu6{bR@+xl3mlq_RtK}o{`w5@hwV;y?0bU`^b=NF(tB8oy4 zWD!DwSosnR8&VZ3w7R5zAqsJKgcz-fHbS@tAyr){U_Wf#-%jWG}}CS9{E#;nkW zhDIp3vIb){T318f{owT~%3wpi2mO&@oH2gVm{5I5C2W(1UbLc?1|R6iZYyE(WhJo^ zGVR97GNV2kUo{v%vHD8bV>F79ICJK#=ox2C9z_E@8VxlzP^%zTlsmElc2v9A3?Mj| z%9{B!03e*P=*F4^`DiFX5z(qj{L6W;s7GI;VhmZhrZU^sn&_fR)*Q32CTtkj$7-wW zIISsP4BLg0L*><#v1mz6X=POvjpfRkirUcF$!8Ue>NljIU%$cug?$TpSH~J_%7@J_ zuPLvuEJd=UzI4H`B|``I9z3w1_k8}F(!ZcLeJW~ddso(=SITi+(y+9qbU}S>O>JXC zZ}ck0Qg1e~24te4r3-t*5@Y41aKydQeljyZqqGX+#?P*-twBaJMqp<~0 z$%5Ldvd|eunQY|n*Gn5pOE5|s$au|&D6Or=s4qcfq3FokT8uK-1o|8!4g{rDa4j$% zm>+o}IDNR2it>8)hZVJrHD%H;;RxzsS1=n}EjhuE85Ceu+kk1HEQB88p+uI~FGNbO zs4AHczsRP@od6=^1mo3`eUSu^sjR%B1hWb}K_fuPIY*I>)e-pE2;tY*IPqHKY6F&ae`4U22*X}TCko{t7elr1-56v5DV z@(H0#S!G29$YB6>wkc~cWnp$?xpI_Lm(;Ny;pX8%Lhzg9Z17u0(xbs$EMgVG50KIf zH_`nxp6x&+|4<39#tMldAYkvZs21}NMpt8fmG3M=rKoJ_yz+p8{7JN=tjvxmV>bV3 z5{jNPe&)F7l(WZ7KV#CAb3zqxY7MPsS3{PBnG=FHzyipf)2v3#W&5&WM+3X%Xl)%? zKm)ab%mHqyAsSl>2Z?^eT+B*mf3T#c8snk1G%i@Yeqw<+zs7oBXOrj6G~ZmRXJH3#4o|zOWrTm2-nHOq<_ea z3>#+Aq;FlM@tzz3QDL6DIMAT6!=}g+`lykZ_{U7=7DvyRG6~A|;}@S9k8Yzw9?rJ& z&>M{n)7Sj;*oXjb21IG{XI0x}+!rP6S03!DCR|!c&xSS4*IbSZ$dd!ij?x zzA4HzM3=+^7ihb@zNUnnp6NE8)66^*#S~T(8_=IDjhYJIL%|KtkUaOt0{}bBLT4L? zgE5g)eH49GhWXdTOZ_QeB3~R@Qd3e>+fY?rUKgsu(xM(i zGf`KF;!4W;B7Unt>_kyEl7mnuxlU>Z2Rmq7$^1|$!bb$26$F!8uA- zG@!}GHmpL)enP&ZjMh}ZtyaN_l{Zk|pk!q|;s_Ho(Il||UE{AI%zU?CX&nOZP%zd< z*NpAgH#&3tnPX;59WyFAZZ4hIZE zD1-#SSScaTYJ*6OfDrrywNZFD6DgZDF_l=vGZDuu)IX$U3T(-nK`bn1Xr^Z!!BO$R zg7avsGh+)gmQhqFiU_SfMpZ81F5_hshX?+OgLz;%Sy~G7tfUy(4B%L83?^gTlySG# z;~h3yVSNoA2+^21ISOSYiNlOvVl>e z_RY|UuTWS{({%V0@@Qn5wBj+*5yjqD(o(5g47UKh|ftq=x#^ETb&{|S#Q50<| zr3DE5avSliQV-i;9)rXx6kWvK+A!Wa?)dFoO7_dzC^Iu4xh@QxXcS9(8PJ97 zbm`9nF1obKwf$D6npSbPS>A`p#0FowW{X=-YX zQQ2r#tR1cVtxFgb#IU7h1NJtIkl6R(Az&N=!a~e0H0RN_$`a!X%SurvEyC@>!){`c z-C=?-Hj&_P{9P_u$nr!?f%_8d9>r=K(Vf=QVFSVT*?cUc%44h>Y%JJORlWrK4R&c_ zwGIVhK!r*m3-3knlmJC?d#e2Q&~Sta*u^vlDocDDP%Gc z5KNma8=FyOVkaUV_>e5o3fgSpk%*3Lh#{g&9MmS7;>K50R5fDV5?_wd3W%l=thA~_ zXO1Y2Vl_W*#N@GKu&*?8#LO9fMA>J?i1CxA_o1DNs#rrGc*gR^SY;JDpuV&ZjiJKQ z(0`%{^=WLV?^9V*TGd!q-UqAe=-`39(d&&%de5(E>@$xxP?!WelYQowmbNA7*UvBh zU-0Tf4#aY_mHuB!VMQG(?1S2QO@Y=_H1w`)=*=#^aDfkkDpp>NG<8#Lf4-ooouW7F zHddCG0ip@XWWhaDP+=0r&^DIFcML)XrR7X;gY9eq;YA?rwUgzIB>G_3a+TBIGMqSi`K9Z z3Eu3ZTuf~xL}sQ(LX4RH)?)9f`E`_!8QTg1-MLRNBVc^=XHRy_+1o+~b+mAEv6QVFKd0WDq zYbgyeKudy~KmZp@%%*W~?ooM7E$&T92N7?eAPT`{5$|JQPw6!LPxn!yPATYh);w&6 zG}_In-u)Um*>73@{)K%99&cg%NDKWiO*TICn=aVUq8}vNL74wbi0yGrhjY>Nkh3J) z>C!GG(u^Oip)y@LCltES{*q2Fr2ATI3Y|x0W?vm1o!M!P8l73N(hZNu>@*@Xdt@f) zsl5L?a+7Tt!s_g`&xf#87Av%8!fv+LBLud|UgrpGhrPysFy{mR6F&5gy*`f45NJ(! zE{PPPysrtv5zHe!wBsM^358B4g3+1T7oil%a*V~x3CBU$P>T&_Bovy2^CXL1M%eVs z>}$d!Gdo?aMr0POaYtwNTB*;-?0aTfW-kEH6qE-|osoV~X0I{-2gpu9uLFC7Wu>1b zy3O)?kIo>!miS$xMrIaVP5jpA5t)5gdf|zNCGrf*5%ka7sju+sZG2oq-z?80E6+-I zMp`TRRAfi&&-#qFbzMhwT}yRc0Ajmv2n^Q1JS<<@G$SNx!zgV9W9TnpzX+FH$c34(CuifR+*ul>M*t_4RP| zgmYMhO`txb_BC6+6XSfxB#4)@8o|2i z#lLVB3jGRJLRYP}4V63L$3u<7X3MU&Wv?bju|`3TmF~369ZvY%G%jO& z$B1+qr#IU&M^G7LjL3|P&&0r^ysb8`jPg)jby{X*EEGuk+iml<#chuD$88=Hx8qS{ z$FN@~yzH?08=F2Fyt?uaVTD2$S^Zrb9v>fnmubEcQn$rySeTj(0oZ4Q=grLOSt%#`5reANio&7E7TY3j5D?IU)0F2Y2%i zYmcMJ9xuVCfPZi-6gr>&+br`7*yBX<3#`wXnLCuaDGYvN+YH_@>FP=RYQSM!#fbE9 zDKg+1MeRRI%(T$km7>-ZOVmH$GM4M#axBB%7WS;B67m)N_ zqtj_#e#-LbPO_ar^Y9rorq0MLF!SkqHvj0j-e9}es_``T$J01~(^%t;rg1Pavo5?g zbICcGE1cPxOGanbsed{qIVE$gGbOXxnGTA#ljtveX%dB-@pyg&^5NhgIfb0It*k?~ z^Kqm@HpP)J9hyjFV|gw!91j0Y!^aJM^V{KamHA!2Hd!hj{Ul~7j+PQJ5}*FJt$+Bj zP-ly;ui?6Ww2#f#D;=3*G$4(n9{Cdi*rncyaB+eUo3lEo8vT#XV|ol@5gu}djH=!`}hQ0keoYg0gky)w%FoR zt%5ne0$v83_*gTE*IRArH)ffNId;P3B^KZB8w%2Nto3o*vCkVgbe+YwC<;H_-b+^_@?7fkIodGr$I*I=@3uJ4#~`^4IQ6@K_;PMy zJcaFr@_c>1VEOFtWlHcojLW^2kI%_Je_-i{_c!!BZ{qR`rdM&kKL2(Ya-`1!3W#y| z=5@5i`&yjmK;)ln@r|c2dB~sFPP6z9i}TzDl5xPPy{MiKzrDqle#LNu^E`#idZzbB z9RR-|E>-I<$C^U;Ue5F>A^H_qI{bEB=ku}UDQ@%+74m!0M?#@HnclayRz5_b%s-cJ zCAL>8B;*vit=?RKxKtrK7!zUOc>%;ERmcv;K&}eW?9=v8Av?GNSt`DgZ_U_(_L^OR zR*bG5x47;0c;Q4yfuZu#sA(C@G~&BOB8Y4HUC{B>LJjR8JyS$uy0 zf6wANz~|2vPYK`$EZ!r4e`)bi0sL#mZ7?Pp@V&+T`Nq%sx8-wofDc}Pz@bB(*iZP> zm}eOGLIVQynU;P>0B>(`n$P8NgymBozzZxr&BOBOY3Z*C(4S=K>jL!sExs{;54HHN z0DhXqzYgG|EpEn5t3(qlp3Uc0e5%ERONp~B-Z#(zb1WVSO!4z9UhD_@wu%K7zd3-{ zSbSFikNNytLj~q^k;VP>h2Me|jC-MJ0X?j-_@@E=Uv2SVzpu0Sdja~JE&k5{-om&J z-5dx}?zZ#;0`fd)@t}Qfv3Rcl{Sy`+9>C3>loz@`AkPa-uR~k>0NE;Nm&Jb!$oZzl z>jL!eSRDVkBH?)7;zI-U`x*B_KL_ObjPa~^yz4Xj%F@pdwCkYd-z(q>ezNowhsxtO zOaDbc9*_64ywGI<`V8QH>@E5H1NMD5ylWEro=NaQN$`*K^#6PkdYZovNB>q5`VW%e2b17GC&9x>1V1GSK0FCNAqhS`2_8*?*CxR)N`haR1iwBB{`(~O z{Ymgsli=Hv;5(Dx`;y?FCc(c1sOaGKY1vD!QzH@xZKeQumz zOF}<52|g?dJ~0V?P7-`>5`1A2d_@xcswDUwN$`h~;Qx~Ze>w^NG4Ncm@8SQ`v6qw3 zzn296FbV#768yU)_@N|tIGMjng6Af|yC=c@2XxxJC=hsxGw=j;eR;A+GsSBeZJvxL zCc&rwTQTtlO6&7vxDsz@1Rwh2^kE)uO?X3~^|`#l{-MJ@obNyKYo8{Izo>Kgrx4|X zvGfLxeatQKT~R!@5`SK|^{L0i*9Q%ad5YCOv?rd;6t7u`C(iNE9KSnsnAgY(`?12~ zufO4?MDr~5VIJQNyywafbMmuI(bPBeKC4><;r{Sg?rywq#*tLwyOj z$oK3LUsVab(CHWO--isoU2?cK_hke2Ujp!-+@8l@oak4*M z4WzF@^fj2ihS1kg`Z}4u`k5kJrXSPy@d!41NE z`Wq3LPk%1kpSca-8V49DnQ{PA4lpz(*HCiV0bJJr<~)FF8EC#u>$vP7E;W$p2Qr_5 z%zq&B8OUV^8XD#{h;s*-vRrBqQw}n@%zrS`4>pv{a}d`!h`9~sQiGYpV9p)P90oIo z!G;4<4q-k+n9mUAFoa7DVGcvM><}(Hgv$=$vO~D+$xJ_#>4!3hp$6enLz%-+rX0#; zhjQ7IxyGUVeKK=CnK_)yrA}r(C!4Y+m&=~aW&8Ez3QlIG{rWO(zrKCxIZ1vR*1iee z`UG*{T{OHq0MoQ@8nd^IKlX_7^nzfUcM6Z^P#>su-OQWYMNPJAcWyhvnT{N-0@%)3{u zZ!@3~{3eS3geboxAAD?>XHE0s2tU^^-d93-dhNo0ODph-rTkEapJin5_*VKEh z?-?^>UohwA-Wjm(5s3FKe8%w?M&eIhx4w7Y`gE#&QveT&(i;YeFMQjlZ21v)`^dWg zT&#UT{xI*IiRa6sV<$}+Ibu?D${Ac(?eh|}nxZOyIt z{QEa^ylrvXR-rt9o9rWj(-w!nP3BqxqMwY9&nH*lj|;q`#fkS50v{;o>7I?xXQaR- zpRq~!%op@i1)pkxll+HldzT1&nxJ1U@aY1-&f+BhQv$zH&`bVxR#8O1P0(L2aJpyX zxA%67lRoJ`mizd9f?n$F5rID~=p*()2I51{HTrxqEKc(LLEs$(PS1Y$^t%P0vjqN; zpnp!_{}A+42evi%_$h!Rj5mkf@AK`=npr4japJK9A77pog8poQUn%INe%1+G>gO)O z=N!T3K|xRV!2Ei*3jBG2zbp7i`}{)CzaZ#;PD1~ip#MLD-n09Rq@QAeXIq@~BkiZF zpr0k^dkT7~pF)94{hTgvsfY0bmwI?u;4g}LU$?m5za%dmUkdt{koNU_j@^e1wyV_Q z#AmjkuNL&OU5x^l?OG#n*{&M}zEkk$hy9Qyd1Sk$+08e?CI1Zqm;LgP#e?!cF6gEF zI|VM~+%0ga|91s0<)3VC$Oq-WL*P=*hbuP~Zd2Y5i z$umdDbGChCB-mf|7AJbjqYoXw6ZEel?d$DJfxjs5TzVk_N085B7AL;a9-bBSa@_3_ z^iprT1upyLuL76)JT{-j;r2+q%@X))Ao1I^JPCfgz-4=n=+Mglb-`zZz$O2g0)Io$ zf13n9)jrA-)Z18#lb)sCrV08d1piqAmwKxfxYXMN0+;f?p9KGxz@>h=c7hN%g7$Eh z#i?D=KR+pOsn5R&T*~urflGZB*+-p-zr<%-JSfkLg8ogE@$KQ5Bapxm)PG-#2lao7 zpqKg|DR8O(83LF3UnTHAqJCeVYXmO&d}?u$XE;7{9DL#UM&R^pu+Qg5fzK8AFM|JW zfgj%m2^>K^46!)X8^y=xf4ZQTdYCG3+1}X#m*ey%f&WSH|Es_y{l5kNmZ0~#B7uYC zmwvUU#Yuk3^YEeLTtWXf(tf+@1TO1+T;T5r`j?XM-yOhx{bKULuK1inzfw@mk7LG;1w1pdy{&&P~cAr`X-B$oU$LU5cHDIMnNy-yhqSW z{cIBS3H>POrGMBX=o><6ZF|fBY}hJjp5_-?`Uz7L+Y)&z@@+KEpX{?hY0+6!GDCnC7%X?%Q%0z#lzsy zDEM3<=%t*u2wckZw7_M5_3Z(sIH#myz2x(bz-7GDu_p@Spms_8T7k=U-DYuW*HV1^ zcHJ%LWxF01xRmEh!AF5lIzDu$k?7#$AVtg`>nuby`6fYFb-<3Xhw<|;f2l4*|AD@4|z@?pxu{gDh%B0{!$813_*TrQ4dP5xwT`BO@0R4Jf z1inV#hXnr@1>U8P;YhMbIs00i+C6<3mS>zUEBr-H(s2w_^nUslcaOob<3(;By7Nj58|*{+Xa(BycI` zLjwO?(7z#Y$>)86OFoALF6HUo4@_}Td!_zQv^cfv3VeJ$;Gq>hh+gV{n80QKP8PWA zmn#G=>F*J^l;=^4lRQ`Auo_V*IEA-^irOz zfvx=ihD*QR9u_D5R||ZEpqJ~23kAMa(BExwUk`rWKM8uN=kbG37zfcwK63;v*PBZ% zPW(xqKL2Y1xIfjPV&oj z$9aNY@-G+oHk9$@zfa(w2z;x+r95w0oa$XA==TZwCj@@&5F~I=d!_uhSe*D=gO4xI z-GW~7d0ODIT`vh-j-x#Sm*e_li&MQZQSaXby{z{eflEF7CU7ZF>QFGnLG6|DlneYF zWi&o?TpYlEvCpeKA^5xuI-k$Jlerl4kpA#fixdCz1^xdDdfDC|1TNbf zIi;1qZ0~Y`OL=Y(xYYlh7Wdm5F>FKXRCD3uetWY6IO&LvfdM?lz@ZfuC%S$3`1)BJ zpii^(_Y3-`1^wm#z0dz2f_}T8|4GnaD{xh0Dk6ELo;wL#>a$4T(oX&+a4DxZtd+l% zC)eVn&)N9+dgv+tdQ*52a5e(WW1DbH}h=OV#pte}_eohEQO zUK$0TzY9Jq1l}z0%LO0F|5`!+m7w1!=>H+``vfli*cQR(dO`oVpqKT&EbylU{kwwC zI)T40=p~fb z;3N4zC2-0AIl)Kre?#Cm3;u5jK9c`O0+;*`2tJbkL4p5X@c%*Zk^IBML4{;?J68Npi^ZAdkc#!`jflK}~1Ru%2 zMBulDTKQK9K2kpy3S9DEE%-=3e67IG2(|LRN#M5&{Cl%Sm9jQzWTNU^QV7@%hTAXNQKkgFrlK)!*-zfO(7kmy1{AWQg z_3VrU5f17XYL_1erVCuke?$QH?>C(g!2Na&7x*3E@8e@F9&GO{K`+}|D(GdqDg{09 z@{bh)zZ0Ne@8yDz)bsBIy{z{hK`-mwBOK7qd^=w-jZE$9{Kef$4d;3Sj39{gtj_s8|2 z0Pg#-$Y>PCLH$Df{e6slffIlKD6lwTpWx&7@9_ecarh|~C;s;f`VoR&ws(raWt@DL z;NuEDmkV6l;W~j6y|0H20)Ig8x!2-EE9KcLa4FAr!H3HD$BO~n*YjS1KL}!9Z-2Hp z@sRa)8e=#TF74+Si<3Sd!pG;+N60uT?HNG5k{W^i~D}U$9=o;;{qS=W$Ckt z2@W4W$>Qw|9LM`wyi))lXz{KAe5l0>0(g0QUIT8@u>lPp2cSd@Cu6;2k@yQ z4KOEw*I4@V19-i~%L4c!i!TV^7g@Y2fcxXQE`T>#`d9#8WAP;c{7Q>o62Pyu_=*6& z&f=>A`0p&fHh|w^@v8&4??;*g_??!1eE`4L;x`BI2Q7YE0N-r!jRE{Ii{Blk{$c>%WAR-9{C$hR9>6DA zyWJhYKeqJm1n|!+{$2q8afAUr4B-E?^!o$&L5m*<;NM&Piva$!#lH&Rzgqn303N1A z9**zKDejj%i~ktFmsmagJAh|edi)d)AHILiwYVF=i$)u|NB}>=()<78#OL#G8y98= z=#RGa^n2QL`1Cz3-YI~8ZTWN!;DwgHAb|I`_%Q)|u*G`?aG(E40sJ&e-#37dwD`aP zeul+|2Ji_MFACt3Ej~Pe|7hDgI)Fc8asPKeeZ8%)xc|GNJ|469)BvBlkw)+S^H4s$ zzb?u#+1xMlaqY)}_O=Y;n*~10(z`hSB=GYsPWg7CppX)A0Tk(iZKN!HN3>}Y}Q=E^s zY3UD%){ont3(zZ@eo5dY(}y;W{4#)FGTZ>tKM;SvUO7&G1@5=k{~cc9O)kdA=L$O^ zS=!-42mNk59lm~i`7a9KR&BrCU~!V=H++2l{_n;H`TRl9lP~h=>37%Zpc8$bIfYW8 z&`b3Y;!&wV@dnC)pjL z|JeeU>+S`DkK9+O7W6cS`ue#>(34Cb_QDsAn*@DW)Y~HPZJ_h{JSzB5Oyc8D33|D1 zdRgGl2>N}354G9vm%j*{vH^GN|f-h$pRfdC3Ql9n#e;#>0 z{m~XDSsoMkae`j9caXp(|1$(G?Y2SiFBbeS67-UPlfY$rZx(!Fg3ks)FZnzo@STGG z3BgC|ZHJ)WF6hngIU76wAA#=?^s?U11upgTjliY;!IBS{CjYvA@OM~!{FeWxv^$T} zsr>&3elr+j-w81pF_y;IcZRVJB8+{RvG40BM9C5gSqj<77AZp3GCouySw6~=MAS#0 z7FujkeXsX@z216zecX@VAHVDIn7QXX=Y8JSb*^)rbD#UZ&wUQoccc#w9!}+Qf3JYY zk*|X%k#B-eAm0yPL4FdRO8y1>BKd#e!3MhjY5Vm$%8>%bZz4X9{7-lic^35J1ackU zE69r@K9#%_Jh%fh?I{n>C>w-ve_i;0-oKRHb(3I(|CJSgi#K;ag|VZTbtFZ+h5LC# zCS1wqAMQIQ0|kvIxWB`Zr-bol8tfjQFfR4>#ts*|m0*5xohOdsQ?TD|OdgIW=0x(< z=$|g+-(x|0l4n5t0CK&K!_(yYJT;lTEXKoh^7xz{UL*ek>u)7_A+&Q7c{_{`+4oA( z^>|1AaOFe)aNn!o0ObUEkK7)K6YXe3F4xtS(uQ2__ah~Vyf^x1F!@sSkKT7k+c{DGaAhjR zFT=FlKS+wkSHiemNv_wmd7FF=mTM3BCcHp8M4lJh%je`{uw37ezl;6SHS$~7PW9fJ z+Wt8hZxPrJsb@sJdi<u?g{%k>>8Oz&|Jc}fBr8oI3 z)a&ot^3Qs#jOBlx;@6`e{QXV-iP!y<9^Y#F|AYQKN_pC%AI_0KiFiG})jYYeyuVYt zzb}qE{=@!W<1b}kpNr)>O1=r(*MG?Mc_AIvvo7yVv@-|!8|cqya=o5fWpX*^KuSFMH&~A?$v?pM z)rEW;#(#fueLwnX^1Rp{Cy`G<{@LWqF};+$H~M)4`62Y@4)RA)??LkSu)HV8OQD}H zkpGE#?~ymf_}1rtU0)|LZgXOPquv_rsX#sj&#!ghQe7iiQRwF`6u%MUrk{zAbK(8a z&fyfFEV*16Pp;$bCGuWq=K^wlz4rn6*I187$hV?D&yW|w_V_LNRrK#)?Qkft0cs|n46SO@T{(&_V?@|TJ7L#AvkKIyWH^pbh@_t0|m<$}F`0ZF5Ncoe| z{+s0bzC&*OU-Rqd8KubkW4*T_uZb1Yfn4LqlIwMTpC`YJ=_Ta-k$*4wJd8Jee@olH zAMLzF@iVc#=fVy|<6C09MU(66!4~8NP;Wo-CRi`i$V=k+Wf}Q-X@Dzw9cgXPWo*|+ zDE=AjPyS852kSL0mRs|jfEOXx&&l+9&KjSJ{_0Ngy-?p+@_l&TpFuty@vF!)VgIv{ z{8RMjN920lcf{PX17utU-NwQK&8XvbcP zzkv04nq03ttk;p&JV(*~vgi->RE*ok>=NM0E9Ck-afm!8^4ucdgZ5`dd$rzd*uT{x zZ;f%%gnSk9>+_Q4`4s&;jN%_b{ujwV!S+6vd@uS(U*Bu~U$EWnqWD)(uU>are^*jBAbWg!btB;_9Cxt_;O@MnBXi*U$Sqke@*ONb)%uy<0FoS5v%R z4_&uQjh~DC&pC?Ui~KjqYhydjk9KLEdYCRvF84W;(un*B^7bL`i~M^1YT2yfgBkp< z=@kErG{BWtjW>1E1%m4CTS1QD8CYt(xr^O^JnM~1p7zM|7Pe_uP8pXxgU}CG$Y-IQ*NjX4d&u(}`BnIB)_WMXGf69X+F(BxPTmZj zmwYl@w^z+G8eWp(^>d~&>&{xo&SwjZ6RJ!~UlQxqklF8m{eGfd1@HUIy)%WL%zd^?tl_jmz>@NBrC53Gl;k zUEX!@e;b$O)#J0v#-)F>-+rY0-NM{IUAaTPoOH#f(e)UqpLi z;o8o9@Ob0W&y~>6jmhlRx-+*s1F3T(T)0MK{ zxGe8*^xJ3TbF@Fn7sE5;52m|6o>##Ok++9OlkbJsH!kB!?+dNh?bm+L&-r?r_;?rp zA^Lw3`5*9=scHW`=rDTx1&d=C61`6uw3{SMnK`_Um~V1<7|Ie^KL-=WpaGZCvu4L3|AP zDR@QWl1J`0FQtxg$@3TD>y!TsZ){xhl*IUKZCvu`dBg3<>tp-vY+Ul_>#;t@CC^aA z4E9HKq zWGd_*HGV$g^OL^~FK=A(RP(b38XK2QdMD!bJ}H_%XBIz$-X}#|@)Y+R7)yByB7Q3Q zCHQ*dlBXo{Y=!H3ERFr%`zBu6nOeio@Rf;|^`hrhULwDT_41u@S--kp`o*~9se$eE z2DzTMkq#%Q=zeJ$;xm#@fafPa053$o2_9)&+PMR-o5~oMb{4_w_j2Tg;gyUhxcJ@J zpVT%k`5VhhaHWNDiP!Ve+ZmU5eVx?@uHz)GmSl0)cqCr{f1i9g{51KS@N48h!S9j( z3C~x=*RSo#RNGHKK^_TjY+Sk^$%hBp8JF=^5%D9*o55$2C&Jf|{|4Vjp0`o%+PExlWX&K429Z~Q&mn&w{jc|b z(Rx3G@1*#l=!fIv&%^&qJ_DX6(zi?VuYwmcZr5XJB zCcgroP5ujf9eFtVXTNc2|4eDDE5{>)55d=`LWL23l{^va_aZ^t*LXdjshIKL{t)|<666)&mC5_StCM$w*D-GQ!%dA#z52d%3-XtcNADw}?brQS zSBn1t@yX=x!TZ3|xH_eux1)bvC4V2j%H)yuuf_A`R`Tz$9zP||lf}*C%2{%4|99lN zzfD)n&!@|~%ufb#k{3q)Nb)o|E-Fv1?Mxug72zvrPp<9kMXv3fNUrU9g*;XUyDLk{ zFX8xb6ZuH2uWj%&Zr-%+=VG*Eao4XI$FT40#%m>wU7D8khVxk-xQZ$)676p{sGp-wpYb z$veRN7?(U_@%m!8amn*M;zyB>fscjje)w=HHbc@#X6ygGcS zacRF^-{Cpq(!_d*f0?{Bd?Q?!D;CSO&A2Sr_zdosEBlPgxP2Sr^8ooW_(}4#*p9v+ z{~7UL8kc&D;Q9SK<5KTX=J;`~R6I+&^7OSJFSKzXUI6T>3K}{ZJaN z{qr`wqH$?w-Eg0`j&W(vakQsC`5}0F;|UUv{7J?oe_v^UD+7&7{=boDDEV*j6u2($ zqL^TsfZmr)(n|h*IlaG1d8*)fb|HBs_$tbui2QGvcv-IRuw3sOm-aVAp8e$U@WbS7 z;h&MWhMy*X7XBsqGw_RW?VoOF|4s57@T}3kpEUjvctP?Wu|7`kE2r@pD|pxY%1QrA z|LFNeO(;(x#CIo;f)64u51&L{6TX1_Z?u0OdC_vdou87wgXQ{}JP!Hq!F9R%V7+H6 z<@1TldY_N}&qY2Lp5M5P&q*2l{Kbq*o^6OPLH-uJjB&~HVua6A#duRk7ZG2B{5-s_ zamn*nI-e)Oxa7%$?dVDJT<|u=Wxea?WnGL*emzd;YrLs*eV=w9c`@W42G{X+8tZX3 zd74<4%#{t~S>Zd#3&Ky6pMYN@zW~?c4sFk0<$b-SO8ZCkNqC-(Bi{w@LjGM@KYt2& zV=V7$rXapb$<-N+N* z&yo*;zeau;zKwh^*2|~lW8vSESHOCWK!59U9gpz+pO0K$S3XXj8F}N$E5MV;^J01| zc{JKNmHcn`GIHJDegx0tn%&&}{21ojf0W{{M|!_P@p}Ao&3IE6+78>@Z{*G4w~aS< z@%p+l4C_bQBY9p$d^owDkDJA~%EmwxZ5q=}dOUm|}Q^3UP1#wCAU_amjI zamjNB@pZ{>z#ABsJQcD@7I$8uaml0KzivaGT{bdTI>2?jWh~}>FnJ;PRO6CD&tIBv zT%L-e5dQ|bzE77*UK8=B$V)xu+jEJ$D*O)lGw?_8e5=d#3A{4-d3b&D0NT@%ydk^` zc_KW8{2BOs@|p0>#-%@>mIk}B&v;rly$tb}$o2iiFx@Y@Sc%_<_-yFG zDvPelFz_Pe?s^?llG#uHqgmOg!;uyM&h0(m0Ihrvr4m-b)B`YI3C_D?|nJZ0h~ z|BJ|zNIn7H$++a#_V){sf1-(({A-ctMRNTi7 zkHK~P==h}tab*fzmp2ma*ZZPMnB=d5Jo-ADD8JG4y zf!8%xDZjqH)8i>^r+#lFO9eNxE9$*aZ%*U3{|g(Jc5Xv_B>86el1IO1-N3lyDU9>-n~>*&w=gbwO2IoAmplpZF61@f$;Ks*ett2?xa3)b z_+jJ=;G>KuxcJQ2&rCHgd2S&7W%BRgvyDr8mSu6jTv=>f@|4GU^UKNg`w6R!OM9L` zdv+L?JUx+T4|!*Js&Q$L9^W1@E_q%>{4w%r@KeSmkAAQJYvYpVIN~ppAB0~uE_w7g z{5H8B_l8w;L9Xa_kq+m_hm)s;XE84M3u8RzH!khWi}*t1IpLAUrT^Qa|4SK{{L}Ef zU&*-SFNZwU$jiWM8<#vI@x0u`xa4Vy_~zsd;ZMPJKlxl$H{UqO8@ zk~hTkTJlkt-b&u0vTxr}@+9~<@{RCc$uGe3;8FYSCZ=PI=WxJ6JrT-(U`1T}| z7l2PEuLPe@-VDBzJQ;q{xU@&Ft9ahHw5LDfe=n`u>c33Z}m#--zj7 z$#-Jv7j?%6}XAH&Og3SqN9QQT*{@-cOl$Y0n(gdxm^E{43+q9zAZk zYFzT{L;R2AJK%c1Z0)!5va@t0Gsc&=_(Ae@ z@C)Sc!f%rAhUcj6>(~8~o(JW+hMy)6 z;B)mDG+;<1!vzK>S7Wh428* zlhx%~2QN(iKD>%?`+OQ_T-^Kvp=x;@VQB%%KY7?*yVhJJgAd=7j8`C0foZ*R%Qg2T*(~_zM)T=g-eDF6(_I*4J$EdGO`rH{frO{{UZaT-LjO zk6^2DsaL@Z#_^t_~T8 zTQDA)lIwYc$>eoqkh(I2T+a`jMLrzy>y68Hlq5-9(fhNfaeqsD#vuNni5GtfeueyX zcvyWGII(C;GEKc|F88BCiT>W?a_0em|w1 zajExN#CIYe4)1QBrlRPcn-)Ll9+P@U-Odx*+-qyIZUqAoq zZd~$QMSM^4Gw_k*`hDqV$fF*0$y}L2z7js2d?|dEacSo|?1x`BF6}&w_@(5#;ct=W zDk80M`z`WJ@a@K>Ufr%!jZ3|8h(AbP1OAC|$+JW@VpopAbw4m1?}MEu&w=;rzB74b zKly1ei+derT-wtO_1-1#0#Db_&nV+l;s?Vsk`ILEB!3Q`mwYU|AY7NL2-;tnyesx6 zPm=3($NG}5M7-YbUi0hcQ0pna1L{pB-v~cSehmIC`7OBK_gL$#i}jVWk?&9SM0gqF zcE4T2xa_yPBEB)Xj)%T*-JcZC;_Dku@e`0|8pZ4Wd7g1u?~Ad%7LYH1uO)vEzJdH* z_&dgBoa^!SZsSt#3B-RueiVMdxa86O^Jm5-&yR>dNq!Z6+PLJ=^B%8|>;Cyya@{`% z8oQZY(f%)o{?A6P`|U@`Gh=&?CfEITMdPwuIg19X3sfZ!gV!@I%ccA6=EfyY65?Bt zH-{&Yr^0)YzYXtiTydGz(v$Ht{SA4U2Zj*uUO zpCvyJ|BCz+{2REovtt3D|CWiDcBYd6S28#8k1}qhJ?S3v)7i=Yi1ePvxLvNI#wCxQ zHycG>68WQzOMCL5JvEF=o?3{nLtX_Q50}|xKY0l2r33j_@B!qT(LX6BzqIFf_akMB zacNIS)H|KLJ$x>CKlprdy*|Qn@-c{igM1WxJv@zTi!ARRwEunbP1w(WL4E;#jrbjK0oF)F0(GgdU=F=E zJ=(bBnT7aqXB0UqGI*N`^Z0qpEYi`>#N44{ihIrgZx`~0T~3Y=yLr9uScE(uL}l{ zH%I&DlXrseCfD;G55Y6Jy5-M<*l(PqczyrmHxn=GaTwOuE%HI|d&cF@t6AJHSHfHP zN2yox%tw4?@@eoK#wE`t=_pqU8J9d?BEBg333zeil4olM$>QD@H!gV|DIVlNMe;Cs zHRFedH!gYfe1OK}Ly)I8`Am3!@~QA4a2+S%SYPwVE5P3+uL0jj{uKNYd0+T# z@^SD&Px|H7_UQK)Dv-a7_`2k?;a%Z64)uP$eJOqg-Vb?>;_Lcm1g0C8{@;dvn@PSF zKG(RcM}2-=YFzUCiuje}Kf^bZ=X%^XXd8JZ_%7p8ufD%`(74oF3-O1@tHF;NmpmI} zXXDBl}l@ZZ7X z6UqNC-t&~;oFfy z@ktWk%F7h5`?vYVrJqlrKNpc7fiE{M>#G*_+i$_8AHv*^mR-iBA7-FE2TYy>=XhH^ zaNM}GN3Vx+iu@I(}MZ_Fme=OM7yb z^d3W=9$wM7seWbHvvt*Xyk`hHHCL(4Ow(uffNWZ-mb`o=e*An;%$XT-M80 z#J@|f_y0Ny*M4h&9mFY$pODd4@VkkZN1 zf6PM0CC?7zDN4Q-9z%W#UV&V%+fvoI)T`$+*EcTp>UCHekzYstW^i4BiR4RVMpu@T=fiqgOZjtP13OOM34YGxNpN{9A^#7?Wx4W3ORa9ZB+m`MP5wCi z9(fczeOsST*LziX1bIbxHn{d%ceMWr@}ck=g6O&*1c>?yUEh+vwK2PsMt~;#p z7CSKOBUN`=-amha# zdHzG50>4f^3;sL#4EPWv0p8Q(k$UxhG%3cV-W|w4ntUsKJmvot`4^E7#DT?XlSk?;lFt2dWxH{y_Zaf; zB0mEEfbx$({`2H7qdhl`%PwODo*>h=liL4z|6wEIA0^)fuWDTK973LY#$^|F0r8!U zOZ;`j4=^tAw-Emf`91h#ay>6|nQ_TK8vVJ+xa5Bf{qrGtP59TwB~Om@?w2b+8<#wd z5TBua@Za~}x9JFvG%k4pINm5{T=L97d{g5RADdBTa_7|=mv}w@av1p*)!KL!6JR zNFE7qVO;VYLY^+hB~KZ|r;s;<&oUnD9~}QIH72Od8HM

sUk{h;?mBLeI_DoV*b7^f8W2C0O$)<5I8QPiGQb>n(zDxQ;xXY{ahY zAb$@1e1QBN_%ZUSxqY7VmbWqTTqCaw|DEzTMgDBveLa#^ z)>jSWFJfHQS7fC7!|nN3$akYXf0Cz1 zeBLBKpXMnAFK1l(ISTEpV_fT|D(nwen6y; zt7=@@qs!aKxWtb_d^hr$@D$^=AEp_XJgJC(11{rA#?N~gC+o=ddZ}9|&n4vf*tpc& zH;wz{%9qB2^%nDf6R!0hM!kQKAA(2p@bgJp$rFhKxZ-flqt~&ICO?lnRVhy_^0cP- z+lX&RejVPOJi4rJUr+KP@ImCs@L}X_;A6-)!N-#?hrePx!8Ju+rz|lp>sPP4x`O;? z)JRW|8d;$C`@(FRi;@fcP zXX($a=(l_1di~k-z5RR|AC4Ci5#)D~Cl`5r#OEWg120OR438r32ro5r5FQP+!DfBYznl(O0th_vPeye___( zWT1d?$@3=SgixL*cR?Zti~aXLi3_85zPylk59bM=FxSb*5^?qU+{|V~*K16(e>0DPdUSD5SChr*L!>^*kMEr-bO|3sGnn`*89iS)`SLzz5{*;b+Mw!v7}MdK;(n`Ltfm zGmKp0kA(32=^xCa_k(U2!q3*l<~p#sJ{}z!y_IZuitmqe$zb36#qmiKmRTAs_;mRU(KWO zgF^U~5WXMdo%3|YcvRQdamUEDUcHaH#;a$<{#Csz+OOy3slNbkPVt-I-N{eECy-x+ zzeBF~!w8d|zAIYq@Unh-SO`Bs-Yv$*2k^eW=DCgI?W*K&A-)m0-uFt+8`V7ONhV%4 zWvr&aIODQk()b1BsaP)kd`a_bKU|`C^}P5zN8|q$>zB6-`MGl5+mm09^!{21KTlra zF(3a2c~5vAIT&(9+w%;(4EgU7K2FcC*Ld}&6n_fwoyhgR1|viGRC2wKz`78=i(IeU z|9J?%Mn0pEU#>8G9;M5r*SC)f;d*}wjo0hRx2JgZk>q;)_U$43YzTiek8iKmyRw3x zZbrThzLs3$Z<1?#g}e{uSMNps3G%;2uGjBA5yI2wdoaIVZ#f@%-HJXgmRzs@oIoBx z{2+2YuV5~FF`qv*gs0E{U^~-9`RN(tnc#r}560(%R}bNn$v;K>b@CeU%s61x^{&@{ zD-*&K$tM)_?VCWZ*F#%H-U|Eon;|?F`LsP6-zS7GA=m3iy-$7$^?n(`Gh%zydiA*~aZ@NOY|ObA~_J`CH{_aVFvJ`dD(zKHl$ zKekC1Eoa~FAVJge6uUyc0T$+Ka*8WO^v58+G5^*R_kLiouL{!<9gh0kHMe^Sv8 z$sv3{`6a|Z68T{NXghm`@FnE;kmqCaTG;--3gPJ=3j~X{e-pOP(&U@rwaItFJCScf zz5PS@*bx3YxqdJEqY$1K``t8dDdhM{;}b*p@DTn=2;W6s5znJx*pF(x_i!9gk$f8B z+mq|}bBB}b_eK|l@be+OVDSgnqvjb&9*%a-BCibJPOje{{4Ip%e*D3DHNJKT?@spf@8jGxE?pMpn-R!W^1=4#_hMRv z@bTpOeUPOgd}j#%JcR4@cXfPf{(R97wo|{?P$Gm^3*qg^_5A!Xbtn7f5T3L2gZ-xGchx2T4EYC=>-k8N$o0IS z<>V{ze6z{8jJG$jU`t&&^BW^|y`(^&TPo?GS#4T(6s78Sgh} ze)Uo0ldAjWT0pL!!)_y=5a;7F;(ZIvuO1)5dxY@WA^cgN#rZD zc^E-{8_!cy$zyTczL;E}_ji!b#__;Wa=nhO{!xo+>N-!`_$qQBTd0rsb{m<*=PH`uwNKqicD;My}th;?GU=ds5lc z`T4XT^!rdn$@P0f<;W+-`T0AMU$5_dknwm&S)?LY#*ypiYxBuRBYr)(elC?t-Wtn) zj=VSg3VC`=-z3-1*YtZ5+CRSa?)xw4{a@m;Tw03Z57`a2a6iQ{jl@USCcFwBwchtIU4#4prt6S@i|HohKVVwgEJgGG>L&xO@u(i$@SU|M z5661!LY@PjO#TSG4|!SmKyv+F@G$b)h#y6+``NMNZ4m!Fc_;W}@*eQ%_55zlqsIYHQG6c6w<9kC*YBxlo|5n+imwFkO&$l= z{e$_9Zqvy1b;=TQ{hV<#`SA!32g$F)&yWY7 z;GF$VuHO^X?MvIABrDF9Xsj3Y74TZ*`Z}l;xxRm;`*qEu>+vGR>-%h3B+wO&*Uxd1 z$n|}~ZRGm-i@vd@dG!6vS{Qfg`hM@LgEnGF-~SC9)PG2CP3{&_{}k>XobEYv@ZjDX)Zfu3w(lC6d=)#w3TXXuO~L-|3<59}lbl z_+DSXE~nI=+2m7~*JTf@KQhVv!<7QGVj_e3&#%eu&xh5274SS>2B=kJc~8 zDH4*){n%2iho90o{h!XSk8itwpb8BMKDNUAllniv{}cPB`}f1zKj8zPb;28derdm~ zd#zX7wcFXl>i_oM42x(6;Jhu@LhoCHROQv}4iv^sz#S`Ty0zN8sb5`z_P?^sy%9zaM}< ze#ZRlI-hzo2eOOwy`}1|FNOId|DoVt+JDMDQ9sY0<4IrBdYXYI1KnKM!`9!lDOi8# zKUsf~?nmd>?O$r)x*Y{};)QV&1V%aA=6-m7c}}2JAqEiX$G1M{2vlP@n--4 diff --git a/tests/binaries/coreutils/test.o b/tests/binaries/coreutils/test.o deleted file mode 100644 index 56acfdd806ac0056587032a3b82db38e7856f12d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 68024 zcmeFadwf*I8UKII?w-w(KsMY#KsFErgapD(E&&M!*gz2Eq9AAp$>t&KdY4vftyV=r#adgmUaM`fRU3-+enGAB`#dwxoSmIymGAHO-|zRES9Z^t z_dN5=GtXSkoXehUon17?W80Prwl%|w#}u`!$(qbefoEDntW2x*=)UsuoZ#SQ!OC}p zOC8$VzQ}IvO*`Q>-uRwwoNNWJ+pCKQ2V40|mxWuu3pafbXgqa#EVFT|ZRP)-42bm( zH|-A;v>rMqf7QNt3BiYFTTMqZgUx?|Ow-Zn!RAk?l9sUSk<*G&C-zDMJ&%zgfup2HZ3%B`(jlfR0wK?ksY;*U9 zTi*+}e#qV-Lt;U=QN+Wo-f-)ZK)6lHmW4;j%#gTvKdD3Otfb}<(kQaPvKB2zQEwov zu=Sg8Ycy*_xOHjP*l=r6*5snrf~=WE*b6uBjh+%5S&+3TII<{fb#Ua;th(UHomq{@ z794q7)()|~H*2@pK9sdbY=57%7hA0c1zG)I{`TgqL*Ti`!maOwQ9_`o_2t|z!`ln8 zLeKfK0!VtUAj>xvTT0CkratLGRP61b-Y517Tie5JWAlSgOl}|X-LYfAhxdNzn_~xC znjku}@z|(fb1U|8_hLUgcG0U5ue)s69DHJ@Np&*koIFG0V+_~h{@hUv0!+m?ez zrPvQ=&O+wk;F(sN$OmIu#m>y;W6{7gv3sGtZ&CYAFeh<7z{q}*#&i4ANNN(2aLE3^ zKG|RL&&*$jKHB=-67-u!2x<-7oV5`EE^j^-Z21hkvhcQU`ZVqJgl{NpD|p6goSYqOJ|xA$rEe9sZTXv3w0*+gNIv**N*+>a-pHFCn-hF^ zu8j_viv6jLTRm260?%RL)_q}UENqKDV?n_)9}7RV?4?1{w9nf*h?E^!DC^O9YG$y7 z0A?@@V7ce9UuOir-N83oS`8HUbR}*Z$977|oHrVnm zIJ^-Jw(J0D-0FqyORy(f&^x>N-C&CYyJj~3H`ww&B+PHyGVy4*_5Jpre0%H|MKCy` zSsAVS+BX5@x9)G=8*Cm7>zdyRHuuFg+_p3;BivS$)i2zZmlbY{W(9BFCk z4u^5w-iqOP*yjF+*7D??A8h`Z>@E+sd@AfD>)Nr$*5wC22(~o4M!}8{w_UJhCls-H za%OQ;wjqVQPt#3!3g(YsOD&^E7>y7!^$KB&JmLi(KFibiO(fc-@f-N+*GQ4RdIWpI zCFG#y^{`Ep6W;z%)=We&B4xbwnXv5DQQp}j`jiH&;j^vGYzcZk`K=Ds`O;BcFmQxc{?K1!F0nG+*rA1t+-+UMqt-_R?(T}f-V2{p#~T4r;5<3AfJw1R{OVTh9A`b8%_UAq5sIOaeucz z_9OX&E$5?aXgXF49fwzfQu!DBX#U*9{Cj2o0i1u@kLLdbok%M`B=f%|`&;|B@U>fi zT55H4aj@ln2)jeO^`pYp{e`Wsik2*DJsfU*4bw$Y>pum+P~Nro@P$G<=KuB^b^V>R zU$EtjMEe@0ebd;!l|P!lJLi9@y-U*}`>+R5t$hakX#STls>nZ2wWm`4rxDfizx9>o zpHA(+%FUlf`L`wJzcHTw2~0)kn5qZEQ`hc2yaeLZ4;tcfI7*pP*+Po^IbV}&E7*5b zp0ynADg;6G&wCqAzLSJI(txq={ zJr-=f45?F=;;;*KHwksr9*>dvoy<>|nU*Be6+Hub29lm-uAYXto+q#}=-~fRLK3UZ z!%~( z7BB}shu{A7G3tSJZ_~#%&5Kx|#(I-PG)N1#SQkn={2?Zr_7xDvL8+M<#>zj7SIA4K zBze>?kn7(3DX#{vcpEZBZQ?+P74eawjTfNM>0-s5-}JfNUIb;FYs!Cu+wUXs(r@Os z4g5a%@Ti%M-(^N$#P^6;DrF2dQ+oc$SM!^`^KP9GU4x|Tm|y6;h>rHx?L&3G{!G@S z^^JmDasEfE(fndwk50>ujY5X%*s#V6P_MyQ8+@P9-W#>YBD=dh6-a?mt^1BV3O`VC zp#95_MDh-3KLYJYyICEd<|9u2g0f)CMzlox^O$j3_Z{AZ{qh}BVL624X~FhqlTSnv5k*LpRxV=x)F<-FxLWngzhZB;$fhpg|{*Lv+ zjp!WQpjiLQwOP1r!ohIMm(kUYGe*Kw7m=qv!!#%hhYEE8BKH`kZqYgP<2;?4%JGLu z+&vw887?W`QPBF)$Uh%x6`GE03vZuJ+Jpwa)R1g>a}Bb?FZoO5T3_{-_7^Zw*e9Y39)b4g?!*)|KHynQ+5Eet!1uncjzg665FZ$`wX z3CW3+InX$HB>FAo90oV^K{jm0poq%~vV!e?#DfoGkNRvQSs<@NWyiYXLQF}tu<0m` zlMC(I=$Y@*5OakqPYHpLGvqR>fsl~Q5y3g@o4*zTQLjt zYdYo)Hs1&%wq`aRvxCjMvDEh$dU>qOb*4CT4sV|zo!I7kO8P8% zKDlGMsQxM8wu0P#mW@fC)vbjPBmk8q6yMY_yx9s-qcS2pe7qYUE`stSl^Un-#7gp0kxoG<^(uFHpP5T?QRdPYr z#_)DW6obo4xZ3nD&P3OpW@`J3!nhc;S_opNQs(ewxtR;HaMsF-aIr|+@2BmDw0&IP zD#)5lUt#)M9&T&M2siD^py{G(QR~0OP{y(9-$iX}1BsKuf)<<^z789NOp)v^qTBMi zKHU0jQR^o-jUYRpB(rkA6#G~XhH-VX|D!koS5prc6m0n`$t9e1Nd2wv6t#XT)we#& zN*7FdkL$v&Eeg&)#1oG&7L5;eSSLJ-ZjrT7yC^}|_|O>}i%9Q(gx;08d&Rmx|J=ir zNf!HmUadKuR4bZWv^|@YhUKxZlM0ek_(JC4|DiJ_I=fRJuue8~80kO!J+cZQ`|)$4 zH_(DX9^XC-p7@QpUPXuFmSfSWMQtKqC#8kk#AGg4rL9lHQS5cTT&L&6AwoJz6fKtf z?@P0!`cCRwgw+*aMPN<;zfk8L|NkR?>ZJJ-ky@Kz6=KW-?bqQdz~M419kOepR(35u zk#c;_x3X&@R(3Vw)!0^GTM@CUYSx!jSCxgTYNC;fNPTEngSD=zp`og#B2-de5nC6j ziH1tbqcQ~wLuIv*hEPo{XlZGrE*i?NCjFga2z4SotYK;>R^XjOJ;Np-cJ-cVUGZrp^1*gA{$LL^!ht%@{==)_5! zFn+QUnV36{SSrk|t*Nf6iG(U6)pb)tdBYlJq*`-NUlxj&7^x|?=EP85S#7Csys(l) zg|INSq^4|4ZGC8^H73?jKc*TrsU8DM>LYSLVnsGa>r3KI2cL+kM|{zo`2VI*8I9I8 zOdT_3!-fqx6*aM(+WLwy4YlRb4df5kuVbvmk-FM?bl93rAvmX|p;|h2O{}6J6s-;A zDLqoBGMGq;j4GkaRmN^og zaahA}IypyJiY`7JJs>-q8h<#tYkg=PI-1B67=u-AJY>(Eo=hW*^y55^GHX!^mB4$^^uBLbqS`= zs_F>otLRjpsvf4+?27u@SY38u0ZGsOL1`@bsQf_%C835* z>(FD6OxmLr13s@<&~S`V-a}C0HBLQbrE3*bfvzJpg@{ z>V_^Wx&bs%Pe6$ql4neC$cFl=D5fBs{z#8(JkETPjgitAa*jY18X_h2rIjO<7TFI| zXKxgzRJ14R;sDxuKIzlIvkw){GlYM^!y_%NCI;7ClI< zs%gL)zRWcsRhGXpR9Rb7TTjQu2(QhhCE04VT3biwi4E`$maw99bv~PuDxy*9=2#h& zzyVkyMJsDzCq@BAHz(0a2Ud0%qgXXX*40HfvEN_~+p(!Oh7Li#79JJ{JesTM1lhHu z9A^~D)v*SwcHp3f7|xp;A{ZH|R0Sm~N6H$sEx8iTTT~q>fnB1zQ0vDF9FA_JpKPX5 z*Tb0sPI54m*I@B3oWp*gYN1RznL@9yEP4G*UC0f$ezBzW+i=?qdD&~bxR3RuA5E?U zbs1G{WtzOYCih##wL$qrmb_v|w}P9#wJ#d7{Q|y(DIa{BChmj8df-ws9-9!i10EsS zBcHqXdh!nHg{w;_=F@c4EyoYHEXT3~v_F-;2GLh%fvRNrUK%h7o3ua*#RPIj3@F6@ zGy;q9$ykFg`gA8rJeWgY{ruKXu@TB?C%)$s>}H^VyO&|5`9uNJ18LH?e){w3tn zY*B8SM_kvO;d5{i$2#>XN(l%gl2ZzWrE>o&ZU5>%WPs$?X#3Y{GS_STry9SZ$BS;> zpK1HMwfzUQ{fD&uXT*L=3{Ax~=uP`0pwN0Fkeh-F;dE2o3XD&ox^QGtmpTXqWXdTb zk|86LMWmmMOc9Zgj7$}g5i&AOM8?WUo`_7Ak?A5bQ$}WrNLWVlMP!kT%o361GE&ed z1UpyD$edoo5UG@ru&}yLMhZnFDkJmKMxY8CWn@7QYQjbtIX(CwBHLtSVc=wFYm$*O zf>RN>Oh#68qer!N$jHjR1xUF;MppGd9g*EKa*ivSONw6Wq0V3(*I%`R$b-MvEW3Bgh& z*waecf{Z5;5S=b{Lci&xm>T@VP52s2<)rRNkMCb4_PIBwWe8J6-n5zBk3v}PFYNw- z+V7g$gC5BfeJP_`+UL+JGIh)7N}MCTdzT>+P@^~Hex!&jJJL@$2zikueQ>u!;2g>7 z=A$e!Wpr>LBGR1n?DPyo`pJ|r-N=-IGBUOs*%*?Mab2E5Buhpn2-PEGWJ)*c7Gq^( zdiNqkCd8X=E05E$a_IpT_iL|0GaxAFqo< zJ;vDA0Hq5-TW&mZ`??hF!<5vft4m89`w6fFvn+4@egMYbKTz;)QOQmFk- zBshkYKkcEuBzAxAp*}X2Xuo0Ieh&#TkfjY-QrX`~nXsR#BZYe`9D109zl9N^E`48= zzQGYiS|$n>N&RhMVHPC`HKLj#>4ZW3ssEfxNj6%;p_r`7fS=mIlMy*nWwTDB()*n0 z=_a!F8ZDd`bCU}wIdr05*xu)CkFe)jN`4=;msSp3oK7X&?Pe0H2A(PCGl~i;EzyoW zhrOn#)G%O|(EFvLvPNX6Oh0k6(A7PFa>-p%mndeyPLXvqB^iG37K@~CLashiqxT$< zRz+zSQJV|3)cSp_*;HVvZSHxL#bg>teF#tRD{p(NJ~*@xzkI!~t8 zrXp0J4oAV>nT~4orQJ+#nl8btKaB$wpxv^DdQ&Km3S@!^?y>lo^8E3g>T!;*=88-wiYai!s*culq zP7p%1zLrAv*aS0d`wV-cg(MmNn@JT~>RFFynk@>MODUc^J+_pvtV3M3y_3ooPP|h# zo091F5-d&#o_jp0*Tbbfk7y}9|Di=(6R0!61UuKZ7sF{7;J?wtgjP?QH|2HGwoglO z6;MZ|MuCDego3!QsCCn1YG-b61*y~alY-<5ms7vYKOP0tuU81crDQ^af^EmE;O9vc z>^oisZzWOS>v|kMpehU$f*q?c`*;<8q7 zkPz(XgTmugP?AK!PmWi?tw|KTaJ&lsl|(^TtUiv*2U$X}qYoAwuYyPt1y>xef;*BZ z`1A29_;(To8JNS4%LgNbU`HREaXboW;@JEHg6`z?HDGKg+sWDTuq4oGv{zFTqo1aXxz|SuH$Ol*Ciykq=zWZW~ZOw*^n=skP1kWU#_i zfTzG?tKLWPA@qe{?<5gxT7pS^2qD-zYjxEWaSIiyC*Wz9kqKEB$ehT!U)5$*Vr^Uv zB;bx3s+w#dYXUB$T743OX%`#DA4UHAL5MV4rJ$rnakVI3{MEY zETIps1%EBhU8Ng_q9{}lCnqRX_~8LN_!~E!*`7q^CU>xD8nnPBs&2ex_rO>;%k7BB z5)Y^nAGL#bx#?WuV~Na7?oi@=KU(6?sl*P>Ux}-vUCYa??`(11ja)#XD<1E%zPEde z6FZ6Gwo~D*B|}15gsSK^0-fnDfO>R4Gy*MLv7$J`o*K_f=gIL{hjsZ?GV>2FL}<3S zO9+bD!nG^GLv(umXDO7}CJ9p1o4z&O`aovSdDTrCHo0*}l=JNT5e zM|_Jy$JjyLcGoR*3CHy|UFyj|v7*!O&`zd1NKH~wd$z{2cR}{kMS_@*-79T2=%9o#aco}xo#^w5^Bct~}o-BUNbYdxX9I&#gg#ih(YE5itCw0!awmVNAhZnYZcA)2_p%0(t2}>lM><6Zv08g4t*eI;I+!q81$rp~xlQ&Ri6fM#tcMaVx49ORS7Ruh zoUP5MbT!G983IrK%#}&Nk26j@bB|{whrHjZOegN8JC0}qap)FTi`=59$%cy5W$^|| zETu>$cY5e{*QV4EvIMPq3xuXof#t8O;~ zt%bP{{5qizoMnqvr1d-IjfoA`uf^R52{l7#;LSTxG^1Skbmk@!sy!Z|YmZ0hcgG|2 z_u~=rqH6AvEt%mXjz?%g5+Sz(kPA91ik<(<1m~Z}Znk$03gK26#eUgOKjuj^o>Emf znRf2tQ;)qDO{!gsI|ce&>GmC(pT3gzdVhh@C$IFn$#min3@K~lT}7-5Qs}6JVTB&h zZ0i<%L=3^+N&QRM*PL*eo>XUD64Y~uN#xQ5!FE}$<8d2)j)(@M;>y~8ZO?*CRXb*$Yz zs@XefVsP!Eh@3kuVOE8bN9{$hcarH7%dLuZy&Jf8inH%R67`&I%Pf}l0Pom4sT+u9 zJUgVfTA%EaI%`$hI;inpwfiF1pWop`_$*{m{uC!bvU@Ei!MNdcS)HV?#1zNr!Bug;=fD}`=9%k=e>euqk5FVp9dp>~7E_GS;oyIMFlgiI}>NQNErq`r?# zr%+5*LF`T>k$~0vDWu^<5=vs8)22g*jBNFY9w{S@p8m7kl*{#$pUH@oK}Aq*aX9r` zy~&ysf?|-^y9Vv1GB|j7Ywx5r*MibY%icAb9wM-p$+~u*`4mKMMB=a#tNTo`BpkK| zd*jFl*6EbrF0s9IGvp*0IgxT$lj*C5cImE*Nb=T%w25XT;bS1On{Tur-kM~dLVF~wd zxKuPfddV-5D!Moh+40$#?g(9^4Fvs8PY0>a%Kf>=J9*d-m5Ud{xaFcKz6IruJiWkp za%Uy&^mv=ilEy2Ck(%|Yr1FHv} z!Ev4p+-CPD8#8RXP*~kP6Sj?kSP!=tSP?I#r(@+RlX?j|)1;Yr^5Y~?tv+yr)z|5y z3jGGzxjh%#kIYJ2)^~Z@3g@geGQ59cZISzgG`qXqBZU$Nq}j{*($2sfTdy;v&+NBZ z)O?WeZ>E15nNI#a@f2amU^Y+q{nY+>IQ=~IUX_>ylp0Ytmb*4})+?{DtO?Bl% z5`78lhAMl7UT&Q%RbL$r0}QB!$Al|nxF1;7@Ck8Gj_8TnrKJhk%m5iRvL_r!CZC*G z91Iwx>`j|O_UhJ-b{kEm$u`Yab&$qEMUF1lZ8&^GWsb?QM9<3XjV8^^kd2PVW*7_0 z70fNP8ttCc<;N*=kVm+0SzpyMGVaz1xfAo5F* z>lXkrae>~qJ?I9f>-wdRg`$TeZ4pfxm^NucQ_x~^MPC1!begTKE^w_x6dE$t+ff6{#9p1%TnD-JpKnPzqe*_|%-8Q`dk3|+9Sqo8T> zK+NN}mr8+zZ%t|#N*Q*NtmjElM4~&m)>I$FZ?*T(W{>?V=D)K4Lf|j^wx-jE zl6_r0SJnDft>RjCl3I+6uKhOT)B#kJbv$Et`J4&%D&K^OP&#pey{a>@fG2mCFOUbZ zyy*~|z6@eAXu3}Fuev61&NTtw7oJPKYJXemrK!BnITCy*T;1J1!*}M{(0g_noNhx- z)7stJ<=8IYnPs%;OhXss>(Uz?V;m770|Nm(7o0KO4 z*z60uL7RUDKBUd|E;n|uS7`-z($G>DbdpA$`<&iCtAwI2@Dk@DfzCBmx=Cz>)LZ`C1bjhw6+Q z54Vh;oZwJRB!GefyJ_~`ZQsHZ-Yxdu2>i|dNT2Yu%4zv&konReopy@7+;_?h6gJ}~ z40zv7_9HgPBlccum%a9LauzUVlX{43R};lfWDuoj`iDUOkfFLGw8YIw+>9nX+jpD& z0NZNYvgI_fCOg$VL&6ZWU$yOXFaRF#>iA9XwLUE_W?fCkAE{gY)$=o7$NtBjobl6w7!FQQ`y^ZJD zIlO1Py9p-r^z{kByZ^C$|FyqLP?F|L?+tHW>G56dxz^*m(X-p5m(k1DZ>TTpBwzM8 zxbl;PoLzmv{<>(um)0Y0$-(iiC8_S-i?;PP9uy+ay#tHUXTMGFMjPt8_+V#nVgsp) zXiwzH|6a$g@OwYl@-9K!-`(l9 z%Q8TjmZP62J+ zmBRC#H6#a#CRbuxf<%)mL4uH?&AZOX{Z7`+j{TJ^`Xwiylmhs@(ZB(}4cq;JF^;FF z)6H*}J1NT%uW2Uq+{##zX$1_fdhFVzxTea_xf$m>K>qp1ME~MfZY@FoD=6c&@j?}wlf%D=sagIVmVG1|MLLdoz(eAD|Ch;O(t~n zpN;(?%bjj{5UOzcN};}msBVs%lH#v)QW3Kk&O^1mmD`-`?*4gBivLMbZi;`t(+kO7 zzqiLWr?-EbgC<9XyrNp(JaXnrz@E-bl8QQZgX7I~df(iM+*)$Y`=W|nWW^o-Rpcng z$y$!B*4g^19^{?x--V=@-}_S=?hlan17mtRo?ec(mr&*PU+r{7**z+quGP+P@8&$m zUk|AnqFcga!>O!!&H!0t*SAGln%~ZIf(OW>sM?>cZ9-SC`A*6_+(;A|aR1TgfzRQf zQGRrrUh|x^cj1@{2br) zExUU{O}3L#;SUrzeIS@R&*}Pk6H>fAw>fFvq1!}H93tg|=pyMoonTL=Cq#q(n5bmX z9~eTd^!!agV`y(VcBVW1{WfLW=44^x+va4_CJ?3Xa!JtQ4{WvlIZh7Zwm0K7T))N+ z?Du;|Y9()jzFYJ%;XL@IuiyT+b3&ujHxOzw{>z#=djdAq%=uoJzzsVUwwYk?BP~-%|5S$L}HnuSoNkhl8!#M#P=PEH&oU>@3 zYT%$f`k=_Qf#qcJfO&CWNsE8PSJOq`4*FLpSM5mVssrqyb1?EyFnLI{(KFV~$h+K0 zdClpcM^gxWW2};lH-86hzM!u_6lO+w;Cs7&N-U4Q$}!2JJ>I1+IZybgEo1{>RCr&o zY^S^5Te_Tv_M_f9#BTOS#W)9UK#S2#mN0s}GpKL8;MnJ*cLv7v65jOQi#`>2vlDCm z-gm6mRyZe68$<({PA{?xJ%~0tU_sWSo*_MQs7L;8>pbDA&g78XBamk%?@(%x9R2hM zQol%=*2V8FL{9WIr(4wNjy~2k8xz{qPNv^(nnrWmblP>guW&M_ajd)3eY%sqjfSiD z1bZbluV%Au)OgJ(Sz%<^6xbFw=SS#$TS@pt6p$Wuazu#@2Ua-!7#tuIzO>$5Ax7$e zs52Oy#qTWuP)4~0%n9@`G`(O!m6DSU;~EdY4EVHX&lUI?B2^BP(DPy@PhWA9nD0|D z-=|N^n}wdhB(3L}sePN_iFxFfrJdmV^68PM$U2B{R!Jo-8y0B#W~fCIYs zZx)V2({C1sWjgi-on8wZj5+_O&|4Y90KyFHO@r&bv3azYhe~-j&^%{5T~}0)6teYo zg0pcHTnULUw!8*yILh~SMkBAko0I;QGx~rtaEFs}zB8IiUrD+AD+)1vj1G#KXLPwU z5GfcnG}YQsr#Efr5L4Yp9ALyjsGQ0^;bt-03qvY}83F$|u?|Tf3)Kf0n6pJbchiuB2_NX(MRIQL=S^_OAyu~{lr>B^F zJbpULI5^OXY*7^HEs6Hp?F^R7kik2g9ao`*9Fn#fU7IrS^= z#zzSZA#g6%OWv-J3Z2WLlh#n(mZR+;&;!>g5|50FZ09upSjVn+P7CzHAvrCu!#T|x z6RW^f&&f7c?gL50+dyXl-gM7GtSr&by3Kb6Vs$+P9v(<*z6Ii#n!3R8{{?ba(P9*< zXrI^HegTT~-rx)5_`GDo`xijBNL-Et8hAUgp(&eAE~u~c!3ls^*Lu5d>&aSPy8!uZ z@7=z8rIuG*Ejg^^UT8`62j$oD@RJI_vH)bahx>lRj}xLLG_ty{}yGC|Q}< zl;^{Ry=V@j5pVDEVH(@-D;JKP57F+_EHoFU+K$g3eNE_o0?ax=XU&ZJ;l3wtEdAi@vgs>Ym-A~3n_X2RYrWpkHpV0(u;V}lD*#a9CXt9C_0e0Yfhej zMWE+<%_|_+2eJxv92myX*GFpyT_R?En>76;ng-a^xOX@1E;?l~Jsv4^yT8wwo;T^xx zdU~dw-e^`FMXUs0k!Ueq4h!*h#q>Tkt5~R66N5hSj!CPcuDG_m9CD<#p{}GfVy!PJ zuEuKtE%|EVV)u2&#f1xtk+XOWUe9EmzOZ<1VF7KHVN+d;H!zE@SWQD!1-$ zp319hHx%R7JNQIOEP99VX}PC_a&vRW=Zp?U{uYjtpYod8?9$qG>+lM-?DAMmRW!Q+!m* zSVMNKWTHLB9 z=i&VwRU7G@TI98o>blAj3-2NSDCo6{ZbtM~-ms^k;8n2OrO1zzqnz)$WdkC;5vZ)q7rK9$NkIRZ9 zh>!|;lVdS;iQ?il)oV*@qR1l}iAu(Me5pT_SC>>YkU*>oZ;-AjR*hf0p$cW-wUZ@Q zBvu9GrLlTcsyeo=#wsg?sZqSUSrn;i3hPKGbjcoz-nrH)$Ln+(ieokOW=XsiySlU( zX3>j-Q6}C}>GnPDgG&n+%wDo+_G!i8vq?`$*;w+5FhIUKlN^L!UYs98^GS(`%6 zT+d2ZCS+V!QYVI+@QZlyUU6L%%0&;512{px7>21vhITY2nuT8eD-?*{BnDe?F?H>= zXg-)*Q7U?h>?9bY_-#)y)tcLKoF%%4wRHB9rNwjdiANyVnd47 z)BJ#}c>AqYE$4({nmx#o)Wxi-hLUJ>lNDWGT+Y~MX)pcpSSE(*aZo$jc(e?12Ihr2CE5t1|Ru+mHA-@<8WEypD zdaa-p!`m>8^Zk!TYuR$r~ASgUweZEbbDFA2da z%v5-tDox7Nvc=_iTU`vr)B9jWtx!8LVo{|U8m!!Kg+R=bXl0W?J9J07iSs-soBUd(vz04rRwrn;nNEvlv2Am46{T5=~BLzX%^rbyZs z#v&P=46clzbu8KK%IVG6asZ$=VP>^NU5jxb+Ef=QUPH}C-34<_J$zcsjRCSz&VqPb zABHi_py)C+QA~4@`g;7xxR|ymje4bc>pe;;L;0#9OUl-l;1!aPlY^=zQb8}7glA}! z%DE2hKWPH&rI~|F#z9D^R(($nDa6D8qsbBuSQoXZP8h-DWy)5xaBl9{Vtq!6(ZprB zCP0H6!xMA7z`>hQYGvT=yxjhFS77-f1p$-#|d2Ieye(aX)LK#V8y7hYFL!wZ_} z^_HigX5S(Ns&u&@usV&;_?uQSIEG67S`a+nbkM-(B1 z6&l%reQ^xJ@dvxs+|y2*8XB=|O{^vw**6WZuw_`=cZ?nPx>(vKl(!zmZb+oJ;yTto}37qukg%D@3-AMD?N0%FF$?6 zCC+K-W1IYQ)Ax9BAtg0^Y(e@6)CV$;ku66bQ?cJCFiX)@Ap z;B@i!1?1gM64pM3esnKwx^~~o|8Tnr9wil3AM*e zzMm`}1B9;2J)2QZfoQ8$oF?9OA=2ta8ucUm??e&$(DxbX8H=!?|6xrbMD_`J(T_xb zC`cdcISbtZM0SVSX`agwKTXBwq|MWl=fTmVq2>_le2)|tq~jlGqz4wJdB`R6(+coi z#NVsZ17ueQcXrt>A<^bp%)}2yVAmC%LbuJs)aLM4lfNK+kL|sb+Po-z#A%wRW>cG! z?rPRUaSGH{jm(6dbKJ2rCp{#`+HOu4PkxB>FpVwLq{-*G5F<(r4pR67fn4gdJ~`Hz zh*v(e&>_i-9A==$Av~Hqn`hxM3c;zK6o$x+h2JPb+Glm;xY9`J#8uEAv(TPFQOVYD z>`}QhnW!IcW;5T-eOk;VVDv*MlF#7wSHJqAUxN|f%UsMAV2hdW;R=a40&E37WT&!E zSzN~QAG7>W#3`JM59trFp!=g?aBuvfBoY;&8sDN`EHCC2uq}eSj}VFZn=)J_IQ+mr z?@(`Np){{+CBV}8)!S26$8;6G(vEw=H*o0#K)bBtG99l$whisHtEaw_w^#uPN0d1L%gB{a=vK2|(=7%%q> zrQevC&SJjD{n?_-a}M)^MwcjM{)jQ9S23S#OmMY=JJz2J|HN2+uOW|rTaDmYZyWL# zGgoV9RkKUM&AF4(Jn(O4oYwiB@tczH`;+j`lIZ_U68U{e`148lUy|@cN%+5$@K2KP zZa*j{2K5c zSVw)#>m_Pe3cpSw|Fa}~cM|@*&>tV9;yecW?@uECWD>qF3I9_P{%#WfNfNFuM7fu! z6Rxb&8|THvNL;SL9Rs@fEidJEyawxDa^?F<;$ow`j;^kKLP^49bt9gG8%1U2rT4^3 z+2Uek{5BfB3Q}BgH?L2+B2s53mnM;b|CoboTXi{OafzzatL+IgIYp<9weXcoU*qU& zJbg`|uZi?EiM~#uugUZ^g}!oS79o@?jC8oSz}M{g zE|EPv z$gA@gvOhwLT~Lv6?*n`xFYM{3)9LT%;@ePfa3!K;z|_ z{2Lmt(72xrL7;N!TvF-(mBy7T?-}85s#W@v?q#WZZP(=Wes1&mDe14& z{+C78b^wsXK*&#YSegdP5x@;WWVl*pK0=R z|4He;QlSIBfiToEy z?hZzPdFnuOyQs3Ms48q3`D^QoG= zZs+nO@)1p5xATT1@^@?U>oq?-t?>;S|EI<`YW!#t{r%EKb=~8IYTseZO+Sp&xNZ;s z12@snH)-WoCea_$^yq%LNaMQx%Qe1P)4wN){wFngyNW$MSxYFFROY0AipF~-kq>F| zQ#JXMHTiWKKSPt(^`EK9S8MX;X!6rEUaiUN`ft?a_2bJe23P*S+u+I%pBY^F|7(LQ zJ)Ryg4nehx(lgHBN`A7zmHw4U_!@&N{eAdEl=SL;8^oOK$-_swbH{ z;7U(~Z|sr&>6-pJjnB|{o5oMo_|G*yQ{#7NJYVDVe=;agxwG(5_PnC;(=>ia;{_W3 zK;yGDepKUgG@eO|Aq4Vs1RquIMCN4AT#e7xwGA4^1trSF&fwXnWyQ|?GI~Q_vb22kM7SBOw5NT^17YRX!5#${;0_>(8_&HldshHKQ;M_!H@Fw zE?-|n5U9PH@KJuC_Y6`Xz6c-1`!YA%{X|W^S(6{D$+u|y6pf#!@fn&PyB))_1~d!UH^TW z9$o)q8egjE->d1-^}nETUH{9P9$o(-jW5&mzo+TZ^?$5!T|fO77Yfv`bp7;S0w@qa z6Cc&zQkk3mt+&P-HTi*>9$o**8b3>uAEW8f?VqY~U4Oo&N7uhlZ{$h>m z`pY#vy8fuf=~*`ApG}$`U4OI2b^UFc9$o*>G=8?G|7J~(uKzBL>-zU-dUX9yXndun zf1jpD*Z(Jt>-t~S^yvEkrSVmo{&r1|uKzQQ>-xXZ^yvBn{h<_r`sX?LDF1h3ZuZZ9 z8gJC(2WxtC{n;8nSCb#7>Cx?N>6Aj*k5@yB zK=svmW)hBffh5TDZ3wHcc3jrWRq51!>hV$K`lTANzS22k;eWD;|2?~qqcmdlxsI>j zsq+}c)%8KXtm4Yw#PWQ4>hfEdbG2Ol3UeMVF29TUKr#kFm7B-ctwMsvc_W|aXBqrA ztY?J5f5&{Z!5?Qn*5K-SqX`CohUF(4{CVbi27i(HOoP9~yuje<`YEk}DJVa@$?~)& zr=a-XnA2K|g5vKmr(-$=#ouGTTw<3WX1>bc|7E_~;GZxrGx!(GX$?t1mHRdGYKdL` zN50-#XYfVb?ooqZ%kmoyPXE1_0*w(0s@(svo<>3AypcO{v%w2k|78a6&-`+O4`RN< z;EP!QwFV!?@;4ZKB=emHujYE~Hh3<}-)8X7S^iFgPht6c4gLzt?=kpp<_{UXfXCe< z23OZxe{b*wT<%_jSMqhS{RS`Kat|1M1?%~v!GF*8aQ71Ju3tCk$MQaGFU3dAlY=!q zMH(N;oaFWM$FZ7xsU|;JlczqT^v~3ItHx(DSN-#Cp5Ms^3Mb>!hL6%i=PVS+p3Cu3 zd^te`(&NQPaasdVP@M8nD3hBGJf?BVQ_a_j^l?P`11z^qlP9k9-(+xQ&mGK3t{NZ3 z@6+VTHpNx{A^CM0e_oR(JG;^sg0hRc$527!7k4A^%YorQFLD}ReiM8I7$4T%C-g}V zaTQMB9pc0A>CXq=lQgdO360V?m8<&A6ob=qbQI{EodW46`N!Fz^9Uj+UdHt;mDuH1 zvIA-juKK|ygL_!M$>5K1e7nJa$@TrY!RdKL3crvW*PdVT`sQwfA7J^14gNRQ|G2?Z zIDXLJr?VekHMn{%;T?lt!~XoQ!FzK7UmN@hwugR4LP7ceVqRFO=T#K%&h`v4ZI+mmnbr@7n(2Jg>$Rv7#=wkKlnd)OZJyF+FF9jt$wA@67XR~TGA zkBxueWbi+-{yPmmlI@YdGl=^k%=LZRkT2!_`DcSa#QjG-kFD&#f%P0V^@OL?WufbKj{?6d*IsUA{`*Zu! zbLAA2o%QVhLk2&A`F{KTv+-}H={{xOP?l$-btp8zyKh1HqRr*iieoN0& zQ&3#l_g918#`^zl@NLY$GWcy$tz~n%(tir`ZU+A+`{4wGr?UTt8~l2km z4gM_iVuQcH{wz0mCHrBW!7pLIMGa2ZXeeA@@Y$^YVuSyV`K1P@-^1av(hYWef)?q{bakl>pL!Q-J z-y8DzEI*X}r25rOT)+&2U%>TRX7D>$Pt4$BIew$Tr?9+Q*Qj!jalieQA^%^Ft96!= zAIALehWtGo|H$BK9#j8Zz}3U{4CAfhLH5^7gRA-UEQ7zw<*hcjI-adJ_$>D4MF#(n z``dK}f12a>7`zXc`>et9xZz(ncstkYD}%3MdwOvDD?h07?QDbZ;r3F`b1L~YY|nXy z{EJ-Pg$93|_594>YTffYgP+UsXLw8FC{uNEY~MEI)p6_J8qb1UFV1ts;A%X6tnuNH zJ(KTeib$pG+NnX|W5`z~ajlwR2(>+BB_ZnQC_wG0N-BR3A*I!kA z_cA}C$&;Pxcb?y9oa}s&<-3#P5tRS$;r`#p;6LI1c_MQvm%66<-JN<4R_S?*(W-#0x|(=!Zm>b$o?vxKVj&9mi513@BwVk zry4&II__jWHeWwh_D^H^{sv#he7wd2Jo zC;dS(7~yBkX&R;V%(cvap>dkeuf&JK{Te6vH+j7LPUAG6t9P?KZtzb@3BuDFCp~KY z^Pvke|*zRKVWm{)0>&T;uLXKi4v+Us;4j~8q5y~$ocyfbJM&9} z*R!ARHS}M^H)Qr3{1?pMGWea$+YSC#=En^F4)d;jg0I@;Kg@?3`~+^VX$Bw5e3{0{ zWuM|hp-kiCx9Kdu#o!B>Ut{o6=IZ%&)h^%hdh#AaUcH*?Y352^wabedr*_%S{(s5f z@;ybC^_ro71o!X%8a$i%HwIVpOA7l{`S~oC@6BA<`41m?4d+&dJU5>;!I0m;ewbm% ztM`j7Gx$u7tLN>NJ#(0EGUV0!%XTnVb}E0~sB!Y=t?bWT2LCzp+YJ56kH0ebD31Tx z;En9x_nDjae4=r(=Xoyo3xmt|HCfg-hW_hVe+u_I<)6PWAHZCdtA5uy%#c^_q02Mm zzvK2TGUP+Njw~_c<@mI_4Hw`+C9SSlA#9Q#5~X7+n5&`dxtNUe_F;{-*&Guhs@R7{#H~1vxj~QG& zC-c0)cknv6ojLi3>{QqJ)$dspzm4txpCP}Oxz$@%T*?2Qxx-x5>pCvChr#b)KG@** zGaqg6XPKXF@b{UoGWhj;-K5Ik>UvF+#_4$aYgrxZYK>Es)bo3H8(ck)_gjOj=j9F> zTs?pFH-oF^qrNnFgdB_D<>z#iKQ}Q~zh_bWcIG1ud3Bv)mcid+`Gp4mnt7$cTX>#{ z8T@C=uQ2#C%x^UKo6H|FxH_MI%HaL^eB`eNpUwQ=24BJ4;`4arpBCob41Oc?EQ8<2 zJlEh)F`sAfSDBw>@GqE`8C;#8Uuf`b?$19l_-V{&^=r^d-n^<2mM1|P)wk1$u`R6UP$)ZnM4KpBF%9;4(}F+Y*76DVHI z{1k(4V7}1cw{!chGWes+&tp!0pmr=GV-RlCIMsJ9*K3!-Ph)<+!Ovm-YlExj0Dj9{ z)l1#SQvb1C@hrCUupz&I`B$2LvVRB}k1&EC5K`@1!}g3e_<78y8T=CFry5*6e^9_& z*{Sa9on!FfydGO`@WsrV4gLz3`!nWb|8RWNdDCqg&jMG^H{5CPpR=C(4E>)lf6U_iXoF8Ylhvtp99-tLLeT4gEi1{p$_>D)T0Tr||js&kf#>`9m6~ zCjS#Y6rRvH`9Fu{-_SV8zfHmj|JFFk&tQ4{vsDq4f6iupg2wf7voub6>R5h;#!3F5 zRBJ8JILTkg@@ou!8(&A-Wbm(;?=ZN!u6mQfr?8(NGWa~^PZ@j}^EV70Vg8=M)pga+ zn5%xSjJL5H(HCg)q-Qtlx!RDwk>z)4ochV#+#hxu{0`=~YnsYd(`0S`H+kdgb4s$e$&%TMIQ#_V;8xOAOwH`D%kNVP0nN)0kIjocu=bucput5*v5CU(NCx z41PKDEzDKD=zZN3T0>&v`bRwgwag_KOW zRdznW@&lQx{;#fcW*YK)Sbnm>={?dEW*ht;%!@Tn_M9T5@$N*8lgmC}`6lMdo|F`s z;W9%$A2Rf)dE-M(p8C~WEdPZe zuYS+ab%?Bos_#mc@1t?D=OFVF4E_h^Im~Uydhnt5%u`ry@F$s9GgsxR-)UTKaP_?J zFAZK#jfwCZgL^!ZKW*?T_WwbHEBUt!{yNV~9~fNe`P$%0-ak~9uj+LVw{K5_|Is7m zLI&T(<%SKeo*Q1mT=`jQ!MebZpTzoi8vIGtf0x14b7c=3T z{8Hv07+mT3p1G=*x*srvIv)c0lXk!2{&teV)pNIF46fc=I^N)?u>E-kSHItxY4F7? zUuf_;<_iq2u5YYluIg3H*OALK`C+Kn?f6iLX`FUbXQFB&I#bv^xU=F~1^|C9Jo_^-xk_YZ9UCk9u~6@STG+5ZIl zr#~r0Q2cqebGpF~v-}+9%AUW=?ABQtr=ryFwpJSa1GaOup??6EyTRbi^%2(Kwa+ zKFb$soR-pc_)u7`agqUoBb4E{M^Um8l4*UG&*UB>1A7mDjwJYvYtVfnTs{4Rq(&-Y)R zGWcE0|6%Z%K536yzf(2%QiVtu%EvwBA9X#pNaMQv`5LF9e!=>m(YP-EhQ>*L7SChq zcXq1WTIK=Pr?|S_o@MauEFU)bU>YP6_j7-`#^4_@f5_nKeBmX7tM&X*gFnR=KK$ICWDhlAknL30M@^ocL_SaBWTMi4 zmccjjM5ul@sr+y~bM^Zpv)n5*J-VH@Xq?Jb>!=qDuGS}?8CEJ_#}fr z%<-uP-^cM827iy^VS^vxxaud${!f`NHsrtMxVrA8T^AdyiVqR`=_5O>s z23NmZQR_-ouKGXPF++X^>)&kf+03^ZT)h{g+2G4qzSZF8GQYy$bQigkD06M{mP!NnZIestM_jF-QendKL0Yf{QsDi)o$=inj{cZf2ZOY30`chm(+E< zoA|(>XK>Yj)cZh`ygKi@O_R@r9yjDPY+4sBS!3nU|6LQ?O0`!XsV>QhMm9#R zoU)Q=iIuaap~1?jucZiy=jPy_(z!x8v6||twUO#g%%ohRJpMIZT)rV%QXh@gF)E9! z`M)~5g4HIXDEd~?g^GxXAYwLR(OTllA_lUNW+g6k;VMnTGzODNNmCKT8g%2%jUOO> zfG8rm5Pv`l`GjuV*Oe9&J!jrM>GbAxu!vg1#`2wVJq)s2W`W=GaK0J=9wl(`ci3b7UTAy-_LUFZax@gi_5p} zUO|rS2R82Hn~VI1hS_kWea!AR*M_ZrHm&A=D-|Gls@i2_I#1m+y$>XZKF=DTg~G2k zbs0=H?8fui-Zwc9J9*~JuXQEYE415bVqUEG3^z5H!q{?Kz<_fehWGi3UvpfA!a23x zkzM>pctV$&_$6<`N8Q)&wEeKk`$xG6CtDp#s($)GyJ~@~A32o2>UR$|&gs$&72}`4 zS8n7gw>uc5_^WSY)Q$njPj1iOf{pyXe!Is1)b2wFDVp%A1J_H`ef`!i#rW+groBI& z>+q!VKk*?#biHN%d_`FNs^1IPluJa!zIHjvYZuGb+1TfBr}*bSM%<$tQIemf@cge} zOYx6v!CTV>IZiVZ%k@_Z|K1kH$3%Dt{tfJ@{Kr2c;I;8Hf7V{pseWHzOYwhgM*Qt4 zroE5-1W$^;@-sqK3`zcz*gXFPHa{mJ$5+^gaNRlGFnmKyihpeUTDOw_6gJQQ9X3BF zOrg3_N4uV%hl%`EY~?n;5l4FeR6gY@`5TTDe*1Am zEVv7caFR!%r0{!B3@>7n!b$Qy7U|{C3tQ#UzV2iBy_t^~T$*9t@RfaNp{af{*Nore z8-|~_8;i#;0iQa4@BT!Fx=qaEcMhBI`uuQzJU5YNp0N*M$*!Lj=ovPT=i_FVA}shj c*O!F|znqhN<;FFi3n|>Ye`D0L1Gr)M2P;<@2mk;8 diff --git a/tests/binaries/coreutils/true.o b/tests/binaries/coreutils/true.o deleted file mode 100755 index 2b480145a9adc7a0c8bb128cdfffbaba24c9f8a0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 21144 zcmbtc3wT_`b)LJscO^^qO1AuvV}q|9KZK1|Uf~zU2Fov2M#ctg5D>Fo?OsV6R=Z;N zu8nbv9gGRWaRMm`kGO%akV0r0@-=N!2n}u_I6@~!oG)rQjSA6vQBB?;#SP+2afax+Jb8Qy z@?E>TcJ&-z1abFe$sTFXNsc_zGxBEQq%40DbrZjl za&qJg$)hKO*^h@MS?Xg$O-G*x@04ju=^uHiXXKYk{m3({bo;rla9cREJxyC)WCx{& z#3?rTO!62-Ih$OjV%~K0Iha23#^E05eO>CkI&pGO*Sos*bY1fr75<-_wRN0k1&N;H z?NFLLCQsuu5J4IFnRNHHxBhr)R0Oyg(pMt}tW(8Djjh-INL3}!-!yNt5Wi|V^S`@x znbF)m@`uDJYI%Lnu|?Hp%J!3b*=0ZA=$f^3AkAJL`DZ4wCXP7AUwJk1BWjlvWhpbs z0i|eMQgwvMQfox9$yXnE>(r@{pG!tis`$do74{V~=^$4u2ywLt{BmGInPSPW1i5@! zY_H^lTze*+&zt4t!E|TmigIO0K=MG%1v$Sgvny9|!8vO*Wo4ohSi_>SS1jan1>YO= z^TTVsb&Ja9H;4-_-tE;a`h}F(S|NMcVx}_W7Xs-esFJ*>+|VF8D&b}7s7%s2v=-9u1e|(@&i5E))9pz$wupc_A zE_8@X{o!IM@Y00?UQkLG%6a8OUuB@|1x0V2)?*Y7mx}N9Gl5hY`01ezYM3aNy!5_w zE}!np`=0bSf56+9ORuG1_7}Y+ZB?6Rd1&7fs)MwXK#FzBVdG6k?wrutc*tY&lQ^}>Kx zu4FQPxg3}FJegGVlU$F41Fy#vKc$tzQr<-H-YG??B;E(SD4_7|#piv85Kv%UR;xy+zfDOYGD z9w6t3se}EjUv3Bn{VJF8nNqHgqBZE3{J7`s%=_uG@0I+1zl4sf8C+5xJ-!;qTQBPe z)LCUO-A9d~hWlP|7*nK7Ucn{?MLEuWgr;Di^U|69jG(W??Cuio=i@|e72CY6dUi7)l=)se3& z#@g|df8mws@yGnr@Qm}(o3O6LL z&1Xd1Tp^$;GAFgTcTdX^LCN<>IeHv5RK*zNGwCOuize#BAtC6W5a-nO;Uwi%lWrxk zUdpSb+$`laQf`&Qa(@0%cZ!rMX+IEr;OZnoaT_oQm3l@W zmo%-S^Q}_8a>}0&=XNPyJqteGE#-I3-bUy9rMyS_@UWDxnM4;c@hK^%8kUm$4^rMM z{W&S+zWN<>ep+=yUES<^h&7LXBDyTrB+s*`JPNoOJpym0qW1}GB3W_Ht4do)lEjoI zwutDR#GVBpihi7xqr)_4sJ}f1nMZ}&90AC~%8TBK3g}_Uo#af11}QgqQf>u(O4oA) zN1!JHLhaBZ=7Z3DW^^{rjaP;G==2+KK12s0hx_D9V=yt9c2lw@qnAr`iAGhCwAZj` zjYbtWcHd;^?bWDq0MS|Fmq}b3n7yxJZEx+?I2s{ojo;B0UlBgtqW%2X5)~7z@scD`>7xM{aeaNl;Mh zy)eLOvKA09`lk{iavgQ4Z3s!qiB z#VTn6O(40{EOKdLbDtr#nd6WGZ+36_QOnny+anW6LsEwN1fWZ_eH)uRkcf&iU9CE^qRBZ|87GPa# zL#ElOgc`m?ir#^o2V99OA=Zo7gH$GWB$d#nIiy0$heAy#mh$1yY)|9wGw^$qESjMm zHRU276)`vx1$Y)rh6-}A2%}YUi3=4xtT!!U8OF3uH^4DU&WW9LeLwqaR207BUvHf9 zyuq3BBQx_$GxJ9y(~h{!95XR)4b7Tljp}OWVrKk;9MrR;7IjRL8$~Vl<{TQs8prCr zp+j$LHASV`DjDKAS#6DJu2wvbofDxi*>=>{oMH+kpVfA1iy;DC8{b&yUQ(nn2kg|61F=%$mqP&784-x!WzZzUS%*8{9mG@9LU=YrX!qY)~W%) zxgyaLn)R8DvuK8|kVc&ITo|E^!c6341!N~D1uW8@X+^D0Y_YW6)I!vCw3ldhoNnpV z)cI7Hj0V|3l*%vR&D11(=SyAZ<=6yKnY zi>vmKay-*zRHcZR>+FuqeawkG;OxFnqrxcnoLv#`h~r!qIpQ1zZP$H~qt0UlNVdV8 zMVe;4>^PU(1+KF*;!bjQ5l$VaQe8uJ0Z?WQMIqvcqQrL`wc#?#jyOg|a_KvcvnTR= z=+UqVe=mGz#K;R=!VDc>4N+^J58V?P+lCor`dQ}<$Jt4bw;i+6dP8C4=FpQNBd;4} z@^zz0-3z2H@`Cdst-a$hb#qDUEs$>s-4UuX4Yy-d7E4ffyy5%;s@9P*b#bmnRjSWc zBde@ERy8_Wc!08cP|(&?rHE*W%=F0V*PX~uo!>gdsFpNFVl&9e4}>Bg4BZ)ud?a*# z$Sj^7X?2s&J9Py4WXq@%XD`xDB-f>y3uefw8L?yMW?z` zE^_BayWIuRUU%+IMBeT;MIE zAnBHcy;J}*C+KtrRSrjAaiese+3U8{PeaM%n_5`QcMnp1C;Uj{6H3dst6Ji$rf_MSTNe#a z52#^*TL+(_UptL9k?E%J2O?ygTza$W615RXH2m#@kM~Bxcu-~Z<=-80WE3wVe5%{f z;X04G4eMQ}-3?#lHU!icUlvp={P%}$A}!PvUlc}Hgc0!19%2KZr>i{~2ov(SB0p6n z2PlY!pFHHaA!=2)KJJD{(YolBl&5a&bwh-Hw+gCpZ~+vCyI9+LZJD}HYTM{sNssLu z2dy$2wOX}_#+7VaczQ2+-Vz>M=hn4Rw_ZmFaPD$}eQ;r2`(;<7s0#cY~h_M4Fg6 z(n%zG=zc9BRWk(bFXaM1H5`;gRaIZ5Kh;N1ibXjn6*5D^R5DBs6$eCWC|$aio;6El zB|n{&7E}EtpPn$6Q&drVE4Fs`Y!Ue)JzJLt_><41hUg(XHGmYr6;+NR)m)LvR7$B# zF<%)fh)O9hjZ)JE#YD?04D`r&aZ3mCTLS)wU|Ti3&nQ4BPkY0t`u@Xdz${W2e~0%73S27r}qAI`9L8vSSl8Z zm2!Kfu%AX&dw@4IWg^nslFYU3)b#XFfmYN!#w6vpnV6&S>jaHe4L9H<4fKpm_CPYtLH zSBEo3vpIC=(+ zHwo2<=+EW-0x717qT{lz?w(6KXll`W z$8znJoG6zv9e8sY&%7;1y&23EGWkl@@1T*ATD78`UYS*{Z>RTt9ewn6iC-S(`Z@+O znX!~aqJyiShOUm_z%Wg1`8rb9ig)C5eS&>0A1DX@P<#+=&J{aJ&;>y@>-QrM4U$l* zWP%hXHs$yvYf+Y0O_H!EVOf+lvSf(_I?^1@*Ldx;x=I3GdxC&BrKlo1mO7P0ap9&- zYrVGJeU(B`;R)BCsK{*M#?H?8@)c(>tad!jyy>Aiiv8qC?1J<$an71+3O5BaH`Ym)nCv{|{79n27d26iseWC5K)?32Km`Bf>2)Y?KCAp8?9&5fO zl#I0=32%;hp@D{2>!w(9SFFAZ+9poe&qc(Wr^aK1)z)xKQMk549aR>tZS$)*cHkjH zkA7+fLb&#*p~_b{J=GZ}h1DCJF(u*J6QWUNVSyeTo5Jc1%b0?&dR{#aE7J8u3l^P>%Xd3Q;cCVQ3=E=tIZAQ9&cZjzygSCzB;yM$KHk1z>t21d#^skX zzM1p-bOqxVYk<%1V*H?m_sM+qW~^FD(~XiVK3GMRP>?5A+;8Cl;}2T+4UEe>6{GAB zCvH(i;^? z3;!hZZ?*8hmAFf9D@Uit8Gm6kEKV~1LkoX~@t<1wS1CWk05{ zsGZ~4eQN@K;{^P0MAc=2NU4>YCFybD4wD3Is&?!4#$^^c+aMDagfqEkP=c%Bp|QAVI>Z$a9EAQ z8XOXx@~A3ERzlJelA;PFL$PJ;gf!GC)pttuos!rowRB1?ol;AuHZW9>x8Y|GSr)tLJX`$p@+o*f&zdQv;KZoO>FuGFrsjXhgZY9FCDhDFMgYr}3=-DFMf|MB{3`RX9EK ztm0~2RrquRKTI+b^x*2I^}G)tCEzpZr}4W1QUXqoovZji0i+b6AKIe%-vLMod^||k z_$vS@fsZ|m#@_%)34D4OUB!O~kP>jb5Y&9Sg_j9>aLv{DR0EG2_#(!k2cQ3F{!)XF zR~j1MVDRS}_!fh2`hS&yoBm`CJ^12C>%Z2(@dc2^_Zj#+1HZ}8Z`yrg0{kgMj~UOe z8@L(I7Yse7|F0Uj8PB&2J!U)|1eg-~#f;}<#&I&oe~W=Hr!pOf`3CM8IKCP}vd2%t zz!Oxi^=vfsnElvo@XdJcHTb5VzQH%+lQ;OI`qAKb8veZB;LkVkj~e(21AoBKWBRGS za#C?H{dwBZv%t{vl?n8G)8N0;;J;+>P5rMLe6zps{R$FJ3+boh|9eA^>3@`Oq|lFM ze@$Z?)lB_!41AHH-!t@>`j;8FseiShXR)E@e1mW5*=F#~@vzI_oAKFe;P`G`$Kf-^ zJTm!M^O4YAbA85IfrR+r9zp9tY>~h>*AvW5B=F673LlWbUqU~vXFWhl;IE;d#UKjSw4 zR)deWX#NKb+#Emm7&zLX`S%;RxgI`b;AX#nf^qnBKK-~cyXOCa^?cgmU{dVX)=`aZjk^=Z4WaK6RDzsh>%S@<=KFSGCq*&gn9khK0!sjSfP)A(lAv%}&) z&-m3AKEgQe*O0Uxj8UYrg*S8lkcIyZ>p5oOk8)m*U#0`0?^*b-IR9T3eq5;+x<8>d${0>_xSw?#`q}Ox1IJU` zX0CIVh3k18H*jF*vYs^t4n50R&pHdo-U6wMaqZ`P1&fO<9D8x3K?6tAr%F_al7XYW zU5p<$aPXgI{4N6rUtbp=wea1{f5O5C8GqKmq5lQOUovp$Kgjr71`hrY8IQV3&~eb~ z^Be;QU#B(;*VmDi7XDMNu-U-jkG|gZGOovij&sW3V+bDRak$Uo(`PX<9X4?E`&9}S zH(R*+mP!cqAAi(GEKvP7tpCFXA3p76Jr5c<^p_cb*uwRG^sgC*dr;Hy@|2yN) z8+u@OnDxJE;IKQw_!}1fUdG?F^uNOT>kxEG@CW^<_a8G29Mns=ljkuGU+_CjKcsd8 zhd&QUl_-`6GsQM$d*DYM{uhf6|QgMc!B#+OQI?7Peh@7XB?NL;9G7&w^8wK5gNe|2YfS z*R8KxxYqN13)lP~TlhoDtoW6M|BUfd7LMosNQ>*$S+{o*XA9rU_!lhwI?gW{I6|zi7jGIk{CSb})WH}fWKI5D0|);K<}YF# zzT>x;en=|}9O4I=zsACEV|+d1$U;BfKOyb4@Ei&$-E83_%s+1Ehd)~+n?C0^aEOmH z|9%VqTgE@eII=LQ?;oD9aQ%M#%NG85w)+DMe~t0C3>1EXIy_~0X=3ME@3{*V}1Ss z3MuWL0N49a=;2F~KOaD^3`=>Hh-85eKwoA?FucxPBhJ)WW+sub*#gJz2)} zeTK&Med{Vq&);)?t%X0u`OOyoCC+zS_`h=gVhjHs=P$GHA8@|c!gW9HvG8AVzR$w- zbE*LgugAcklvgKt%|x7=7{AWKXEDCd!sj!tuNyj^XET1-;;&@h`*~MxDt7%MZol-1Lg5?G5s|f z5iiiU!EyQulD-Y5?_4>Lzb1o^N&Hf9fQ|Ws^pP{ZVE_Lok5t%w2(24%prr4ARIawJ z>iirMBJ|s!0X{b`Rl;)aRPbPjx3BVB1u(Ea0XMH1z#p^$fRw;B)7g}PPMdzZ^>Mw2 zPQAX7D3h+Q*8`1f`}(|r3dXB{KY~K(LUR&OUbkP@$9ovaqsBhvf5Cu$?n97F&065| z4myt){|(C(;YBut_~ZJh?d#{7Sm(4as)jm#9ArvY@%~BW#&Y|pU_ARC2Xy%~RTK6n z(a*Mz=R)Jz54Wg#`Z-{uj9d{Kvl1_WvV< z**a14&RIB)ofkIu!^9cSe(P3QT_n{>eoGT0*|z^EVYW_G`8L~s2pJ>U+()QvJo|gu z{z#mSR#6er+PBrV)T(d2D|kh1)vA^M@0odKcXmi@|DXSVH0R8G z=b2}odFFP`**(kF%IbL@+qP7&t=U#GrKn}q-I|P-iD;QM+B(JhIB?46p)Qw*U3}oN zy)wNuXvN2D+nQ^|M~1p)3GvvFP>&D`b#KfMbqk0B9DC=z!02rxw>;GSuVta`k3(JW zriXgIl^)u8A~rMB{kNm9oj7q~$AS3hQ1=HX{)ouXP)}=CXy<$JzlORFrmtM}SW{qh zg=JCVerf$huI^BuX8n zL#X@xRiW-Dj!_)Sr98E-viLx#3r!5{cpq8i%gbw*!{jfd$)Y^$3hekR>FAkXRJ~_S zQE2CZ_^4xdfp9yk_gskfm7#qH0y~}{$(i}_w?kc9@}c(kNLTL>n%)`C?Rugt9~4HZ z3Suim-AAjt-!A^7_(Z5D9X9o}=1arb(bJ!cAFk^0jt%u>iK@CT3ffiO-m$_j-Oq)3 zR_2G4+MO@N-wiz>I*6(%7d|AfRdgR%xvKp9a&jm9i=_0c>_JmP_#ggR2{~128z~HR zugfRDb&sOdJ9j95!guKLho_MUx?I>_)qM~SjP*x{aT;xaDb?LCL+4{!?=|f$KezlG z?t!j%b1+&0JO0Z9@Aa(7g5Ij`PiuC*9@z0RMnq`mCxIOskXO_F#yb;K{Z&1+W3#FP zq1v(Nif3bG+cxJ|)q%>ls{)npR(1cWs%OerQE)aX?LHyw>3$5oc?cHez#{3K@(aqt z!Y?F~kD*%CeQ4(kf!(W6aaDH(s_2PJ3npud%DWFz_XmNhdMe3`%JlL_z8qcN^|T#A zsr0Jphhi6my1qF!9iw7DHKOPIvFYywljHZ$+#DMnnN>agk-IeJz-G4uJ?N=vG$njrczYI{m zyE5lkmxOXYl5^9K-2@cs{`BbG|DrQI*?sWX`Cw#VEI-s!o?Zo7-Q5gZAWszud*0bg z(o|CcY3M0O$x4i~=B#&)lz;kSw%w>Kjf+s+9TFEIV(B)@~_XnpeTMKBcaoXM}pr5|v}X4xlNdt&?+u_QP4w zCXMS^UKHxi33V?)lPZf?G%(sKKZlz|ldO8rI25q3+I1b=))?yXj>{)=&;=Vqd&Jri z>aHFOMXzxoN|tHyC7~xO#$HG|D6&>WuplK0qi?i$mKM*^;z2E*Pqj~@Lx>J_p`K_~ zsOvH844=gMS9iaqTK`sc&$@KE#H$6rh8F3+zy={xE%C#cA?Up!(zHX>-5(Yo5cv;N z`-(piaqJ3Mw_~{vI6_!#AY4&k=kp}TyNT2(^>@Eg-TjeN-+hRc)=Ync+rqA`4phF( zV@DWUELWUR_aPd%8yiF4kUkIWe2%K_dUsnj>3v)1U0E#G-0};=o+YdOzi-yOUYZpv z=KY8_$X*&qPU(JMRC?@7%%)Ul_v!=I$%cxtb?hq?6+q5=+HcEig|6k@|Dr9TxVAkcUJkc0bBq=4}MqWJ-U$YIMfYAJXri=Ln(+TY z=;;10PnYj~7(gt~* zRV`1jv`1_Jp*a`Jj(SctB};<&mwJD&&YGc`S1(;*grrEJG1 zv9wUP&{Ne@hSg0O5Z{TR5wBs-iu%c_pTR0x$7okEe5!eo7qp(DV?P(I5_Y|Fw^4vs z9CjzJU@!*ylartu%0CoWnl!5_)jB9#_0`e&wC%DJ<8L3k3w5M+sL(*0@;dZIMfay& zpW0=C`=nx0Zdn=UHpkWm+uDQks;Vnb54Lv(H>{1ciBzyT8k}@`urpHM7>vg1+ZyXT z8-vYl9r0K}h82x<2FH&NM#W*$Y)I_uk_ zE%mYH_O{^a_?l=i)*dWXdbG@r&i0EU4KblI7O8J7oSk7=Xn6hl`sSAU)h&@=OM63o zOUtI<`sVr>XmL|}a6*2f&WXWs(Q(lUC_|yPb5n4_I5=w3+DJ>sgkTdCwZc46tg}^E z19w@=qxEYdGf*_Ra`BSds>O>|1y_>GS7n^r*&K_&)|jZWy|XdW8EFi*G)H5>hW557 z&XKlQa07KyY;7diQQsMBu5Uq4L9n@P4Js17MU@}~MUd9Wcre)59PMbShlAFlN6AdM zt1%ea*c{79$ghudM#*s$+T$^Fa!?_10JlUdC~C8;aZ&ORiNn}feREqBGQsx7#$a2# zb#VxQ_tXx$lVClFhM#ua`%h5a@b5^7+Y|V?KzQ*>3cq=+b4mpSl;S8(O3iiveS}=|BW(A9S zbrFVGd&dkkU!PXiB&#qU?JN|-uMn1EsEc^Ss;Tc>7hD*LVJtL9t;j|U=U{tB1S7r? zV+wsC_iJ^bNcZwRvvE5w*Gs+@@j*@pYAaG_eT}0XAGiOwb(a^I7va`UE{XCQZ3*-8 z|CSeSV&z=I+eN5Bh<4+?`e1P4qg|idTL<$lG5u)F8|o>2Oxn@&&Bx@eXX>)0R?y-T zxTugj5nl{aWuj;_Qs3FIHjJs$$|EK>*Rov8PN#u6nGU1q&|Byyh5C7DSF`$gr9v8?rt0c__NYV`V$xNbbBzB97VVD z{U-Wy;UGHdWO|zKbWqtiD~Ix)%P6K>c2QZzt za%9eQkqFAf43Wr}iJ2l%Bon0~F-<0BiA0%9l!-)0Cdx%(iA>B9i8`6682Ve-d7(_q z8~g_(*2+XkSluBLRU#3Si3ORf(S(gMQ8TC*iET2mC@>F+?J}`A{m;pn z^sk`cpd1*PX}Q!f(;;hRe8YbVo!vvocL@)o0Yp}1(})42%S0*jb|Ut7#Dt(9S9U@$ zTMmo|Gk3B_*KdHfS?#eGpL?4FO8qKCImD=^ZA`-BGrrwHG2 zVzd}5>9R;5Z{+idB6h)K$d8W38?2(NA5c+I+%6t+CnD)m@icoXWsSxaigjjyrV&d` z6GhTxk!iz7C`%@$iy@RF6Eo7N!*gX~rZ6lh6Qx2y{^(eHhc!!7S!B6nkvjl~el~gq z1?f;egtYgA;W7wV(HorK8(a{ep_VKzR-hw>ARl(i4vFN&^8DJrv^u*lk!Qi@&UtP*+GQ{HHDxlnr$ zHD=+H4TPKy&w!t*lCrb<|3bF^Nx~#5O0p9s3k#1?R}-!MQj|bAE>D)d zKhn>#hEgiqlc`HE%b^}pfiL1Mi`+`1N(6FSBpr3w%k494yEZwok}}jgmq{7VHzC=p z5OwVL6GB#^wx8;?(P(;?h1QcMPZY3Eq#wOI#z)duQoLY!nYD7_r zeNb*sO$yRfI9n4W>7{5B)<+H-21zy8M9T=-_t@B)WO!CAVqp7c;Sx~z_#SyNq9iig z*IEB%i$zkQ2^9H-Eth15nHO2VG{`#Z-c(Xfvi5y;7OfP{Rkv&vihh-rTc~c1mX^U0jW-soHPBo;+a{4rLsv&D3fV`!Im&SF+`7>aIjHsOKkY61qVr z^?aEUOxi+on6#g%nX;Zu>4tb_hxLX%igr*H&~O=Or?7$)e+z;Mi^%3*s*2#1gw2V9 zw74h68#O>R&on-%)Q3^|l~S6-wDO;dOK$RJpA(aIml;B+)-FkwJp{az%j&)R7_LAz zN%5pT!^0S3DdU91u9ITu$V7gkk+i+0_~fvxOU%!NPZAR3h7UD~WYxXQ-~f!FCSQVM zZOYIjs|rPKt!Ha5R#A6bgZAM-lSW)Vy4FCN%@e63?H}6qW+cXNBA2dIRAQWXVm6mH zIEr~F&vHq81c~ppDMy6}N9_Fr{k&A{wMU8~oFkTxy>`BQ4kuy49ali>2l%7*VRlw1 zwGNa~%P~YN6YMr@4#I?r6ca+cZrS_aLa9^NSrzsO-GF(d0ONa!eF_Pv5TwY%0GYAY z4r`^Iua`+o*TF1)3kgQ82D@0FBgx@S3$7a8)b(eJSwEjk%WHHbL|vV!bpgAiR5UFw zrD@^@0{Qm-5m-w?>nuCZ9!_@J%cc166mfC&FT`o-sY1-MhucM5;53oWWN%?)P#VGB zPiy3<7g?G1Xx#_!WTsuH6F6~zEv|WGNo|{=tB%B6&%~S{XOvmiH%M}mt|W~+-`@Y> zK+8H^I+{RPc9LTT(U_|Hamp!Mav|r?n*~1w^eaDdW%|v$h0NB^Mr<-RR-ojhObk?N-?jLJj|SydZN}4rbx$vxFuAH7nB^NP|QS zqBVNoiDyCRHhVu^$A}TLW?0IIS!Z38GGY=gp}VBjC`3J(J}o(D>7I%h?TQO%MA$Wn zsd9|c2=@M6SP;aRtr3^T5?fZmRpLfNC2?Mo@pn`*;3pa%aI=<3IEk*jY5OdOCuqyJ z3f604LgTWu$=T4gL*t3!bWIPlskpdeNNz^7)trxVl>4<8i?mt9q#(6E;VDvZZLbQF zm#2BKDW$;w^jg5!+~}U+O(9r&(p63X9{#r`lY$9C@MHx`{!;~OlL`{<{1w_W{Ay$* zXB+RCo~Xx3L$25+kr+e6Z6WnfmM8AXcpPO4DHRmMP(-IvG~F6_3-X3hUfeTx7*vS( zR*!ftA>!LSxg!<7T;tctxHX8hQ%Nx^eAYlR#3d*ebq{@^MurJ|w)fL0O6i%k0DU>O zT9qfqT1Avgh2X04$t@|4J0GlK37WwcaE71K0PVKWi-q#bKYl#x-nQ*Rc4;mZO_y4*0*t3)HR^N=otrGpceqS~aTLlPL;CqNIGKh!1VhK0jKjd>nvHlAB$+m1go zQ#dFuor>j330r#119OH~S=;Pva_@)&NK2J@HdQ~+9+Xy=vsu(Pa!RtbqrCR)ytK?b zZ&kMRJ!w8A8wODuN25=K?-HF7%(RyeBbmHRn{-lijIcjbS$ZmxCpmnqY@;KM#fmt} zF3w(R-#;gF`LMb?&kFb4Jco3RKT|k#f@+)IY54@JvZv%yTPKPZQl->Dn1#Zpr7*q8 z-%$R@6ymA=I9>T)@9{~h6*??PvD#jdd9J7zx3%PL&&<4kc-81F;-1cH2&~$;Xr$wKReSIJ!16oVFT?f4Adz+qA_u&Vm@GGoiPOMrPiJ~#F~IU znkFU(?&YQ@$26WQcrgHGXJ%r^C;N3~>gc=F<^fn*V42g(vSy`18V<7)<;9>*ls_w# zr+T+6(J2`4D5AH!Ty!&!9O~6MXrMKhS}5mJ1bgT?ss}Q9NkJ|S6 z-lO(zkM}lv`OV(lp1ZvOcY6BvZ*XC$++(z?6%hAc@QiJ*g33ER z_A2=S7TZsECYtaCLU=u7*KfC>bGyw2yHL>E<=Nu_yux#}hvcsI2zA>2b%&e2-bxRS zEt)7Tq)IgH!%%o;Ee^Zv+e!Pqq@A{*#0D6%!&F8u)F1xs9}!*?S^7cK-5-6`f116_ zJ8cGJYj5_>Sb)TWYMH2Bjl}9k)Y(X?YLn(A)oIE)QD^5tbiDVV{e>;+_I_dS@Br`d zT;l=1#&aX3ZuIbnhoNN8j)B&*Ua{Dqbz-8X6yvV%@nvr_aebGhgMfWJx1F55^fCrJ%OJiK! zfg9t!1U*tR)jr!hbqQjtzehdvGy7>8oKM@LqyN`)zk}58oR=Ns{oVPV*SYHct={i> zzwZV9zV{xPzQ_9@r60sB^&#JPYL<7KdoxY()S$I-Fsd!D#$n0DD0%T+G|TUD9;Vv< z=)6Re{YLje*S>%iXeCEMWYkR_VaVg2XB>*8RHMoIVYR;ilec6E4y)0MRcOUF7pI5Z z|HVlwm{M%H*S`ckNF~le3AE)LSwb$8TCtR$!epI2t@^WH(=4y>gT-0l5{z&-BoX|_5{2{k-RAj*kE8?DJ}Ai*A559Z%ER^StLeFMC4E z8UhRdV!unvtBwD(oLQPetY!~;w6th|(Fhls+p4iFYwH~s)-Pq>5dp*~Ake}cI@8D`Zo$VbOgiGGGz3*XR*K;zx z{vmL|l^*YRJo`M}8$7q9C>rd|In_IMymwLw+W%on$$)oIuC6KFn>k2NpW;1brgxkD zvy?(b-hD)Hc_YK4If>|T2;$O>TKPZ7#3=m2KY&iWA|f(6A*{;lXOBJF6F7y47{AGb zaJ)E(LF^?FkrX1rZ6ZS)MAr+}+u=XR6(YvLb!~hPkLso1T<@`cw(Iy7y8Xqu%e8&k zzC|Kl?fP&YVtKrF%uVyHbu*Cc=eyM%igTLpZg+qX+dxIYosFfgAH?=KZ(ARUtY5pC zIQter`h2%vwkXhlJ5tr6x{Nvz4L~Mi0aom~?e0Kl17c3Ux}cj&6+0IveB4qz=5tO&vlNto|x;@x%OGEXO!!ddWCg6FF7KtTS!Jf zX2C$`H(N_x`%YN%J*sK5?Pe`;Gh(p*yY4BF&GhYX2ib1GDM=sX4)oaz+(ABP(E>N{ z9Ykz5+jpMu$q1h_G<~l-0ceD;%MIduiqC0@xg*Z=&35ze2d!S|jwKv(NBdT~#fXlE z?@4mpEcf&(q*l0NB+YhDar!}1wVUrNrJ@PNrwnjM`J9Z8n&68p`>yTOj=9^V^PO3- z?R(vRRjxfN*yIlLIkB6B`eCRBVi~qO(pg`M4EWSJ`mLK>XE2(ajIL^@HxlP0okIf_o5R56r=HSl^8l{zMDm9+xg5|0N-c& zoPAsCT#T6Qh@T}49N^n2yq^Jw4ny793*0f#;_Rivc6St=N+I3l4)Nu>gMH~k5%If& z&qwL=+yW}$OMg`Kb2b_}1Yoewi7#;dGIs=-wAUR*r&4!3soU%3(P=vj>EaPkWGdLa zz|C~B>f9{o^VhjWRD8R8s?;J zF^OdQ7O@+fMcV_;?OPZ4oC!yy0%t|3JKULoosOZb%{a)eGbMi8dpl0ZF{p> z)sv9omP=QV2WUJy%l3-V<2WnRk6`(RXPwUUBXstq7tkpt#u=<0hZVs&W_j{yv7nJ0 zaQpqHwAA&1FU87(vAQ{irqDQE0SD3fW~8%Se-)y$IBTKsn_XQO#6^wsqGy3S*H`4) zo$lQ9!EUaTiKSq!6ECIVp5ZyoMolAah&WLjOPb^NEJnXzp&CFfsKTtTb4SwLs1fQj zYFytRA$Ju`P|O;y;~d>m=k++(deaNM4vco*+ydPqvkn=LH zW({)sZ_j2eN4B86$N7o(E~({D2`vSzt@VZtP| zk%-Uv)0PM7#I~SsBNwPmkv0-9`t%$(W4-H(qCXb8SVFx%d#_NKOJ%*zn%9v+j|@{C z0#{NmIGZqZoQq>LP^42vJ%9|q)399@7?Dx{?OSV~#|R_<)fC$jBo8V?1C>=4C<(hOPP4y2QC z?$y2r_hWrTt2(wr!pXghSN8LGMm$Lh+{`P*0N;Ry4iQTYmi{#&2hGoFN|K+~pKDxlTK584U2(2VGnU zWTub7?lEdQOsQFcYO~!y)E%_Z9lXcQtpX%QOWOvqZ9gSe*O9b3tw=1_wCB>g8AKNc ze7k5{M;={%WI6-jPFm}-unG8_W{fvygxI^ttO0e@s0ZNaF85#5Dj$62*^YxZJqSXP zI*}UW4iQa)uZQ_wcQcP*ox(*$ojBrRsnE@w>01F&dx$%LPFOeT^lR5kCm)t5>I^!P zLxy+)xCl+Xe!CiC)SCbe0!-uKI-!e zg#Np5^wPAdg(q%u(~h{=7;;!M(BM)ZK2t??^U5pEsajSUURHVb^2$ZERpr%|e0wH* zalAc-SEa(y*rt|<6>eCI_mnL0R?_NtQ&XgqUPEfYH+yQUYATm4shk@QooA(%i8gPJ zgz>skBo@Z&V{1C=Tf=SjtTZt-)(SIK=VR*P1rG1V-#^P;}S!*I~c(<(qNqWg=*2ZaPOgdvq zaMBv_|KgJ1B>HP=YoF9C-_@GbR3F{c*08p-y{$bSofL1|(A?HIDMs(|;my1zIIdyc zBs7ZbXz!%2fRLM2Mng+|bgjy!ci<*9H8g2yE7IB=gZCSo+rn+oVTCs|H%7vZ^|AUy zM^Zb(4e?HNL`%H2&1!5|LoaKgYZ?p}5o~O4r4dM@Ky{oL1Q95~_@d!}LAuUrX$ZGQ zqV(oq)C#w^G=|%onlJ<{9%Y>o)QG_m>x@LKhW0r1Y`mcXCE7c!`UdgtTvUui?#NyT zJ)CixXa6j9MG&Th>WO#@pgibVO@?hnVVcymUIvI`ncI zH3^FedIU}pgPaT%?ia74MJ+ky#H(p)Oazn-R zAUR~knp?%XBYH7)NosDxsMHs+a4Qx8E7IAC-sj$ek>UDiG}0LhH{s=0493>_O{>ir z9q(*Ws~Vh!7abeXF8LyDvZKXf(MC0({cW^b(p-mYlkee$*NZ8q944A1mZNZ(M}-*G z$|p<97ga2-5n}}Nld`0dDML23&1=!6a;VmKt_f3DU_qxjhqpw-bK2WmMzpsv-eIk-Z>euwVYC7Jko;DRNuJ1xqWl~uiXesNJ)-)!PE$05~G-#Arhlrtcq z1oJU0$7KnPT3Beo0qd=eoAKUjdjnW~EFQHm5Ajkc+)_`QT3cj;d_R(mS`8P+JLEKJ zh(}}Xt;V{vu~n*q-Udt|p3(FgvNR~MA2a9Md(_0mEtBzUDantaLI>N5kc6U#Sdo7);%;*F6)>=fZM zrcA<$7T-7tduHM4X3TBzQtj7@6vj4nV2zb;-!`uhRW*rBI?7xEW%xx2iVJ9|6}Gg9*_$QCLAGi8ZT=2+CxUp$({*BPin zWL)ln%3V&iKe)=DQz2AaA!JQqIq~&s$X!V`UE$2}2lsgA`13D!%l$>WeC7UWU1=5m zC7zB9|FjB!5v+v-BxRMAnZlRbSXT|znc}-;n(tOCHws_>lFNv1`$5|ko+^LN9;*Lx zZ^)m&i|X(4Rrv3*olETue^IqRe{O2cvTwg+J>o03=$gwt^QgV^{6X%2et4|DNkx5M z#7w-m)LYxp(nQ-YlwaU&1zRd22lSh*ea4CGl5|n0!3^e{IjK&|y)7Yn=#yx!*l;rXK3K5h% zjU(bpUhzV3(z8U0TVk$o+!3>r6MT}N-PqOvPK&w0aVPm<6%%~(12NJse2lnyQ-eML zBzu${>RiY2W!yJn%!Ac4-^N_MLeMJokoROzA0c%iN%iif1qMNkW1O$XAMux&t8b?M zg833wrN-7l<{iw{dvQ;J<6{i@ax&uLGY*_7ILVK6B;cb1`QCz){MKelwv*7Ff}tND zqxBLTOIe+o=~&sRfK!fq&Ge)^N51cu!e16CcAA#+hKTE}mzi%fSL?Yd@_~rBVhvS{ z&VLsPpL~H-%lIdAH6K*gS0du_&mkxZ-;1@wXYEWP5$nfXAFq_*XD;53*UAiLex=4J zI-L1+1`jf)`JspL%oE?P=1lq#02(#sNAe}iTXZFePh*bnoTh}?%x_Df*!u)`t!oXw zfaM=B_!8!a4So*urwx8SbG7cM?0V*t6yS4{;P^aKoRgU?%nu}yh;=eAGvqfiUu*D7 zMA~P)W$4+#@_#VoFJq3yASKW>2KCFa6lz)DWB!i8=|?2#DyGcP^L>_=<2_mEN6bG< zA`!crdA2wwGv%J@v&I_y0hTW{_yOi)41S2Y?Ej>G`e_NZCnTw5Jq`KZ_>n&N8-4J1 z`rse;!N2H(d*I*R?8)kb=k&qH^}!4K;Ai&1L*Rq316;@(ml`ie`jB7L2VdR?AJ#{| zH1r|g+y|#0Xzk5!Tl?U9`{392!GGQdzpoGeNFV$?@Il(Xd7K9$?YF(z|5_jXtv>ii zeem=?{5+%&KC%x!whvy>2Vd9+Puyqf51x|GrnE=D;+aXxqeAm}rv897@z5aU!OqFg zhzp8NdQ{ZQO@0CWf>{i=ryY<_JYp+oj&{}q$S29YJb*4JwhF4}7STb(N+@;)9j4G> zG99MUp;*8(MO2E*_%uO8*U?P0O;C`H_YCm!;s2T^z) zMUUT7pX{l}H!07Llg~ZXGdp@9oAR(tK6&D2N~zE3=uttN@l1&yFW^y@@$fP6v?1|8 z!FW6;p0aAsmrr`mcG71n=7Zt+)r;qpSBDqRo42g8He6dir@AsMpDd^cy8P*fdN};= zK04tiy5b3l+SAfFf@MHFWB39;oJfK0izq0ru9OQTPH=T!p{{q7yy9~WdG-8)?jITUcJ8_(>Q$@SNZu3O+VeM zDSlkz`5MpUTTk-;M2!#EI6V_ldd6$~8yXL3{B(`iYMkzAl%5MUPHTnYEgCP>_(qKv zY5Z2^=6JqWlP}ifAJ^pd_2FqvzC@FMPUDj`{)VP!sm4Fl_%e;VynvFQr)WHbIoV&U z@t`I@Rpa9{dENdQ8rSWq(Da<4=~<}pGc|sW#;0j~wWeRMcYh!JHcgN2&!1^r_veF} z9^L-K8rS{#qNYdp=PR1L?$38Md42qUtZ{uGkw1kg*D>0&)cExA{R;J$?uUUIU#Q8C zVNU(7_v1uOUe{Bm$>(c&Dm8iCKh>IiNPS0|b{H2;6-OejC z`8rMh7EOMI#(${s^E7^sre~(c@73h>dY{m^?uS2Wdh~vLMdS2rNww=uO^>esLyhbG z_?f0h*YE2Gr3lo&^dojke454~`s{Bum>^q!C6xfw_xkUw?(6Pc4g!}wG3 zb2WaU#usaP$~C@1lV70mi!`oZ*U|5rQJ{MDal3^%*-8684-e~7jgJ9Wc3z?JIU2uO z)35LQPiXRVX{N5XUorS#3;OhE(w8530a}BQK zR~uaEk7``+-;K=4&#N{2uhIC08oycN4I2Nkraw>PztT9hSJ{79({rK5k7)99HU5Ss zzd+;v)VMx=`m;l5oKU^=Mgyy= zJJIj@^%#v|3Zy53Kc$C0C!;|2>(>tx1(ovpzD(C<6iB`je@YKsOHd&FP54v13~>s? z*Wgd_`2-P8!(TK06t5r!pRw{JZSWEY_#wmEYy(c}c(hnDtLG!UX}F2-&y~!4f$NQ z=di(daJ_#vcz>Q3uNs`zI0_#ayo=Lc8eIOoH-5o}?N$BwH%<>V_%=?TYVdEfJw*mr z>+CFpd$=DL82nu3=NkMA*(^(a7e(1gpXX4x*pOHEy_Xn#6Z^l%;E%AMuQj;(YR4T0 z{~OEy!r*qri`YNc7+?l z@E@@J3WKZPWNk8dnA;mQ_;1+$Z3h2}`5uFx$@c%k;3wG6^53&auIH~YKgjYl%t(d0 z&iD%HRQ9ny{{VbSFkVabJ@;_!Kbl(-!%9TPTy$oES7)5;2$vmtHF=3J?go)vVR_PymX$@uA^Lj zjKMwZhdBoKvAh~zO21k+4xX*CqA5TIv4*kIxqj`CqZ0KQVX% z*DL=`o#gmj%l7AU`;`9SY|mVStLy0t4E{LVv)SO+v;G?l{$1vG8+;?DpECI6tp9C; zU&`rE_)P8^#%-n30Gp4gRA?LJdM-+&im}&(=|?dCgP7mk-^7F zY)xgZ?4)}h3Udsu?sLx9IN72;H*L~5wYQX%AbeZnB(J{j)T42duOMNB+YGMmbJX)# zW#=9#Zat&Pll}?J|7P$9n7^lSs`p;zpBr4=kEHSauB!LXET5-ws#ksgNYB{cCW^%-{~_~3i}K`TVm@rgWtmZhX(&1 z^Sd-o<4t{D@+*x~y?AAo}W-ehsHD(>U4q0o$YUsXF4yJ$GvIdb{q`IN9@k zPCsSvX`Ft^;PX{FQyM_^lAcw}M`)Z-8D%1zrg1`TEMIQ$jm(!D{5W&C7(DNnhxlEI%{{0R9C|qsG-@xg64SpM^A2s+lcmO@8aYE{Qq(?PQez={- z_X&eP!hAUEQ~i64j6@i#ankb!%g;3Ud(4*^{2=>bt-*zI95x&LZ!CYk!Igi1Xz-`G zJx?0^81vUOPEqyT=Oc|%yZ*)US^S_-jkkU*S7dPYn^nu0li4)iXYqB&g$7saVXMLE zd$<&?H28;P6vB1Pl|705&X8C7f30yEx9WM#!v_BekK2P9C;OE>zt=eFQO|4sXz<5b z&vVR`ovkQC;kd!qOKf@lGNRp5TJq-QMtD0FC?^jyvIF@s;pd=qo!hg-P4*BJ75viuDO{~_~R z4L$0)-T{N(&-!09^gPOXUN-mv=I?2o#>qg|^Qoafi=2QkG9b^YAHT)(Vmx!zUMYon zW5~~E`5J?(?@QGhden2Om?lsD|0~?sH!&|U_#@2EF!-;T&o%ga%;y{Y73Q@DAIpBOGr0P` zV8r0+KD623>U(=_8mE3#*MS?E(|AzNR1mekt#RsF`Zqu+Txakc_UF$HuI}HTG`M=M z_lm*4!+!Xu!B1m9_y@}R$xiC~wK8dq&^WD~Y>ri+alKvBG)_&zFG`D0qjAzRSYqou zgDd^58rSu2&^YN={c^d+Nk0#7>pFug{dZ|x*MFbJN&ls6{}UP~|4hRlg+FOr_s?4z z*Y&6I2asx=%;Nj~Eaqz6P}jG`nmo z@Cfta%vHU=W&KkOuAZkX(m2&!Mg)#q& z>G_MnmHcZ4U&Q;x2L@N~MSo#%^*#78L(oVB)!r5C&xy>{xIG}GFdhy50`v1UF8YOe zv&Koa8b2GDt9tKe`JD#8f#=b848DsuhFc7NHS;?SuJk;}T(wKRZ~n3-PxE>w*ZaD` zzs3ALgFngqLxZd5?4KL_b(a6i;4d>z8!8<_{vmt5VxDR6&za{kSM7R<`4~-}*0Cv4 ztyQdX(qF*)+Ejy&XFkKwe~k6lYMkbgdQRJ@aq9O2tY@>vb@?kbPV#56{I$%<4`lx$ z{89L!#>xIVmcP^BOPJqd=vSXZ{n6l6ypDZp@MhMdJ`7OysQc&uJrqVz{k4tdvkk63 z&&Xk}`b(`dg$6&5?U`lpJJ|p9?}JcKdek^<*Esq4HX&tMmuQ^)O#cuwh3gIOXZwGq zanf^GNL$uJ8YeyKbL!_bPV!H){976)`6kv+|I7&mvY&jHP7wt0uMXj?+I0)dkJ98x z&(qAO8~hFCi!`p=ze?kzCxiXGLE~i40sK+erE!uU!tys6d=m3tYFzijVU3fXCA=TK z#$1h`TiO1%46eq>af3h1@_#q@Z0}nu6J-QwJy2-|BCmcoIW^TCX0UIE*0fZ z6Gz!!I$x}DYOnenicD?U5c+FfS~w|++OwlE5$!zev={p zDRl$_eg|FzCBH-_EqdRcg2~nQloUTM#jH+hJc8mAxcokYuV#Li!PWNwA2ayFEdRX0 z)$^7CydSE16+gq^>iNdm2H(bdZ|{Tm=j#ro|0gWJ+u*-t{;0uMuwMQ91|+KVjN|cW z>Tfpq{jC3g4PM4veV;<DZL!PR}-j}87AuU8KldK6{lwyTzwu_VeqFoU1jiRIjyb}m7UKs zUuMX^#_2kPzsqTQw}^t$^LLpP?~>^JU(DC=S;_l&T(uZ{F!PHIehTyT2A{}$i^0!i zzRlqB_lIyFV{rBT=F1FzHtV_4;47K$Gq{=;YTT;!s?WP`GUV0g%pWx5oPA4_$r<^WA(_ z@&`D5yTOlhT75rX$*cWW{!UiXo^5Q@4)%wVSJx-%b1=o#eY$Fl;>r&})~C4IFQyn= zU4O3Cxb8QrAiAj)KdXy#tW%!Xsu=x9Z-Mxc=>qX%)CH@fQLCV{of0HoT!3F2(UbUr zl0+E@)OW`4yS6OBS&fm^@ip=XS_@>ne)a0k$oiCQ{L(A^Ff3I@Ca_#*eH;Bywaz-* z)|@PeUuTV2TnJXGC}H|-WeYzV)7l!rk69PcuWc9LS3mKK-T2WGPUB}?3+NYR@T10? zxU$Gv{9rBp9Q*%!2tox70ky9yjb$8BpW`d8#;Z!xy+2)2mMOsJYkA>5%o{yDJD_^_ z_AK$)4()Tq`7#tS8Mf0!Rxg2vYa-`##7L)Eem9p7CM0D<)vs_dBBWF8lZvbI>ho;H zRe5Dc88Uh+|FK_|Q0uoUuga-&Etfa_zl0sF=Cvws`k$_Udh`E<>tu<1o@eBLTEdk5 zd^;-kQL=@_WFZ{O_(pS3g2;#}uW&mesx6Aqc`274rC%iWB6|^7Z}#uz2RjEQkT&`3 ziI!Sbzp|h9wl9HS}AfvbXb8e6&p5ujq>ZgxJ z%=(`Lqxy^Rr-x;8W$KrG^uMzCHHh_AK5d~a|B(`8H?BrcCF7L%NsqlFP+EnlCFLY(eZ%<^Biwjxa*v?_{8N@|>kNL$#RbLX7( z?0B81QGQg_Tx)&q`Of2>Irq-&y*u}Qr7PTBSy3Ul_{0MOxf#EW1WAzJMHL`H(JEHM z{|2!|ECaquVzxYJ6Oh{FQe`QvA>0QP?dq{ohTdVrf+EUNr3gxl^RvUAf;(r1coU^#Tfihi8-df85uZbYk#hHY3d<@UY^ zcGR_`@!^EK`5?8oR6q1m{+UvG#kNFzpk>FlM6@XpPvu6NMq68&T6SpJw6m z%i)7M_Vs@iYBq-SqWSA2(xplV2-Gsd+W=cz2ETg=+yGoHqn}y=$J~_jzX9+&%lHwH z??Fs&ix|mSS&>bc=7=zi!O@5@6i-DG@yAVIQOn3$k&I;|Bk`2j8}4cEFt%&kwVlG~ z>Dy;S&5Su5&st`tZ(m0uoih6(0|~SoPNq|2Y1pb|6*06*>H(w`@^9g>k=qnsfg1PI zHSm4S_tU90w%`oiw~Y4^UK6zCj5B{}kBws=V_$Q*?7(?!p={QH^F4z2oCBB7I|QNJ zaNszexV%a@V$N}Q!GZrb_Z|E7sFwjR16~Ha40svvGT>#v%fSC;2HvUN@=tx@?=||# z>esdjp`XZGm4yrX#LG43Wx$1<&jLJOxcfOEwG9IGVr-=f2#5Xp$zu>o>ufc+Y|hIthP2v-CuJfzo9pchPgnm0)b;7rdn9Rl2?8n9RYDW*p3Qh&&Rr<-cuLCpt+O0xiHVPrWQaufP#SySAvA_Bl2q_-)*FW{! zLsRcyicS=)suS<$wnLPM6ma!zaJAyC-0rj31I>BKW70q#2KmEBt{w*s%o`weXpsP( z>qqVS2E_ZI{??fx*`J{Y!_#fg-77@saL?55Lj65c?}hq8Q~&PQr<`icX?xxRbXnvjI4NuL7r{3xIH4pqGHExKy7999OPT@LegEipLL%icx>X=2gpUPJs+@+yhVp zK41YaMCWq(YWFUv?tsrxXgh$o;_p`KKVN&>V>RPq&!*k?+;^9J&4~7oz$XTJ(hzl_ zAa212?Ny*$8lmzud?um26oOrf|EbCjrGCQKt*Eh;O1-Z5LrP5#yg;o7@frAh4t&VQ zzM%LIE0_@o6F$Fz&kXo65$IO@&s6p(^?cXnD2l*TmnDN_j%~jD_#b?40svvGT>#v%Yc^wF9Ti%ybSz* zXMpz?@_s^EJ{9*2uHwt5#m;KtCuuY0M&fzj;%4IQRf`ati0A!_y#Jcz@7*e-QROsk zM&vcgWR-2mdj(%5`AYIPNfh^;V!^c&mO7gh|C5=Rq5X%vCsD5PKnvGxSa=WP?KaDs zV~co@0^_*zqz9WfW#RU>5YKx5D%jTtd6f{n7M0hll0SGeD|ya4EXySCC;11&^L3E> zPmJ(BaJRz%^>>h{TmDfz??c_&(Xm@?>>tRbtem<_yH5)=HQ%3;Z1WS_16p9mRvZ2( zhamUCsH`uO2p|0B!28pkZhTI;(%LR|qQXJOVJdhm% zpI9Nd-yJYSxl-`>D#c-R^9|q-_ypXQW%|Vjrzq62xFUMX;i>_zVHFQ7VHfmu9%JJYgD`d zIOf4mc`(V~2ZW!daVUSI1ldpFgR*zK?Jxk<34hfBCy6 z*t`rl#_!g@0Jus%o#ajF$BEeWn}D;=5~*coEp1Q?W~{80gAGE1V&N!O5`~efZ%M8(WR3I zz4M?j_J$9%hr-5z?(RcfeMVoXJ=}#}<>{8eY)*#yq32ofj7%_Ca{9%LMyv=sSvVr& z(lSuXJ_iH3rH5jSXf|!cBB>}InCUqHTG4pQ$Yo8qz=hZ_Hv--Q05*`#k}G)_$1vc` z4W|eX&`%Jlgp4PeJkAOX{Y1p3U zolNr}!-6qlp4pz)A9292Nw(+tX_11=SI&AldwI{V~doOIeyk-`UJ>vjl(?8 zcZ-zl-SHDFrlEp4WqY0%GtHACx9`6GZ;*XE=@sYCWDs!JW6s?6F9L=+VgK-@W*4IF z8KJxXzv;49$&M+vPhQ>b#dloxJa1>p;Vfl8bQB&x3|)Z=?0=T`AYweP<@3UBedd{72b)@lJ+FJtG@-YJ@oIAmJlo#{0ghdI z>=f5WeExfm;>Y_B3)^x3e-AKJVS8Rj&Co=z7mXZ+?U^nEW2e0cl5)VN+zz{7JLXq` zF=E_4&ky}%@7Bk*oMjEQPwGVx+uu_}>b ew4cN;CMX+S&beJ%igWk!_Ak=F-{dlIvEo0GGNg?F diff --git a/tests/binaries/test2 b/tests/binaries/test2 deleted file mode 100755 index 03d29bf018f578d78183a614e9f7d58a2ac34f80..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16768 zcmeHOeQX>@6`%9PiSxC-l%%z@s>H=j6)SZKMS_ArGW-D*NXSBf0{`@)v{n8|)j&Zhp(P+9@&O?UBuatgcyIQ- z^WOU0ii$rF+OgJe-tT?P?3%`q+Ht@3~X3N7i0jZr%SC!Km!u>$eE{K^5bfpaord&g$Xg5;|VTB+u6?7kHSB(PV z-Sk&fPo^v{m8YUHBvt+|(G#cuiK){Lt1?+H#bUC#obI9W5=7Y!S+pyVU4iVFUZL`s zay&66cr{Tx-Bbk`CRP3y!fm&M?A)}C^qFEAn6{s@;vc2FF0#{A=|;F|)P@C9F7Gp7 zM@>r_A56HJw^4aBwL=%hpDBe`tVtz%8`rH##p_eabbh#gxT&$eah;aSXlrG`ST8IC z`_!f_Jp$Ym5Th{4wpdI&%71j|>t7r=^GtB{gwKEW{Hvm^F=%;7EF*cR_-wF6V75oT@ zcOQngQ4Hm+oXDk2b4VCQ-*C+6Po`t3P5hdfENKT0$v2X2zU|jBJjT%fxp$>{SSTg&o%nt z>UY)%p&u+*RmHdT(bsB@%L*6QzXb5L;{9I%Qd=ibKY@~K7k*zX7LQ0CC#=^loMIld zza_QXgwzLqmy7Rl^7_~ny9!%^`r*d|`r#)1@ZOs9_*SB!Agj`^)z&>H>x1Pr{H1g3 z)NXz35BlgIuXJ@s$E$CEsy@E(fF#YYKt+m6s-TF!AJNB~S3^c0uf7M#hMU$BxYhSG z`&Q=`&(_wBpyT62LH~Uej<3IlWc6*V+_B3W^{-GXywD~2>>SO1u1^VIUuL5)ao!iCY`8ZVZjp}jWeY?Q6%>KetAf)=B zzn-y^+sA&1Av##J8V}yE)*k#tz8`A3QvrA10C$jY#r%tqpL@xA0Qe~K`+>g{tgQ=+ zx$ouQ1oSRM6H+Vxn^&>j8VZufFoXPFknh}ep#wDR`vUCUg~&f8Z84J$B1))is=< z`;CrWi;i7x8~anFxcGPa=y9LE;oba2tliFCktZX&BD*8T@&5Aiu%}|2WG5>1TmZe~ zMZk-I7XdEg32`iDz#wnjO`!Z=} z`ZM{gl^{vVjO|UP2h{#dM$t-S}cxW{z|d<3eX_X0?;O)vtZ4c z0E+Jrc3dqMPXn#FRxGN34+Bl$niLX#JH_OCdYkYK2Yf3Q%&9p7GQ@FDz)dIv7W6{2 z&5@sa?}O|*xViujA+7{El;Edp=RZ|5A~r66^udSklb;>Y{zt6G)dsJ}x|t9H**g1QojC^e7G7eNpoh3gaG;{nutObL8W z!H7UL;d&dcv*5=>phF3Ksj5>6zUXgP)bUyE%BmNt+mz7rvvs9ubj~IvoK~75N+_bN zYEje{CD@__TEG|9c_qZ524d&@zK1To95=+B}_|fQud^0_s^nzf4Ia#5q#d1_p6dW_%bVbjyo*pBp)F8`^58oko*4{ z;eFt4haqb3Fj2Ss!+73@x~aAGQFT>MZ$541)eYLiTByF^k-TIZ_OA_Tp>?Zm_`@86 z+z-7nSRoL8c;~?T)17YoV8Q#(%kf#_nTmd@OZ~81f41QMSB}pS+)vAKSXXmLb_o1p zuHbfez);J1g8NrF4!xTPfJ5LHFe)pwiyux=s1Rzs>zoc}op*?&d+1U@$uzz z)RUhVTO>X`K6&!P&v*9otkj<#=b7q1A@vuF*FMf3rf8-6{h<^unbuyfNjdfZ z?+1H7BQw+c&t>Undi#DK0#a3BT;Th`J0Q*l`n}>|xfpPj3v^&bWGtEP{a&KdmRdrI`WA{3B*=aaR{;83FieU>(xlJlxz-T=W57}0J&p>bKSKRqzQ+Wc*8#`+ zyY){2u98nDxg`BK5j%eyaQPzEEwapqGVPz4}3++(!sF%q$K98b)2ZUwD)GHv8@Cfwju-7q!+-uwgBo6C_ac^bzs;Lr_+ z2v6fwJYpk{_PA^1Jm*s`6IyQHpcU%{YGrMj;2eChFtbBKOJ^)o8%XE1p=@Tz%v$># zP;Wj7r?`@Ff+8)Q^;T>^NcBW4mk?TfUmA+Asg<=Qd(CVvnMs#12FS8zDuxD>8%kM1 zlL65ns|{p;#SDBp5t?NV1B<;5v@^1GG&4c{ED;B9%-KHd4rg0%9*T+$Cc&9)4gnV$ zboN2$!0r+Bk$C*YgdqvfVmtACjVaInNi20akMv%+oM(r4UdL2LB}d|UHbae&aoX>o zc^*^zuH#Jnd}OQ>GERG*Co)x8k*M4L3BYf_oSpA~g34#g<@2=8UH=%^Bb{+RyEWj{g!rtRD?E_-%s z&-13@$Lj^A{QiLT-SK;!$}bh8k|xo1Vwt$@Pl5p3kL`8U)?^yB+0uWvJ%-6Axqxxqo%VnkE0~ag)4H68=ssI20 diff --git a/tests/binaries/true_localcharset b/tests/binaries/true_localcharset deleted file mode 100755 index 9d88a26042a65272a827e7aa07cbc4994a329a46..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 30904 zcmeHwdwf*Ywf~u90wKVhsGw1y9_b(fA;}=v1VJ(|fipPK2mw*RFi9p42}zncLxQCm zodh`@rZ=tDN9(UY+IlUwmsV~c$OWq5jV)SUT6_l|^&CM(R6tSYe%C&GPflWTZ@vEh z`F%bfompqCz4qE`uf6u#YwvTI++7rymEv$n;!2gSmk8To1)IOiZvYCVd}$EA zM@W}T1AwP7npIwC0hC(TSuR?@bWTqNbmEhrVi9`75u8szp&>zPufMCX!YUC^k`zXu zdZg>gWef#W*o}Z4qztY+Vq%xVzDYeIEv#cGpu%nhJjoRkQ1p+)(WjL6uQ&8DDUu{0 z@zPcDwpK~^l?xd9B{-GK6HwH<8TFE?TUGzt?@V4gm$%oST{3wC0`l%kxplSW*G|f< ztDI0*TOVne(2{@cgli||gd1`uvVN0%;+=iteAW_;H&>mN4+Bm#D*wx|=YF~GPp1yv zyy3WS+fyUkhHo3No608fIs*YObR2SDI96J))GN6ZUX~9y9Uo`xs>iZNt{sv2gW_*L zQ#|9_+e%jae8UZIc0RaHe`wZ(w_ba0d_~h+<=#&UPQ^xyJF@xki1#YSO?Td~8ddwf zE`#zH_E9>uANo7}(8G|?mz=-!L-+JUe-6e|P}cie2|{1;@90OL-}Xay_Cx=-e(2tQ z+I^@W`k(rt-`o#{m4Js5C8A_;osa3|GWK+ z`xpJlS=^7D!Tr(uku$0v{%!s6&+Lbv!fjvvd4E6rSM_>h@KXTsahyT-l#__^_fath~IjAEU-8|anb z@94!}&GpRUbisdy%kRw}0iERZZudsczpj`3aa?|8FS^F)mr9+z==X5_yR79)%H{o) zucXMWGRD!kQmU$`YY3xg&qtg7ww4^;Hc?waTd#39X0fS5O1!T4im0H599a5>i#TB3NG~ zRn{JfY6_EC%ltQ?J@lh25{6{K7S>kQh00b0>%zTA!KUi4L~@xs zM4Cd$L1&t*u*8;OB+Duq8do;eR@Z3K?0|p9%(96&*L2_IOiJE+x^KJhCgx0rZl%R# z7=loBZCDF6l@`yeYp4&E2Fu~VWo6aN;a--h$}HAC88I_bZ2$Gds3g@^+LP1SM@d=_ z8s+*{odL)vQ}D6A>CU1Ph5k#!N0LNddr@ueP|DmN!aOFLc4_S(+By7!;}87kL8Qx0 z>9-so#`sgE%^Z(hM*Jz#4&Zc&eS(OS8?!9>S-y`D^hQn>aZ=D*C-8~;fgo%XQeI%}gN zOX|M3U(xtp+)b6zZFCVbs5sL`ztqN`WusqaqboN0< z8XKMVn&RrP(Z>lQ;KMfh)i(M%8-2WuzTQTkV54ue(Q|C{%{F?TjoxXadu;T5Hu^O- zx*9!^uEx^R7Aun4-l?S|4ye&x>9h;BuEgZqZd0Vh=*9S!uPDSF;Wbofb|r9)o=Z4| zBJ%*l=MYXI$n0eJ48ke&m>U^Bg>VWv<~oK?B%DHx*}?E}gj0wyTNyrzaGDNgBf~Ev zoI;Jcl;IZ=P9erDVR#1N6k5zehNlotA;rvN_-D5Qr%+-l3_nFUg%C57;qMaeB3xql z8-&Y*pF9u3=$8nmP+@j4{1D+3BFqB}{|n(18q7|H?;xB)g1M35TL`C6V6J2M?+K?6 zV0JM4H-yvFH(MG0OTuZXG8-BGQ^KmCa6u z&mf$pu(^@pQwXQ2Yp!GXM8avxnjH)uM>tJYvz6ha2&XA(HZuG&!f9%nOBsG4;WQ=9 z5{73GPE*k=WOxeUGzHB(hJUsYI88lMVfZP+Y08UbJz#Mv-oYWW$n}Dzd1T{YGUjd93$ie+1bRV$p--g2*ok$ea*rIf>{~u!4 zUpFSe#F%zIkbcBTmsupIr*qLxH8%8TP*06b8-iX0;%O_0DL#A(1C##%fkmEYj7wmi zj!UF^*7Y$TPI6OAz~b95g+;oL|xwpL5X&%UtBDrdGS_3LTGw3q}7P%9c zQ4C`lD!Q;IZ4mezRK1lt|Ito}M1P2ViCF~>3-^|yYm={s4d!j3prfDjBoOgh)!2k% z5Ll_koTJIPRNd!p@pKy7&S5NdQ`O&9^*wZ`CxJMI4eI24NMS-?`3HzEKKUxLs=h-o zp8p)w*o2#?r|};Al}zsYs=n74WHF7im}c69PERta@dw%6xgir%mr7S2`O=|+uZOirmg57mCp?pL`pRXyM? zB$L2*({AM)B}B*q;dVywxfR?m=J(lDm``6SeJxb=uHyscE8xm4nQF8%Q*BRZL;jOS zK-J&>=<&!qf!NY?PlA~frkVjU#qDp&ZL|^@-}#I>GgLvZq180jL~<~GivD{}KTV>H zyT}&s(Gd{g2HO@|cgV&+`IP3F+`fnK_~coT#2YhSLJ@>l=Q82j*Z?MlPlG^z!3mTv zXXO+81Z1BHAy?W4f#kD6#}L3>0{RqvwvIe%1r+JBTP5~i6IV+z+yd&G{*%Z<)Htjlas`_s7 zn`~nN*0b0(@P%Vc+3kMa@FZaIpTi2VX^rzB^bconODsDq7FK>2%8$R+9j&T5Aa9=b z-KSt^NIz$cq{g7}O=`Tvq3Q?Ku`jC8PY2vJU5z(>hS>He2>VY;M&Pnn1OF}ImXp1p z>W4piyik5lSeRO(=S_;&!J=LV^A(GG4% zip=t+5(ld=BXXp*CB+kYuC*mKKeDg2#hDk`(b|%BO=MeZ%YeMdrq-5$Qe3{X>pQ!q?(Kl1ndroYoaf-FMPZHEi-I+cFmvkS( zQwxO|h04ydGM~GK5ZWYD$x>TnZ*#8)3*6;{PZ9}lG?Bp~lziV47l1cD^j4_m(?3%y zoIg?>`x0Gyd~TNmU#qazzD04f1hpj)WTFm5l{7XXQIbVtSma6IHl0#n608<^URHIZ zNbd^huljYqF8K?Nd*z?(@<-1lB16@f&z;#iHCrN5Q5(YE`~euuRS=@a5Pk#kA-VET zI!B>3uf9WW`!$J1oh-Pj+&0!JNhC*&FHVypIcoH*V@0-a4Z^Q)4dQqJ#>qB@p{qW5 z6A|T2phA&A3?O}cc6F7 z6j<2F6fF)36lMVVfgNq=WB}%b`8}O{UZBCD4!K>1!P^eW?E`6;p|_&8pVo%yFLl0~ zCT}_v8}^|5tC!?^=b*HR*u1!jo^+_u-45TCoo$_(Qe5!GinN(~oY#->$7ehI1-n-a zn7PMyy;1M>k`Ova^=G1owK;Xjsg?fcM8&!N-E$sBUqMd%e{d=g0x zw~tWD(`g<FXd3X;Etc9vVK2oEuwcAi^T5I&#bv@_jWPxv*2 zWBjeW8-f?Yp&x^}Y2sn-`Y_LEY8neaq7^V5)5e-%Z1&~R?8|34hy0}T=Bm+BAw>`Q z0Tw1OW!irXml54H_cK!!BEqow*nA)6;=|Yl+2w=J=5T?h%E z;Im{!Nb$Z!X<*VUw@tlOjyFQCxr^9cBL9G zP6-se7{;PT>&mKZ$8@>v2Z#y6UToM9Zz(jJzee)aQ;(6*0|pcfPlCacug2Tl>rjU+ zynC&Cplrp@j!a<7HceqHpr!77YXR+ekFUXnY#!(HH5fasHus~b>v?9)V)tEC>-(zy z*MPp(y@pFeiE<4qc3@F?2+=mSjp=0k^?eFHtK8Y` zoowav$-b_D%-B4{yGau-;bVh$Z)N@SoiK8Rq7rZfEcDS*5*QTjz$Vw zd1^G_kXN5W!>azN=QQ{OZdrAh%xvZ+^ihnDP^_r!8M*xlWI8^5PxQ2-P&wIirD;Z> z_@p~fG$T-Ow6B$hFZDz9qn*ZpXlLHcHCXbI0HD_H6`4d$jdl&>1u4-t2hv<3pNsCy zQxSopZ)10%zd(_SCkG>PY5AfYV-8j){Ujz3G7KagnkyO4k}Dh&aTi2TW^)!kon+}d z3qfe2x*I@)_n<*08ec;l)HK^c@MuY!2lFXf z{Nri2Se)G&+4ZzGBHi_|17RwXa_E_4u7nV#1k(VT^r(#pXW4=&0Dh*UN;l?o)TB9> zp)J6^{P`;prL035OeZ;>|_b6iFJaS$?EQcUH_pD^N~~kO#fK7vU>Kf?7ywaHh2#6 zGB70_5#id);=};&9-k{E4~~YcBNYm>Y{D#u#kx-zC?3jiW<>U(=6WpKwEG$gW-|p& zN~`yifcEZmdy4rI5(XA81N!Lz9YP*WhFTV91DJKRL<9<6vqJ8d!)^Gg)&eP#dHf2# zu6bMWMylq*5u8Jfm!?Vng2T6!IWcF&9PJu6Te2@ltN)G zm*USAEV3a)IZ9DlwkCOzm^FtN`+SWiK z-0?gfc656dIUeSX2mxY`FQ%rLTIN+JS^p@7q8)^}pZXt9d*Xi<_T_nMzW4!|gS=l= z+h5kkV`rKzZyJmNZ+k}jRzUwOF!n5Mot)k^LoTKeFK-%>+4fB2xL^M}Y$C7zIa;S( ztYkibJ8RM8o`+SPIp5VNK&Vew^}iX9BNJg0*PIKN6jaJjh`Q9QW{zrku6}@3KY_qW z!QV@}S_Iq|ZSfzs`Ceo@Ajrm=x2#w! znGMj9B0rJYka#G4O^%28OZW?7y%ps@0%AP+CT3el_k5%Cqd-N%IzM`WPS2i&);Ntu z&yBmm?ALe4q@s5C>d21iibP>WUQ-QE@D)sJ2I1~z~4=iTys3qUQ3S7V~2MNs0e z_*mWk52sqNQ*Ikhu0!z&M;$oORQ0r(;7}{3O#(nlUdq<{)W?d z1C9Ii(HDUsR^;?kAUp z$gtS~{T-I`8Anc7wxt=E=`YyXT#XY-()2pgv|yL2U!z?JZt8fZQS}D6F(x?3KVwmR zE+|gVe)XBGakPbo(6;v$9}>u^2nnn~s)fU%T}B0O5DR>kS1&^4U10C(v1m~F=3PQE}gUx8hXcaPy~cqXNI;K%bAjL|vcEl_vz(G&S<`!m$O=RL!N#_^1XO{hZof!%|bIRo)|T#Hof=i$S{pi4kM z1zo&zJ*U08>B0Ohbr%}LpbGO?FsT$IxMyY=zrlF`MIk&UI+2d*)DO6RJ}RSE5DR(m zPVZcD&3xmpCIXnxJ)UGh8*)u;5Y3A0Vts_0?TvbM7ps!ZKlFoGg9jicS^K(JTGMst zdTAgw`n$N9KM$v=cU>JdQvC77I2zsF<@CqvoY`P*!!SbA*mY`jXQttN9sMad9{IqJ zy%L_1jr;>@s|BxXml)=2DB7Er1A=uLJu;Wd;v*FRf59sn@`HDboy4V&{Co-?5A01d z0T5y&+w{fx^i2> zgIGCidLCulP-gcB41%ia2XJ~mj6WB}P~Z&be1=w|PjajJF)o)Ld?BnmnNe^<=U^=1 zVsAZB(Fj3tiyL|hFQH@-LBort$y@WWMHs>wi)3Kv)SbqYuOeiW!$7pZVfv{0U!ao3 zMGq(QJn7#4Lh?8!{05N^_ zgSLkcIDz+c;_3HJjIdwtLbRb+*$#}HJ`d-qW1Vg*02Rjrt?5+Sj8b_lrUW5(azydQ zF3=AgHqIPCY&zT((6@UIplJ-FS9c%`pQ3b%rU<$)$ueh}WzH;UFZ{Pqe(D8v?;hq% z^#072DHsYtm<~d(c*@Gnt5CrE|8@MsNpA5^`^S~6Lw)(jLoZ`YX1pT&!>>Ps7bnUK z6t)bF1MF>ovN2*Yc~0J5r<)=&nN|jC(#{uhMA0Tvte!yYCW1A#ws87@z9XPNXZ#R* zc-n`Pji>f-StqIV1ipIN&%d`5wo90$%(R6V^n;vajUA?7fn{84e){!&^ca$jE6PT) zYCYqDel6y^6Pob(z7lw{!U=4Bd(3CV4=U&J<5?7cDSoi}ws^6gF(VgG1hdI)2m<{=p1H8sP+nM#*ZJ76efzalD!HPF{{mdWDm$VDHzxbou9XCX$?vo;) zm+D|9YIYj4piOb?wse1dX1ZUWk$(KoVtt!G&$~rIT%w2Y z*6Ra3^uQ}#YP`*T02~3`I>lGxk6L&f!$gPh>rsexDxJhwi79Hd0zsz;$JF1Q^iOZ} zv)twdKK+1qE9GzA=#F&NVW=@WeeczwBSmd5N8HA5KC^n&(%q{JRUC=#G?qP2IeV!) z{rK~A{uAAqe*8ad`;U1TyE`uGp4~&hj-XlxlI=a96|fH&i7KY>n@5N=bU*Sm@S9iy zZTw_UY>*$yQ&2dW-cA)kdjnO&W>nw1$SgryZ1eUIHQL@8NyDZslCo&0aV<9YJU`IS zs%LQOyjSk%#3rdFgEm%RO*y`sCWSGCIBoqo{ySR5y8RUk3!3e+W%M9{#xR;wU1`-!lW8=X_N8TX>;j( z>++xZP%YTE0^8z!>On(|2h#C&kjpPW0S|c2yoJSDatRFcGupSo)Ni>29f0}~+4wH_AX1|&GJU5pmt=OZB!KPRtap@7AUIGt#ABsiv;-}f3sF(b zN7nv*hp7G6Y5%wA_@BE63-JK%ww`UPg*EaMv?*ZA2% zXrFxLwZqypf5HwG{Q42d$?7rT(`mwEn__L)*~!ACq)qhf7nsH?XbY)bj-_-LdWVzB zOgt|ylKxCnSx;s86_(d@%v5VrfcJXvnpbpJmbGf_H2&N}8;Wmu-&Fr%o-qjpu_c&e zAJAdS#W+KYzNuigTmpk;pwZ26p@ddIa+n8Tii|M+b^u3ZXj+n3F)wT-!Xic?ZfjhP zUx7E8KZtnn>I`PtnWMCGBtv>m8zE-#9h<2m?#Jg*B3a9EXBwt+fbkeJ9 zgV+$W{^AWa;=|KIix0wiVJk=yB{)yxz=xey!0Pv$pm1q3c^i8!gwgsjED(rIJ51w< zGYsU7@ig`X5T^-v03Er)r2H|UCyW|&1-tBlaP1F_ML+`aRcQ{4L~dc*d)n9l_Odt- zI)wrlZ)job7vm!PysdXTq{w!vK9*HqJkZg49XuwjiQej>LnQu)3WF#1jYsA77Rny) z*+oiQW5^yrbvqQ<2?C5^e`C&%!wxObiuGU1~p8+7XUFE9_I$j9})IPf+uv2;NvRqU3~0^SFB0j@+dX(=s% zND*01gDt8*HY?qK-K&IHWy){>;HE_l<7FrJ4G6 z5|O^$%>1|3Rw(G(uEyu2VBinx+okPl^rckwYP>J#jYaUxez!Ben$>^d%9B?8chEP= zskgr`>hJN#BPoz7``(wf`=hU>2CjyDH9FNT&51k5$?eBs2Q{vysPPuO-9E%^bU;%& zG|0jf$CQ@a-Umk@Hr1`}-HV8eGCF}Bi(|YUj^eQ&1RRNg;~irPtEIWqZ-}p&3csK4 zD8_M+8`PvJ@BI_1!yLw4`^gpwtfuY1<)puo7BSk+;-SkZ5b-k1K*_uUch>wB10d1D zi1*Plw5#z{dW;a>^ePD+Z3)Jk9LHbvq51jG!Y_^>mZLT8VRHlZ^BX8ly-4-n6eK3_-NHa-DX)c#f^kH<(j_v^+< zi1(ak-Ns~{OO2sBkb&#ZQ6h9EWgKF+_#Tn|5RfF!FlYA z`1!!tx7h-|{fkuNioZZ$`+J(=d0DK#^z=kO?Sq8Guvd^xI@E$!Bkxi~w}n4jK7@Zq zkz8CYe@b&)rBDRdhN-bk&uQ~EbfKFEFE5@pXM+S?nI4e5lWA^!(Z9mhnj#@-bT}hJ zS|n+qu%>kXI)PLisncpFRN$uq?9^~gaN@*C;mC4{?v#jDTUV>qhQbV;d@V1yCSR~j z_Dm#N#^|upP>&xR3Mnp)*k*< zeq?#5UJEbDP?UzIDGIUPR8s1{=|(zjl8W#T_Lb&Ztwsqd_$TvPB#io%A#}R3mVRHM zzFG-KDk?(Za1Jw^!Y)fIc3W8+ZmbKgRJ5AfFzcN{ZPV`nF!_R?s}CI_8h)}s5jg$a zLep~gLk>MEX54sFY0(sAWkaM%3Bv?+%5pSP6I=n+G+48_J}IK13Vj-{G}qKt)F_c~ z1Y@=mN;l#M2SSyhFb;@ANnYR;O||8)QVo7RAV*P3>O#SANNEaHg_;zt!PelIuu|Dj z!Hmb$%YdRvWk|zsU4)fjIr@PW_3KMZ&jurL1q4XqQh*7HvXhbX)mc@;xz&wzIW^kyy6bZ?N+}J%|MWvdidga3I*zp>WRbD3VZ(?Ybz+@C z%7P#9!J-_|Xl*AESei-3jW;Q`c<0Xb-dK9;cv=lPHUo_2B&<_MGpPKS3}cE zct=ezf^?%&nkkjsG|#_K^3I#-_gi^25|3Q`+-KRfllX6c!jGkys(0?ZqEc_b@15uK z&y_|`&O>|nf>MslQ?H}ncb$d%wSUICfcsT=Y`Ot(EuaAy*p77qa53J4*ai6LZsY<8 z2pa$uz-@q&0PFT75|w~M_CgNe=YabFr{bYfA%e#VJdxV~I3793QNRG;3BWo)3M?A{ zhXL*f%m(}%a4O&`i}B-*8;8u9D)32 zJ>UkwU4YvFj{@!oJONmT_o31e&{hGC0DKfM4{!sZ4{$2p=voT+3g9Zh6M!9nL-3Z_ zV}RoUHv>)u+z+@IunTY%;KzWE0uDj2+yI|Y5HR-xP67XjfKyK-60ZR6 z2ONPne**6%5_NzZ0M`P3{vpZ%SDnH*;912sz)653K7w4pwSXG{9|hb6$lfL(AG&j{ zusTs~xAdWU0RCei5yl#@>-5?2F?t8acua)W`ru(B2T1^i2LWzKSC&5;K;r?*Pe zFS~BsHSSR)gX;V6*#|$RwMSeEZs@F{)LHCW=TJay z#phAf{XL-McV$LXQnUCTq%AFamED*fif~jwx6W`86;t_&A)^?L6lPMMQL ze1lU;MMJ2f;jO-hlgBc%+~$_!V&*OljWWzTRas1G?aTw;=P)e@13w$kl>Tam;e9am;XazyX5RaLCXdWVToM|zVTxdk{dJ@Guhg+1Ttn1RxOp8 zpFawoLYpk|k&U1&2JK#wgvBA#?@A~7KG2VVK8MkZT+}YK~HliC=aBH>W89@M5{)qbP zQUCkAKF=#qKkBTt#u5uo(ct;Xdv&lE_p?}xoIMylfTq@(MC0v59(NS-ZY6mbi)PrN zXz)VT4{Fbi@+{<+H};%=vy<}=YcpTNXS=!_DSzs7qTRq!nn{qSkv!~6zDMn$cU*rK z%fFx0**6&O%M~qRez^hlmZDxE)nh(`Ih#Ib@H}Wb9wf?3TTy-sl~*L?GP^7jqNog) z51-G$zY+W)BJ`CbsMIf&a+6|LVN;*$6^*kGLH8)+2>&K=G}wzlKLGkzB7AdwV}Wlh z@Qnq&vA{PL_{IX?Sm6H?3v8rB8CN5R;&p-b#N5Ae+;{mc?w<5_|);V*eu*U4oHyTQNyU>8zjcCoz)?!@oy zQ=UtgDF5VqqJeNaXQ2yQOm^iVC!`D8CF{Z&0bNMt*mV)d#rYgJ3;m^&9v5em)Ov-{ zMQ&I^IW#WH8|lIpgk54^-O3LJ1U;K~TrrS8;ePhqE|bz+n}KD>z)u;e#AL&fz8w_i*?EhyUR4 zG=~H5k7Ve&n8T|$yq3dR94_Fnio+EguIBJT4j<=m6Nh^^e1Su&wXgmy{$7Ll`wU{< z3P1g-5=DLScO8=Td4c%54k1rPC^)eqzkG7l#7fU(Pp~3XK50^UMR~|mnLo)hxx6Cp z+KS0Jl_5NlB^lFB>(@y+;Tk;Y)Pm(w4*v2^sHsuPsmGsS$??wcPtbzZ9HYmp<&j$a ziMrZKiM>5k6U5)^$*EjfA6~iKf?AVRBHjvPY#b>=SyQMkNEP^9W1U7#;%~m>;5Mha z0XOV#`Q+g5&eVdb0Z-F{QckD_f8z#!m#3_z5<&!KRV@oPH3e5ntcJL!TGSQ( zC7{Bv?k^rDlY}dAXRojE`U1L>oYqb6`jbFDjhH6d7ja*}N?u>A1HJwDdX$q5M14sF zcn-zifuwbV>?G=o^wthudHvq{bFy>?ZpfyhzF3z8T*wPV`@Q?G@%l5kK(WpVDAq-)PitZC`gegw zHWBNx$O{A%>nB*))qDI`f@-gSlIImkC_2XLi*-*xvah{<7muF;3VnI?r2c{)?^XXK zuPsKzY zN(2;tUsUk-ZvTm1_17)5IFnE$SX_Xxn~?XPxN+elrk%+9#NQ$9%`b2PccU()R-(Sh z3(xZCDEPp_E`bYp5LD{Fs4t29rOx8#-LVjSE6F?S<~0EFT~S};KjQDiioXXd{9Cju z{9q00+S?a-rCM*v-$;eFOVk(e9hBMYOO1-f-DrVU3nagl(#zuRZD)K!d)*GRwn9Ge70Y`{ilcSHpV~l_8q;1_d=!r0-+QzHvj+t diff --git a/tests/source/coreutils/b2sum-b2sum.c b/tests/source/coreutils/b2sum-b2sum.c deleted file mode 100644 index 2001f76..0000000 --- a/tests/source/coreutils/b2sum-b2sum.c +++ /dev/null @@ -1,4626 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); - -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -enum blake2s_constant { - BLAKE2S_BLOCKBYTES = 64, - BLAKE2S_OUTBYTES = 32, - BLAKE2S_KEYBYTES = 32, - BLAKE2S_SALTBYTES = 8, - BLAKE2S_PERSONALBYTES = 8 -}; - -enum blake2b_constant { - BLAKE2B_BLOCKBYTES = 128, - BLAKE2B_OUTBYTES = 64, - BLAKE2B_KEYBYTES = 64, - BLAKE2B_SALTBYTES = 16, - BLAKE2B_PERSONALBYTES = 16 -}; - -typedef struct blake2s_state__ { - uint32_t h[8]; - uint32_t t[2]; - uint32_t f[2]; - uint8_t buf[BLAKE2S_BLOCKBYTES]; - size_t buflen; - size_t outlen; - uint8_t last_node; -} blake2s_state; - -typedef struct blake2b_state__ { - uint64_t h[8]; - uint64_t t[2]; - uint64_t f[2]; - uint8_t buf[BLAKE2B_BLOCKBYTES]; - size_t buflen; - size_t outlen; - uint8_t last_node; -} blake2b_state; - -typedef struct blake2sp_state__ { - blake2s_state S[8][1]; - blake2s_state R[1]; - uint8_t buf[8 * BLAKE2S_BLOCKBYTES]; - size_t buflen; - size_t outlen; -} blake2sp_state; - -typedef struct blake2bp_state__ { - blake2b_state S[4][1]; - blake2b_state R[1]; - uint8_t buf[4 * BLAKE2B_BLOCKBYTES]; - size_t buflen; - size_t outlen; -} blake2bp_state; - -struct blake2s_param__ { - uint8_t digest_length; - uint8_t key_length; - uint8_t fanout; - uint8_t depth; - uint32_t leaf_length; - uint32_t node_offset; - uint16_t xof_length; - uint8_t node_depth; - uint8_t inner_length; - uint8_t salt[BLAKE2S_SALTBYTES]; - uint8_t personal[BLAKE2S_PERSONALBYTES]; -} __attribute__((__packed__)); - -typedef struct blake2s_param__ blake2s_param; - -struct blake2b_param__ { - uint8_t digest_length; - uint8_t key_length; - uint8_t fanout; - uint8_t depth; - uint32_t leaf_length; - uint32_t node_offset; - uint32_t xof_length; - uint8_t node_depth; - uint8_t inner_length; - uint8_t reserved[14]; - uint8_t salt[BLAKE2B_SALTBYTES]; - uint8_t personal[BLAKE2B_PERSONALBYTES]; -} __attribute__((__packed__)); - -typedef struct blake2b_param__ blake2b_param; - -typedef struct blake2xs_state__ { - blake2s_state S[1]; - blake2s_param P[1]; -} blake2xs_state; - -typedef struct blake2xb_state__ { - blake2b_state S[1]; - blake2b_param P[1]; -} blake2xb_state; - -enum { - BLAKE2_DUMMY_1 = 1 / (sizeof(blake2s_param) == BLAKE2S_OUTBYTES), - BLAKE2_DUMMY_2 = 1 / (sizeof(blake2b_param) == BLAKE2B_OUTBYTES) -}; - -int blake2s_init(blake2s_state *S, size_t outlen); -int blake2s_init_key(blake2s_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2s_init_param(blake2s_state *S, const blake2s_param *P); -int blake2s_update(blake2s_state *S, const void *in, size_t inlen); -int blake2s_final(blake2s_state *S, void *out, size_t outlen); - -int blake2b_init(blake2b_state *S, size_t outlen); -int blake2b_init_key(blake2b_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2b_init_param(blake2b_state *S, const blake2b_param *P) - __attribute__((__nonnull__)); -int blake2b_update(blake2b_state *S, const void *in, size_t inlen); -int blake2b_final(blake2b_state *S, void *out, size_t outlen); - -int blake2sp_init(blake2sp_state *S, size_t outlen); -int blake2sp_init_key(blake2sp_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2sp_update(blake2sp_state *S, const void *in, size_t inlen); -int blake2sp_final(blake2sp_state *S, void *out, size_t outlen); - -int blake2bp_init(blake2bp_state *S, size_t outlen); -int blake2bp_init_key(blake2bp_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2bp_update(blake2bp_state *S, const void *in, size_t inlen); -int blake2bp_final(blake2bp_state *S, void *out, size_t outlen); - -int blake2xs_init(blake2xs_state *S, const size_t outlen); -int blake2xs_init_key(blake2xs_state *S, const size_t outlen, const void *key, - size_t keylen); -int blake2xs_update(blake2xs_state *S, const void *in, size_t inlen); -int blake2xs_final(blake2xs_state *S, void *out, size_t outlen); - -int blake2xb_init(blake2xb_state *S, const size_t outlen); -int blake2xb_init_key(blake2xb_state *S, const size_t outlen, const void *key, - size_t keylen); -int blake2xb_update(blake2xb_state *S, const void *in, size_t inlen); -int blake2xb_final(blake2xb_state *S, void *out, size_t outlen); - -int blake2s(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2b(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2sp(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2bp(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2xs(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2xb(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2b_stream(FILE *stream, void *resstream, size_t outbytes) { - int ret = -1; - size_t sum, n; - blake2b_state S[1]; - static const size_t buffer_length = 32768; - uint8_t *buffer = (uint8_t *)malloc(buffer_length); - - if (!buffer) - return -1; - - blake2b_init(S, outbytes); - - while (1) { - sum = 0; - - while (1) { - n = fread(buffer + sum, 1, buffer_length - sum, stream); - sum += n; - - if (buffer_length == sum) - break; - - if (0 == n) { - if (ferror(stream)) - goto cleanup_buffer; - - goto final_process; - } - - if (feof(stream)) - goto final_process; - } - - blake2b_update(S, buffer, buffer_length); - } - -final_process:; - - if (sum > 0) - blake2b_update(S, buffer, sum); - - blake2b_final(S, resstream, outbytes); - ret = 0; -cleanup_buffer: - free(buffer); - return ret; -} diff --git a/tests/source/coreutils/b2sum-blake2b-ref.c b/tests/source/coreutils/b2sum-blake2b-ref.c deleted file mode 100644 index e86bb6d..0000000 --- a/tests/source/coreutils/b2sum-blake2b-ref.c +++ /dev/null @@ -1,3178 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef long unsigned int size_t; -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -enum blake2s_constant { - BLAKE2S_BLOCKBYTES = 64, - BLAKE2S_OUTBYTES = 32, - BLAKE2S_KEYBYTES = 32, - BLAKE2S_SALTBYTES = 8, - BLAKE2S_PERSONALBYTES = 8 -}; - -enum blake2b_constant { - BLAKE2B_BLOCKBYTES = 128, - BLAKE2B_OUTBYTES = 64, - BLAKE2B_KEYBYTES = 64, - BLAKE2B_SALTBYTES = 16, - BLAKE2B_PERSONALBYTES = 16 -}; - -typedef struct blake2s_state__ { - uint32_t h[8]; - uint32_t t[2]; - uint32_t f[2]; - uint8_t buf[BLAKE2S_BLOCKBYTES]; - size_t buflen; - size_t outlen; - uint8_t last_node; -} blake2s_state; - -typedef struct blake2b_state__ { - uint64_t h[8]; - uint64_t t[2]; - uint64_t f[2]; - uint8_t buf[BLAKE2B_BLOCKBYTES]; - size_t buflen; - size_t outlen; - uint8_t last_node; -} blake2b_state; - -typedef struct blake2sp_state__ { - blake2s_state S[8][1]; - blake2s_state R[1]; - uint8_t buf[8 * BLAKE2S_BLOCKBYTES]; - size_t buflen; - size_t outlen; -} blake2sp_state; - -typedef struct blake2bp_state__ { - blake2b_state S[4][1]; - blake2b_state R[1]; - uint8_t buf[4 * BLAKE2B_BLOCKBYTES]; - size_t buflen; - size_t outlen; -} blake2bp_state; - -struct blake2s_param__ { - uint8_t digest_length; - uint8_t key_length; - uint8_t fanout; - uint8_t depth; - uint32_t leaf_length; - uint32_t node_offset; - uint16_t xof_length; - uint8_t node_depth; - uint8_t inner_length; - uint8_t salt[BLAKE2S_SALTBYTES]; - uint8_t personal[BLAKE2S_PERSONALBYTES]; -} __attribute__((__packed__)); - -typedef struct blake2s_param__ blake2s_param; - -struct blake2b_param__ { - uint8_t digest_length; - uint8_t key_length; - uint8_t fanout; - uint8_t depth; - uint32_t leaf_length; - uint32_t node_offset; - uint32_t xof_length; - uint8_t node_depth; - uint8_t inner_length; - uint8_t reserved[14]; - uint8_t salt[BLAKE2B_SALTBYTES]; - uint8_t personal[BLAKE2B_PERSONALBYTES]; -} __attribute__((__packed__)); - -typedef struct blake2b_param__ blake2b_param; - -typedef struct blake2xs_state__ { - blake2s_state S[1]; - blake2s_param P[1]; -} blake2xs_state; - -typedef struct blake2xb_state__ { - blake2b_state S[1]; - blake2b_param P[1]; -} blake2xb_state; - -enum { - BLAKE2_DUMMY_1 = 1 / (sizeof(blake2s_param) == BLAKE2S_OUTBYTES), - BLAKE2_DUMMY_2 = 1 / (sizeof(blake2b_param) == BLAKE2B_OUTBYTES) -}; - -int blake2s_init(blake2s_state *S, size_t outlen); -int blake2s_init_key(blake2s_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2s_init_param(blake2s_state *S, const blake2s_param *P); -int blake2s_update(blake2s_state *S, const void *in, size_t inlen); -int blake2s_final(blake2s_state *S, void *out, size_t outlen); - -int blake2b_init(blake2b_state *S, size_t outlen); -int blake2b_init_key(blake2b_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2b_init_param(blake2b_state *S, const blake2b_param *P) - __attribute__((__nonnull__)); -int blake2b_update(blake2b_state *S, const void *in, size_t inlen); -int blake2b_final(blake2b_state *S, void *out, size_t outlen); - -int blake2sp_init(blake2sp_state *S, size_t outlen); -int blake2sp_init_key(blake2sp_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2sp_update(blake2sp_state *S, const void *in, size_t inlen); -int blake2sp_final(blake2sp_state *S, void *out, size_t outlen); - -int blake2bp_init(blake2bp_state *S, size_t outlen); -int blake2bp_init_key(blake2bp_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2bp_update(blake2bp_state *S, const void *in, size_t inlen); -int blake2bp_final(blake2bp_state *S, void *out, size_t outlen); - -int blake2xs_init(blake2xs_state *S, const size_t outlen); -int blake2xs_init_key(blake2xs_state *S, const size_t outlen, const void *key, - size_t keylen); -int blake2xs_update(blake2xs_state *S, const void *in, size_t inlen); -int blake2xs_final(blake2xs_state *S, void *out, size_t outlen); - -int blake2xb_init(blake2xb_state *S, const size_t outlen); -int blake2xb_init_key(blake2xb_state *S, const size_t outlen, const void *key, - size_t keylen); -int blake2xb_update(blake2xb_state *S, const void *in, size_t inlen); -int blake2xb_final(blake2xb_state *S, void *out, size_t outlen); - -int blake2s(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2b(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2sp(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2bp(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2xs(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2xb(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -static inline uint32_t load32(const void *src) { - - uint32_t w; - memcpy(&w, src, sizeof w); - return w; -} - -static inline uint64_t load64(const void *src) { - - uint64_t w; - memcpy(&w, src, sizeof w); - return w; -} - -static inline uint16_t load16(const void *src) { - - uint16_t w; - memcpy(&w, src, sizeof w); - return w; -} - -static inline void store16(void *dst, uint16_t w) { memcpy(dst, &w, sizeof w); } - -static inline void store32(void *dst, uint32_t w) { memcpy(dst, &w, sizeof w); } - -static inline void store64(void *dst, uint64_t w) { memcpy(dst, &w, sizeof w); } - -static inline uint64_t load48(const void *src) { - const uint8_t *p = (const uint8_t *)src; - return ((uint64_t)(p[0]) << 0) | ((uint64_t)(p[1]) << 8) | - ((uint64_t)(p[2]) << 16) | ((uint64_t)(p[3]) << 24) | - ((uint64_t)(p[4]) << 32) | ((uint64_t)(p[5]) << 40); -} - -static inline void store48(void *dst, uint64_t w) { - uint8_t *p = (uint8_t *)dst; - p[0] = (uint8_t)(w >> 0); - p[1] = (uint8_t)(w >> 8); - p[2] = (uint8_t)(w >> 16); - p[3] = (uint8_t)(w >> 24); - p[4] = (uint8_t)(w >> 32); - p[5] = (uint8_t)(w >> 40); -} - -static inline uint32_t rotr32(const uint32_t w, const unsigned c) { - return (w >> c) | (w << (32 - c)); -} - -static inline uint64_t rotr64(const uint64_t w, const unsigned c) { - return (w >> c) | (w << (64 - c)); -} - -static inline void secure_zero_memory(void *v, size_t n) { - static void *(*const volatile memset_v)(void *, int, size_t) = &memset; - memset_v(v, 0, n); -} - -static const uint64_t blake2b_IV[8] = { - 0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL, 0x3c6ef372fe94f82bULL, - 0xa54ff53a5f1d36f1ULL, 0x510e527fade682d1ULL, 0x9b05688c2b3e6c1fULL, - 0x1f83d9abfb41bd6bULL, 0x5be0cd19137e2179ULL}; - -static const uint8_t blake2b_sigma[12][16] = { - {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, - {14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3}, - {11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4}, - {7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8}, - {9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13}, - {2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9}, - {12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11}, - {13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10}, - {6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5}, - {10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0}, - {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, - {14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3}}; - -static void blake2b_set_lastnode(blake2b_state *S) { S->f[1] = (uint64_t)-1; } - -static int blake2b_is_lastblock(const blake2b_state *S) { return S->f[0] != 0; } - -static void blake2b_set_lastblock(blake2b_state *S) { - if (S->last_node) - blake2b_set_lastnode(S); - - S->f[0] = (uint64_t)-1; -} - -static void blake2b_increment_counter(blake2b_state *S, const uint64_t inc) { - S->t[0] += inc; - S->t[1] += (S->t[0] < inc); -} - -static void blake2b_init0(blake2b_state *S) { - size_t i; - memset(S, 0, sizeof(blake2b_state)); - - for (i = 0; i < 8; ++i) - S->h[i] = blake2b_IV[i]; -} - -int blake2b_init_param(blake2b_state *S, const blake2b_param *P) { - const uint8_t *p = (const uint8_t *)(P); - size_t i; - - blake2b_init0(S); - - for (i = 0; i < 8; ++i) - S->h[i] ^= load64(p + sizeof(S->h[i]) * i); - - S->outlen = P->digest_length; - return 0; -} - -int blake2b_init(blake2b_state *S, size_t outlen) { - blake2b_param P[1]; - - if ((!outlen) || (outlen > BLAKE2B_OUTBYTES)) - return -1; - - P->digest_length = (uint8_t)outlen; - P->key_length = 0; - P->fanout = 1; - P->depth = 1; - store32(&P->leaf_length, 0); - store32(&P->node_offset, 0); - store32(&P->xof_length, 0); - P->node_depth = 0; - P->inner_length = 0; - memset(P->reserved, 0, sizeof(P->reserved)); - memset(P->salt, 0, sizeof(P->salt)); - memset(P->personal, 0, sizeof(P->personal)); - return blake2b_init_param(S, P); -} - -int blake2b_init_key(blake2b_state *S, size_t outlen, const void *key, - size_t keylen) { - blake2b_param P[1]; - - if ((!outlen) || (outlen > BLAKE2B_OUTBYTES)) - return -1; - - if (!key || !keylen || keylen > BLAKE2B_KEYBYTES) - return -1; - - P->digest_length = (uint8_t)outlen; - P->key_length = (uint8_t)keylen; - P->fanout = 1; - P->depth = 1; - store32(&P->leaf_length, 0); - store32(&P->node_offset, 0); - store32(&P->xof_length, 0); - P->node_depth = 0; - P->inner_length = 0; - memset(P->reserved, 0, sizeof(P->reserved)); - memset(P->salt, 0, sizeof(P->salt)); - memset(P->personal, 0, sizeof(P->personal)); - - if (blake2b_init_param(S, P) < 0) - return -1; - - { - uint8_t block[BLAKE2B_BLOCKBYTES]; - memset(block, 0, BLAKE2B_BLOCKBYTES); - memcpy(block, key, keylen); - blake2b_update(S, block, BLAKE2B_BLOCKBYTES); - secure_zero_memory(block, BLAKE2B_BLOCKBYTES); - } - return 0; -} -static void blake2b_compress(blake2b_state *S, - const uint8_t block[BLAKE2B_BLOCKBYTES]) { - uint64_t m[16]; - uint64_t v[16]; - size_t i; - - for (i = 0; i < 16; ++i) { - m[i] = load64(block + i * sizeof(m[i])); - } - - for (i = 0; i < 8; ++i) { - v[i] = S->h[i]; - } - - v[8] = blake2b_IV[0]; - v[9] = blake2b_IV[1]; - v[10] = blake2b_IV[2]; - v[11] = blake2b_IV[3]; - v[12] = blake2b_IV[4] ^ S->t[0]; - v[13] = blake2b_IV[5] ^ S->t[1]; - v[14] = blake2b_IV[6] ^ S->f[0]; - v[15] = blake2b_IV[7] ^ S->f[1]; - - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[0][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[0][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[0][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[0][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[0][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[0][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[0][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[0][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[0][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[0][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[0][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[0][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[0][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[0][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[0][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[0][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[1][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[1][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[1][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[1][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[1][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[1][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[1][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[1][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[1][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[1][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[1][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[1][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[1][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[1][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[1][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[1][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[2][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[2][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[2][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[2][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[2][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[2][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[2][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[2][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[2][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[2][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[2][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[2][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[2][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[2][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[2][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[2][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[3][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[3][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[3][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[3][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[3][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[3][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[3][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[3][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[3][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[3][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[3][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[3][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[3][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[3][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[3][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[3][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[4][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[4][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[4][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[4][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[4][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[4][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[4][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[4][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[4][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[4][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[4][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[4][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[4][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[4][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[4][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[4][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[5][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[5][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[5][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[5][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[5][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[5][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[5][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[5][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[5][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[5][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[5][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[5][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[5][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[5][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[5][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[5][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[6][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[6][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[6][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[6][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[6][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[6][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[6][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[6][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[6][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[6][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[6][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[6][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[6][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[6][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[6][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[6][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[7][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[7][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[7][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[7][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[7][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[7][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[7][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[7][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[7][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[7][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[7][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[7][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[7][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[7][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[7][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[7][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[8][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[8][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[8][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[8][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[8][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[8][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[8][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[8][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[8][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[8][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[8][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[8][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[8][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[8][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[8][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[8][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[9][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[9][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[9][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[9][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[9][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[9][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[9][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[9][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[9][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[9][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[9][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[9][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[9][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[9][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[9][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[9][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[10][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[10][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[10][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[10][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[10][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[10][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[10][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[10][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[10][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[10][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[10][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[10][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[10][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[10][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[10][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[10][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[11][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[11][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[11][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[11][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[11][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[11][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[11][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[11][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[11][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[11][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[11][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[11][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[11][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[11][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[11][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[11][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - - for (i = 0; i < 8; ++i) { - S->h[i] = S->h[i] ^ v[i] ^ v[i + 8]; - } -} - -int blake2b_update(blake2b_state *S, const void *pin, size_t inlen) { - const unsigned char *in = (const unsigned char *)pin; - if (inlen > 0) { - size_t left = S->buflen; - size_t fill = BLAKE2B_BLOCKBYTES - left; - if (inlen > fill) { - S->buflen = 0; - memcpy(S->buf + left, in, fill); - blake2b_increment_counter(S, BLAKE2B_BLOCKBYTES); - blake2b_compress(S, S->buf); - in += fill; - inlen -= fill; - while (inlen > BLAKE2B_BLOCKBYTES) { - blake2b_increment_counter(S, BLAKE2B_BLOCKBYTES); - blake2b_compress(S, in); - in += BLAKE2B_BLOCKBYTES; - inlen -= BLAKE2B_BLOCKBYTES; - } - } - memcpy(S->buf + S->buflen, in, inlen); - S->buflen += inlen; - } - return 0; -} - -int blake2b_final(blake2b_state *S, void *out, size_t outlen) { - uint8_t buffer[BLAKE2B_OUTBYTES] = {0}; - size_t i; - - if (out == ((void *)0) || outlen < S->outlen) - return -1; - - if (blake2b_is_lastblock(S)) - return -1; - - blake2b_increment_counter(S, S->buflen); - blake2b_set_lastblock(S); - memset(S->buf + S->buflen, 0, BLAKE2B_BLOCKBYTES - S->buflen); - blake2b_compress(S, S->buf); - - for (i = 0; i < 8; ++i) - store64(buffer + sizeof(S->h[i]) * i, S->h[i]); - - memcpy(out, buffer, S->outlen); - secure_zero_memory(buffer, sizeof(buffer)); - return 0; -} - -int blake2b(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen) { - blake2b_state S[1]; - - if (((void *)0) == in && inlen > 0) - return -1; - - if (((void *)0) == out) - return -1; - - if (((void *)0) == key && keylen > 0) - return -1; - - if (!outlen || outlen > BLAKE2B_OUTBYTES) - return -1; - - if (keylen > BLAKE2B_KEYBYTES) - return -1; - - if (keylen > 0) { - if (blake2b_init_key(S, outlen, key, keylen) < 0) - return -1; - } else { - if (blake2b_init(S, outlen) < 0) - return -1; - } - - blake2b_update(S, (const uint8_t *)in, inlen); - blake2b_final(S, out, outlen); - return 0; -} - -int blake2(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen) { - return blake2b(out, outlen, in, inlen, key, keylen); -} diff --git a/tests/source/coreutils/b2sum-digest.c b/tests/source/coreutils/b2sum-digest.c deleted file mode 100644 index ea86296..0000000 --- a/tests/source/coreutils/b2sum-digest.c +++ /dev/null @@ -1,7928 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -int blake2b_stream(FILE *stream, void *resstream, size_t outbytes) - __attribute__((__nonnull__(1))); -typedef int (*blake2fn)(FILE *, void *, size_t); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -static _Bool have_read_stdin; - -static size_t min_digest_line_length; - -static size_t digest_hex_bytes; - -static _Bool status_only = 0; - -static _Bool warn = 0; - -static _Bool ignore_missing = 0; - -static _Bool quiet = 0; - -static _Bool strict = 0; - -static int bsd_reversed = -1; - -static unsigned char digest_delim = '\n'; - -static uintmax_t digest_length; - -typedef void (*digest_output_fn)(char const *, int, void const *, - - _Bool, unsigned char, _Bool, uintmax_t); -enum { - IGNORE_MISSING_OPTION = 0x7f + 1, - STATUS_OPTION, - QUIET_OPTION, - STRICT_OPTION, - TAG_OPTION, - UNTAG_OPTION, - DEBUG_PROGRAM_OPTION, -}; - -static struct option const long_options[] = { - - {"length", 1, ((void *)0), 'l'}, - - {"check", 0, ((void *)0), 'c'}, - {"ignore-missing", 0, ((void *)0), IGNORE_MISSING_OPTION}, - {"quiet", 0, ((void *)0), QUIET_OPTION}, - {"status", 0, ((void *)0), STATUS_OPTION}, - {"warn", 0, ((void *)0), 'w'}, - {"strict", 0, ((void *)0), STRICT_OPTION}, - {"tag", 0, ((void *)0), TAG_OPTION}, - {"zero", 0, ((void *)0), 'z'}, - - {"binary", 0, ((void *)0), 'b'}, - {"text", 0, ((void *)0), 't'}, - - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - - printf(dcgettext(((void *)0), "Print or check %s (%d-bit) checksums.\n", 5) - - , - "BLAKE2b", 512); - - emit_stdin_note(); - emit_mandatory_arg_note(); - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode " - "(default unless reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -c, --check read checksums from the " - "FILEs and check them\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " -l, --length=BITS digest length in bits; must not " - "exceed the max for\n the blake2 " - "algorithm and must be a multiple of 8\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --tag create a BSD-style checksum\n", 5), - stdout) - - ; - - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -t, --text read in text mode " - "(default if reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked( - dcgettext(((void *)0), - " -t, --text read in text mode (default)\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -z, --zero end each output line " - "with NUL, not newline,\n " - " and disable file name escaping\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nThe following five options are useful only when verifying " - "checksums:\n --ignore-missing don't fail or report " - "status for missing files\n --quiet don't " - "print OK for each successfully verified file\n " - "--status don't output anything, status code shows " - "success\n --strict exit non-zero for " - "improperly formatted checksum lines\n -w, --warn " - " warn about improperly formatted checksum lines\n\n", - 5), - stdout); - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nThe sums are computed as described in %s.\n", 5) - - , - "RFC 7693"); - fputs_unlocked( - dcgettext( - ((void *)0), - "When checking, the input should be a former output of this " - "program.\nThe default mode is to print a line with: checksum, a " - "space,\na character indicating input mode ('*' for binary, ' ' " - "for text\nor where binary is insignificant), and name for each " - "FILE.\n\nNote: There is no difference between binary mode and " - "text mode on GNU systems.\n", - 5), - stdout) - - ; - - emit_ancillary_info("b2sum"); - } - - exit(status); -} -static char *filename_unescape(char *s, size_t s_len) { - char *dst = s; - - for (size_t i = 0; i < s_len; i++) { - switch (s[i]) { - case '\\': - if (i == s_len - 1) { - - return ((void *)0); - } - ++i; - switch (s[i]) { - case 'n': - *dst++ = '\n'; - break; - case 'r': - *dst++ = '\r'; - break; - case '\\': - *dst++ = '\\'; - break; - default: - - return ((void *)0); - } - break; - - case '\0': - - return ((void *)0); - - default: - *dst++ = s[i]; - break; - } - } - if (dst < s + s_len) - *dst = '\0'; - - return s; -} - -__attribute__((__pure__)) static _Bool - -hex_digits(unsigned char const *s) { - for (unsigned int i = 0; i < digest_hex_bytes; i++) { - if (!((*__ctype_b_loc())[(int)((*s))] & (unsigned short int)_ISxdigit)) - return 0; - ++s; - } - return *s == '\0'; -} - -static _Bool - -bsd_split_3(char *s, size_t s_len, unsigned char **hex_digest, char **file_name, - _Bool escaped_filename) { - size_t i; - - if (s_len == 0) - return 0; - - i = s_len - 1; - while (i && s[i] != ')') - i--; - - if (s[i] != ')') - return 0; - - *file_name = s; - - if (escaped_filename && filename_unescape(s, i) == ((void *)0)) - return 0; - - s[i++] = '\0'; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - if (s[i] != '=') - return 0; - - i++; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - *hex_digest = (unsigned char *)&s[i]; - - return hex_digits(*hex_digest); -} -static _Bool - -split_3(char *s, size_t s_len, unsigned char **hex_digest, int *binary, - char **file_name) { - - _Bool escaped_filename = 0; - size_t algo_name_len; - - size_t i = 0; - while (((s[i]) == ' ' || (s[i]) == '\t')) - ++i; - - if (s[i] == '\\') { - ++i; - escaped_filename = 1; - } - algo_name_len = strlen("BLAKE2b"); - if ((strncmp(s + i, "BLAKE2b", algo_name_len) == 0)) { - i += algo_name_len; - - char const *algo_name = &s[i - algo_name_len]; - - _Bool length_specified = s[i] == '-'; - - _Bool openssl_format = s[i] == '('; - s[i++] = '\0'; - if (!(strcmp(algo_name, "BLAKE2b") == 0)) - return 0; - if (openssl_format) - s[--i] = '('; - - digest_length = 64 * 8; - - if (length_specified) { - uintmax_t length; - char *siend; - if (!(xstrtoumax(s + i, &siend, 0, &length, ((void *)0)) == LONGINT_OK && - 0 < length && length <= digest_length && length % 8 == 0)) - return 0; - - i = siend - s; - digest_length = length; - } - digest_hex_bytes = digest_length / 4; - - if (s[i] == ' ') - ++i; - if (s[i] == '(') { - ++i; - *binary = 0; - return bsd_split_3(s + i, s_len - i, hex_digest, file_name, - escaped_filename); - } - return 0; - } - - if (s_len - i < min_digest_line_length + (s[i] == '\\')) - return 0; - - *hex_digest = (unsigned char *)&s[i]; - - unsigned char const *hp = *hex_digest; - digest_hex_bytes = 0; - while (((*__ctype_b_loc())[(int)((*hp++))] & (unsigned short int)_ISxdigit)) - digest_hex_bytes++; - if (digest_hex_bytes < 2 || digest_hex_bytes % 2 || 64 * 2 < digest_hex_bytes) - return 0; - digest_length = digest_hex_bytes * 4; - i += digest_hex_bytes; - if (!((s[i]) == ' ' || (s[i]) == '\t')) - return 0; - - s[i++] = '\0'; - - if (!hex_digits(*hex_digest)) - return 0; - - if ((s_len - i == 1) || (s[i] != ' ' && s[i] != '*')) { - - if (bsd_reversed == 0) - return 0; - bsd_reversed = 1; - } else if (bsd_reversed != 1) { - bsd_reversed = 0; - *binary = (s[i++] == '*'); - } - - *file_name = &s[i]; - - if (escaped_filename) - return filename_unescape(&s[i], s_len - i) != ((void *)0); - - return 1; -} - -static void print_filename(char const *file, _Bool escape) { - if (!escape) { - fputs_unlocked(file, stdout); - return; - } - - while (*file) { - switch (*file) { - case '\n': - fputs_unlocked("\\n", stdout); - break; - - case '\r': - fputs_unlocked("\\r", stdout); - break; - - case '\\': - fputs_unlocked("\\\\", stdout); - break; - - default: - putchar_unlocked(*file); - break; - } - file++; - } -} -static _Bool - -digest_file(char const *filename, int *binary, unsigned char *bin_result, - - _Bool *missing, uintmax_t *length) { - FILE *fp; - int err; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - *missing = 0; - - if (is_stdin) { - have_read_stdin = 1; - fp = stdin; - if (0 && *binary) { - if (*binary < 0) - *binary = !isatty(0); - if (*binary) - xset_binary_mode(0, 0); - } - } else { - fp = fopen_safer(filename, (0 && *binary ? "rb" : "r")); - if (fp == ((void *)0)) { - if (ignore_missing && (*__errno_location()) == 2) { - *missing = 1; - return 1; - } - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - } - - fadvise(fp, FADVISE_SEQUENTIAL); - err = blake2b_stream(fp, bin_result, digest_length / 8); - - err = err ? (*__errno_location()) : 0; - if (is_stdin) - clearerr_unlocked(fp); - else if (rpl_fclose(fp) != 0 && !err) - err = (*__errno_location()); - - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return 1; -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - unsigned char const *bin_buffer = digest; - - _Bool needs_escape = - delim == '\n' && - (strchr(file, '\\') || strchr(file, '\n') || strchr(file, '\r')); - if (needs_escape) - putchar_unlocked('\\'); - - if (tagged) { - fputs_unlocked("BLAKE2b", stdout); - - if (digest_length < 64 * 8) - printf("-%" - "l" - "u", - digest_length); - - fputs_unlocked(" (", stdout); - print_filename(file, needs_escape); - fputs_unlocked(") = ", stdout); - } - - for (size_t i = 0; i < (digest_hex_bytes / 2); ++i) - printf("%02x", bin_buffer[i]); - - if (!tagged) { - putchar_unlocked(' '); - - putchar_unlocked(binary_file ? '*' : ' '); - - print_filename(file, needs_escape); - } - - putchar_unlocked(delim); -} - -static _Bool - -digest_check(char const *checkfile_name) { - FILE *checkfile_stream; - uintmax_t n_misformatted_lines = 0; - uintmax_t n_improperly_formatted_lines = 0; - uintmax_t n_mismatched_checksums = 0; - uintmax_t n_open_or_read_failures = 0; - - _Bool properly_formatted_lines = 0; - - _Bool matched_checksums = 0; - unsigned char bin_buffer_unaligned[(512 / 8) + 8]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 8); - uintmax_t line_number; - char *line; - size_t line_chars_allocated; - - _Bool is_stdin = (strcmp(checkfile_name, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - checkfile_name = dcgettext(((void *)0), "standard input", 5); - checkfile_stream = stdin; - } else { - checkfile_stream = fopen_safer(checkfile_name, "r"); - if (checkfile_stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - return 0; - } - } - - line_number = 0; - line = ((void *)0); - line_chars_allocated = 0; - do { - char *filename; - int binary; - unsigned char *hex_digest; - ssize_t line_length; - - ++line_number; - if (line_number == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum " - "lines\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, checkfile_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - line_length = getline(&line, &line_chars_allocated, checkfile_stream); - if (line_length <= 0) - break; - - if (line[0] == ' continue; - - - line_length -= line[line_length - 1] == '\n'; - - line_length -= line[line_length - (0 < line_length)] == '\r'; - - - if (line_length == 0) - continue; - - line[line_length] = '\0'; - - if (! (split_3 (line, line_length, &hex_digest, &binary, &filename) - && ! (is_stdin && (strcmp (filename, "-") == 0)))) - { - ++n_misformatted_lines; - - if (warn) { - error(0, 0, - - dcgettext(((void *)0), - "%s: %" - "l" - "u" - ": improperly formatted %s checksum line", - 5) - - , - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name), - line_number, "BLAKE2b"); - } - - ++n_improperly_formatted_lines; - } - else - { - static const char bin2hex[] = {'0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; - - _Bool ok; - - _Bool missing; - - _Bool needs_escape = !status_only && strchr(filename, '\n'); - - properly_formatted_lines = 1; - - uintmax_t length; - ok = digest_file(filename, &binary, bin_buffer, &missing, &length); - - if (!ok) { - ++n_open_or_read_failures; - if (!status_only) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - printf(": %s\n", dcgettext(((void *)0), "FAILED open or read", 5)); - } - } else if (ignore_missing && missing) { - - ; - } else { - size_t digest_bin_bytes = digest_hex_bytes / 2; - size_t cnt; - - for (cnt = 0; cnt < digest_bin_bytes; ++cnt) { - if ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt])) { - int __c = (hex_digest[2 * cnt]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt]); - } else - __res = (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt])]; - __res; - })) - - != bin2hex[bin_buffer[cnt] >> 4] || - ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt + 1]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt + 1])) { - int __c = (hex_digest[2 * cnt + 1]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt + 1]); - } else - __res = - (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt + 1])]; - __res; - })) - - != (bin2hex[bin_buffer[cnt] & 0xf]))) - break; - } - if (cnt != digest_bin_bytes) - ++n_mismatched_checksums; - else - matched_checksums = 1; - - if (!status_only) { - if (cnt != digest_bin_bytes || !quiet) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - } - - if (cnt != digest_bin_bytes) - printf(": %s\n", dcgettext(((void *)0), "FAILED", 5)); - else if (!quiet) - printf(": %s\n", dcgettext(((void *)0), "OK", 5)); - } - } - } - } while (!feof_unlocked(checkfile_stream) && - !ferror_unlocked(checkfile_stream)); - - free(line); - - int err = ferror_unlocked(checkfile_stream) ? 0 : -1; - if (is_stdin) - clearerr_unlocked(checkfile_stream); - else if (rpl_fclose(checkfile_stream) != 0 && err < 0) - err = (*__errno_location()); - - if (0 <= err) { - error( - 0, err, err ? "%s" : dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - return 0; - } - - if (!properly_formatted_lines) { - - error( - 0, 0, - dcgettext(((void *)0), "%s: no properly formatted checksum lines found", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - } else { - if (!status_only) { - if (n_misformatted_lines != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " line is improperly formatted", - "WARNING: %" - "l" - "u" - " lines are improperly formatted", - select_plural(n_misformatted_lines), 5) - - ), - n_misformatted_lines); - - if (n_open_or_read_failures != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " listed file could not be read", - "WARNING: %" - "l" - "u" - " listed files could not be read", - select_plural(n_open_or_read_failures), 5) - - ), - n_open_or_read_failures); - - if (n_mismatched_checksums != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " computed checksum did NOT match", - "WARNING: %" - "l" - "u" - " computed checksums did NOT match", - select_plural(n_mismatched_checksums), 5) - - ), - n_mismatched_checksums); - - if (ignore_missing && !matched_checksums) - error(0, 0, dcgettext(((void *)0), "%s: no file was verified", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - } - } - - return (properly_formatted_lines && matched_checksums && - n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && - (!strict || n_improperly_formatted_lines == 0)); -} - -int main(int argc, char **argv) { - unsigned char bin_buffer_unaligned[(512 / 8) + 8]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 8); - - _Bool do_check = 0; - int opt; - - _Bool ok = 1; - - int binary = -1; - - _Bool prefix_tag = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - setvbuf(stdout, ((void *)0), 1, 0); - - char const *short_opts = "l:bctwz"; - char const *digest_length_str = ""; - - while ((opt = getopt_long(argc, argv, short_opts, long_options, - ((void *)0))) != -1) - switch (opt) { - case 'l': - digest_length = - xdectoumax(optarg, 0, (18446744073709551615UL), "", - - dcgettext(((void *)0), "invalid length", 5), 0); - digest_length_str = optarg; - if (digest_length % 8 != 0) { - error(0, 0, dcgettext(((void *)0), "invalid length: %s", 5), - quote(digest_length_str)); - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"length is " - "not a multiple of 8\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "length is not a multiple of 8", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "length is not a multiple of 8", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - break; - - case 'c': - do_check = 1; - break; - case STATUS_OPTION: - status_only = 1; - warn = 0; - quiet = 0; - break; - - case 'b': - binary = 1; - break; - case 't': - binary = 0; - break; - - case 'w': - status_only = 0; - warn = 1; - quiet = 0; - break; - case IGNORE_MISSING_OPTION: - ignore_missing = 1; - break; - case QUIET_OPTION: - status_only = 0; - warn = 0; - quiet = 1; - break; - case STRICT_OPTION: - strict = 1; - break; - - case TAG_OPTION: - prefix_tag = 1; - binary = 1; - break; - case 'z': - digest_delim = '\0'; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "b2sum", "GNU coreutils", Version, ("Padraig Brady"), - ("Samuel Neves"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - min_digest_line_length = 3; - - if (digest_length > 64 * 8) { - error(0, 0, dcgettext(((void *)0), "invalid length: %s", 5), - quote(digest_length_str)); - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"maximum digest length for " - "%s is %d bits\", 5), quote (\"BLAKE2b\"), 64 * 8), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "maximum digest length for %s is %d bits", 5), - quote("BLAKE2b"), 64 * 8), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "maximum digest length for %s is %d bits", 5), - quote("BLAKE2b"), 64 * 8), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - if (digest_length == 0) { - - digest_length = 64 * 8; - } - digest_hex_bytes = digest_length / 4; - if (prefix_tag && !binary) { - - error(0, 0, - dcgettext(((void *)0), "--tag does not support --text mode", 5)); - usage(1); - } - - if (digest_delim != '\n' && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --zero option is not supported when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (prefix_tag && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --tag option is meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (0 <= binary && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --binary and --text options are meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (ignore_missing && !do_check) { - error(0, 0, - - dcgettext(((void *)0), - "the --ignore-missing option is meaningful only when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (status_only && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --status option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (warn && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --warn option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (quiet && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --quiet option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (strict & !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --strict option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (!0 && binary < 0) - binary = 0; - - char **operand_lim = argv + argc; - if (optind == argc) - *operand_lim++ = bad_cast("-"); - - for (char **operandp = argv + optind; operandp < operand_lim; operandp++) { - char *file = *operandp; - if (do_check) - ok &= digest_check(file); - else { - int binary_file = binary; - - _Bool missing; - uintmax_t length; - - if (!digest_file(file, &binary_file, bin_buffer, &missing, &length)) - ok = 0; - else { - output_file(file, binary_file, bin_buffer, prefix_tag, digest_delim, - optind != argc, length); - } - } - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/base32-basenc.c b/tests/source/coreutils/base32-basenc.c deleted file mode 100644 index 5802fb6..0000000 --- a/tests/source/coreutils/base32-basenc.c +++ /dev/null @@ -1,7900 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -inline _Bool - -c_isalnum(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isalpha(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isascii(int c) { - switch (c) { - case ' ': - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_isblank(int c) { - return c == ' ' || c == '\t'; -} - -inline _Bool - -c_iscntrl(int c) { - switch (c) { - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isgraph(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_islower(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isprint(int c) { - switch (c) { - case ' ': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_ispunct(int c) { - switch (c) { - case '!': - case '"': - case ' return 1; default: - return 0; - } -} - -inline _Bool - -c_isspace(int c) { - switch (c) { - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isupper(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isxdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline int c_tolower(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return c - 'A' + 'a'; - default: - return c; - } -} - -inline int c_toupper(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return c - 'a' + 'A'; - default: - return c; - } -} - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -struct base32_decode_context { - int i; - char buf[8]; -}; - -extern _Bool isbase32(char ch) __attribute__((__const__)); - -extern void base32_encode(const char *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t outlen); - -extern idx_t base32_encode_alloc(const char *in, idx_t inlen, char **out); - -extern void base32_decode_ctx_init(struct base32_decode_context *ctx); - -extern _Bool base32_decode_ctx(struct base32_decode_context *ctx, - const char *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen); - -extern _Bool base32_decode_alloc_ctx(struct base32_decode_context *ctx, - const char *in, idx_t inlen, char **out, - idx_t *outlen); -static struct option const long_options[] = { - {"decode", 0, 0, 'd'}, - {"wrap", 1, 0, 'w'}, - {"ignore-garbage", 0, 0, 'i'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]\n", 5) - - , - program_name); - - printf(dcgettext(((void *)0), - "Base%d encode or decode FILE, or standard input, to " - "standard output.\n", - 5) - - , - 32); - - emit_stdin_note(); - emit_mandatory_arg_note(); - fputs_unlocked( - dcgettext( - ((void *)0), - " -d, --decode decode data\n -i, --ignore-garbage when " - "decoding, ignore non-alphabet characters\n -w, --wrap=COLS " - "wrap encoded lines after COLS character (default 76).\n " - " Use 0 to disable line wrapping\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf( - dcgettext(((void *)0), - "\nThe data are encoded as described for the %s alphabet in " - "RFC 4648.\nWhen decoding, the input may contain newlines in " - "addition to the bytes of\nthe formal %s alphabet. Use " - "--ignore-garbage to attempt to recover\nfrom any other " - "non-alphabet bytes in the encoded stream.\n", - 5) - - , - "base32", "base32"); - - emit_ancillary_info("base32"); - } - - exit(status); -} -_Static_assert((1024 * 3 * 10) % 40 == 0, "verify (" - "ENC_BLOCKSIZE % 40 == 0" - ")"); -_Static_assert((1024 * 5) % 40 == 0, "verify (" - "DEC_BLOCKSIZE % 40 == 0" - ")"); -static void wrap_write(char const *buffer, idx_t len, idx_t wrap_column, - idx_t *current_column, FILE *out) { - if (wrap_column == 0) { - - if (fwrite_unlocked(buffer, 1, len, stdout) < len) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else - for (idx_t written = 0; written < len;) { - idx_t to_write = (((wrap_column - *current_column) < (len - written)) - ? (wrap_column - *current_column) - : (len - written)); - - if (to_write == 0) { - if (fputc_unlocked('\n', out) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - *current_column = 0; - } else { - if (fwrite_unlocked(buffer + written, 1, to_write, stdout) < to_write) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - *current_column += to_write; - written += to_write; - } - } -} - -static _Noreturn void finish_and_exit(FILE *in, char const *infile) { - if (rpl_fclose(in) != 0) { - if ((strcmp(infile, "-") == 0)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"closing standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - else - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - exit(0); -} - -static _Noreturn void do_encode(FILE *in, char const *infile, FILE *out, - idx_t wrap_column) { - idx_t current_column = 0; - char *inbuf, *outbuf; - idx_t sum; - - inbuf = xmalloc((1024 * 3 * 10)); - outbuf = xmalloc((((((1024 * 3 * 10)) + 4) / 5) * 8)); - - do { - idx_t n; - - sum = 0; - do { - n = fread_unlocked(inbuf + sum, 1, (1024 * 3 * 10) - sum, in); - sum += n; - } while (!feof_unlocked(in) && !ferror_unlocked(in) && - sum < (1024 * 3 * 10)); - - if (sum > 0) { - - base32_encode(inbuf, sum, outbuf, ((((sum) + 4) / 5) * 8)); - - wrap_write(outbuf, ((((sum) + 4) / 5) * 8), wrap_column, ¤t_column, - out); - } - } while (!feof_unlocked(in) && !ferror_unlocked(in) && - sum == (1024 * 3 * 10)); - - if (wrap_column && current_column > 0 && fputc_unlocked('\n', out) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (ferror_unlocked(in)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - finish_and_exit(in, infile); -} - -static _Noreturn void do_decode(FILE *in, char const *infile, FILE *out, - _Bool ignore_garbage) { - char *inbuf, *outbuf; - idx_t sum; - struct base32_decode_context ctx; - - inbuf = xmalloc((((((1024 * 5)) + 4) / 5) * 8)); - outbuf = xmalloc((1024 * 5)); - - base32_decode_ctx_init(&ctx); - - do { - - _Bool ok; - - sum = 0; - do { - idx_t n = fread_unlocked(inbuf + sum, 1, - (((((1024 * 5)) + 4) / 5) * 8) - sum, in); - - if (ignore_garbage) { - for (idx_t i = 0; n > 0 && i < n;) { - if (isbase32(inbuf[sum + i]) || inbuf[sum + i] == '=') - i++; - else - memmove(inbuf + sum + i, inbuf + sum + i + 1, --n - i); - } - } - - sum += n; - - if (ferror_unlocked(in)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } while (sum < (((((1024 * 5)) + 4) / 5) * 8) && !feof_unlocked(in)); - - for (int k = 0; k < 1 + !!feof_unlocked(in); k++) { - if (k == 1 && ctx.i == 0) - break; - idx_t n = (1024 * 5); - ok = base32_decode_ctx(&ctx, inbuf, (k == 0 ? sum : 0), outbuf, &n); - - if (fwrite_unlocked(outbuf, 1, n, out) < n) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (!ok) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } while (!feof_unlocked(in)); - - finish_and_exit(in, infile); -} - -int main(int argc, char **argv) { - int opt; - FILE *input_fh; - char const *infile; - - _Bool decode = 0; - - _Bool ignore_garbage = 0; - - idx_t wrap_column = 76; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((opt = getopt_long(argc, argv, "diw:", long_options, ((void *)0))) != - -1) - switch (opt) { - case 'd': - decode = 1; - break; - - case 'w': { - intmax_t w; - strtol_error s_err = xstrtoimax(optarg, ((void *)0), 10, &w, ""); - if (LONGINT_OVERFLOW < s_err || w < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, \"%s: %s\", dcgettext (((void *)0), \"invalid " - "wrap size\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, "%s: %s", - dcgettext(((void *)0), "invalid wrap size", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, "%s: %s", - dcgettext(((void *)0), "invalid wrap size", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - wrap_column = - s_err == LONGINT_OVERFLOW || (9223372036854775807L) < w ? 0 : w; - } break; - - case 'i': - ignore_garbage = 1; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "base32", "GNU coreutils", Version, - ("Simon Josefsson"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - break; - } - if (argc - optind > 1) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 1])); - usage(1); - } - - if (optind < argc) - infile = argv[optind]; - else - infile = "-"; - - if ((strcmp(infile, "-") == 0)) { - xset_binary_mode(0, 0); - input_fh = stdin; - } else { - input_fh = fopen(infile, "rb"); - if (input_fh == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - fadvise(input_fh, FADVISE_SEQUENTIAL); - - if (decode) - do_decode(input_fh, infile, stdout, ignore_garbage); - else - do_encode(input_fh, infile, stdout, wrap_column); -} diff --git a/tests/source/coreutils/base64-basenc.c b/tests/source/coreutils/base64-basenc.c deleted file mode 100644 index 2b9f9f1..0000000 --- a/tests/source/coreutils/base64-basenc.c +++ /dev/null @@ -1,7900 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -inline _Bool - -c_isalnum(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isalpha(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isascii(int c) { - switch (c) { - case ' ': - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_isblank(int c) { - return c == ' ' || c == '\t'; -} - -inline _Bool - -c_iscntrl(int c) { - switch (c) { - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isgraph(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_islower(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isprint(int c) { - switch (c) { - case ' ': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_ispunct(int c) { - switch (c) { - case '!': - case '"': - case ' return 1; default: - return 0; - } -} - -inline _Bool - -c_isspace(int c) { - switch (c) { - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isupper(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isxdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline int c_tolower(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return c - 'A' + 'a'; - default: - return c; - } -} - -inline int c_toupper(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return c - 'a' + 'A'; - default: - return c; - } -} - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -struct base64_decode_context { - int i; - char buf[4]; -}; - -extern _Bool isbase64(char ch) __attribute__((__const__)); - -extern void base64_encode(const char *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t outlen); - -extern idx_t base64_encode_alloc(const char *in, idx_t inlen, char **out); - -extern void base64_decode_ctx_init(struct base64_decode_context *ctx); - -extern _Bool base64_decode_ctx(struct base64_decode_context *ctx, - const char *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen); - -extern _Bool base64_decode_alloc_ctx(struct base64_decode_context *ctx, - const char *in, idx_t inlen, char **out, - idx_t *outlen); -static struct option const long_options[] = { - {"decode", 0, 0, 'd'}, - {"wrap", 1, 0, 'w'}, - {"ignore-garbage", 0, 0, 'i'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]\n", 5) - - , - program_name); - - printf(dcgettext(((void *)0), - "Base%d encode or decode FILE, or standard input, to " - "standard output.\n", - 5) - - , - 64); - - emit_stdin_note(); - emit_mandatory_arg_note(); - fputs_unlocked( - dcgettext( - ((void *)0), - " -d, --decode decode data\n -i, --ignore-garbage when " - "decoding, ignore non-alphabet characters\n -w, --wrap=COLS " - "wrap encoded lines after COLS character (default 76).\n " - " Use 0 to disable line wrapping\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf( - dcgettext(((void *)0), - "\nThe data are encoded as described for the %s alphabet in " - "RFC 4648.\nWhen decoding, the input may contain newlines in " - "addition to the bytes of\nthe formal %s alphabet. Use " - "--ignore-garbage to attempt to recover\nfrom any other " - "non-alphabet bytes in the encoded stream.\n", - 5) - - , - "base64", "base64"); - - emit_ancillary_info("base64"); - } - - exit(status); -} -_Static_assert((1024 * 3 * 10) % 12 == 0, "verify (" - "ENC_BLOCKSIZE % 12 == 0" - ")"); -_Static_assert((1024 * 3) % 12 == 0, "verify (" - "DEC_BLOCKSIZE % 12 == 0" - ")"); -static void wrap_write(char const *buffer, idx_t len, idx_t wrap_column, - idx_t *current_column, FILE *out) { - if (wrap_column == 0) { - - if (fwrite_unlocked(buffer, 1, len, stdout) < len) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else - for (idx_t written = 0; written < len;) { - idx_t to_write = (((wrap_column - *current_column) < (len - written)) - ? (wrap_column - *current_column) - : (len - written)); - - if (to_write == 0) { - if (fputc_unlocked('\n', out) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - *current_column = 0; - } else { - if (fwrite_unlocked(buffer + written, 1, to_write, stdout) < to_write) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - *current_column += to_write; - written += to_write; - } - } -} - -static _Noreturn void finish_and_exit(FILE *in, char const *infile) { - if (rpl_fclose(in) != 0) { - if ((strcmp(infile, "-") == 0)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"closing standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - else - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - exit(0); -} - -static _Noreturn void do_encode(FILE *in, char const *infile, FILE *out, - idx_t wrap_column) { - idx_t current_column = 0; - char *inbuf, *outbuf; - idx_t sum; - - inbuf = xmalloc((1024 * 3 * 10)); - outbuf = xmalloc((((((1024 * 3 * 10)) + 2) / 3) * 4)); - - do { - idx_t n; - - sum = 0; - do { - n = fread_unlocked(inbuf + sum, 1, (1024 * 3 * 10) - sum, in); - sum += n; - } while (!feof_unlocked(in) && !ferror_unlocked(in) && - sum < (1024 * 3 * 10)); - - if (sum > 0) { - - base64_encode(inbuf, sum, outbuf, ((((sum) + 2) / 3) * 4)); - - wrap_write(outbuf, ((((sum) + 2) / 3) * 4), wrap_column, ¤t_column, - out); - } - } while (!feof_unlocked(in) && !ferror_unlocked(in) && - sum == (1024 * 3 * 10)); - - if (wrap_column && current_column > 0 && fputc_unlocked('\n', out) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (ferror_unlocked(in)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - finish_and_exit(in, infile); -} - -static _Noreturn void do_decode(FILE *in, char const *infile, FILE *out, - _Bool ignore_garbage) { - char *inbuf, *outbuf; - idx_t sum; - struct base64_decode_context ctx; - - inbuf = xmalloc((((((1024 * 3)) + 2) / 3) * 4)); - outbuf = xmalloc((1024 * 3)); - - base64_decode_ctx_init(&ctx); - - do { - - _Bool ok; - - sum = 0; - do { - idx_t n = fread_unlocked(inbuf + sum, 1, - (((((1024 * 3)) + 2) / 3) * 4) - sum, in); - - if (ignore_garbage) { - for (idx_t i = 0; n > 0 && i < n;) { - if (isbase64(inbuf[sum + i]) || inbuf[sum + i] == '=') - i++; - else - memmove(inbuf + sum + i, inbuf + sum + i + 1, --n - i); - } - } - - sum += n; - - if (ferror_unlocked(in)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } while (sum < (((((1024 * 3)) + 2) / 3) * 4) && !feof_unlocked(in)); - - for (int k = 0; k < 1 + !!feof_unlocked(in); k++) { - if (k == 1 && ctx.i == 0) - break; - idx_t n = (1024 * 3); - ok = base64_decode_ctx(&ctx, inbuf, (k == 0 ? sum : 0), outbuf, &n); - - if (fwrite_unlocked(outbuf, 1, n, out) < n) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (!ok) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } while (!feof_unlocked(in)); - - finish_and_exit(in, infile); -} - -int main(int argc, char **argv) { - int opt; - FILE *input_fh; - char const *infile; - - _Bool decode = 0; - - _Bool ignore_garbage = 0; - - idx_t wrap_column = 76; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((opt = getopt_long(argc, argv, "diw:", long_options, ((void *)0))) != - -1) - switch (opt) { - case 'd': - decode = 1; - break; - - case 'w': { - intmax_t w; - strtol_error s_err = xstrtoimax(optarg, ((void *)0), 10, &w, ""); - if (LONGINT_OVERFLOW < s_err || w < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, \"%s: %s\", dcgettext (((void *)0), \"invalid " - "wrap size\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, "%s: %s", - dcgettext(((void *)0), "invalid wrap size", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, "%s: %s", - dcgettext(((void *)0), "invalid wrap size", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - wrap_column = - s_err == LONGINT_OVERFLOW || (9223372036854775807L) < w ? 0 : w; - } break; - - case 'i': - ignore_garbage = 1; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "base64", "GNU coreutils", Version, - ("Simon Josefsson"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - break; - } - if (argc - optind > 1) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 1])); - usage(1); - } - - if (optind < argc) - infile = argv[optind]; - else - infile = "-"; - - if ((strcmp(infile, "-") == 0)) { - xset_binary_mode(0, 0); - input_fh = stdin; - } else { - input_fh = fopen(infile, "rb"); - if (input_fh == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - fadvise(input_fh, FADVISE_SEQUENTIAL); - - if (decode) - do_decode(input_fh, infile, stdout, ignore_garbage); - else - do_encode(input_fh, infile, stdout, wrap_column); -} diff --git a/tests/source/coreutils/basename.c b/tests/source/coreutils/basename.c deleted file mode 100644 index 0aa74dd..0000000 --- a/tests/source/coreutils/basename.c +++ /dev/null @@ -1,6943 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -static struct option const longopts[] = { - {"multiple", 0, ((void *)0), 'a'}, - {"suffix", 1, ((void *)0), 's'}, - {"zero", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s NAME [SUFFIX]\n or: %s OPTION... NAME...\n", - 5) - - , - program_name, program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Print NAME with any leading directory components " - "removed.\nIf specified, also remove a trailing SUFFIX.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -a, --multiple support multiple arguments and treat " - "each as a NAME\n -s, --suffix=SUFFIX remove a trailing " - "SUFFIX; implies -a\n -z, --zero end each output " - "line with NUL, not newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nExamples:\n %s /usr/bin/sort -> \"sort\"\n " - "%s include/stdio.h .h -> \"stdio\"\n %s -s .h " - "include/stdio.h -> \"stdio\"\n %s -a any/str1 any/str2 " - " -> \"str1\" followed by \"str2\"\n", - 5) - - , - program_name, program_name, program_name, program_name); - emit_ancillary_info("basename"); - } - exit(status); -} - -static void remove_suffix(char *name, char const *suffix) { - char *np; - char const *sp; - - np = name + strlen(name); - sp = suffix + strlen(suffix); - - while (np > name && sp > suffix) - if (*--np != *--sp) - return; - if (np > name) - *np = '\0'; -} - -static void perform_basename(char const *string, char const *suffix, - _Bool use_nuls) { - char *name = base_name(string); - strip_trailing_slashes(name); - - if (suffix && (!(((name)[0]) == '/')) && !((void)(name), 0)) - remove_suffix(name, suffix); - - fputs_unlocked(name, stdout); - putchar_unlocked(use_nuls ? '\0' : '\n'); - free(name); -} - -int main(int argc, char **argv) { - - _Bool multiple_names = 0; - - _Bool use_nuls = 0; - char const *suffix = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while (1) { - int c = getopt_long(argc, argv, "+as:z", longopts, ((void *)0)); - - if (c == -1) - break; - - switch (c) { - case 's': - suffix = optarg; - - ; - - case 'a': - multiple_names = 1; - break; - - case 'z': - use_nuls = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "basename", "GNU coreutils", Version, - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (argc < optind + 1) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - if (!multiple_names && optind + 2 < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 2])); - usage(1); - } - - if (multiple_names) { - for (; optind < argc; optind++) - perform_basename(argv[optind], suffix, use_nuls); - } else - perform_basename(argv[optind], - optind + 2 == argc ? argv[optind + 1] : ((void *)0), - use_nuls); - - return 0; -} diff --git a/tests/source/coreutils/basenc-basenc.c b/tests/source/coreutils/basenc-basenc.c deleted file mode 100644 index e3e4b6d..0000000 --- a/tests/source/coreutils/basenc-basenc.c +++ /dev/null @@ -1,8648 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -inline _Bool - -c_isalnum(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isalpha(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isascii(int c) { - switch (c) { - case ' ': - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_isblank(int c) { - return c == ' ' || c == '\t'; -} - -inline _Bool - -c_iscntrl(int c) { - switch (c) { - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isgraph(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_islower(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isprint(int c) { - switch (c) { - case ' ': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_ispunct(int c) { - switch (c) { - case '!': - case '"': - case ' return 1; default: - return 0; - } -} - -inline _Bool - -c_isspace(int c) { - switch (c) { - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isupper(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isxdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline int c_tolower(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return c - 'A' + 'a'; - default: - return c; - } -} - -inline int c_toupper(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return c - 'a' + 'A'; - default: - return c; - } -} - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -struct base32_decode_context { - int i; - char buf[8]; -}; - -extern _Bool isbase32(char ch) __attribute__((__const__)); - -extern void base32_encode(const char *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t outlen); - -extern idx_t base32_encode_alloc(const char *in, idx_t inlen, char **out); - -extern void base32_decode_ctx_init(struct base32_decode_context *ctx); - -extern _Bool base32_decode_ctx(struct base32_decode_context *ctx, - const char *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen); - -extern _Bool base32_decode_alloc_ctx(struct base32_decode_context *ctx, - const char *in, idx_t inlen, char **out, - idx_t *outlen); -struct base64_decode_context { - int i; - char buf[4]; -}; - -extern _Bool isbase64(char ch) __attribute__((__const__)); - -extern void base64_encode(const char *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t outlen); - -extern idx_t base64_encode_alloc(const char *in, idx_t inlen, char **out); - -extern void base64_decode_ctx_init(struct base64_decode_context *ctx); - -extern _Bool base64_decode_ctx(struct base64_decode_context *ctx, - const char *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen); - -extern _Bool base64_decode_alloc_ctx(struct base64_decode_context *ctx, - const char *in, idx_t inlen, char **out, - idx_t *outlen); - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -enum { - BASE64_OPTION = 0x7f + 1, - BASE64URL_OPTION, - BASE32_OPTION, - BASE32HEX_OPTION, - BASE16_OPTION, - BASE2MSBF_OPTION, - BASE2LSBF_OPTION, - Z85_OPTION -}; - -static struct option const long_options[] = { - {"decode", 0, 0, 'd'}, - {"wrap", 1, 0, 'w'}, - {"ignore-garbage", 0, 0, 'i'}, - - {"base64", 0, 0, BASE64_OPTION}, - {"base64url", 0, 0, BASE64URL_OPTION}, - {"base32", 0, 0, BASE32_OPTION}, - {"base32hex", 0, 0, BASE32HEX_OPTION}, - {"base16", 0, 0, BASE16_OPTION}, - {"base2msbf", 0, 0, BASE2MSBF_OPTION}, - {"base2lsbf", 0, 0, BASE2LSBF_OPTION}, - {"z85", 0, 0, Z85_OPTION}, - - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]\n", 5) - - , - program_name); - - fputs_unlocked(dcgettext(((void *)0), - "basenc encode or decode FILE, or standard input, " - "to standard output.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked(dcgettext(((void *)0), - " --base64 same as 'base64' program " - "(RFC4648 section 4)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --base64url file- and url-safe " - "base64 (RFC4648 section 5)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --base32 same as 'base32' program " - "(RFC4648 section 6)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --base32hex extended hex alphabet " - "base32 (RFC4648 section 7)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --base16 hex encoding (RFC4648 section 8)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --base2msbf bit string with most " - "significant bit (msb) first\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --base2lsbf bit string with least " - "significant bit (lsb) first\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " -d, --decode decode data\n -i, --ignore-garbage when " - "decoding, ignore non-alphabet characters\n -w, --wrap=COLS " - "wrap encoded lines after COLS character (default 76).\n " - " Use 0 to disable line wrapping\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " --z85 ascii85-like encoding (ZeroMQ " - "spec:32/Z85);\n when encoding, input " - "length must be a multiple of 4;\n " - "when decoding, input length must be a multiple of 5\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - - fputs_unlocked( - dcgettext(((void *)0), - "\nWhen decoding, the input may contain newlines in addition " - "to the bytes of\nthe formal alphabet. Use --ignore-garbage " - "to attempt to recover\nfrom any other non-alphabet bytes in " - "the encoded stream.\n", - 5), - stdout) - - ; - emit_ancillary_info("basenc"); - } - - exit(status); -} -_Static_assert((4200) % 40 == 0, "verify (" - "DEC_BLOCKSIZE % 40 == 0" - ")"); -_Static_assert((4200) % 12 == 0, "verify (" - "DEC_BLOCKSIZE % 12 == 0" - ")"); - -static int (*base_length)(int i); -static _Bool (*isbase)(char ch); -static void (*base_encode)(char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t outlen); - -struct base16_decode_context { - char nibble; - - _Bool have_nibble; -}; - -struct z85_decode_context { - int i; - unsigned char octets[5]; -}; - -struct base2_decode_context { - unsigned char octet; -}; - -struct base_decode_context { - int i; - union { - struct base64_decode_context base64; - struct base32_decode_context base32; - struct base16_decode_context base16; - struct base2_decode_context base2; - struct z85_decode_context z85; - } ctx; - char *inbuf; - idx_t bufsize; -}; -static void (*base_decode_ctx_init)(struct base_decode_context *ctx); -static _Bool (*base_decode_ctx)(struct base_decode_context *ctx, - char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen); - -static int base64_length_wrapper(int len) { return ((((len) + 2) / 3) * 4); } - -static void base64_decode_ctx_init_wrapper(struct base_decode_context *ctx) { - base64_decode_ctx_init(&ctx->ctx.base64); -} - -static _Bool - -base64_decode_ctx_wrapper(struct base_decode_context *ctx, - char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen) { - - _Bool b = base64_decode_ctx(&ctx->ctx.base64, in, inlen, out, outlen); - ctx->i = ctx->ctx.base64.i; - return b; -} - -static void init_inbuf(struct base_decode_context *ctx) { - ctx->bufsize = (4200); - ctx->inbuf = xcharalloc(ctx->bufsize); -} - -static void prepare_inbuf(struct base_decode_context *ctx, idx_t inlen) { - if (ctx->bufsize < inlen) { - ctx->bufsize = inlen * 2; - ctx->inbuf = xnrealloc(ctx->inbuf, ctx->bufsize, sizeof(char)); - } -} - -static void base64url_encode(char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t outlen) { - base64_encode(in, inlen, out, outlen); - - char *p = out; - while (outlen--) { - if (*p == '+') - *p = '-'; - else if (*p == '/') - *p = '_'; - ++p; - } -} - -static _Bool - -isbase64url(char ch) { - return (ch == '-' || ch == '_' || (ch != '+' && ch != '/' && isbase64(ch))); -} - -static void base64url_decode_ctx_init_wrapper(struct base_decode_context *ctx) { - base64_decode_ctx_init(&ctx->ctx.base64); - init_inbuf(ctx); -} - -static _Bool - -base64url_decode_ctx_wrapper(struct base_decode_context *ctx, - char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen) { - prepare_inbuf(ctx, inlen); - memcpy(ctx->inbuf, in, inlen); - - idx_t i = inlen; - char *p = ctx->inbuf; - while (i--) { - if (*p == '+' || *p == '/') { - *outlen = 0; - return 0; - } else if (*p == '-') - *p = '+'; - else if (*p == '_') - *p = '/'; - ++p; - } - - _Bool b = base64_decode_ctx(&ctx->ctx.base64, ctx->inbuf, inlen, out, outlen); - ctx->i = ctx->ctx.base64.i; - - return b; -} - -static int base32_length_wrapper(int len) { return ((((len) + 4) / 5) * 8); } - -static void base32_decode_ctx_init_wrapper(struct base_decode_context *ctx) { - base32_decode_ctx_init(&ctx->ctx.base32); -} - -static _Bool - -base32_decode_ctx_wrapper(struct base_decode_context *ctx, - char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen) { - - _Bool b = base32_decode_ctx(&ctx->ctx.base32, in, inlen, out, outlen); - ctx->i = ctx->ctx.base32.i; - return b; -} - -static const char base32_norm_to_hex[32 + 9] = { - - 'Q', 'R', 'S', 'T', 'U', 'V', - - 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, - - '0', '1', '2', '3', '4', '5', '6', '7', - - '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', - - 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', - - 'O', 'P', -}; - -static const char base32_hex_to_norm[32 + 9] = { - - 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', - - 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, - - 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', - - 'U', 'V', 'W', 'X', 'Y', 'Z', '2', '3', '4', '5', - - '6', '7'}; - -inline static _Bool - -isbase32hex(char ch) { - return ('0' <= ch && ch <= '9') || ('A' <= ch && ch <= 'V'); -} - -static void base32hex_encode(char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t outlen) { - base32_encode(in, inlen, out, outlen); - - for (char *p = out; outlen--; p++) { - - ((void)sizeof((0x32 <= *p && *p <= 0x5a) ? 1 : 0), __extension__({ - if (0x32 <= *p && *p <= 0x5a) - ; - else - __assert_fail("0x32 <= *p && *p <= 0x5a", "src/basenc.c", 452, - __extension__ __PRETTY_FUNCTION__); - })); - *p = base32_norm_to_hex[*p - 0x32]; - } -} - -static void base32hex_decode_ctx_init_wrapper(struct base_decode_context *ctx) { - base32_decode_ctx_init(&ctx->ctx.base32); - init_inbuf(ctx); -} - -static _Bool - -base32hex_decode_ctx_wrapper(struct base_decode_context *ctx, - char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen) { - prepare_inbuf(ctx, inlen); - - idx_t i = inlen; - char *p = ctx->inbuf; - while (i--) { - if (isbase32hex(*in)) - *p = base32_hex_to_norm[(int)*in - 0x30]; - else - *p = *in; - ++p; - ++in; - } - - _Bool b = base32_decode_ctx(&ctx->ctx.base32, ctx->inbuf, inlen, out, outlen); - ctx->i = ctx->ctx.base32.i; - - return b; -} - -static _Bool - -isbase16(char ch) { - return ('0' <= ch && ch <= '9') || ('A' <= ch && ch <= 'F'); -} - -static int base16_length(int len) { return len * 2; } - -static const char base16[16] = "0123456789ABCDEF"; - -static void base16_encode(char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t outlen) { - while (inlen--) { - unsigned char c = *in; - *out++ = base16[c >> 4]; - *out++ = base16[c & 0x0F]; - ++in; - } -} - -static void base16_decode_ctx_init(struct base_decode_context *ctx) { - init_inbuf(ctx); - ctx->ctx.base16.have_nibble = 0; - ctx->i = 1; -} - -static _Bool - -base16_decode_ctx(struct base_decode_context *ctx, char const *__restrict__ in, - idx_t inlen, char *__restrict__ out, idx_t *outlen) { - - _Bool ignore_lines = 1; - - *outlen = 0; - - if (inlen == 0) - return !ctx->ctx.base16.have_nibble; - - while (inlen--) { - if (ignore_lines && *in == '\n') { - ++in; - continue; - } - - int nib = *in++; - if ('0' <= nib && nib <= '9') - nib -= '0'; - else if ('A' <= nib && nib <= 'F') - nib -= 'A' - 10; - else - return 0; - - if (ctx->ctx.base16.have_nibble) { - - *out++ = (ctx->ctx.base16.nibble << 4) + nib; - ++(*outlen); - } else { - - ctx->ctx.base16.nibble = nib; - } - ctx->ctx.base16.have_nibble = !ctx->ctx.base16.have_nibble; - } - return 1; -} - -static int z85_length(int len) { - - int outlen = (len * 5) / 4; - return outlen; -} - -static _Bool - -isz85(char ch) { - return c_isalnum (ch) || (strchr (".-:+=^!/*?&<>()[]{}@%$ ((void *)0) - ); -} - -static char const z85_encoding[85] = "0123456789" - "abcdefghijklmnopqrstuvwxyz" - "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - ".-:+=^!/*?&<>()[]{}@%$ - static void - z85_encode(char const *__restrict__ in, idx_t inlen, char *__restrict__ out, - idx_t outlen) { - int i = 0; - unsigned char quad[4]; - idx_t outidx = 0; - - while (1) { - if (inlen == 0) { - - if (i == 0) - return; - - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid input (length " - "must be multiple of 4 characters)\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "invalid input (length must be multiple of 4 " - "characters)", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "invalid input (length must be multiple of 4 " - "characters)", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else { - quad[i++] = *in++; - --inlen; - } - - if (i == 4) { - int_fast64_t val = quad[0]; - val = (val << 24) + (quad[1] << 16) + (quad[2] << 8) + quad[3]; - - for (int j = 4; j >= 0; --j) { - int c = val % 85; - val /= 85; - - if (outidx + j < outlen) - out[j] = z85_encoding[c]; - } - out += 5; - outidx += 5; - i = 0; - } - } -} - -static void z85_decode_ctx_init(struct base_decode_context *ctx) { - init_inbuf(ctx); - ctx->ctx.z85.i = 0; - ctx->i = 1; -} -static signed char const z85_decoding[93] = { - 68, -1, 84, 83, 82, 72, -1, 75, 76, 70, 65, -1, 63, 62, 69, 0, 1, 2, 3, - 4, 5, 6, 7, 8, 9, 64, -1, 73, 66, 74, 71, 81, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, - 61, 77, -1, 78, 67, -1, -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 79, -1, 80}; - -static _Bool - -z85_decode_ctx(struct base_decode_context *ctx, char const *__restrict__ in, - idx_t inlen, char *__restrict__ out, idx_t *outlen) { - - _Bool ignore_lines = 1; - - *outlen = 0; - - if (inlen == 0) { - if (ctx->ctx.z85.i > 0) { - - return 0; - } - return 1; - } - - while (inlen--) { - if (ignore_lines && *in == '\n') { - ++in; - continue; - } - - unsigned char c = *in; - - if (c >= 33 && c <= 125) { - signed char ch = z85_decoding[c - 33]; - if (ch < 0) - return 0; - c = ch; - } else - return 0; - - ++in; - - ctx->ctx.z85.octets[ctx->ctx.z85.i++] = c; - if (ctx->ctx.z85.i == 5) { - - int_fast64_t val = - (((ctx)->ctx.z85.octets[1] * 85 * 85 * 85) + - ((ctx)->ctx.z85.octets[2] * 85 * 85) + - ((ctx)->ctx.z85.octets[3] * 85) + ((ctx)->ctx.z85.octets[4])); - - val += ((int_fast64_t)(ctx)->ctx.z85.octets[0] * 85 * 85 * 85 * 85); - if ((val >> 24) & ~0xFF) - return 0; - - *out++ = val >> 24; - *out++ = (val >> 16) & 0xFF; - *out++ = (val >> 8) & 0xFF; - *out++ = val & 0xFF; - - *outlen += 4; - - ctx->ctx.z85.i = 0; - } - } - ctx->i = ctx->ctx.z85.i; - return 1; -} - -inline static _Bool - -isbase2(char ch) { - return ch == '0' || ch == '1'; -} - -static int base2_length(int len) { return len * 8; } - -inline static void base2msbf_encode(char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t outlen) { - while (inlen--) { - unsigned char c = *in; - for (int i = 0; i < 8; i++) { - *out++ = c & 0x80 ? '1' : '0'; - c <<= 1; - } - outlen -= 8; - ++in; - } -} - -inline static void base2lsbf_encode(char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t outlen) { - while (inlen--) { - unsigned char c = *in; - for (int i = 0; i < 8; i++) { - *out++ = c & 0x01 ? '1' : '0'; - c >>= 1; - } - outlen -= 8; - ++in; - } -} - -static void base2_decode_ctx_init(struct base_decode_context *ctx) { - init_inbuf(ctx); - ctx->ctx.base2.octet = 0; - ctx->i = 0; -} - -static _Bool - -base2lsbf_decode_ctx(struct base_decode_context *ctx, - char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen) { - - _Bool ignore_lines = 1; - - *outlen = 0; - - if (inlen == 0) - return ctx->i == 0; - - while (inlen--) { - if (ignore_lines && *in == '\n') { - ++in; - continue; - } - - if (!isbase2(*in)) - return 0; - - _Bool bit = (*in == '1'); - ctx->ctx.base2.octet |= bit << ctx->i; - ++ctx->i; - - if (ctx->i == 8) { - *out++ = ctx->ctx.base2.octet; - ctx->ctx.base2.octet = 0; - ++*outlen; - ctx->i = 0; - } - - ++in; - } - - return 1; -} - -static _Bool - -base2msbf_decode_ctx(struct base_decode_context *ctx, - char const *__restrict__ in, idx_t inlen, - char *__restrict__ out, idx_t *outlen) { - - _Bool ignore_lines = 1; - - *outlen = 0; - - if (inlen == 0) - return ctx->i == 0; - - while (inlen--) { - if (ignore_lines && *in == '\n') { - ++in; - continue; - } - - if (!isbase2(*in)) - return 0; - - _Bool bit = (*in == '1'); - if (ctx->i == 0) - ctx->i = 8; - --ctx->i; - ctx->ctx.base2.octet |= bit << ctx->i; - - if (ctx->i == 0) { - *out++ = ctx->ctx.base2.octet; - ctx->ctx.base2.octet = 0; - ++*outlen; - ctx->i = 0; - } - - ++in; - } - - return 1; -} - -static void wrap_write(char const *buffer, idx_t len, idx_t wrap_column, - idx_t *current_column, FILE *out) { - if (wrap_column == 0) { - - if (fwrite_unlocked(buffer, 1, len, stdout) < len) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else - for (idx_t written = 0; written < len;) { - idx_t to_write = (((wrap_column - *current_column) < (len - written)) - ? (wrap_column - *current_column) - : (len - written)); - - if (to_write == 0) { - if (fputc_unlocked('\n', out) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - *current_column = 0; - } else { - if (fwrite_unlocked(buffer + written, 1, to_write, stdout) < to_write) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - *current_column += to_write; - written += to_write; - } - } -} - -static _Noreturn void finish_and_exit(FILE *in, char const *infile) { - if (rpl_fclose(in) != 0) { - if ((strcmp(infile, "-") == 0)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"closing standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - else - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - exit(0); -} - -static _Noreturn void do_encode(FILE *in, char const *infile, FILE *out, - idx_t wrap_column) { - idx_t current_column = 0; - char *inbuf, *outbuf; - idx_t sum; - - inbuf = xmalloc((1024 * 3 * 10)); - outbuf = xmalloc(base_length((1024 * 3 * 10))); - - do { - idx_t n; - - sum = 0; - do { - n = fread_unlocked(inbuf + sum, 1, (1024 * 3 * 10) - sum, in); - sum += n; - } while (!feof_unlocked(in) && !ferror_unlocked(in) && - sum < (1024 * 3 * 10)); - - if (sum > 0) { - - base_encode(inbuf, sum, outbuf, base_length(sum)); - - wrap_write(outbuf, base_length(sum), wrap_column, ¤t_column, out); - } - } while (!feof_unlocked(in) && !ferror_unlocked(in) && - sum == (1024 * 3 * 10)); - - if (wrap_column && current_column > 0 && fputc_unlocked('\n', out) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (ferror_unlocked(in)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - finish_and_exit(in, infile); -} - -static _Noreturn void do_decode(FILE *in, char const *infile, FILE *out, - _Bool ignore_garbage) { - char *inbuf, *outbuf; - idx_t sum; - struct base_decode_context ctx; - - inbuf = xmalloc(base_length((4200))); - outbuf = xmalloc((4200)); - - ctx.inbuf = ((void *)0); - - base_decode_ctx_init(&ctx); - - do { - - _Bool ok; - - sum = 0; - do { - idx_t n = fread_unlocked(inbuf + sum, 1, base_length((4200)) - sum, in); - - if (ignore_garbage) { - for (idx_t i = 0; n > 0 && i < n;) { - if (isbase(inbuf[sum + i]) || inbuf[sum + i] == '=') - i++; - else - memmove(inbuf + sum + i, inbuf + sum + i + 1, --n - i); - } - } - - sum += n; - - if (ferror_unlocked(in)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } while (sum < base_length((4200)) && !feof_unlocked(in)); - - for (int k = 0; k < 1 + !!feof_unlocked(in); k++) { - if (k == 1 && ctx.i == 0) - break; - idx_t n = (4200); - ok = base_decode_ctx(&ctx, inbuf, (k == 0 ? sum : 0), outbuf, &n); - - if (fwrite_unlocked(outbuf, 1, n, out) < n) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (!ok) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } while (!feof_unlocked(in)); - - finish_and_exit(in, infile); -} - -int main(int argc, char **argv) { - int opt; - FILE *input_fh; - char const *infile; - - _Bool decode = 0; - - _Bool ignore_garbage = 0; - - idx_t wrap_column = 76; - - int base_type = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((opt = getopt_long(argc, argv, "diw:", long_options, ((void *)0))) != - -1) - switch (opt) { - case 'd': - decode = 1; - break; - - case 'w': { - intmax_t w; - strtol_error s_err = xstrtoimax(optarg, ((void *)0), 10, &w, ""); - if (LONGINT_OVERFLOW < s_err || w < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, \"%s: %s\", dcgettext (((void *)0), \"invalid " - "wrap size\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, "%s: %s", - dcgettext(((void *)0), "invalid wrap size", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, "%s: %s", - dcgettext(((void *)0), "invalid wrap size", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - wrap_column = - s_err == LONGINT_OVERFLOW || (9223372036854775807L) < w ? 0 : w; - } break; - - case 'i': - ignore_garbage = 1; - break; - - case BASE64_OPTION: - case BASE64URL_OPTION: - case BASE32_OPTION: - case BASE32HEX_OPTION: - case BASE16_OPTION: - case BASE2MSBF_OPTION: - case BASE2LSBF_OPTION: - case Z85_OPTION: - base_type = opt; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "basenc", "GNU coreutils", Version, - ("Simon Josefsson"), ("Assaf Gordon"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - break; - } - - switch (base_type) { - case BASE64_OPTION: - base_length = base64_length_wrapper; - isbase = isbase64; - base_encode = base64_encode; - base_decode_ctx_init = base64_decode_ctx_init_wrapper; - base_decode_ctx = base64_decode_ctx_wrapper; - break; - - case BASE64URL_OPTION: - base_length = base64_length_wrapper; - isbase = isbase64url; - base_encode = base64url_encode; - base_decode_ctx_init = base64url_decode_ctx_init_wrapper; - base_decode_ctx = base64url_decode_ctx_wrapper; - break; - - case BASE32_OPTION: - base_length = base32_length_wrapper; - isbase = isbase32; - base_encode = base32_encode; - base_decode_ctx_init = base32_decode_ctx_init_wrapper; - base_decode_ctx = base32_decode_ctx_wrapper; - break; - - case BASE32HEX_OPTION: - base_length = base32_length_wrapper; - isbase = isbase32hex; - base_encode = base32hex_encode; - base_decode_ctx_init = base32hex_decode_ctx_init_wrapper; - base_decode_ctx = base32hex_decode_ctx_wrapper; - break; - - case BASE16_OPTION: - base_length = base16_length; - isbase = isbase16; - base_encode = base16_encode; - base_decode_ctx_init = base16_decode_ctx_init; - base_decode_ctx = base16_decode_ctx; - break; - - case BASE2MSBF_OPTION: - base_length = base2_length; - isbase = isbase2; - base_encode = base2msbf_encode; - base_decode_ctx_init = base2_decode_ctx_init; - base_decode_ctx = base2msbf_decode_ctx; - break; - - case BASE2LSBF_OPTION: - base_length = base2_length; - isbase = isbase2; - base_encode = base2lsbf_encode; - base_decode_ctx_init = base2_decode_ctx_init; - base_decode_ctx = base2lsbf_decode_ctx; - break; - - case Z85_OPTION: - base_length = z85_length; - isbase = isz85; - base_encode = z85_encode; - base_decode_ctx_init = z85_decode_ctx_init; - base_decode_ctx = z85_decode_ctx; - break; - - default: - error(0, 0, dcgettext(((void *)0), "missing encoding type", 5)); - usage(1); - } - - if (argc - optind > 1) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 1])); - usage(1); - } - - if (optind < argc) - infile = argv[optind]; - else - infile = "-"; - - if ((strcmp(infile, "-") == 0)) { - xset_binary_mode(0, 0); - input_fh = stdin; - } else { - input_fh = fopen(infile, "rb"); - if (input_fh == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - fadvise(input_fh, FADVISE_SEQUENTIAL); - - if (decode) - do_decode(input_fh, infile, stdout, ignore_garbage); - else - do_encode(input_fh, infile, stdout, wrap_column); -} diff --git a/tests/source/coreutils/cat.c b/tests/source/coreutils/cat.c deleted file mode 100644 index 91cf790..0000000 --- a/tests/source/coreutils/cat.c +++ /dev/null @@ -1,7507 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct winsize { - unsigned short int ws_row; - unsigned short int ws_col; - unsigned short int ws_xpixel; - unsigned short int ws_ypixel; -}; - -struct termio { - unsigned short int c_iflag; - unsigned short int c_oflag; - unsigned short int c_cflag; - unsigned short int c_lflag; - unsigned char c_line; - unsigned char c_cc[8]; -}; - -extern int ioctl(int __fd, unsigned long int __request, ...) - __attribute__((__nothrow__, __leaf__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -inline void alignfree(void *ptr) { free(ptr); } - -inline __attribute__((__malloc__)) __attribute__((__alloc_size__(2))) - -void * -alignalloc(idx_t alignment, idx_t size) { - if ((size_t)-1 < alignment) - alignment = (size_t)-1; - if ((size_t)-1 < size) - size = (size_t)-1; - - return aligned_alloc(alignment, size); -} -void *xalignalloc(idx_t, idx_t) __attribute__((__malloc__)) -__attribute__((__alloc_size__(2))) __attribute__((__returns_nonnull__)); - -enum { IO_BUFSIZE = 128 * 1024 }; -static inline idx_t io_blksize(struct stat sb) { - - return (((((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) / - 2 + - 1) < ((((IO_BUFSIZE) > (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))) - ? (IO_BUFSIZE) - : (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))))) - ? (((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) / - 2 + - 1) - : ((((IO_BUFSIZE) > (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))) - ? (IO_BUFSIZE) - : (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))))) - - ; -} - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); -extern size_t full_write(int fd, const void *buf, size_t count); -extern size_t safe_read(int fd, void *buf, size_t count); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static char const *infile; - -static int input_desc; - -static char line_buf[20] = {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', - ' ', ' ', ' ', ' ', ' ', ' ', ' ', '0', '\t', '\0'}; - -static char *line_num_print = line_buf + 20 - 8; - -static char *line_num_start = line_buf + 20 - 3; - -static char *line_num_end = line_buf + 20 - 3; - -static int newlines2 = 0; - -static _Bool pending_cr = 0; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext(((void *)0), "Concatenate FILE(s) to standard output.\n", 5), - stdout) - - ; - - emit_stdin_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - "\n -A, --show-all equivalent to -vET\n -b, " - "--number-nonblank number nonempty output lines, overrides -n\n " - " -e equivalent to -vE\n -E, --show-ends " - " display $ at end of each line\n -n, --number " - "number all output lines\n -s, --squeeze-blank suppress " - "repeated empty output lines\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -t equivalent to -vT\n -T, " - "--show-tabs display TAB characters as ^I\n -u " - " (ignored)\n -v, --show-nonprinting use " - "^ and M- notation, except for LFD and TAB\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nExamples:\n %s f - g Output f's contents, then " - "standard input, then g's contents.\n %s Copy " - "standard input to standard output.\n", - 5) - - , - program_name, program_name); - emit_ancillary_info("cat"); - } - exit(status); -} - -static void next_line_num(void) { - char *endp = line_num_end; - do { - if ((*endp)++ < '9') - return; - *endp-- = '0'; - } while (endp >= line_num_start); - - if (line_num_start > line_buf) - *--line_num_start = '1'; - else - *line_buf = '>'; - if (line_num_start < line_num_print) - line_num_print--; -} - -static _Bool - -simple_cat(char *buf, idx_t bufsize) { - - while (1) { - - size_t n_read = safe_read(input_desc, buf, bufsize); - if (n_read == ((size_t)-1)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)); - return 0; - } - - if (n_read == 0) - return 1; - - if (full_write(1, buf, n_read) != n_read) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } -} - -static inline void write_pending(char *outbuf, char **bpout) { - idx_t n_write = *bpout - outbuf; - if (0 < n_write) { - if (full_write(1, outbuf, n_write) != n_write) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - *bpout = outbuf; - } -} -static _Bool - -cat(char *inbuf, idx_t insize, char *outbuf, idx_t outsize, - - _Bool show_nonprinting, _Bool show_tabs, _Bool number, - _Bool number_nonblank, - - _Bool show_ends, _Bool squeeze_blank) { - - unsigned char ch; - - int newlines = newlines2; - - _Bool use_fionread = 1; - - char *eob = inbuf; - - char *bpin = eob + 1; - - char *bpout = outbuf; - - while (1) { - do { - - if (outbuf + outsize <= bpout) { - char *wp = outbuf; - idx_t remaining_bytes; - do { - if (full_write(1, wp, outsize) != outsize) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - wp += outsize; - remaining_bytes = bpout - wp; - } while (outsize <= remaining_bytes); - - memmove(outbuf, wp, remaining_bytes); - bpout = outbuf + remaining_bytes; - } - - if (bpin > eob) { - - _Bool input_pending = 0; - - int n_to_read = 0; - - if (use_fionread && ioctl(input_desc, 0x541B, &n_to_read) < 0) { - - if ((*__errno_location()) == 95 || (*__errno_location()) == 25 - - || (*__errno_location()) == 22 || (*__errno_location()) == 19 - - || (*__errno_location()) == 38) - use_fionread = 0; - else { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot do ioctl on %s", 5), - quotearg_style(shell_escape_always_quoting_style, infile)); - newlines2 = newlines; - return 0; - } - } - if (n_to_read != 0) - input_pending = 1; - - if (!input_pending) - write_pending(outbuf, &bpout); - - size_t n_read = safe_read(input_desc, inbuf, insize); - if (n_read == ((size_t)-1)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)); - write_pending(outbuf, &bpout); - newlines2 = newlines; - return 0; - } - if (n_read == 0) { - write_pending(outbuf, &bpout); - newlines2 = newlines; - return 1; - } - - bpin = inbuf; - eob = bpin + n_read; - *eob = '\n'; - } else { - - if (++newlines > 0) { - if (newlines >= 2) { - - newlines = 2; - - if (squeeze_blank) { - ch = *bpin++; - continue; - } - } - - if (number && !number_nonblank) { - next_line_num(); - bpout = stpcpy(bpout, line_num_print); - } - } - - if (show_ends) { - if (pending_cr) { - *bpout++ = '^'; - *bpout++ = 'M'; - pending_cr = 0; - } - *bpout++ = '$'; - } - - *bpout++ = '\n'; - } - ch = *bpin++; - } while (ch == '\n'); - - if (pending_cr) { - *bpout++ = '\r'; - pending_cr = 0; - } - - if (newlines >= 0 && number) { - next_line_num(); - bpout = stpcpy(bpout, line_num_print); - } - - if (show_nonprinting) { - while (1) { - if (ch >= 32) { - if (ch < 127) - *bpout++ = ch; - else if (ch == 127) { - *bpout++ = '^'; - *bpout++ = '?'; - } else { - *bpout++ = 'M'; - *bpout++ = '-'; - if (ch >= 128 + 32) { - if (ch < 128 + 127) - *bpout++ = ch - 128; - else { - *bpout++ = '^'; - *bpout++ = '?'; - } - } else { - *bpout++ = '^'; - *bpout++ = ch - 128 + 64; - } - } - } else if (ch == '\t' && !show_tabs) - *bpout++ = '\t'; - else if (ch == '\n') { - newlines = -1; - break; - } else { - *bpout++ = '^'; - *bpout++ = ch + 64; - } - - ch = *bpin++; - } - } else { - - while (1) { - if (ch == '\t' && show_tabs) { - *bpout++ = '^'; - *bpout++ = ch + 64; - } else if (ch != '\n') { - if (ch == '\r' && *bpin == '\n' && show_ends) { - if (bpin == eob) - pending_cr = 1; - else { - *bpout++ = '^'; - *bpout++ = 'M'; - } - } else - *bpout++ = ch; - } else { - newlines = -1; - break; - } - - ch = *bpin++; - } - } - } -} - -static int copy_cat(void) { - - ssize_t copy_max = (((0x7fffffffffffffffL) < ((18446744073709551615UL))) - ? (0x7fffffffffffffffL) - : ((18446744073709551615UL))) >> - 30 << 30; - - for (_Bool some_copied = 0;; some_copied = 1) - switch ( - copy_file_range(input_desc, ((void *)0), 1, ((void *)0), copy_max, 0)) { - case 0: - return some_copied; - - case -1: - if ((*__errno_location()) == 38 || is_ENOTSUP((*__errno_location())) || - (*__errno_location()) == 22 - - || (*__errno_location()) == 9 || (*__errno_location()) == 18 || - (*__errno_location()) == 26 - - || (*__errno_location()) == 1) - return 0; - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)); - return -1; - } -} - -int main(int argc, char **argv) { - - _Bool have_read_stdin = 0; - - struct stat stat_buf; - - _Bool number = 0; - - _Bool number_nonblank = 0; - - _Bool squeeze_blank = 0; - - _Bool show_ends = 0; - - _Bool show_nonprinting = 0; - - _Bool show_tabs = 0; - int file_open_mode = 00; - - static struct option const long_options[] = { - {"number-nonblank", 0, ((void *)0), 'b'}, - {"number", 0, ((void *)0), 'n'}, - {"squeeze-blank", 0, ((void *)0), 's'}, - {"show-nonprinting", 0, ((void *)0), 'v'}, - {"show-ends", 0, ((void *)0), 'E'}, - {"show-tabs", 0, ((void *)0), 'T'}, - {"show-all", 0, ((void *)0), 'A'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - int c; - while ((c = getopt_long(argc, argv, "benstuvAET", long_options, - ((void *)0))) != -1) { - switch (c) { - case 'b': - number = 1; - number_nonblank = 1; - break; - - case 'e': - show_ends = 1; - show_nonprinting = 1; - break; - - case 'n': - number = 1; - break; - - case 's': - squeeze_blank = 1; - break; - - case 't': - show_tabs = 1; - show_nonprinting = 1; - break; - - case 'u': - - break; - - case 'v': - show_nonprinting = 1; - break; - - case 'A': - show_nonprinting = 1; - show_ends = 1; - show_tabs = 1; - break; - - case 'E': - show_ends = 1; - break; - - case 'T': - show_tabs = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "cat", "GNU coreutils", Version, - ("Torbjorn Granlund"), ("Richard M. Stallman"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (fstat(1, &stat_buf) < 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard output\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard output", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard output", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - idx_t outsize = io_blksize(stat_buf); - - dev_t out_dev = stat_buf.st_dev; - ino_t out_ino = stat_buf.st_ino; - - _Bool out_isreg = ((((stat_buf.st_mode)) & 0170000) == (0100000)) != 0; - - if (!(number || show_ends || squeeze_blank)) { - file_open_mode |= 0; - xset_binary_mode(1, 0); - } - - infile = "-"; - int argind = optind; - - _Bool ok = 1; - idx_t page_size = getpagesize(); - - do { - if (argind < argc) - infile = argv[argind]; - - _Bool reading_stdin = (strcmp(infile, "-") == 0); - if (reading_stdin) { - have_read_stdin = 1; - input_desc = 0; - if (file_open_mode & 0) - xset_binary_mode(0, 0); - } else { - input_desc = open(infile, file_open_mode); - if (input_desc < 0) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)); - ok = 0; - continue; - } - } - - if (fstat(input_desc, &stat_buf) < 0) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)); - ok = 0; - goto contin; - } - - idx_t insize = io_blksize(stat_buf); - - fdadvise(input_desc, 0, 0, FADVISE_SEQUENTIAL); - - if (out_isreg && stat_buf.st_dev == out_dev && stat_buf.st_ino == out_ino && - lseek(input_desc, 0, 1) < stat_buf.st_size) { - error(0, 0, dcgettext(((void *)0), "%s: input file is output file", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)); - ok = 0; - goto contin; - } - - char *inbuf; - - if (!(number || show_ends || show_nonprinting || show_tabs || - squeeze_blank)) { - int copy_cat_status = - out_isreg && ((((stat_buf.st_mode)) & 0170000) == (0100000)) - ? copy_cat() - : 0; - if (copy_cat_status != 0) { - inbuf = ((void *)0); - ok &= 0 < copy_cat_status; - } else { - insize = (((insize) > (outsize)) ? (insize) : (outsize)); - inbuf = xalignalloc(page_size, insize); - ok &= simple_cat(inbuf, insize); - } - } else { - - inbuf = xalignalloc(page_size, insize + 1); - idx_t bufsize; - if (__builtin_mul_overflow(insize, 4, &bufsize) || - __builtin_add_overflow(bufsize, outsize, &bufsize) || - __builtin_add_overflow(bufsize, 20 - 1, &bufsize)) - xalloc_die(); - char *outbuf = xalignalloc(page_size, bufsize); - - ok &= cat(inbuf, insize, outbuf, outsize, show_nonprinting, show_tabs, - number, number_nonblank, show_ends, squeeze_blank); - - alignfree(outbuf); - } - - alignfree(inbuf); - - contin: - if (!reading_stdin && close(input_desc) < 0) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)); - ok = 0; - } - } while (++argind < argc); - - if (pending_cr) { - if (full_write(1, "\r", 1) != 1) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (have_read_stdin && close(0) < 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"closing standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/chcon.c b/tests/source/coreutils/chcon.c deleted file mode 100644 index be9ec81..0000000 --- a/tests/source/coreutils/chcon.c +++ /dev/null @@ -1,7987 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct dev_ino *get_root_dev_ino(struct dev_ino *root_d_i) - __attribute__((__nonnull__)); - -typedef struct { - void *ptr; -} context_s_t; - -typedef context_s_t *context_t; - -extern context_t context_new(const char *); - -extern char *context_str(context_t); - -extern void context_free(context_t); - -extern const char *context_type_get(context_t); -extern const char *context_range_get(context_t); -extern const char *context_role_get(context_t); -extern const char *context_user_get(context_t); - -extern int context_type_set(context_t, const char *); -extern int context_range_set(context_t, const char *); -extern int context_role_set(context_t, const char *); -extern int context_user_set(context_t, const char *); - -int getfileconat(int dir_fd, char const *file, char **con); - -int lgetfileconat(int dir_fd, char const *file, char **con); - -int setfileconat(int dir_fd, char const *file, char const *con); - -int lsetfileconat(int dir_fd, char const *file, char const *con); - -enum { I_RING_SIZE = 4 }; -_Static_assert(1 <= I_RING_SIZE, "verify (" - "1 <= I_RING_SIZE" - ")"); -struct I_ring { - int ir_data[I_RING_SIZE]; - int ir_default_val; - unsigned int ir_front; - unsigned int ir_back; - - _Bool ir_empty; -}; -typedef struct I_ring I_ring; - -void i_ring_init(I_ring *ir, int ir_default_val); -int i_ring_push(I_ring *ir, int val); -int i_ring_pop(I_ring *ir); - -_Bool i_ring_empty(I_ring const *ir) __attribute__((__pure__)); - -typedef struct { - struct _ftsent *fts_cur; - struct _ftsent *fts_child; - struct _ftsent **fts_array; - dev_t fts_dev; - char *fts_path; - int fts_rfd; - int fts_cwd_fd; - - size_t fts_pathlen; - size_t fts_nitems; - int (*fts_compar)(struct _ftsent const **, struct _ftsent const **); - int fts_options; - struct hash_table *fts_leaf_optimization_works_ht; - - union { - struct hash_table *ht; - - struct cycle_check_state *state; - } fts_cycle; - - I_ring fts_fd_ring; -} FTS; - -typedef struct _ftsent { - struct _ftsent *fts_cycle; - struct _ftsent *fts_parent; - struct _ftsent *fts_link; - DIR *fts_dirp; - - long fts_number; - void *fts_pointer; - char *fts_accpath; - char *fts_path; - int fts_errno; - int fts_symfd; - size_t fts_pathlen; - - FTS *fts_fts; - - ptrdiff_t fts_level; - - size_t fts_namelen; - unsigned short int fts_info; - - unsigned short int fts_flags; - - unsigned short int fts_instr; - - struct stat fts_statp[1]; - char fts_name[]; -} FTSENT; - -FTSENT *rpl_fts_children(FTS *, int); - -int rpl_fts_close(FTS *); - -FTS *rpl_fts_open(char *const *, int, int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__(rpl_fts_close, 1))); - -FTSENT *rpl_fts_read(FTS *); - -int rpl_fts_set(FTS *, FTSENT *, int); - -FTS *xfts_open(char *const *, int options, - int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__)) __attribute__((__malloc__(rpl_fts_close, 1))) - __attribute__((__nonnull__(1))) __attribute__((__returns_nonnull__)); - -_Bool - -cycle_warning_required (FTS const *fts, FTSENT const *ent) - __attribute__ ((__nonnull__ )) __attribute__ ((__pure__)); -static _Bool affect_symlink_referent; - -static _Bool recurse; - -static _Bool verbose; - -static struct dev_ino *root_dev_ino; - -static char const *specified_context; - -static char const *specified_user; -static char const *specified_role; -static char const *specified_range; -static char const *specified_type; - -enum { - DEREFERENCE_OPTION = 0x7f + 1, - NO_PRESERVE_ROOT, - PRESERVE_ROOT, - REFERENCE_FILE_OPTION -}; - -static struct option const long_options[] = { - {"recursive", 0, ((void *)0), 'R'}, - {"dereference", 0, ((void *)0), DEREFERENCE_OPTION}, - {"no-dereference", 0, ((void *)0), 'h'}, - {"no-preserve-root", 0, ((void *)0), NO_PRESERVE_ROOT}, - {"preserve-root", 0, ((void *)0), PRESERVE_ROOT}, - {"reference", 1, ((void *)0), REFERENCE_FILE_OPTION}, - {"user", 1, ((void *)0), 'u'}, - {"role", 1, ((void *)0), 'r'}, - {"type", 1, ((void *)0), 't'}, - {"range", 1, ((void *)0), 'l'}, - {"verbose", 0, ((void *)0), 'v'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static int compute_context_from_mask(char const *context, context_t *ret) { - - _Bool ok = 1; - context_t new_context = context_new(context); - if (!new_context) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to create security context: %s", 5), - quote(context)); - return 1; - } - do { - if (specified_user && context_user_set((new_context), specified_user)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to set %s security context component to %s", 5), - "user", quote(specified_user)); - ok = 0; - } - } while (0); - do { - if (specified_range && context_range_set((new_context), specified_range)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to set %s security context component to %s", 5), - "range", quote(specified_range)); - ok = 0; - } - } while (0); - do { - if (specified_role && context_role_set((new_context), specified_role)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to set %s security context component to %s", 5), - "role", quote(specified_role)); - ok = 0; - } - } while (0); - do { - if (specified_type && context_type_set((new_context), specified_type)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to set %s security context component to %s", 5), - "type", quote(specified_type)); - ok = 0; - } - } while (0); - - if (!ok) { - int saved_errno = (*__errno_location()); - context_free(new_context); - - (*__errno_location()) = saved_errno; - return 1; - } - - *ret = new_context; - return 0; -} - -static int change_file_context(int fd, char const *file) { - char *file_context = ((void *)0); - context_t context = 0; - char const *context_string; - int errors = 0; - - if (specified_context == ((void *)0)) { - int status = - (affect_symlink_referent ? getfileconat(fd, file, &file_context) - : lgetfileconat(fd, file, &file_context)); - - if (status < 0 && (*__errno_location()) != 61) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to get security context of %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - return 1; - } - - if (file_context == ((void *)0)) { - error(0, 0, - dcgettext(((void *)0), - "can't apply partial context to unlabeled file %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - return 1; - } - - if (compute_context_from_mask(file_context, &context)) - return 1; - - context_string = context_str(context); - } else { - context_string = specified_context; - } - - if (file_context == ((void *)0) || - !(strcmp(context_string, file_context) == 0)) { - int fail = - (affect_symlink_referent ? setfileconat(fd, file, context_string) - : lsetfileconat(fd, file, context_string)); - - if (fail) { - errors = 1; - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to change context of %s to %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, file), - quote_n(1, context_string)); - } - } - - if (specified_context == ((void *)0)) { - context_free(context); - freecon(file_context); - } - - return errors; -} - -static _Bool - -process_file(FTS *fts, FTSENT *ent) { - char const *file_full_name = ent->fts_path; - char const *file = ent->fts_accpath; - const struct stat *file_stats = ent->fts_statp; - - _Bool ok = 1; - - switch (ent->fts_info) { - case 1: - if (recurse) { - if ((root_dev_ino && - ((*ent->fts_statp).st_ino == (*root_dev_ino).st_ino && - (*ent->fts_statp).st_dev == (*root_dev_ino).st_dev))) { - - do { - if ((strcmp(file_full_name, "/") == 0)) - error(0, 0, - dcgettext(((void *)0), - "it is dangerous to operate recursively on %s", 5), - quotearg_style(shell_escape_always_quoting_style, - file_full_name)); - else - error( - 0, 0, - dcgettext( - ((void *)0), - "it is dangerous to operate recursively on %s (same as %s)", - 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - file_full_name), - quotearg_n_style(1, shell_escape_always_quoting_style, "/")); - error(0, 0, - dcgettext(((void *)0), - "use --no-preserve-root to override this failsafe", - 5)); - } while (0); - - rpl_fts_set(fts, ent, 4); - - (__extension__({ - __typeof__(rpl_fts_read(fts)) __x = (rpl_fts_read(fts)); - (void)__x; - })); - return 0; - } - return 1; - } - break; - - case 6: - if (!recurse) - return 1; - break; - - case 10: - - if (ent->fts_level == 0 && ent->fts_number == 0) { - ent->fts_number = 1; - rpl_fts_set(fts, ent, 1); - return 1; - } - error(0, ent->fts_errno, dcgettext(((void *)0), "cannot access %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - ok = 0; - break; - - case 7: - error( - 0, ent->fts_errno, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file_full_name)); - ok = 0; - break; - - case 4: - error(0, ent->fts_errno, - dcgettext(((void *)0), "cannot read directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - ok = 0; - break; - - case 2: - if (cycle_warning_required(fts, ent)) { - do { - error(0, 0, - dcgettext(((void *)0), - "WARNING: Circular directory structure.\nThis almost " - "certainly means that you have a corrupted file " - "system.\nNOTIFY YOUR SYSTEM MANAGER.\nThe following " - "directory is part of the cycle:\n %s\n", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - file_full_name)); - } while (0); - return 0; - } - break; - - default: - break; - } - - if (ent->fts_info == 6 && ok && - (root_dev_ino && ((*file_stats).st_ino == (*root_dev_ino).st_ino && - (*file_stats).st_dev == (*root_dev_ino).st_dev))) { - do { - if ((strcmp(file_full_name, "/") == 0)) - error( - 0, 0, - dcgettext(((void *)0), - "it is dangerous to operate recursively on %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - else - error(0, 0, - dcgettext( - ((void *)0), - "it is dangerous to operate recursively on %s (same as %s)", - 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - file_full_name), - quotearg_n_style(1, shell_escape_always_quoting_style, "/")); - error(0, 0, - dcgettext(((void *)0), - "use --no-preserve-root to override this failsafe", 5)); - } while (0); - ok = 0; - } - - if (ok) { - if (verbose) - printf(dcgettext(((void *)0), "changing security context of %s\n", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - - if (change_file_context(fts->fts_cwd_fd, file) != 0) - ok = 0; - } - - if (!recurse) - rpl_fts_set(fts, ent, 4); - - return ok; -} - -static _Bool - -process_files(char **files, int bit_flags) { - - _Bool ok = 1; - - FTS *fts = xfts_open(files, bit_flags, ((void *)0)); - - while (1) { - FTSENT *ent; - - ent = rpl_fts_read(fts); - if (ent == ((void *)0)) { - if ((*__errno_location()) != 0) { - - error(0, (*__errno_location()), - dcgettext(((void *)0), "fts_read failed", 5)); - ok = 0; - } - break; - } - - ok &= process_file(fts, ent); - } - - if (rpl_fts_close(fts) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "fts_close failed", 5)); - ok = 0; - } - - return ok; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext(((void *)0), - "Usage: %s [OPTION]... CONTEXT FILE...\n or: %s " - "[OPTION]... [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] " - "FILE...\n or: %s [OPTION]... --reference=RFILE FILE...\n", - 5) - - , - program_name, program_name, program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Change the SELinux security context of each FILE to " - "CONTEXT.\nWith --reference, change the security context of " - "each FILE to that of RFILE.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " --dereference affect the referent of each symbolic " - "link (this is\n the default), rather than " - "the symbolic link itself\n -h, --no-dereference affect " - "symbolic links instead of any referenced file\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -u, --user=USER set user USER in the target security " - "context\n -r, --role=ROLE set role ROLE in the target " - "security context\n -t, --type=TYPE set type TYPE in the " - "target security context\n -l, --range=RANGE set range RANGE " - "in the target security context\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --no-preserve-root do not treat '/' " - "specially (the default)\n --preserve-root " - " fail to operate recursively on '/'\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --reference=RFILE use RFILE's security context rather than " - "specifying\n a CONTEXT value\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -R, --recursive operate on files and " - "directories recursively\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -v, --verbose output a diagnostic for " - "every file processed\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe following options modify how a hierarchy is traversed when " - "the -R\noption is also specified. If more than one is specified, " - "only the final\none takes effect.\n\n -H if " - "a command line argument is a symbolic link\n " - " to a directory, traverse it\n -L traverse " - "every symbolic link to a directory\n " - "encountered\n -P do not traverse any " - "symbolic links (default)\n\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("chcon"); - } - exit(status); -} - -int main(int argc, char **argv) { - - int bit_flags = 0x0010; - - int dereference = -1; - - _Bool ok; - - _Bool preserve_root = 0; - - _Bool component_specified = 0; - char *reference_file = ((void *)0); - int optc; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "HLPRhvu:r:t:l:", long_options, - ((void *)0))) != -1) { - switch (optc) { - case 'H': - bit_flags = 0x0001 | 0x0010; - break; - - case 'L': - bit_flags = 0x0002; - break; - - case 'P': - bit_flags = 0x0010; - break; - - case 'h': - dereference = 0; - break; - - case DEREFERENCE_OPTION: - - dereference = 1; - break; - - case NO_PRESERVE_ROOT: - preserve_root = 0; - break; - - case PRESERVE_ROOT: - preserve_root = 1; - break; - - case REFERENCE_FILE_OPTION: - reference_file = optarg; - break; - - case 'R': - recurse = 1; - break; - - case 'f': - - break; - - case 'v': - verbose = 1; - break; - - case 'u': - specified_user = optarg; - component_specified = 1; - break; - - case 'r': - specified_role = optarg; - component_specified = 1; - break; - - case 't': - specified_type = optarg; - component_specified = 1; - break; - - case 'l': - specified_range = optarg; - component_specified = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "chcon", "GNU coreutils", Version, ("Russell Coker"), - ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (recurse) { - if (bit_flags == 0x0010) { - if (dereference == 1) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"-R --dereference " - "requires either -H or -L\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "-R --dereference requires either -H or -L", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "-R --dereference requires either -H or -L", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - affect_symlink_referent = 0; - } else { - if (dereference == 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"-R -h " - "requires -P\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "-R -h requires -P", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "-R -h requires -P", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - affect_symlink_referent = 1; - } - } else { - bit_flags = 0x0010; - affect_symlink_referent = (dereference != 0); - } - - if (argc - optind < (reference_file || component_specified ? 1 : 2)) { - if (argc <= optind) - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - else - error(0, 0, dcgettext(((void *)0), "missing operand after %s", 5), - quote(argv[argc - 1])); - usage(1); - } - - if (reference_file) { - char *ref_context = ((void *)0); - - if (rpl_getfilecon(reference_file, &ref_context) < 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to get security context of %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "reference_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to get security context of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - reference_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to get security context of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - reference_file)), - ((0) ? (void)0 : __builtin_unreachable())))); - - specified_context = ref_context; - } else if (component_specified) { - - specified_context = ((void *)0); - } else { - specified_context = argv[optind++]; - if (0 < is_selinux_enabled() && - security_check_context(specified_context) < 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"invalid context: %s\", 5), quote " - "(specified_context)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "invalid context: %s", 5), - quote(specified_context)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "invalid context: %s", 5), - quote(specified_context)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (reference_file && component_specified) { - error(0, 0, - dcgettext(((void *)0), - "conflicting security context specifiers given", 5)); - usage(1); - } - - if (recurse && preserve_root) { - static struct dev_ino dev_ino_buf; - root_dev_ino = get_root_dev_ino(&dev_ino_buf); - if (root_dev_ino == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to get attributes of %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, \"/\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable())))); - } else { - root_dev_ino = ((void *)0); - } - - ok = process_files(argv + optind, bit_flags | 0x0008); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/chgrp.c b/tests/source/coreutils/chgrp.c deleted file mode 100644 index 4c0205e..0000000 --- a/tests/source/coreutils/chgrp.c +++ /dev/null @@ -1,7354 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct group { - char *gr_name; - char *gr_passwd; - __gid_t gr_gid; - char **gr_mem; -}; -extern void setgrent(void); - -extern void endgrent(void); - -extern struct group *getgrent(void); -extern struct group *fgetgrent(FILE *__stream); -extern int putgrent(const struct group *__restrict __p, FILE *__restrict __f); - -extern struct group *getgrgid(__gid_t __gid); - -extern struct group *getgrnam(const char *__name); -extern int getgrent_r(struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrgid_r(__gid_t __gid, struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrnam_r(const char *__restrict __name, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); -extern int fgetgrent_r(FILE *__restrict __stream, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int setgroups(size_t __n, const __gid_t *__groups) - __attribute__((__nothrow__, __leaf__)); -extern int getgrouplist(const char *__user, __gid_t __group, __gid_t *__groups, - int *__ngroups); -extern int initgroups(const char *__user, __gid_t __group); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -enum Change_status { - CH_NOT_APPLIED = 1, - CH_SUCCEEDED, - CH_FAILED, - CH_NO_CHANGE_REQUESTED -}; - -enum Verbosity { - - V_high, - - V_changes_only, - - V_off -}; - -struct Chown_option { - - enum Verbosity verbosity; - - _Bool recurse; - - struct dev_ino *root_dev_ino; - - _Bool affect_symlink_referent; - - _Bool force_silent; - - char *user_name; - - char *group_name; -}; - -void chopt_init(struct Chown_option *); - -void chopt_free(struct Chown_option *); - -char *gid_to_name(gid_t) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *uid_to_name(uid_t) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -_Bool - -chown_files (char **files, int bit_flags, - uid_t uid, gid_t gid, - uid_t required_uid, gid_t required_gid, - struct Chown_option const *chopt) - __attribute__ ((__nonnull__ )); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -enum { I_RING_SIZE = 4 }; -_Static_assert(1 <= I_RING_SIZE, "verify (" - "1 <= I_RING_SIZE" - ")"); -struct I_ring { - int ir_data[I_RING_SIZE]; - int ir_default_val; - unsigned int ir_front; - unsigned int ir_back; - - _Bool ir_empty; -}; -typedef struct I_ring I_ring; - -void i_ring_init(I_ring *ir, int ir_default_val); -int i_ring_push(I_ring *ir, int val); -int i_ring_pop(I_ring *ir); - -_Bool i_ring_empty(I_ring const *ir) __attribute__((__pure__)); - -typedef struct { - struct _ftsent *fts_cur; - struct _ftsent *fts_child; - struct _ftsent **fts_array; - dev_t fts_dev; - char *fts_path; - int fts_rfd; - int fts_cwd_fd; - - size_t fts_pathlen; - size_t fts_nitems; - int (*fts_compar)(struct _ftsent const **, struct _ftsent const **); - int fts_options; - struct hash_table *fts_leaf_optimization_works_ht; - - union { - struct hash_table *ht; - - struct cycle_check_state *state; - } fts_cycle; - - I_ring fts_fd_ring; -} FTS; - -typedef struct _ftsent { - struct _ftsent *fts_cycle; - struct _ftsent *fts_parent; - struct _ftsent *fts_link; - DIR *fts_dirp; - - long fts_number; - void *fts_pointer; - char *fts_accpath; - char *fts_path; - int fts_errno; - int fts_symfd; - size_t fts_pathlen; - - FTS *fts_fts; - - ptrdiff_t fts_level; - - size_t fts_namelen; - unsigned short int fts_info; - - unsigned short int fts_flags; - - unsigned short int fts_instr; - - struct stat fts_statp[1]; - char fts_name[]; -} FTSENT; - -FTSENT *rpl_fts_children(FTS *, int); - -int rpl_fts_close(FTS *); - -FTS *rpl_fts_open(char *const *, int, int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__(rpl_fts_close, 1))); - -FTSENT *rpl_fts_read(FTS *); - -int rpl_fts_set(FTS *, FTSENT *, int); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct dev_ino *get_root_dev_ino(struct dev_ino *root_d_i) - __attribute__((__nonnull__)); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -static char *reference_file; - -enum { - DEREFERENCE_OPTION = 0x7f + 1, - NO_PRESERVE_ROOT, - PRESERVE_ROOT, - REFERENCE_FILE_OPTION -}; - -static struct option const long_options[] = { - {"recursive", 0, ((void *)0), 'R'}, - {"changes", 0, ((void *)0), 'c'}, - {"dereference", 0, ((void *)0), DEREFERENCE_OPTION}, - {"no-dereference", 0, ((void *)0), 'h'}, - {"no-preserve-root", 0, ((void *)0), NO_PRESERVE_ROOT}, - {"preserve-root", 0, ((void *)0), PRESERVE_ROOT}, - {"quiet", 0, ((void *)0), 'f'}, - {"silent", 0, ((void *)0), 'f'}, - {"reference", 1, ((void *)0), REFERENCE_FILE_OPTION}, - {"verbose", 0, ((void *)0), 'v'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static gid_t parse_group(char const *name) { - gid_t gid = -1; - - if (*name) { - struct group *grp = getgrnam(name); - if (grp) - gid = grp->gr_gid; - else { - uintmax_t tmp; - if (!(xstrtoumax(name, ((void *)0), 10, &tmp, "") == LONGINT_OK && - tmp <= - ((gid_t)(!(!((gid_t)0 < (gid_t)-1)) - ? (gid_t)-1 - : ((((gid_t)1 << ((sizeof(gid_t) * 8) - 2)) - 1) * - 2 + - 1))))) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "group: %s\", 5), quote (name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid group: %s", 5), - quote(name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid group: %s", 5), - quote(name)), - ((0) ? (void)0 : __builtin_unreachable())))); - gid = tmp; - } - endgrent(); - } - - return gid; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... GROUP FILE...\n or: %s " - "[OPTION]... --reference=RFILE FILE...\n", - 5) - - , - program_name, program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Change the group of each FILE to GROUP.\nWith --reference, " - "change the group of each FILE to that of RFILE.\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -c, --changes like verbose but report only when " - "a change is made\n -f, --silent, --quiet suppress most " - "error messages\n -v, --verbose output a " - "diagnostic for every file processed\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --dereference affect the referent of each symbolic " - "link (this is\n the default), rather than " - "the symbolic link itself\n -h, --no-dereference affect " - "symbolic links instead of any referenced file\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " (useful only on systems that can change " - "the\n ownership of a symlink)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --no-preserve-root do not treat '/' " - "specially (the default)\n --preserve-root " - " fail to operate recursively on '/'\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --reference=RFILE use RFILE's group rather than " - "specifying a\n GROUP value\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -R, --recursive operate on files and " - "directories recursively\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe following options modify how a hierarchy is traversed when " - "the -R\noption is also specified. If more than one is specified, " - "only the final\none takes effect.\n\n -H if " - "a command line argument is a symbolic link\n " - " to a directory, traverse it\n -L traverse " - "every symbolic link to a directory\n " - "encountered\n -P do not traverse any " - "symbolic links (default)\n\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nExamples:\n %s staff /u Change the group of /u " - "to \"staff\".\n %s -hR staff /u Change the group of /u " - "and subfiles to \"staff\".\n", - 5) - - , - program_name, program_name); - emit_ancillary_info("chgrp"); - } - exit(status); -} - -int main(int argc, char **argv) { - - _Bool preserve_root = 0; - gid_t gid; - - int bit_flags = 0x0010; - - int dereference = -1; - - struct Chown_option chopt; - - _Bool ok; - int optc; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - chopt_init(&chopt); - - while ((optc = getopt_long(argc, argv, "HLPRcfhv", long_options, - ((void *)0))) != -1) { - switch (optc) { - case 'H': - bit_flags = 0x0001 | 0x0010; - break; - - case 'L': - bit_flags = 0x0002; - break; - - case 'P': - bit_flags = 0x0010; - break; - - case 'h': - dereference = 0; - break; - - case DEREFERENCE_OPTION: - - dereference = 1; - break; - - case NO_PRESERVE_ROOT: - preserve_root = 0; - break; - - case PRESERVE_ROOT: - preserve_root = 1; - break; - - case REFERENCE_FILE_OPTION: - reference_file = optarg; - break; - - case 'R': - chopt.recurse = 1; - break; - - case 'c': - chopt.verbosity = V_changes_only; - break; - - case 'f': - chopt.force_silent = 1; - break; - - case 'v': - chopt.verbosity = V_high; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "chgrp", "GNU coreutils", Version, - ("David MacKenzie"), ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (chopt.recurse) { - if (bit_flags == 0x0010) { - if (dereference == 1) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"-R --dereference " - "requires either -H or -L\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "-R --dereference requires either -H or -L", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "-R --dereference requires either -H or -L", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - dereference = 0; - } - } else { - bit_flags = 0x0010; - } - chopt.affect_symlink_referent = (dereference != 0); - - if (argc - optind < (reference_file ? 1 : 2)) { - if (argc <= optind) - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - else - error(0, 0, dcgettext(((void *)0), "missing operand after %s", 5), - quote(argv[argc - 1])); - usage(1); - } - - if (reference_file) { - struct stat ref_stats; - if (stat(reference_file, &ref_stats)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to get attributes of %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "reference_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - reference_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - reference_file)), - ((0) ? (void)0 : __builtin_unreachable())))); - - gid = ref_stats.st_gid; - chopt.group_name = gid_to_name(ref_stats.st_gid); - } else { - char *group_name = argv[optind++]; - chopt.group_name = (*group_name ? xstrdup(group_name) : ((void *)0)); - gid = parse_group(group_name); - } - - if (chopt.recurse && preserve_root) { - static struct dev_ino dev_ino_buf; - chopt.root_dev_ino = get_root_dev_ino(&dev_ino_buf); - if (chopt.root_dev_ino == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to get attributes of %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, \"/\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - bit_flags |= 0x0400; - ok = chown_files(argv + optind, bit_flags, (uid_t)-1, gid, (uid_t)-1, - (gid_t)-1, &chopt); - - exit(ok ? 0 : 1); -} diff --git a/tests/source/coreutils/chmod.c b/tests/source/coreutils/chmod.c deleted file mode 100644 index a2d8b7f..0000000 --- a/tests/source/coreutils/chmod.c +++ /dev/null @@ -1,7491 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern void strmode(mode_t mode, char *str); - -extern void filemodestring(struct stat const *statp, char *str); - -struct mode_change *mode_compile(const char *) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -struct mode_change *mode_create_from_ref(const char *) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -mode_t mode_adjust(mode_t, _Bool, mode_t, struct mode_change const *, mode_t *); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct dev_ino *get_root_dev_ino(struct dev_ino *root_d_i) - __attribute__((__nonnull__)); - -enum { I_RING_SIZE = 4 }; -_Static_assert(1 <= I_RING_SIZE, "verify (" - "1 <= I_RING_SIZE" - ")"); -struct I_ring { - int ir_data[I_RING_SIZE]; - int ir_default_val; - unsigned int ir_front; - unsigned int ir_back; - - _Bool ir_empty; -}; -typedef struct I_ring I_ring; - -void i_ring_init(I_ring *ir, int ir_default_val); -int i_ring_push(I_ring *ir, int val); -int i_ring_pop(I_ring *ir); - -_Bool i_ring_empty(I_ring const *ir) __attribute__((__pure__)); - -typedef struct { - struct _ftsent *fts_cur; - struct _ftsent *fts_child; - struct _ftsent **fts_array; - dev_t fts_dev; - char *fts_path; - int fts_rfd; - int fts_cwd_fd; - - size_t fts_pathlen; - size_t fts_nitems; - int (*fts_compar)(struct _ftsent const **, struct _ftsent const **); - int fts_options; - struct hash_table *fts_leaf_optimization_works_ht; - - union { - struct hash_table *ht; - - struct cycle_check_state *state; - } fts_cycle; - - I_ring fts_fd_ring; -} FTS; - -typedef struct _ftsent { - struct _ftsent *fts_cycle; - struct _ftsent *fts_parent; - struct _ftsent *fts_link; - DIR *fts_dirp; - - long fts_number; - void *fts_pointer; - char *fts_accpath; - char *fts_path; - int fts_errno; - int fts_symfd; - size_t fts_pathlen; - - FTS *fts_fts; - - ptrdiff_t fts_level; - - size_t fts_namelen; - unsigned short int fts_info; - - unsigned short int fts_flags; - - unsigned short int fts_instr; - - struct stat fts_statp[1]; - char fts_name[]; -} FTSENT; - -FTSENT *rpl_fts_children(FTS *, int); - -int rpl_fts_close(FTS *); - -FTS *rpl_fts_open(char *const *, int, int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__(rpl_fts_close, 1))); - -FTSENT *rpl_fts_read(FTS *); - -int rpl_fts_set(FTS *, FTSENT *, int); - -FTS *xfts_open(char *const *, int options, - int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__)) __attribute__((__malloc__(rpl_fts_close, 1))) - __attribute__((__nonnull__(1))) __attribute__((__returns_nonnull__)); - -_Bool - -cycle_warning_required (FTS const *fts, FTSENT const *ent) - __attribute__ ((__nonnull__ )) __attribute__ ((__pure__)); -struct change_status { - enum { - CH_NO_STAT, - CH_FAILED, - CH_NOT_APPLIED, - CH_NO_CHANGE_REQUESTED, - CH_SUCCEEDED - } status; - mode_t old_mode; - mode_t new_mode; -}; - -enum Verbosity { - - V_high, - - V_changes_only, - - V_off -}; - -static struct mode_change *change; - -static mode_t umask_value; - -static _Bool recurse; - -static _Bool force_silent; - -static _Bool diagnose_surprises; - -static enum Verbosity verbosity = V_off; - -static struct dev_ino *root_dev_ino; - -enum { NO_PRESERVE_ROOT = 0x7f + 1, PRESERVE_ROOT, REFERENCE_FILE_OPTION }; - -static struct option const long_options[] = { - {"changes", 0, ((void *)0), 'c'}, - {"recursive", 0, ((void *)0), 'R'}, - {"no-preserve-root", 0, ((void *)0), NO_PRESERVE_ROOT}, - {"preserve-root", 0, ((void *)0), PRESERVE_ROOT}, - {"quiet", 0, ((void *)0), 'f'}, - {"reference", 1, ((void *)0), REFERENCE_FILE_OPTION}, - {"silent", 0, ((void *)0), 'f'}, - {"verbose", 0, ((void *)0), 'v'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static _Bool - -mode_changed(int dir_fd, char const *file, char const *file_full_name, - mode_t old_mode, mode_t new_mode) { - if (new_mode & (04000 | 02000 | 01000)) { - - struct stat new_stats; - - if (fstatat(dir_fd, file, &new_stats, 0) != 0) { - if (!force_silent) - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "getting new attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - return 0; - } - - new_mode = new_stats.st_mode; - } - - return ((old_mode ^ new_mode) & - (04000 | 02000 | 01000 | (0400 | 0200 | 0100) | - ((0400 | 0200 | 0100) >> 3) | (((0400 | 0200 | 0100) >> 3) >> 3))) != - 0; -} - -static void describe_change(char const *file, struct change_status const *ch) { - char perms[12]; - char old_perms[12]; - char const *fmt; - char const *quoted_file = - quotearg_style(shell_escape_always_quoting_style, file); - - switch (ch->status) { - case CH_NOT_APPLIED: - printf(dcgettext(((void *)0), - "neither symbolic link %s nor referent has been changed\n", - 5), - quoted_file); - return; - - case CH_NO_STAT: - printf(dcgettext(((void *)0), "%s could not be accessed\n", 5), - quoted_file); - return; - - default: - break; - } - - unsigned long int old_m = ch->old_mode & - (04000 | 02000 | 01000 | (0400 | 0200 | 0100) | - ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3)), - m = ch->new_mode & - (04000 | 02000 | 01000 | (0400 | 0200 | 0100) | - ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3)); - - strmode(ch->new_mode, perms); - perms[10] = '\0'; - - strmode(ch->old_mode, old_perms); - old_perms[10] = '\0'; - - switch (ch->status) { - case CH_SUCCEEDED: - fmt = dcgettext(((void *)0), - "mode of %s changed from %04lo (%s) to %04lo (%s)\n", 5); - break; - case CH_FAILED: - fmt = dcgettext( - ((void *)0), - "failed to change mode of %s from %04lo (%s) to %04lo (%s)\n", 5); - break; - case CH_NO_CHANGE_REQUESTED: - fmt = dcgettext(((void *)0), "mode of %s retained as %04lo (%s)\n", 5); - printf(fmt, quoted_file, m, &perms[1]); - return; - default: - abort(); - } - printf(fmt, quoted_file, old_m, &old_perms[1], m, &perms[1]); -} - -static _Bool - -process_file(FTS *fts, FTSENT *ent) { - char const *file_full_name = ent->fts_path; - char const *file = ent->fts_accpath; - const struct stat *file_stats = ent->fts_statp; - struct change_status ch = { - 0, - }; - ch.status = CH_NO_STAT; - - switch (ent->fts_info) { - case 6: - return 1; - - case 10: - - if (ent->fts_level == 0 && ent->fts_number == 0) { - ent->fts_number = 1; - rpl_fts_set(fts, ent, 1); - return 1; - } - if (!force_silent) - error(0, ent->fts_errno, dcgettext(((void *)0), "cannot access %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - break; - - case 7: - if (!force_silent) - error(0, ent->fts_errno, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - file_full_name)); - break; - - case 4: - if (!force_silent) - error(0, ent->fts_errno, - dcgettext(((void *)0), "cannot read directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - break; - - case 13: - if (!force_silent) - error(0, 0, - dcgettext(((void *)0), "cannot operate on dangling symlink %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - break; - - case 2: - if (cycle_warning_required(fts, ent)) { - do { - error(0, 0, - dcgettext(((void *)0), - "WARNING: Circular directory structure.\nThis almost " - "certainly means that you have a corrupted file " - "system.\nNOTIFY YOUR SYSTEM MANAGER.\nThe following " - "directory is part of the cycle:\n %s\n", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - file_full_name)); - } while (0); - return 0; - }; - default: - ch.status = CH_NOT_APPLIED; - break; - } - - if (ch.status == CH_NOT_APPLIED && - (root_dev_ino && ((*file_stats).st_ino == (*root_dev_ino).st_ino && - (*file_stats).st_dev == (*root_dev_ino).st_dev))) { - do { - if ((strcmp(file_full_name, "/") == 0)) - error( - 0, 0, - dcgettext(((void *)0), - "it is dangerous to operate recursively on %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - else - error(0, 0, - dcgettext( - ((void *)0), - "it is dangerous to operate recursively on %s (same as %s)", - 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - file_full_name), - quotearg_n_style(1, shell_escape_always_quoting_style, "/")); - error(0, 0, - dcgettext(((void *)0), - "use --no-preserve-root to override this failsafe", 5)); - } while (0); - - rpl_fts_set(fts, ent, 4); - - (__extension__({ - __typeof__(rpl_fts_read(fts)) __x = (rpl_fts_read(fts)); - (void)__x; - })); - return 0; - } - - if (ch.status == CH_NOT_APPLIED && - !((((file_stats->st_mode)) & 0170000) == (0120000))) { - ch.old_mode = file_stats->st_mode; - ch.new_mode = mode_adjust(ch.old_mode, - ((((ch.old_mode)) & 0170000) == (0040000)) != 0, - umask_value, change, ((void *)0)); - if (chmodat(fts->fts_cwd_fd, file, ch.new_mode) == 0) - ch.status = CH_SUCCEEDED; - else { - if (!force_silent) - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "changing permissions of %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - ch.status = CH_FAILED; - } - } - - if (verbosity != V_off) { - if (ch.status == CH_SUCCEEDED && - !mode_changed(fts->fts_cwd_fd, file, file_full_name, ch.old_mode, - ch.new_mode)) - ch.status = CH_NO_CHANGE_REQUESTED; - - if (ch.status == CH_SUCCEEDED || verbosity == V_high) - describe_change(file_full_name, &ch); - } - - if (CH_NO_CHANGE_REQUESTED <= ch.status && diagnose_surprises) { - mode_t naively_expected_mode = mode_adjust( - ch.old_mode, ((((ch.old_mode)) & 0170000) == (0040000)) != 0, 0, change, - ((void *)0)); - if (ch.new_mode & ~naively_expected_mode) { - char new_perms[12]; - char naively_expected_perms[12]; - strmode(ch.new_mode, new_perms); - strmode(naively_expected_mode, naively_expected_perms); - new_perms[10] = naively_expected_perms[10] = '\0'; - error( - 0, 0, - - dcgettext(((void *)0), "%s: new permissions are %s, not %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file_full_name), - new_perms + 1, naively_expected_perms + 1); - ch.status = CH_FAILED; - } - } - - if (!recurse) - rpl_fts_set(fts, ent, 4); - - return CH_NOT_APPLIED <= ch.status; -} - -static _Bool - -process_files(char **files, int bit_flags) { - - _Bool ok = 1; - - FTS *fts = xfts_open(files, bit_flags, ((void *)0)); - - while (1) { - FTSENT *ent; - - ent = rpl_fts_read(fts); - if (ent == ((void *)0)) { - if ((*__errno_location()) != 0) { - - if (!force_silent) - error(0, (*__errno_location()), - dcgettext(((void *)0), "fts_read failed", 5)); - ok = 0; - } - break; - } - - ok &= process_file(fts, ent); - } - - if (rpl_fts_close(fts) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "fts_close failed", 5)); - ok = 0; - } - - return ok; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... MODE[,MODE]... FILE...\n or: %s " - "[OPTION]... OCTAL-MODE FILE...\n or: %s [OPTION]... " - "--reference=RFILE FILE...\n", - 5) - - , - program_name, program_name, program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Change the mode of each FILE to MODE.\nWith --reference, " - "change the mode of each FILE to that of RFILE.\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -c, --changes like verbose but report only when " - "a change is made\n -f, --silent, --quiet suppress most " - "error messages\n -v, --verbose output a " - "diagnostic for every file processed\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --no-preserve-root do not treat '/' " - "specially (the default)\n --preserve-root " - " fail to operate recursively on '/'\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --reference=RFILE use RFILE's mode " - "instead of MODE values\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -R, --recursive change files and " - "directories recursively\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nEach MODE is of the form " - "'[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+'.\n", - 5), - stdout) - - ; - emit_ancillary_info("chmod"); - } - exit(status); -} - -int main(int argc, char **argv) { - char *mode = ((void *)0); - size_t mode_len = 0; - size_t mode_alloc = 0; - - _Bool ok; - - _Bool preserve_root = 0; - char const *reference_file = ((void *)0); - int c; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - recurse = force_silent = diagnose_surprises = 0; - - while ((c = getopt_long(argc, argv, - ("Rcfvr::w::x::X::s::t::u::g::o::a::,::+::=::" - "0::1::2::3::4::5::6::7::"), - long_options, ((void *)0))) != -1) { - switch (c) { - case 'r': - case 'w': - case 'x': - case 'X': - case 's': - case 't': - case 'u': - case 'g': - case 'o': - case 'a': - case ',': - case '+': - case '=': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - - { - - char const *arg = argv[optind - 1]; - size_t arg_len = strlen(arg); - size_t mode_comma_len = mode_len + !!mode_len; - size_t new_mode_len = mode_comma_len + arg_len; - if (mode_alloc <= new_mode_len) { - mode_alloc = new_mode_len + 1; - mode = ((!!sizeof(struct { - _Static_assert(sizeof *(mode) == 1, "verify_expr (" - "sizeof *(mode) == 1" - ", " - "x2realloc (mode, &mode_alloc)" - ")"); - int _gl_dummy; - })) - ? (x2realloc(mode, &mode_alloc)) - : (x2realloc(mode, &mode_alloc))); - } - mode[mode_len] = ','; - memcpy(mode + mode_comma_len, arg, arg_len + 1); - mode_len = new_mode_len; - - diagnose_surprises = 1; - } break; - case NO_PRESERVE_ROOT: - preserve_root = 0; - break; - case PRESERVE_ROOT: - preserve_root = 1; - break; - case REFERENCE_FILE_OPTION: - reference_file = optarg; - break; - case 'R': - recurse = 1; - break; - case 'c': - verbosity = V_changes_only; - break; - case 'f': - force_silent = 1; - break; - case 'v': - verbosity = V_high; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "chmod", "GNU coreutils", Version, - ("David MacKenzie"), ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (reference_file) { - if (mode) { - error(0, 0, - dcgettext(((void *)0), - "cannot combine mode and --reference options", 5)); - usage(1); - } - } else { - if (!mode) - mode = argv[optind++]; - } - - if (optind >= argc) { - if (!mode || mode != argv[optind - 1]) - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - else - error(0, 0, dcgettext(((void *)0), "missing operand after %s", 5), - quote(argv[argc - 1])); - usage(1); - } - - if (reference_file) { - change = mode_create_from_ref(reference_file); - if (!change) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to get attributes of %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "reference_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - reference_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - reference_file)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else { - change = mode_compile(mode); - if (!change) { - error(0, 0, dcgettext(((void *)0), "invalid mode: %s", 5), quote(mode)); - usage(1); - } - umask_value = umask(0); - } - - if (recurse && preserve_root) { - static struct dev_ino dev_ino_buf; - root_dev_ino = get_root_dev_ino(&dev_ino_buf); - if (root_dev_ino == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to get attributes of %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, \"/\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable())))); - } else { - root_dev_ino = ((void *)0); - } - - ok = process_files(argv + optind, 0x0001 | 0x0010 | 0x0400); - - exit(ok ? 0 : 1); -} diff --git a/tests/source/coreutils/chown-core.c b/tests/source/coreutils/chown-core.c deleted file mode 100644 index bb5f4c4..0000000 --- a/tests/source/coreutils/chown-core.c +++ /dev/null @@ -1,7489 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct passwd { - char *pw_name; - char *pw_passwd; - - __uid_t pw_uid; - __gid_t pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; -extern void setpwent(void); - -extern void endpwent(void); - -extern struct passwd *getpwent(void); -extern struct passwd *fgetpwent(FILE *__stream) __attribute__((__nonnull__(1))); - -extern int putpwent(const struct passwd *__restrict __p, FILE *__restrict __f); - -extern struct passwd *getpwuid(__uid_t __uid); - -extern struct passwd *getpwnam(const char *__name) - __attribute__((__nonnull__(1))); -extern int getpwent_r(struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 4))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpwuid_r(__uid_t __uid, struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int getpwnam_r(const char *__restrict __name, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int fgetpwent_r(FILE *__restrict __stream, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int getpw(__uid_t __uid, char *__buffer); - -struct group { - char *gr_name; - char *gr_passwd; - __gid_t gr_gid; - char **gr_mem; -}; -extern void setgrent(void); - -extern void endgrent(void); - -extern struct group *getgrent(void); -extern struct group *fgetgrent(FILE *__stream); -extern int putgrent(const struct group *__restrict __p, FILE *__restrict __f); - -extern struct group *getgrgid(__gid_t __gid); - -extern struct group *getgrnam(const char *__name); -extern int getgrent_r(struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrgid_r(__gid_t __gid, struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrnam_r(const char *__restrict __name, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); -extern int fgetgrent_r(FILE *__restrict __stream, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int setgroups(size_t __n, const __gid_t *__groups) - __attribute__((__nothrow__, __leaf__)); -extern int getgrouplist(const char *__user, __gid_t __group, __gid_t *__groups, - int *__ngroups); -extern int initgroups(const char *__user, __gid_t __group); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -enum Change_status { - CH_NOT_APPLIED = 1, - CH_SUCCEEDED, - CH_FAILED, - CH_NO_CHANGE_REQUESTED -}; - -enum Verbosity { - - V_high, - - V_changes_only, - - V_off -}; - -struct Chown_option { - - enum Verbosity verbosity; - - _Bool recurse; - - struct dev_ino *root_dev_ino; - - _Bool affect_symlink_referent; - - _Bool force_silent; - - char *user_name; - - char *group_name; -}; - -void chopt_init(struct Chown_option *); - -void chopt_free(struct Chown_option *); - -char *gid_to_name(gid_t) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *uid_to_name(uid_t) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -_Bool - -chown_files (char **files, int bit_flags, - uid_t uid, gid_t gid, - uid_t required_uid, gid_t required_gid, - struct Chown_option const *chopt) - __attribute__ ((__nonnull__ )); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct dev_ino *get_root_dev_ino(struct dev_ino *root_d_i) - __attribute__((__nonnull__)); - -enum { I_RING_SIZE = 4 }; -_Static_assert(1 <= I_RING_SIZE, "verify (" - "1 <= I_RING_SIZE" - ")"); -struct I_ring { - int ir_data[I_RING_SIZE]; - int ir_default_val; - unsigned int ir_front; - unsigned int ir_back; - - _Bool ir_empty; -}; -typedef struct I_ring I_ring; - -void i_ring_init(I_ring *ir, int ir_default_val); -int i_ring_push(I_ring *ir, int val); -int i_ring_pop(I_ring *ir); - -_Bool i_ring_empty(I_ring const *ir) __attribute__((__pure__)); - -typedef struct { - struct _ftsent *fts_cur; - struct _ftsent *fts_child; - struct _ftsent **fts_array; - dev_t fts_dev; - char *fts_path; - int fts_rfd; - int fts_cwd_fd; - - size_t fts_pathlen; - size_t fts_nitems; - int (*fts_compar)(struct _ftsent const **, struct _ftsent const **); - int fts_options; - struct hash_table *fts_leaf_optimization_works_ht; - - union { - struct hash_table *ht; - - struct cycle_check_state *state; - } fts_cycle; - - I_ring fts_fd_ring; -} FTS; - -typedef struct _ftsent { - struct _ftsent *fts_cycle; - struct _ftsent *fts_parent; - struct _ftsent *fts_link; - DIR *fts_dirp; - - long fts_number; - void *fts_pointer; - char *fts_accpath; - char *fts_path; - int fts_errno; - int fts_symfd; - size_t fts_pathlen; - - FTS *fts_fts; - - ptrdiff_t fts_level; - - size_t fts_namelen; - unsigned short int fts_info; - - unsigned short int fts_flags; - - unsigned short int fts_instr; - - struct stat fts_statp[1]; - char fts_name[]; -} FTSENT; - -FTSENT *rpl_fts_children(FTS *, int); - -int rpl_fts_close(FTS *); - -FTS *rpl_fts_open(char *const *, int, int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__(rpl_fts_close, 1))); - -FTSENT *rpl_fts_read(FTS *); - -int rpl_fts_set(FTS *, FTSENT *, int); - -FTS *xfts_open(char *const *, int options, - int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__)) __attribute__((__malloc__(rpl_fts_close, 1))) - __attribute__((__nonnull__(1))) __attribute__((__returns_nonnull__)); - -_Bool - -cycle_warning_required (FTS const *fts, FTSENT const *ent) - __attribute__ ((__nonnull__ )) __attribute__ ((__pure__)); - -enum RCH_status { - - RC_ok = 2, - - RC_excluded, - - RC_inode_changed, - - RC_do_ordinary_chown, - - RC_error -}; - -extern void chopt_init(struct Chown_option *chopt) { - chopt->verbosity = V_off; - chopt->root_dev_ino = ((void *)0); - chopt->affect_symlink_referent = 1; - chopt->recurse = 0; - chopt->force_silent = 0; - chopt->user_name = ((void *)0); - chopt->group_name = ((void *)0); -} - -extern void chopt_free(struct Chown_option *chopt) { - free(chopt->user_name); - free(chopt->group_name); -} - -static char *uid_to_str(uid_t uid) { - char buf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - return xstrdup((!((uid_t)0 < (uid_t)-1)) ? imaxtostr(uid, buf) - : umaxtostr(uid, buf)); -} - -static char *gid_to_str(gid_t gid) { - char buf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - return xstrdup((!((gid_t)0 < (gid_t)-1)) ? imaxtostr(gid, buf) - : umaxtostr(gid, buf)); -} - -extern char *gid_to_name(gid_t gid) { - struct group *grp = getgrgid(gid); - return grp ? xstrdup(grp->gr_name) : gid_to_str(gid); -} - -extern char *uid_to_name(uid_t uid) { - struct passwd *pwd = getpwuid(uid); - return pwd ? xstrdup(pwd->pw_name) : uid_to_str(uid); -} - -static char *user_group_str(char const *user, char const *group) { - char *spec = ((void *)0); - - if (user) { - if (group) { - spec = xmalloc(strlen(user) + 1 + strlen(group) + 1); - stpcpy(stpcpy(stpcpy(spec, user), ":"), group); - } else { - spec = xstrdup(user); - } - } else if (group) { - spec = xstrdup(group); - } - - return spec; -} - -static void describe_change(char const *file, enum Change_status changed, - char const *old_user, char const *old_group, - char const *user, char const *group) { - char const *fmt; - char *old_spec; - char *spec; - - if (changed == CH_NOT_APPLIED) { - printf(dcgettext(((void *)0), - "neither symbolic link %s nor referent has been changed\n", - 5), - quotearg_style(shell_escape_always_quoting_style, file)); - return; - } - - spec = user_group_str(user, group); - old_spec = user_group_str(user ? old_user : ((void *)0), - group ? old_group : ((void *)0)); - - switch (changed) { - case CH_SUCCEEDED: - fmt = - (user ? dcgettext(((void *)0), - "changed ownership of %s from %s to %s\n", 5) - - : group - ? dcgettext(((void *)0), "changed group of %s from %s to %s\n", 5) - - : dcgettext(((void *)0), "no change to ownership of %s\n", 5)); - break; - case CH_FAILED: - if (old_spec) { - fmt = (user ? dcgettext( - ((void *)0), - "failed to change ownership of %s from %s to %s\n", 5) - - : group - ? dcgettext(((void *)0), - "failed to change group of %s from %s to %s\n", 5) - - : dcgettext(((void *)0), "failed to change ownership of %s\n", - 5)); - } else { - fmt = (user ? dcgettext(((void *)0), - "failed to change ownership of %s to %s\n", 5) - - : group ? dcgettext(((void *)0), - "failed to change group of %s to %s\n", 5) - - : dcgettext(((void *)0), - "failed to change ownership of %s\n", 5)); - free(old_spec); - old_spec = spec; - spec = ((void *)0); - } - break; - case CH_NO_CHANGE_REQUESTED: - fmt = (user ? dcgettext(((void *)0), "ownership of %s retained as %s\n", 5) - - : group ? dcgettext(((void *)0), "group of %s retained as %s\n", 5) - - : dcgettext(((void *)0), "ownership of %s retained\n", 5)); - break; - default: - abort(); - } - - printf(fmt, quotearg_style(shell_escape_always_quoting_style, file), old_spec, - spec); - - free(old_spec); - free(spec); -} -static enum RCH_status restricted_chown(int cwd_fd, char const *file, - struct stat const *orig_st, uid_t uid, - gid_t gid, uid_t required_uid, - gid_t required_gid) { - enum RCH_status status = RC_ok; - struct stat st; - int open_flags = 04000 | 0400; - int fd; - - if (required_uid == (uid_t)-1 && required_gid == (gid_t)-1) - return RC_do_ordinary_chown; - - if (!((((orig_st->st_mode)) & 0170000) == (0100000))) { - if (((((orig_st->st_mode)) & 0170000) == (0040000))) - open_flags |= 0200000; - else - return RC_do_ordinary_chown; - } - - fd = openat(cwd_fd, file, 00 | open_flags); - if (!(0 <= fd || ((*__errno_location()) == 13 && - ((((orig_st->st_mode)) & 0170000) == (0100000)) - - && 0 <= (fd = openat(cwd_fd, file, 01 | open_flags))))) - return ((*__errno_location()) == 13 ? RC_do_ordinary_chown : RC_error); - - if (fstat(fd, &st) != 0) - status = RC_error; - else if (!((*orig_st).st_ino == (st).st_ino && - (*orig_st).st_dev == (st).st_dev)) - status = RC_inode_changed; - else if ((required_uid == (uid_t)-1 || required_uid == st.st_uid) && - (required_gid == (gid_t)-1 || required_gid == st.st_gid)) { - if (fchown(fd, uid, gid) == 0) { - status = (close(fd) == 0 ? RC_ok : RC_error); - return status; - } else { - status = RC_error; - } - } - - int saved_errno = (*__errno_location()); - close(fd); - - (*__errno_location()) = saved_errno; - return status; -} - -static _Bool - -change_file_owner(FTS *fts, FTSENT *ent, uid_t uid, gid_t gid, - uid_t required_uid, gid_t required_gid, - struct Chown_option const *chopt) { - char const *file_full_name = ent->fts_path; - char const *file = ent->fts_accpath; - struct stat const *file_stats; - struct stat stat_buf; - - _Bool ok = 1; - - _Bool do_chown; - - _Bool symlink_changed = 1; - - switch (ent->fts_info) { - case 1: - if (chopt->recurse) { - if ((chopt->root_dev_ino && - ((*ent->fts_statp).st_ino == (*chopt->root_dev_ino).st_ino && - (*ent->fts_statp).st_dev == (*chopt->root_dev_ino).st_dev))) { - - do { - if ((strcmp(file_full_name, "/") == 0)) - error(0, 0, - dcgettext(((void *)0), - "it is dangerous to operate recursively on %s", 5), - quotearg_style(shell_escape_always_quoting_style, - file_full_name)); - else - error( - 0, 0, - dcgettext( - ((void *)0), - "it is dangerous to operate recursively on %s (same as %s)", - 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - file_full_name), - quotearg_n_style(1, shell_escape_always_quoting_style, "/")); - error(0, 0, - dcgettext(((void *)0), - "use --no-preserve-root to override this failsafe", - 5)); - } while (0); - - rpl_fts_set(fts, ent, 4); - - (__extension__({ - __typeof__(rpl_fts_read(fts)) __x = (rpl_fts_read(fts)); - (void)__x; - })); - return 0; - } - return 1; - } - break; - - case 6: - if (!chopt->recurse) - return 1; - break; - - case 10: - - if (ent->fts_level == 0 && ent->fts_number == 0) { - ent->fts_number = 1; - rpl_fts_set(fts, ent, 1); - return 1; - } - if (!chopt->force_silent) - error(0, ent->fts_errno, dcgettext(((void *)0), "cannot access %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - ok = 0; - break; - - case 7: - if (!chopt->force_silent) - error(0, ent->fts_errno, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - file_full_name)); - ok = 0; - break; - - case 4: - if (!chopt->force_silent) - error(0, ent->fts_errno, - dcgettext(((void *)0), "cannot read directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - ok = 0; - break; - - case 2: - if (cycle_warning_required(fts, ent)) { - do { - error(0, 0, - dcgettext(((void *)0), - "WARNING: Circular directory structure.\nThis almost " - "certainly means that you have a corrupted file " - "system.\nNOTIFY YOUR SYSTEM MANAGER.\nThe following " - "directory is part of the cycle:\n %s\n", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - file_full_name)); - } while (0); - return 0; - } - break; - - default: - break; - } - - if (!ok) { - do_chown = 0; - file_stats = ((void *)0); - } else if (required_uid == (uid_t)-1 && required_gid == (gid_t)-1 && - chopt->verbosity == V_off && !chopt->root_dev_ino && - !chopt->affect_symlink_referent) { - do_chown = 1; - file_stats = ent->fts_statp; - } else { - file_stats = ent->fts_statp; - - if (chopt->affect_symlink_referent && - ((((file_stats->st_mode)) & 0170000) == (0120000))) { - if (fstatat(fts->fts_cwd_fd, file, &stat_buf, 0) != 0) { - if (!chopt->force_silent) - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot dereference %s", 5), - quotearg_style(shell_escape_always_quoting_style, - file_full_name)); - ok = 0; - } - - file_stats = &stat_buf; - } - - do_chown = - (ok && - (required_uid == (uid_t)-1 || required_uid == file_stats->st_uid) && - (required_gid == (gid_t)-1 || required_gid == file_stats->st_gid)); - } - - if (ok && - ((ent)->fts_info == 1 || (ent)->fts_info == 2 || (ent)->fts_info == 6 || - (ent)->fts_info == 4) && - (chopt->root_dev_ino && - ((*file_stats).st_ino == (*chopt->root_dev_ino).st_ino && - (*file_stats).st_dev == (*chopt->root_dev_ino).st_dev))) { - do { - if ((strcmp(file_full_name, "/") == 0)) - error( - 0, 0, - dcgettext(((void *)0), - "it is dangerous to operate recursively on %s", 5), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - else - error(0, 0, - dcgettext( - ((void *)0), - "it is dangerous to operate recursively on %s (same as %s)", - 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - file_full_name), - quotearg_n_style(1, shell_escape_always_quoting_style, "/")); - error(0, 0, - dcgettext(((void *)0), - "use --no-preserve-root to override this failsafe", 5)); - } while (0); - return 0; - } - - if (do_chown) { - if (!chopt->affect_symlink_referent) { - ok = (lchownat(fts->fts_cwd_fd, file, uid, gid) == 0); - - if (!ok && (*__errno_location()) == 95) { - ok = 1; - symlink_changed = 0; - } - } else { - enum RCH_status err = - restricted_chown(fts->fts_cwd_fd, file, file_stats, uid, gid, - required_uid, required_gid); - switch (err) { - case RC_ok: - break; - - case RC_do_ordinary_chown: - ok = (chownat(fts->fts_cwd_fd, file, uid, gid) == 0); - break; - - case RC_error: - ok = 0; - break; - - case RC_inode_changed: - - case RC_excluded: - do_chown = 0; - ok = 0; - break; - - default: - abort(); - } - } - if (do_chown && !ok && !chopt->force_silent) - error(0, (*__errno_location()), - (uid != (uid_t)-1 - ? dcgettext(((void *)0), "changing ownership of %s", 5) - - : dcgettext(((void *)0), "changing group of %s", 5)), - quotearg_style(shell_escape_always_quoting_style, file_full_name)); - } - - if (chopt->verbosity != V_off) { - - _Bool changed = ((do_chown && ok && symlink_changed) && - !((uid == (uid_t)-1 || uid == file_stats->st_uid) && - (gid == (gid_t)-1 || gid == file_stats->st_gid))); - - if (changed || chopt->verbosity == V_high) { - enum Change_status ch_status = (!ok ? CH_FAILED - : !symlink_changed ? CH_NOT_APPLIED - : !changed ? CH_NO_CHANGE_REQUESTED - : CH_SUCCEEDED); - char *old_usr = - file_stats ? uid_to_name(file_stats->st_uid) : ((void *)0); - char *old_grp = - file_stats ? gid_to_name(file_stats->st_gid) : ((void *)0); - char *new_usr = chopt->user_name ? chopt->user_name - : uid != -1 ? uid_to_str(uid) - : ((void *)0); - char *new_grp = chopt->group_name ? chopt->group_name - : gid != -1 ? gid_to_str(gid) - : ((void *)0); - describe_change(file_full_name, ch_status, old_usr, old_grp, new_usr, - new_grp); - free(old_usr); - free(old_grp); - if (new_usr != chopt->user_name) - free(new_usr); - if (new_grp != chopt->group_name) - free(new_grp); - } - } - - if (!chopt->recurse) - rpl_fts_set(fts, ent, 4); - - return ok; -} -extern _Bool - -chown_files(char **files, int bit_flags, uid_t uid, gid_t gid, - uid_t required_uid, gid_t required_gid, - struct Chown_option const *chopt) { - - _Bool ok = 1; - - int stat_flags = - ((required_uid != (uid_t)-1 || required_gid != (gid_t)-1 || - chopt->affect_symlink_referent || chopt->verbosity != V_off) - ? 0 - : 0x0008); - - FTS *fts = xfts_open(files, bit_flags | stat_flags, ((void *)0)); - - while (1) { - FTSENT *ent; - - ent = rpl_fts_read(fts); - if (ent == ((void *)0)) { - if ((*__errno_location()) != 0) { - - if (!chopt->force_silent) - error(0, (*__errno_location()), - dcgettext(((void *)0), "fts_read failed", 5)); - ok = 0; - } - break; - } - - ok &= change_file_owner(fts, ent, uid, gid, required_uid, required_gid, - chopt); - } - - if (rpl_fts_close(fts) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "fts_close failed", 5)); - ok = 0; - } - - return ok; -} diff --git a/tests/source/coreutils/chown.c b/tests/source/coreutils/chown.c deleted file mode 100644 index 22c2c08..0000000 --- a/tests/source/coreutils/chown.c +++ /dev/null @@ -1,7313 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -enum Change_status { - CH_NOT_APPLIED = 1, - CH_SUCCEEDED, - CH_FAILED, - CH_NO_CHANGE_REQUESTED -}; - -enum Verbosity { - - V_high, - - V_changes_only, - - V_off -}; - -struct Chown_option { - - enum Verbosity verbosity; - - _Bool recurse; - - struct dev_ino *root_dev_ino; - - _Bool affect_symlink_referent; - - _Bool force_silent; - - char *user_name; - - char *group_name; -}; - -void chopt_init(struct Chown_option *); - -void chopt_free(struct Chown_option *); - -char *gid_to_name(gid_t) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *uid_to_name(uid_t) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -_Bool - -chown_files (char **files, int bit_flags, - uid_t uid, gid_t gid, - uid_t required_uid, gid_t required_gid, - struct Chown_option const *chopt) - __attribute__ ((__nonnull__ )); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -enum { I_RING_SIZE = 4 }; -_Static_assert(1 <= I_RING_SIZE, "verify (" - "1 <= I_RING_SIZE" - ")"); -struct I_ring { - int ir_data[I_RING_SIZE]; - int ir_default_val; - unsigned int ir_front; - unsigned int ir_back; - - _Bool ir_empty; -}; -typedef struct I_ring I_ring; - -void i_ring_init(I_ring *ir, int ir_default_val); -int i_ring_push(I_ring *ir, int val); -int i_ring_pop(I_ring *ir); - -_Bool i_ring_empty(I_ring const *ir) __attribute__((__pure__)); - -typedef struct { - struct _ftsent *fts_cur; - struct _ftsent *fts_child; - struct _ftsent **fts_array; - dev_t fts_dev; - char *fts_path; - int fts_rfd; - int fts_cwd_fd; - - size_t fts_pathlen; - size_t fts_nitems; - int (*fts_compar)(struct _ftsent const **, struct _ftsent const **); - int fts_options; - struct hash_table *fts_leaf_optimization_works_ht; - - union { - struct hash_table *ht; - - struct cycle_check_state *state; - } fts_cycle; - - I_ring fts_fd_ring; -} FTS; - -typedef struct _ftsent { - struct _ftsent *fts_cycle; - struct _ftsent *fts_parent; - struct _ftsent *fts_link; - DIR *fts_dirp; - - long fts_number; - void *fts_pointer; - char *fts_accpath; - char *fts_path; - int fts_errno; - int fts_symfd; - size_t fts_pathlen; - - FTS *fts_fts; - - ptrdiff_t fts_level; - - size_t fts_namelen; - unsigned short int fts_info; - - unsigned short int fts_flags; - - unsigned short int fts_instr; - - struct stat fts_statp[1]; - char fts_name[]; -} FTSENT; - -FTSENT *rpl_fts_children(FTS *, int); - -int rpl_fts_close(FTS *); - -FTS *rpl_fts_open(char *const *, int, int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__(rpl_fts_close, 1))); - -FTSENT *rpl_fts_read(FTS *); - -int rpl_fts_set(FTS *, FTSENT *, int); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct dev_ino *get_root_dev_ino(struct dev_ino *root_d_i) - __attribute__((__nonnull__)); - -char const *parse_user_spec(char const *spec_arg, uid_t *uid, gid_t *gid, - char **username_arg, char **groupname_arg); -char const *parse_user_spec_warn(char const *spec_arg, uid_t *uid, gid_t *gid, - char **username_arg, char **groupname_arg, - _Bool *pwarn); -static char *reference_file; - -enum { - DEREFERENCE_OPTION = 0x7f + 1, - FROM_OPTION, - NO_PRESERVE_ROOT, - PRESERVE_ROOT, - REFERENCE_FILE_OPTION -}; - -static struct option const long_options[] = { - {"recursive", 0, ((void *)0), 'R'}, - {"changes", 0, ((void *)0), 'c'}, - {"dereference", 0, ((void *)0), DEREFERENCE_OPTION}, - {"from", 1, ((void *)0), FROM_OPTION}, - {"no-dereference", 0, ((void *)0), 'h'}, - {"no-preserve-root", 0, ((void *)0), NO_PRESERVE_ROOT}, - {"preserve-root", 0, ((void *)0), PRESERVE_ROOT}, - {"quiet", 0, ((void *)0), 'f'}, - {"silent", 0, ((void *)0), 'f'}, - {"reference", 1, ((void *)0), REFERENCE_FILE_OPTION}, - {"verbose", 0, ((void *)0), 'v'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [OWNER][:[GROUP]] FILE...\n or: " - "%s [OPTION]... --reference=RFILE FILE...\n", - 5) - - , - program_name, program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Change the owner and/or group of each FILE to OWNER and/or " - "GROUP.\nWith --reference, change the owner and group of " - "each FILE to those of RFILE.\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -c, --changes like verbose but report only when " - "a change is made\n -f, --silent, --quiet suppress most " - "error messages\n -v, --verbose output a " - "diagnostic for every file processed\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --dereference affect the referent of each symbolic " - "link (this is\n the default), rather than " - "the symbolic link itself\n -h, --no-dereference affect " - "symbolic links instead of any referenced file\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " (useful only on systems that can change " - "the\n ownership of a symlink)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --from=CURRENT_OWNER:CURRENT_GROUP\n " - " change the owner and/or group of each file only if\n " - " its current owner and/or group " - "match those specified\n here. " - "Either may be omitted, in which case a match\n " - " is not required for the omitted attribute\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --no-preserve-root do not treat '/' " - "specially (the default)\n --preserve-root " - " fail to operate recursively on '/'\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --reference=RFILE use RFILE's owner and group rather " - "than\n specifying OWNER:GROUP values\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -R, --recursive operate on files and " - "directories recursively\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe following options modify how a hierarchy is traversed when " - "the -R\noption is also specified. If more than one is specified, " - "only the final\none takes effect.\n\n -H if " - "a command line argument is a symbolic link\n " - " to a directory, traverse it\n -L traverse " - "every symbolic link to a directory\n " - "encountered\n -P do not traverse any " - "symbolic links (default)\n\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nOwner is unchanged if missing. Group is unchanged if " - "missing, but changed\nto login group if implied by a ':' " - "following a symbolic OWNER.\nOWNER and GROUP may be numeric " - "as well as symbolic.\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - "\nExamples:\n %s root /u Change the owner of /u " - "to \"root\".\n %s root:staff /u Likewise, but also " - "change its group to \"staff\".\n %s -hR root /u " - "Change the owner of /u and subfiles to \"root\".\n", - 5) - - , - program_name, program_name, program_name); - emit_ancillary_info("chown"); - } - exit(status); -} - -int main(int argc, char **argv) { - - _Bool preserve_root = 0; - - uid_t uid = -1; - gid_t gid = -1; - - uid_t required_uid = -1; - gid_t required_gid = -1; - - int bit_flags = 0x0010; - - int dereference = -1; - - struct Chown_option chopt; - - _Bool ok; - int optc; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - chopt_init(&chopt); - - while ((optc = getopt_long(argc, argv, "HLPRcfhv", long_options, - ((void *)0))) != -1) { - switch (optc) { - case 'H': - bit_flags = 0x0001 | 0x0010; - break; - - case 'L': - bit_flags = 0x0002; - break; - - case 'P': - bit_flags = 0x0010; - break; - - case 'h': - dereference = 0; - break; - - case DEREFERENCE_OPTION: - - dereference = 1; - break; - - case NO_PRESERVE_ROOT: - preserve_root = 0; - break; - - case PRESERVE_ROOT: - preserve_root = 1; - break; - - case REFERENCE_FILE_OPTION: - reference_file = optarg; - break; - - case FROM_OPTION: { - - _Bool warn; - char const *e = parse_user_spec_warn(optarg, &required_uid, &required_gid, - - ((void *)0), ((void *)0), &warn); - if (e) - error(warn ? 0 : 1, 0, "%s: %s", e, quote(optarg)); - break; - } - - case 'R': - chopt.recurse = 1; - break; - - case 'c': - chopt.verbosity = V_changes_only; - break; - - case 'f': - chopt.force_silent = 1; - break; - - case 'v': - chopt.verbosity = V_high; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "chown", "GNU coreutils", Version, - ("David MacKenzie"), ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (chopt.recurse) { - if (bit_flags == 0x0010) { - if (dereference == 1) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"-R --dereference " - "requires either -H or -L\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "-R --dereference requires either -H or -L", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "-R --dereference requires either -H or -L", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - dereference = 0; - } - } else { - bit_flags = 0x0010; - } - chopt.affect_symlink_referent = (dereference != 0); - - if (argc - optind < (reference_file ? 1 : 2)) { - if (argc <= optind) - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - else - error(0, 0, dcgettext(((void *)0), "missing operand after %s", 5), - quote(argv[argc - 1])); - usage(1); - } - - if (reference_file) { - struct stat ref_stats; - if (stat(reference_file, &ref_stats)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to get attributes of %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "reference_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - reference_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - reference_file)), - ((0) ? (void)0 : __builtin_unreachable())))); - - uid = ref_stats.st_uid; - gid = ref_stats.st_gid; - chopt.user_name = uid_to_name(ref_stats.st_uid); - chopt.group_name = gid_to_name(ref_stats.st_gid); - } else { - - _Bool warn; - char const *e = parse_user_spec_warn( - argv[optind], &uid, &gid, &chopt.user_name, &chopt.group_name, &warn); - if (e) - error(warn ? 0 : 1, 0, "%s: %s", e, quote(argv[optind])); - - if (!chopt.user_name && chopt.group_name) - chopt.user_name = xstrdup(""); - - optind++; - } - - if (chopt.recurse && preserve_root) { - static struct dev_ino dev_ino_buf; - chopt.root_dev_ino = get_root_dev_ino(&dev_ino_buf); - if (chopt.root_dev_ino == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to get attributes of %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, \"/\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - bit_flags |= 0x0400; - ok = chown_files(argv + optind, bit_flags, uid, gid, required_uid, - required_gid, &chopt); - - exit(ok ? 0 : 1); -} diff --git a/tests/source/coreutils/chroot.c b/tests/source/coreutils/chroot.c deleted file mode 100644 index a4a02b6..0000000 --- a/tests/source/coreutils/chroot.c +++ /dev/null @@ -1,7391 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct passwd { - char *pw_name; - char *pw_passwd; - - __uid_t pw_uid; - __gid_t pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; -extern void setpwent(void); - -extern void endpwent(void); - -extern struct passwd *getpwent(void); -extern struct passwd *fgetpwent(FILE *__stream) __attribute__((__nonnull__(1))); - -extern int putpwent(const struct passwd *__restrict __p, FILE *__restrict __f); - -extern struct passwd *getpwuid(__uid_t __uid); - -extern struct passwd *getpwnam(const char *__name) - __attribute__((__nonnull__(1))); -extern int getpwent_r(struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 4))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpwuid_r(__uid_t __uid, struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int getpwnam_r(const char *__restrict __name, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int fgetpwent_r(FILE *__restrict __stream, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int getpw(__uid_t __uid, char *__buffer); - -struct group { - char *gr_name; - char *gr_passwd; - __gid_t gr_gid; - char **gr_mem; -}; -extern void setgrent(void); - -extern void endgrent(void); - -extern struct group *getgrent(void); -extern struct group *fgetgrent(FILE *__stream); -extern int putgrent(const struct group *__restrict __p, FILE *__restrict __f); - -extern struct group *getgrgid(__gid_t __gid); - -extern struct group *getgrnam(const char *__name); -extern int getgrent_r(struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrgid_r(__gid_t __gid, struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrnam_r(const char *__restrict __name, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); -extern int fgetgrent_r(FILE *__restrict __stream, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int setgroups(size_t __n, const __gid_t *__groups) - __attribute__((__nothrow__, __leaf__)); -extern int getgrouplist(const char *__user, __gid_t __group, __gid_t *__groups, - int *__ngroups); -extern int initgroups(const char *__user, __gid_t __group); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int mgetgroups(const char *username, gid_t gid, gid_t **groups); - -int xgetgroups(const char *username, gid_t gid, gid_t **groups); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -struct dev_ino *get_root_dev_ino(struct dev_ino *root_d_i) - __attribute__((__nonnull__)); - -char const *parse_user_spec(char const *spec_arg, uid_t *uid, gid_t *gid, - char **username_arg, char **groupname_arg); -char const *parse_user_spec_warn(char const *spec_arg, uid_t *uid, gid_t *gid, - char **username_arg, char **groupname_arg, - _Bool *pwarn); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -static inline _Bool uid_unset(uid_t uid) { return uid == (uid_t)-1; } -static inline _Bool gid_unset(gid_t gid) { return gid == (gid_t)-1; } - -enum { GROUPS = (0x7f * 2 + 1) + 1, USERSPEC, SKIP_CHDIR }; - -static struct option const long_opts[] = { - {"groups", 1, ((void *)0), GROUPS}, - {"userspec", 1, ((void *)0), USERSPEC}, - {"skip-chdir", 0, ((void *)0), SKIP_CHDIR}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; -static int parse_additional_groups(char const *groups, gid_t **pgids, - size_t *pn_gids, _Bool show_errors) { - gid_t *gids = ((void *)0); - size_t n_gids_allocated = 0; - size_t n_gids = 0; - char *buffer = xstrdup(groups); - char const *tmp; - int ret = 0; - - for (tmp = strtok(buffer, ","); tmp; tmp = strtok(((void *)0), ",")) { - struct group *g; - uintmax_t value; - - if (xstrtoumax(tmp, ((void *)0), 10, &value, "") == LONGINT_OK && - value <= - ((gid_t)(!(!((gid_t)0 < (gid_t)-1)) - ? (gid_t)-1 - : ((((gid_t)1 << ((sizeof(gid_t) * 8) - 2)) - 1) * 2 + - 1)))) { - while (((*__ctype_b_loc())[(int)((to_uchar(*tmp)))] & - (unsigned short int)_ISspace)) - tmp++; - if (*tmp != '+') { - - g = getgrnam(tmp); - if (g != ((void *)0)) - value = g->gr_gid; - } - - g = (struct group *)(intptr_t) !((void *)0); - } else { - g = getgrnam(tmp); - if (g != ((void *)0)) - value = g->gr_gid; - } - - if (g == ((void *)0)) { - ret = -1; - - if (show_errors) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "invalid group %s", 5), quote(tmp)); - continue; - } - - break; - } - - if (n_gids == n_gids_allocated) - gids = ((!!sizeof(struct { - _Static_assert(sizeof *(gids) != 1, - "verify_expr (" - "sizeof *(gids) != 1" - ", " - "x2nrealloc (gids, &n_gids_allocated, sizeof *(gids))" - ")"); - int _gl_dummy; - })) - ? (x2nrealloc(gids, &n_gids_allocated, sizeof *(gids))) - : (x2nrealloc(gids, &n_gids_allocated, sizeof *(gids)))); - gids[n_gids++] = value; - } - - if (ret == 0 && n_gids == 0) { - if (show_errors) - error(0, 0, dcgettext(((void *)0), "invalid group list %s", 5), - quote(groups)); - ret = -1; - } - - *pgids = gids; - - if (ret == 0) - *pn_gids = n_gids; - - free(buffer); - return ret; -} - -static _Bool - -is_root(char const *dir) { - char *resolved = canonicalize_file_name(dir); - - _Bool is_res_root = resolved && (strcmp("/", resolved) == 0); - free(resolved); - return is_res_root; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext( - ((void *)0), - "Usage: %s [OPTION] NEWROOT [COMMAND [ARG]...]\n or: %s OPTION\n", - 5) - - , - program_name, program_name); - - fputs_unlocked( - dcgettext(((void *)0), - "Run COMMAND with root directory set to NEWROOT.\n\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " --groups=G_LIST specify " - "supplementary groups as g1,g2,..,gN\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --userspec=USER:GROUP specify user and " - "group (ID or name) to use\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - " --skip-chdir do not change working " - "directory to %s\n", - 5) - - , - quotearg_style(shell_escape_always_quoting_style, "/")); - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - "\nIf no command is given, run '\"$SHELL\" -i' " - "(default: '/bin/sh -i').\n", - 5), - stdout) - - ; - emit_ancillary_info("chroot"); - } - exit(status); -} - -int main(int argc, char **argv) { - int c; - - char *userspec = ((void *)0); - char const *username = ((void *)0); - char const *groups = ((void *)0); - - _Bool skip_chdir = 0; - - uid_t uid = -1; - gid_t gid = -1; - gid_t *out_gids = ((void *)0); - size_t n_gids = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(EXIT_CANCELED); - atexit(close_stdout); - - while ((c = getopt_long(argc, argv, "+", long_opts, ((void *)0))) != -1) { - switch (c) { - case USERSPEC: { - userspec = optarg; - - size_t userlen = strlen(userspec); - if (userlen && userspec[userlen - 1] == ':') - userspec[userlen - 1] = '\0'; - break; - } - - case GROUPS: - groups = optarg; - break; - - case SKIP_CHDIR: - skip_chdir = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "chroot", "GNU coreutils", Version, - ("Roland McGrath"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(EXIT_CANCELED); - } - } - - if (argc <= optind) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(EXIT_CANCELED); - } - - char const *newroot = argv[optind]; - - _Bool is_oldroot = is_root(newroot); - - if (!is_oldroot && skip_chdir) { - error(0, 0, - dcgettext(((void *)0), - "option --skip-chdir only permitted if NEWROOT is old %s", - 5), - quotearg_style(shell_escape_always_quoting_style, "/")); - usage(EXIT_CANCELED); - } - - if (!is_oldroot) { - - if (userspec) - (__extension__({ - __typeof__(parse_user_spec(userspec, &uid, &gid, ((void *)0), - ((void *)0))) __x = - (parse_user_spec(userspec, &uid, &gid, ((void *)0), ((void *)0))); - (void)__x; - })); - - if ((!uid_unset(uid)) && (!groups || gid_unset(gid))) { - const struct passwd *pwd; - if ((pwd = getpwuid(uid))) { - if (gid_unset(gid)) - gid = pwd->pw_gid; - username = pwd->pw_name; - } - } - - if (groups && *groups) - (__extension__({ - __typeof__(parse_additional_groups(groups, &out_gids, &n_gids, 0)) __x = - (parse_additional_groups(groups, &out_gids, &n_gids, 0)); - (void)__x; - })); - - else if (!groups && (!gid_unset(gid)) && username) { - int ngroups = xgetgroups(username, gid, &out_gids); - if (0 < ngroups) - n_gids = ngroups; - } - } - - if (chroot(newroot) != 0) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot change root directory to %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, newroot)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot change root directory to %s", - 5), - quotearg_style(shell_escape_always_quoting_style, newroot)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot change root directory to %s", - 5), - quotearg_style(shell_escape_always_quoting_style, newroot)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (!skip_chdir && chdir("/")) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot chdir to root directory\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot chdir to root directory", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot chdir to root directory", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (argc == optind + 1) { - - char *shell = getenv("SHELL"); - if (shell == ((void *)0)) - shell = bad_cast("/bin/sh"); - argv[0] = shell; - argv[1] = bad_cast("-i"); - argv[2] = ((void *)0); - } else { - - argv += optind + 1; - } - - if (userspec) { - - _Bool warn; - char const *err = parse_user_spec_warn(userspec, &uid, &gid, - - ((void *)0), ((void *)0), &warn); - if (err) - error(warn ? 0 : EXIT_CANCELED, 0, "%s", (err)); - } - - if ((!uid_unset(uid)) && (!groups || gid_unset(gid))) { - const struct passwd *pwd; - if ((pwd = getpwuid(uid))) { - if (gid_unset(gid)) - gid = pwd->pw_gid; - username = pwd->pw_name; - } else if (gid_unset(gid)) { - ((!!sizeof(struct { - _Static_assert(EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), " - "dcgettext (((void *)0), \"no group specified for " - "unknown uid: %d\", 5), (int) uid), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "no group specified for unknown uid: %d", 5), - (int)uid), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "no group specified for unknown uid: %d", 5), - (int)uid), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } - - gid_t *gids = out_gids; - gid_t *in_gids = ((void *)0); - if (groups && *groups) { - if (parse_additional_groups(groups, &in_gids, &n_gids, !n_gids) != 0) { - if (!n_gids) - return EXIT_CANCELED; - - } else - gids = in_gids; - } - - else if (!groups && (!gid_unset(gid)) && username) { - int ngroups = xgetgroups(username, gid, &in_gids); - if (ngroups <= 0) { - if (!n_gids) - ((!!sizeof(struct { - _Static_assert(EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), " - "dcgettext (((void *)0), \"failed to get supplemental " - "groups\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "failed to get supplemental groups", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "failed to get supplemental groups", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - } else { - n_gids = ngroups; - gids = in_gids; - } - } - - if (((!uid_unset(uid)) || groups) && setgroups(n_gids, gids) != 0) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to set supplemental groups\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to set supplemental groups", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to set supplemental groups", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - free(in_gids); - free(out_gids); - - if ((!gid_unset(gid)) && setgid(gid)) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to set group-ID\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to set group-ID", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to set group-ID", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if ((!uid_unset(uid)) && setuid(uid)) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to set user-ID\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to set user-ID", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to set user-ID", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - execvp(argv[0], argv); - - int exit_status = - (*__errno_location()) == 2 ? EXIT_ENOENT : EXIT_CANNOT_INVOKE; - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to run command %s", 5), quote(argv[0])); - return exit_status; -} diff --git a/tests/source/coreutils/cksum-b2sum.c b/tests/source/coreutils/cksum-b2sum.c deleted file mode 100644 index 2001f76..0000000 --- a/tests/source/coreutils/cksum-b2sum.c +++ /dev/null @@ -1,4626 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); - -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -enum blake2s_constant { - BLAKE2S_BLOCKBYTES = 64, - BLAKE2S_OUTBYTES = 32, - BLAKE2S_KEYBYTES = 32, - BLAKE2S_SALTBYTES = 8, - BLAKE2S_PERSONALBYTES = 8 -}; - -enum blake2b_constant { - BLAKE2B_BLOCKBYTES = 128, - BLAKE2B_OUTBYTES = 64, - BLAKE2B_KEYBYTES = 64, - BLAKE2B_SALTBYTES = 16, - BLAKE2B_PERSONALBYTES = 16 -}; - -typedef struct blake2s_state__ { - uint32_t h[8]; - uint32_t t[2]; - uint32_t f[2]; - uint8_t buf[BLAKE2S_BLOCKBYTES]; - size_t buflen; - size_t outlen; - uint8_t last_node; -} blake2s_state; - -typedef struct blake2b_state__ { - uint64_t h[8]; - uint64_t t[2]; - uint64_t f[2]; - uint8_t buf[BLAKE2B_BLOCKBYTES]; - size_t buflen; - size_t outlen; - uint8_t last_node; -} blake2b_state; - -typedef struct blake2sp_state__ { - blake2s_state S[8][1]; - blake2s_state R[1]; - uint8_t buf[8 * BLAKE2S_BLOCKBYTES]; - size_t buflen; - size_t outlen; -} blake2sp_state; - -typedef struct blake2bp_state__ { - blake2b_state S[4][1]; - blake2b_state R[1]; - uint8_t buf[4 * BLAKE2B_BLOCKBYTES]; - size_t buflen; - size_t outlen; -} blake2bp_state; - -struct blake2s_param__ { - uint8_t digest_length; - uint8_t key_length; - uint8_t fanout; - uint8_t depth; - uint32_t leaf_length; - uint32_t node_offset; - uint16_t xof_length; - uint8_t node_depth; - uint8_t inner_length; - uint8_t salt[BLAKE2S_SALTBYTES]; - uint8_t personal[BLAKE2S_PERSONALBYTES]; -} __attribute__((__packed__)); - -typedef struct blake2s_param__ blake2s_param; - -struct blake2b_param__ { - uint8_t digest_length; - uint8_t key_length; - uint8_t fanout; - uint8_t depth; - uint32_t leaf_length; - uint32_t node_offset; - uint32_t xof_length; - uint8_t node_depth; - uint8_t inner_length; - uint8_t reserved[14]; - uint8_t salt[BLAKE2B_SALTBYTES]; - uint8_t personal[BLAKE2B_PERSONALBYTES]; -} __attribute__((__packed__)); - -typedef struct blake2b_param__ blake2b_param; - -typedef struct blake2xs_state__ { - blake2s_state S[1]; - blake2s_param P[1]; -} blake2xs_state; - -typedef struct blake2xb_state__ { - blake2b_state S[1]; - blake2b_param P[1]; -} blake2xb_state; - -enum { - BLAKE2_DUMMY_1 = 1 / (sizeof(blake2s_param) == BLAKE2S_OUTBYTES), - BLAKE2_DUMMY_2 = 1 / (sizeof(blake2b_param) == BLAKE2B_OUTBYTES) -}; - -int blake2s_init(blake2s_state *S, size_t outlen); -int blake2s_init_key(blake2s_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2s_init_param(blake2s_state *S, const blake2s_param *P); -int blake2s_update(blake2s_state *S, const void *in, size_t inlen); -int blake2s_final(blake2s_state *S, void *out, size_t outlen); - -int blake2b_init(blake2b_state *S, size_t outlen); -int blake2b_init_key(blake2b_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2b_init_param(blake2b_state *S, const blake2b_param *P) - __attribute__((__nonnull__)); -int blake2b_update(blake2b_state *S, const void *in, size_t inlen); -int blake2b_final(blake2b_state *S, void *out, size_t outlen); - -int blake2sp_init(blake2sp_state *S, size_t outlen); -int blake2sp_init_key(blake2sp_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2sp_update(blake2sp_state *S, const void *in, size_t inlen); -int blake2sp_final(blake2sp_state *S, void *out, size_t outlen); - -int blake2bp_init(blake2bp_state *S, size_t outlen); -int blake2bp_init_key(blake2bp_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2bp_update(blake2bp_state *S, const void *in, size_t inlen); -int blake2bp_final(blake2bp_state *S, void *out, size_t outlen); - -int blake2xs_init(blake2xs_state *S, const size_t outlen); -int blake2xs_init_key(blake2xs_state *S, const size_t outlen, const void *key, - size_t keylen); -int blake2xs_update(blake2xs_state *S, const void *in, size_t inlen); -int blake2xs_final(blake2xs_state *S, void *out, size_t outlen); - -int blake2xb_init(blake2xb_state *S, const size_t outlen); -int blake2xb_init_key(blake2xb_state *S, const size_t outlen, const void *key, - size_t keylen); -int blake2xb_update(blake2xb_state *S, const void *in, size_t inlen); -int blake2xb_final(blake2xb_state *S, void *out, size_t outlen); - -int blake2s(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2b(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2sp(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2bp(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2xs(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2xb(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2b_stream(FILE *stream, void *resstream, size_t outbytes) { - int ret = -1; - size_t sum, n; - blake2b_state S[1]; - static const size_t buffer_length = 32768; - uint8_t *buffer = (uint8_t *)malloc(buffer_length); - - if (!buffer) - return -1; - - blake2b_init(S, outbytes); - - while (1) { - sum = 0; - - while (1) { - n = fread(buffer + sum, 1, buffer_length - sum, stream); - sum += n; - - if (buffer_length == sum) - break; - - if (0 == n) { - if (ferror(stream)) - goto cleanup_buffer; - - goto final_process; - } - - if (feof(stream)) - goto final_process; - } - - blake2b_update(S, buffer, buffer_length); - } - -final_process:; - - if (sum > 0) - blake2b_update(S, buffer, sum); - - blake2b_final(S, resstream, outbytes); - ret = 0; -cleanup_buffer: - free(buffer); - return ret; -} diff --git a/tests/source/coreutils/cksum-blake2b-ref.c b/tests/source/coreutils/cksum-blake2b-ref.c deleted file mode 100644 index e86bb6d..0000000 --- a/tests/source/coreutils/cksum-blake2b-ref.c +++ /dev/null @@ -1,3178 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef long unsigned int size_t; -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -enum blake2s_constant { - BLAKE2S_BLOCKBYTES = 64, - BLAKE2S_OUTBYTES = 32, - BLAKE2S_KEYBYTES = 32, - BLAKE2S_SALTBYTES = 8, - BLAKE2S_PERSONALBYTES = 8 -}; - -enum blake2b_constant { - BLAKE2B_BLOCKBYTES = 128, - BLAKE2B_OUTBYTES = 64, - BLAKE2B_KEYBYTES = 64, - BLAKE2B_SALTBYTES = 16, - BLAKE2B_PERSONALBYTES = 16 -}; - -typedef struct blake2s_state__ { - uint32_t h[8]; - uint32_t t[2]; - uint32_t f[2]; - uint8_t buf[BLAKE2S_BLOCKBYTES]; - size_t buflen; - size_t outlen; - uint8_t last_node; -} blake2s_state; - -typedef struct blake2b_state__ { - uint64_t h[8]; - uint64_t t[2]; - uint64_t f[2]; - uint8_t buf[BLAKE2B_BLOCKBYTES]; - size_t buflen; - size_t outlen; - uint8_t last_node; -} blake2b_state; - -typedef struct blake2sp_state__ { - blake2s_state S[8][1]; - blake2s_state R[1]; - uint8_t buf[8 * BLAKE2S_BLOCKBYTES]; - size_t buflen; - size_t outlen; -} blake2sp_state; - -typedef struct blake2bp_state__ { - blake2b_state S[4][1]; - blake2b_state R[1]; - uint8_t buf[4 * BLAKE2B_BLOCKBYTES]; - size_t buflen; - size_t outlen; -} blake2bp_state; - -struct blake2s_param__ { - uint8_t digest_length; - uint8_t key_length; - uint8_t fanout; - uint8_t depth; - uint32_t leaf_length; - uint32_t node_offset; - uint16_t xof_length; - uint8_t node_depth; - uint8_t inner_length; - uint8_t salt[BLAKE2S_SALTBYTES]; - uint8_t personal[BLAKE2S_PERSONALBYTES]; -} __attribute__((__packed__)); - -typedef struct blake2s_param__ blake2s_param; - -struct blake2b_param__ { - uint8_t digest_length; - uint8_t key_length; - uint8_t fanout; - uint8_t depth; - uint32_t leaf_length; - uint32_t node_offset; - uint32_t xof_length; - uint8_t node_depth; - uint8_t inner_length; - uint8_t reserved[14]; - uint8_t salt[BLAKE2B_SALTBYTES]; - uint8_t personal[BLAKE2B_PERSONALBYTES]; -} __attribute__((__packed__)); - -typedef struct blake2b_param__ blake2b_param; - -typedef struct blake2xs_state__ { - blake2s_state S[1]; - blake2s_param P[1]; -} blake2xs_state; - -typedef struct blake2xb_state__ { - blake2b_state S[1]; - blake2b_param P[1]; -} blake2xb_state; - -enum { - BLAKE2_DUMMY_1 = 1 / (sizeof(blake2s_param) == BLAKE2S_OUTBYTES), - BLAKE2_DUMMY_2 = 1 / (sizeof(blake2b_param) == BLAKE2B_OUTBYTES) -}; - -int blake2s_init(blake2s_state *S, size_t outlen); -int blake2s_init_key(blake2s_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2s_init_param(blake2s_state *S, const blake2s_param *P); -int blake2s_update(blake2s_state *S, const void *in, size_t inlen); -int blake2s_final(blake2s_state *S, void *out, size_t outlen); - -int blake2b_init(blake2b_state *S, size_t outlen); -int blake2b_init_key(blake2b_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2b_init_param(blake2b_state *S, const blake2b_param *P) - __attribute__((__nonnull__)); -int blake2b_update(blake2b_state *S, const void *in, size_t inlen); -int blake2b_final(blake2b_state *S, void *out, size_t outlen); - -int blake2sp_init(blake2sp_state *S, size_t outlen); -int blake2sp_init_key(blake2sp_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2sp_update(blake2sp_state *S, const void *in, size_t inlen); -int blake2sp_final(blake2sp_state *S, void *out, size_t outlen); - -int blake2bp_init(blake2bp_state *S, size_t outlen); -int blake2bp_init_key(blake2bp_state *S, size_t outlen, const void *key, - size_t keylen); -int blake2bp_update(blake2bp_state *S, const void *in, size_t inlen); -int blake2bp_final(blake2bp_state *S, void *out, size_t outlen); - -int blake2xs_init(blake2xs_state *S, const size_t outlen); -int blake2xs_init_key(blake2xs_state *S, const size_t outlen, const void *key, - size_t keylen); -int blake2xs_update(blake2xs_state *S, const void *in, size_t inlen); -int blake2xs_final(blake2xs_state *S, void *out, size_t outlen); - -int blake2xb_init(blake2xb_state *S, const size_t outlen); -int blake2xb_init_key(blake2xb_state *S, const size_t outlen, const void *key, - size_t keylen); -int blake2xb_update(blake2xb_state *S, const void *in, size_t inlen); -int blake2xb_final(blake2xb_state *S, void *out, size_t outlen); - -int blake2s(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2b(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2sp(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2bp(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2xs(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); -int blake2xb(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -int blake2(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen); - -static inline uint32_t load32(const void *src) { - - uint32_t w; - memcpy(&w, src, sizeof w); - return w; -} - -static inline uint64_t load64(const void *src) { - - uint64_t w; - memcpy(&w, src, sizeof w); - return w; -} - -static inline uint16_t load16(const void *src) { - - uint16_t w; - memcpy(&w, src, sizeof w); - return w; -} - -static inline void store16(void *dst, uint16_t w) { memcpy(dst, &w, sizeof w); } - -static inline void store32(void *dst, uint32_t w) { memcpy(dst, &w, sizeof w); } - -static inline void store64(void *dst, uint64_t w) { memcpy(dst, &w, sizeof w); } - -static inline uint64_t load48(const void *src) { - const uint8_t *p = (const uint8_t *)src; - return ((uint64_t)(p[0]) << 0) | ((uint64_t)(p[1]) << 8) | - ((uint64_t)(p[2]) << 16) | ((uint64_t)(p[3]) << 24) | - ((uint64_t)(p[4]) << 32) | ((uint64_t)(p[5]) << 40); -} - -static inline void store48(void *dst, uint64_t w) { - uint8_t *p = (uint8_t *)dst; - p[0] = (uint8_t)(w >> 0); - p[1] = (uint8_t)(w >> 8); - p[2] = (uint8_t)(w >> 16); - p[3] = (uint8_t)(w >> 24); - p[4] = (uint8_t)(w >> 32); - p[5] = (uint8_t)(w >> 40); -} - -static inline uint32_t rotr32(const uint32_t w, const unsigned c) { - return (w >> c) | (w << (32 - c)); -} - -static inline uint64_t rotr64(const uint64_t w, const unsigned c) { - return (w >> c) | (w << (64 - c)); -} - -static inline void secure_zero_memory(void *v, size_t n) { - static void *(*const volatile memset_v)(void *, int, size_t) = &memset; - memset_v(v, 0, n); -} - -static const uint64_t blake2b_IV[8] = { - 0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL, 0x3c6ef372fe94f82bULL, - 0xa54ff53a5f1d36f1ULL, 0x510e527fade682d1ULL, 0x9b05688c2b3e6c1fULL, - 0x1f83d9abfb41bd6bULL, 0x5be0cd19137e2179ULL}; - -static const uint8_t blake2b_sigma[12][16] = { - {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, - {14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3}, - {11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4}, - {7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8}, - {9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13}, - {2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9}, - {12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11}, - {13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10}, - {6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5}, - {10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0}, - {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, - {14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3}}; - -static void blake2b_set_lastnode(blake2b_state *S) { S->f[1] = (uint64_t)-1; } - -static int blake2b_is_lastblock(const blake2b_state *S) { return S->f[0] != 0; } - -static void blake2b_set_lastblock(blake2b_state *S) { - if (S->last_node) - blake2b_set_lastnode(S); - - S->f[0] = (uint64_t)-1; -} - -static void blake2b_increment_counter(blake2b_state *S, const uint64_t inc) { - S->t[0] += inc; - S->t[1] += (S->t[0] < inc); -} - -static void blake2b_init0(blake2b_state *S) { - size_t i; - memset(S, 0, sizeof(blake2b_state)); - - for (i = 0; i < 8; ++i) - S->h[i] = blake2b_IV[i]; -} - -int blake2b_init_param(blake2b_state *S, const blake2b_param *P) { - const uint8_t *p = (const uint8_t *)(P); - size_t i; - - blake2b_init0(S); - - for (i = 0; i < 8; ++i) - S->h[i] ^= load64(p + sizeof(S->h[i]) * i); - - S->outlen = P->digest_length; - return 0; -} - -int blake2b_init(blake2b_state *S, size_t outlen) { - blake2b_param P[1]; - - if ((!outlen) || (outlen > BLAKE2B_OUTBYTES)) - return -1; - - P->digest_length = (uint8_t)outlen; - P->key_length = 0; - P->fanout = 1; - P->depth = 1; - store32(&P->leaf_length, 0); - store32(&P->node_offset, 0); - store32(&P->xof_length, 0); - P->node_depth = 0; - P->inner_length = 0; - memset(P->reserved, 0, sizeof(P->reserved)); - memset(P->salt, 0, sizeof(P->salt)); - memset(P->personal, 0, sizeof(P->personal)); - return blake2b_init_param(S, P); -} - -int blake2b_init_key(blake2b_state *S, size_t outlen, const void *key, - size_t keylen) { - blake2b_param P[1]; - - if ((!outlen) || (outlen > BLAKE2B_OUTBYTES)) - return -1; - - if (!key || !keylen || keylen > BLAKE2B_KEYBYTES) - return -1; - - P->digest_length = (uint8_t)outlen; - P->key_length = (uint8_t)keylen; - P->fanout = 1; - P->depth = 1; - store32(&P->leaf_length, 0); - store32(&P->node_offset, 0); - store32(&P->xof_length, 0); - P->node_depth = 0; - P->inner_length = 0; - memset(P->reserved, 0, sizeof(P->reserved)); - memset(P->salt, 0, sizeof(P->salt)); - memset(P->personal, 0, sizeof(P->personal)); - - if (blake2b_init_param(S, P) < 0) - return -1; - - { - uint8_t block[BLAKE2B_BLOCKBYTES]; - memset(block, 0, BLAKE2B_BLOCKBYTES); - memcpy(block, key, keylen); - blake2b_update(S, block, BLAKE2B_BLOCKBYTES); - secure_zero_memory(block, BLAKE2B_BLOCKBYTES); - } - return 0; -} -static void blake2b_compress(blake2b_state *S, - const uint8_t block[BLAKE2B_BLOCKBYTES]) { - uint64_t m[16]; - uint64_t v[16]; - size_t i; - - for (i = 0; i < 16; ++i) { - m[i] = load64(block + i * sizeof(m[i])); - } - - for (i = 0; i < 8; ++i) { - v[i] = S->h[i]; - } - - v[8] = blake2b_IV[0]; - v[9] = blake2b_IV[1]; - v[10] = blake2b_IV[2]; - v[11] = blake2b_IV[3]; - v[12] = blake2b_IV[4] ^ S->t[0]; - v[13] = blake2b_IV[5] ^ S->t[1]; - v[14] = blake2b_IV[6] ^ S->f[0]; - v[15] = blake2b_IV[7] ^ S->f[1]; - - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[0][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[0][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[0][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[0][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[0][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[0][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[0][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[0][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[0][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[0][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[0][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[0][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[0][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[0][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[0][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[0][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[1][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[1][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[1][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[1][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[1][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[1][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[1][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[1][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[1][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[1][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[1][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[1][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[1][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[1][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[1][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[1][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[2][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[2][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[2][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[2][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[2][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[2][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[2][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[2][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[2][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[2][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[2][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[2][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[2][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[2][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[2][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[2][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[3][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[3][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[3][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[3][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[3][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[3][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[3][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[3][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[3][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[3][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[3][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[3][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[3][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[3][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[3][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[3][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[4][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[4][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[4][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[4][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[4][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[4][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[4][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[4][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[4][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[4][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[4][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[4][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[4][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[4][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[4][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[4][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[5][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[5][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[5][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[5][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[5][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[5][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[5][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[5][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[5][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[5][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[5][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[5][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[5][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[5][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[5][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[5][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[6][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[6][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[6][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[6][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[6][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[6][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[6][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[6][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[6][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[6][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[6][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[6][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[6][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[6][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[6][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[6][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[7][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[7][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[7][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[7][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[7][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[7][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[7][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[7][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[7][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[7][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[7][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[7][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[7][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[7][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[7][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[7][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[8][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[8][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[8][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[8][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[8][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[8][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[8][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[8][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[8][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[8][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[8][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[8][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[8][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[8][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[8][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[8][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[9][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[9][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[9][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[9][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[9][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[9][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[9][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[9][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[9][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[9][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[9][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[9][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[9][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[9][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[9][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[9][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[10][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[10][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[10][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[10][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[10][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[10][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[10][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[10][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[10][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[10][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[10][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[10][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[10][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[10][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[10][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[10][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - do { - do { - v[0] = v[0] + v[4] + m[blake2b_sigma[11][2 * 0 + 0]]; - v[12] = rotr64(v[12] ^ v[0], 32); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 24); - v[0] = v[0] + v[4] + m[blake2b_sigma[11][2 * 0 + 1]]; - v[12] = rotr64(v[12] ^ v[0], 16); - v[8] = v[8] + v[12]; - v[4] = rotr64(v[4] ^ v[8], 63); - } while (0); - do { - v[1] = v[1] + v[5] + m[blake2b_sigma[11][2 * 1 + 0]]; - v[13] = rotr64(v[13] ^ v[1], 32); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 24); - v[1] = v[1] + v[5] + m[blake2b_sigma[11][2 * 1 + 1]]; - v[13] = rotr64(v[13] ^ v[1], 16); - v[9] = v[9] + v[13]; - v[5] = rotr64(v[5] ^ v[9], 63); - } while (0); - do { - v[2] = v[2] + v[6] + m[blake2b_sigma[11][2 * 2 + 0]]; - v[14] = rotr64(v[14] ^ v[2], 32); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 24); - v[2] = v[2] + v[6] + m[blake2b_sigma[11][2 * 2 + 1]]; - v[14] = rotr64(v[14] ^ v[2], 16); - v[10] = v[10] + v[14]; - v[6] = rotr64(v[6] ^ v[10], 63); - } while (0); - do { - v[3] = v[3] + v[7] + m[blake2b_sigma[11][2 * 3 + 0]]; - v[15] = rotr64(v[15] ^ v[3], 32); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 24); - v[3] = v[3] + v[7] + m[blake2b_sigma[11][2 * 3 + 1]]; - v[15] = rotr64(v[15] ^ v[3], 16); - v[11] = v[11] + v[15]; - v[7] = rotr64(v[7] ^ v[11], 63); - } while (0); - do { - v[0] = v[0] + v[5] + m[blake2b_sigma[11][2 * 4 + 0]]; - v[15] = rotr64(v[15] ^ v[0], 32); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 24); - v[0] = v[0] + v[5] + m[blake2b_sigma[11][2 * 4 + 1]]; - v[15] = rotr64(v[15] ^ v[0], 16); - v[10] = v[10] + v[15]; - v[5] = rotr64(v[5] ^ v[10], 63); - } while (0); - do { - v[1] = v[1] + v[6] + m[blake2b_sigma[11][2 * 5 + 0]]; - v[12] = rotr64(v[12] ^ v[1], 32); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 24); - v[1] = v[1] + v[6] + m[blake2b_sigma[11][2 * 5 + 1]]; - v[12] = rotr64(v[12] ^ v[1], 16); - v[11] = v[11] + v[12]; - v[6] = rotr64(v[6] ^ v[11], 63); - } while (0); - do { - v[2] = v[2] + v[7] + m[blake2b_sigma[11][2 * 6 + 0]]; - v[13] = rotr64(v[13] ^ v[2], 32); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 24); - v[2] = v[2] + v[7] + m[blake2b_sigma[11][2 * 6 + 1]]; - v[13] = rotr64(v[13] ^ v[2], 16); - v[8] = v[8] + v[13]; - v[7] = rotr64(v[7] ^ v[8], 63); - } while (0); - do { - v[3] = v[3] + v[4] + m[blake2b_sigma[11][2 * 7 + 0]]; - v[14] = rotr64(v[14] ^ v[3], 32); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 24); - v[3] = v[3] + v[4] + m[blake2b_sigma[11][2 * 7 + 1]]; - v[14] = rotr64(v[14] ^ v[3], 16); - v[9] = v[9] + v[14]; - v[4] = rotr64(v[4] ^ v[9], 63); - } while (0); - } while (0); - - for (i = 0; i < 8; ++i) { - S->h[i] = S->h[i] ^ v[i] ^ v[i + 8]; - } -} - -int blake2b_update(blake2b_state *S, const void *pin, size_t inlen) { - const unsigned char *in = (const unsigned char *)pin; - if (inlen > 0) { - size_t left = S->buflen; - size_t fill = BLAKE2B_BLOCKBYTES - left; - if (inlen > fill) { - S->buflen = 0; - memcpy(S->buf + left, in, fill); - blake2b_increment_counter(S, BLAKE2B_BLOCKBYTES); - blake2b_compress(S, S->buf); - in += fill; - inlen -= fill; - while (inlen > BLAKE2B_BLOCKBYTES) { - blake2b_increment_counter(S, BLAKE2B_BLOCKBYTES); - blake2b_compress(S, in); - in += BLAKE2B_BLOCKBYTES; - inlen -= BLAKE2B_BLOCKBYTES; - } - } - memcpy(S->buf + S->buflen, in, inlen); - S->buflen += inlen; - } - return 0; -} - -int blake2b_final(blake2b_state *S, void *out, size_t outlen) { - uint8_t buffer[BLAKE2B_OUTBYTES] = {0}; - size_t i; - - if (out == ((void *)0) || outlen < S->outlen) - return -1; - - if (blake2b_is_lastblock(S)) - return -1; - - blake2b_increment_counter(S, S->buflen); - blake2b_set_lastblock(S); - memset(S->buf + S->buflen, 0, BLAKE2B_BLOCKBYTES - S->buflen); - blake2b_compress(S, S->buf); - - for (i = 0; i < 8; ++i) - store64(buffer + sizeof(S->h[i]) * i, S->h[i]); - - memcpy(out, buffer, S->outlen); - secure_zero_memory(buffer, sizeof(buffer)); - return 0; -} - -int blake2b(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen) { - blake2b_state S[1]; - - if (((void *)0) == in && inlen > 0) - return -1; - - if (((void *)0) == out) - return -1; - - if (((void *)0) == key && keylen > 0) - return -1; - - if (!outlen || outlen > BLAKE2B_OUTBYTES) - return -1; - - if (keylen > BLAKE2B_KEYBYTES) - return -1; - - if (keylen > 0) { - if (blake2b_init_key(S, outlen, key, keylen) < 0) - return -1; - } else { - if (blake2b_init(S, outlen) < 0) - return -1; - } - - blake2b_update(S, (const uint8_t *)in, inlen); - blake2b_final(S, out, outlen); - return 0; -} - -int blake2(void *out, size_t outlen, const void *in, size_t inlen, - const void *key, size_t keylen) { - return blake2b(out, outlen, in, inlen, key, keylen); -} diff --git a/tests/source/coreutils/cksum-cksum.c b/tests/source/coreutils/cksum-cksum.c deleted file mode 100644 index caaa8a3..0000000 --- a/tests/source/coreutils/cksum-cksum.c +++ /dev/null @@ -1,6948 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern _Bool cksum_debug; - -extern int crc_sum_stream(FILE *stream, void *resstream, uintmax_t *length); - -extern void output_crc(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) __attribute__((__nonnull__(3))); - -extern _Bool - -cksum_pclmul(FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out); - -extern uint_fast32_t const crctab[8][256]; - -static __inline unsigned int __get_cpuid_max(unsigned int __ext, - unsigned int *__sig) { - unsigned int __eax, __ebx, __ecx, __edx; - __asm__ __volatile__("cpuid\n\t" - : "=a"(__eax), "=b"(__ebx), "=c"(__ecx), "=d"(__edx) - : "0"(__ext)); - - if (__sig) - *__sig = __ebx; - - return __eax; -} - -static __inline int __get_cpuid(unsigned int __leaf, unsigned int *__eax, - unsigned int *__ebx, unsigned int *__ecx, - unsigned int *__edx) { - unsigned int __ext = __leaf & 0x80000000; - unsigned int __maxlevel = __get_cpuid_max(__ext, 0); - - if (__maxlevel == 0 || __maxlevel < __leaf) - return 0; - - __asm__ __volatile__("cpuid\n\t" - : "=a"(*__eax), "=b"(*__ebx), "=c"(*__ecx), "=d"(*__edx) - : "0"(__leaf)); - return 1; -} - -static __inline int __get_cpuid_count(unsigned int __leaf, - unsigned int __subleaf, - unsigned int *__eax, unsigned int *__ebx, - unsigned int *__ecx, - unsigned int *__edx) { - unsigned int __ext = __leaf & 0x80000000; - unsigned int __maxlevel = __get_cpuid_max(__ext, 0); - - if (__maxlevel == 0 || __maxlevel < __leaf) - return 0; - - __asm__ __volatile__("cpuid\n\t" - : "=a"(*__eax), "=b"(*__ebx), "=c"(*__ecx), "=d"(*__edx) - : "0"(__leaf), "2"(__subleaf)); - return 1; -} - -static __inline void __cpuidex(int __cpuid_info[4], int __leaf, int __subleaf) { - __asm__ __volatile__("cpuid\n\t" - : "=a"(__cpuid_info[0]), "=b"(__cpuid_info[1]), - "=c"(__cpuid_info[2]), "=d"(__cpuid_info[3]) - : "0"(__leaf), "2"(__subleaf)); -} - -static _Bool - -cksum_slice8(FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out); -static _Bool - - (*cksum_fp)(FILE *, uint_fast32_t *, uintmax_t *); - -static _Bool - -pclmul_supported(void) { - - unsigned int eax = 0; - unsigned int ebx = 0; - unsigned int ecx = 0; - unsigned int edx = 0; - - if (!__get_cpuid(1, &eax, &ebx, &ecx, &edx)) { - if (cksum_debug) - error(0, 0, "%s", dcgettext(((void *)0), "failed to get cpuid", 5)); - return 0; - } - - if (!(ecx & (1 << 1)) || !(ecx & (1 << 28))) { - if (cksum_debug) - error(0, 0, "%s", - dcgettext(((void *)0), "pclmul support not detected", 5)); - return 0; - } - - if (cksum_debug) - error(0, 0, "%s", - dcgettext(((void *)0), "using pclmul hardware support", 5)); - - return 1; -} - -static _Bool - -cksum_slice8(FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out) { - uint32_t buf[(1 << 16) / sizeof(uint32_t)]; - uint_fast32_t crc = 0; - uintmax_t length = 0; - size_t bytes_read; - - if (!fp || !crc_out || !length_out) - return 0; - - while ((bytes_read = fread_unlocked(buf, 1, (1 << 16), fp)) > 0) { - uint32_t *datap; - - if (length + bytes_read < length) { - - (*__errno_location()) = 75; - return 0; - } - length += bytes_read; - - if (bytes_read == 0) { - if (ferror_unlocked(fp)) - return 0; - } - - datap = (uint32_t *)buf; - while (bytes_read >= 8) { - uint32_t first = *datap++, second = *datap++; - crc ^= __bswap_32(first); - second = __bswap_32(second); - crc = - (crctab[7][(crc >> 24) & 0xFF] ^ crctab[6][(crc >> 16) & 0xFF] ^ - crctab[5][(crc >> 8) & 0xFF] ^ crctab[4][(crc)&0xFF] ^ - crctab[3][(second >> 24) & 0xFF] ^ crctab[2][(second >> 16) & 0xFF] ^ - crctab[1][(second >> 8) & 0xFF] ^ crctab[0][(second)&0xFF]); - bytes_read -= 8; - } - - unsigned char *cp = (unsigned char *)datap; - while (bytes_read--) - crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ *cp++) & 0xFF]; - if (feof_unlocked(fp)) - break; - } - - *crc_out = crc; - *length_out = length; - - return 1; -} - -int crc_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - uintmax_t total_bytes = 0; - uint_fast32_t crc = 0; - - if (!cksum_fp) { - if (pclmul_supported()) - cksum_fp = cksum_pclmul; - else - cksum_fp = cksum_slice8; - } - - if (!cksum_fp(stream, &crc, &total_bytes)) - return -1; - - *length = total_bytes; - - for (; total_bytes; total_bytes >>= 8) - crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ total_bytes) & 0xFF]; - crc = ~crc & 0xFFFFFFFF; - - unsigned int crc_out = crc; - memcpy(resstream, &crc_out, sizeof crc_out); - - return 0; -} - -void output_crc(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - char length_buf[( - (((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - printf("%u %s", *(unsigned int *)digest, umaxtostr(length, length_buf)); - if (args) - printf(" %s", file); - putchar_unlocked(delim); -} diff --git a/tests/source/coreutils/cksum-crctab.c b/tests/source/coreutils/cksum-crctab.c deleted file mode 100644 index aa490c0..0000000 --- a/tests/source/coreutils/cksum-crctab.c +++ /dev/null @@ -1,471 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -uint_fast32_t const crctab[8][256] = { - {0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, - 0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, 0x2b4bcb61, - 0x350c9b64, 0x31cd86d3, 0x3c8ea00a, 0x384fbdbd, 0x4c11db70, 0x48d0c6c7, - 0x4593e01e, 0x4152fda9, 0x5f15adac, 0x5bd4b01b, 0x569796c2, 0x52568b75, - 0x6a1936c8, 0x6ed82b7f, 0x639b0da6, 0x675a1011, 0x791d4014, 0x7ddc5da3, - 0x709f7b7a, 0x745e66cd, 0x9823b6e0, 0x9ce2ab57, 0x91a18d8e, 0x95609039, - 0x8b27c03c, 0x8fe6dd8b, 0x82a5fb52, 0x8664e6e5, 0xbe2b5b58, 0xbaea46ef, - 0xb7a96036, 0xb3687d81, 0xad2f2d84, 0xa9ee3033, 0xa4ad16ea, 0xa06c0b5d, - 0xd4326d90, 0xd0f37027, 0xddb056fe, 0xd9714b49, 0xc7361b4c, 0xc3f706fb, - 0xceb42022, 0xca753d95, 0xf23a8028, 0xf6fb9d9f, 0xfbb8bb46, 0xff79a6f1, - 0xe13ef6f4, 0xe5ffeb43, 0xe8bccd9a, 0xec7dd02d, 0x34867077, 0x30476dc0, - 0x3d044b19, 0x39c556ae, 0x278206ab, 0x23431b1c, 0x2e003dc5, 0x2ac12072, - 0x128e9dcf, 0x164f8078, 0x1b0ca6a1, 0x1fcdbb16, 0x018aeb13, 0x054bf6a4, - 0x0808d07d, 0x0cc9cdca, 0x7897ab07, 0x7c56b6b0, 0x71159069, 0x75d48dde, - 0x6b93dddb, 0x6f52c06c, 0x6211e6b5, 0x66d0fb02, 0x5e9f46bf, 0x5a5e5b08, - 0x571d7dd1, 0x53dc6066, 0x4d9b3063, 0x495a2dd4, 0x44190b0d, 0x40d816ba, - 0xaca5c697, 0xa864db20, 0xa527fdf9, 0xa1e6e04e, 0xbfa1b04b, 0xbb60adfc, - 0xb6238b25, 0xb2e29692, 0x8aad2b2f, 0x8e6c3698, 0x832f1041, 0x87ee0df6, - 0x99a95df3, 0x9d684044, 0x902b669d, 0x94ea7b2a, 0xe0b41de7, 0xe4750050, - 0xe9362689, 0xedf73b3e, 0xf3b06b3b, 0xf771768c, 0xfa325055, 0xfef34de2, - 0xc6bcf05f, 0xc27dede8, 0xcf3ecb31, 0xcbffd686, 0xd5b88683, 0xd1799b34, - 0xdc3abded, 0xd8fba05a, 0x690ce0ee, 0x6dcdfd59, 0x608edb80, 0x644fc637, - 0x7a089632, 0x7ec98b85, 0x738aad5c, 0x774bb0eb, 0x4f040d56, 0x4bc510e1, - 0x46863638, 0x42472b8f, 0x5c007b8a, 0x58c1663d, 0x558240e4, 0x51435d53, - 0x251d3b9e, 0x21dc2629, 0x2c9f00f0, 0x285e1d47, 0x36194d42, 0x32d850f5, - 0x3f9b762c, 0x3b5a6b9b, 0x0315d626, 0x07d4cb91, 0x0a97ed48, 0x0e56f0ff, - 0x1011a0fa, 0x14d0bd4d, 0x19939b94, 0x1d528623, 0xf12f560e, 0xf5ee4bb9, - 0xf8ad6d60, 0xfc6c70d7, 0xe22b20d2, 0xe6ea3d65, 0xeba91bbc, 0xef68060b, - 0xd727bbb6, 0xd3e6a601, 0xdea580d8, 0xda649d6f, 0xc423cd6a, 0xc0e2d0dd, - 0xcda1f604, 0xc960ebb3, 0xbd3e8d7e, 0xb9ff90c9, 0xb4bcb610, 0xb07daba7, - 0xae3afba2, 0xaafbe615, 0xa7b8c0cc, 0xa379dd7b, 0x9b3660c6, 0x9ff77d71, - 0x92b45ba8, 0x9675461f, 0x8832161a, 0x8cf30bad, 0x81b02d74, 0x857130c3, - 0x5d8a9099, 0x594b8d2e, 0x5408abf7, 0x50c9b640, 0x4e8ee645, 0x4a4ffbf2, - 0x470cdd2b, 0x43cdc09c, 0x7b827d21, 0x7f436096, 0x7200464f, 0x76c15bf8, - 0x68860bfd, 0x6c47164a, 0x61043093, 0x65c52d24, 0x119b4be9, 0x155a565e, - 0x18197087, 0x1cd86d30, 0x029f3d35, 0x065e2082, 0x0b1d065b, 0x0fdc1bec, - 0x3793a651, 0x3352bbe6, 0x3e119d3f, 0x3ad08088, 0x2497d08d, 0x2056cd3a, - 0x2d15ebe3, 0x29d4f654, 0xc5a92679, 0xc1683bce, 0xcc2b1d17, 0xc8ea00a0, - 0xd6ad50a5, 0xd26c4d12, 0xdf2f6bcb, 0xdbee767c, 0xe3a1cbc1, 0xe760d676, - 0xea23f0af, 0xeee2ed18, 0xf0a5bd1d, 0xf464a0aa, 0xf9278673, 0xfde69bc4, - 0x89b8fd09, 0x8d79e0be, 0x803ac667, 0x84fbdbd0, 0x9abc8bd5, 0x9e7d9662, - 0x933eb0bb, 0x97ffad0c, 0xafb010b1, 0xab710d06, 0xa6322bdf, 0xa2f33668, - 0xbcb4666d, 0xb8757bda, 0xb5365d03, 0xb1f740b4}, - {0x00000000, 0xd219c1dc, 0xa0f29e0f, 0x72eb5fd3, 0x452421a9, 0x973de075, - 0xe5d6bfa6, 0x37cf7e7a, 0x8a484352, 0x5851828e, 0x2abadd5d, 0xf8a31c81, - 0xcf6c62fb, 0x1d75a327, 0x6f9efcf4, 0xbd873d28, 0x10519b13, 0xc2485acf, - 0xb0a3051c, 0x62bac4c0, 0x5575baba, 0x876c7b66, 0xf58724b5, 0x279ee569, - 0x9a19d841, 0x4800199d, 0x3aeb464e, 0xe8f28792, 0xdf3df9e8, 0x0d243834, - 0x7fcf67e7, 0xadd6a63b, 0x20a33626, 0xf2baf7fa, 0x8051a829, 0x524869f5, - 0x6587178f, 0xb79ed653, 0xc5758980, 0x176c485c, 0xaaeb7574, 0x78f2b4a8, - 0x0a19eb7b, 0xd8002aa7, 0xefcf54dd, 0x3dd69501, 0x4f3dcad2, 0x9d240b0e, - 0x30f2ad35, 0xe2eb6ce9, 0x9000333a, 0x4219f2e6, 0x75d68c9c, 0xa7cf4d40, - 0xd5241293, 0x073dd34f, 0xbabaee67, 0x68a32fbb, 0x1a487068, 0xc851b1b4, - 0xff9ecfce, 0x2d870e12, 0x5f6c51c1, 0x8d75901d, 0x41466c4c, 0x935fad90, - 0xe1b4f243, 0x33ad339f, 0x04624de5, 0xd67b8c39, 0xa490d3ea, 0x76891236, - 0xcb0e2f1e, 0x1917eec2, 0x6bfcb111, 0xb9e570cd, 0x8e2a0eb7, 0x5c33cf6b, - 0x2ed890b8, 0xfcc15164, 0x5117f75f, 0x830e3683, 0xf1e56950, 0x23fca88c, - 0x1433d6f6, 0xc62a172a, 0xb4c148f9, 0x66d88925, 0xdb5fb40d, 0x094675d1, - 0x7bad2a02, 0xa9b4ebde, 0x9e7b95a4, 0x4c625478, 0x3e890bab, 0xec90ca77, - 0x61e55a6a, 0xb3fc9bb6, 0xc117c465, 0x130e05b9, 0x24c17bc3, 0xf6d8ba1f, - 0x8433e5cc, 0x562a2410, 0xebad1938, 0x39b4d8e4, 0x4b5f8737, 0x994646eb, - 0xae893891, 0x7c90f94d, 0x0e7ba69e, 0xdc626742, 0x71b4c179, 0xa3ad00a5, - 0xd1465f76, 0x035f9eaa, 0x3490e0d0, 0xe689210c, 0x94627edf, 0x467bbf03, - 0xfbfc822b, 0x29e543f7, 0x5b0e1c24, 0x8917ddf8, 0xbed8a382, 0x6cc1625e, - 0x1e2a3d8d, 0xcc33fc51, 0x828cd898, 0x50951944, 0x227e4697, 0xf067874b, - 0xc7a8f931, 0x15b138ed, 0x675a673e, 0xb543a6e2, 0x08c49bca, 0xdadd5a16, - 0xa83605c5, 0x7a2fc419, 0x4de0ba63, 0x9ff97bbf, 0xed12246c, 0x3f0be5b0, - 0x92dd438b, 0x40c48257, 0x322fdd84, 0xe0361c58, 0xd7f96222, 0x05e0a3fe, - 0x770bfc2d, 0xa5123df1, 0x189500d9, 0xca8cc105, 0xb8679ed6, 0x6a7e5f0a, - 0x5db12170, 0x8fa8e0ac, 0xfd43bf7f, 0x2f5a7ea3, 0xa22feebe, 0x70362f62, - 0x02dd70b1, 0xd0c4b16d, 0xe70bcf17, 0x35120ecb, 0x47f95118, 0x95e090c4, - 0x2867adec, 0xfa7e6c30, 0x889533e3, 0x5a8cf23f, 0x6d438c45, 0xbf5a4d99, - 0xcdb1124a, 0x1fa8d396, 0xb27e75ad, 0x6067b471, 0x128ceba2, 0xc0952a7e, - 0xf75a5404, 0x254395d8, 0x57a8ca0b, 0x85b10bd7, 0x383636ff, 0xea2ff723, - 0x98c4a8f0, 0x4add692c, 0x7d121756, 0xaf0bd68a, 0xdde08959, 0x0ff94885, - 0xc3cab4d4, 0x11d37508, 0x63382adb, 0xb121eb07, 0x86ee957d, 0x54f754a1, - 0x261c0b72, 0xf405caae, 0x4982f786, 0x9b9b365a, 0xe9706989, 0x3b69a855, - 0x0ca6d62f, 0xdebf17f3, 0xac544820, 0x7e4d89fc, 0xd39b2fc7, 0x0182ee1b, - 0x7369b1c8, 0xa1707014, 0x96bf0e6e, 0x44a6cfb2, 0x364d9061, 0xe45451bd, - 0x59d36c95, 0x8bcaad49, 0xf921f29a, 0x2b383346, 0x1cf74d3c, 0xceee8ce0, - 0xbc05d333, 0x6e1c12ef, 0xe36982f2, 0x3170432e, 0x439b1cfd, 0x9182dd21, - 0xa64da35b, 0x74546287, 0x06bf3d54, 0xd4a6fc88, 0x6921c1a0, 0xbb38007c, - 0xc9d35faf, 0x1bca9e73, 0x2c05e009, 0xfe1c21d5, 0x8cf77e06, 0x5eeebfda, - 0xf33819e1, 0x2121d83d, 0x53ca87ee, 0x81d34632, 0xb61c3848, 0x6405f994, - 0x16eea647, 0xc4f7679b, 0x79705ab3, 0xab699b6f, 0xd982c4bc, 0x0b9b0560, - 0x3c547b1a, 0xee4dbac6, 0x9ca6e515, 0x4ebf24c9}, - {0x00000000, 0x01d8ac87, 0x03b1590e, 0x0269f589, 0x0762b21c, 0x06ba1e9b, - 0x04d3eb12, 0x050b4795, 0x0ec56438, 0x0f1dc8bf, 0x0d743d36, 0x0cac91b1, - 0x09a7d624, 0x087f7aa3, 0x0a168f2a, 0x0bce23ad, 0x1d8ac870, 0x1c5264f7, - 0x1e3b917e, 0x1fe33df9, 0x1ae87a6c, 0x1b30d6eb, 0x19592362, 0x18818fe5, - 0x134fac48, 0x129700cf, 0x10fef546, 0x112659c1, 0x142d1e54, 0x15f5b2d3, - 0x179c475a, 0x1644ebdd, 0x3b1590e0, 0x3acd3c67, 0x38a4c9ee, 0x397c6569, - 0x3c7722fc, 0x3daf8e7b, 0x3fc67bf2, 0x3e1ed775, 0x35d0f4d8, 0x3408585f, - 0x3661add6, 0x37b90151, 0x32b246c4, 0x336aea43, 0x31031fca, 0x30dbb34d, - 0x269f5890, 0x2747f417, 0x252e019e, 0x24f6ad19, 0x21fdea8c, 0x2025460b, - 0x224cb382, 0x23941f05, 0x285a3ca8, 0x2982902f, 0x2beb65a6, 0x2a33c921, - 0x2f388eb4, 0x2ee02233, 0x2c89d7ba, 0x2d517b3d, 0x762b21c0, 0x77f38d47, - 0x759a78ce, 0x7442d449, 0x714993dc, 0x70913f5b, 0x72f8cad2, 0x73206655, - 0x78ee45f8, 0x7936e97f, 0x7b5f1cf6, 0x7a87b071, 0x7f8cf7e4, 0x7e545b63, - 0x7c3daeea, 0x7de5026d, 0x6ba1e9b0, 0x6a794537, 0x6810b0be, 0x69c81c39, - 0x6cc35bac, 0x6d1bf72b, 0x6f7202a2, 0x6eaaae25, 0x65648d88, 0x64bc210f, - 0x66d5d486, 0x670d7801, 0x62063f94, 0x63de9313, 0x61b7669a, 0x606fca1d, - 0x4d3eb120, 0x4ce61da7, 0x4e8fe82e, 0x4f5744a9, 0x4a5c033c, 0x4b84afbb, - 0x49ed5a32, 0x4835f6b5, 0x43fbd518, 0x4223799f, 0x404a8c16, 0x41922091, - 0x44996704, 0x4541cb83, 0x47283e0a, 0x46f0928d, 0x50b47950, 0x516cd5d7, - 0x5305205e, 0x52dd8cd9, 0x57d6cb4c, 0x560e67cb, 0x54679242, 0x55bf3ec5, - 0x5e711d68, 0x5fa9b1ef, 0x5dc04466, 0x5c18e8e1, 0x5913af74, 0x58cb03f3, - 0x5aa2f67a, 0x5b7a5afd, 0xec564380, 0xed8eef07, 0xefe71a8e, 0xee3fb609, - 0xeb34f19c, 0xeaec5d1b, 0xe885a892, 0xe95d0415, 0xe29327b8, 0xe34b8b3f, - 0xe1227eb6, 0xe0fad231, 0xe5f195a4, 0xe4293923, 0xe640ccaa, 0xe798602d, - 0xf1dc8bf0, 0xf0042777, 0xf26dd2fe, 0xf3b57e79, 0xf6be39ec, 0xf766956b, - 0xf50f60e2, 0xf4d7cc65, 0xff19efc8, 0xfec1434f, 0xfca8b6c6, 0xfd701a41, - 0xf87b5dd4, 0xf9a3f153, 0xfbca04da, 0xfa12a85d, 0xd743d360, 0xd69b7fe7, - 0xd4f28a6e, 0xd52a26e9, 0xd021617c, 0xd1f9cdfb, 0xd3903872, 0xd24894f5, - 0xd986b758, 0xd85e1bdf, 0xda37ee56, 0xdbef42d1, 0xdee40544, 0xdf3ca9c3, - 0xdd555c4a, 0xdc8df0cd, 0xcac91b10, 0xcb11b797, 0xc978421e, 0xc8a0ee99, - 0xcdaba90c, 0xcc73058b, 0xce1af002, 0xcfc25c85, 0xc40c7f28, 0xc5d4d3af, - 0xc7bd2626, 0xc6658aa1, 0xc36ecd34, 0xc2b661b3, 0xc0df943a, 0xc10738bd, - 0x9a7d6240, 0x9ba5cec7, 0x99cc3b4e, 0x981497c9, 0x9d1fd05c, 0x9cc77cdb, - 0x9eae8952, 0x9f7625d5, 0x94b80678, 0x9560aaff, 0x97095f76, 0x96d1f3f1, - 0x93dab464, 0x920218e3, 0x906bed6a, 0x91b341ed, 0x87f7aa30, 0x862f06b7, - 0x8446f33e, 0x859e5fb9, 0x8095182c, 0x814db4ab, 0x83244122, 0x82fceda5, - 0x8932ce08, 0x88ea628f, 0x8a839706, 0x8b5b3b81, 0x8e507c14, 0x8f88d093, - 0x8de1251a, 0x8c39899d, 0xa168f2a0, 0xa0b05e27, 0xa2d9abae, 0xa3010729, - 0xa60a40bc, 0xa7d2ec3b, 0xa5bb19b2, 0xa463b535, 0xafad9698, 0xae753a1f, - 0xac1ccf96, 0xadc46311, 0xa8cf2484, 0xa9178803, 0xab7e7d8a, 0xaaa6d10d, - 0xbce23ad0, 0xbd3a9657, 0xbf5363de, 0xbe8bcf59, 0xbb8088cc, 0xba58244b, - 0xb831d1c2, 0xb9e97d45, 0xb2275ee8, 0xb3fff26f, 0xb19607e6, 0xb04eab61, - 0xb545ecf4, 0xb49d4073, 0xb6f4b5fa, 0xb72c197d}, - {0x00000000, 0xdc6d9ab7, 0xbc1a28d9, 0x6077b26e, 0x7cf54c05, 0xa098d6b2, - 0xc0ef64dc, 0x1c82fe6b, 0xf9ea980a, 0x258702bd, 0x45f0b0d3, 0x999d2a64, - 0x851fd40f, 0x59724eb8, 0x3905fcd6, 0xe5686661, 0xf7142da3, 0x2b79b714, - 0x4b0e057a, 0x97639fcd, 0x8be161a6, 0x578cfb11, 0x37fb497f, 0xeb96d3c8, - 0x0efeb5a9, 0xd2932f1e, 0xb2e49d70, 0x6e8907c7, 0x720bf9ac, 0xae66631b, - 0xce11d175, 0x127c4bc2, 0xeae946f1, 0x3684dc46, 0x56f36e28, 0x8a9ef49f, - 0x961c0af4, 0x4a719043, 0x2a06222d, 0xf66bb89a, 0x1303defb, 0xcf6e444c, - 0xaf19f622, 0x73746c95, 0x6ff692fe, 0xb39b0849, 0xd3ecba27, 0x0f812090, - 0x1dfd6b52, 0xc190f1e5, 0xa1e7438b, 0x7d8ad93c, 0x61082757, 0xbd65bde0, - 0xdd120f8e, 0x017f9539, 0xe417f358, 0x387a69ef, 0x580ddb81, 0x84604136, - 0x98e2bf5d, 0x448f25ea, 0x24f89784, 0xf8950d33, 0xd1139055, 0x0d7e0ae2, - 0x6d09b88c, 0xb164223b, 0xade6dc50, 0x718b46e7, 0x11fcf489, 0xcd916e3e, - 0x28f9085f, 0xf49492e8, 0x94e32086, 0x488eba31, 0x540c445a, 0x8861deed, - 0xe8166c83, 0x347bf634, 0x2607bdf6, 0xfa6a2741, 0x9a1d952f, 0x46700f98, - 0x5af2f1f3, 0x869f6b44, 0xe6e8d92a, 0x3a85439d, 0xdfed25fc, 0x0380bf4b, - 0x63f70d25, 0xbf9a9792, 0xa31869f9, 0x7f75f34e, 0x1f024120, 0xc36fdb97, - 0x3bfad6a4, 0xe7974c13, 0x87e0fe7d, 0x5b8d64ca, 0x470f9aa1, 0x9b620016, - 0xfb15b278, 0x277828cf, 0xc2104eae, 0x1e7dd419, 0x7e0a6677, 0xa267fcc0, - 0xbee502ab, 0x6288981c, 0x02ff2a72, 0xde92b0c5, 0xcceefb07, 0x108361b0, - 0x70f4d3de, 0xac994969, 0xb01bb702, 0x6c762db5, 0x0c019fdb, 0xd06c056c, - 0x3504630d, 0xe969f9ba, 0x891e4bd4, 0x5573d163, 0x49f12f08, 0x959cb5bf, - 0xf5eb07d1, 0x29869d66, 0xa6e63d1d, 0x7a8ba7aa, 0x1afc15c4, 0xc6918f73, - 0xda137118, 0x067eebaf, 0x660959c1, 0xba64c376, 0x5f0ca517, 0x83613fa0, - 0xe3168dce, 0x3f7b1779, 0x23f9e912, 0xff9473a5, 0x9fe3c1cb, 0x438e5b7c, - 0x51f210be, 0x8d9f8a09, 0xede83867, 0x3185a2d0, 0x2d075cbb, 0xf16ac60c, - 0x911d7462, 0x4d70eed5, 0xa81888b4, 0x74751203, 0x1402a06d, 0xc86f3ada, - 0xd4edc4b1, 0x08805e06, 0x68f7ec68, 0xb49a76df, 0x4c0f7bec, 0x9062e15b, - 0xf0155335, 0x2c78c982, 0x30fa37e9, 0xec97ad5e, 0x8ce01f30, 0x508d8587, - 0xb5e5e3e6, 0x69887951, 0x09ffcb3f, 0xd5925188, 0xc910afe3, 0x157d3554, - 0x750a873a, 0xa9671d8d, 0xbb1b564f, 0x6776ccf8, 0x07017e96, 0xdb6ce421, - 0xc7ee1a4a, 0x1b8380fd, 0x7bf43293, 0xa799a824, 0x42f1ce45, 0x9e9c54f2, - 0xfeebe69c, 0x22867c2b, 0x3e048240, 0xe26918f7, 0x821eaa99, 0x5e73302e, - 0x77f5ad48, 0xab9837ff, 0xcbef8591, 0x17821f26, 0x0b00e14d, 0xd76d7bfa, - 0xb71ac994, 0x6b775323, 0x8e1f3542, 0x5272aff5, 0x32051d9b, 0xee68872c, - 0xf2ea7947, 0x2e87e3f0, 0x4ef0519e, 0x929dcb29, 0x80e180eb, 0x5c8c1a5c, - 0x3cfba832, 0xe0963285, 0xfc14ccee, 0x20795659, 0x400ee437, 0x9c637e80, - 0x790b18e1, 0xa5668256, 0xc5113038, 0x197caa8f, 0x05fe54e4, 0xd993ce53, - 0xb9e47c3d, 0x6589e68a, 0x9d1cebb9, 0x4171710e, 0x2106c360, 0xfd6b59d7, - 0xe1e9a7bc, 0x3d843d0b, 0x5df38f65, 0x819e15d2, 0x64f673b3, 0xb89be904, - 0xd8ec5b6a, 0x0481c1dd, 0x18033fb6, 0xc46ea501, 0xa419176f, 0x78748dd8, - 0x6a08c61a, 0xb6655cad, 0xd612eec3, 0x0a7f7474, 0x16fd8a1f, 0xca9010a8, - 0xaae7a2c6, 0x768a3871, 0x93e25e10, 0x4f8fc4a7, 0x2ff876c9, 0xf395ec7e, - 0xef171215, 0x337a88a2, 0x530d3acc, 0x8f60a07b}, - {0x00000000, 0x490d678d, 0x921acf1a, 0xdb17a897, 0x20f48383, 0x69f9e40e, - 0xb2ee4c99, 0xfbe32b14, 0x41e90706, 0x08e4608b, 0xd3f3c81c, 0x9afeaf91, - 0x611d8485, 0x2810e308, 0xf3074b9f, 0xba0a2c12, 0x83d20e0c, 0xcadf6981, - 0x11c8c116, 0x58c5a69b, 0xa3268d8f, 0xea2bea02, 0x313c4295, 0x78312518, - 0xc23b090a, 0x8b366e87, 0x5021c610, 0x192ca19d, 0xe2cf8a89, 0xabc2ed04, - 0x70d54593, 0x39d8221e, 0x036501af, 0x4a686622, 0x917fceb5, 0xd872a938, - 0x2391822c, 0x6a9ce5a1, 0xb18b4d36, 0xf8862abb, 0x428c06a9, 0x0b816124, - 0xd096c9b3, 0x999bae3e, 0x6278852a, 0x2b75e2a7, 0xf0624a30, 0xb96f2dbd, - 0x80b70fa3, 0xc9ba682e, 0x12adc0b9, 0x5ba0a734, 0xa0438c20, 0xe94eebad, - 0x3259433a, 0x7b5424b7, 0xc15e08a5, 0x88536f28, 0x5344c7bf, 0x1a49a032, - 0xe1aa8b26, 0xa8a7ecab, 0x73b0443c, 0x3abd23b1, 0x06ca035e, 0x4fc764d3, - 0x94d0cc44, 0xddddabc9, 0x263e80dd, 0x6f33e750, 0xb4244fc7, 0xfd29284a, - 0x47230458, 0x0e2e63d5, 0xd539cb42, 0x9c34accf, 0x67d787db, 0x2edae056, - 0xf5cd48c1, 0xbcc02f4c, 0x85180d52, 0xcc156adf, 0x1702c248, 0x5e0fa5c5, - 0xa5ec8ed1, 0xece1e95c, 0x37f641cb, 0x7efb2646, 0xc4f10a54, 0x8dfc6dd9, - 0x56ebc54e, 0x1fe6a2c3, 0xe40589d7, 0xad08ee5a, 0x761f46cd, 0x3f122140, - 0x05af02f1, 0x4ca2657c, 0x97b5cdeb, 0xdeb8aa66, 0x255b8172, 0x6c56e6ff, - 0xb7414e68, 0xfe4c29e5, 0x444605f7, 0x0d4b627a, 0xd65ccaed, 0x9f51ad60, - 0x64b28674, 0x2dbfe1f9, 0xf6a8496e, 0xbfa52ee3, 0x867d0cfd, 0xcf706b70, - 0x1467c3e7, 0x5d6aa46a, 0xa6898f7e, 0xef84e8f3, 0x34934064, 0x7d9e27e9, - 0xc7940bfb, 0x8e996c76, 0x558ec4e1, 0x1c83a36c, 0xe7608878, 0xae6deff5, - 0x757a4762, 0x3c7720ef, 0x0d9406bc, 0x44996131, 0x9f8ec9a6, 0xd683ae2b, - 0x2d60853f, 0x646de2b2, 0xbf7a4a25, 0xf6772da8, 0x4c7d01ba, 0x05706637, - 0xde67cea0, 0x976aa92d, 0x6c898239, 0x2584e5b4, 0xfe934d23, 0xb79e2aae, - 0x8e4608b0, 0xc74b6f3d, 0x1c5cc7aa, 0x5551a027, 0xaeb28b33, 0xe7bfecbe, - 0x3ca84429, 0x75a523a4, 0xcfaf0fb6, 0x86a2683b, 0x5db5c0ac, 0x14b8a721, - 0xef5b8c35, 0xa656ebb8, 0x7d41432f, 0x344c24a2, 0x0ef10713, 0x47fc609e, - 0x9cebc809, 0xd5e6af84, 0x2e058490, 0x6708e31d, 0xbc1f4b8a, 0xf5122c07, - 0x4f180015, 0x06156798, 0xdd02cf0f, 0x940fa882, 0x6fec8396, 0x26e1e41b, - 0xfdf64c8c, 0xb4fb2b01, 0x8d23091f, 0xc42e6e92, 0x1f39c605, 0x5634a188, - 0xadd78a9c, 0xe4daed11, 0x3fcd4586, 0x76c0220b, 0xccca0e19, 0x85c76994, - 0x5ed0c103, 0x17dda68e, 0xec3e8d9a, 0xa533ea17, 0x7e244280, 0x3729250d, - 0x0b5e05e2, 0x4253626f, 0x9944caf8, 0xd049ad75, 0x2baa8661, 0x62a7e1ec, - 0xb9b0497b, 0xf0bd2ef6, 0x4ab702e4, 0x03ba6569, 0xd8adcdfe, 0x91a0aa73, - 0x6a438167, 0x234ee6ea, 0xf8594e7d, 0xb15429f0, 0x888c0bee, 0xc1816c63, - 0x1a96c4f4, 0x539ba379, 0xa878886d, 0xe175efe0, 0x3a624777, 0x736f20fa, - 0xc9650ce8, 0x80686b65, 0x5b7fc3f2, 0x1272a47f, 0xe9918f6b, 0xa09ce8e6, - 0x7b8b4071, 0x328627fc, 0x083b044d, 0x413663c0, 0x9a21cb57, 0xd32cacda, - 0x28cf87ce, 0x61c2e043, 0xbad548d4, 0xf3d82f59, 0x49d2034b, 0x00df64c6, - 0xdbc8cc51, 0x92c5abdc, 0x692680c8, 0x202be745, 0xfb3c4fd2, 0xb231285f, - 0x8be90a41, 0xc2e46dcc, 0x19f3c55b, 0x50fea2d6, 0xab1d89c2, 0xe210ee4f, - 0x390746d8, 0x700a2155, 0xca000d47, 0x830d6aca, 0x581ac25d, 0x1117a5d0, - 0xeaf48ec4, 0xa3f9e949, 0x78ee41de, 0x31e32653}, - {0x00000000, 0x1b280d78, 0x36501af0, 0x2d781788, 0x6ca035e0, 0x77883898, - 0x5af02f10, 0x41d82268, 0xd9406bc0, 0xc26866b8, 0xef107130, 0xf4387c48, - 0xb5e05e20, 0xaec85358, 0x83b044d0, 0x989849a8, 0xb641ca37, 0xad69c74f, - 0x8011d0c7, 0x9b39ddbf, 0xdae1ffd7, 0xc1c9f2af, 0xecb1e527, 0xf799e85f, - 0x6f01a1f7, 0x7429ac8f, 0x5951bb07, 0x4279b67f, 0x03a19417, 0x1889996f, - 0x35f18ee7, 0x2ed9839f, 0x684289d9, 0x736a84a1, 0x5e129329, 0x453a9e51, - 0x04e2bc39, 0x1fcab141, 0x32b2a6c9, 0x299aabb1, 0xb102e219, 0xaa2aef61, - 0x8752f8e9, 0x9c7af591, 0xdda2d7f9, 0xc68ada81, 0xebf2cd09, 0xf0dac071, - 0xde0343ee, 0xc52b4e96, 0xe853591e, 0xf37b5466, 0xb2a3760e, 0xa98b7b76, - 0x84f36cfe, 0x9fdb6186, 0x0743282e, 0x1c6b2556, 0x311332de, 0x2a3b3fa6, - 0x6be31dce, 0x70cb10b6, 0x5db3073e, 0x469b0a46, 0xd08513b2, 0xcbad1eca, - 0xe6d50942, 0xfdfd043a, 0xbc252652, 0xa70d2b2a, 0x8a753ca2, 0x915d31da, - 0x09c57872, 0x12ed750a, 0x3f956282, 0x24bd6ffa, 0x65654d92, 0x7e4d40ea, - 0x53355762, 0x481d5a1a, 0x66c4d985, 0x7decd4fd, 0x5094c375, 0x4bbcce0d, - 0x0a64ec65, 0x114ce11d, 0x3c34f695, 0x271cfbed, 0xbf84b245, 0xa4acbf3d, - 0x89d4a8b5, 0x92fca5cd, 0xd32487a5, 0xc80c8add, 0xe5749d55, 0xfe5c902d, - 0xb8c79a6b, 0xa3ef9713, 0x8e97809b, 0x95bf8de3, 0xd467af8b, 0xcf4fa2f3, - 0xe237b57b, 0xf91fb803, 0x6187f1ab, 0x7aaffcd3, 0x57d7eb5b, 0x4cffe623, - 0x0d27c44b, 0x160fc933, 0x3b77debb, 0x205fd3c3, 0x0e86505c, 0x15ae5d24, - 0x38d64aac, 0x23fe47d4, 0x622665bc, 0x790e68c4, 0x54767f4c, 0x4f5e7234, - 0xd7c63b9c, 0xccee36e4, 0xe196216c, 0xfabe2c14, 0xbb660e7c, 0xa04e0304, - 0x8d36148c, 0x961e19f4, 0xa5cb3ad3, 0xbee337ab, 0x939b2023, 0x88b32d5b, - 0xc96b0f33, 0xd243024b, 0xff3b15c3, 0xe41318bb, 0x7c8b5113, 0x67a35c6b, - 0x4adb4be3, 0x51f3469b, 0x102b64f3, 0x0b03698b, 0x267b7e03, 0x3d53737b, - 0x138af0e4, 0x08a2fd9c, 0x25daea14, 0x3ef2e76c, 0x7f2ac504, 0x6402c87c, - 0x497adff4, 0x5252d28c, 0xcaca9b24, 0xd1e2965c, 0xfc9a81d4, 0xe7b28cac, - 0xa66aaec4, 0xbd42a3bc, 0x903ab434, 0x8b12b94c, 0xcd89b30a, 0xd6a1be72, - 0xfbd9a9fa, 0xe0f1a482, 0xa12986ea, 0xba018b92, 0x97799c1a, 0x8c519162, - 0x14c9d8ca, 0x0fe1d5b2, 0x2299c23a, 0x39b1cf42, 0x7869ed2a, 0x6341e052, - 0x4e39f7da, 0x5511faa2, 0x7bc8793d, 0x60e07445, 0x4d9863cd, 0x56b06eb5, - 0x17684cdd, 0x0c4041a5, 0x2138562d, 0x3a105b55, 0xa28812fd, 0xb9a01f85, - 0x94d8080d, 0x8ff00575, 0xce28271d, 0xd5002a65, 0xf8783ded, 0xe3503095, - 0x754e2961, 0x6e662419, 0x431e3391, 0x58363ee9, 0x19ee1c81, 0x02c611f9, - 0x2fbe0671, 0x34960b09, 0xac0e42a1, 0xb7264fd9, 0x9a5e5851, 0x81765529, - 0xc0ae7741, 0xdb867a39, 0xf6fe6db1, 0xedd660c9, 0xc30fe356, 0xd827ee2e, - 0xf55ff9a6, 0xee77f4de, 0xafafd6b6, 0xb487dbce, 0x99ffcc46, 0x82d7c13e, - 0x1a4f8896, 0x016785ee, 0x2c1f9266, 0x37379f1e, 0x76efbd76, 0x6dc7b00e, - 0x40bfa786, 0x5b97aafe, 0x1d0ca0b8, 0x0624adc0, 0x2b5cba48, 0x3074b730, - 0x71ac9558, 0x6a849820, 0x47fc8fa8, 0x5cd482d0, 0xc44ccb78, 0xdf64c600, - 0xf21cd188, 0xe934dcf0, 0xa8ecfe98, 0xb3c4f3e0, 0x9ebce468, 0x8594e910, - 0xab4d6a8f, 0xb06567f7, 0x9d1d707f, 0x86357d07, 0xc7ed5f6f, 0xdcc55217, - 0xf1bd459f, 0xea9548e7, 0x720d014f, 0x69250c37, 0x445d1bbf, 0x5f7516c7, - 0x1ead34af, 0x058539d7, 0x28fd2e5f, 0x33d52327}, - {0x00000000, 0x4f576811, 0x9eaed022, 0xd1f9b833, 0x399cbdf3, 0x76cbd5e2, - 0xa7326dd1, 0xe86505c0, 0x73397be6, 0x3c6e13f7, 0xed97abc4, 0xa2c0c3d5, - 0x4aa5c615, 0x05f2ae04, 0xd40b1637, 0x9b5c7e26, 0xe672f7cc, 0xa9259fdd, - 0x78dc27ee, 0x378b4fff, 0xdfee4a3f, 0x90b9222e, 0x41409a1d, 0x0e17f20c, - 0x954b8c2a, 0xda1ce43b, 0x0be55c08, 0x44b23419, 0xacd731d9, 0xe38059c8, - 0x3279e1fb, 0x7d2e89ea, 0xc824f22f, 0x87739a3e, 0x568a220d, 0x19dd4a1c, - 0xf1b84fdc, 0xbeef27cd, 0x6f169ffe, 0x2041f7ef, 0xbb1d89c9, 0xf44ae1d8, - 0x25b359eb, 0x6ae431fa, 0x8281343a, 0xcdd65c2b, 0x1c2fe418, 0x53788c09, - 0x2e5605e3, 0x61016df2, 0xb0f8d5c1, 0xffafbdd0, 0x17cab810, 0x589dd001, - 0x89646832, 0xc6330023, 0x5d6f7e05, 0x12381614, 0xc3c1ae27, 0x8c96c636, - 0x64f3c3f6, 0x2ba4abe7, 0xfa5d13d4, 0xb50a7bc5, 0x9488f9e9, 0xdbdf91f8, - 0x0a2629cb, 0x457141da, 0xad14441a, 0xe2432c0b, 0x33ba9438, 0x7cedfc29, - 0xe7b1820f, 0xa8e6ea1e, 0x791f522d, 0x36483a3c, 0xde2d3ffc, 0x917a57ed, - 0x4083efde, 0x0fd487cf, 0x72fa0e25, 0x3dad6634, 0xec54de07, 0xa303b616, - 0x4b66b3d6, 0x0431dbc7, 0xd5c863f4, 0x9a9f0be5, 0x01c375c3, 0x4e941dd2, - 0x9f6da5e1, 0xd03acdf0, 0x385fc830, 0x7708a021, 0xa6f11812, 0xe9a67003, - 0x5cac0bc6, 0x13fb63d7, 0xc202dbe4, 0x8d55b3f5, 0x6530b635, 0x2a67de24, - 0xfb9e6617, 0xb4c90e06, 0x2f957020, 0x60c21831, 0xb13ba002, 0xfe6cc813, - 0x1609cdd3, 0x595ea5c2, 0x88a71df1, 0xc7f075e0, 0xbadefc0a, 0xf589941b, - 0x24702c28, 0x6b274439, 0x834241f9, 0xcc1529e8, 0x1dec91db, 0x52bbf9ca, - 0xc9e787ec, 0x86b0effd, 0x574957ce, 0x181e3fdf, 0xf07b3a1f, 0xbf2c520e, - 0x6ed5ea3d, 0x2182822c, 0x2dd0ee65, 0x62878674, 0xb37e3e47, 0xfc295656, - 0x144c5396, 0x5b1b3b87, 0x8ae283b4, 0xc5b5eba5, 0x5ee99583, 0x11befd92, - 0xc04745a1, 0x8f102db0, 0x67752870, 0x28224061, 0xf9dbf852, 0xb68c9043, - 0xcba219a9, 0x84f571b8, 0x550cc98b, 0x1a5ba19a, 0xf23ea45a, 0xbd69cc4b, - 0x6c907478, 0x23c71c69, 0xb89b624f, 0xf7cc0a5e, 0x2635b26d, 0x6962da7c, - 0x8107dfbc, 0xce50b7ad, 0x1fa90f9e, 0x50fe678f, 0xe5f41c4a, 0xaaa3745b, - 0x7b5acc68, 0x340da479, 0xdc68a1b9, 0x933fc9a8, 0x42c6719b, 0x0d91198a, - 0x96cd67ac, 0xd99a0fbd, 0x0863b78e, 0x4734df9f, 0xaf51da5f, 0xe006b24e, - 0x31ff0a7d, 0x7ea8626c, 0x0386eb86, 0x4cd18397, 0x9d283ba4, 0xd27f53b5, - 0x3a1a5675, 0x754d3e64, 0xa4b48657, 0xebe3ee46, 0x70bf9060, 0x3fe8f871, - 0xee114042, 0xa1462853, 0x49232d93, 0x06744582, 0xd78dfdb1, 0x98da95a0, - 0xb958178c, 0xf60f7f9d, 0x27f6c7ae, 0x68a1afbf, 0x80c4aa7f, 0xcf93c26e, - 0x1e6a7a5d, 0x513d124c, 0xca616c6a, 0x8536047b, 0x54cfbc48, 0x1b98d459, - 0xf3fdd199, 0xbcaab988, 0x6d5301bb, 0x220469aa, 0x5f2ae040, 0x107d8851, - 0xc1843062, 0x8ed35873, 0x66b65db3, 0x29e135a2, 0xf8188d91, 0xb74fe580, - 0x2c139ba6, 0x6344f3b7, 0xb2bd4b84, 0xfdea2395, 0x158f2655, 0x5ad84e44, - 0x8b21f677, 0xc4769e66, 0x717ce5a3, 0x3e2b8db2, 0xefd23581, 0xa0855d90, - 0x48e05850, 0x07b73041, 0xd64e8872, 0x9919e063, 0x02459e45, 0x4d12f654, - 0x9ceb4e67, 0xd3bc2676, 0x3bd923b6, 0x748e4ba7, 0xa577f394, 0xea209b85, - 0x970e126f, 0xd8597a7e, 0x09a0c24d, 0x46f7aa5c, 0xae92af9c, 0xe1c5c78d, - 0x303c7fbe, 0x7f6b17af, 0xe4376989, 0xab600198, 0x7a99b9ab, 0x35ced1ba, - 0xddabd47a, 0x92fcbc6b, 0x43050458, 0x0c526c49}, - {0x00000000, 0x5ba1dcca, 0xb743b994, 0xece2655e, 0x6a466e9f, 0x31e7b255, - 0xdd05d70b, 0x86a40bc1, 0xd48cdd3e, 0x8f2d01f4, 0x63cf64aa, 0x386eb860, - 0xbecab3a1, 0xe56b6f6b, 0x09890a35, 0x5228d6ff, 0xadd8a7cb, 0xf6797b01, - 0x1a9b1e5f, 0x413ac295, 0xc79ec954, 0x9c3f159e, 0x70dd70c0, 0x2b7cac0a, - 0x79547af5, 0x22f5a63f, 0xce17c361, 0x95b61fab, 0x1312146a, 0x48b3c8a0, - 0xa451adfe, 0xfff07134, 0x5f705221, 0x04d18eeb, 0xe833ebb5, 0xb392377f, - 0x35363cbe, 0x6e97e074, 0x8275852a, 0xd9d459e0, 0x8bfc8f1f, 0xd05d53d5, - 0x3cbf368b, 0x671eea41, 0xe1bae180, 0xba1b3d4a, 0x56f95814, 0x0d5884de, - 0xf2a8f5ea, 0xa9092920, 0x45eb4c7e, 0x1e4a90b4, 0x98ee9b75, 0xc34f47bf, - 0x2fad22e1, 0x740cfe2b, 0x262428d4, 0x7d85f41e, 0x91679140, 0xcac64d8a, - 0x4c62464b, 0x17c39a81, 0xfb21ffdf, 0xa0802315, 0xbee0a442, 0xe5417888, - 0x09a31dd6, 0x5202c11c, 0xd4a6cadd, 0x8f071617, 0x63e57349, 0x3844af83, - 0x6a6c797c, 0x31cda5b6, 0xdd2fc0e8, 0x868e1c22, 0x002a17e3, 0x5b8bcb29, - 0xb769ae77, 0xecc872bd, 0x13380389, 0x4899df43, 0xa47bba1d, 0xffda66d7, - 0x797e6d16, 0x22dfb1dc, 0xce3dd482, 0x959c0848, 0xc7b4deb7, 0x9c15027d, - 0x70f76723, 0x2b56bbe9, 0xadf2b028, 0xf6536ce2, 0x1ab109bc, 0x4110d576, - 0xe190f663, 0xba312aa9, 0x56d34ff7, 0x0d72933d, 0x8bd698fc, 0xd0774436, - 0x3c952168, 0x6734fda2, 0x351c2b5d, 0x6ebdf797, 0x825f92c9, 0xd9fe4e03, - 0x5f5a45c2, 0x04fb9908, 0xe819fc56, 0xb3b8209c, 0x4c4851a8, 0x17e98d62, - 0xfb0be83c, 0xa0aa34f6, 0x260e3f37, 0x7dafe3fd, 0x914d86a3, 0xcaec5a69, - 0x98c48c96, 0xc365505c, 0x2f873502, 0x7426e9c8, 0xf282e209, 0xa9233ec3, - 0x45c15b9d, 0x1e608757, 0x79005533, 0x22a189f9, 0xce43eca7, 0x95e2306d, - 0x13463bac, 0x48e7e766, 0xa4058238, 0xffa45ef2, 0xad8c880d, 0xf62d54c7, - 0x1acf3199, 0x416eed53, 0xc7cae692, 0x9c6b3a58, 0x70895f06, 0x2b2883cc, - 0xd4d8f2f8, 0x8f792e32, 0x639b4b6c, 0x383a97a6, 0xbe9e9c67, 0xe53f40ad, - 0x09dd25f3, 0x527cf939, 0x00542fc6, 0x5bf5f30c, 0xb7179652, 0xecb64a98, - 0x6a124159, 0x31b39d93, 0xdd51f8cd, 0x86f02407, 0x26700712, 0x7dd1dbd8, - 0x9133be86, 0xca92624c, 0x4c36698d, 0x1797b547, 0xfb75d019, 0xa0d40cd3, - 0xf2fcda2c, 0xa95d06e6, 0x45bf63b8, 0x1e1ebf72, 0x98bab4b3, 0xc31b6879, - 0x2ff90d27, 0x7458d1ed, 0x8ba8a0d9, 0xd0097c13, 0x3ceb194d, 0x674ac587, - 0xe1eece46, 0xba4f128c, 0x56ad77d2, 0x0d0cab18, 0x5f247de7, 0x0485a12d, - 0xe867c473, 0xb3c618b9, 0x35621378, 0x6ec3cfb2, 0x8221aaec, 0xd9807626, - 0xc7e0f171, 0x9c412dbb, 0x70a348e5, 0x2b02942f, 0xada69fee, 0xf6074324, - 0x1ae5267a, 0x4144fab0, 0x136c2c4f, 0x48cdf085, 0xa42f95db, 0xff8e4911, - 0x792a42d0, 0x228b9e1a, 0xce69fb44, 0x95c8278e, 0x6a3856ba, 0x31998a70, - 0xdd7bef2e, 0x86da33e4, 0x007e3825, 0x5bdfe4ef, 0xb73d81b1, 0xec9c5d7b, - 0xbeb48b84, 0xe515574e, 0x09f73210, 0x5256eeda, 0xd4f2e51b, 0x8f5339d1, - 0x63b15c8f, 0x38108045, 0x9890a350, 0xc3317f9a, 0x2fd31ac4, 0x7472c60e, - 0xf2d6cdcf, 0xa9771105, 0x4595745b, 0x1e34a891, 0x4c1c7e6e, 0x17bda2a4, - 0xfb5fc7fa, 0xa0fe1b30, 0x265a10f1, 0x7dfbcc3b, 0x9119a965, 0xcab875af, - 0x3548049b, 0x6ee9d851, 0x820bbd0f, 0xd9aa61c5, 0x5f0e6a04, 0x04afb6ce, - 0xe84dd390, 0xb3ec0f5a, 0xe1c4d9a5, 0xba65056f, 0x56876031, 0x0d26bcfb, - 0x8b82b73a, 0xd0236bf0, 0x3cc10eae, 0x6760d264}, -}; diff --git a/tests/source/coreutils/cksum-digest.c b/tests/source/coreutils/cksum-digest.c deleted file mode 100644 index 7571db3..0000000 --- a/tests/source/coreutils/cksum-digest.c +++ /dev/null @@ -1,8302 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -extern int bsd_sum_stream(FILE *stream, void *resstream, uintmax_t *length); - -extern int sysv_sum_stream(FILE *stream, void *resstream, uintmax_t *length); - -typedef int (*sumfn)(FILE *, void *, uintmax_t *); - -extern void output_bsd(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -extern void output_sysv(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -extern _Bool cksum_debug; - -extern int crc_sum_stream(FILE *stream, void *resstream, uintmax_t *length); - -extern void output_crc(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) __attribute__((__nonnull__(3))); - -extern _Bool - -cksum_pclmul(FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out); - -extern uint_fast32_t const crctab[8][256]; - -int blake2b_stream(FILE *stream, void *resstream, size_t outbytes) - __attribute__((__nonnull__(1))); -typedef int (*blake2fn)(FILE *, void *, size_t); - -struct md5_ctx { - uint32_t A; - uint32_t B; - uint32_t C; - uint32_t D; - - uint32_t total[2]; - uint32_t buflen; - uint32_t buffer[32]; -}; -extern void md5_init_ctx(struct md5_ctx *ctx) - __attribute__((__nothrow__, __leaf__)); - -extern void md5_process_block(const void *buffer, size_t len, - struct md5_ctx *ctx) - __attribute__((__nothrow__, __leaf__)); - -extern void md5_process_bytes(const void *buffer, size_t len, - struct md5_ctx *ctx) - __attribute__((__nothrow__, __leaf__)); - -extern void *md5_finish_ctx(struct md5_ctx *ctx, void *__restrict__ resbuf) - - __attribute__((__nothrow__, __leaf__)); - -extern void *md5_read_ctx(const struct md5_ctx *ctx, void *__restrict__ resbuf) - - __attribute__((__nothrow__, __leaf__)); - -extern void *md5_buffer(const char *buffer, size_t len, - void *__restrict__ resblock) - __attribute__((__nothrow__, __leaf__)); -extern int md5_stream(FILE *stream, void *resblock) - __attribute__((__nothrow__, __leaf__)); - -struct sha1_ctx { - uint32_t A; - uint32_t B; - uint32_t C; - uint32_t D; - uint32_t E; - - uint32_t total[2]; - uint32_t buflen; - uint32_t buffer[32]; -}; - -extern void sha1_init_ctx(struct sha1_ctx *ctx); - -extern void sha1_process_block(const void *buffer, size_t len, - struct sha1_ctx *ctx); - -extern void sha1_process_bytes(const void *buffer, size_t len, - struct sha1_ctx *ctx); - -extern void *sha1_finish_ctx(struct sha1_ctx *ctx, void *__restrict__ resbuf); - -extern void *sha1_read_ctx(const struct sha1_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha1_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern int sha1_stream(FILE *stream, void *resblock); - -enum { SHA224_DIGEST_SIZE = 224 / 8 }; -enum { SHA256_DIGEST_SIZE = 256 / 8 }; -struct sha256_ctx { - uint32_t state[8]; - - uint32_t total[2]; - size_t buflen; - uint32_t buffer[32]; -}; - -extern void sha256_init_ctx(struct sha256_ctx *ctx); -extern void sha224_init_ctx(struct sha256_ctx *ctx); - -extern void sha256_process_block(const void *buffer, size_t len, - struct sha256_ctx *ctx); - -extern void sha256_process_bytes(const void *buffer, size_t len, - struct sha256_ctx *ctx); - -extern void *sha256_finish_ctx(struct sha256_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha224_finish_ctx(struct sha256_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha256_read_ctx(const struct sha256_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha224_read_ctx(const struct sha256_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha256_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern void *sha224_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern int sha256_stream(FILE *stream, void *resblock); -extern int sha224_stream(FILE *stream, void *resblock); - -typedef uint64_t u64; - -enum { SHA384_DIGEST_SIZE = 384 / 8 }; -enum { SHA512_DIGEST_SIZE = 512 / 8 }; -struct sha512_ctx { - u64 state[8]; - - u64 total[2]; - size_t buflen; - u64 buffer[32]; -}; - -extern void sha512_init_ctx(struct sha512_ctx *ctx); -extern void sha384_init_ctx(struct sha512_ctx *ctx); - -extern void sha512_process_block(const void *buffer, size_t len, - struct sha512_ctx *ctx); - -extern void sha512_process_bytes(const void *buffer, size_t len, - struct sha512_ctx *ctx); - -extern void *sha512_finish_ctx(struct sha512_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha384_finish_ctx(struct sha512_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha512_read_ctx(const struct sha512_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha384_read_ctx(const struct sha512_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha512_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern void *sha384_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern int sha512_stream(FILE *stream, void *resblock); -extern int sha384_stream(FILE *stream, void *resblock); - -enum { SM3_DIGEST_SIZE = 256 / 8 }; - -struct sm3_ctx { - uint32_t state[8]; - - uint32_t total[2]; - size_t buflen; - uint32_t buffer[32]; -}; - -extern void sm3_init_ctx(struct sm3_ctx *ctx); - -extern void sm3_process_block(const void *buffer, size_t len, - struct sm3_ctx *ctx); - -extern void sm3_process_bytes(const void *buffer, size_t len, - struct sm3_ctx *ctx); - -extern void *sm3_finish_ctx(struct sm3_ctx *ctx, void *__restrict__ resbuf); - -extern void *sm3_read_ctx(const struct sm3_ctx *ctx, void *__restrict__ resbuf); - -extern void *sm3_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); - -extern int sm3_stream(FILE *stream, void *resblock); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -static _Bool have_read_stdin; - -static size_t min_digest_line_length; - -static size_t digest_hex_bytes; - -static _Bool status_only = 0; - -static _Bool warn = 0; - -static _Bool ignore_missing = 0; - -static _Bool quiet = 0; - -static _Bool strict = 0; - -static int bsd_reversed = -1; - -static unsigned char digest_delim = '\n'; - -static uintmax_t digest_length; - -typedef void (*digest_output_fn)(char const *, int, void const *, - - _Bool, unsigned char, _Bool, uintmax_t); -static int md5_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - return md5_stream(stream, resstream); -} -static int sha1_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - return sha1_stream(stream, resstream); -} -static int sha224_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - return sha224_stream(stream, resstream); -} -static int sha256_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - return sha256_stream(stream, resstream); -} -static int sha384_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - return sha384_stream(stream, resstream); -} -static int sha512_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - return sha512_stream(stream, resstream); -} -static int blake2b_sum_stream(FILE *stream, void *resstream, - uintmax_t *length) { - return blake2b_stream(stream, resstream, *length); -} -static int sm3_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - return sm3_stream(stream, resstream); -} - -enum Algorithm { - bsd, - sysv, - crc, - md5, - sha1, - sha224, - sha256, - sha384, - sha512, - blake2b, - sm3, -}; - -static char const *const algorithm_args[] = { - "bsd", "sysv", "crc", "md5", "sha1", "sha224", "sha256", - "sha384", "sha512", "blake2b", "sm3", ((void *)0) - -}; -static enum Algorithm const algorithm_types[] = { - bsd, sysv, crc, md5, sha1, sha224, sha256, sha384, sha512, blake2b, sm3, -}; -_Static_assert((sizeof(algorithm_args) / sizeof *(algorithm_args)) == - (sizeof(algorithm_types) / sizeof *(algorithm_types)) + 1, - "verify (" - "ARRAY_CARDINALITY (algorithm_args) == ARRAY_CARDINALITY " - "(algorithm_types) + 1" - ")"); - -static char const *const algorithm_tags[] = { - "BSD", "SYSV", "CRC", "MD5", "SHA1", "SHA224", "SHA256", - "SHA384", "SHA512", "BLAKE2b", "SM3", ((void *)0) - -}; -static int const algorithm_bits[] = {16, 16, 32, 128, 160, 224, - 256, 384, 512, 512, 256, 0}; - -_Static_assert( - (sizeof(algorithm_bits) / sizeof *(algorithm_bits)) == - (sizeof(algorithm_args) / sizeof *(algorithm_args)), - "verify (" - "ARRAY_CARDINALITY (algorithm_bits) == ARRAY_CARDINALITY (algorithm_args)" - ")"); - -static _Bool algorithm_specified = 0; -static enum Algorithm cksum_algorithm = crc; -static sumfn cksumfns[] = { - bsd_sum_stream, sysv_sum_stream, crc_sum_stream, md5_sum_stream, - sha1_sum_stream, sha224_sum_stream, sha256_sum_stream, sha384_sum_stream, - sha512_sum_stream, blake2b_sum_stream, sm3_sum_stream, -}; -static digest_output_fn cksum_output_fns[] = { - output_bsd, output_sysv, output_crc, output_file, - output_file, output_file, output_file, output_file, - output_file, output_file, output_file, -}; - -_Bool cksum_debug; - -enum { - IGNORE_MISSING_OPTION = 0x7f + 1, - STATUS_OPTION, - QUIET_OPTION, - STRICT_OPTION, - TAG_OPTION, - UNTAG_OPTION, - DEBUG_PROGRAM_OPTION, -}; - -static struct option const long_options[] = { - - {"length", 1, ((void *)0), 'l'}, - - {"check", 0, ((void *)0), 'c'}, - {"ignore-missing", 0, ((void *)0), IGNORE_MISSING_OPTION}, - {"quiet", 0, ((void *)0), QUIET_OPTION}, - {"status", 0, ((void *)0), STATUS_OPTION}, - {"warn", 0, ((void *)0), 'w'}, - {"strict", 0, ((void *)0), STRICT_OPTION}, - {"tag", 0, ((void *)0), TAG_OPTION}, - {"zero", 0, ((void *)0), 'z'}, - - {"algorithm", 1, ((void *)0), 'a'}, - {"debug", 0, ((void *)0), DEBUG_PROGRAM_OPTION}, - {"untagged", 0, ((void *)0), UNTAG_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - - fputs_unlocked(dcgettext(((void *)0), - "Print or verify checksums.\nBy default use the " - "32 bit CRC algorithm.\n", - 5), - stdout) - - ; - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked(dcgettext(((void *)0), - " -a, --algorithm=TYPE select the digest type " - "to use. See DIGEST below.\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -c, --check read checksums from the " - "FILEs and check them\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " -l, --length=BITS digest length in bits; must not " - "exceed the max for\n the blake2 " - "algorithm and must be a multiple of 8\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " --tag create a BSD-style " - "checksum (the default)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --untagged create a reversed style " - "checksum, without digest type\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -z, --zero end each output line " - "with NUL, not newline,\n " - " and disable file name escaping\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nThe following five options are useful only when verifying " - "checksums:\n --ignore-missing don't fail or report " - "status for missing files\n --quiet don't " - "print OK for each successfully verified file\n " - "--status don't output anything, status code shows " - "success\n --strict exit non-zero for " - "improperly formatted checksum lines\n -w, --warn " - " warn about improperly formatted checksum lines\n\n", - 5), - stdout); - - fputs_unlocked( - dcgettext( - ((void *)0), - " --debug indicate which implementation used\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - - fputs_unlocked( - dcgettext(((void *)0), - "\nDIGEST determines the digest algorithm and default output " - "format:\n sysv (equivalent to sum -s)\n bsd " - "(equivalent to sum -r)\n crc (equivalent to cksum)\n " - " md5 (equivalent to md5sum)\n sha1 (equivalent " - "to sha1sum)\n sha224 (equivalent to sha224sum)\n " - "sha256 (equivalent to sha256sum)\n sha384 " - "(equivalent to sha384sum)\n sha512 (equivalent to " - "sha512sum)\n blake2b (equivalent to b2sum)\n sm3 " - "(only available through cksum)\n\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "When checking, the input should be a former output of this " - "program,\nor equivalent standalone program.\n", - 5), - stdout) - - ; - - emit_ancillary_info("cksum"); - } - - exit(status); -} -static char *filename_unescape(char *s, size_t s_len) { - char *dst = s; - - for (size_t i = 0; i < s_len; i++) { - switch (s[i]) { - case '\\': - if (i == s_len - 1) { - - return ((void *)0); - } - ++i; - switch (s[i]) { - case 'n': - *dst++ = '\n'; - break; - case 'r': - *dst++ = '\r'; - break; - case '\\': - *dst++ = '\\'; - break; - default: - - return ((void *)0); - } - break; - - case '\0': - - return ((void *)0); - - default: - *dst++ = s[i]; - break; - } - } - if (dst < s + s_len) - *dst = '\0'; - - return s; -} - -__attribute__((__pure__)) static _Bool - -hex_digits(unsigned char const *s) { - for (unsigned int i = 0; i < digest_hex_bytes; i++) { - if (!((*__ctype_b_loc())[(int)((*s))] & (unsigned short int)_ISxdigit)) - return 0; - ++s; - } - return *s == '\0'; -} - -static _Bool - -bsd_split_3(char *s, size_t s_len, unsigned char **hex_digest, char **file_name, - _Bool escaped_filename) { - size_t i; - - if (s_len == 0) - return 0; - - i = s_len - 1; - while (i && s[i] != ')') - i--; - - if (s[i] != ')') - return 0; - - *file_name = s; - - if (escaped_filename && filename_unescape(s, i) == ((void *)0)) - return 0; - - s[i++] = '\0'; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - if (s[i] != '=') - return 0; - - i++; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - *hex_digest = (unsigned char *)&s[i]; - - return hex_digits(*hex_digest); -} - -static ptrdiff_t algorithm_from_tag(char *s) { - - static size_t max_tag_len; - if (!max_tag_len) { - char const *const *tag = algorithm_tags; - while (*tag) { - size_t tag_len = strlen(*tag++); - max_tag_len = (((tag_len) > (max_tag_len)) ? (tag_len) : (max_tag_len)); - } - } - - size_t i = 0; - - while (i <= max_tag_len && s[i] && !((s[i]) == ' ' || (s[i]) == '\t') && - s[i] != '-' && s[i] != '(') - ++i; - - if (i > max_tag_len) - return -1; - - char sep = s[i]; - s[i] = '\0'; - ptrdiff_t algo = argmatch_exact(s, algorithm_tags); - s[i] = sep; - - return algo; -} - -static _Bool - -split_3(char *s, size_t s_len, unsigned char **hex_digest, int *binary, - char **file_name) { - - _Bool escaped_filename = 0; - size_t algo_name_len; - - size_t i = 0; - while (((s[i]) == ' ' || (s[i]) == '\t')) - ++i; - - if (s[i] == '\\') { - ++i; - escaped_filename = 1; - } - - if (!algorithm_specified) { - ptrdiff_t algo_tag = algorithm_from_tag(s + i); - if (algo_tag >= 0) { - if (algo_tag <= crc) - return 0; - cksum_algorithm = algo_tag; - } else - return 0; - } - - algo_name_len = strlen(algorithm_tags[cksum_algorithm]); - if ((strncmp(s + i, algorithm_tags[cksum_algorithm], algo_name_len) == 0)) { - i += algo_name_len; - - char const *algo_name = &s[i - algo_name_len]; - - _Bool length_specified = s[i] == '-'; - - _Bool openssl_format = s[i] == '('; - s[i++] = '\0'; - if (!(strcmp(algo_name, algorithm_tags[cksum_algorithm]) == 0)) - return 0; - if (openssl_format) - s[--i] = '('; - - digest_length = algorithm_bits[cksum_algorithm]; - - if (length_specified) { - uintmax_t length; - char *siend; - if (!(xstrtoumax(s + i, &siend, 0, &length, ((void *)0)) == LONGINT_OK && - 0 < length && length <= digest_length && length % 8 == 0)) - return 0; - - i = siend - s; - digest_length = length; - } - digest_hex_bytes = digest_length / 4; - - if (s[i] == ' ') - ++i; - if (s[i] == '(') { - ++i; - *binary = 0; - return bsd_split_3(s + i, s_len - i, hex_digest, file_name, - escaped_filename); - } - return 0; - } - - if (s_len - i < min_digest_line_length + (s[i] == '\\')) - return 0; - - *hex_digest = (unsigned char *)&s[i]; - - if (cksum_algorithm == blake2b) { - - unsigned char const *hp = *hex_digest; - digest_hex_bytes = 0; - while (((*__ctype_b_loc())[(int)((*hp++))] & (unsigned short int)_ISxdigit)) - digest_hex_bytes++; - if (digest_hex_bytes < 2 || digest_hex_bytes % 2 || - 64 * 2 < digest_hex_bytes) - return 0; - digest_length = digest_hex_bytes * 4; - } - - i += digest_hex_bytes; - if (!((s[i]) == ' ' || (s[i]) == '\t')) - return 0; - - s[i++] = '\0'; - - if (!hex_digits(*hex_digest)) - return 0; - - if ((s_len - i == 1) || (s[i] != ' ' && s[i] != '*')) { - - if (bsd_reversed == 0) - return 0; - bsd_reversed = 1; - } else if (bsd_reversed != 1) { - bsd_reversed = 0; - *binary = (s[i++] == '*'); - } - - *file_name = &s[i]; - - if (escaped_filename) - return filename_unescape(&s[i], s_len - i) != ((void *)0); - - return 1; -} - -static void print_filename(char const *file, _Bool escape) { - if (!escape) { - fputs_unlocked(file, stdout); - return; - } - - while (*file) { - switch (*file) { - case '\n': - fputs_unlocked("\\n", stdout); - break; - - case '\r': - fputs_unlocked("\\r", stdout); - break; - - case '\\': - fputs_unlocked("\\\\", stdout); - break; - - default: - putchar_unlocked(*file); - break; - } - file++; - } -} -static _Bool - -digest_file(char const *filename, int *binary, unsigned char *bin_result, - - _Bool *missing, uintmax_t *length) { - FILE *fp; - int err; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - *missing = 0; - - if (is_stdin) { - have_read_stdin = 1; - fp = stdin; - if (0 && *binary) { - if (*binary < 0) - *binary = !isatty(0); - if (*binary) - xset_binary_mode(0, 0); - } - } else { - fp = fopen_safer(filename, (0 && *binary ? "rb" : "r")); - if (fp == ((void *)0)) { - if (ignore_missing && (*__errno_location()) == 2) { - *missing = 1; - return 1; - } - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - } - - fadvise(fp, FADVISE_SEQUENTIAL); - - if (cksum_algorithm == blake2b) - *length = digest_length / 8; - err = cksumfns[cksum_algorithm](fp, bin_result, length); - - err = err ? (*__errno_location()) : 0; - if (is_stdin) - clearerr_unlocked(fp); - else if (rpl_fclose(fp) != 0 && !err) - err = (*__errno_location()); - - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return 1; -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - unsigned char const *bin_buffer = digest; - - _Bool needs_escape = - delim == '\n' && - (strchr(file, '\\') || strchr(file, '\n') || strchr(file, '\r')); - if (needs_escape) - putchar_unlocked('\\'); - - if (tagged) { - fputs_unlocked(algorithm_tags[cksum_algorithm], stdout); - - if (cksum_algorithm == blake2b) { - if (digest_length < 64 * 8) - printf("-%" - "l" - "u", - digest_length); - } - - fputs_unlocked(" (", stdout); - print_filename(file, needs_escape); - fputs_unlocked(") = ", stdout); - } - - for (size_t i = 0; i < (digest_hex_bytes / 2); ++i) - printf("%02x", bin_buffer[i]); - - if (!tagged) { - putchar_unlocked(' '); - - putchar_unlocked(' '); - - print_filename(file, needs_escape); - } - - putchar_unlocked(delim); -} - -static _Bool - -digest_check(char const *checkfile_name) { - FILE *checkfile_stream; - uintmax_t n_misformatted_lines = 0; - uintmax_t n_improperly_formatted_lines = 0; - uintmax_t n_mismatched_checksums = 0; - uintmax_t n_open_or_read_failures = 0; - - _Bool properly_formatted_lines = 0; - - _Bool matched_checksums = 0; - unsigned char bin_buffer_unaligned[(512 / 8) + 8]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 8); - uintmax_t line_number; - char *line; - size_t line_chars_allocated; - - _Bool is_stdin = (strcmp(checkfile_name, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - checkfile_name = dcgettext(((void *)0), "standard input", 5); - checkfile_stream = stdin; - } else { - checkfile_stream = fopen_safer(checkfile_name, "r"); - if (checkfile_stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - return 0; - } - } - - line_number = 0; - line = ((void *)0); - line_chars_allocated = 0; - do { - char *filename; - int binary; - unsigned char *hex_digest; - ssize_t line_length; - - ++line_number; - if (line_number == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum " - "lines\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, checkfile_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - line_length = getline(&line, &line_chars_allocated, checkfile_stream); - if (line_length <= 0) - break; - - if (line[0] == ' continue; - - - line_length -= line[line_length - 1] == '\n'; - - line_length -= line[line_length - (0 < line_length)] == '\r'; - - - if (line_length == 0) - continue; - - line[line_length] = '\0'; - - if (! (split_3 (line, line_length, &hex_digest, &binary, &filename) - && ! (is_stdin && (strcmp (filename, "-") == 0)))) - { - ++n_misformatted_lines; - - if (warn) { - error(0, 0, - - dcgettext(((void *)0), - "%s: %" - "l" - "u" - ": improperly formatted %s checksum line", - 5) - - , - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name), - line_number, algorithm_tags[cksum_algorithm]); - } - - ++n_improperly_formatted_lines; - } - else - { - static const char bin2hex[] = {'0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; - - _Bool ok; - - _Bool missing; - - _Bool needs_escape = !status_only && strchr(filename, '\n'); - - properly_formatted_lines = 1; - - uintmax_t length; - ok = digest_file(filename, &binary, bin_buffer, &missing, &length); - - if (!ok) { - ++n_open_or_read_failures; - if (!status_only) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - printf(": %s\n", dcgettext(((void *)0), "FAILED open or read", 5)); - } - } else if (ignore_missing && missing) { - - ; - } else { - size_t digest_bin_bytes = digest_hex_bytes / 2; - size_t cnt; - - for (cnt = 0; cnt < digest_bin_bytes; ++cnt) { - if ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt])) { - int __c = (hex_digest[2 * cnt]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt]); - } else - __res = (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt])]; - __res; - })) - - != bin2hex[bin_buffer[cnt] >> 4] || - ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt + 1]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt + 1])) { - int __c = (hex_digest[2 * cnt + 1]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt + 1]); - } else - __res = - (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt + 1])]; - __res; - })) - - != (bin2hex[bin_buffer[cnt] & 0xf]))) - break; - } - if (cnt != digest_bin_bytes) - ++n_mismatched_checksums; - else - matched_checksums = 1; - - if (!status_only) { - if (cnt != digest_bin_bytes || !quiet) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - } - - if (cnt != digest_bin_bytes) - printf(": %s\n", dcgettext(((void *)0), "FAILED", 5)); - else if (!quiet) - printf(": %s\n", dcgettext(((void *)0), "OK", 5)); - } - } - } - } while (!feof_unlocked(checkfile_stream) && - !ferror_unlocked(checkfile_stream)); - - free(line); - - int err = ferror_unlocked(checkfile_stream) ? 0 : -1; - if (is_stdin) - clearerr_unlocked(checkfile_stream); - else if (rpl_fclose(checkfile_stream) != 0 && err < 0) - err = (*__errno_location()); - - if (0 <= err) { - error( - 0, err, err ? "%s" : dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - return 0; - } - - if (!properly_formatted_lines) { - - error( - 0, 0, - dcgettext(((void *)0), "%s: no properly formatted checksum lines found", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - } else { - if (!status_only) { - if (n_misformatted_lines != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " line is improperly formatted", - "WARNING: %" - "l" - "u" - " lines are improperly formatted", - select_plural(n_misformatted_lines), 5) - - ), - n_misformatted_lines); - - if (n_open_or_read_failures != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " listed file could not be read", - "WARNING: %" - "l" - "u" - " listed files could not be read", - select_plural(n_open_or_read_failures), 5) - - ), - n_open_or_read_failures); - - if (n_mismatched_checksums != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " computed checksum did NOT match", - "WARNING: %" - "l" - "u" - " computed checksums did NOT match", - select_plural(n_mismatched_checksums), 5) - - ), - n_mismatched_checksums); - - if (ignore_missing && !matched_checksums) - error(0, 0, dcgettext(((void *)0), "%s: no file was verified", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - } - } - - return (properly_formatted_lines && matched_checksums && - n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && - (!strict || n_improperly_formatted_lines == 0)); -} - -int main(int argc, char **argv) { - unsigned char bin_buffer_unaligned[(512 / 8) + 8]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 8); - - _Bool do_check = 0; - int opt; - - _Bool ok = 1; - - int binary = 1; - - _Bool prefix_tag = 1; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - setvbuf(stdout, ((void *)0), 1, 0); - - char const *short_opts = "a:l:bctwz"; - char const *digest_length_str = ""; - - while ((opt = getopt_long(argc, argv, short_opts, long_options, - ((void *)0))) != -1) - switch (opt) { - - case 'a': - cksum_algorithm = ((algorithm_types)[__xargmatch_internal( - "--algorithm", optarg, algorithm_args, - (void const *)(algorithm_types), sizeof *(algorithm_types), - argmatch_die, 0)]); - algorithm_specified = 1; - break; - - case DEBUG_PROGRAM_OPTION: - cksum_debug = 1; - break; - - case 'l': - digest_length = - xdectoumax(optarg, 0, (18446744073709551615UL), "", - - dcgettext(((void *)0), "invalid length", 5), 0); - digest_length_str = optarg; - if (digest_length % 8 != 0) { - error(0, 0, dcgettext(((void *)0), "invalid length: %s", 5), - quote(digest_length_str)); - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"length is " - "not a multiple of 8\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "length is not a multiple of 8", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "length is not a multiple of 8", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - break; - - case 'c': - do_check = 1; - break; - case STATUS_OPTION: - status_only = 1; - warn = 0; - quiet = 0; - break; - case 'w': - status_only = 0; - warn = 1; - quiet = 0; - break; - case IGNORE_MISSING_OPTION: - ignore_missing = 1; - break; - case QUIET_OPTION: - status_only = 0; - warn = 0; - quiet = 1; - break; - case STRICT_OPTION: - strict = 1; - break; - - case UNTAG_OPTION: - prefix_tag = 0; - break; - - case TAG_OPTION: - prefix_tag = 1; - binary = 1; - break; - case 'z': - digest_delim = '\0'; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "cksum", "GNU coreutils", Version, ("Padraig Brady"), - ("Q. Frank Xia"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - min_digest_line_length = 3; - - if (digest_length && cksum_algorithm != blake2b) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"--length is only " - "supported with --algorithm=blake2b\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "--length is only supported with --algorithm=blake2b", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "--length is only supported with --algorithm=blake2b", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (digest_length > 64 * 8) { - error(0, 0, dcgettext(((void *)0), "invalid length: %s", 5), - quote(digest_length_str)); - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"maximum digest length " - "for %s is %d bits\", 5), quote " - "(algorithm_tags[cksum_algorithm]), 64 * 8), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "maximum digest length for %s is %d bits", 5), - quote(algorithm_tags[cksum_algorithm]), 64 * 8), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "maximum digest length for %s is %d bits", 5), - quote(algorithm_tags[cksum_algorithm]), 64 * 8), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - if (digest_length == 0) { - - digest_length = algorithm_bits[cksum_algorithm]; - } - digest_hex_bytes = digest_length / 4; - - switch (cksum_algorithm) { - case bsd: - case sysv: - case crc: - if (do_check && algorithm_specified) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"--check is not supported " - "with --algorithm={bsd,sysv,crc}\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "--check is not supported with " - "--algorithm={bsd,sysv,crc}", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "--check is not supported with " - "--algorithm={bsd,sysv,crc}", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - break; - default: - break; - } - - if (prefix_tag && !binary) { - - error(0, 0, - dcgettext(((void *)0), "--tag does not support --text mode", 5)); - usage(1); - } - - if (digest_delim != '\n' && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --zero option is not supported when " - "verifying checksums", - 5) - - ); - usage(1); - } - if (ignore_missing && !do_check) { - error(0, 0, - - dcgettext(((void *)0), - "the --ignore-missing option is meaningful only when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (status_only && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --status option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (warn && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --warn option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (quiet && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --quiet option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (strict & !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --strict option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (!0 && binary < 0) - binary = 0; - - char **operand_lim = argv + argc; - if (optind == argc) - *operand_lim++ = bad_cast("-"); - - for (char **operandp = argv + optind; operandp < operand_lim; operandp++) { - char *file = *operandp; - if (do_check) - ok &= digest_check(file); - else { - int binary_file = binary; - - _Bool missing; - uintmax_t length; - - if (!digest_file(file, &binary_file, bin_buffer, &missing, &length)) - ok = 0; - else { - cksum_output_fns[cksum_algorithm](file, binary_file, bin_buffer, - prefix_tag, digest_delim, - optind != argc, length); - } - } - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/cksum-sum.c b/tests/source/coreutils/cksum-sum.c deleted file mode 100644 index 8ed8989..0000000 --- a/tests/source/coreutils/cksum-sum.c +++ /dev/null @@ -1,6953 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -enum { - - human_ceiling = 0, - - human_round_to_nearest = 1, - - human_floor = 2, - - human_group_digits = 4, - - human_suppress_point_zero = 8, - - human_autoscale = 16, - - human_base_1024 = 32, - - human_space_before_unit = 64, - - human_SI = 128, - - human_B = 256 -}; - -char *human_readable(uintmax_t, char *, int, uintmax_t, uintmax_t); - -enum strtol_error human_options(char const *, int *, uintmax_t *); -extern int bsd_sum_stream(FILE *stream, void *resstream, uintmax_t *length); - -extern int sysv_sum_stream(FILE *stream, void *resstream, uintmax_t *length); - -typedef int (*sumfn)(FILE *, void *, uintmax_t *); - -extern void output_bsd(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -extern void output_sysv(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -int bsd_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - int ret = -1; - size_t sum, n; - int checksum = 0; - uintmax_t total_bytes = 0; - static const size_t buffer_length = 32768; - uint8_t *buffer = malloc(buffer_length); - - if (!buffer) - return -1; - - while (1) { - sum = 0; - - while (1) { - n = fread_unlocked(buffer + sum, 1, buffer_length - sum, stream); - sum += n; - - if (buffer_length == sum) - break; - - if (n == 0) { - if (ferror_unlocked(stream)) - goto cleanup_buffer; - goto final_process; - } - - if (feof_unlocked(stream)) - goto final_process; - } - - for (size_t i = 0; i < sum; i++) { - checksum = (checksum >> 1) + ((checksum & 1) << 15); - checksum += buffer[i]; - checksum &= 0xffff; - } - if (total_bytes + sum < total_bytes) { - - (*__errno_location()) = 75; - goto cleanup_buffer; - } - total_bytes += sum; - } - -final_process:; - - for (size_t i = 0; i < sum; i++) { - checksum = (checksum >> 1) + ((checksum & 1) << 15); - checksum += buffer[i]; - checksum &= 0xffff; - } - if (total_bytes + sum < total_bytes) { - - (*__errno_location()) = 75; - goto cleanup_buffer; - } - total_bytes += sum; - - memcpy(resstream, &checksum, sizeof checksum); - *length = total_bytes; - ret = 0; -cleanup_buffer: - free(buffer); - return ret; -} - -int sysv_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - int ret = -1; - size_t sum, n; - uintmax_t total_bytes = 0; - static const size_t buffer_length = 32768; - uint8_t *buffer = malloc(buffer_length); - - if (!buffer) - return -1; - - unsigned int s = 0; - - while (1) { - sum = 0; - - while (1) { - n = fread_unlocked(buffer + sum, 1, buffer_length - sum, stream); - sum += n; - - if (buffer_length == sum) - break; - - if (n == 0) { - if (ferror_unlocked(stream)) - goto cleanup_buffer; - goto final_process; - } - - if (feof_unlocked(stream)) - goto final_process; - } - - for (size_t i = 0; i < sum; i++) - s += buffer[i]; - if (total_bytes + sum < total_bytes) { - - (*__errno_location()) = 75; - goto cleanup_buffer; - } - total_bytes += sum; - } - -final_process:; - - for (size_t i = 0; i < sum; i++) - s += buffer[i]; - if (total_bytes + sum < total_bytes) { - - (*__errno_location()) = 75; - goto cleanup_buffer; - } - total_bytes += sum; - - int r = (s & 0xffff) + ((s & 0xffffffff) >> 16); - int checksum = (r & 0xffff) + (r >> 16); - - memcpy(resstream, &checksum, sizeof checksum); - *length = total_bytes; - ret = 0; -cleanup_buffer: - free(buffer); - return ret; -} - -void output_bsd(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - - char hbuf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 1]; - printf("%05d %5s", *(int *)digest, - human_readable(length, hbuf, human_ceiling, 1, 1024)); - if (args) - printf(" %s", file); - putchar_unlocked(delim); -} - -void output_sysv(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - - char hbuf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 1]; - printf("%d %s", *(int *)digest, - human_readable(length, hbuf, human_ceiling, 1, 512)); - if (args) - printf(" %s", file); - putchar_unlocked(delim); -} diff --git a/tests/source/coreutils/comm.c b/tests/source/coreutils/comm.c deleted file mode 100644 index 7d2122b..0000000 --- a/tests/source/coreutils/comm.c +++ /dev/null @@ -1,7364 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -struct linebuffer { - idx_t size; - idx_t length; - char *buffer; -}; - -void initbuffer(struct linebuffer *linebuffer); - -struct linebuffer *readlinebuffer_delim(struct linebuffer *linebuffer, - FILE *stream, char delimiter); - -struct linebuffer *readlinebuffer(struct linebuffer *linebuffer, FILE *stream); - -void freebuffer(struct linebuffer *); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); -extern _Bool hard_locale(int category); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); -extern int memcmp2(const char *s1, size_t n1, const char *s2, size_t n2) - __attribute__((__pure__)); - -int xmemcoll(char *__restrict__, size_t, char *__restrict__, size_t); -int xmemcoll0(char const *, size_t, char const *, size_t); -static _Bool hard_LC_COLLATE; - -static _Bool only_file_1; - -static _Bool only_file_2; - -static _Bool both; - -static _Bool seen_unpairable; - -static _Bool issued_disorder_warning[2]; - -static unsigned char delim = '\n'; - -static _Bool total_option; - -static enum { - CHECK_ORDER_DEFAULT, - CHECK_ORDER_ENABLED, - CHECK_ORDER_DISABLED -} check_input_order; - -static char const *col_sep = "\t"; -static size_t col_sep_len = 0; - -enum { - CHECK_ORDER_OPTION = 0x7f + 1, - NOCHECK_ORDER_OPTION, - OUTPUT_DELIMITER_OPTION, - TOTAL_OPTION -}; - -static struct option const long_options[] = { - {"check-order", 0, ((void *)0), CHECK_ORDER_OPTION}, - {"nocheck-order", 0, ((void *)0), NOCHECK_ORDER_OPTION}, - {"output-delimiter", 1, ((void *)0), OUTPUT_DELIMITER_OPTION}, - {"total", 0, ((void *)0), TOTAL_OPTION}, - {"zero-terminated", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... FILE1 FILE2\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Compare sorted files FILE1 and FILE2 line by line.\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nWhen FILE1 or FILE2 (not both) is -, read standard input.\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no options, produce three-column output. Column one " - "contains\nlines unique to FILE1, column two contains lines " - "unique to FILE2,\nand column three contains lines common to " - "both files.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n -1 suppress column 1 (lines unique " - "to FILE1)\n -2 suppress column 2 " - "(lines unique to FILE2)\n -3 suppress " - "column 3 (lines that appear in both files)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n --check-order check that the input is " - "correctly sorted, even\n if all " - "input lines are pairable\n --nocheck-order do not " - "check that the input is correctly sorted\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --output-delimiter=STR separate columns with STR\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --total output a summary\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero-terminated line delimiter is NUL, not newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nNote, comparisons honor the rules specified by 'LC_COLLATE'.\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - "\nExamples:\n %s -12 file1 file2 Print only lines " - "present in both file1 and file2.\n %s -3 file1 file2 " - "Print lines in file1 not in file2, and vice versa.\n", - 5) - - , - program_name, program_name); - emit_ancillary_info("comm"); - } - exit(status); -} - -static void writeline(struct linebuffer const *line, FILE *stream, int class) { - switch (class) { - case 1: - if (!only_file_1) - return; - break; - - case 2: - if (!only_file_2) - return; - if (only_file_1) - fwrite_unlocked(col_sep, 1, col_sep_len, stream); - break; - - case 3: - if (!both) - return; - if (only_file_1) - fwrite_unlocked(col_sep, 1, col_sep_len, stream); - if (only_file_2) - fwrite_unlocked(col_sep, 1, col_sep_len, stream); - break; - } - - fwrite_unlocked(line->buffer, sizeof(char), line->length, stream); -} -static void check_order(struct linebuffer const *prev, - struct linebuffer const *current, int whatfile) { - - if (check_input_order != CHECK_ORDER_DISABLED && - ((check_input_order == CHECK_ORDER_ENABLED) || seen_unpairable)) { - if (!issued_disorder_warning[whatfile - 1]) { - int order; - - if (hard_LC_COLLATE) - order = xmemcoll(prev->buffer, prev->length - 1, current->buffer, - current->length - 1); - else - order = memcmp2(prev->buffer, prev->length - 1, current->buffer, - current->length - 1); - - if (0 < order) { - error((check_input_order == CHECK_ORDER_ENABLED ? 1 : 0), 0, - dcgettext(((void *)0), "file %d is not in sorted order", 5), - whatfile); - - issued_disorder_warning[whatfile - 1] = 1; - } - } - } -} - -static _Noreturn void compare_files(char **infiles) { - - struct linebuffer lba[2][4]; - - struct linebuffer *thisline[2]; - - struct linebuffer *all_line[2][4]; - - int alt[2][3]; - - FILE *streams[2]; - - uintmax_t total[] = {0, 0, 0}; - - int i, j; - - for (i = 0; i < 2; i++) { - for (j = 0; j < 4; j++) { - initbuffer(&lba[i][j]); - all_line[i][j] = &lba[i][j]; - } - alt[i][0] = 0; - alt[i][1] = 0; - alt[i][2] = 0; - streams[i] = - ((strcmp(infiles[i], "-") == 0) ? stdin : fopen_safer(infiles[i], "r")); - if (!streams[i]) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infiles[i])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infiles[i])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infiles[i])), - ((0) ? (void)0 : __builtin_unreachable())))); - - fadvise(streams[i], FADVISE_SEQUENTIAL); - - thisline[i] = - readlinebuffer_delim(all_line[i][alt[i][0]], streams[i], delim); - if (ferror_unlocked(streams[i])) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infiles[i])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infiles[i])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infiles[i])), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - while (thisline[0] || thisline[1]) { - int order; - - _Bool fill_up[2] = {0, 0}; - - if (!thisline[0]) - order = 1; - else if (!thisline[1]) - order = -1; - else { - if (hard_LC_COLLATE) - order = xmemcoll(thisline[0]->buffer, thisline[0]->length - 1, - thisline[1]->buffer, thisline[1]->length - 1); - else { - size_t len = ((thisline[0]->length) < (thisline[1]->length) - ? (thisline[0]->length) - : (thisline[1]->length)) - - 1; - order = memcmp(thisline[0]->buffer, thisline[1]->buffer, len); - if (order == 0) - order = (thisline[0]->length < thisline[1]->length - ? -1 - : thisline[0]->length != thisline[1]->length); - } - } - - if (order == 0) { - - total[2]++; - writeline(thisline[1], stdout, 3); - } else { - seen_unpairable = 1; - if (order <= 0) { - - total[0]++; - writeline(thisline[0], stdout, 1); - } else { - - total[1]++; - writeline(thisline[1], stdout, 2); - } - } - - if (0 <= order) - fill_up[1] = 1; - if (order <= 0) - fill_up[0] = 1; - - for (i = 0; i < 2; i++) - if (fill_up[i]) { - - alt[i][2] = alt[i][1]; - alt[i][1] = alt[i][0]; - alt[i][0] = (alt[i][0] + 1) & 0x03; - - thisline[i] = - readlinebuffer_delim(all_line[i][alt[i][0]], streams[i], delim); - - if (thisline[i]) - check_order(all_line[i][alt[i][1]], thisline[i], i + 1); - - else if (all_line[i][alt[i][2]]->buffer) - check_order(all_line[i][alt[i][2]], all_line[i][alt[i][1]], i + 1); - - if (ferror_unlocked(streams[i])) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "infiles[i])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infiles[i])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infiles[i])), - ((0) ? (void)0 : __builtin_unreachable())))); - - fill_up[i] = 0; - } - } - - for (i = 0; i < 2; i++) - if (rpl_fclose(streams[i]) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infiles[i])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infiles[i])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infiles[i])), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (total_option) { - - char buf1[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - char buf2[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - char buf3[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - printf("%s%s%s%s%s%s%s%c", umaxtostr(total[0], buf1), col_sep, - umaxtostr(total[1], buf2), col_sep, umaxtostr(total[2], buf3), - col_sep, - - dcgettext(((void *)0), "total", 5), delim); - } - - if (issued_disorder_warning[0] || issued_disorder_warning[1]) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"input is not " - "in sorted order\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "input is not in sorted order", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "input is not in sorted order", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - exit(0); -} - -int main(int argc, char **argv) { - int c; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - hard_LC_COLLATE = hard_locale(3); - - atexit(close_stdout); - - only_file_1 = 1; - only_file_2 = 1; - both = 1; - - seen_unpairable = 0; - issued_disorder_warning[0] = issued_disorder_warning[1] = 0; - check_input_order = CHECK_ORDER_DEFAULT; - total_option = 0; - - while ((c = getopt_long(argc, argv, "123z", long_options, ((void *)0))) != -1) - switch (c) { - case '1': - only_file_1 = 0; - break; - - case '2': - only_file_2 = 0; - break; - - case '3': - both = 0; - break; - - case 'z': - delim = '\0'; - break; - - case NOCHECK_ORDER_OPTION: - check_input_order = CHECK_ORDER_DISABLED; - break; - - case CHECK_ORDER_OPTION: - check_input_order = CHECK_ORDER_ENABLED; - break; - - case OUTPUT_DELIMITER_OPTION: - if (col_sep_len && !(strcmp(col_sep, optarg) == 0)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "output delimiters specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "multiple output delimiters specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "multiple output delimiters specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - col_sep = optarg; - col_sep_len = *optarg ? strlen(optarg) : 1; - break; - - case TOTAL_OPTION: - total_option = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "comm", "GNU coreutils", Version, - ("Richard M. Stallman"), ("David MacKenzie"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - - if (!col_sep_len) - col_sep_len = 1; - - if (argc - optind < 2) { - if (argc <= optind) - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - else - error(0, 0, dcgettext(((void *)0), "missing operand after %s", 5), - quote(argv[argc - 1])); - usage(1); - } - - if (2 < argc - optind) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 2])); - usage(1); - } - - compare_files(argv + optind); -} diff --git a/tests/source/coreutils/copy.c b/tests/source/coreutils/copy.c deleted file mode 100644 index 3a7bdba..0000000 --- a/tests/source/coreutils/copy.c +++ /dev/null @@ -1,10183 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct winsize { - unsigned short int ws_row; - unsigned short int ws_col; - unsigned short int ws_xpixel; - unsigned short int ws_ypixel; -}; - -struct termio { - unsigned short int c_iflag; - unsigned short int c_oflag; - unsigned short int c_cflag; - unsigned short int c_lflag; - unsigned char c_line; - unsigned char c_cc[8]; -}; - -extern int ioctl(int __fd, unsigned long int __request, ...) - __attribute__((__nothrow__, __leaf__)); - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -_Bool acl_errno_valid(int) __attribute__((__const__)); -int file_has_acl(char const *, struct stat const *); -int qset_acl(char const *, int, mode_t); -int set_acl(char const *, int, mode_t); -int qcopy_acl(char const *, int, char const *, int, mode_t); -int copy_acl(char const *, int, char const *, int, mode_t); -int chmod_or_fchmod(char const *, int, mode_t); - -inline void alignfree(void *ptr) { free(ptr); } - -inline __attribute__((__malloc__)) __attribute__((__alloc_size__(2))) - -void * -alignalloc(idx_t alignment, idx_t size) { - if ((size_t)-1 < alignment) - alignment = (size_t)-1; - if ((size_t)-1 < size) - size = (size_t)-1; - - return aligned_alloc(alignment, size); -} -void *xalignalloc(idx_t, idx_t) __attribute__((__malloc__)) -__attribute__((__alloc_size__(2))) __attribute__((__returns_nonnull__)); - -enum backup_type { - - no_backups, - - simple_backups, - - numbered_existing_backups, - - numbered_backups -}; - -extern char const *simple_backup_suffix; - -void set_simple_backup_suffix(char const *); -char *backup_file_rename(int, char const *, enum backup_type) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -char *find_backup_file_name(int, char const *, enum backup_type) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -enum backup_type get_version(char const *context, char const *arg); -enum backup_type xget_version(char const *context, char const *arg); -size_t buffer_lcm(size_t, size_t, size_t) __attribute__((__const__)); - -enum canonicalize_mode_t { - - CAN_EXISTING = 0, - - CAN_ALL_BUT_LAST = 1, - - CAN_MISSING = 2, - - CAN_NOLINKS = 4 -}; -typedef enum canonicalize_mode_t canonicalize_mode_t; -char *canonicalize_filename_mode(const char *, canonicalize_mode_t) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); - -struct selabel_handle; - -enum Sparse_type { - SPARSE_UNUSED, - - SPARSE_NEVER, - - SPARSE_AUTO, - - SPARSE_ALWAYS -}; - -enum Reflink_type { - - REFLINK_NEVER, - - REFLINK_AUTO, - - REFLINK_ALWAYS -}; - -enum Interactive { I_ALWAYS_YES = 1, I_ALWAYS_NO, I_ASK_USER, I_UNSPECIFIED }; - -enum Dereference_symlink { - DEREF_UNDEFINED = 1, - - DEREF_NEVER, - - DEREF_COMMAND_LINE_ARGUMENTS, - - DEREF_ALWAYS -}; -struct cp_options { - enum backup_type backup_type; - - enum Dereference_symlink dereference; - - enum Interactive interactive; - - enum Sparse_type sparse_mode; - - mode_t mode; - - _Bool copy_as_regular; - - _Bool unlink_dest_before_opening; - - _Bool unlink_dest_after_failed_open; - - _Bool hard_link; - - _Bool move_mode; - - _Bool install_mode; - - _Bool chown_privileges; - - _Bool owner_privileges; - - _Bool one_file_system; - - _Bool preserve_ownership; - - _Bool preserve_mode; - - _Bool preserve_timestamps; - - _Bool explicit_no_preserve_mode; - - struct selabel_handle *set_security_context; - - _Bool preserve_links; - - _Bool data_copy_required; - - _Bool require_preserve; - - _Bool preserve_security_context; - - _Bool require_preserve_context; - - _Bool preserve_xattr; - - _Bool require_preserve_xattr; - - _Bool reduce_diagnostics; - - _Bool recursive; - - _Bool set_mode; - - _Bool symbolic_link; - - _Bool update; - - _Bool verbose; - - _Bool stdin_tty; - - _Bool open_dangling_dest_symlink; - - _Bool last_file; - - int rename_errno; - - enum Reflink_type reflink_mode; - Hash_table *dest_info; - - Hash_table *src_info; -}; - -_Bool copy(char const *src_name, char const *dst_name, int dst_dirfd, - char const *dst_relname, int nonexistent_dst, - const struct cp_options *options, - - _Bool *copy_into_self, _Bool *rename_succeeded) - __attribute__((__nonnull__(1, 2, 4, 6, 7))); - -extern _Bool set_process_security_ctx(char const *src_name, - char const *dst_name, mode_t mode, - _Bool new_dst, const struct cp_options *x) - __attribute__((__nonnull__)); - -extern _Bool set_file_security_ctx(char const *dst_name, - - _Bool recurse, const struct cp_options *x) - __attribute__((__nonnull__)); - -void dest_info_init(struct cp_options *) __attribute__((__nonnull__)); -void dest_info_free(struct cp_options *) __attribute__((__nonnull__)); -void src_info_init(struct cp_options *) __attribute__((__nonnull__)); -void src_info_free(struct cp_options *) __attribute__((__nonnull__)); - -void cp_options_default(struct cp_options *) __attribute__((__nonnull__)); - -_Bool chown_failure_ok(struct cp_options const *) __attribute__((__nonnull__)) -__attribute__((__pure__)); -mode_t cached_umask(void); -void hash_init(void); -void forget_created(ino_t ino, dev_t dev); -char *remember_copied(char const *node, ino_t ino, dev_t dev) - __attribute__((__nonnull__)); -char *src_to_dest_lookup(ino_t ino, dev_t dev); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -int open_safer(char const *, int, ...); -int creat_safer(char const *, mode_t); - -int openat_safer(int, char const *, int, ...); - -extern void record_file(Hash_table *ht, char const *file, - struct stat const *stats) - - __attribute__((__nonnull__(2, 3))) - - ; - -extern _Bool seen_file(Hash_table const *ht, char const *file, - struct stat const *stats); - -extern void strmode(mode_t mode, char *str); - -extern void filemodestring(struct stat const *statp, char *str); - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -extern int force_linkat(int, char const *, int, char const *, int, _Bool, int) - __attribute__((__nonnull__)); -extern int force_symlinkat(char const *, int, char const *, _Bool, int) - __attribute__((__nonnull__)); -extern size_t full_write(int fd, const void *buf, size_t count); - -struct F_triple { - char *name; - ino_t st_ino; - dev_t st_dev; -}; - -extern size_t triple_hash(void const *x, size_t table_size) - __attribute__((__pure__)); -extern _Bool triple_compare_ino_str(void const *x, void const *y) - __attribute__((__pure__)); -extern void triple_free(void *x); - -extern size_t triple_hash_no_name(void const *x, size_t table_size) - __attribute__((__pure__)); -extern _Bool triple_compare(void const *x, void const *y); -enum { IO_BUFSIZE = 128 * 1024 }; -static inline idx_t io_blksize(struct stat sb) { - - return (((((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) / - 2 + - 1) < ((((IO_BUFSIZE) > (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))) - ? (IO_BUFSIZE) - : (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))))) - ? (((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) / - 2 + - 1) - : ((((IO_BUFSIZE) > (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))) - ? (IO_BUFSIZE) - : (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))))) - - ; -} - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -extern int renameatu(int, char const *, int, char const *, unsigned int); - -_Bool same_name(const char *source, const char *dest); - -_Bool same_nameat(int, char const *, int, char const *); - -enum savedir_option { - SAVEDIR_SORT_NONE, - SAVEDIR_SORT_NAME, - - SAVEDIR_SORT_INODE, - SAVEDIR_SORT_FASTREAD = SAVEDIR_SORT_INODE - -}; - -char *streamsavedir(DIR *, enum savedir_option) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -char *savedir(char const *, enum savedir_option) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -enum { - - UTIMECMP_TRUNCATE_SOURCE = 1 -}; - -int utimecmp(char const *, struct stat const *, struct stat const *, int); -int utimecmpat(int, char const *, struct stat const *, struct stat const *, - int); - -int fdutimens(int, char const *, struct timespec const[2]); -int utimens(char const *, struct timespec const[2]); -int lutimens(char const *, struct timespec const[2]); - -int fdutimensat(int fd, int dir, char const *name, struct timespec const[2], - int atflag); - -inline int lutimensat(int dir, char const *file, - struct timespec const times[2]) { - return utimensat(dir, file, times, 0x100); -} - -_Bool can_write_any_file(void); - -extern char *areadlink(char const *filename) - __attribute__((__malloc__(free, 1))); -extern char *areadlink_with_size(char const *filename, size_t size_hint) - __attribute__((__malloc__(free, 1))); - -extern char *areadlinkat(int fd, char const *filename) - __attribute__((__malloc__(free, 1))); - -extern char *areadlinkat_with_size(int fd, char const *filename, - size_t size_hint) - __attribute__((__malloc__(free, 1))); - -_Bool yesno(void); -struct selabel_handle; - -static inline _Bool - -ignorable_ctx_err(int err) { - return err == 95 || err == 61; -} - -extern _Bool - -restorecon(struct selabel_handle *selabel_handle, char const *path, - _Bool recurse); -extern int defaultcon(struct selabel_handle *selabel_handle, char const *path, - mode_t mode); - -struct error_context { - - void (*error)(struct error_context *, const char *, ...); - - const char *(*quote)(struct error_context *, const char *); - - void (*quote_free)(struct error_context *, const char *); -}; -struct error_context; - -extern int attr_copy_file(const char *, const char *, - int (*)(const char *, struct error_context *), - struct error_context *); -extern int attr_copy_fd(const char *, int, const char *, int, - int (*)(const char *, struct error_context *), - struct error_context *); - -extern int attr_copy_check_permissions(const char *, struct error_context *); - -extern int attr_copy_action(const char *, struct error_context *); - -extern void verror(int __status, int __errnum, const char *__format, - va_list __args) - __attribute__((__format__(__gnu_printf__, 3, 0))); -extern void verror_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, - va_list __args) - __attribute__((__format__(__gnu_printf__, 5, 0))); - -struct fscrypt_policy_v1 { - __u8 version; - __u8 contents_encryption_mode; - __u8 filenames_encryption_mode; - __u8 flags; - __u8 master_key_descriptor[8]; -}; -struct fscrypt_key { - __u32 mode; - __u8 raw[64]; - __u32 size; -}; - -struct fscrypt_policy_v2 { - __u8 version; - __u8 contents_encryption_mode; - __u8 filenames_encryption_mode; - __u8 flags; - __u8 __reserved[4]; - __u8 master_key_identifier[16]; -}; - -struct fscrypt_get_policy_ex_arg { - __u64 policy_size; - union { - __u8 version; - struct fscrypt_policy_v1 v1; - struct fscrypt_policy_v2 v2; - } policy; -}; -struct fscrypt_key_specifier { - __u32 type; - __u32 __reserved; - union { - __u8 __reserved[32]; - __u8 descriptor[8]; - __u8 identifier[16]; - } u; -}; - -struct fscrypt_provisioning_key_payload { - __u32 type; - __u32 __reserved; - __u8 raw[]; -}; - -struct fscrypt_add_key_arg { - struct fscrypt_key_specifier key_spec; - __u32 raw_size; - __u32 key_id; - __u32 __reserved[8]; - __u8 raw[]; -}; - -struct fscrypt_remove_key_arg { - struct fscrypt_key_specifier key_spec; - - __u32 removal_status_flags; - __u32 __reserved[5]; -}; - -struct fscrypt_get_key_status_arg { - - struct fscrypt_key_specifier key_spec; - __u32 __reserved[6]; - - __u32 status; - - __u32 status_flags; - __u32 user_count; - __u32 __out_reserved[13]; -}; - -enum fsconfig_command { - FSCONFIG_SET_FLAG = 0, - FSCONFIG_SET_STRING = 1, - FSCONFIG_SET_BINARY = 2, - FSCONFIG_SET_PATH = 3, - FSCONFIG_SET_PATH_EMPTY = 4, - FSCONFIG_SET_FD = 5, - FSCONFIG_CMD_CREATE = 6, - FSCONFIG_CMD_RECONFIGURE = 7, -}; -struct mount_attr { - __u64 attr_set; - __u64 attr_clr; - __u64 propagation; - __u64 userns_fd; -}; -struct file_clone_range { - __s64 src_fd; - __u64 src_offset; - __u64 src_length; - __u64 dest_offset; -}; - -struct fstrim_range { - __u64 start; - __u64 len; - __u64 minlen; -}; - -struct file_dedupe_range_info { - __s64 dest_fd; - __u64 dest_offset; - __u64 bytes_deduped; - - __s32 status; - __u32 reserved; -}; - -struct file_dedupe_range { - __u64 src_offset; - __u64 src_length; - __u16 dest_count; - __u16 reserved1; - __u32 reserved2; - struct file_dedupe_range_info info[0]; -}; - -struct files_stat_struct { - unsigned long nr_files; - unsigned long nr_free_files; - unsigned long max_files; -}; - -struct inodes_stat_t { - long nr_inodes; - long nr_unused; - long dummy[5]; -}; - -struct fsxattr { - __u32 fsx_xflags; - __u32 fsx_extsize; - __u32 fsx_nextents; - __u32 fsx_projid; - __u32 fsx_cowextsize; - unsigned char fsx_pad[8]; -}; -typedef int __kernel_rwf_t; - -struct dir_list { - struct dir_list *parent; - ino_t ino; - dev_t dev; -}; - -static _Bool copy_internal(char const *src_name, char const *dst_name, - int dst_dirfd, char const *dst_relname, - int nonexistent_dst, struct stat const *parent, - struct dir_list *ancestors, - const struct cp_options *x, - - _Bool command_line_arg, - - _Bool *first_dir_created_per_command_line_arg, - - _Bool *copy_into_self, - - _Bool *rename_succeeded); -static _Bool owner_failure_ok(struct cp_options const *x); - -static char const *top_level_src_name; -static char const *top_level_dst_name; -static int follow_fstatat(int dirfd, char const *filename, struct stat *st, - int flags) { - int result = fstatat(dirfd, filename, st, flags); - - if (0 && result == 0 && !(flags & 0x100) && - ((((st->st_mode)) & 0170000) == (0020000))) { - static dev_t stdin_rdev; - static signed char stdin_rdev_status; - if (stdin_rdev_status == 0) { - struct stat stdin_st; - if (stat("/dev/stdin", &stdin_st) == 0 && - ((((stdin_st.st_mode)) & 0170000) == (0020000)) - - && gnu_dev_minor(stdin_st.st_rdev) == 0) { - stdin_rdev = stdin_st.st_rdev; - stdin_rdev_status = 1; - } else - stdin_rdev_status = -1; - } - if (0 < stdin_rdev_status && - gnu_dev_major(stdin_rdev) == gnu_dev_major(st->st_rdev)) - result = fstat(gnu_dev_minor(st->st_rdev), st); - } - - return result; -} - -static int punch_hole(int fd, off_t offset, off_t length) { - int ret = 0; - - ret = fallocate(fd, 0x02 | 0x01, offset, length); - if (ret < 0 && - (is_ENOTSUP((*__errno_location())) || (*__errno_location()) == 38)) - ret = 0; - - return ret; -} - -static _Bool - -create_hole(int fd, char const *name, _Bool punch_holes, off_t size) { - off_t file_end = lseek(fd, size, 1); - - if (file_end < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot lseek %s", 5), - quotearg_style(shell_escape_always_quoting_style, name)); - return 0; - } - - if (punch_holes && punch_hole(fd, file_end - size, size) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error deallocating %s", 5), - quotearg_style(shell_escape_always_quoting_style, name)); - return 0; - } - - return 1; -} -static _Bool - -sparse_copy(int src_fd, int dest_fd, char **abuf, size_t buf_size, - size_t hole_size, _Bool punch_holes, _Bool allow_reflink, - char const *src_name, char const *dst_name, uintmax_t max_n_read, - off_t *total_n_read, - - _Bool *last_write_made_hole) { - *last_write_made_hole = 0; - *total_n_read = 0; - - if (!hole_size && allow_reflink) - while (max_n_read) { - - ssize_t copy_max = (((0x7fffffffffffffffL) < ((18446744073709551615UL))) - ? (0x7fffffffffffffffL) - : ((18446744073709551615UL))) >> - 30 << 30; - ssize_t n_copied = copy_file_range( - src_fd, ((void *)0), dest_fd, ((void *)0), - - (((max_n_read) < (copy_max)) ? (max_n_read) : (copy_max)), 0); - if (n_copied == 0) { - - if (*total_n_read == 0) - break; - return 1; - } - if (n_copied < 0) { - if ((*__errno_location()) == 38 || is_ENOTSUP((*__errno_location())) || - (*__errno_location()) == 22 || (*__errno_location()) == 9 - - || (*__errno_location()) == 18 || (*__errno_location()) == 26) - break; - - if ((*__errno_location()) == 1 && *total_n_read == 0) - break; - - if ((*__errno_location()) == 4) - n_copied = 0; - else { - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "error copying %s to %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, src_name), - quotearg_n_style(1, shell_escape_always_quoting_style, dst_name)); - return 0; - } - } - max_n_read -= n_copied; - *total_n_read += n_copied; - } - - _Bool make_hole = 0; - off_t psize = 0; - - while (max_n_read) { - if (!*abuf) - *abuf = xalignalloc(getpagesize(), buf_size); - char *buf = *abuf; - ssize_t n_read = read( - src_fd, buf, (((max_n_read) < (buf_size)) ? (max_n_read) : (buf_size))); - if (n_read < 0) { - if ((*__errno_location()) == 4) - continue; - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - return 0; - } - if (n_read == 0) - break; - max_n_read -= n_read; - *total_n_read += n_read; - - size_t csize = hole_size ? hole_size : buf_size; - char *cbuf = buf; - char *pbuf = buf; - - while (n_read) { - - _Bool prev_hole = make_hole; - csize = (((csize) < (n_read)) ? (csize) : (n_read)); - - if (hole_size && csize) - make_hole = is_nul(cbuf, csize); - - _Bool transition = (make_hole != prev_hole) && psize; - - _Bool last_chunk = (n_read == csize && !make_hole) || !csize; - - if (transition || last_chunk) { - if (!transition) - psize += csize; - - if (!prev_hole) { - if (full_write(dest_fd, pbuf, psize) != psize) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error writing %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } - } else { - if (!create_hole(dest_fd, dst_name, punch_holes, psize)) - return 0; - } - - pbuf = cbuf; - psize = csize; - - if (last_chunk) { - if (!csize) - n_read = 0; - - if (transition) - csize = 0; - else - psize = 0; - } - } else { - if (__builtin_add_overflow(psize, csize, &psize)) { - error(0, 0, dcgettext(((void *)0), "overflow reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - return 0; - } - } - - n_read -= csize; - cbuf += csize; - } - - *last_write_made_hole = make_hole; - } - - if (make_hole && !create_hole(dest_fd, dst_name, punch_holes, psize)) - return 0; - else - return 1; -} - -static inline int clone_file(int dest_fd, int src_fd) { - - return ioctl(dest_fd, - (((1U) << (((0 + 8) + 8) + 14)) | (((0x94)) << (0 + 8)) | - (((9)) << 0) | ((((sizeof(int)))) << ((0 + 8) + 8))), - src_fd); -} - -static _Bool - -write_zeros(int fd, off_t n_bytes) { - static char *zeros; - static size_t nz = IO_BUFSIZE; - - if (zeros == ((void *)0)) { - static char fallback[1024]; - zeros = calloc(nz, 1); - if (zeros == ((void *)0)) { - zeros = fallback; - nz = sizeof fallback; - } - } - - while (n_bytes) { - size_t n = (((nz) < (n_bytes)) ? (nz) : (n_bytes)); - if ((full_write(fd, zeros, n)) != n) - return 0; - n_bytes -= n; - } - - return 1; -} -static _Bool - -lseek_copy(int src_fd, int dest_fd, char **abuf, size_t buf_size, - size_t hole_size, off_t ext_start, off_t src_total_size, - enum Sparse_type sparse_mode, - - _Bool allow_reflink, char const *src_name, char const *dst_name) { - off_t last_ext_start = 0; - off_t last_ext_len = 0; - off_t dest_pos = 0; - - _Bool wrote_hole_at_eof = 1; - - while (0 <= ext_start) { - off_t ext_end = lseek(src_fd, ext_start, 4); - if (ext_end < 0) { - if ((*__errno_location()) != 6) - goto cannot_lseek; - ext_end = src_total_size; - if (ext_end <= ext_start) { - - src_total_size = lseek(src_fd, 0, 2); - if (src_total_size < 0) - goto cannot_lseek; - - if (src_total_size <= ext_start) - break; - - ext_end = src_total_size; - } - } - - if (src_total_size < ext_end) - src_total_size = ext_end; - - if (lseek(src_fd, ext_start, 0) < 0) - goto cannot_lseek; - - wrote_hole_at_eof = 0; - off_t ext_hole_size = ext_start - last_ext_start - last_ext_len; - - if (ext_hole_size) { - if (sparse_mode != SPARSE_NEVER) { - if (!create_hole(dest_fd, dst_name, sparse_mode == SPARSE_ALWAYS, - ext_hole_size)) - return 0; - wrote_hole_at_eof = 1; - } else { - - if (!write_zeros(dest_fd, ext_hole_size)) { - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "%s: write failed", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, dst_name)); - return 0; - } - } - } - - off_t ext_len = ext_end - ext_start; - last_ext_start = ext_start; - last_ext_len = ext_len; - - off_t n_read; - - _Bool read_hole; - if (!sparse_copy(src_fd, dest_fd, abuf, buf_size, - sparse_mode == SPARSE_NEVER ? 0 : hole_size, - - 1, allow_reflink, src_name, dst_name, ext_len, &n_read, - &read_hole)) - return 0; - - dest_pos = ext_start + n_read; - if (n_read) - wrote_hole_at_eof = read_hole; - if (n_read < ext_len) { - - src_total_size = dest_pos; - break; - } - - ext_start = lseek(src_fd, dest_pos, 3); - if (ext_start < 0 && (*__errno_location()) != 6) - goto cannot_lseek; - } - if ((dest_pos < src_total_size || wrote_hole_at_eof) && - !(sparse_mode == SPARSE_NEVER - ? write_zeros(dest_fd, src_total_size - dest_pos) - : ftruncate(dest_fd, src_total_size) == 0)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to extend %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } - - if (sparse_mode == SPARSE_ALWAYS && dest_pos < src_total_size && - punch_hole(dest_fd, dest_pos, src_total_size - dest_pos) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error deallocating %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } - - return 1; - -cannot_lseek: - error(0, (*__errno_location()), dcgettext(((void *)0), "cannot lseek %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - return 0; -} - -__attribute__((__pure__)) static _Bool - -is_ancestor(const struct stat *sb, const struct dir_list *ancestors) { - while (ancestors != 0) { - if (ancestors->ino == sb->st_ino && ancestors->dev == sb->st_dev) - return 1; - ancestors = ancestors->parent; - } - return 0; -} - -static _Bool - -errno_unsupported(int err) { - return err == 95 || err == 61; -} - -__attribute__((__format__(printf, 2, 3))) static void -copy_attr_error(struct error_context *ctx, char const *fmt, ...) { - if (!errno_unsupported((*__errno_location()))) { - int err = (*__errno_location()); - va_list ap; - - __builtin_va_start(ap, fmt); - verror(0, err, fmt, ap); - - __builtin_va_end(ap); - } -} - -__attribute__((__format__(printf, 2, 3))) static void -copy_attr_allerror(struct error_context *ctx, char const *fmt, ...) { - int err = (*__errno_location()); - va_list ap; - - __builtin_va_start(ap, fmt); - verror(0, err, fmt, ap); - - __builtin_va_end(ap); -} - -static char const *copy_attr_quote(struct error_context *ctx, char const *str) { - return quotearg_style(shell_escape_always_quoting_style, str); -} - -static void copy_attr_free(struct error_context *ctx, char const *str) {} - -static int check_selinux_attr(char const *name, struct error_context *ctx) { - return strncmp(name, - "" - "security.selinux" - "", - sizeof("security.selinux") - 1) && - attr_copy_check_permissions(name, ctx); -} - -static _Bool - -copy_attr(char const *src_path, int src_fd, char const *dst_path, int dst_fd, - struct cp_options const *x) { - - _Bool all_errors = (!x->data_copy_required || x->require_preserve_xattr); - - _Bool some_errors = (!all_errors && !x->reduce_diagnostics); - int (*check)(char const *, struct error_context *) = - (x->preserve_security_context || x->set_security_context - ? check_selinux_attr - : ((void *)0)); - - struct error_context *ctx = - (all_errors || some_errors - ? (&(struct error_context){.error = all_errors ? copy_attr_allerror - : copy_attr_error, - .quote = copy_attr_quote, - .quote_free = copy_attr_free}) - : ((void *)0)); - - return !(0 <= src_fd && 0 <= dst_fd - ? attr_copy_fd(src_path, src_fd, dst_path, dst_fd, check, ctx) - : attr_copy_file(src_path, dst_path, check, ctx)); -} -static _Bool - -copy_dir(char const *src_name_in, char const *dst_name_in, int dst_dirfd, - char const *dst_relname_in, _Bool new_dst, const struct stat *src_sb, - struct dir_list *ancestors, const struct cp_options *x, - - _Bool *first_dir_created_per_command_line_arg, - - _Bool *copy_into_self) { - char *name_space; - char *namep; - struct cp_options non_command_line_options = *x; - - _Bool ok = 1; - - name_space = savedir(src_name_in, SAVEDIR_SORT_FASTREAD); - if (name_space == ((void *)0)) { - - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot access %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name_in)); - return 0; - } - - if (x->dereference == DEREF_COMMAND_LINE_ARGUMENTS) - non_command_line_options.dereference = DEREF_NEVER; - - _Bool new_first_dir_created = 0; - namep = name_space; - while (*namep != '\0') { - - _Bool local_copy_into_self; - char *src_name = file_name_concat(src_name_in, namep, ((void *)0)); - char *dst_name = file_name_concat(dst_name_in, namep, ((void *)0)); - - _Bool first_dir_created = *first_dir_created_per_command_line_arg; - - _Bool rename_succeeded; - - ok &= copy_internal(src_name, dst_name, dst_dirfd, - dst_name + (dst_relname_in - dst_name_in), new_dst, - src_sb, ancestors, &non_command_line_options, 0, - &first_dir_created, &local_copy_into_self, - &rename_succeeded); - *copy_into_self |= local_copy_into_self; - - free(dst_name); - free(src_name); - - if (local_copy_into_self) - break; - - new_first_dir_created |= first_dir_created; - namep += strlen(namep) + 1; - } - free(name_space); - *first_dir_created_per_command_line_arg = new_first_dir_created; - - return ok; -} -static int set_owner(const struct cp_options *x, char const *dst_name, - int dst_dirfd, char const *dst_relname, int dest_desc, - struct stat const *src_sb, _Bool new_dst, - struct stat const *dst_sb) { - uid_t uid = src_sb->st_uid; - gid_t gid = src_sb->st_gid; - - if (!new_dst && (x->preserve_mode || x->move_mode || x->set_mode)) { - mode_t old_mode = dst_sb->st_mode; - mode_t new_mode = - (x->preserve_mode || x->move_mode ? src_sb->st_mode : x->mode); - mode_t restrictive_temp_mode = old_mode & new_mode & (0400 | 0200 | 0100); - - if ((1 || - (old_mode & - (04000 | 02000 | 01000 | (0400 | 0200 | 0100) | - ((0400 | 0200 | 0100) >> 3) | (((0400 | 0200 | 0100) >> 3) >> 3)) & - (~new_mode | 04000 | 02000 | 01000))) && - qset_acl(dst_name, dest_desc, restrictive_temp_mode) != 0) { - if (!owner_failure_ok(x)) - error(0, (*__errno_location()), - dcgettext(((void *)0), "clearing permissions for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return -x->require_preserve; - } - } - - if (1 && dest_desc != -1) { - if (fchown(dest_desc, uid, gid) == 0) - return 1; - if ((*__errno_location()) == 1 || (*__errno_location()) == 22) { - - int saved_errno = (*__errno_location()); - (__extension__({ - __typeof__(fchown(dest_desc, -1, gid)) __x = - (fchown(dest_desc, -1, gid)); - (void)__x; - })); - - (*__errno_location()) = saved_errno; - } - } else { - if (lchownat(dst_dirfd, dst_relname, uid, gid) == 0) - return 1; - if ((*__errno_location()) == 1 || (*__errno_location()) == 22) { - - int saved_errno = (*__errno_location()); - (__extension__({ - __typeof__(lchownat(dst_dirfd, dst_relname, -1, gid)) __x = - (lchownat(dst_dirfd, dst_relname, -1, gid)); - (void)__x; - })); - - (*__errno_location()) = saved_errno; - } - } - - if (!chown_failure_ok(x)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to preserve ownership for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - if (x->require_preserve) - return -1; - } - - return 0; -} - -static void set_author(char const *dst_name, int dest_desc, - const struct stat *src_sb) { - (void)dst_name; - (void)dest_desc; - (void)src_sb; -} - -_Bool - -set_process_security_ctx (char const *src_name, char const *dst_name, - mode_t mode, - _Bool - new_dst, const struct cp_options *x) -{ - if (x->preserve_security_context) { - - _Bool all_errors = !x->data_copy_required || x->require_preserve_context; - - _Bool some_errors = !all_errors && !x->reduce_diagnostics; - char *con; - - if (0 <= rpl_lgetfilecon(src_name, &con)) { - if (setfscreatecon(con) < 0) { - if (all_errors || - (some_errors && !errno_unsupported((*__errno_location())))) - error(0, (*__errno_location()), - - dcgettext(((void *)0), - "failed to set default file creation context to %s", - 5), - quote(con)); - if (x->require_preserve_context) { - freecon(con); - return 0; - } - } - freecon(con); - } else { - if (all_errors || - (some_errors && !errno_unsupported((*__errno_location())))) { - error(0, (*__errno_location()), - - dcgettext(((void *)0), "failed to get security context of %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - } - if (x->require_preserve_context) - return 0; - } - } else if (x->set_security_context) { - - if (new_dst && defaultcon(x->set_security_context, dst_name, mode) < 0 && - !ignorable_ctx_err((*__errno_location()))) { - error(0, (*__errno_location()), - - dcgettext(((void *)0), - "failed to set default file creation context for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - } - } - - return 1; -} - -_Bool - -set_file_security_ctx (char const *dst_name, - - _Bool - recurse, const struct cp_options *x) -{ - - _Bool all_errors = (!x->data_copy_required || x->require_preserve_context); - - _Bool some_errors = !all_errors && !x->reduce_diagnostics; - - if (!restorecon(x->set_security_context, dst_name, recurse)) { - if (all_errors || - (some_errors && !errno_unsupported((*__errno_location())))) - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "failed to set the security context of %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, dst_name)); - return 0; - } - - return 1; -} - -static int fchmod_or_lchmod(int desc, int dirfd, char const *name, - mode_t mode) { - - if (0 <= desc) - return fchmod(desc, mode); - - return lchmodat(dirfd, name, mode); -} - -enum scantype { - - ERROR_SCANTYPE, - - PLAIN_SCANTYPE, - - ZERO_SCANTYPE, - - LSEEK_SCANTYPE, -}; - -union scan_inference { - - off_t ext_start; -}; - -static enum scantype infer_scantype(int fd, struct stat const *sb, - union scan_inference *scan_inference) { - if (!(1 && ((((sb->st_mode)) & 0170000) == (0100000)) - - && ((*sb).st_blocks) < sb->st_size / 512)) - return PLAIN_SCANTYPE; - - scan_inference->ext_start = lseek(fd, 0, 3); - if (0 <= scan_inference->ext_start || (*__errno_location()) == 6) - return LSEEK_SCANTYPE; - else if ((*__errno_location()) != 22 && !is_ENOTSUP((*__errno_location()))) - return ERROR_SCANTYPE; - - return ZERO_SCANTYPE; -} -static _Bool - -copy_reg(char const *src_name, char const *dst_name, int dst_dirfd, - char const *dst_relname, const struct cp_options *x, mode_t dst_mode, - mode_t omitted_permissions, _Bool *new_dst, - struct stat const *src_sb) { - char *buf = ((void *)0); - int dest_desc; - int dest_errno; - int source_desc; - mode_t src_mode = src_sb->st_mode; - mode_t extra_permissions; - struct stat sb; - struct stat src_open_sb; - union scan_inference scan_inference; - - _Bool return_val = 1; - - _Bool data_copy_required = x->data_copy_required; - - _Bool preserve_xattr = 1 & x->preserve_xattr; - - source_desc = - open_safer(src_name, (00 | 0 - - | (x->dereference == DEREF_NEVER ? 0400000 : 0))); - if (source_desc < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - return 0; - } - - if (fstat(source_desc, &src_open_sb) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot fstat %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - return_val = 0; - goto close_src_desc; - } - - if (!((*src_sb).st_ino == (src_open_sb).st_ino && - (*src_sb).st_dev == (src_open_sb).st_dev)) { - error(0, 0, - - dcgettext(((void *)0), - "skipping file %s, as it was replaced while being copied", - 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - return_val = 0; - goto close_src_desc; - } - - if (!*new_dst) { - int open_flags = - - 01 | 0 | (data_copy_required ? 01000 : 0); - dest_desc = openat_safer(dst_dirfd, dst_relname, open_flags); - dest_errno = (*__errno_location()); - if (0 <= dest_desc && - (x->set_security_context || x->preserve_security_context)) { - if (!set_file_security_ctx(dst_name, 0, x)) { - if (x->require_preserve_context) { - return_val = 0; - goto close_src_and_dst_desc; - } - } - } - - if (dest_desc < 0 && dest_errno != 2 - - && x->unlink_dest_after_failed_open) { - if (unlinkat(dst_dirfd, dst_relname, 0) == 0) { - if (x->verbose) - printf(dcgettext(((void *)0), "removed %s\n", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - } else if ((*__errno_location()) != 2) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot remove %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return_val = 0; - goto close_src_desc; - } - - dest_errno = 2; - } - - if (dest_desc < 0 && dest_errno == 2) { - - if (x->set_security_context) { - if (!set_process_security_ctx(src_name, dst_name, dst_mode, - - 1, x)) { - return_val = 0; - goto close_src_desc; - } - } - - *new_dst = 1; - } - } - - if (*new_dst) { - mode_t open_mode = ((dst_mode & ~omitted_permissions) | - (preserve_xattr && !x->owner_privileges ? 0200 : 0)); - extra_permissions = open_mode & ~dst_mode; - - int open_flags = 01 | 0100 | 0; - dest_desc = - openat_safer(dst_dirfd, dst_relname, open_flags | 0200, open_mode); - dest_errno = (*__errno_location()); - if (dest_desc < 0 && dest_errno == 17 && !x->move_mode) { - char dummy[1]; - if (0 <= readlinkat(dst_dirfd, dst_relname, dummy, sizeof dummy)) { - if (x->open_dangling_dest_symlink) { - dest_desc = - openat_safer(dst_dirfd, dst_relname, open_flags, open_mode); - dest_errno = (*__errno_location()); - } else { - error(0, 0, - dcgettext(((void *)0), - "not writing through dangling symlink %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return_val = 0; - goto close_src_desc; - } - } - } - - if (dest_desc < 0 && dest_errno == 21 - - && *dst_name && dst_name[strlen(dst_name) - 1] == '/') - dest_errno = 20; - } else { - omitted_permissions = extra_permissions = 0; - } - - if (dest_desc < 0) { - error(0, dest_errno, - dcgettext(((void *)0), "cannot create regular file %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return_val = 0; - goto close_src_desc; - } - - if (data_copy_required && x->reflink_mode) { - if (clone_file(dest_desc, source_desc) == 0) - data_copy_required = 0; - else if (x->reflink_mode == REFLINK_ALWAYS) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to clone %s from %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, dst_name), - quotearg_n_style(1, shell_escape_always_quoting_style, src_name)); - return_val = 0; - goto close_src_and_dst_desc; - } - } - - if (!(data_copy_required | x->preserve_ownership | extra_permissions)) - sb.st_mode = 0; - else if (fstat(dest_desc, &sb) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot fstat %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return_val = 0; - goto close_src_and_dst_desc; - } - - mode_t temporary_mode = sb.st_mode | extra_permissions; - if (temporary_mode != sb.st_mode && - (fchmod_or_lchmod(dest_desc, dst_dirfd, dst_relname, temporary_mode) != - 0)) - extra_permissions = 0; - - if (data_copy_required) { - - size_t buf_size = io_blksize(sb); - size_t hole_size = - ((0 < (sb).st_blksize && (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512); - - enum scantype scantype = - infer_scantype(source_desc, &src_open_sb, &scan_inference); - if (scantype == ERROR_SCANTYPE) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot lseek %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - return_val = 0; - goto close_src_and_dst_desc; - } - - _Bool make_holes = - (((((sb.st_mode)) & 0170000) == (0100000)) - - && (x->sparse_mode == SPARSE_ALWAYS || - (x->sparse_mode == SPARSE_AUTO && scantype != PLAIN_SCANTYPE))); - - fdadvise(source_desc, 0, 0, FADVISE_SEQUENTIAL); - - if (!make_holes) { - - size_t blcm_max = ((((18446744073709551615UL)) < (0x7fffffffffffffffL)) - ? ((18446744073709551615UL)) - : (0x7fffffffffffffffL)); - size_t blcm = buffer_lcm(io_blksize(src_open_sb), buf_size, blcm_max); - - if (((((src_open_sb.st_mode)) & 0170000) == (0100000)) && - src_open_sb.st_size < buf_size) - buf_size = src_open_sb.st_size + 1; - - buf_size += blcm - 1; - buf_size -= buf_size % blcm; - if (buf_size == 0 || blcm_max < buf_size) - buf_size = blcm; - } - - off_t n_read; - - _Bool wrote_hole_at_eof = 0; - if (!( - - scantype == LSEEK_SCANTYPE - ? lseek_copy(source_desc, dest_desc, &buf, buf_size, hole_size, - scan_inference.ext_start, src_open_sb.st_size, - make_holes ? x->sparse_mode : SPARSE_NEVER, - x->reflink_mode != REFLINK_NEVER, src_name, - dst_name) - : - - sparse_copy( - source_desc, dest_desc, &buf, buf_size, - make_holes ? hole_size : 0, x->sparse_mode == SPARSE_ALWAYS, - x->reflink_mode != REFLINK_NEVER, src_name, dst_name, - (18446744073709551615UL), &n_read, &wrote_hole_at_eof))) { - return_val = 0; - goto close_src_and_dst_desc; - } else if (wrote_hole_at_eof && ftruncate(dest_desc, n_read) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to extend %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return_val = 0; - goto close_src_and_dst_desc; - } - } - - if (x->preserve_timestamps) { - struct timespec timespec[2]; - timespec[0] = get_stat_atime(src_sb); - timespec[1] = get_stat_mtime(src_sb); - - if (fdutimensat(dest_desc, dst_dirfd, dst_relname, timespec, 0) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "preserving times for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - if (x->require_preserve) { - return_val = 0; - goto close_src_and_dst_desc; - } - } - } - - if (x->preserve_ownership && !(((*src_sb).st_uid == (sb).st_uid) && - ((*src_sb).st_gid == (sb).st_gid))) { - switch (set_owner(x, dst_name, dst_dirfd, dst_relname, dest_desc, src_sb, - *new_dst, &sb)) { - case -1: - return_val = 0; - goto close_src_and_dst_desc; - - case 0: - src_mode &= ~(04000 | 02000 | 01000); - break; - } - } - - if (preserve_xattr) { - if (!copy_attr(src_name, source_desc, dst_name, dest_desc, x) && - x->require_preserve_xattr) - return_val = 0; - } - - set_author(dst_name, dest_desc, src_sb); - - if (x->preserve_mode || x->move_mode) { - if (copy_acl(src_name, source_desc, dst_name, dest_desc, src_mode) != 0 && - x->require_preserve) - return_val = 0; - } else if (x->set_mode) { - if (set_acl(dst_name, dest_desc, x->mode) != 0) - return_val = 0; - } else if (x->explicit_no_preserve_mode && *new_dst) { - if (set_acl(dst_name, dest_desc, - (0400 | 0200 | (0400 >> 3) | (0200 >> 3) | ((0400 >> 3) >> 3) | - ((0200 >> 3) >> 3)) & - ~cached_umask()) != 0) - return_val = 0; - } else if (omitted_permissions | extra_permissions) { - omitted_permissions &= ~cached_umask(); - if ((omitted_permissions | extra_permissions) && - (fchmod_or_lchmod(dest_desc, dst_dirfd, dst_relname, - dst_mode & ~cached_umask()) != 0)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "preserving permissions for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - if (x->require_preserve) - return_val = 0; - } - } - -close_src_and_dst_desc: - if (close(dest_desc) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to close %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return_val = 0; - } -close_src_desc: - if (close(source_desc) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to close %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - return_val = 0; - } - - alignfree(buf); - return return_val; -} -static _Bool - -same_file_ok(char const *src_name, struct stat const *src_sb, int dst_dirfd, - char const *dst_relname, struct stat const *dst_sb, - const struct cp_options *x, _Bool *return_now) { - const struct stat *src_sb_link; - const struct stat *dst_sb_link; - struct stat tmp_dst_sb; - struct stat tmp_src_sb; - - _Bool same_link; - - _Bool same = ((*src_sb).st_ino == (*dst_sb).st_ino && - (*src_sb).st_dev == (*dst_sb).st_dev); - - *return_now = 0; - - if (same && x->hard_link) { - *return_now = 1; - return 1; - } - - if (x->dereference == DEREF_NEVER) { - same_link = same; - - if (((((src_sb->st_mode)) & 0170000) == (0120000)) && - ((((dst_sb->st_mode)) & 0170000) == (0120000))) { - - _Bool sn = same_nameat(-100, src_name, dst_dirfd, dst_relname); - if (!sn) { - - if (x->backup_type != no_backups) - return 1; - - if (same_link) { - *return_now = 1; - return !x->move_mode; - } - } - - return !sn; - } - - src_sb_link = src_sb; - dst_sb_link = dst_sb; - } else { - if (!same) - return 1; - - if (fstatat(dst_dirfd, dst_relname, &tmp_dst_sb, - - 0x100) != 0 || - lstat(src_name, &tmp_src_sb) != 0) - return 1; - - src_sb_link = &tmp_src_sb; - dst_sb_link = &tmp_dst_sb; - - same_link = ((*src_sb_link).st_ino == (*dst_sb_link).st_ino && - (*src_sb_link).st_dev == (*dst_sb_link).st_dev); - - if (((((src_sb_link->st_mode)) & 0170000) == (0120000)) && - ((((dst_sb_link->st_mode)) & 0170000) == (0120000)) - - && x->unlink_dest_before_opening) - return 1; - } - - if (x->backup_type != no_backups) { - if (!same_link) { - if (!x->move_mode && x->dereference != DEREF_NEVER && - ((((src_sb_link->st_mode)) & 0170000) == (0120000)) - - && !((((dst_sb_link->st_mode)) & 0170000) == (0120000))) - return 0; - - return 1; - } - - return !same_nameat(-100, src_name, dst_dirfd, dst_relname); - } - if (x->move_mode || x->unlink_dest_before_opening) { - - if (((((dst_sb_link->st_mode)) & 0170000) == (0120000))) - return 1; - - if (same_link && 1 < dst_sb_link->st_nlink && - !same_nameat(-100, src_name, dst_dirfd, dst_relname)) - return !x->move_mode; - } - - if (!((((src_sb_link->st_mode)) & 0170000) == (0120000)) && - !((((dst_sb_link->st_mode)) & 0170000) == (0120000))) { - if (!((*src_sb_link).st_ino == (*dst_sb_link).st_ino && - (*src_sb_link).st_dev == (*dst_sb_link).st_dev)) - return 1; - - if (x->hard_link) { - *return_now = 1; - return 1; - } - } - if (x->move_mode && ((((src_sb->st_mode)) & 0170000) == (0120000)) - - && 1 < dst_sb_link->st_nlink) { - char *abs_src = canonicalize_file_name(src_name); - if (abs_src) { - - _Bool result = !same_nameat(-100, abs_src, dst_dirfd, dst_relname); - free(abs_src); - return result; - } - } - - if (x->symbolic_link && ((((dst_sb_link->st_mode)) & 0170000) == (0120000))) - return 1; - - if (x->dereference == DEREF_NEVER) { - if (!((((src_sb_link->st_mode)) & 0170000) == (0120000))) - tmp_src_sb = *src_sb_link; - else if (stat(src_name, &tmp_src_sb) != 0) - return 1; - - if (!((((dst_sb_link->st_mode)) & 0170000) == (0120000))) - tmp_dst_sb = *dst_sb_link; - else if (fstatat(dst_dirfd, dst_relname, &tmp_dst_sb, 0) != 0) - return 1; - - if (!((tmp_src_sb).st_ino == (tmp_dst_sb).st_ino && - (tmp_src_sb).st_dev == (tmp_dst_sb).st_dev)) - return 1; - - if (x->hard_link) { - - *return_now = !((((dst_sb_link->st_mode)) & 0170000) == (0120000)); - return 1; - } - } - - return 0; -} - -static _Bool - -writable_destination(int dst_dirfd, char const *dst_relname, mode_t mode) { - return (((((mode)) & 0170000) == (0120000)) - - || can_write_any_file() || - faccessat(dst_dirfd, dst_relname, 2, 0x200) == 0); -} - -static _Bool - -overwrite_ok(struct cp_options const *x, char const *dst_name, int dst_dirfd, - char const *dst_relname, struct stat const *dst_sb) { - if (!writable_destination(dst_dirfd, dst_relname, dst_sb->st_mode)) { - char perms[12]; - strmode(dst_sb->st_mode, perms); - perms[10] = '\0'; - fprintf(stderr, - (x->move_mode || x->unlink_dest_before_opening || - x->unlink_dest_after_failed_open) - ? dcgettext(((void *)0), - "%s: replace %s, overriding mode %04lo (%s)? ", 5) - - : dcgettext(((void *)0), - "%s: unwritable %s (mode %04lo, %s); try anyway? ", - 5), - program_name, - quotearg_style(shell_escape_always_quoting_style, dst_name), - (unsigned long int)(dst_sb->st_mode & - (04000 | 02000 | 01000 | (0400 | 0200 | 0100) | - ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3))), - &perms[1]); - } else { - fprintf(stderr, dcgettext(((void *)0), "%s: overwrite %s? ", 5), - program_name, - quotearg_style(shell_escape_always_quoting_style, dst_name)); - } - - return yesno(); -} - -extern void dest_info_init(struct cp_options *x) { - x->dest_info = - hash_initialize(61, - - ((void *)0), triple_hash, triple_compare, triple_free); - if (!x->dest_info) - xalloc_die(); -} - -extern void src_info_init(struct cp_options *x) { - x->src_info = hash_initialize(61, - - ((void *)0), triple_hash_no_name, - triple_compare, triple_free); - if (!x->src_info) - xalloc_die(); -} -static _Bool - -abandon_move(const struct cp_options *x, char const *dst_name, int dst_dirfd, - char const *dst_relname, struct stat const *dst_sb) { - - ((void)sizeof((x->move_mode) ? 1 : 0), __extension__({ - if (x->move_mode) - ; - else - __assert_fail("x->move_mode", "src/copy.c", 1808, - __extension__ __PRETTY_FUNCTION__); - })); - return (x->interactive == I_ALWAYS_NO || - ((x->interactive == I_ASK_USER || - (x->interactive == I_UNSPECIFIED && x->stdin_tty && - !writable_destination(dst_dirfd, dst_relname, dst_sb->st_mode))) && - !overwrite_ok(x, dst_name, dst_dirfd, dst_relname, dst_sb))); -} - -static void emit_verbose(char const *src, char const *dst, - char const *backup_dst_name) { - printf("%s -> %s", - quotearg_n_style(0, shell_escape_always_quoting_style, src), - quotearg_n_style(1, shell_escape_always_quoting_style, dst)); - if (backup_dst_name) - printf(dcgettext(((void *)0), " (backup: %s)", 5), - quotearg_style(shell_escape_always_quoting_style, backup_dst_name)); - putchar_unlocked('\n'); -} - -static void restore_default_fscreatecon_or_die(void) { - if (setfscreatecon(((void *)0)) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed " - "to restore the default file creation context\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to restore the default file creation context", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to restore the default file creation context", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static char *subst_suffix(char const *str, char const *suffix, - char const *newsuffix) { - idx_t prefixlen = suffix - str; - idx_t newsuffixsize = strlen(newsuffix) + 1; - char *r = ximalloc(prefixlen + newsuffixsize); - memcpy(r + prefixlen, newsuffix, newsuffixsize); - return memcpy(r, str, prefixlen); -} -static _Bool - -create_hard_link(char const *src_name, int src_dirfd, char const *src_relname, - char const *dst_name, int dst_dirfd, char const *dst_relname, - - _Bool replace, _Bool verbose, _Bool dereference) { - int err = force_linkat(src_dirfd, src_relname, dst_dirfd, dst_relname, - dereference ? 0x400 : 0, replace, -1); - if (0 < err) { - - char *a_src_name = ((void *)0); - if (!src_name) - src_name = a_src_name = subst_suffix(dst_name, dst_relname, src_relname); - error(0, err, dcgettext(((void *)0), "cannot create hard link %s to %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, dst_name), - quotearg_n_style(1, shell_escape_always_quoting_style, src_name)); - free(a_src_name); - return 0; - } - if (err < 0 && verbose) - printf(dcgettext(((void *)0), "removed %s\n", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 1; -} - -__attribute__((__pure__)) static inline _Bool - -should_dereference(const struct cp_options *x, _Bool command_line_arg) { - return x->dereference == DEREF_ALWAYS || - (x->dereference == DEREF_COMMAND_LINE_ARGUMENTS && command_line_arg); -} - -static _Bool - -source_is_dst_backup(char const *srcbase, struct stat const *src_st, - int dst_dirfd, char const *dst_relname) { - size_t srcbaselen = strlen(srcbase); - char const *dstbase = last_component(dst_relname); - size_t dstbaselen = strlen(dstbase); - size_t suffixlen = strlen(simple_backup_suffix); - if (!(srcbaselen == dstbaselen + suffixlen && - memcmp(srcbase, dstbase, dstbaselen) == 0 && - (strcmp(srcbase + dstbaselen, simple_backup_suffix) == 0))) - return 0; - char *dst_back = subst_suffix(dst_relname, dst_relname + strlen(dst_relname), - simple_backup_suffix); - struct stat dst_back_sb; - int dst_back_status = fstatat(dst_dirfd, dst_back, &dst_back_sb, 0); - free(dst_back); - return dst_back_status == 0 && ((*src_st).st_ino == (dst_back_sb).st_ino && - (*src_st).st_dev == (dst_back_sb).st_dev); -} -static _Bool - -copy_internal(char const *src_name, char const *dst_name, int dst_dirfd, - char const *dst_relname, int nonexistent_dst, - struct stat const *parent, struct dir_list *ancestors, - const struct cp_options *x, - - _Bool command_line_arg, - - _Bool *first_dir_created_per_command_line_arg, - - _Bool *copy_into_self, - - _Bool *rename_succeeded) { - struct stat src_sb; - struct stat dst_sb; - mode_t src_mode = 0; - mode_t dst_mode = 0; - mode_t dst_mode_bits; - mode_t omitted_permissions; - - _Bool restore_dst_mode = 0; - char *earlier_file = ((void *)0); - char *dst_backup = ((void *)0); - - _Bool delayed_ok; - - _Bool copied_as_regular = 0; - - _Bool dest_is_symlink = 0; - - _Bool have_dst_lstat = 0; - - _Bool new_dst = 0 < nonexistent_dst; - - *copy_into_self = 0; - - int rename_errno = x->rename_errno; - if (x->move_mode) { - if (rename_errno < 0) - rename_errno = (renameatu(-100, src_name, dst_dirfd, dst_relname, - - (1 << 0)) - ? (*__errno_location()) - : 0); - nonexistent_dst = *rename_succeeded = new_dst = rename_errno == 0; - } - - if (rename_errno == 0 ? !x->last_file - : rename_errno != 17 || x->interactive != I_ALWAYS_NO) { - char const *name = rename_errno == 0 ? dst_name : src_name; - int dirfd = rename_errno == 0 ? dst_dirfd : -100; - char const *relname = rename_errno == 0 ? dst_relname : src_name; - int fstatat_flags = x->dereference == DEREF_NEVER ? 0x100 : 0; - if (follow_fstatat(dirfd, relname, &src_sb, fstatat_flags) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, name)); - return 0; - } - - src_mode = src_sb.st_mode; - - if (((((src_mode)) & 0170000) == (0040000)) && !x->recursive) { - error(0, 0, - !x->install_mode - ? dcgettext(((void *)0), - "-r not specified; omitting directory %s", 5) - - : dcgettext(((void *)0), "omitting directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - return 0; - } - } else { - } - - if (command_line_arg && x->src_info) { - if (!((((src_mode)) & 0170000) == (0040000)) - - && x->backup_type == no_backups && - seen_file(x->src_info, src_name, &src_sb)) { - error(0, 0, - dcgettext(((void *)0), - "warning: source file %s specified more than once", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - return 1; - } - - record_file(x->src_info, src_name, &src_sb); - } - - _Bool dereference = should_dereference(x, command_line_arg); - - if (nonexistent_dst <= 0) { - if (!(rename_errno == 17 && x->interactive == I_ALWAYS_NO)) { - - _Bool use_lstat = - ((!((((src_mode)) & 0170000) == (0100000)) - - && - (!x->copy_as_regular || ((((src_mode)) & 0170000) == (0040000)) || - ((((src_mode)) & 0170000) == (0120000)))) || - x->move_mode || x->symbolic_link || x->hard_link || - x->backup_type != no_backups || x->unlink_dest_before_opening); - int fstatat_flags = use_lstat ? 0x100 : 0; - if (!use_lstat && nonexistent_dst < 0) - new_dst = 1; - else if (follow_fstatat(dst_dirfd, dst_relname, &dst_sb, fstatat_flags) == - 0) { - have_dst_lstat = use_lstat; - rename_errno = 17; - } else { - if ((*__errno_location()) == 40 && x->unlink_dest_after_failed_open) - ; - else if ((*__errno_location()) != 2) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } else - new_dst = 1; - } - } - - if (rename_errno == 17) { - - _Bool return_now = 0; - - if (x->interactive != I_ALWAYS_NO && - !same_file_ok(src_name, &src_sb, dst_dirfd, dst_relname, &dst_sb, x, - &return_now)) { - error(0, 0, dcgettext(((void *)0), "%s and %s are the same file", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, src_name), - quotearg_n_style(1, shell_escape_always_quoting_style, dst_name)); - return 0; - } - - if (x->update && !((((src_mode)) & 0170000) == (0040000))) { - - int options = ((x->preserve_timestamps && - !(x->move_mode && dst_sb.st_dev == src_sb.st_dev)) - ? UTIMECMP_TRUNCATE_SOURCE - : 0); - - if (0 <= - utimecmpat(dst_dirfd, dst_relname, &dst_sb, &src_sb, options)) { - - if (rename_succeeded) - *rename_succeeded = 1; - - earlier_file = - remember_copied(dst_relname, src_sb.st_ino, src_sb.st_dev); - if (earlier_file) { - - if (!create_hard_link(((void *)0), dst_dirfd, earlier_file, - dst_name, dst_dirfd, dst_relname, - - 1, x->verbose, dereference)) { - goto un_backup; - } - } - - return 1; - } - } - if (x->move_mode) { - if (abandon_move(x, dst_name, dst_dirfd, dst_relname, &dst_sb)) { - - if (rename_succeeded) - *rename_succeeded = 1; - return 1; - } - } else { - if (!((((src_mode)) & 0170000) == (0040000)) - - && (x->interactive == I_ALWAYS_NO || - (x->interactive == I_ASK_USER && - !overwrite_ok(x, dst_name, dst_dirfd, dst_relname, &dst_sb)))) - return 1; - } - - if (return_now) - return 1; - - if (!((((dst_sb.st_mode)) & 0170000) == (0040000))) { - if (((((src_mode)) & 0170000) == (0040000))) { - if (x->move_mode && x->backup_type != no_backups) { - - } else { - error(0, 0, - - dcgettext( - ((void *)0), - "cannot overwrite non-directory %s with directory %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - dst_name), - quotearg_n_style(1, shell_escape_always_quoting_style, - src_name)); - return 0; - } - } - if (command_line_arg && x->backup_type != numbered_backups && - seen_file(x->dest_info, dst_relname, &dst_sb)) { - error( - 0, 0, - - dcgettext(((void *)0), - "will not overwrite just-created %s with %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, dst_name), - quotearg_n_style(1, shell_escape_always_quoting_style, src_name)); - return 0; - } - } - - if (!((((src_mode)) & 0170000) == (0040000))) { - if (((((dst_sb.st_mode)) & 0170000) == (0040000))) { - if (x->move_mode && x->backup_type != no_backups) { - - } else { - error(0, 0, - - dcgettext(((void *)0), - "cannot overwrite directory %s with non-directory", - 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } - } - } - - if (x->move_mode) { - - if (((((src_sb.st_mode)) & 0170000) == (0040000)) && - !((((dst_sb.st_mode)) & 0170000) == (0040000)) - - && x->backup_type == no_backups) { - error( - 0, 0, - - dcgettext(((void *)0), - "cannot move directory onto non-directory: %s -> %s", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, src_name), - quotearg_n_style_colon(0, shell_escape_quoting_style, dst_name)); - return 0; - } - } - - char const *srcbase; - if (x->backup_type != no_backups - - && !dot_or_dotdot(srcbase = last_component(src_name)) - - && (x->move_mode || !((((dst_sb.st_mode)) & 0170000) == (0040000)))) { - - if (x->backup_type != numbered_backups && - source_is_dst_backup(srcbase, &src_sb, dst_dirfd, dst_relname)) { - char const *fmt; - fmt = - (x->move_mode - ? dcgettext( - ((void *)0), - "backing up %s might destroy source; %s not moved", 5) - - : dcgettext( - ((void *)0), - "backing up %s might destroy source; %s not copied", - 5)); - error( - 0, 0, fmt, - quotearg_n_style(0, shell_escape_always_quoting_style, dst_name), - quotearg_n_style(1, shell_escape_always_quoting_style, src_name)); - return 0; - } - - char *tmp_backup = - backup_file_rename(dst_dirfd, dst_relname, x->backup_type); - - if (tmp_backup) { - idx_t dirlen = dst_relname - dst_name; - idx_t backupsize = strlen(tmp_backup) + 1; - dst_backup = __builtin_alloca(dirlen + backupsize); - memcpy(mempcpy(dst_backup, dst_name, dirlen), tmp_backup, backupsize); - free(tmp_backup); - } else if ((*__errno_location()) != 2) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot backup %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } - new_dst = 1; - } else if (!((((dst_sb.st_mode)) & 0170000) == (0040000)) - - && !x->move_mode && - (x->unlink_dest_before_opening || - (x->data_copy_required && - ((x->preserve_links && 1 < dst_sb.st_nlink) || - (x->dereference == DEREF_NEVER && - !((((src_sb.st_mode)) & 0170000) == (0100000))))))) { - if (unlinkat(dst_dirfd, dst_relname, 0) != 0 && - (*__errno_location()) != 2) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot remove %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } - new_dst = 1; - if (x->verbose) - printf(dcgettext(((void *)0), "removed %s\n", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - } - } - } - - if (command_line_arg && x->dest_info && !x->move_mode && - x->backup_type == no_backups) { - - _Bool lstat_ok = 1; - struct stat tmp_buf; - struct stat *dst_lstat_sb; - - if (have_dst_lstat) - dst_lstat_sb = &dst_sb; - else { - if (fstatat(dst_dirfd, dst_relname, &tmp_buf, - - 0x100) == 0) - dst_lstat_sb = &tmp_buf; - else - lstat_ok = 0; - } - - if (lstat_ok && ((((dst_lstat_sb->st_mode)) & 0170000) == (0120000)) - - && seen_file(x->dest_info, dst_relname, dst_lstat_sb)) { - error(0, 0, - - dcgettext(((void *)0), - "will not copy %s through just-created symlink %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, src_name), - quotearg_n_style(1, shell_escape_always_quoting_style, dst_name)); - return 0; - } - } - - if (x->verbose && !x->move_mode && !((((src_mode)) & 0170000) == (0040000))) - emit_verbose(src_name, dst_name, dst_backup); - if (rename_errno == 0) - earlier_file = ((void *)0); - else if (x->recursive && ((((src_mode)) & 0170000) == (0040000))) { - if (command_line_arg) - earlier_file = remember_copied(dst_relname, src_sb.st_ino, src_sb.st_dev); - else - earlier_file = src_to_dest_lookup(src_sb.st_ino, src_sb.st_dev); - } else if (x->move_mode && src_sb.st_nlink == 1) { - earlier_file = src_to_dest_lookup(src_sb.st_ino, src_sb.st_dev); - } else if (x->preserve_links && !x->hard_link && - (1 < src_sb.st_nlink || - (command_line_arg && - x->dereference == DEREF_COMMAND_LINE_ARGUMENTS) || - x->dereference == DEREF_ALWAYS)) { - earlier_file = remember_copied(dst_relname, src_sb.st_ino, src_sb.st_dev); - } - - if (earlier_file) { - - if (((((src_mode)) & 0170000) == (0040000))) { - - if (same_nameat(-100, src_name, dst_dirfd, earlier_file)) { - error(0, 0, - dcgettext(((void *)0), - "cannot copy a directory, %s, into itself, %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - top_level_src_name), - quotearg_n_style(1, shell_escape_always_quoting_style, - top_level_dst_name)); - *copy_into_self = 1; - goto un_backup; - } else if (same_nameat(dst_dirfd, dst_relname, dst_dirfd, earlier_file)) { - error(0, 0, - dcgettext(((void *)0), - "warning: source directory %s " - "specified more than once", - 5) - - , - quotearg_style(shell_escape_always_quoting_style, - top_level_src_name)); - - if (x->move_mode && rename_succeeded) - *rename_succeeded = 1; - - return 1; - } else if (x->dereference == DEREF_ALWAYS || - (command_line_arg && - x->dereference == DEREF_COMMAND_LINE_ARGUMENTS)) { - - } else { - char *earlier = subst_suffix(dst_name, dst_relname, earlier_file); - error(0, 0, - dcgettext(((void *)0), - "will not create hard link %s to directory %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, dst_name), - quotearg_n_style(1, shell_escape_always_quoting_style, earlier)); - free(earlier); - goto un_backup; - } - } else { - if (!create_hard_link(((void *)0), dst_dirfd, earlier_file, dst_name, - dst_dirfd, dst_relname, - - 1, x->verbose, dereference)) - goto un_backup; - - return 1; - } - } - - if (x->move_mode) { - if (rename_errno == 17) - rename_errno = ((renameat(-100, src_name, dst_dirfd, dst_relname) == 0) - ? 0 - : (*__errno_location())); - - if (rename_errno == 0) { - if (x->verbose) { - printf(dcgettext(((void *)0), "renamed ", 5)); - emit_verbose(src_name, dst_name, dst_backup); - } - - if (x->set_security_context) { - - (void)set_file_security_ctx(dst_name, 1, x); - } - - if (rename_succeeded) - *rename_succeeded = 1; - - if (command_line_arg && !x->last_file) { - - record_file(x->dest_info, dst_relname, &src_sb); - } - - return 1; - } - - if (rename_errno == 22) { - - error(0, 0, - dcgettext(((void *)0), - "cannot move %s to a subdirectory of itself, %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - top_level_src_name), - quotearg_n_style(1, shell_escape_always_quoting_style, - top_level_dst_name)); - - *copy_into_self = 1; - - return 1; - } - if (rename_errno != 18) { - error(0, rename_errno, - - dcgettext(((void *)0), "cannot move %s to %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, src_name), - quotearg_n_style(1, shell_escape_always_quoting_style, dst_name)); - forget_created(src_sb.st_ino, src_sb.st_dev); - return 0; - } - - if ((unlinkat(dst_dirfd, dst_relname, - - ((((src_mode)) & 0170000) == (0040000)) ? 0x200 : 0) != 0) && - (*__errno_location()) != 2) { - error(0, (*__errno_location()), - - dcgettext( - ((void *)0), - "inter-device move failed: %s to %s; unable to remove target", - 5), - quotearg_n_style(0, shell_escape_always_quoting_style, src_name), - quotearg_n_style(1, shell_escape_always_quoting_style, dst_name)); - forget_created(src_sb.st_ino, src_sb.st_dev); - return 0; - } - - if (x->verbose && !((((src_mode)) & 0170000) == (0040000))) { - printf(dcgettext(((void *)0), "copied ", 5)); - emit_verbose(src_name, dst_name, dst_backup); - } - new_dst = 1; - } - - dst_mode_bits = - (x->set_mode ? x->mode : src_mode) & - (04000 | 02000 | 01000 | (0400 | 0200 | 0100) | - ((0400 | 0200 | 0100) >> 3) | (((0400 | 0200 | 0100) >> 3) >> 3)); - omitted_permissions = - (dst_mode_bits & - (x->preserve_ownership - ? ((0400 | 0200 | 0100) >> 3) | (((0400 | 0200 | 0100) >> 3) >> 3) - - : ((((src_mode)) & 0170000) == (0040000)) - ? (0200 >> 3) | ((0200 >> 3) >> 3) - - : 0)); - - delayed_ok = 1; - - if (!set_process_security_ctx(src_name, dst_name, src_mode, new_dst, x)) - return 0; - - if (((((src_mode)) & 0170000) == (0040000))) { - struct dir_list *dir; - - if (is_ancestor(&src_sb, ancestors)) { - error(0, 0, - dcgettext(((void *)0), "cannot copy cyclic symbolic link %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - goto un_backup; - } - - dir = __builtin_alloca(sizeof *dir); - dir->parent = ancestors; - dir->ino = src_sb.st_ino; - dir->dev = src_sb.st_dev; - - if (new_dst || !((((dst_sb.st_mode)) & 0170000) == (0040000))) { - - mode_t mode = dst_mode_bits & ~omitted_permissions; - if (mkdirat(dst_dirfd, dst_relname, mode) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot create directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - goto un_backup; - } - - if (fstatat(dst_dirfd, dst_relname, &dst_sb, - - 0x100) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - goto un_backup; - } else if ((dst_sb.st_mode & (0400 | 0200 | 0100)) != - (0400 | 0200 | 0100)) { - - dst_mode = dst_sb.st_mode; - restore_dst_mode = 1; - - if (lchmodat(dst_dirfd, dst_relname, dst_mode | (0400 | 0200 | 0100)) != - 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "setting permissions for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - goto un_backup; - } - } - - if (!*first_dir_created_per_command_line_arg) { - remember_copied(dst_relname, dst_sb.st_ino, dst_sb.st_dev); - *first_dir_created_per_command_line_arg = 1; - } - - if (x->verbose) { - if (x->move_mode) - printf(dcgettext(((void *)0), "created directory %s\n", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - else - emit_verbose(src_name, dst_name, ((void *)0)); - } - } else { - omitted_permissions = 0; - - if (x->set_security_context || x->preserve_security_context) - if (!set_file_security_ctx(dst_name, 0, x)) { - if (x->require_preserve_context) - goto un_backup; - } - } - - if (x->one_file_system && parent && parent->st_dev != src_sb.st_dev) { - - } else { - - delayed_ok = copy_dir( - src_name, dst_name, dst_dirfd, dst_relname, new_dst, &src_sb, dir, x, - first_dir_created_per_command_line_arg, copy_into_self); - } - } else if (x->symbolic_link) { - dest_is_symlink = 1; - if (*src_name != '/') { - - struct stat dot_sb; - struct stat dst_parent_sb; - char *dst_parent; - - _Bool in_current_dir; - - dst_parent = dir_name(dst_relname); - - in_current_dir = - ((dst_dirfd == -100 && (strcmp(".", dst_parent) == 0)) - - || stat(".", &dot_sb) != 0 || - (fstatat(dst_dirfd, dst_parent, &dst_parent_sb, 0) != 0) || - ((dot_sb).st_ino == (dst_parent_sb).st_ino && - (dot_sb).st_dev == (dst_parent_sb).st_dev)); - free(dst_parent); - - if (!in_current_dir) { - error(0, 0, - - dcgettext(((void *)0), - "%s: can make relative symbolic links only in current " - "directory", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, dst_name)); - goto un_backup; - } - } - - int err = force_symlinkat(src_name, dst_dirfd, dst_relname, - x->unlink_dest_after_failed_open, -1); - if (0 < err) { - error(0, err, - dcgettext(((void *)0), "cannot create symbolic link %s to %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, dst_name), - quotearg_n_style(1, shell_escape_always_quoting_style, src_name)); - goto un_backup; - } - } else if (x->hard_link && !(!1 && ((((src_mode)) & 0170000) == (0120000)) - - && x->dereference == DEREF_NEVER)) { - - _Bool replace = - (x->unlink_dest_after_failed_open || x->interactive == I_ASK_USER); - if (!create_hard_link(src_name, -100, src_name, dst_name, dst_dirfd, - dst_relname, replace, 0, dereference)) - goto un_backup; - } else if (((((src_mode)) & 0170000) == (0100000)) - - || - (x->copy_as_regular && !((((src_mode)) & 0170000) == (0120000)))) { - copied_as_regular = 1; - if (!copy_reg(src_name, dst_name, dst_dirfd, dst_relname, x, - dst_mode_bits & - ((0400 | 0200 | 0100) | ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3)), - omitted_permissions, &new_dst, &src_sb)) - goto un_backup; - } else if (((((src_mode)) & 0170000) == (0010000))) { - - mode_t mode = src_mode & ~omitted_permissions; - if (mknodat(dst_dirfd, dst_relname, mode, 0) != 0) - if (mkfifoat(dst_dirfd, dst_relname, mode & ~0010000) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot create fifo %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - goto un_backup; - } - } else if (((((src_mode)) & 0170000) == (0060000)) || - ((((src_mode)) & 0170000) == (0020000)) || - ((((src_mode)) & 0170000) == (0140000))) { - mode_t mode = src_mode & ~omitted_permissions; - if (mknodat(dst_dirfd, dst_relname, mode, src_sb.st_rdev) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot create special file %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - goto un_backup; - } - } else if (((((src_mode)) & 0170000) == (0120000))) { - char *src_link_val = areadlink_with_size(src_name, src_sb.st_size); - dest_is_symlink = 1; - if (src_link_val == ((void *)0)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot read symbolic link %s", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - goto un_backup; - } - - int symlink_err = force_symlinkat(src_link_val, dst_dirfd, dst_relname, - x->unlink_dest_after_failed_open, -1); - if (0 < symlink_err && x->update && !new_dst && - ((((dst_sb.st_mode)) & 0170000) == (0120000)) - - && dst_sb.st_size == strlen(src_link_val)) { - - char *dest_link_val = - areadlinkat_with_size(dst_dirfd, dst_relname, dst_sb.st_size); - if (dest_link_val) { - if ((strcmp(dest_link_val, src_link_val) == 0)) - symlink_err = 0; - free(dest_link_val); - } - } - free(src_link_val); - if (0 < symlink_err) { - error(0, symlink_err, - dcgettext(((void *)0), "cannot create symbolic link %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - goto un_backup; - } - - if (x->preserve_security_context) - restore_default_fscreatecon_or_die(); - - if (x->preserve_ownership) { - - if (1 && - (lchownat(dst_dirfd, dst_relname, src_sb.st_uid, src_sb.st_gid) != - 0) && - !chown_failure_ok(x)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to preserve ownership for %s", 5), - dst_name); - if (x->require_preserve) - goto un_backup; - } else { - } - } - } else { - error(0, 0, dcgettext(((void *)0), "%s has unknown file type", 5), - quotearg_style(shell_escape_always_quoting_style, src_name)); - goto un_backup; - } - - if (!new_dst && !x->copy_as_regular && - !((((src_mode)) & 0170000) == (0040000)) - - && (x->set_security_context || x->preserve_security_context)) { - if (!set_file_security_ctx(dst_name, 0, x)) { - if (x->require_preserve_context) - goto un_backup; - } - } - - if (command_line_arg && x->dest_info) { - - struct stat sb; - if (fstatat(dst_dirfd, dst_relname, &sb, 0x100) == 0) - record_file(x->dest_info, dst_relname, &sb); - } - - if (x->hard_link && !((((src_mode)) & 0170000) == (0040000)) - - && !(!1 && ((((src_mode)) & 0170000) == (0120000)) - - && x->dereference == DEREF_NEVER)) - return delayed_ok; - - if (copied_as_regular) - return delayed_ok; - if (x->preserve_timestamps) { - struct timespec timespec[2]; - timespec[0] = get_stat_atime(&src_sb); - timespec[1] = get_stat_mtime(&src_sb); - - int utimensat_flags = dest_is_symlink ? 0x100 : 0; - if (utimensat(dst_dirfd, dst_relname, timespec, utimensat_flags) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "preserving times for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - if (x->require_preserve) - return 0; - } - } - - if (!dest_is_symlink && x->preserve_ownership && - (new_dst || !(((src_sb).st_uid == (dst_sb).st_uid) && - ((src_sb).st_gid == (dst_sb).st_gid)))) { - switch (set_owner(x, dst_name, dst_dirfd, dst_relname, -1, &src_sb, new_dst, - &dst_sb)) { - case -1: - return 0; - - case 0: - src_mode &= ~(04000 | 02000 | 01000); - break; - } - } - - if (x->preserve_xattr && !copy_attr(src_name, -1, dst_name, -1, x) && - x->require_preserve_xattr) - return 0; - - if (dest_is_symlink) - return delayed_ok; - - set_author(dst_name, -1, &src_sb); - - if (x->preserve_mode || x->move_mode) { - if (copy_acl(src_name, -1, dst_name, -1, src_mode) != 0 && - x->require_preserve) - return 0; - } else if (x->set_mode) { - if (set_acl(dst_name, -1, x->mode) != 0) - return 0; - } else if (x->explicit_no_preserve_mode && new_dst) { - int default_permissions = - ((((src_mode)) & 0170000) == (0040000)) || - ((((src_mode)) & 0170000) == (0140000)) - - ? ((0400 | 0200 | 0100) | ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3)) - : (0400 | 0200 | (0400 >> 3) | (0200 >> 3) | ((0400 >> 3) >> 3) | - ((0200 >> 3) >> 3)); - if (set_acl(dst_name, -1, default_permissions & ~cached_umask()) != 0) - return 0; - } else { - if (omitted_permissions) { - omitted_permissions &= ~cached_umask(); - - if (omitted_permissions && !restore_dst_mode) { - - if (new_dst && fstatat(dst_dirfd, dst_relname, &dst_sb, - - 0x100) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } - dst_mode = dst_sb.st_mode; - if (omitted_permissions & ~dst_mode) - restore_dst_mode = 1; - } - } - - if (restore_dst_mode) { - if (lchmodat(dst_dirfd, dst_relname, dst_mode | omitted_permissions) != - 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "preserving permissions for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - if (x->require_preserve) - return 0; - } - } - } - - return delayed_ok; - -un_backup: - - if (x->preserve_security_context) - restore_default_fscreatecon_or_die(); - - if (earlier_file == ((void *)0)) - forget_created(src_sb.st_ino, src_sb.st_dev); - - if (dst_backup) { - char const *dst_relbackup = &dst_backup[dst_relname - dst_name]; - if (renameat(dst_dirfd, dst_relbackup, dst_dirfd, dst_relname) != 0) - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot un-backup %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - else { - if (x->verbose) - printf( - dcgettext(((void *)0), "%s -> %s (unbackup)\n", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, dst_backup), - quotearg_n_style(1, shell_escape_always_quoting_style, dst_name)); - } - } - return 0; -} - -__attribute__((__pure__)) static _Bool - -valid_options(const struct cp_options *co) { - - ((void)sizeof((((unsigned int)(co->backup_type) <= numbered_backups)) ? 1 - : 0), - __extension__({ - if (((unsigned int)(co->backup_type) <= numbered_backups)) - ; - else - __assert_fail("VALID_BACKUP_TYPE (co->backup_type)", "src/copy.c", 3087, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof((((co->sparse_mode) == SPARSE_NEVER || - (co->sparse_mode) == SPARSE_AUTO || - (co->sparse_mode) == SPARSE_ALWAYS)) - ? 1 - : 0), - __extension__({ - if (((co->sparse_mode) == SPARSE_NEVER || - (co->sparse_mode) == SPARSE_AUTO || - (co->sparse_mode) == SPARSE_ALWAYS)) - ; - else - __assert_fail("VALID_SPARSE_MODE (co->sparse_mode)", "src/copy.c", 3088, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof((((co->reflink_mode) == REFLINK_NEVER || - (co->reflink_mode) == REFLINK_AUTO || - (co->reflink_mode) == REFLINK_ALWAYS)) - ? 1 - : 0), - __extension__({ - if (((co->reflink_mode) == REFLINK_NEVER || - (co->reflink_mode) == REFLINK_AUTO || - (co->reflink_mode) == REFLINK_ALWAYS)) - ; - else - __assert_fail("VALID_REFLINK_MODE (co->reflink_mode)", "src/copy.c", - 3089, __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof((!(co->hard_link && co->symbolic_link)) ? 1 : 0), - __extension__({ - if (!(co->hard_link && co->symbolic_link)) - ; - else - __assert_fail("!(co->hard_link && co->symbolic_link)", "src/copy.c", - 3090, __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof( - (!(co->reflink_mode == REFLINK_ALWAYS && co->sparse_mode != SPARSE_AUTO)) - ? 1 - : 0), - __extension__({ - if (!(co->reflink_mode == REFLINK_ALWAYS && - co->sparse_mode != SPARSE_AUTO)) - ; - else - __assert_fail("! (co->reflink_mode == REFLINK_ALWAYS && co->sparse_mode " - "!= SPARSE_AUTO)", - "src/copy.c", 3091, __extension__ __PRETTY_FUNCTION__); - })) - - ; - return 1; -} -extern _Bool - -copy(char const *src_name, char const *dst_name, int dst_dirfd, - char const *dst_relname, int nonexistent_dst, - const struct cp_options *options, - - _Bool *copy_into_self, _Bool *rename_succeeded) { - - ((void)sizeof((valid_options(options)) ? 1 : 0), __extension__({ - if (valid_options(options)) - ; - else - __assert_fail("valid_options (options)", "src/copy.c", 3114, - __extension__ __PRETTY_FUNCTION__); - })); - top_level_src_name = src_name; - top_level_dst_name = dst_name; - - _Bool first_dir_created_per_command_line_arg = 0; - return copy_internal(src_name, dst_name, dst_dirfd, dst_relname, - nonexistent_dst, ((void *)0), ((void *)0), options, 1, - &first_dir_created_per_command_line_arg, copy_into_self, - rename_succeeded); -} - -extern void cp_options_default(struct cp_options *x) { - memset(x, 0, sizeof *x); - x->chown_privileges = x->owner_privileges = (geteuid() == 0); - - x->rename_errno = -1; -} - -extern _Bool - -chown_failure_ok(struct cp_options const *x) { - - return (((*__errno_location()) == 1 || (*__errno_location()) == 22) && - !x->chown_privileges); -} - -static _Bool - -owner_failure_ok(struct cp_options const *x) { - return (((*__errno_location()) == 1 || (*__errno_location()) == 22) && - !x->owner_privileges); -} - -extern mode_t cached_umask(void) { - static mode_t mask = (mode_t)-1; - if (mask == (mode_t)-1) { - mask = umask(0); - umask(mask); - } - return mask; -} diff --git a/tests/source/coreutils/cp-hash.c b/tests/source/coreutils/cp-hash.c deleted file mode 100644 index c4b330c..0000000 --- a/tests/source/coreutils/cp-hash.c +++ /dev/null @@ -1,6896 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); -void hash_init(void); -void forget_created(ino_t ino, dev_t dev); -char *remember_copied(char const *node, ino_t ino, dev_t dev) - __attribute__((__nonnull__)); -char *src_to_dest_lookup(ino_t ino, dev_t dev); - -struct Src_to_dest { - ino_t st_ino; - dev_t st_dev; - - char *name; -}; - -static Hash_table *src_to_dest; - -static size_t src_to_dest_hash(void const *x, size_t table_size) { - struct Src_to_dest const *p = x; - - return (uintmax_t)p->st_ino % table_size; -} - -static _Bool - -src_to_dest_compare(void const *x, void const *y) { - struct Src_to_dest const *a = x; - struct Src_to_dest const *b = y; - return ((*a).st_ino == (*b).st_ino && (*a).st_dev == (*b).st_dev) ? 1 : 0; -} - -static void src_to_dest_free(void *x) { - struct Src_to_dest *a = x; - free(a->name); - free(x); -} - -extern void forget_created(ino_t ino, dev_t dev) { - struct Src_to_dest probe; - struct Src_to_dest *ent; - - probe.st_ino = ino; - probe.st_dev = dev; - probe.name = ((void *)0); - - ent = hash_remove(src_to_dest, &probe); - if (ent) - src_to_dest_free(ent); -} - -extern char *src_to_dest_lookup(ino_t ino, dev_t dev) { - struct Src_to_dest ent; - struct Src_to_dest const *e; - ent.st_ino = ino; - ent.st_dev = dev; - e = hash_lookup(src_to_dest, &ent); - return e ? e->name : ((void *)0); -} - -extern char *remember_copied(char const *name, ino_t ino, dev_t dev) { - struct Src_to_dest *ent; - struct Src_to_dest *ent_from_table; - - ent = xmalloc(sizeof *ent); - ent->name = xstrdup(name); - ent->st_ino = ino; - ent->st_dev = dev; - - ent_from_table = hash_insert(src_to_dest, ent); - if (ent_from_table == ((void *)0)) { - - xalloc_die(); - } - - if (ent_from_table != ent) { - src_to_dest_free(ent); - return (char *)ent_from_table->name; - } - - return ((void *)0); -} - -extern void hash_init(void) { - src_to_dest = hash_initialize(103, ((void *)0), src_to_dest_hash, - src_to_dest_compare, src_to_dest_free); - if (src_to_dest == ((void *)0)) - xalloc_die(); -} diff --git a/tests/source/coreutils/cp.c b/tests/source/coreutils/cp.c deleted file mode 100644 index 1d06aff..0000000 --- a/tests/source/coreutils/cp.c +++ /dev/null @@ -1,8797 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); -struct selabel_handle; -extern struct selabel_handle *selabel_open(unsigned int backend, - const struct selinux_opt *opts, - unsigned nopts); -extern void selabel_close(struct selabel_handle *handle); -extern int selabel_lookup(struct selabel_handle *handle, char **con, - const char *key, int type); -extern int selabel_lookup_raw(struct selabel_handle *handle, char **con, - const char *key, int type); - -extern _Bool selabel_partial_match(struct selabel_handle *handle, - const char *key); - -extern _Bool selabel_get_digests_all_partial_matches( - struct selabel_handle *rec, const char *key, uint8_t **calculated_digest, - uint8_t **xattr_digest, size_t *digest_len); -extern _Bool selabel_hash_all_partial_matches(struct selabel_handle *rec, - const char *key, uint8_t *digest); - -extern int selabel_lookup_best_match(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_digest(struct selabel_handle *rec, unsigned char **digest, - size_t *digest_len, char ***specfiles, - size_t *num_specfiles); - -enum selabel_cmp_result { - SELABEL_SUBSET, - SELABEL_EQUAL, - SELABEL_SUPERSET, - SELABEL_INCOMPARABLE -}; -extern enum selabel_cmp_result selabel_cmp(struct selabel_handle *h1, - struct selabel_handle *h2); -extern void selabel_stats(struct selabel_handle *handle); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -enum backup_type { - - no_backups, - - simple_backups, - - numbered_existing_backups, - - numbered_backups -}; - -extern char const *simple_backup_suffix; - -void set_simple_backup_suffix(char const *); -char *backup_file_rename(int, char const *, enum backup_type) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -char *find_backup_file_name(int, char const *, enum backup_type) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -enum backup_type get_version(char const *context, char const *arg); -enum backup_type xget_version(char const *context, char const *arg); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); - -struct selabel_handle; - -enum Sparse_type { - SPARSE_UNUSED, - - SPARSE_NEVER, - - SPARSE_AUTO, - - SPARSE_ALWAYS -}; - -enum Reflink_type { - - REFLINK_NEVER, - - REFLINK_AUTO, - - REFLINK_ALWAYS -}; - -enum Interactive { I_ALWAYS_YES = 1, I_ALWAYS_NO, I_ASK_USER, I_UNSPECIFIED }; - -enum Dereference_symlink { - DEREF_UNDEFINED = 1, - - DEREF_NEVER, - - DEREF_COMMAND_LINE_ARGUMENTS, - - DEREF_ALWAYS -}; -struct cp_options { - enum backup_type backup_type; - - enum Dereference_symlink dereference; - - enum Interactive interactive; - - enum Sparse_type sparse_mode; - - mode_t mode; - - _Bool copy_as_regular; - - _Bool unlink_dest_before_opening; - - _Bool unlink_dest_after_failed_open; - - _Bool hard_link; - - _Bool move_mode; - - _Bool install_mode; - - _Bool chown_privileges; - - _Bool owner_privileges; - - _Bool one_file_system; - - _Bool preserve_ownership; - - _Bool preserve_mode; - - _Bool preserve_timestamps; - - _Bool explicit_no_preserve_mode; - - struct selabel_handle *set_security_context; - - _Bool preserve_links; - - _Bool data_copy_required; - - _Bool require_preserve; - - _Bool preserve_security_context; - - _Bool require_preserve_context; - - _Bool preserve_xattr; - - _Bool require_preserve_xattr; - - _Bool reduce_diagnostics; - - _Bool recursive; - - _Bool set_mode; - - _Bool symbolic_link; - - _Bool update; - - _Bool verbose; - - _Bool stdin_tty; - - _Bool open_dangling_dest_symlink; - - _Bool last_file; - - int rename_errno; - - enum Reflink_type reflink_mode; - Hash_table *dest_info; - - Hash_table *src_info; -}; - -_Bool copy(char const *src_name, char const *dst_name, int dst_dirfd, - char const *dst_relname, int nonexistent_dst, - const struct cp_options *options, - - _Bool *copy_into_self, _Bool *rename_succeeded) - __attribute__((__nonnull__(1, 2, 4, 6, 7))); - -extern _Bool set_process_security_ctx(char const *src_name, - char const *dst_name, mode_t mode, - _Bool new_dst, const struct cp_options *x) - __attribute__((__nonnull__)); - -extern _Bool set_file_security_ctx(char const *dst_name, - - _Bool recurse, const struct cp_options *x) - __attribute__((__nonnull__)); - -void dest_info_init(struct cp_options *) __attribute__((__nonnull__)); -void dest_info_free(struct cp_options *) __attribute__((__nonnull__)); -void src_info_init(struct cp_options *) __attribute__((__nonnull__)); -void src_info_free(struct cp_options *) __attribute__((__nonnull__)); - -void cp_options_default(struct cp_options *) __attribute__((__nonnull__)); - -_Bool chown_failure_ok(struct cp_options const *) __attribute__((__nonnull__)) -__attribute__((__pure__)); -mode_t cached_umask(void); -void hash_init(void); -void forget_created(ino_t ino, dev_t dev); -char *remember_copied(char const *node, ino_t ino, dev_t dev) - __attribute__((__nonnull__)); -char *src_to_dest_lookup(ino_t ino, dev_t dev); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -extern int target_directory_operand(char const *file, struct stat *st); - -inline __attribute__((__pure__)) _Bool - -target_dirfd_valid(int fd) { - return fd != -1 - (-100 == -1); -} - -int fdutimens(int, char const *, struct timespec const[2]); -int utimens(char const *, struct timespec const[2]); -int lutimens(char const *, struct timespec const[2]); - -int fdutimensat(int fd, int dir, char const *name, struct timespec const[2], - int atflag); - -inline int lutimensat(int dir, char const *file, - struct timespec const times[2]) { - return utimensat(dir, file, times, 0x100); -} - -_Bool acl_errno_valid(int) __attribute__((__const__)); -int file_has_acl(char const *, struct stat const *); -int qset_acl(char const *, int, mode_t); -int set_acl(char const *, int, mode_t); -int qcopy_acl(char const *, int, char const *, int, mode_t); -int copy_acl(char const *, int, char const *, int, mode_t); -int chmod_or_fchmod(char const *, int, mode_t); -struct dir_attr { - struct stat st; - - _Bool restore_mode; - size_t slash_offset; - struct dir_attr *next; -}; - -enum { - ATTRIBUTES_ONLY_OPTION = 0x7f + 1, - COPY_CONTENTS_OPTION, - NO_PRESERVE_ATTRIBUTES_OPTION, - PARENTS_OPTION, - PRESERVE_ATTRIBUTES_OPTION, - REFLINK_OPTION, - SPARSE_OPTION, - STRIP_TRAILING_SLASHES_OPTION, - UNLINK_DEST_BEFORE_OPENING -}; - -static _Bool selinux_enabled; - -static _Bool parents_option = 0; - -static _Bool remove_trailing_slashes; - -static char const *const sparse_type_string[] = {"never", "auto", "always", - ((void *)0) - -}; -static enum Sparse_type const sparse_type[] = {SPARSE_NEVER, SPARSE_AUTO, - SPARSE_ALWAYS}; -_Static_assert((sizeof(sparse_type_string) / sizeof *(sparse_type_string)) == - (sizeof(sparse_type) / sizeof *(sparse_type)) + 1, - "verify (" - "ARRAY_CARDINALITY (sparse_type_string) == ARRAY_CARDINALITY " - "(sparse_type) + 1" - ")"); - -static char const *const reflink_type_string[] = {"auto", "always", "never", - ((void *)0) - -}; -static enum Reflink_type const reflink_type[] = {REFLINK_AUTO, REFLINK_ALWAYS, - REFLINK_NEVER}; -_Static_assert((sizeof(reflink_type_string) / sizeof *(reflink_type_string)) == - (sizeof(reflink_type) / sizeof *(reflink_type)) + 1, - "verify (" - "ARRAY_CARDINALITY (reflink_type_string) == ARRAY_CARDINALITY " - "(reflink_type) + 1" - ")"); - -static struct option const long_opts[] = { - {"archive", 0, ((void *)0), 'a'}, - {"attributes-only", 0, ((void *)0), ATTRIBUTES_ONLY_OPTION}, - {"backup", 2, ((void *)0), 'b'}, - {"copy-contents", 0, ((void *)0), COPY_CONTENTS_OPTION}, - {"dereference", 0, ((void *)0), 'L'}, - {"force", 0, ((void *)0), 'f'}, - {"interactive", 0, ((void *)0), 'i'}, - {"link", 0, ((void *)0), 'l'}, - {"no-clobber", 0, ((void *)0), 'n'}, - {"no-dereference", 0, ((void *)0), 'P'}, - {"no-preserve", 1, ((void *)0), NO_PRESERVE_ATTRIBUTES_OPTION}, - {"no-target-directory", 0, ((void *)0), 'T'}, - {"one-file-system", 0, ((void *)0), 'x'}, - {"parents", 0, ((void *)0), PARENTS_OPTION}, - {"path", 0, ((void *)0), PARENTS_OPTION}, - {"preserve", 2, ((void *)0), PRESERVE_ATTRIBUTES_OPTION}, - {"recursive", 0, ((void *)0), 'R'}, - {"remove-destination", 0, ((void *)0), UNLINK_DEST_BEFORE_OPENING}, - {"sparse", 1, ((void *)0), SPARSE_OPTION}, - {"reflink", 2, ((void *)0), REFLINK_OPTION}, - {"strip-trailing-slashes", 0, ((void *)0), STRIP_TRAILING_SLASHES_OPTION}, - {"suffix", 1, ((void *)0), 'S'}, - {"symbolic-link", 0, ((void *)0), 's'}, - {"target-directory", 1, ((void *)0), 't'}, - {"update", 0, ((void *)0), 'u'}, - {"verbose", 0, ((void *)0), 'v'}, - {"context", 2, ((void *)0), 'Z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [-T] SOURCE DEST\n or: %s " - "[OPTION]... SOURCE... DIRECTORY\n or: %s [OPTION]... " - "-t DIRECTORY SOURCE...\n", - 5) - - , - program_name, program_name, program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " -a, --archive same as -dR --preserve=all\n " - "--attributes-only don't copy the file data, just the " - "attributes\n --backup[=CONTROL] make a backup of each " - "existing destination file\n -b like " - "--backup but does not accept an argument\n --copy-contents " - " copy contents of special files when recursive\n -d " - " same as --no-dereference --preserve=links\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -f, --force if an existing destination file " - "cannot be\n opened, remove it and " - "try again (this option\n is " - "ignored when the -n option is also used)\n -i, --interactive " - " prompt before overwrite (overrides a previous -n\n " - " option)\n -H " - "follow command-line symbolic links in SOURCE\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -l, --link hard link files " - "instead of copying\n -L, --dereference " - " always follow symbolic links in SOURCE\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -n, --no-clobber do not overwrite an existing " - "file (overrides\n a " - "previous -i option)\n -P, --no-dereference never " - "follow symbolic links in SOURCE\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -p same as " - "--preserve=mode,ownership,timestamps\n " - "--preserve[=ATTR_LIST] preserve the specified attributes " - "(default:\n " - "mode,ownership,timestamps), if possible\n " - " additional attributes: context, links, " - "xattr,\n all\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --no-preserve=ATTR_LIST don't preserve the specified " - "attributes\n --parents use full source " - "file name under DIRECTORY\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -R, -r, --recursive copy directories recursively\n " - " --reflink[=WHEN] control clone/CoW copies. See below\n " - " --remove-destination remove each existing destination file " - "before\n attempting to open it " - "(contrast with --force)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --sparse=WHEN control creation of sparse " - "files. See below\n --strip-trailing-slashes remove " - "any trailing slashes from each SOURCE\n " - " argument\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -s, --symbolic-link make symbolic links instead " - "of copying\n -S, --suffix=SUFFIX override the " - "usual backup suffix\n -t, --target-directory=DIRECTORY " - "copy all SOURCE arguments into DIRECTORY\n -T, " - "--no-target-directory treat DEST as a normal file\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -u, --update copy only when the SOURCE file is " - "newer\n than the destination file " - "or when the\n destination file is " - "missing\n -v, --verbose explain what is being " - "done\n -x, --one-file-system stay on this file system\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -Z set SELinux security context " - "of destination\n file to " - "default type\n --context[=CTX] like -Z, or if " - "CTX is specified then set the\n " - " SELinux or SMACK security context to CTX\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nBy default, sparse SOURCE files are detected by a crude " - "heuristic and the\ncorresponding DEST file is made sparse as " - "well. That is the behavior\nselected by --sparse=auto. Specify " - "--sparse=always to create a sparse DEST\nfile whenever the SOURCE " - "file contains a long enough sequence of zero bytes.\nUse " - "--sparse=never to inhibit creation of sparse files.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nWhen --reflink[=always] is specified, perform a lightweight " - "copy, where the\ndata blocks are copied only when modified. If " - "this is not possible the copy\nfails, or if --reflink=auto is " - "specified, fall back to a standard copy.\nUse --reflink=never to " - "ensure a standard copy is performed.\n", - 5), - stdout) - - ; - emit_backup_suffix_note(); - fputs_unlocked( - dcgettext(((void *)0), - "\nAs a special case, cp makes a backup of SOURCE when the " - "force and backup\noptions are given and SOURCE and DEST are " - "the same name for an existing,\nregular file.\n", - 5), - stdout) - - ; - emit_ancillary_info("cp"); - } - exit(status); -} -static _Bool - -re_protect(char const *const_dst_name, int dst_dirfd, char const *dst_relname, - struct dir_attr *attr_list, const struct cp_options *x) { - struct dir_attr *p; - char *dst_name; - char *src_name; - - do { - dst_name = (__extension__({ - const char *__old = (const_dst_name); - size_t __len = strlen(__old) + 1; - char *__new = (char *)__builtin_alloca(__len); - (char *)memcpy(__new, __old, __len); - })); - } while (0); - src_name = dst_name + (dst_relname - const_dst_name); - - for (p = attr_list; p; p = p->next) { - dst_name[p->slash_offset] = '\0'; - - if (x->preserve_timestamps) { - struct timespec timespec[2]; - - timespec[0] = get_stat_atime(&p->st); - timespec[1] = get_stat_mtime(&p->st); - - if (utimensat(dst_dirfd, src_name, timespec, 0)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to preserve times for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } - } - - if (x->preserve_ownership) { - if (lchownat(dst_dirfd, src_name, p->st.st_uid, p->st.st_gid) != 0) { - if (!chown_failure_ok(x)) { - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "failed to preserve ownership for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } - - (__extension__({ - __typeof__(lchownat(dst_dirfd, src_name, -1, p->st.st_gid)) __x = - (lchownat(dst_dirfd, src_name, -1, p->st.st_gid)); - (void)__x; - })); - } - } - - if (x->preserve_mode) { - if (copy_acl(src_name, -1, dst_name, -1, p->st.st_mode) != 0) - return 0; - } else if (p->restore_mode) { - if (lchmodat(dst_dirfd, src_name, p->st.st_mode) != 0) { - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "failed to preserve permissions for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dst_name)); - return 0; - } - } - - dst_name[p->slash_offset] = '/'; - } - return 1; -} -static _Bool - -make_dir_parents_private(char const *const_dir, size_t src_offset, - int dst_dirfd, char const *verbose_fmt_string, - struct dir_attr **attr_list, _Bool *new_dst, - const struct cp_options *x) { - struct stat stats; - char *dir; - char *src; - char *dst_dir; - idx_t dirlen = dir_len(const_dir); - - *attr_list = ((void *)0); - - if (dirlen <= src_offset) - return 1; - - do { - dir = (__extension__({ - const char *__old = (const_dir); - size_t __len = strlen(__old) + 1; - char *__new = (char *)__builtin_alloca(__len); - (char *)memcpy(__new, __old, __len); - })); - } while (0); - - src = dir + src_offset; - - dst_dir = __builtin_alloca(dirlen + 1); - memcpy(dst_dir, dir, dirlen); - dst_dir[dirlen] = '\0'; - char const *dst_reldir = dst_dir + src_offset; - while (*dst_reldir == '/') - dst_reldir++; - - if (fstatat(dst_dirfd, dst_reldir, &stats, 0) != 0) { - - char *slash; - - slash = src; - while (*slash == '/') - slash++; - dst_reldir = slash; - - while ((slash = strchr(slash, '/'))) { - struct dir_attr *new; - - _Bool missing_dir; - - *slash = '\0'; - missing_dir = fstatat(dst_dirfd, dst_reldir, &stats, 0) != 0; - - if (missing_dir || x->preserve_ownership || x->preserve_mode || - x->preserve_timestamps) { - - struct stat src_st; - int src_errno = (stat(src, &src_st) != 0 ? (*__errno_location()) - - : ((((src_st.st_mode)) & 0170000) == (0040000)) - - ? 0 - : 20); - if (src_errno) { - error(0, src_errno, - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, src)); - return 0; - } - - new = xmalloc(sizeof *new); - new->st = src_st; - new->slash_offset = slash - dir; - new->restore_mode = 0; - new->next = *attr_list; - *attr_list = new; - } - - if (!set_process_security_ctx(src, dir, missing_dir ? new->st.st_mode : 0, - missing_dir, x)) - return 0; - - if (missing_dir) { - mode_t src_mode; - mode_t omitted_permissions; - mode_t mkdir_mode; - - *new_dst = 1; - src_mode = new->st.st_mode; - - omitted_permissions = - (src_mode & - (x->preserve_ownership ? ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3) - - : x->preserve_mode ? (0200 >> 3) | ((0200 >> 3) >> 3) - - : 0)); - - mkdir_mode = x->explicit_no_preserve_mode - ? ((0400 | 0200 | 0100) | ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3)) - : src_mode; - mkdir_mode &= - (04000 | 02000 | 01000 | (0400 | 0200 | 0100) | - ((0400 | 0200 | 0100) >> 3) | (((0400 | 0200 | 0100) >> 3) >> 3)) & - ~omitted_permissions; - if (mkdirat(dst_dirfd, dst_reldir, mkdir_mode) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot make directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - return 0; - } else { - if (verbose_fmt_string != ((void *)0)) - printf(verbose_fmt_string, src, dir); - } - - if (fstatat(dst_dirfd, dst_reldir, &stats, 0x100)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - return 0; - } - - if (!x->preserve_mode) { - if (omitted_permissions & ~stats.st_mode) - omitted_permissions &= ~cached_umask(); - if (omitted_permissions & ~stats.st_mode || - (stats.st_mode & (0400 | 0200 | 0100)) != (0400 | 0200 | 0100)) { - new->st.st_mode = stats.st_mode | omitted_permissions; - new->restore_mode = 1; - } - } - - mode_t accessible = stats.st_mode | (0400 | 0200 | 0100); - if (stats.st_mode != accessible) { - - if (lchmodat(dst_dirfd, dst_reldir, accessible) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "setting permissions for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - return 0; - } - } - } else if (!((((stats.st_mode)) & 0170000) == (0040000))) { - error(0, 0, - dcgettext(((void *)0), "%s exists but is not a directory", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - return 0; - } else - *new_dst = 0; - - if (!*new_dst && - (x->set_security_context || x->preserve_security_context)) { - if (!set_file_security_ctx(dir, 0, x) && x->require_preserve_context) - return 0; - } - - *slash++ = '/'; - - while (*slash == '/') - slash++; - } - } - - else if (!((((stats.st_mode)) & 0170000) == (0040000))) { - error(0, 0, dcgettext(((void *)0), "%s exists but is not a directory", 5), - quotearg_style(shell_escape_always_quoting_style, dst_dir)); - return 0; - } else { - *new_dst = 0; - } - return 1; -} - -static _Bool - -do_copy(int n_files, char **file, char const *target_directory, - - _Bool no_target_directory, struct cp_options *x) { - struct stat sb; - - _Bool new_dst = 0; - - _Bool ok = 1; - - if (n_files <= !target_directory) { - if (n_files <= 0) - error(0, 0, dcgettext(((void *)0), "missing file operand", 5)); - else - error(0, 0, - dcgettext(((void *)0), "missing destination file operand after %s", - 5), - quotearg_style(shell_escape_always_quoting_style, file[0])); - usage(1); - } - - sb.st_mode = 0; - int target_dirfd = -100; - if (no_target_directory) { - if (target_directory) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot " - "combine --target-directory (-t) \" \"and " - "--no-target-directory (-T)\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot combine --target-directory (-t) " - "and --no-target-directory (-T)", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot combine --target-directory (-t) " - "and --no-target-directory (-T)", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - if (2 < n_files) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quotearg_style(shell_escape_always_quoting_style, file[2])); - usage(1); - } - } else if (target_directory) { - target_dirfd = target_directory_operand(target_directory, &sb); - if (!target_dirfd_valid(target_dirfd)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"target directory %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "target_directory)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "target directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, - target_directory)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "target directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, - target_directory)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else { - char const *lastfile = file[n_files - 1]; - int fd = target_directory_operand(lastfile, &sb); - if (target_dirfd_valid(fd)) { - target_dirfd = fd; - target_directory = lastfile; - n_files--; - } else { - int err = (*__errno_location()); - if (err == 2) - new_dst = 1; - if (2 < n_files || (O_PATHSEARCH == 00 && err == 13 - - && (sb.st_mode || stat(lastfile, &sb) == 0) && - ((((sb.st_mode)) & 0170000) == (0040000)))) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, err, dcgettext (((void *)0), \"target %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "lastfile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, err, dcgettext(((void *)0), "target %s", 5), - quotearg_style(shell_escape_always_quoting_style, - lastfile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, err, dcgettext(((void *)0), "target %s", 5), - quotearg_style(shell_escape_always_quoting_style, - lastfile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } - - if (target_directory) { - - if (2 <= n_files) { - dest_info_init(x); - src_info_init(x); - } - - for (int i = 0; i < n_files; i++) { - char *dst_name; - - _Bool parent_exists = 1; - struct dir_attr *attr_list; - char *arg_in_concat = ((void *)0); - char *arg = file[i]; - - if (remove_trailing_slashes) - strip_trailing_slashes(arg); - - if (parents_option) { - char *arg_no_trailing_slash; - - do { - arg_no_trailing_slash = (__extension__({ - const char *__old = (arg); - size_t __len = strlen(__old) + 1; - char *__new = (char *)__builtin_alloca(__len); - (char *)memcpy(__new, __old, __len); - })); - } while (0); - strip_trailing_slashes(arg_no_trailing_slash); - - dst_name = file_name_concat(target_directory, arg_no_trailing_slash, - &arg_in_concat); - - parent_exists = (make_dir_parents_private( - dst_name, arg_in_concat - dst_name, target_dirfd, - (x->verbose ? "%s -> %s\n" : ((void *)0)), &attr_list, &new_dst, - x)); - - while (*arg_in_concat == '/') - arg_in_concat++; - } else { - char *arg_base; - - do { - arg_base = (__extension__({ - const char *__old = (last_component(arg)); - size_t __len = strlen(__old) + 1; - char *__new = (char *)__builtin_alloca(__len); - (char *)memcpy(__new, __old, __len); - })); - } while (0); - strip_trailing_slashes(arg_base); - - arg_base += (strcmp(arg_base, "..") == 0); - dst_name = file_name_concat(target_directory, arg_base, &arg_in_concat); - } - - if (!parent_exists) { - - ok = 0; - } else { - - _Bool copy_into_self; - ok &= copy(arg, dst_name, target_dirfd, arg_in_concat, new_dst, x, - ©_into_self, ((void *)0)); - - if (parents_option) - ok &= re_protect(dst_name, target_dirfd, arg_in_concat, attr_list, x); - } - - if (parents_option) { - while (attr_list) { - struct dir_attr *p = attr_list; - attr_list = attr_list->next; - free(p); - } - } - - free(dst_name); - } - } else { - char const *source = file[0]; - char const *dest = file[1]; - - _Bool unused; - - if (parents_option) { - error(0, 0, - - dcgettext(((void *)0), - "with --parents, the destination must be a directory", - 5)); - usage(1); - } - - if (x->unlink_dest_after_failed_open && x->backup_type != no_backups && - (strcmp(source, dest) == 0) && !new_dst && - (sb.st_mode != 0 || stat(dest, &sb) == 0) && - ((((sb.st_mode)) & 0170000) == (0100000))) { - static struct cp_options x_tmp; - - dest = find_backup_file_name(-100, dest, x->backup_type); - - x_tmp = *x; - x_tmp.backup_type = no_backups; - x = &x_tmp; - } - - ok = copy(source, dest, -100, dest, -new_dst, x, &unused, ((void *)0)); - } - - return ok; -} - -static void cp_option_init(struct cp_options *x) { - cp_options_default(x); - x->copy_as_regular = 1; - x->dereference = DEREF_UNDEFINED; - x->unlink_dest_before_opening = 0; - x->unlink_dest_after_failed_open = 0; - x->hard_link = 0; - x->interactive = I_UNSPECIFIED; - x->move_mode = 0; - x->install_mode = 0; - x->one_file_system = 0; - x->reflink_mode = REFLINK_AUTO; - - x->preserve_ownership = 0; - x->preserve_links = 0; - x->preserve_mode = 0; - x->preserve_timestamps = 0; - x->explicit_no_preserve_mode = 0; - x->preserve_security_context = 0; - x->require_preserve_context = 0; - x->set_security_context = ((void *)0); - x->preserve_xattr = 0; - x->reduce_diagnostics = 0; - x->require_preserve_xattr = 0; - - x->data_copy_required = 1; - x->require_preserve = 0; - x->recursive = 0; - x->sparse_mode = SPARSE_AUTO; - x->symbolic_link = 0; - x->set_mode = 0; - x->mode = 0; - - x->stdin_tty = 0; - - x->update = 0; - x->verbose = 0; - - x->open_dangling_dest_symlink = getenv("POSIXLY_CORRECT") != ((void *)0); - - x->dest_info = ((void *)0); - x->src_info = ((void *)0); -} - -static void decode_preserve_arg(char const *arg, struct cp_options *x, - _Bool on_off) { - enum File_attribute { - PRESERVE_MODE, - PRESERVE_TIMESTAMPS, - PRESERVE_OWNERSHIP, - PRESERVE_LINK, - PRESERVE_CONTEXT, - PRESERVE_XATTR, - PRESERVE_ALL - }; - static enum File_attribute const preserve_vals[] = { - PRESERVE_MODE, PRESERVE_TIMESTAMPS, PRESERVE_OWNERSHIP, PRESERVE_LINK, - PRESERVE_CONTEXT, PRESERVE_XATTR, PRESERVE_ALL}; - - static char const *const preserve_args[] = { - "mode", "timestamps", "ownership", "links", "context", - "xattr", "all", ((void *)0) - - }; - _Static_assert((sizeof(preserve_args) / sizeof *(preserve_args)) == - (sizeof(preserve_vals) / sizeof *(preserve_vals)) + 1, - "verify (" - "ARRAY_CARDINALITY (preserve_args) == ARRAY_CARDINALITY " - "(preserve_vals) + 1" - ")"); - - char *arg_writable = xstrdup(arg); - char *s = arg_writable; - do { - - char *comma = strchr(s, ','); - enum File_attribute val; - - if (comma) - *comma++ = 0; - - val = ((preserve_vals)[__xargmatch_internal( - on_off ? "--preserve" : "--no-preserve", s, preserve_args, - (void const *)(preserve_vals), sizeof *(preserve_vals), argmatch_die, - 1)]); - switch (val) { - case PRESERVE_MODE: - x->preserve_mode = on_off; - x->explicit_no_preserve_mode = !on_off; - break; - - case PRESERVE_TIMESTAMPS: - x->preserve_timestamps = on_off; - break; - - case PRESERVE_OWNERSHIP: - x->preserve_ownership = on_off; - break; - - case PRESERVE_LINK: - x->preserve_links = on_off; - break; - - case PRESERVE_CONTEXT: - x->require_preserve_context = on_off; - x->preserve_security_context = on_off; - break; - - case PRESERVE_XATTR: - x->preserve_xattr = on_off; - x->require_preserve_xattr = on_off; - break; - - case PRESERVE_ALL: - x->preserve_mode = on_off; - x->preserve_timestamps = on_off; - x->preserve_ownership = on_off; - x->preserve_links = on_off; - x->explicit_no_preserve_mode = !on_off; - if (selinux_enabled) - x->preserve_security_context = on_off; - x->preserve_xattr = on_off; - break; - - default: - abort(); - } - s = comma; - } while (s); - - free(arg_writable); -} - -int main(int argc, char **argv) { - int c; - - _Bool ok; - - _Bool make_backups = 0; - char const *backup_suffix = ((void *)0); - char *version_control_string = ((void *)0); - struct cp_options x; - - _Bool copy_contents = 0; - char *target_directory = ((void *)0); - - _Bool no_target_directory = 0; - char const *scontext = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdin); - - selinux_enabled = (0 < is_selinux_enabled()); - cp_option_init(&x); - - while ((c = getopt_long(argc, argv, "abdfHilLnprst:uvxPRS:TZ", long_opts, - ((void *)0))) != -1) { - switch (c) { - case SPARSE_OPTION: - x.sparse_mode = ((sparse_type)[__xargmatch_internal( - "--sparse", optarg, sparse_type_string, (void const *)(sparse_type), - sizeof *(sparse_type), argmatch_die, 1)]); - break; - - case REFLINK_OPTION: - if (optarg == ((void *)0)) - x.reflink_mode = REFLINK_ALWAYS; - else - x.reflink_mode = ((reflink_type)[__xargmatch_internal( - "--reflink", optarg, reflink_type_string, - (void const *)(reflink_type), sizeof *(reflink_type), argmatch_die, - 1)]); - break; - - case 'a': - - x.dereference = DEREF_NEVER; - x.preserve_links = 1; - x.preserve_ownership = 1; - x.preserve_mode = 1; - x.preserve_timestamps = 1; - x.require_preserve = 1; - if (selinux_enabled) - x.preserve_security_context = 1; - x.preserve_xattr = 1; - x.reduce_diagnostics = 1; - x.recursive = 1; - break; - - case 'b': - make_backups = 1; - if (optarg) - version_control_string = optarg; - break; - - case ATTRIBUTES_ONLY_OPTION: - x.data_copy_required = 0; - break; - - case COPY_CONTENTS_OPTION: - copy_contents = 1; - break; - - case 'd': - x.preserve_links = 1; - x.dereference = DEREF_NEVER; - break; - - case 'f': - x.unlink_dest_after_failed_open = 1; - break; - - case 'H': - x.dereference = DEREF_COMMAND_LINE_ARGUMENTS; - break; - - case 'i': - x.interactive = I_ASK_USER; - break; - - case 'l': - x.hard_link = 1; - break; - - case 'L': - x.dereference = DEREF_ALWAYS; - break; - - case 'n': - x.interactive = I_ALWAYS_NO; - break; - - case 'P': - x.dereference = DEREF_NEVER; - break; - - case NO_PRESERVE_ATTRIBUTES_OPTION: - decode_preserve_arg(optarg, &x, 0); - break; - - case PRESERVE_ATTRIBUTES_OPTION: - if (optarg == ((void *)0)) { - - } else { - decode_preserve_arg(optarg, &x, 1); - x.require_preserve = 1; - break; - }; - - case 'p': - x.preserve_ownership = 1; - x.preserve_mode = 1; - x.preserve_timestamps = 1; - x.require_preserve = 1; - break; - - case PARENTS_OPTION: - parents_option = 1; - break; - - case 'r': - case 'R': - x.recursive = 1; - break; - - case UNLINK_DEST_BEFORE_OPENING: - x.unlink_dest_before_opening = 1; - break; - - case STRIP_TRAILING_SLASHES_OPTION: - remove_trailing_slashes = 1; - break; - - case 's': - x.symbolic_link = 1; - break; - - case 't': - if (target_directory) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "target directories specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "multiple target directories specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "multiple target directories specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - target_directory = optarg; - break; - - case 'T': - no_target_directory = 1; - break; - - case 'u': - x.update = 1; - break; - - case 'v': - x.verbose = 1; - break; - - case 'x': - x.one_file_system = 1; - break; - - case 'Z': - - if (selinux_enabled) { - if (optarg) - scontext = optarg; - else { - x.set_security_context = selabel_open(0, - - ((void *)0), 0); - if (!x.set_security_context) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: ignoring --context", 5)); - } - } else if (optarg) { - error(0, 0, - - dcgettext(((void *)0), - "warning: ignoring --context; " - "it requires an SELinux-enabled kernel", - 5) - - ); - } - break; - - case 'S': - make_backups = 1; - backup_suffix = optarg; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "cp", "GNU coreutils", Version, ("Torbjorn Granlund"), - ("David MacKenzie"), ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (x.hard_link && x.symbolic_link) { - error( - 0, 0, - dcgettext(((void *)0), "cannot make both hard and symbolic links", 5)); - usage(1); - } - - if (x.interactive == I_ALWAYS_NO) - x.update = 0; - - if (make_backups && x.interactive == I_ALWAYS_NO) { - error(0, 0, - - dcgettext(((void *)0), - "options --backup and --no-clobber are mutually exclusive", - 5)); - usage(1); - } - - if (x.reflink_mode == REFLINK_ALWAYS && x.sparse_mode != SPARSE_AUTO) { - error(0, 0, - dcgettext(((void *)0), - "--reflink can be used only with --sparse=auto", 5)); - usage(1); - } - - x.backup_type = - (make_backups ? xget_version(dcgettext(((void *)0), "backup type", 5), - version_control_string) - : no_backups); - set_simple_backup_suffix(backup_suffix); - - if (x.dereference == DEREF_UNDEFINED) { - if (x.recursive && !x.hard_link) - - x.dereference = DEREF_NEVER; - else - x.dereference = DEREF_ALWAYS; - } - - if (x.recursive) - x.copy_as_regular = copy_contents; - - if ((x.set_security_context || scontext) && !x.require_preserve_context) - x.preserve_security_context = 0; - - if (x.preserve_security_context && (x.set_security_context || scontext)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot set " - "target context and preserve it\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot set target context and preserve it", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot set target context and preserve it", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (x.require_preserve_context && !selinux_enabled) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot " - "preserve security context \" \"without an " - "SELinux-enabled kernel\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot preserve security context " - "without an SELinux-enabled kernel", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot preserve security context " - "without an SELinux-enabled kernel", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - - if (scontext && setfscreatecon(scontext) < 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to set default file creation context " - "to %s\", 5), quote (scontext)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to set default file creation context to %s", 5), - quote(scontext)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to set default file creation context to %s", 5), - quote(scontext)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - hash_init(); - - ok = do_copy(argc - optind, argv + optind, target_directory, - no_target_directory, &x); - - exit(ok ? 0 : 1); -} diff --git a/tests/source/coreutils/csplit.c b/tests/source/coreutils/csplit.c deleted file mode 100644 index 06a38cd..0000000 --- a/tests/source/coreutils/csplit.c +++ /dev/null @@ -1,8517 +0,0 @@ - - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -typedef unsigned int __re_size_t; -typedef unsigned long int __re_long_size_t; - -typedef long int s_reg_t; -typedef unsigned long int active_reg_t; - -typedef unsigned long int reg_syntax_t; -extern reg_syntax_t re_syntax_options; -typedef enum { - _REG_ENOSYS = -1, - _REG_NOERROR = 0, - _REG_NOMATCH, - - _REG_BADPAT, - _REG_ECOLLATE, - _REG_ECTYPE, - _REG_EESCAPE, - _REG_ESUBREG, - _REG_EBRACK, - _REG_EPAREN, - _REG_EBRACE, - _REG_BADBR, - _REG_ERANGE, - _REG_ESPACE, - _REG_BADRPT, - - _REG_EEND, - _REG_ESIZE, - _REG_ERPAREN -} reg_errcode_t; -struct re_pattern_buffer { - - struct re_dfa_t *buffer; - - __re_long_size_t allocated; - - __re_long_size_t used; - - reg_syntax_t syntax; - - char *fastmap; - - unsigned char *translate; - - size_t re_nsub; - - unsigned can_be_null : 1; - unsigned regs_allocated : 2; - - unsigned fastmap_accurate : 1; - - unsigned no_sub : 1; - - unsigned not_bol : 1; - - unsigned not_eol : 1; - - unsigned newline_anchor : 1; -}; - -typedef struct re_pattern_buffer regex_t; -typedef int regoff_t; - -struct re_registers { - __re_size_t num_regs; - regoff_t *start; - regoff_t *end; -}; -typedef struct { - regoff_t rm_so; - regoff_t rm_eo; -} regmatch_t; -extern reg_syntax_t re_set_syntax(reg_syntax_t __syntax); -extern const char *re_compile_pattern(const char *__pattern, size_t __length, - struct re_pattern_buffer *__buffer) - - __attribute__((__access__(__read_only__, 1, 2))); - -extern int re_compile_fastmap(struct re_pattern_buffer *__buffer); - -extern regoff_t re_search(struct re_pattern_buffer *__buffer, - const char *__String, regoff_t __length, - regoff_t __start, regoff_t __range, - struct re_registers *__regs) - - __attribute__((__access__(__read_only__, 2, 3))); - -extern regoff_t re_search_2(struct re_pattern_buffer *__buffer, - const char *__string1, regoff_t __length1, - const char *__string2, regoff_t __length2, - regoff_t __start, regoff_t __range, - struct re_registers *__regs, regoff_t __stop) - - __attribute__((__access__(__read_only__, 2, 3))) - __attribute__((__access__(__read_only__, 4, 5))); - -extern regoff_t re_match(struct re_pattern_buffer *__buffer, - const char *__String, regoff_t __length, - regoff_t __start, struct re_registers *__regs) - - __attribute__((__access__(__read_only__, 2, 3))); - -extern regoff_t -re_match_2(struct re_pattern_buffer *__buffer, const char *__string1, - regoff_t __length1, const char *__string2, regoff_t __length2, - regoff_t __start, struct re_registers *__regs, regoff_t __stop) - - __attribute__((__access__(__read_only__, 2, 3))) - __attribute__((__access__(__read_only__, 4, 5))); -extern void re_set_registers(struct re_pattern_buffer *__buffer, - struct re_registers *__regs, - __re_size_t __num_regs, regoff_t *__starts, - regoff_t *__ends); -extern int regcomp(regex_t *__restrict __preg, const char *__restrict __pattern, - int __cflags); - -extern int regexec(const regex_t *__restrict __preg, - const char *__restrict __String, size_t __nmatch, - regmatch_t __pmatch[__restrict - - __nmatch], - int __eflags); - -extern size_t regerror(int __errcode, const regex_t *__restrict __preg, - char *__restrict __errbuf, size_t __errbuf_size) - - __attribute__((__access__(__write_only__, 3, 4))); - -extern void regfree(regex_t *__preg); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int fd_reopen(int, char const *, int, mode_t) __attribute__((__nonnull__)); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -extern size_t safe_read(int fd, void *buf, size_t count); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -struct control { - intmax_t offset; - intmax_t lines_required; - intmax_t repeat; - int argnum; - - _Bool repeat_forever; - - _Bool ignore; - - _Bool regexpr; - struct re_pattern_buffer re_compiled; -}; -struct cstring { - idx_t len; - char *str; -}; - -struct line { - idx_t used; - idx_t insert_index; - idx_t retrieve_index; - struct cstring starts[80]; - struct line *next; -}; - -struct buffer_record { - idx_t bytes_alloc; - idx_t bytes_used; - intmax_t start_line; - intmax_t first_available; - idx_t num_lines; - char *buffer; - struct line *line_start; - struct line *curr_line; - struct buffer_record *next; -}; - -static void close_output_file(void); -static void create_output_file(void); -static void delete_all_files(_Bool); -static void save_line_to_file(const struct cstring *line); - -static struct buffer_record *head = ((void *)0); - -static char *hold_area = ((void *)0); - -static idx_t hold_count = 0; - -static intmax_t last_line_number = 0; - -static intmax_t current_line = 0; - -static _Bool have_read_eof = 0; - -static char *volatile filename_space = ((void *)0); - -static char const *volatile prefix = ((void *)0); - -static char *volatile suffix = ((void *)0); - -static int volatile digits = 2; - -static int volatile files_created = 0; - -static intmax_t bytes_written; - -static FILE *output_stream = ((void *)0); - -static char *output_filename = ((void *)0); - -static char **global_argv; - -static _Bool suppress_count; - -static _Bool volatile remove_files; - -static _Bool elide_empty_files; - -static _Bool suppress_matched; - -static struct control *controls; - -static idx_t control_used; - -static sigset_t caught_signals; - -enum { SUPPRESS_MATCHED_OPTION = 0x7f + 1 }; - -static struct option const longopts[] = { - {"digits", 1, ((void *)0), 'n'}, - {"quiet", 0, ((void *)0), 'q'}, - {"silent", 0, ((void *)0), 's'}, - {"keep-files", 0, ((void *)0), 'k'}, - {"elide-empty-files", 0, ((void *)0), 'z'}, - {"prefix", 1, ((void *)0), 'f'}, - {"suffix-format", 1, ((void *)0), 'b'}, - {"suppress-matched", 0, ((void *)0), SUPPRESS_MATCHED_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static void cleanup(void) { - sigset_t oldset; - - close_output_file(); - - sigprocmask(0, &caught_signals, &oldset); - delete_all_files(0); - sigprocmask(2, &oldset, ((void *)0)); -} - -static _Noreturn void cleanup_fatal(void) { - cleanup(); - exit(1); -} - -extern void xalloc_die(void) { - error(0, 0, "%s", dcgettext(((void *)0), "memory exhausted", 5)); - cleanup_fatal(); -} - -static void interrupt_handler(int sig) { - delete_all_files(1); - signal(sig, ((__sighandler_t)0)); - - raise(sig); -} - -static void save_to_hold_area(char *start, idx_t num) { - free(hold_area); - hold_area = start; - hold_count = num; -} - -static idx_t read_input(char *dest, idx_t max_n_bytes) { - idx_t bytes_read; - - if (max_n_bytes == 0) - return 0; - - bytes_read = safe_read(0, dest, max_n_bytes); - - if (bytes_read == 0) - have_read_eof = 1; - - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), dcgettext(((void *)0), "read error", 5)); - cleanup_fatal(); - } - - return bytes_read; -} - -static void clear_line_control(struct line *p) { - p->used = 0; - p->insert_index = 0; - p->retrieve_index = 0; -} - -static struct line *new_line_control(void) { - struct line *p = xmalloc(sizeof *p); - - p->next = ((void *)0); - clear_line_control(p); - - return p; -} - -static void keep_new_line(struct buffer_record *b, char *line_start, - idx_t line_len) { - struct line *l; - - if (b->line_start == ((void *)0)) - b->line_start = b->curr_line = new_line_control(); - - if (b->curr_line->used == 80) { - b->curr_line->next = new_line_control(); - b->curr_line = b->curr_line->next; - } - - l = b->curr_line; - - l->starts[l->insert_index].str = line_start; - l->starts[l->insert_index].len = line_len; - l->used++; - l->insert_index++; -} -static idx_t record_line_starts(struct buffer_record *b) { - char *line_start; - idx_t lines; - idx_t line_length; - - if (b->bytes_used == 0) - return 0; - - lines = 0; - line_start = b->buffer; - char *buffer_end = line_start + b->bytes_used; - *buffer_end = '\n'; - - while (1) { - char *line_end = rawmemchr(line_start, '\n'); - if (line_end == buffer_end) - break; - line_length = line_end - line_start + 1; - keep_new_line(b, line_start, line_length); - line_start = line_end + 1; - lines++; - } - - idx_t bytes_left = buffer_end - line_start; - if (bytes_left) { - if (have_read_eof) { - keep_new_line(b, line_start, bytes_left); - lines++; - } else - save_to_hold_area(ximemdup(line_start, bytes_left), bytes_left); - } - - b->num_lines = lines; - b->first_available = b->start_line = last_line_number + 1; - last_line_number += lines; - - return lines; -} - -static void free_buffer(struct buffer_record *buf) { - for (struct line *l = buf->line_start; l;) { - struct line *n = l->next; - free(l); - l = n; - } - free(buf->buffer); - free(buf); -} - -static __attribute__((__malloc__(free_buffer, 1))) struct buffer_record * -get_new_buffer(idx_t min_size) { - struct buffer_record *new_buffer = xmalloc(sizeof *new_buffer); - new_buffer->bytes_alloc = 0; - new_buffer->buffer = - xpalloc(((void *)0), &new_buffer->bytes_alloc, min_size, -1, 1); - new_buffer->bytes_used = 0; - new_buffer->start_line = new_buffer->first_available = last_line_number + 1; - new_buffer->num_lines = 0; - new_buffer->line_start = new_buffer->curr_line = ((void *)0); - new_buffer->next = ((void *)0); - - return new_buffer; -} - -static void save_buffer(struct buffer_record *buf) { - struct buffer_record *p; - - buf->next = ((void *)0); - buf->curr_line = buf->line_start; - - if (head == ((void *)0)) - head = buf; - else { - for (p = head; p->next; p = p->next) - ; - p->next = buf; - } -} -static _Bool - -load_buffer(void) { - struct buffer_record *b; - idx_t bytes_wanted = 8191; - idx_t bytes_avail; - idx_t lines_found; - char *p; - - if (have_read_eof) - return 0; - - if (bytes_wanted <= hold_count) - bytes_wanted = hold_count + 1; - - while (1) { - b = get_new_buffer(bytes_wanted); - bytes_avail = b->bytes_alloc; - p = b->buffer; - - if (hold_count) { - memcpy(p, hold_area, hold_count); - p += hold_count; - b->bytes_used += hold_count; - bytes_avail -= hold_count; - hold_count = 0; - } - - b->bytes_used += read_input(p, bytes_avail - 1); - - lines_found = record_line_starts(b); - - if (lines_found || have_read_eof) - break; - - if (__builtin_mul_overflow(b->bytes_alloc, 2, &bytes_wanted)) - xalloc_die(); - free_buffer(b); - } - - if (lines_found) - save_buffer(b); - else - free_buffer(b); - - return lines_found != 0; -} - -static intmax_t get_first_line_in_buffer(void) { - if (head == ((void *)0) && !load_buffer()) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"input disappeared\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "input disappeared", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "input disappeared", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return head->first_available; -} - -static struct cstring *remove_line(void) { - - static struct buffer_record *prev_buf = ((void *)0); - - struct cstring *line; - struct line *l; - - if (prev_buf) { - free_buffer(prev_buf); - prev_buf = ((void *)0); - } - - if (head == ((void *)0) && !load_buffer()) - return ((void *)0); - - if (current_line < head->first_available) - current_line = head->first_available; - - ++(head->first_available); - - l = head->curr_line; - - line = &l->starts[l->retrieve_index]; - - if (++l->retrieve_index == l->used) { - - head->curr_line = l->next; - if (head->curr_line == ((void *)0) || head->curr_line->used == 0) { - - prev_buf = head; - head = head->next; - } - } - - return line; -} - -static struct cstring *find_line(intmax_t linenum) { - struct buffer_record *b; - - if (head == ((void *)0) && !load_buffer()) - return ((void *)0); - - if (linenum < head->start_line) - return ((void *)0); - - for (b = head;;) { - - ((void)sizeof((b) ? 1 : 0), __extension__({ - if (b) - ; - else - __assert_fail("b", "src/csplit.c", 583, - __extension__ __PRETTY_FUNCTION__); - })); - if (linenum < b->start_line + b->num_lines) { - - struct line *l; - idx_t offset; - - l = b->line_start; - offset = linenum - b->start_line; - - while (offset >= 80) { - l = l->next; - offset -= 80; - } - return &l->starts[offset]; - } - if (b->next == ((void *)0) && !load_buffer()) - return ((void *)0); - b = b->next; - } -} - -static _Bool - -no_more_lines(void) { - return find_line(current_line + 1) == ((void *)0); -} - -static void set_input_file(char const *name) { - if (!(strcmp(name, "-") == 0) && fd_reopen(0, name, 00, 0) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot open %s for reading\", 5), quotearg_style " - "(shell_escape_always_quoting_style, name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static void write_to_file(intmax_t last_line, _Bool ignore, int argnum) { - struct cstring *line; - intmax_t first_line; - intmax_t lines; - intmax_t i; - - first_line = get_first_line_in_buffer(); - - if (first_line > last_line) { - error(0, 0, dcgettext(((void *)0), "%s: line number out of range", 5), - quote(global_argv[argnum])); - cleanup_fatal(); - } - - lines = last_line - first_line; - - for (i = 0; i < lines; i++) { - line = remove_line(); - if (line == ((void *)0)) { - error(0, 0, dcgettext(((void *)0), "%s: line number out of range", 5), - quote(global_argv[argnum])); - cleanup_fatal(); - } - if (!ignore) - save_line_to_file(line); - } -} - -static void dump_rest_of_file(void) { - struct cstring *line; - - while ((line = remove_line()) != ((void *)0)) - save_line_to_file(line); -} - -static void handle_line_error(const struct control *p, intmax_t repetition) { - char buf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - - fprintf(stderr, dcgettext(((void *)0), "%s: %s: line number out of range", 5), - program_name, quote(imaxtostr(p->lines_required, buf))); - if (repetition) - fprintf(stderr, dcgettext(((void *)0), " on repetition %s\n", 5), - imaxtostr(repetition, buf)); - else - fprintf(stderr, "\n"); - - cleanup_fatal(); -} - -static void process_line_count(const struct control *p, intmax_t repetition) { - intmax_t linenum; - intmax_t last_line_to_save = p->lines_required * (repetition + 1); - - create_output_file(); - - if (no_more_lines() && suppress_matched) - handle_line_error(p, repetition); - - linenum = get_first_line_in_buffer(); - while (linenum++ < last_line_to_save) { - struct cstring *line = remove_line(); - if (line == ((void *)0)) - handle_line_error(p, repetition); - save_line_to_file(line); - } - - close_output_file(); - - if (suppress_matched) - remove_line(); - - if (no_more_lines() && !suppress_matched) - handle_line_error(p, repetition); -} - -static void regexp_error(struct control *p, intmax_t repetition, _Bool ignore) { - fprintf(stderr, dcgettext(((void *)0), "%s: %s: match not found", 5), - program_name, quote(global_argv[p->argnum])); - - if (repetition) { - char buf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - fprintf(stderr, dcgettext(((void *)0), " on repetition %s\n", 5), - imaxtostr(repetition, buf)); - } else - fprintf(stderr, "\n"); - - if (!ignore) { - dump_rest_of_file(); - close_output_file(); - } - cleanup_fatal(); -} - -static void process_regexp(struct control *p, intmax_t repetition) { - struct cstring *line; - idx_t line_len; - intmax_t break_line; - - _Bool ignore = p->ignore; - regoff_t ret; - - if (!ignore) - create_output_file(); - - if (p->offset >= 0) { - while (1) { - line = find_line(++current_line); - if (line == ((void *)0)) { - if (p->repeat_forever) { - if (!ignore) { - dump_rest_of_file(); - close_output_file(); - } - exit(0); - } else - regexp_error(p, repetition, ignore); - } - line_len = line->len; - if (line->str[line_len - 1] == '\n') - line_len--; - ret = re_search(&p->re_compiled, line->str, line_len, 0, line_len, - ((void *)0)); - if (ret == -2) { - error(0, 0, - dcgettext(((void *)0), "error in regular expression search", 5)); - cleanup_fatal(); - } - if (ret == -1) { - line = remove_line(); - if (!ignore) - save_line_to_file(line); - } else - break; - } - } else { - - while (1) { - line = find_line(++current_line); - if (line == ((void *)0)) { - if (p->repeat_forever) { - if (!ignore) { - dump_rest_of_file(); - close_output_file(); - } - exit(0); - } else - regexp_error(p, repetition, ignore); - } - line_len = line->len; - if (line->str[line_len - 1] == '\n') - line_len--; - ret = re_search(&p->re_compiled, line->str, line_len, 0, line_len, - ((void *)0)); - if (ret == -2) { - error(0, 0, - dcgettext(((void *)0), "error in regular expression search", 5)); - cleanup_fatal(); - } - if (ret != -1) - break; - } - } - - break_line = current_line + p->offset; - - write_to_file(break_line, ignore, p->argnum); - - if (!ignore) - close_output_file(); - - if (p->offset > 0) - current_line = break_line; - - if (suppress_matched) - remove_line(); -} - -static void split_file(void) { - for (idx_t i = 0; i < control_used; i++) { - intmax_t j; - if (controls[i].regexpr) { - for (j = 0; (controls[i].repeat_forever || j <= controls[i].repeat); j++) - process_regexp(&controls[i], j); - } else { - for (j = 0; (controls[i].repeat_forever || j <= controls[i].repeat); j++) - process_line_count(&controls[i], j); - } - } - - create_output_file(); - dump_rest_of_file(); - close_output_file(); -} -static char *make_filename(int num) { - strcpy(filename_space, prefix); - if (suffix) - sprintf(filename_space + strlen(prefix), suffix, num); - else - sprintf(filename_space + strlen(prefix), "%0*d", digits, num); - return filename_space; -} - -static void create_output_file(void) { - int nfiles = files_created; - - _Bool fopen_ok; - int fopen_errno; - - output_filename = make_filename(nfiles); - - if (nfiles == 0x7fffffff) { - fopen_ok = 0; - fopen_errno = 75; - } else { - - sigset_t oldset; - sigprocmask(0, &caught_signals, &oldset); - output_stream = fopen_safer(output_filename, "w"); - fopen_ok = (output_stream != ((void *)0)); - fopen_errno = (*__errno_location()); - files_created = nfiles + fopen_ok; - sigprocmask(2, &oldset, ((void *)0)); - } - - if (!fopen_ok) { - error( - 0, fopen_errno, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, output_filename)); - cleanup_fatal(); - } - bytes_written = 0; -} - -static void delete_all_files(_Bool in_signal_handler) { - if (!remove_files) - return; - - for (int i = files_created; 0 <= --i;) { - char const *name = make_filename(i); - if (unlink(name) != 0 && (*__errno_location()) != 2 && !in_signal_handler) - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, name)); - } - - files_created = 0; -} - -static void close_output_file(void) { - if (output_stream) { - if (ferror_unlocked(output_stream)) { - error(0, 0, dcgettext(((void *)0), "write error for %s", 5), - quotearg_style(shell_escape_always_quoting_style, output_filename)); - output_stream = ((void *)0); - cleanup_fatal(); - } - if (rpl_fclose(output_stream) != 0) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - output_filename)); - output_stream = ((void *)0); - cleanup_fatal(); - } - if (bytes_written == 0 && elide_empty_files) { - sigset_t oldset; - - _Bool unlink_ok; - int unlink_errno; - - sigprocmask(0, &caught_signals, &oldset); - unlink_ok = (unlink(output_filename) == 0); - unlink_errno = (*__errno_location()); - files_created--; - sigprocmask(2, &oldset, ((void *)0)); - - if (!unlink_ok && unlink_errno != 2) - error(0, unlink_errno, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - output_filename)); - } else { - if (!suppress_count) { - char buf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - fprintf(stdout, "%s\n", imaxtostr(bytes_written, buf)); - } - } - output_stream = ((void *)0); - } -} - -static void save_line_to_file(const struct cstring *line) { - idx_t l = fwrite_unlocked(line->str, sizeof(char), line->len, output_stream); - if (l != line->len) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "write error for %s", 5), - quotearg_style(shell_escape_always_quoting_style, output_filename)); - output_stream = ((void *)0); - cleanup_fatal(); - } - bytes_written += line->len; -} - -static struct control *new_control_record(void) { - static idx_t control_allocated = 0; - struct control *p; - - if (control_used == control_allocated) - controls = xpalloc(controls, &control_allocated, 1, -1, sizeof *controls); - p = &controls[control_used++]; - p->regexpr = 0; - p->repeat = 0; - p->repeat_forever = 0; - p->lines_required = 0; - p->offset = 0; - return p; -} - -static void check_for_offset(struct control *p, char const *str, - char const *num) { - if (xstrtoimax(num, ((void *)0), 10, &p->offset, "") != LONGINT_OK) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: integer expected " - "after delimiter\", 5), quote (str)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "%s: integer expected after delimiter", 5), - quote(str)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "%s: integer expected after delimiter", 5), - quote(str)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static void parse_repeat_count(int argnum, struct control *p, char *str) { - char *end; - - end = str + strlen(str) - 1; - if (*end != '}') - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: '}' is required in " - "repeat count\", 5), quote (str)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: '}' is required in repeat count", - 5), - quote(str)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: '}' is required in repeat count", - 5), - quote(str)), - ((0) ? (void)0 : __builtin_unreachable())))); - *end = '\0'; - - if (str + 1 == end - 1 && *(str + 1) == '*') - p->repeat_forever = 1; - else { - uintmax_t val; - if (xstrtoumax(str + 1, ((void *)0), 10, &val, "") != LONGINT_OK || - (9223372036854775807L) < val) { - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s}: " - "integer required between '{' and '}'\", 5), quote " - "(global_argv[argnum])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "%s}: integer required between '{' and '}'", 5), - quote(global_argv[argnum])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "%s}: integer required between '{' and '}'", 5), - quote(global_argv[argnum])), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - p->repeat = val; - } - - *end = '}'; -} - -static struct control *extract_regexp(int argnum, _Bool ignore, - char const *str) { - idx_t len; - char delim = *str; - char const *closing_delim; - struct control *p; - char const *err; - - closing_delim = strrchr(str + 1, delim); - if (closing_delim == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: closing delimiter " - "'%c' missing\", 5), str, delim), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: closing delimiter '%c' missing", - 5), - str, delim), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: closing delimiter '%c' missing", - 5), - str, delim), - ((0) ? (void)0 : __builtin_unreachable())))); - - len = closing_delim - str - 1; - p = new_control_record(); - p->argnum = argnum; - p->ignore = ignore; - - p->regexpr = 1; - p->re_compiled.buffer = ((void *)0); - p->re_compiled.allocated = 0; - p->re_compiled.fastmap = xmalloc((0x7f * 2 + 1) + 1); - p->re_compiled.translate = ((void *)0); - re_syntax_options = - ((((((unsigned long int)1) << 1) << 1) | - ((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) << 1) | - (((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) << 1) - << 1) | - (((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) | - ((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1)) | - (((unsigned long int)1) << 1) | - ((((((((((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1)) & - ~((((((((((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) & - ~((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1); - err = re_compile_pattern(str + 1, len, &p->re_compiled); - if (err) { - error(0, 0, dcgettext(((void *)0), "%s: invalid regular expression: %s", 5), - quote(str), err); - cleanup_fatal(); - } - - if (closing_delim[1]) - check_for_offset(p, str, closing_delim + 1); - - return p; -} - -static void parse_patterns(int argc, int start, char **argv) { - struct control *p; - static intmax_t last_val = 0; - - for (int i = start; i < argc; i++) { - if (*argv[i] == '/' || *argv[i] == '%') { - p = extract_regexp(i, *argv[i] == '%', argv[i]); - } else { - p = new_control_record(); - p->argnum = i; - - uintmax_t val; - if (xstrtoumax(argv[i], ((void *)0), 10, &val, "") != LONGINT_OK || - (9223372036854775807L) < val) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: invalid " - "pattern\", 5), quote (argv[i])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "%s: invalid pattern", 5), - quote(argv[i])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "%s: invalid pattern", 5), - quote(argv[i])), - ((0) ? (void)0 : __builtin_unreachable())))); - if (val == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: line number must " - "be greater than zero\", 5), argv[i]), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "%s: line number must be greater than zero", - 5), - argv[i]), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "%s: line number must be greater than zero", - 5), - argv[i]), - ((0) ? (void)0 : __builtin_unreachable())))); - if (val < last_val) { - char buf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"line number %s is " - "smaller than preceding line number, %s\", 5), quote " - "(argv[i]), imaxtostr (last_val, buf)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "line number %s is smaller than preceding " - "line number, %s", - 5), - quote(argv[i]), imaxtostr(last_val, buf)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "line number %s is smaller than preceding " - "line number, %s", - 5), - quote(argv[i]), imaxtostr(last_val, buf)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - if (val == last_val) - error( - 0, 0, - - dcgettext( - ((void *)0), - "warning: line number %s is the same as preceding line number", - 5), - quote(argv[i])); - - last_val = val; - - p->lines_required = val; - } - - if (i + 1 < argc && *argv[i + 1] == '{') { - - i++; - parse_repeat_count(i, p, argv[i]); - } - } -} - -enum { FLAG_THOUSANDS = 1, FLAG_ALTERNATIVE = 2 }; - -static idx_t get_format_flags(char const *format, int *flags_ptr) { - int flags = 0; - - for (idx_t count = 0;; count++) { - switch (format[count]) { - case '-': - case '0': - break; - - case '\'': - flags |= FLAG_THOUSANDS; - break; - - case ' flags |= FLAG_ALTERNATIVE; break; - - default: - *flags_ptr = flags; - return count; - } - } -} - -static void check_format_conv_type(char *format, int flags) { - unsigned char ch = *format; - int compatible_flags = FLAG_THOUSANDS; - - switch (ch) { - case 'd': - case 'i': - break; - - case 'u': - *format = 'd'; - break; - - case 'o': - case 'x': - case 'X': - compatible_flags = FLAG_ALTERNATIVE; - break; - - case 0: - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"missing " - "conversion specifier in suffix\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "missing conversion specifier in suffix", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "missing conversion specifier in suffix", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - default: - if (((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISprint)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid conversion " - "specifier in suffix: %c\", 5), ch), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "invalid conversion specifier in suffix: %c", 5), - ch), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "invalid conversion specifier in suffix: %c", 5), - ch), - ((0) ? (void)0 : __builtin_unreachable())))); - else - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid conversion " - "specifier in suffix: \\\\%.3o\", 5), ch), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "invalid conversion specifier in suffix: \\%.3o", - 5), - ch), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "invalid conversion specifier in suffix: \\%.3o", - 5), - ch), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (flags & ~compatible_flags) - ((!!sizeof (struct { _Static_assert ( - 1 - , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid flags in conversion specification: %%%c%c\", 5), (flags & ~ compatible_flags & FLAG_ALTERNATIVE ? ' 1 - , 0, - dcgettext (((void *)0), - "invalid flags in conversion specification: %%%c%c" - , 5) - , (flags & ~ compatible_flags & FLAG_ALTERNATIVE ? ' 0 - ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( - 1 - , 0, - dcgettext (((void *)0), - "invalid flags in conversion specification: %%%c%c" - , 5) - , (flags & ~ compatible_flags & FLAG_ALTERNATIVE ? ' 0 - ) ? (void) 0 : __builtin_unreachable ())))) - - ; -} - - - - -static idx_t -max_out (char *format) -{ - _Bool percent = 0; - - for (char *f = format; *f; f++) - if (*f == '%' && *++f != '%') { - if (percent) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"too many %% " - "conversion specifications in suffix\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext( - ((void *)0), - "too many %% conversion specifications in suffix", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext( - ((void *)0), - "too many %% conversion specifications in suffix", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - percent = 1; - int flags; - f += get_format_flags(f, &flags); - while (((unsigned int)(*f) - '0' <= 9)) - f++; - if (*f == '.') - while (((unsigned int)(*++f) - '0' <= 9)) - continue; - check_format_conv_type(f, flags); - } - - if (!percent) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"missing %% " - "conversion specification in suffix\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "missing %% conversion specification in suffix", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "missing %% conversion specification in suffix", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - int maxlen = snprintf(((void *)0), 0, format, 0x7fffffff); - if (maxlen < 0) - xalloc_die(); - return maxlen; -} - -int -main (int argc, char **argv) -{ - int optc; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - global_argv = argv; - controls = ((void *)0); - control_used = 0; - suppress_count = 0; - remove_files = 1; - suppress_matched = 0; - prefix = "xx"; - - while ((optc = getopt_long(argc, argv, "f:b:kn:sqz", longopts, - ((void *)0))) != -1) - switch (optc) { - case 'f': - prefix = optarg; - break; - - case 'b': - suffix = optarg; - break; - - case 'k': - remove_files = 0; - break; - - case 'n': - digits = xdectoimax(optarg, 0, - (((0x7fffffff) < ((9223372036854775807L))) - ? (0x7fffffff) - : ((9223372036854775807L))), - "", - - dcgettext(((void *)0), "invalid number", 5), 0); - break; - - case 's': - case 'q': - suppress_count = 1; - break; - - case 'z': - elide_empty_files = 1; - break; - - case SUPPRESS_MATCHED_OPTION: - suppress_matched = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "csplit", "GNU coreutils", Version, - ("Stuart Kemp"), ("David MacKenzie"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - - if (argc - optind < 2) { - if (argc <= optind) - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - else - error(0, 0, dcgettext(((void *)0), "missing operand after %s", 5), - quote(argv[argc - 1])); - usage(1); - } - - idx_t prefix_len = strlen(prefix); - idx_t max_digit_string_len = - (suffix - ? max_out(suffix) - : ((((((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1)))) > (digits)) - ? ((((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1)))) - : (digits))); - idx_t filename_size; - if (__builtin_add_overflow(prefix_len, max_digit_string_len + 1, - &filename_size)) - xalloc_die(); - filename_space = ximalloc(filename_size); - - set_input_file(argv[optind++]); - - parse_patterns(argc, optind, argv); - - { - int i; - static int const sig[] = { - - 14, 1, 2, 13, 3, 15, - - 29, - - 27, - - 26, - - 24, - - 25, - - }; - enum { nsigs = (sizeof(sig) / sizeof *(sig)) }; - - struct sigaction act; - - sigemptyset(&caught_signals); - for (i = 0; i < nsigs; i++) { - sigaction(sig[i], ((void *)0), &act); - if (act.__sigaction_handler.sa_handler != ((__sighandler_t)1)) - sigaddset(&caught_signals, sig[i]); - } - - act.__sigaction_handler.sa_handler = interrupt_handler; - act.sa_mask = caught_signals; - act.sa_flags = 0; - - for (i = 0; i < nsigs; i++) - if (sigismember(&caught_signals, sig[i])) - sigaction(sig[i], &act, ((void *)0)); - } - - split_file(); - - if (close(0) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)); - cleanup_fatal(); - } - - return 0; -} - -void -usage (int status) -{ - if (status != 0) - do { - fprintf(stderr, - dcgettext(((void *)0), - "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext(((void *)0), "Usage: %s [OPTION]... FILE PATTERN...\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Output pieces of FILE separated by PATTERN(s) to files " - "'xx00', 'xx01', ...,\nand output byte counts of each " - "piece to standard output.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), "\nRead standard input if FILE is -\n", 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -b, --suffix-format=FORMAT use sprintf FORMAT " - "instead of %02d\n -f, --prefix=PREFIX use " - "PREFIX instead of 'xx'\n -k, --keep-files do " - "not remove output files on errors\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --suppress-matched suppress the " - "lines matching PATTERN\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -n, --digits=DIGITS use specified number of " - "digits instead of 2\n -s, --quiet, --silent do " - "not print counts of output file sizes\n -z, " - "--elide-empty-files remove empty output files\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --help display this help and exit\n", 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " --version output version information and exit\n", 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nEach PATTERN may be:\n INTEGER copy up to but " - "not including specified line number\n /REGEXP/[OFFSET] " - "copy up to but not including a matching line\n " - "%REGEXP%[OFFSET] skip to, but not including a matching " - "line\n {INTEGER} repeat the previous pattern " - "specified number of times\n {*} repeat the " - "previous pattern as many times as possible\n\nA line OFFSET " - "is an integer optionally preceded by '+' or '-'\n", - 5), - stdout); - emit_ancillary_info("csplit"); - } - exit(status); -} diff --git a/tests/source/coreutils/cut.c b/tests/source/coreutils/cut.c deleted file mode 100644 index 1e271dd..0000000 --- a/tests/source/coreutils/cut.c +++ /dev/null @@ -1,7394 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -extern ssize_t getndelim2(char **lineptr, size_t *linesize, size_t offset, - size_t nmax, int delim1, int delim2, FILE *stream); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); - -struct field_range_pair { - uintmax_t lo; - uintmax_t hi; -}; - -extern struct field_range_pair *frp; - -extern size_t n_frp; - -enum { - SETFLD_ALLOW_DASH = 0x01, - SETFLD_COMPLEMENT = 0x02, - SETFLD_ERRMSG_USE_POS = 0x04 - -}; - -extern void set_fields(char const *fieldstr, unsigned int options); -static struct field_range_pair *current_rp; -static char *field_1_buffer; - -static size_t field_1_bufsize; - -static _Bool suppress_non_delimited; - -static _Bool complement; - -static unsigned char delim; - -static unsigned char line_delim = '\n'; - -static size_t output_delimiter_length; - -static char *output_delimiter_string; - -static char output_delimiter_default[1]; - -static _Bool have_read_stdin; - -enum { OUTPUT_DELIMITER_OPTION = 0x7f + 1, COMPLEMENT_OPTION }; - -static struct option const longopts[] = { - {"bytes", 1, ((void *)0), 'b'}, - {"characters", 1, ((void *)0), 'c'}, - {"fields", 1, ((void *)0), 'f'}, - {"delimiter", 1, ((void *)0), 'd'}, - {"only-delimited", 0, ((void *)0), 's'}, - {"output-delimiter", 1, ((void *)0), OUTPUT_DELIMITER_OPTION}, - {"complement", 0, ((void *)0), COMPLEMENT_OPTION}, - {"zero-terminated", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s OPTION... [FILE]...\n", 5) - - , - program_name); - fputs_unlocked(dcgettext(((void *)0), - "Print selected parts of lines from each FILE to " - "standard output.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked(dcgettext(((void *)0), - " -b, --bytes=LIST select only these " - "bytes\n -c, --characters=LIST select only " - "these characters\n -d, --delimiter=DELIM use " - "DELIM instead of TAB for field delimiter\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -f, --fields=LIST select only these fields; also print " - "any line\n that contains no delimiter " - "character, unless\n the -s option is " - "specified\n -n (ignored)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --complement complement the set of selected " - "bytes, characters\n or fields\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -s, --only-delimited do not print lines not containing " - "delimiters\n --output-delimiter=STRING use STRING as " - "the output delimiter\n the " - "default is to use the input delimiter\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero-terminated line delimiter is NUL, not newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nUse one, and only one of -b, -c or -f. Each LIST is made " - "up of one\nrange, or many ranges separated by commas. " - "Selected input is written\nin the same order that it is " - "read, and is written exactly once.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "Each range is one of:\n\n N N'th byte, character or " - "field, counted from 1\n N- from N'th byte, character or " - "field, to end of line\n N-M from N'th to M'th (included) " - "byte, character or field\n -M from first to M'th " - "(included) byte, character or field\n", - 5), - stdout) - - ; - emit_ancillary_info("cut"); - } - exit(status); -} - -static inline void next_item(uintmax_t *item_idx) { - (*item_idx)++; - if ((*item_idx) > current_rp->hi) - current_rp++; -} - -static inline _Bool - -print_kth(uintmax_t k) { - return current_rp->lo <= k; -} - -static inline _Bool - -is_range_start_index(uintmax_t k) { - return k == current_rp->lo; -} - -static void cut_bytes(FILE *stream) { - uintmax_t byte_idx; - - _Bool print_delimiter; - - byte_idx = 0; - print_delimiter = 0; - current_rp = frp; - while (1) { - int c; - - c = getc_unlocked(stream); - - if (c == line_delim) { - putchar_unlocked(c); - byte_idx = 0; - print_delimiter = 0; - current_rp = frp; - } else if (c == (-1)) { - if (byte_idx > 0) - putchar_unlocked(line_delim); - break; - } else { - next_item(&byte_idx); - if (print_kth(byte_idx)) { - if (output_delimiter_string != output_delimiter_default) { - if (print_delimiter && is_range_start_index(byte_idx)) { - fwrite_unlocked(output_delimiter_string, sizeof(char), - output_delimiter_length, stdout); - } - print_delimiter = 1; - } - - putchar_unlocked(c); - } - } - } -} - -static void cut_fields(FILE *stream) { - int c; - uintmax_t field_idx = 1; - - _Bool found_any_selected_field = 0; - - _Bool buffer_first_field; - - current_rp = frp; - - c = getc_unlocked(stream); - if (c == (-1)) - return; - - ungetc(c, stream); - c = 0; - - buffer_first_field = (suppress_non_delimited ^ !print_kth(1)); - - while (1) { - if (field_idx == 1 && buffer_first_field) { - ssize_t len; - size_t n_bytes; - - len = getndelim2(&field_1_buffer, &field_1_bufsize, 0, ((size_t)-1), - delim, line_delim, stream); - if (len < 0) { - free(field_1_buffer); - field_1_buffer = ((void *)0); - if (ferror_unlocked(stream) || feof_unlocked(stream)) - break; - xalloc_die(); - } - - n_bytes = len; - - ((void)sizeof((n_bytes != 0) ? 1 : 0), __extension__({ - if (n_bytes != 0) - ; - else - __assert_fail("n_bytes != 0", "src/cut.c", 315, - __extension__ __PRETTY_FUNCTION__); - })); - - c = 0; - - if (to_uchar(field_1_buffer[n_bytes - 1]) != delim) { - if (suppress_non_delimited) { - - } else { - fwrite_unlocked(field_1_buffer, sizeof(char), n_bytes, stdout); - - if (field_1_buffer[n_bytes - 1] != line_delim) - putchar_unlocked(line_delim); - c = line_delim; - } - continue; - } - if (print_kth(1)) { - - fwrite_unlocked(field_1_buffer, sizeof(char), n_bytes - 1, stdout); - - if (delim == line_delim) { - int last_c = getc_unlocked(stream); - if (last_c != (-1)) { - ungetc(last_c, stream); - found_any_selected_field = 1; - } - } else - found_any_selected_field = 1; - } - next_item(&field_idx); - } - - int prev_c = c; - - if (print_kth(field_idx)) { - if (found_any_selected_field) { - fwrite_unlocked(output_delimiter_string, sizeof(char), - output_delimiter_length, stdout); - } - found_any_selected_field = 1; - - while ((c = getc_unlocked(stream)) != delim && c != line_delim && - c != (-1)) { - putchar_unlocked(c); - prev_c = c; - } - } else { - while ((c = getc_unlocked(stream)) != delim && c != line_delim && - c != (-1)) { - prev_c = c; - } - } - - if (delim == line_delim && c == delim) { - int last_c = getc_unlocked(stream); - if (last_c != (-1)) - ungetc(last_c, stream); - else - c = last_c; - } - - if (c == delim) - next_item(&field_idx); - else if (c == line_delim || c == (-1)) { - if (found_any_selected_field || - !(suppress_non_delimited && field_idx == 1)) { - if (c == line_delim || prev_c != line_delim || delim == line_delim) - putchar_unlocked(line_delim); - } - if (c == (-1)) - break; - field_idx = 1; - current_rp = frp; - found_any_selected_field = 0; - } - } -} - -static _Bool - -cut_file(char const *file, void (*cut_stream)(FILE *)) { - FILE *stream; - - if ((strcmp(file, "-") == 0)) { - have_read_stdin = 1; - stream = stdin; - } else { - stream = fopen(file, "r"); - if (stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } - } - - fadvise(stream, FADVISE_SEQUENTIAL); - - cut_stream(stream); - - int err = (*__errno_location()); - if (!ferror_unlocked(stream)) - err = 0; - if ((strcmp(file, "-") == 0)) - clearerr_unlocked(stream); - else if (rpl_fclose(stream) == (-1)) - err = (*__errno_location()); - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } - return 1; -} - -int main(int argc, char **argv) { - int optc; - - _Bool ok; - - _Bool delim_specified = 0; - - _Bool byte_mode = 0; - char *spec_list_string = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - suppress_non_delimited = 0; - - delim = '\0'; - have_read_stdin = 0; - - while ((optc = getopt_long(argc, argv, "b:c:d:f:nsz", longopts, - ((void *)0))) != -1) { - switch (optc) { - case 'b': - case 'c': - - byte_mode = 1; - ; - case 'f': - - if (spec_list_string) - do { - error(0, 0, - (dcgettext(((void *)0), "only one list may be specified", 5))); - usage(1); - } while (0); - spec_list_string = optarg; - break; - - case 'd': - - if (optarg[0] != '\0' && optarg[1] != '\0') - do { - error(0, 0, - (dcgettext(((void *)0), - "the delimiter must be a single character", 5))); - usage(1); - } while (0); - delim = optarg[0]; - delim_specified = 1; - break; - - case OUTPUT_DELIMITER_OPTION: - - output_delimiter_length = (optarg[0] == '\0' ? 1 : strlen(optarg)); - output_delimiter_string = optarg; - break; - - case 'n': - break; - - case 's': - suppress_non_delimited = 1; - break; - - case 'z': - line_delim = '\0'; - break; - - case COMPLEMENT_OPTION: - complement = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "cut", "GNU coreutils", Version, ("David M. Ihnat"), - ("David MacKenzie"), ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (!spec_list_string) - do { - error(0, 0, - (dcgettext( - ((void *)0), - "you must specify a list of bytes, characters, or fields", 5))); - usage(1); - } while (0); - - if (byte_mode) { - if (delim_specified) - do { - error(0, 0, - (dcgettext(((void *)0), - "an input delimiter may be specified only when " - "operating on fields", - 5))); - usage(1); - } while (0); - - if (suppress_non_delimited) - do { - error(0, 0, - (dcgettext(((void *)0), - "suppressing non-delimited lines makes sense\n\tonly " - "when operating on fields", - 5))); - usage(1); - } while (0); - } - - set_fields(spec_list_string, ((byte_mode ? SETFLD_ERRMSG_USE_POS : 0) | - (complement ? SETFLD_COMPLEMENT : 0))); - - if (!delim_specified) - delim = '\t'; - - if (output_delimiter_string == ((void *)0)) { - output_delimiter_default[0] = delim; - output_delimiter_string = output_delimiter_default; - output_delimiter_length = 1; - } - - void (*cut_stream)(FILE *) = byte_mode ? cut_bytes : cut_fields; - if (optind == argc) - ok = cut_file("-", cut_stream); - else - for (ok = 1; optind < argc; optind++) - ok &= cut_file(argv[optind], cut_stream); - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) { - error(0, (*__errno_location()), "-"); - ok = 0; - } - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/date.c b/tests/source/coreutils/date.c deleted file mode 100644 index a281cd1..0000000 --- a/tests/source/coreutils/date.c +++ /dev/null @@ -1,8116 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef void *nl_catd; - -typedef int nl_item; - -extern nl_catd catopen(const char *__cat_name, int __flag) - __attribute__((__nonnull__(1))); - -extern char *catgets(nl_catd __catalog, int __set, int __number, - const char *__string) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int catclose(nl_catd __catalog) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -enum { - - ABDAY_1 = (((2) << 16) | (0)), - - ABDAY_2, - - ABDAY_3, - - ABDAY_4, - - ABDAY_5, - - ABDAY_6, - - ABDAY_7, - - DAY_1, - - DAY_2, - - DAY_3, - - DAY_4, - - DAY_5, - - DAY_6, - - DAY_7, - - ABMON_1, - - ABMON_2, - - ABMON_3, - - ABMON_4, - - ABMON_5, - - ABMON_6, - - ABMON_7, - - ABMON_8, - - ABMON_9, - - ABMON_10, - - ABMON_11, - - ABMON_12, - - MON_1, - - MON_2, - - MON_3, - - MON_4, - - MON_5, - - MON_6, - - MON_7, - - MON_8, - - MON_9, - - MON_10, - - MON_11, - - MON_12, - - AM_STR, - - PM_STR, - - D_T_FMT, - - D_FMT, - - T_FMT, - - T_FMT_AMPM, - - ERA, - - __ERA_YEAR, - - ERA_D_FMT, - - ALT_DIGITS, - - ERA_D_T_FMT, - - ERA_T_FMT, - - _NL_TIME_ERA_NUM_ENTRIES, - _NL_TIME_ERA_ENTRIES, - - _NL_WABDAY_1, - _NL_WABDAY_2, - _NL_WABDAY_3, - _NL_WABDAY_4, - _NL_WABDAY_5, - _NL_WABDAY_6, - _NL_WABDAY_7, - - _NL_WDAY_1, - _NL_WDAY_2, - _NL_WDAY_3, - _NL_WDAY_4, - _NL_WDAY_5, - _NL_WDAY_6, - _NL_WDAY_7, - - _NL_WABMON_1, - _NL_WABMON_2, - _NL_WABMON_3, - _NL_WABMON_4, - _NL_WABMON_5, - _NL_WABMON_6, - _NL_WABMON_7, - _NL_WABMON_8, - _NL_WABMON_9, - _NL_WABMON_10, - _NL_WABMON_11, - _NL_WABMON_12, - - _NL_WMON_1, - _NL_WMON_2, - _NL_WMON_3, - _NL_WMON_4, - _NL_WMON_5, - _NL_WMON_6, - _NL_WMON_7, - _NL_WMON_8, - _NL_WMON_9, - _NL_WMON_10, - _NL_WMON_11, - _NL_WMON_12, - - _NL_WAM_STR, - _NL_WPM_STR, - - _NL_WD_T_FMT, - _NL_WD_FMT, - _NL_WT_FMT, - _NL_WT_FMT_AMPM, - - _NL_WERA_YEAR, - _NL_WERA_D_FMT, - _NL_WALT_DIGITS, - _NL_WERA_D_T_FMT, - _NL_WERA_T_FMT, - - _NL_TIME_WEEK_NDAYS, - _NL_TIME_WEEK_1STDAY, - _NL_TIME_WEEK_1STWEEK, - _NL_TIME_FIRST_WEEKDAY, - _NL_TIME_FIRST_WORKDAY, - _NL_TIME_CAL_DIRECTION, - _NL_TIME_TIMEZONE, - - _DATE_FMT, - - _NL_W_DATE_FMT, - - _NL_TIME_CODESET, - - __ALTMON_1, - __ALTMON_2, - __ALTMON_3, - __ALTMON_4, - __ALTMON_5, - __ALTMON_6, - __ALTMON_7, - __ALTMON_8, - __ALTMON_9, - __ALTMON_10, - __ALTMON_11, - __ALTMON_12, - _NL_WALTMON_1, - _NL_WALTMON_2, - _NL_WALTMON_3, - _NL_WALTMON_4, - _NL_WALTMON_5, - _NL_WALTMON_6, - _NL_WALTMON_7, - _NL_WALTMON_8, - _NL_WALTMON_9, - _NL_WALTMON_10, - _NL_WALTMON_11, - _NL_WALTMON_12, - - _NL_ABALTMON_1, - _NL_ABALTMON_2, - _NL_ABALTMON_3, - _NL_ABALTMON_4, - _NL_ABALTMON_5, - _NL_ABALTMON_6, - _NL_ABALTMON_7, - _NL_ABALTMON_8, - _NL_ABALTMON_9, - _NL_ABALTMON_10, - _NL_ABALTMON_11, - _NL_ABALTMON_12, - - _NL_WABALTMON_1, - _NL_WABALTMON_2, - _NL_WABALTMON_3, - _NL_WABALTMON_4, - _NL_WABALTMON_5, - _NL_WABALTMON_6, - _NL_WABALTMON_7, - _NL_WABALTMON_8, - _NL_WABALTMON_9, - _NL_WABALTMON_10, - _NL_WABALTMON_11, - _NL_WABALTMON_12, - - _NL_NUM_LC_TIME, - - _NL_COLLATE_NRULES = (((3) << 16) | (0)), - _NL_COLLATE_RULESETS, - _NL_COLLATE_TABLEMB, - _NL_COLLATE_WEIGHTMB, - _NL_COLLATE_EXTRAMB, - _NL_COLLATE_INDIRECTMB, - _NL_COLLATE_GAP1, - _NL_COLLATE_GAP2, - _NL_COLLATE_GAP3, - _NL_COLLATE_TABLEWC, - _NL_COLLATE_WEIGHTWC, - _NL_COLLATE_EXTRAWC, - _NL_COLLATE_INDIRECTWC, - _NL_COLLATE_SYMB_HASH_SIZEMB, - _NL_COLLATE_SYMB_TABLEMB, - _NL_COLLATE_SYMB_EXTRAMB, - _NL_COLLATE_COLLSEQMB, - _NL_COLLATE_COLLSEQWC, - _NL_COLLATE_CODESET, - _NL_NUM_LC_COLLATE, - - _NL_CTYPE_CLASS = (((0) << 16) | (0)), - _NL_CTYPE_TOUPPER, - _NL_CTYPE_GAP1, - _NL_CTYPE_TOLOWER, - _NL_CTYPE_GAP2, - _NL_CTYPE_CLASS32, - _NL_CTYPE_GAP3, - _NL_CTYPE_GAP4, - _NL_CTYPE_GAP5, - _NL_CTYPE_GAP6, - _NL_CTYPE_CLASS_NAMES, - _NL_CTYPE_MAP_NAMES, - _NL_CTYPE_WIDTH, - _NL_CTYPE_MB_CUR_MAX, - _NL_CTYPE_CODESET_NAME, - CODESET = _NL_CTYPE_CODESET_NAME, - - _NL_CTYPE_TOUPPER32, - _NL_CTYPE_TOLOWER32, - _NL_CTYPE_CLASS_OFFSET, - _NL_CTYPE_MAP_OFFSET, - _NL_CTYPE_INDIGITS_MB_LEN, - _NL_CTYPE_INDIGITS0_MB, - _NL_CTYPE_INDIGITS1_MB, - _NL_CTYPE_INDIGITS2_MB, - _NL_CTYPE_INDIGITS3_MB, - _NL_CTYPE_INDIGITS4_MB, - _NL_CTYPE_INDIGITS5_MB, - _NL_CTYPE_INDIGITS6_MB, - _NL_CTYPE_INDIGITS7_MB, - _NL_CTYPE_INDIGITS8_MB, - _NL_CTYPE_INDIGITS9_MB, - _NL_CTYPE_INDIGITS_WC_LEN, - _NL_CTYPE_INDIGITS0_WC, - _NL_CTYPE_INDIGITS1_WC, - _NL_CTYPE_INDIGITS2_WC, - _NL_CTYPE_INDIGITS3_WC, - _NL_CTYPE_INDIGITS4_WC, - _NL_CTYPE_INDIGITS5_WC, - _NL_CTYPE_INDIGITS6_WC, - _NL_CTYPE_INDIGITS7_WC, - _NL_CTYPE_INDIGITS8_WC, - _NL_CTYPE_INDIGITS9_WC, - _NL_CTYPE_OUTDIGIT0_MB, - _NL_CTYPE_OUTDIGIT1_MB, - _NL_CTYPE_OUTDIGIT2_MB, - _NL_CTYPE_OUTDIGIT3_MB, - _NL_CTYPE_OUTDIGIT4_MB, - _NL_CTYPE_OUTDIGIT5_MB, - _NL_CTYPE_OUTDIGIT6_MB, - _NL_CTYPE_OUTDIGIT7_MB, - _NL_CTYPE_OUTDIGIT8_MB, - _NL_CTYPE_OUTDIGIT9_MB, - _NL_CTYPE_OUTDIGIT0_WC, - _NL_CTYPE_OUTDIGIT1_WC, - _NL_CTYPE_OUTDIGIT2_WC, - _NL_CTYPE_OUTDIGIT3_WC, - _NL_CTYPE_OUTDIGIT4_WC, - _NL_CTYPE_OUTDIGIT5_WC, - _NL_CTYPE_OUTDIGIT6_WC, - _NL_CTYPE_OUTDIGIT7_WC, - _NL_CTYPE_OUTDIGIT8_WC, - _NL_CTYPE_OUTDIGIT9_WC, - _NL_CTYPE_TRANSLIT_TAB_SIZE, - _NL_CTYPE_TRANSLIT_FROM_IDX, - _NL_CTYPE_TRANSLIT_FROM_TBL, - _NL_CTYPE_TRANSLIT_TO_IDX, - _NL_CTYPE_TRANSLIT_TO_TBL, - _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN, - _NL_CTYPE_TRANSLIT_DEFAULT_MISSING, - _NL_CTYPE_TRANSLIT_IGNORE_LEN, - _NL_CTYPE_TRANSLIT_IGNORE, - _NL_CTYPE_MAP_TO_NONASCII, - _NL_CTYPE_NONASCII_CASE, - _NL_CTYPE_EXTRA_MAP_1, - _NL_CTYPE_EXTRA_MAP_2, - _NL_CTYPE_EXTRA_MAP_3, - _NL_CTYPE_EXTRA_MAP_4, - _NL_CTYPE_EXTRA_MAP_5, - _NL_CTYPE_EXTRA_MAP_6, - _NL_CTYPE_EXTRA_MAP_7, - _NL_CTYPE_EXTRA_MAP_8, - _NL_CTYPE_EXTRA_MAP_9, - _NL_CTYPE_EXTRA_MAP_10, - _NL_CTYPE_EXTRA_MAP_11, - _NL_CTYPE_EXTRA_MAP_12, - _NL_CTYPE_EXTRA_MAP_13, - _NL_CTYPE_EXTRA_MAP_14, - _NL_NUM_LC_CTYPE, - - __INT_CURR_SYMBOL = (((4) << 16) | (0)), - - __CURRENCY_SYMBOL, - - __MON_DECIMAL_POINT, - - __MON_THOUSANDS_SEP, - - __MON_GROUPING, - - __POSITIVE_SIGN, - - __NEGATIVE_SIGN, - - __INT_FRAC_DIGITS, - - __FRAC_DIGITS, - - __P_CS_PRECEDES, - - __P_SEP_BY_SPACE, - - __N_CS_PRECEDES, - - __N_SEP_BY_SPACE, - - __P_SIGN_POSN, - - __N_SIGN_POSN, - - _NL_MONETARY_CRNCYSTR, - - __INT_P_CS_PRECEDES, - - __INT_P_SEP_BY_SPACE, - - __INT_N_CS_PRECEDES, - - __INT_N_SEP_BY_SPACE, - - __INT_P_SIGN_POSN, - - __INT_N_SIGN_POSN, - - _NL_MONETARY_DUO_INT_CURR_SYMBOL, - _NL_MONETARY_DUO_CURRENCY_SYMBOL, - _NL_MONETARY_DUO_INT_FRAC_DIGITS, - _NL_MONETARY_DUO_FRAC_DIGITS, - _NL_MONETARY_DUO_P_CS_PRECEDES, - _NL_MONETARY_DUO_P_SEP_BY_SPACE, - _NL_MONETARY_DUO_N_CS_PRECEDES, - _NL_MONETARY_DUO_N_SEP_BY_SPACE, - _NL_MONETARY_DUO_INT_P_CS_PRECEDES, - _NL_MONETARY_DUO_INT_P_SEP_BY_SPACE, - _NL_MONETARY_DUO_INT_N_CS_PRECEDES, - _NL_MONETARY_DUO_INT_N_SEP_BY_SPACE, - _NL_MONETARY_DUO_P_SIGN_POSN, - _NL_MONETARY_DUO_N_SIGN_POSN, - _NL_MONETARY_DUO_INT_P_SIGN_POSN, - _NL_MONETARY_DUO_INT_N_SIGN_POSN, - _NL_MONETARY_UNO_VALID_FROM, - _NL_MONETARY_UNO_VALID_TO, - _NL_MONETARY_DUO_VALID_FROM, - _NL_MONETARY_DUO_VALID_TO, - _NL_MONETARY_CONVERSION_RATE, - _NL_MONETARY_DECIMAL_POINT_WC, - _NL_MONETARY_THOUSANDS_SEP_WC, - _NL_MONETARY_CODESET, - _NL_NUM_LC_MONETARY, - - __DECIMAL_POINT = (((1) << 16) | (0)), - - RADIXCHAR = __DECIMAL_POINT, - - __THOUSANDS_SEP, - - THOUSEP = __THOUSANDS_SEP, - - __GROUPING, - - _NL_NUMERIC_DECIMAL_POINT_WC, - _NL_NUMERIC_THOUSANDS_SEP_WC, - _NL_NUMERIC_CODESET, - _NL_NUM_LC_NUMERIC, - - __YESEXPR = (((5) << 16) | (0)), - - __NOEXPR, - - __YESSTR, - - __NOSTR, - - _NL_MESSAGES_CODESET, - _NL_NUM_LC_MESSAGES, - - _NL_PAPER_HEIGHT = (((7) << 16) | (0)), - _NL_PAPER_WIDTH, - _NL_PAPER_CODESET, - _NL_NUM_LC_PAPER, - - _NL_NAME_NAME_FMT = (((8) << 16) | (0)), - _NL_NAME_NAME_GEN, - _NL_NAME_NAME_MR, - _NL_NAME_NAME_MRS, - _NL_NAME_NAME_MISS, - _NL_NAME_NAME_MS, - _NL_NAME_CODESET, - _NL_NUM_LC_NAME, - - _NL_ADDRESS_POSTAL_FMT = (((9) << 16) | (0)), - _NL_ADDRESS_COUNTRY_NAME, - _NL_ADDRESS_COUNTRY_POST, - _NL_ADDRESS_COUNTRY_AB2, - _NL_ADDRESS_COUNTRY_AB3, - _NL_ADDRESS_COUNTRY_CAR, - _NL_ADDRESS_COUNTRY_NUM, - _NL_ADDRESS_COUNTRY_ISBN, - _NL_ADDRESS_LANG_NAME, - _NL_ADDRESS_LANG_AB, - _NL_ADDRESS_LANG_TERM, - _NL_ADDRESS_LANG_LIB, - _NL_ADDRESS_CODESET, - _NL_NUM_LC_ADDRESS, - - _NL_TELEPHONE_TEL_INT_FMT = (((10) << 16) | (0)), - _NL_TELEPHONE_TEL_DOM_FMT, - _NL_TELEPHONE_INT_SELECT, - _NL_TELEPHONE_INT_PREFIX, - _NL_TELEPHONE_CODESET, - _NL_NUM_LC_TELEPHONE, - - _NL_MEASUREMENT_MEASUREMENT = (((11) << 16) | (0)), - _NL_MEASUREMENT_CODESET, - _NL_NUM_LC_MEASUREMENT, - - _NL_IDENTIFICATION_TITLE = (((12) << 16) | (0)), - _NL_IDENTIFICATION_SOURCE, - _NL_IDENTIFICATION_ADDRESS, - _NL_IDENTIFICATION_CONTACT, - _NL_IDENTIFICATION_EMAIL, - _NL_IDENTIFICATION_TEL, - _NL_IDENTIFICATION_FAX, - _NL_IDENTIFICATION_LANGUAGE, - _NL_IDENTIFICATION_TERRITORY, - _NL_IDENTIFICATION_AUDIENCE, - _NL_IDENTIFICATION_APPLICATION, - _NL_IDENTIFICATION_ABBREVIATION, - _NL_IDENTIFICATION_REVISION, - _NL_IDENTIFICATION_DATE, - _NL_IDENTIFICATION_CATEGORY, - _NL_IDENTIFICATION_CODESET, - _NL_NUM_LC_IDENTIFICATION, - - _NL_NUM -}; -extern char *nl_langinfo(nl_item __item) __attribute__((__nothrow__, __leaf__)); - -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern char *nl_langinfo_l(nl_item __item, locale_t __l); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -_Bool parse_datetime(struct timespec *__restrict__, char const *, - struct timespec const *); - -_Bool parse_datetime2(struct timespec *__restrict__, char const *, - struct timespec const *, unsigned int flags, timezone_t, - char const *); - -_Bool posixtime(time_t *p, const char *s, unsigned int syntax_bits); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -size_t fprintftime(FILE *fp, char const *fmt, struct tm const *tm, - timezone_t zone, int nanoseconds); - -static _Bool show_date(char const *, struct timespec, timezone_t); - -enum Time_spec { - - TIME_SPEC_DATE, - - TIME_SPEC_SECONDS, - - TIME_SPEC_NS, - - TIME_SPEC_HOURS, - - TIME_SPEC_MINUTES -}; - -static char const *const time_spec_string[] = { - - "hours", "minutes", "date", "seconds", - "ns", ((void *)0) - -}; -static enum Time_spec const time_spec[] = {TIME_SPEC_HOURS, TIME_SPEC_MINUTES, - TIME_SPEC_DATE, TIME_SPEC_SECONDS, - TIME_SPEC_NS}; -_Static_assert( - (sizeof(time_spec_string) / sizeof *(time_spec_string)) == - (sizeof(time_spec) / sizeof *(time_spec)) + 1, - "verify (" - "ARRAY_CARDINALITY (time_spec_string) == ARRAY_CARDINALITY (time_spec) + 1" - ")"); - -static char const rfc_email_format[] = "%a, %d %b %Y %H:%M:%S %z"; - -enum { - DEBUG_DATE_PARSING_OPTION = 0x7f + 1, - RESOLUTION_OPTION, - RFC_3339_OPTION -}; - -static char const short_options[] = "d:f:I::r:Rs:u"; - -static struct option const long_options[] = { - {"date", 1, ((void *)0), 'd'}, - {"debug", 0, ((void *)0), DEBUG_DATE_PARSING_OPTION}, - {"file", 1, ((void *)0), 'f'}, - {"iso-8601", 2, ((void *)0), 'I'}, - {"reference", 1, ((void *)0), 'r'}, - {"resolution", 0, ((void *)0), RESOLUTION_OPTION}, - {"rfc-email", 0, ((void *)0), 'R'}, - {"rfc-822", 0, ((void *)0), 'R'}, - {"rfc-2822", 0, ((void *)0), 'R'}, - {"rfc-3339", 1, ((void *)0), RFC_3339_OPTION}, - {"set", 1, ((void *)0), 's'}, - {"uct", 0, ((void *)0), 'u'}, - {"utc", 0, ((void *)0), 'u'}, - {"universal", 0, ((void *)0), 'u'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static unsigned int parse_datetime_flags; -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [+FORMAT]\n or: %s " - "[-u|--utc|--universal] [MMDDhhmm\n", - 5) - - , - program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Display date and time in the given FORMAT.\nWith " - "-s, or with [MMDDhhmm, set the date and time.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked(dcgettext(((void *)0), - " -d, --date=STRING display time " - "described by STRING, not 'now'\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --debug annotate the parsed date,\n " - " and warn about questionable usage to stderr\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -f, --file=DATEFILE like --date; once " - "for each line of DATEFILE\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -I[FMT], --iso-8601[=FMT] output date/time in ISO 8601 " - "format.\n FMT='date' for date only " - "(the default),\n 'hours', " - "'minutes', 'seconds', or 'ns'\n for " - "date and time to the indicated precision.\n " - " Example: 2006-08-14T02:34:56-06:00\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --resolution output the available resolution of " - "timestamps\n Example: 0.000000001\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -R, --rfc-email output date and time in RFC " - "5322 format.\n Example: Mon, " - "14 Aug 2006 02:34:56 -0600\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --rfc-3339=FMT output date/time in RFC 3339 " - "format.\n FMT='date', " - "'seconds', or 'ns'\n for date " - "and time to the indicated precision.\n " - " Example: 2006-08-14 02:34:56-06:00\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -r, --reference=FILE display the last " - "modification time of FILE\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -s, --set=STRING set time described " - "by STRING\n -u, --utc, --universal print or " - "set Coordinated Universal Time (UTC)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - "\nFORMAT controls the output. Interpreted " - "sequences are:\n\n %% a literal %\n %a " - "locale's abbreviated weekday name (e.g., Sun)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " %A locale's full weekday name (e.g., Sunday)\n %b " - "locale's abbreviated month name (e.g., Jan)\n %B " - "locale's full month name (e.g., January)\n %c locale's " - "date and time (e.g., Thu Mar 3 23:05:25 2005)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " %C century; like %Y, except omit last two digits (e.g., " - "20)\n %d day of month (e.g., 01)\n %D date; same as " - "%m/%d/%y\n %e day of month, space padded; same as %_d\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " %F full date; like %+4Y-%m-%d\n %g last two digits " - "of year of ISO week number (see %G)\n %G year of ISO " - "week number (see %V); normally useful only with %V\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " %h same as %b\n %H hour (00..23)\n %I " - "hour (01..12)\n %j day of year (001..366)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " %k hour, space padded ( 0..23); same as %_H\n %l " - "hour, space padded ( 1..12); same as %_I\n %m month " - "(01..12)\n %M minute (00..59)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " %n a newline\n %N nanoseconds (000000000..999999999)\n %p " - " locale's equivalent of either AM or PM; blank if not known\n " - "%P like %p, but lower case\n %q quarter of year (1..4)\n %r " - " locale's 12-hour clock time (e.g., 11:11:04 PM)\n %R 24-hour " - "hour and minute; same as %H:%M\n %s seconds since the Epoch " - "(1970-01-01 00:00 UTC)\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " %S second (00..60)\n %t a tab\n %T time; same as " - "%H:%M:%S\n %u day of week (1..7); 1 is Monday\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " %U week number of year, with Sunday as first day of week " - "(00..53)\n %V ISO week number, with Monday as first day of " - "week (01..53)\n %w day of week (0..6); 0 is Sunday\n %W " - "week number of year, with Monday as first day of week (00..53)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " %x locale's date representation (e.g., 12/31/99)\n %X " - " locale's time representation (e.g., 23:13:48)\n %y last " - "two digits of year (00..99)\n %Y year\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " %z +hhmm numeric time zone (e.g., -0400)\n %:z +hh:mm " - "numeric time zone (e.g., -04:00)\n %::z +hh:mm:ss numeric " - "time zone (e.g., -04:00:00)\n %:::z numeric time zone " - "with : to necessary precision (e.g., -04, +05:30)\n %Z " - "alphabetic time zone abbreviation (e.g., EDT)\n\nBy " - "default, date pads numeric fields with zeroes.\n", - 5), - stdout) - - ; - fputs_unlocked ( - dcgettext (((void *)0), - "The following optional flags may follow '%':\n\n - (hyphen) do not pad the field\n _ (underscore) pad with spaces\n 0 (zero) pad with zeros\n + pad with zeros, and put '+' before future years with >4 digits\n ^ use upper case if possible\n , 5) - , - stdout - ) - ; - fputs_unlocked ( - dcgettext (((void *)0), - "\nAfter any flags comes an optional field width, as a decimal number;\nthen an optional modifier, which is either\nE to use the locale's alternate representations if available, or\nO to use the locale's alternate numeric symbols if available.\n" - , 5) - , - stdout - ) - - - - - - ; - fputs_unlocked ( - dcgettext (((void *)0), - "\nExamples:\nConvert seconds since the Epoch (1970-01-01 UTC) to a date\n $ date --date='@2147483647'\n\nShow the time on the west coast of the US (use tzselect(1) to find TZ)\n $ TZ='America/Los_Angeles' date\n\nShow the local time for 9AM next Friday on the west coast of the US\n $ date --date='TZ=\"America/Los_Angeles\" 09:00 next Fri'\n" - , 5) - , - stdout - ) - ; - emit_ancillary_info ("date"); - } - exit(status); -} - -static int res_width(long int res) { - int i = 9; - for (long long int r = 1; (r *= 10) <= res;) - i--; - return i; -} - -static char *adjust_resolution(char const *format) { - char *copy = ((void *)0); - - for (char const *f = format; *f; f++) - if (f[0] == '%') { - if (f[1] == '-' && f[2] == 'N') { - if (!copy) - copy = xstrdup(format); - copy[f + 1 - format] = '0' + res_width(gettime_res()); - f += 2; - } else - f += f[1] == '%'; - } - - return copy; -} - -static _Bool - -batch_convert(char const *input_filename, char const *format, timezone_t tz, - char const *tzstring) { - - _Bool ok; - FILE *in_stream; - char *line; - size_t buflen; - struct timespec when; - - if ((strcmp(input_filename, "-") == 0)) { - input_filename = dcgettext(((void *)0), "standard input", 5); - in_stream = stdin; - } else { - in_stream = fopen(input_filename, "r"); - if (in_stream == ((void *)0)) { - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, input_filename)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - input_filename)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - input_filename)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } - - line = ((void *)0); - buflen = 0; - ok = 1; - while (1) { - ssize_t line_length = getline(&line, &buflen, in_stream); - if (line_length < 0) { - - break; - } - - if (!parse_datetime2(&when, line, ((void *)0), parse_datetime_flags, tz, - tzstring)) { - if (line[line_length - 1] == '\n') - line[line_length - 1] = '\0'; - error(0, 0, dcgettext(((void *)0), "invalid date %s", 5), quote(line)); - ok = 0; - } else { - ok &= show_date(format, when, tz); - } - } - - if (rpl_fclose(in_stream) == (-1)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, input_filename)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - input_filename)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - input_filename)), - ((0) ? (void)0 : __builtin_unreachable())))); - - free(line); - - return ok; -} - -int main(int argc, char **argv) { - int optc; - char const *datestr = ((void *)0); - char const *set_datestr = ((void *)0); - struct timespec when; - - _Bool set_date = 0; - char const *format = ((void *)0); - - _Bool get_resolution = 0; - char *batch_file = ((void *)0); - char *reference = ((void *)0); - struct stat refstats; - - _Bool ok; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, short_options, long_options, - ((void *)0))) != -1) { - char const *new_format = ((void *)0); - - switch (optc) { - case 'd': - datestr = optarg; - break; - case DEBUG_DATE_PARSING_OPTION: - parse_datetime_flags |= 1; - break; - case 'f': - batch_file = optarg; - break; - case RESOLUTION_OPTION: - get_resolution = 1; - break; - case RFC_3339_OPTION: { - static char const rfc_3339_format[][32] = { - "%Y-%m-%d", "%Y-%m-%d %H:%M:%S%:z", "%Y-%m-%d %H:%M:%S.%N%:z"}; - enum Time_spec i = - ((time_spec + - 2)[__xargmatch_internal("--rfc-3339", optarg, time_spec_string + 2, - (void const *)(time_spec + 2), - sizeof *(time_spec + 2), argmatch_die, 1)]); - new_format = rfc_3339_format[i]; - break; - } - case 'I': { - static char const iso_8601_format[][32] = { - "%Y-%m-%d", "%Y-%m-%dT%H:%M:%S%:z", "%Y-%m-%dT%H:%M:%S,%N%:z", - "%Y-%m-%dT%H%:z", "%Y-%m-%dT%H:%M%:z"}; - enum Time_spec i = (optarg ? ((time_spec)[__xargmatch_internal( - "--iso-8601", optarg, time_spec_string, - (void const *)(time_spec), - sizeof *(time_spec), argmatch_die, 1)]) - : TIME_SPEC_DATE); - new_format = iso_8601_format[i]; - break; - } - case 'r': - reference = optarg; - break; - case 'R': - new_format = rfc_email_format; - break; - case 's': - set_datestr = optarg; - set_date = 1; - break; - case 'u': - - if (putenv(bad_cast("TZ=UTC0")) != 0) - xalloc_die(); - ; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "date", "GNU coreutils", Version, ("David MacKenzie"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - if (new_format) { - if (format) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "output formats specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "multiple output formats specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "multiple output formats specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - format = new_format; - } - } - - int option_specified_date = - (!!datestr + !!batch_file + !!reference + get_resolution); - - if (option_specified_date > 1) { - error( - 0, 0, - - dcgettext( - ((void *)0), - "the options to specify dates for printing are mutually exclusive", - 5)); - usage(1); - } - - if (set_date && option_specified_date) { - error(0, 0, - - dcgettext( - ((void *)0), - "the options to print and set the time may not be used together", - 5)); - usage(1); - } - - if (optind < argc) { - if (optind + 1 < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 1])); - usage(1); - } - - if (argv[optind][0] == '+') { - if (format) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "output formats specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "multiple output formats specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "multiple output formats specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - format = argv[optind++] + 1; - } else if (set_date || option_specified_date) { - error( - 0, 0, - - dcgettext(((void *)0), - "the argument %s lacks a leading '+';\n" - "when using an option to specify date(s), any non-option\n" - "argument must be a format string beginning with '+'", - 5) - - , - quote(argv[optind])); - usage(1); - } - } - - if (!format) { - if (get_resolution) - format = "%s.%N"; - else { - format = nl_langinfo(_DATE_FMT); - if (!*format) - format = "%a %b %e %H:%M:%S %Z %Y"; - } - } - - char *format_copy = adjust_resolution(format); - char const *format_res = format_copy ? format_copy : format; - char const *tzstring = getenv("TZ"); - timezone_t tz = tzalloc(tzstring); - - if (batch_file != ((void *)0)) - ok = batch_convert(batch_file, format_res, tz, tzstring); - else { - - _Bool valid_date = 1; - ok = 1; - - if (!option_specified_date && !set_date) { - if (optind < argc) { - - set_date = 1; - datestr = argv[optind]; - valid_date = posixtime(&when.tv_sec, datestr, (1 | 2 | 4)); - when.tv_nsec = 0; - } else { - - gettime(&when); - } - } else { - - if (reference != ((void *)0)) { - if (stat(reference, &refstats) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "reference)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - reference)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - reference)), - ((0) ? (void)0 : __builtin_unreachable())))); - when = get_stat_mtime(&refstats); - } else if (get_resolution) { - long int res = gettime_res(); - when.tv_sec = res / TIMESPEC_HZ; - when.tv_nsec = res % TIMESPEC_HZ; - } else { - if (set_datestr) - datestr = set_datestr; - valid_date = parse_datetime2(&when, datestr, ((void *)0), - parse_datetime_flags, tz, tzstring); - } - } - - if (!valid_date) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "date %s\", 5), quote (datestr)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid date %s", 5), - quote(datestr)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid date %s", 5), - quote(datestr)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (set_date) { - - if (settime(&when) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot set date", 5)); - ok = 0; - } - } - - ok &= show_date(format_res, when, tz); - } - - exit(ok ? 0 : 1); -} - -static _Bool - -show_date(char const *format, struct timespec when, timezone_t tz) { - struct tm tm; - - if (parse_datetime_flags & 1) - error(0, 0, dcgettext(((void *)0), "output format: %s", 5), quote(format)); - - if (localtime_rz(tz, &when.tv_sec, &tm)) { - if (format == rfc_email_format) - setlocale(2, "C"); - fprintftime(stdout, format, &tm, tz, when.tv_nsec); - if (format == rfc_email_format) - setlocale(2, ""); - fputc_unlocked('\n', stdout); - return 1; - } else { - char buf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - error(0, 0, dcgettext(((void *)0), "time %s is out of range", 5), - quote(timetostr(when.tv_sec, buf))); - return 0; - } -} diff --git a/tests/source/coreutils/dd.c b/tests/source/coreutils/dd.c deleted file mode 100644 index fda2ecf..0000000 --- a/tests/source/coreutils/dd.c +++ /dev/null @@ -1,9357 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -inline void alignfree(void *ptr) { free(ptr); } - -inline __attribute__((__malloc__)) __attribute__((__alloc_size__(2))) - -void * -alignalloc(idx_t alignment, idx_t size) { - if ((size_t)-1 < alignment) - alignment = (size_t)-1; - if ((size_t)-1 < size) - size = (size_t)-1; - - return aligned_alloc(alignment, size); -} -void *xalignalloc(idx_t, idx_t) __attribute__((__malloc__)) -__attribute__((__alloc_size__(2))) __attribute__((__returns_nonnull__)); - -int close_stream(FILE *stream); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int fd_reopen(int, char const *, int, mode_t) __attribute__((__nonnull__)); - -typedef long long int xtime_t; -inline xtime_t xtime_make(xtime_t s, long int ns) { - return 1000000000 * s + ns; -} - -inline xtime_t xtime_nonnegative_sec(xtime_t t) { return t / 1000000000; } - -inline xtime_t xtime_sec(xtime_t t) { - return (t + (t < 0)) / 1000000000 - (t < 0); -} - -inline long int xtime_nonnegative_nsec(xtime_t t) { return t % 1000000000; } - -inline long int xtime_nsec(xtime_t t) { - long int ns = t % 1000000000; - if (ns < 0) - ns += 1000000000; - return ns; -} - -xtime_t gethrxtime(void); - -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -enum { - - human_ceiling = 0, - - human_round_to_nearest = 1, - - human_floor = 2, - - human_group_digits = 4, - - human_suppress_point_zero = 8, - - human_autoscale = 16, - - human_base_1024 = 32, - - human_space_before_unit = 64, - - human_SI = 128, - - human_B = 256 -}; - -char *human_readable(uintmax_t, char *, int, uintmax_t, uintmax_t); - -enum strtol_error human_options(char const *, int *, uintmax_t *); -enum { IO_BUFSIZE = 128 * 1024 }; -static inline idx_t io_blksize(struct stat sb) { - - return (((((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) / - 2 + - 1) < ((((IO_BUFSIZE) > (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))) - ? (IO_BUFSIZE) - : (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))))) - ? (((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) / - 2 + - 1) - : ((((IO_BUFSIZE) > (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))) - ? (IO_BUFSIZE) - : (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))))) - - ; -} -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -extern void verror(int __status, int __errnum, const char *__format, - va_list __args) - __attribute__((__format__(__gnu_printf__, 3, 0))); -extern void verror_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, - va_list __args) - __attribute__((__format__(__gnu_printf__, 5, 0))); - -enum { - C_ASCII = 01, - - C_EBCDIC = 02, - C_IBM = 04, - C_BLOCK = 010, - C_UNBLOCK = 020, - C_LCASE = 040, - C_UCASE = 0100, - C_SWAB = 0200, - C_NOERROR = 0400, - C_NOTRUNC = 01000, - C_SYNC = 02000, - - C_TWOBUFS = 04000, - - C_NOCREAT = 010000, - C_EXCL = 020000, - C_FDATASYNC = 040000, - C_FSYNC = 0100000, - - C_SPARSE = 0200000 -}; - -enum { - STATUS_NONE = 1, - STATUS_NOXFER = 2, - STATUS_DEFAULT = 3, - STATUS_PROGRESS = 4 -}; - -static char const *input_file = ((void *)0); - -static char const *output_file = ((void *)0); - -static idx_t page_size; - -static idx_t input_blocksize = 0; - -static idx_t output_blocksize = 0; - -static idx_t conversion_blocksize = 0; - -static intmax_t skip_records = 0; - -static idx_t skip_bytes = 0; - -static intmax_t seek_records = 0; - -static intmax_t seek_bytes = 0; - -static _Bool final_op_was_seek; - -static intmax_t max_records = (9223372036854775807L); - -static idx_t max_bytes = 0; - -static int conversions_mask = 0; - -static int input_flags = 0; -static int output_flags = 0; - -static int status_level = STATUS_DEFAULT; - -static _Bool translation_needed = 0; - -static intmax_t w_partial = 0; - -static intmax_t w_full = 0; - -static intmax_t r_partial = 0; - -static intmax_t r_full = 0; - -static intmax_t w_bytes = 0; - -static intmax_t reported_w_bytes = -1; - -static xtime_t start_time; - -static xtime_t next_time; - -static int progress_len; - -static _Bool input_seekable; - -static int input_seek_errno; - -static off_t input_offset; - -static _Bool warn_partial_read; - -static intmax_t r_truncate = 0; - -static char newline_character = '\n'; -static char space_character = ' '; - -static char *ibuf; -static char *obuf; - -static idx_t oc = 0; - -static idx_t col = 0; - -static sigset_t caught_signals; - -static sig_atomic_t volatile interrupt_signal; - -static sig_atomic_t volatile info_signal_count; - -static _Bool i_nocache, o_nocache; - -static _Bool i_nocache_eof, o_nocache_eof; - -static ssize_t (*iread_fnc)(int fd, char *buf, idx_t size); - -struct symbol_value { - char symbol[sizeof "count_bytes"]; - int value; -}; - -static struct symbol_value const conversions[] = { - {"ascii", C_ASCII | C_UNBLOCK | C_TWOBUFS}, - {"ebcdic", C_EBCDIC | C_BLOCK | C_TWOBUFS}, - {"ibm", C_IBM | C_BLOCK | C_TWOBUFS}, - {"block", C_BLOCK | C_TWOBUFS}, - {"unblock", C_UNBLOCK | C_TWOBUFS}, - {"lcase", C_LCASE | C_TWOBUFS}, - {"ucase", C_UCASE | C_TWOBUFS}, - {"sparse", C_SPARSE}, - {"swab", C_SWAB | C_TWOBUFS}, - {"noerror", C_NOERROR}, - {"nocreat", C_NOCREAT}, - {"excl", C_EXCL}, - {"notrunc", C_NOTRUNC}, - {"sync", C_SYNC}, - {"fdatasync", C_FDATASYNC}, - {"fsync", C_FSYNC}, - {"", 0}}; - -enum { - - v = ~(0 | 02000 - - | 0 - - | 0 | 040000 - - | 0200000 - - | 010000 - - | 01000000 - - | 0400 - - | 0400000 - - | 0 - - | 04000 - - | 04010000 - - | 0 - - ), - - O_FULLBLOCK = ((v) ^ ((v) & ((v)-1))), - v2 = v ^ O_FULLBLOCK, - - O_NOCACHE = ((v2) ^ ((v2) & ((v2)-1))), - v3 = v2 ^ O_NOCACHE, - - O_COUNT_BYTES = ((v3) ^ ((v3) & ((v3)-1))), - v4 = v3 ^ O_COUNT_BYTES, - - O_SKIP_BYTES = ((v4) ^ ((v4) & ((v4)-1))), - v5 = v4 ^ O_SKIP_BYTES, - - O_SEEK_BYTES = ((v5) ^ ((v5) & ((v5)-1))) -}; - -_Static_assert(O_FULLBLOCK != 0, "verify (" - "O_FULLBLOCK != 0" - ")"); -_Static_assert(O_NOCACHE != 0, "verify (" - "O_NOCACHE != 0" - ")"); -_Static_assert(O_COUNT_BYTES != 0, "verify (" - "O_COUNT_BYTES != 0" - ")"); -_Static_assert(O_SKIP_BYTES != 0, "verify (" - "O_SKIP_BYTES != 0" - ")"); -_Static_assert(O_SEEK_BYTES != 0, "verify (" - "O_SEEK_BYTES != 0" - ")"); - -_Static_assert(!(((O_FULLBLOCK) & ((O_FULLBLOCK)-1)) != 0), - "verify (" - "! MULTIPLE_BITS_SET (O_FULLBLOCK)" - ")"); -_Static_assert(!(((O_NOCACHE) & ((O_NOCACHE)-1)) != 0), - "verify (" - "! MULTIPLE_BITS_SET (O_NOCACHE)" - ")"); -_Static_assert(!(((O_COUNT_BYTES) & ((O_COUNT_BYTES)-1)) != 0), - "verify (" - "! MULTIPLE_BITS_SET (O_COUNT_BYTES)" - ")"); -_Static_assert(!(((O_SKIP_BYTES) & ((O_SKIP_BYTES)-1)) != 0), - "verify (" - "! MULTIPLE_BITS_SET (O_SKIP_BYTES)" - ")"); -_Static_assert(!(((O_SEEK_BYTES) & ((O_SEEK_BYTES)-1)) != 0), - "verify (" - "! MULTIPLE_BITS_SET (O_SEEK_BYTES)" - ")"); - -static struct symbol_value const flags[] = {{"append", 02000}, - {"binary", 0}, - {"cio", 0}, - {"direct", 040000}, - {"directory", 0200000}, - {"dsync", 010000}, - {"noatime", 01000000}, - {"nocache", O_NOCACHE}, - {"noctty", 0400}, - {"nofollow", 1 ? 0400000 : 0}, - {"nolinks", 0}, - {"nonblock", 04000}, - {"sync", 04010000}, - {"text", 0}, - {"fullblock", O_FULLBLOCK}, - {"count_bytes", O_COUNT_BYTES}, - {"skip_bytes", O_SKIP_BYTES}, - {"seek_bytes", O_SEEK_BYTES}, - {"", 0}}; - -static struct symbol_value const statuses[] = {{"none", STATUS_NONE}, - {"noxfer", STATUS_NOXFER}, - {"progress", STATUS_PROGRESS}, - {"", 0}}; - -static unsigned char trans_table[256]; - -static char const ascii_to_ebcdic[] = { - '\000', '\001', '\002', '\003', '\067', '\055', '\056', '\057', '\026', - '\005', '\045', '\013', '\014', '\015', '\016', '\017', '\020', '\021', - '\022', '\023', '\074', '\075', '\062', '\046', '\030', '\031', '\077', - '\047', '\034', '\035', '\036', '\037', '\100', '\132', '\177', '\173', - '\133', '\154', '\120', '\175', '\115', '\135', '\134', '\116', '\153', - '\140', '\113', '\141', '\360', '\361', '\362', '\363', '\364', '\365', - '\366', '\367', '\370', '\371', '\172', '\136', '\114', '\176', '\156', - '\157', '\174', '\301', '\302', '\303', '\304', '\305', '\306', '\307', - '\310', '\311', '\321', '\322', '\323', '\324', '\325', '\326', '\327', - '\330', '\331', '\342', '\343', '\344', '\345', '\346', '\347', '\350', - '\351', '\255', '\340', '\275', '\232', '\155', '\171', '\201', '\202', - '\203', '\204', '\205', '\206', '\207', '\210', '\211', '\221', '\222', - '\223', '\224', '\225', '\226', '\227', '\230', '\231', '\242', '\243', - '\244', '\245', '\246', '\247', '\250', '\251', '\300', '\117', '\320', - '\137', '\007', '\040', '\041', '\042', '\043', '\044', '\025', '\006', - '\027', '\050', '\051', '\052', '\053', '\054', '\011', '\012', '\033', - '\060', '\061', '\032', '\063', '\064', '\065', '\066', '\010', '\070', - '\071', '\072', '\073', '\004', '\024', '\076', '\341', '\101', '\102', - '\103', '\104', '\105', '\106', '\107', '\110', '\111', '\121', '\122', - '\123', '\124', '\125', '\126', '\127', '\130', '\131', '\142', '\143', - '\144', '\145', '\146', '\147', '\150', '\151', '\160', '\161', '\162', - '\163', '\164', '\165', '\166', '\167', '\170', '\200', '\212', '\213', - '\214', '\215', '\216', '\217', '\220', '\152', '\233', '\234', '\235', - '\236', '\237', '\240', '\252', '\253', '\254', '\112', '\256', '\257', - '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267', '\270', - '\271', '\272', '\273', '\274', '\241', '\276', '\277', '\312', '\313', - '\314', '\315', '\316', '\317', '\332', '\333', '\334', '\335', '\336', - '\337', '\352', '\353', '\354', '\355', '\356', '\357', '\372', '\373', - '\374', '\375', '\376', '\377'}; - -static char const ascii_to_ibm[] = { - '\000', '\001', '\002', '\003', '\067', '\055', '\056', '\057', '\026', - '\005', '\045', '\013', '\014', '\015', '\016', '\017', '\020', '\021', - '\022', '\023', '\074', '\075', '\062', '\046', '\030', '\031', '\077', - '\047', '\034', '\035', '\036', '\037', '\100', '\132', '\177', '\173', - '\133', '\154', '\120', '\175', '\115', '\135', '\134', '\116', '\153', - '\140', '\113', '\141', '\360', '\361', '\362', '\363', '\364', '\365', - '\366', '\367', '\370', '\371', '\172', '\136', '\114', '\176', '\156', - '\157', '\174', '\301', '\302', '\303', '\304', '\305', '\306', '\307', - '\310', '\311', '\321', '\322', '\323', '\324', '\325', '\326', '\327', - '\330', '\331', '\342', '\343', '\344', '\345', '\346', '\347', '\350', - '\351', '\255', '\340', '\275', '\137', '\155', '\171', '\201', '\202', - '\203', '\204', '\205', '\206', '\207', '\210', '\211', '\221', '\222', - '\223', '\224', '\225', '\226', '\227', '\230', '\231', '\242', '\243', - '\244', '\245', '\246', '\247', '\250', '\251', '\300', '\117', '\320', - '\241', '\007', '\040', '\041', '\042', '\043', '\044', '\025', '\006', - '\027', '\050', '\051', '\052', '\053', '\054', '\011', '\012', '\033', - '\060', '\061', '\032', '\063', '\064', '\065', '\066', '\010', '\070', - '\071', '\072', '\073', '\004', '\024', '\076', '\341', '\101', '\102', - '\103', '\104', '\105', '\106', '\107', '\110', '\111', '\121', '\122', - '\123', '\124', '\125', '\126', '\127', '\130', '\131', '\142', '\143', - '\144', '\145', '\146', '\147', '\150', '\151', '\160', '\161', '\162', - '\163', '\164', '\165', '\166', '\167', '\170', '\200', '\212', '\213', - '\214', '\215', '\216', '\217', '\220', '\232', '\233', '\234', '\235', - '\236', '\237', '\240', '\252', '\253', '\254', '\255', '\256', '\257', - '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267', '\270', - '\271', '\272', '\273', '\274', '\275', '\276', '\277', '\312', '\313', - '\314', '\315', '\316', '\317', '\332', '\333', '\334', '\335', '\336', - '\337', '\352', '\353', '\354', '\355', '\356', '\357', '\372', '\373', - '\374', '\375', '\376', '\377'}; - -static char const ebcdic_to_ascii[] = { - '\000', '\001', '\002', '\003', '\234', '\011', '\206', '\177', '\227', - '\215', '\216', '\013', '\014', '\015', '\016', '\017', '\020', '\021', - '\022', '\023', '\235', '\205', '\010', '\207', '\030', '\031', '\222', - '\217', '\034', '\035', '\036', '\037', '\200', '\201', '\202', '\203', - '\204', '\012', '\027', '\033', '\210', '\211', '\212', '\213', '\214', - '\005', '\006', '\007', '\220', '\221', '\026', '\223', '\224', '\225', - '\226', '\004', '\230', '\231', '\232', '\233', '\024', '\025', '\236', - '\032', '\040', '\240', '\241', '\242', '\243', '\244', '\245', '\246', - '\247', '\250', '\325', '\056', '\074', '\050', '\053', '\174', '\046', - '\251', '\252', '\253', '\254', '\255', '\256', '\257', '\260', '\261', - '\041', '\044', '\052', '\051', '\073', '\176', '\055', '\057', '\262', - '\263', '\264', '\265', '\266', '\267', '\270', '\271', '\313', '\054', - '\045', '\137', '\076', '\077', '\272', '\273', '\274', '\275', '\276', - '\277', '\300', '\301', '\302', '\140', '\072', '\043', '\100', '\047', - '\075', '\042', '\303', '\141', '\142', '\143', '\144', '\145', '\146', - '\147', '\150', '\151', '\304', '\305', '\306', '\307', '\310', '\311', - '\312', '\152', '\153', '\154', '\155', '\156', '\157', '\160', '\161', - '\162', '\136', '\314', '\315', '\316', '\317', '\320', '\321', '\345', - '\163', '\164', '\165', '\166', '\167', '\170', '\171', '\172', '\322', - '\323', '\324', '\133', '\326', '\327', '\330', '\331', '\332', '\333', - '\334', '\335', '\336', '\337', '\340', '\341', '\342', '\343', '\344', - '\135', '\346', '\347', '\173', '\101', '\102', '\103', '\104', '\105', - '\106', '\107', '\110', '\111', '\350', '\351', '\352', '\353', '\354', - '\355', '\175', '\112', '\113', '\114', '\115', '\116', '\117', '\120', - '\121', '\122', '\356', '\357', '\360', '\361', '\362', '\363', '\134', - '\237', '\123', '\124', '\125', '\126', '\127', '\130', '\131', '\132', - '\364', '\365', '\366', '\367', '\370', '\371', '\060', '\061', '\062', - '\063', '\064', '\065', '\066', '\067', '\070', '\071', '\372', '\373', - '\374', '\375', '\376', '\377'}; - -static _Bool close_stdout_required = 1; -static void maybe_close_stdout(void) { - if (close_stdout_required) - close_stdout(); - else if (close_stream(stderr) != 0) - _exit(1); -} - -__attribute__((__format__(__printf__, 3, 4))) static void -nl_error(int status, int errnum, char const *fmt, ...) { - if (0 < progress_len) { - fputc_unlocked('\n', stderr); - progress_len = 0; - } - - va_list ap; - - __builtin_va_start(ap, fmt); - verror(status, errnum, fmt, ap); - - __builtin_va_end(ap); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext(((void *)0), "Usage: %s [OPERAND]...\n or: %s OPTION\n", 5) - - , - program_name, program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Copy a file, converting and formatting according to the " - "operands.\n\n bs=BYTES read and write up to BYTES bytes " - "at a time (default: 512);\n overrides ibs and " - "obs\n cbs=BYTES convert BYTES bytes at a time\n " - "conv=CONVS convert the file as per the comma separated " - "symbol list\n count=N copy only N input blocks\n " - "ibs=BYTES read up to BYTES bytes at a time (default: 512)\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " if=FILE read from FILE instead of stdin\n iflag=FLAGS " - " read as per the comma separated symbol list\n obs=BYTES " - "write BYTES bytes at a time (default: 512)\n of=FILE " - "write to FILE instead of stdout\n oflag=FLAGS write as per " - "the comma separated symbol list\n seek=N (or oseek=N) " - "skip N obs-sized output blocks\n skip=N (or iseek=N) " - "skip N ibs-sized input blocks\n status=LEVEL The LEVEL of " - "information to print to stderr;\n 'none' " - "suppresses everything but error messages,\n " - "'noxfer' suppresses the final transfer statistics,\n " - " 'progress' shows periodic transfer statistics\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nN and BYTES may be followed by the following multiplicative " - "suffixes:\nc=1, w=2, b=512, kB=1000, K=1024, MB=1000*1000, " - "M=1024*1024, xM=M,\nGB=1000*1000*1000, G=1024*1024*1024, and so " - "on for T, P, E, Z, Y.\nBinary prefixes can be used, too: KiB=K, " - "MiB=M, and so on.\nIf N ends in 'B', it counts bytes not " - "blocks.\n\nEach CONV symbol may be:\n\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " ascii from EBCDIC to ASCII\n ebcdic from ASCII to " - "EBCDIC\n ibm from ASCII to alternate EBCDIC\n block " - "pad newline-terminated records with spaces to cbs-size\n unblock " - " replace trailing spaces in cbs-size records with newline\n " - "lcase change upper case to lower case\n ucase change " - "lower case to upper case\n sparse try to seek rather than " - "write all-NUL output blocks\n swab swap every pair of input " - "bytes\n sync pad every input block with NULs to ibs-size; " - "when used\n with block or unblock, pad with spaces " - "rather than NULs\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " excl fail if the output file already exists\n nocreat " - "do not create the output file\n notrunc do not truncate the " - "output file\n noerror continue after read errors\n fdatasync " - "physically write output file data before finishing\n fsync " - "likewise, but also write metadata\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nEach FLAG symbol may be:\n\n append append mode " - "(makes sense only for output; conv=notrunc suggested)\n", - 5), - stdout) - - ; - if (0) - fputs_unlocked(dcgettext(((void *)0), - " cio use concurrent I/O for data\n", 5), - stdout); - if (040000) - fputs_unlocked( - dcgettext(((void *)0), " direct use direct I/O for data\n", 5), - stdout); - if (0200000) - fputs_unlocked( - dcgettext(((void *)0), " directory fail unless a directory\n", 5), - stdout); - if (010000) - fputs_unlocked(dcgettext(((void *)0), - " dsync use synchronized I/O for data\n", - 5), - stdout); - if (04010000) - fputs_unlocked(dcgettext(((void *)0), - " sync likewise, but also for metadata\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " fullblock accumulate full blocks of input (iflag only)\n", - 5), - stdout); - if (04000) - fputs_unlocked( - dcgettext(((void *)0), " nonblock use non-blocking I/O\n", 5), - stdout); - if (01000000) - fputs_unlocked( - dcgettext(((void *)0), " noatime do not update access time\n", 5), - stdout); - - if (O_NOCACHE) - fputs_unlocked( - dcgettext(((void *)0), - " nocache Request to drop cache. See also oflag=sync\n", - 5), - stdout); - - if (0400) - fputs_unlocked( - dcgettext( - ((void *)0), - " noctty do not assign controlling terminal from file\n", 5), - stdout); - if (1) - fputs_unlocked( - dcgettext(((void *)0), " nofollow do not follow symlinks\n", 5), - stdout); - if (0) - fputs_unlocked( - dcgettext(((void *)0), " nolinks fail if multiply-linked\n", 5), - stdout); - if (0) - fputs_unlocked( - dcgettext(((void *)0), " binary use binary I/O for data\n", 5), - stdout); - if (0) - fputs_unlocked( - dcgettext(((void *)0), " text use text I/O for data\n", 5), - stdout); - - { - printf(dcgettext(((void *)0), - "\nSending a %s signal to a running 'dd' process makes " - "it\nprint I/O statistics to standard error and then " - "resume copying.\n\nOptions are:\n\n", - 5) - - , - 10 == 10 ? "USR1" : "INFO"); - } - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("dd"); - } - exit(status); -} - -enum { - human_opts = (human_autoscale | human_round_to_nearest | - human_space_before_unit | human_SI | human_B) -}; - -static void alloc_ibuf(void) { - if (ibuf) - return; - - _Bool extra_byte_for_swab = !!(conversions_mask & C_SWAB); - ibuf = alignalloc(page_size, input_blocksize + extra_byte_for_swab); - if (!ibuf) { - char hbuf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 1]; - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"memory exhausted " - "by input buffer of size %td bytes (%s)\", 5), " - "input_blocksize, human_readable (input_blocksize, hbuf, " - "human_opts | human_base_1024, 1, 1)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error( - 1, 0, - dcgettext( - ((void *)0), - "memory exhausted by input buffer of size %td bytes (%s)", - 5), - input_blocksize, - human_readable(input_blocksize, hbuf, - human_opts | human_base_1024, 1, 1)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error( - 1, 0, - dcgettext( - ((void *)0), - "memory exhausted by input buffer of size %td bytes (%s)", - 5), - input_blocksize, - human_readable(input_blocksize, hbuf, - human_opts | human_base_1024, 1, 1)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } -} - -static void alloc_obuf(void) { - if (obuf) - return; - - if (conversions_mask & C_TWOBUFS) { - obuf = alignalloc(page_size, output_blocksize); - if (!obuf) { - char hbuf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + - 1 + 3) + - 1]; - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"memory exhausted by " - "output buffer of size %td\" \" bytes (%s)\", 5), " - "output_blocksize, human_readable (output_blocksize, hbuf, " - "human_opts | human_base_1024, 1, 1)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error( - 1, 0, - dcgettext(((void *)0), - "memory exhausted by output buffer of size %td" - " bytes (%s)", - 5), - output_blocksize, - human_readable(output_blocksize, hbuf, - human_opts | human_base_1024, 1, 1)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error( - 1, 0, - dcgettext(((void *)0), - "memory exhausted by output buffer of size %td" - " bytes (%s)", - 5), - output_blocksize, - human_readable(output_blocksize, hbuf, - human_opts | human_base_1024, 1, 1)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - } else { - alloc_ibuf(); - obuf = ibuf; - } -} - -static void translate_charset(char const *new_trans) { - for (int i = 0; i < 256; i++) - trans_table[i] = new_trans[trans_table[i]]; - translation_needed = 1; -} - -static inline _Bool - -multiple_bits_set(int i) { - return (((i) & ((i)-1)) != 0); -} - -static _Bool - -abbreviation_lacks_prefix(char const *message) { - return message[strlen(message) - 2] == ' '; -} - -static void print_xfer_stats(xtime_t progress_time) { - xtime_t now = progress_time ? progress_time : gethrxtime(); - static char const slash_s[] = "/s"; - char hbuf[3][((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + - 1 + 3) + - sizeof slash_s]; - double delta_s; - char const *bytes_per_second; - char const *si = human_readable(w_bytes, hbuf[0], human_opts, 1, 1); - char const *iec = - human_readable(w_bytes, hbuf[1], human_opts | human_base_1024, 1, 1); - - char *bpsbuf = hbuf[2]; - int bpsbufsize = sizeof hbuf[2]; - if (start_time < now) { - double XTIME_PRECISIONe0 = 1000000000; - xtime_t delta_xtime = now - start_time; - delta_s = delta_xtime / XTIME_PRECISIONe0; - bytes_per_second = - human_readable(w_bytes, bpsbuf, human_opts, 1000000000, delta_xtime); - strcat(bytes_per_second - bpsbuf + bpsbuf, slash_s); - } else { - delta_s = 0; - snprintf(bpsbuf, bpsbufsize, "%s B/s", - dcgettext(((void *)0), "Infinity", 5)); - bytes_per_second = bpsbuf; - } - - if (progress_time) - fputc_unlocked('\r', stderr); - - char delta_s_buf[24]; - snprintf(delta_s_buf, sizeof delta_s_buf, progress_time ? "%.0f s" : "%g s", - delta_s); - - int stats_len = - (abbreviation_lacks_prefix(si) - ? fprintf(stderr, - - dcngettext(((void *)0), - "%" - "l" - "d" - " byte copied, %s, %s", - "%" - "l" - "d" - " bytes copied, %s, %s", - select_plural(w_bytes), 5) - - , - w_bytes, delta_s_buf, bytes_per_second) - : abbreviation_lacks_prefix(iec) - ? fprintf(stderr, - - dcgettext(((void *)0), - "%" - "l" - "d" - " bytes (%s) copied, %s, %s", - 5), - w_bytes, si, delta_s_buf, bytes_per_second) - : fprintf(stderr, - - dcgettext(((void *)0), - "%" - "l" - "d" - " bytes (%s, %s) copied, %s, %s", - 5), - w_bytes, si, iec, delta_s_buf, bytes_per_second)); - - if (progress_time) { - - if (0 <= stats_len && stats_len < progress_len) - fprintf(stderr, "%*s", progress_len - stats_len, ""); - progress_len = stats_len; - } else - fputc_unlocked('\n', stderr); - - reported_w_bytes = w_bytes; -} - -static void print_stats(void) { - if (status_level == STATUS_NONE) - return; - - if (0 < progress_len) { - fputc_unlocked('\n', stderr); - progress_len = 0; - } - - fprintf(stderr, - - dcgettext(((void *)0), - "%" - "l" - "d" - "+%" - "l" - "d" - " records in\n" - "%" - "l" - "d" - "+%" - "l" - "d" - " records out\n", - 5) - - , - r_full, r_partial, w_full, w_partial); - - if (r_truncate != 0) - fprintf(stderr, - - dcngettext(((void *)0), - "%" - "l" - "d" - " truncated record\n", - "%" - "l" - "d" - " truncated records\n", - select_plural(r_truncate), 5) - - , - r_truncate); - - if (status_level == STATUS_NOXFER) - return; - - print_xfer_stats(0); -} - -static void interrupt_handler(int sig) { - if (!0x80000000) - signal(sig, ((__sighandler_t)0)); - interrupt_signal = sig; -} - -static void siginfo_handler(int sig) { - if (!1) - signal(sig, siginfo_handler); - info_signal_count++; -} - -static void install_signal_handlers(void) { - - _Bool catch_siginfo = !(10 == 10 && getenv("POSIXLY_CORRECT")); - - struct sigaction act; - sigemptyset(&caught_signals); - if (catch_siginfo) - sigaddset(&caught_signals, 10); - sigaction(2, ((void *)0), &act); - if (act.__sigaction_handler.sa_handler != ((__sighandler_t)1)) - sigaddset(&caught_signals, 2); - act.sa_mask = caught_signals; - - if (sigismember(&caught_signals, 10)) { - act.__sigaction_handler.sa_handler = siginfo_handler; - - act.sa_flags = 0; - sigaction(10, &act, ((void *)0)); - } - - if (sigismember(&caught_signals, 2)) { - act.__sigaction_handler.sa_handler = interrupt_handler; - act.sa_flags = 0x40000000 | 0x80000000; - sigaction(2, &act, ((void *)0)); - } -} - -static int iclose(int fd) { - if (close(fd) != 0) - do - if ((*__errno_location()) != 4) - return -1; - while (close(fd) != 0 && (*__errno_location()) != 9); - - return 0; -} - -static int synchronize_output(void); - -static void cleanup(void) { - if (!interrupt_signal) { - int sync_status = synchronize_output(); - if (sync_status) - exit(sync_status); - } - - if (iclose(0) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"closing input file %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, input_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error( - 1, (*__errno_location()), - dcgettext(((void *)0), "closing input file %s", 5), - quotearg_style(shell_escape_always_quoting_style, input_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error( - 1, (*__errno_location()), - dcgettext(((void *)0), "closing input file %s", 5), - quotearg_style(shell_escape_always_quoting_style, input_file)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (iclose(1) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"closing output file %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, output_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error(1, (*__errno_location()), - dcgettext(((void *)0), "closing output file %s", 5), - quotearg_style(shell_escape_always_quoting_style, - output_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error(1, (*__errno_location()), - dcgettext(((void *)0), "closing output file %s", 5), - quotearg_style(shell_escape_always_quoting_style, - output_file)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static void process_signals(void) { - while (interrupt_signal || info_signal_count) { - int interrupt; - int infos; - sigset_t oldset; - - sigprocmask(0, &caught_signals, &oldset); - - interrupt = interrupt_signal; - infos = info_signal_count; - - if (infos) - info_signal_count = infos - 1; - - sigprocmask(2, &oldset, ((void *)0)); - - if (interrupt) - cleanup(); - print_stats(); - if (interrupt) - raise(interrupt); - } -} - -static void finish_up(void) { - - process_signals(); - cleanup(); - print_stats(); -} - -static void quit(int code) { - finish_up(); - exit(code); -} - -static off_t cache_round(int fd, off_t len) { - static off_t i_pending, o_pending; - off_t *pending = (fd == 0 ? &i_pending : &o_pending); - - if (len) { - intmax_t c_pending; - if (__builtin_add_overflow(*pending, len, &c_pending)) - c_pending = (9223372036854775807L); - *pending = c_pending % IO_BUFSIZE; - if (c_pending > *pending) - len = c_pending - *pending; - else - len = 0; - } else - len = *pending; - - return len; -} - -static _Bool - -invalidate_cache(int fd, off_t len) { - int adv_ret = -1; - off_t offset; - - _Bool nocache_eof = (fd == 0 ? i_nocache_eof : o_nocache_eof); - - off_t clen = cache_round(fd, len); - if (len && !clen) - return 1; - else if (!len && !clen && !nocache_eof) - return 1; - off_t pending = len ? cache_round(fd, 0) : 0; - - if (fd == 0) { - if (input_seekable) - offset = input_offset; - else { - offset = -1; - - (*__errno_location()) = 29; - } - } else { - static off_t output_offset = -2; - - if (output_offset != -1) { - if (output_offset < 0) - output_offset = lseek(fd, 0, 1); - else if (len) - output_offset += clen + pending; - } - - offset = output_offset; - } - - if (0 <= offset) { - if (!len && clen && nocache_eof) { - pending = clen; - clen = 0; - } - - offset = offset - clen - pending; - - if (clen == 0) - offset -= offset % page_size; - adv_ret = posix_fadvise(fd, offset, clen, 4); - } - - return adv_ret != -1 ? 1 : 0; -} - -static ssize_t iread(int fd, char *buf, idx_t size) { - ssize_t nread; - static ssize_t prev_nread; - - do { - process_signals(); - nread = read(fd, buf, size); - - if (nread == -1 && (*__errno_location()) == 22 - - && 0 < prev_nread && prev_nread < size && (input_flags & 040000)) { - - (*__errno_location()) = 0; - nread = 0; - } - } while (nread < 0 && (*__errno_location()) == 4); - - if (0 < nread && nread < size) - process_signals(); - - if (0 < nread && warn_partial_read) { - if (0 < prev_nread && prev_nread < size) { - idx_t prev = prev_nread; - if (status_level != STATUS_NONE) - nl_error(0, 0, - dcngettext(((void *)0), - ("warning: partial read (%td byte); " - "suggest iflag=fullblock"), - ("warning: partial read (%td bytes); " - "suggest iflag=fullblock"), - select_plural(prev), 5) - - , - prev); - warn_partial_read = 0; - } - } - - prev_nread = nread; - return nread; -} - -static ssize_t iread_fullblock(int fd, char *buf, idx_t size) { - ssize_t nread = 0; - - while (0 < size) { - ssize_t ncurr = iread(fd, buf, size); - if (ncurr < 0) - return ncurr; - if (ncurr == 0) - break; - nread += ncurr; - buf += ncurr; - size -= ncurr; - } - - return nread; -} - -static idx_t iwrite(int fd, char const *buf, idx_t size) { - idx_t total_written = 0; - - if ((output_flags & 040000) && size < output_blocksize) { - int old_flags = rpl_fcntl(1, 3); - if (rpl_fcntl(1, 4, old_flags & ~040000) != 0 && - status_level != STATUS_NONE) - nl_error( - 0, (*__errno_location()), - dcgettext(((void *)0), "failed to turn off O_DIRECT: %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, output_file)); - - o_nocache_eof = 1; - invalidate_cache(1, 0); - - conversions_mask |= C_FSYNC; - } - - while (total_written < size) { - ssize_t nwritten = 0; - process_signals(); - - final_op_was_seek = 0; - if ((conversions_mask & C_SPARSE) && is_nul(buf, size)) { - if (lseek(fd, size, 1) < 0) { - conversions_mask &= ~C_SPARSE; - - } else { - final_op_was_seek = 1; - nwritten = size; - } - } - - if (!nwritten) - nwritten = write(fd, buf + total_written, size - total_written); - - if (nwritten < 0) { - if ((*__errno_location()) != 4) - break; - } else if (nwritten == 0) { - - (*__errno_location()) = 28; - break; - } else - total_written += nwritten; - } - - if (o_nocache && total_written) - invalidate_cache(fd, total_written); - - return total_written; -} - -static void write_output(void) { - idx_t nwritten = iwrite(1, obuf, output_blocksize); - w_bytes += nwritten; - if (nwritten != output_blocksize) { - nl_error(0, (*__errno_location()), - dcgettext(((void *)0), "writing to %s", 5), - quotearg_style(shell_escape_always_quoting_style, output_file)); - if (nwritten != 0) - w_partial++; - quit(1); - } else - w_full++; - oc = 0; -} - -static int ifdatasync(int fd) { - int ret; - - do { - process_signals(); - ret = fdatasync(fd); - } while (ret < 0 && (*__errno_location()) == 4); - - return ret; -} - -static int ifd_reopen(int desired_fd, char const *file, int flag, mode_t mode) { - int ret; - - do { - process_signals(); - ret = fd_reopen(desired_fd, file, flag, mode); - } while (ret < 0 && (*__errno_location()) == 4); - - return ret; -} - -static int ifstat(int fd, struct stat *st) { - int ret; - - do { - process_signals(); - ret = fstat(fd, st); - } while (ret < 0 && (*__errno_location()) == 4); - - return ret; -} - -static int ifsync(int fd) { - int ret; - - do { - process_signals(); - ret = fsync(fd); - } while (ret < 0 && (*__errno_location()) == 4); - - return ret; -} - -static int iftruncate(int fd, off_t length) { - int ret; - - do { - process_signals(); - ret = ftruncate(fd, length); - } while (ret < 0 && (*__errno_location()) == 4); - - return ret; -} - -__attribute__((__pure__)) static _Bool - -operand_matches(char const *str, char const *pattern, char delim) { - while (*pattern) - if (*str++ != *pattern++) - return 0; - return !*str || *str == delim; -} - -static int parse_symbols(char const *str, struct symbol_value const *table, - - _Bool exclusive, char const *error_msgid) { - int value = 0; - - while (1) { - char const *strcomma = strchr(str, ','); - struct symbol_value const *entry; - - for (entry = table; - !(operand_matches(str, entry->symbol, ',') && entry->value); entry++) { - if (!entry->symbol[0]) { - idx_t slen = strcomma ? strcomma - str : strlen(str); - nl_error(0, 0, "%s: %s", dcgettext(((void *)0), error_msgid, 5), - quotearg_n_style_mem(0, locale_quoting_style, str, slen)); - usage(1); - } - } - - if (exclusive) - value = entry->value; - else - value |= entry->value; - if (!strcomma) - break; - str = strcomma + 1; - } - - return value; -} - -static intmax_t parse_integer(char const *str, strtol_error *invalid) { - - int indeterminate = 0; - uintmax_t n = indeterminate; - char *suffix; - static char const suffixes[] = "bcEGkKMPTwYZ0"; - strtol_error e = xstrtoumax(str, &suffix, 10, &n, suffixes); - intmax_t result; - - if ((e & ~LONGINT_OVERFLOW) == LONGINT_INVALID_SUFFIX_CHAR && - suffix[-1] != 'B' && *suffix == 'B') { - suffix++; - if (!*suffix) - e &= ~LONGINT_INVALID_SUFFIX_CHAR; - } - - if ((e & ~LONGINT_OVERFLOW) == LONGINT_INVALID_SUFFIX_CHAR && - *suffix == 'x' && !(suffix[-1] == 'B' && strchr(suffix + 1, 'B'))) { - uintmax_t o; - strtol_error f = xstrtoumax(suffix + 1, &suffix, 10, &o, suffixes); - if ((f & ~LONGINT_OVERFLOW) != LONGINT_OK) { - e = f; - result = indeterminate; - } else if (__builtin_mul_overflow(n, o, &result) || - (result != 0 && ((e | f) & LONGINT_OVERFLOW))) { - e = LONGINT_OVERFLOW; - result = (9223372036854775807L); - } else { - if (result == 0 && (strncmp(str, "0x", strlen("0x")) == 0)) - nl_error(0, 0, - - dcgettext(((void *)0), - "warning: %s is a zero multiplier; " - "use %s if that is intended", - 5) - - , - quote_n(0, "0x"), quote_n(1, "00x")); - e = LONGINT_OK; - } - } else if (n <= (9223372036854775807L)) - result = n; - else { - e = LONGINT_OVERFLOW; - result = (9223372036854775807L); - } - - *invalid = e; - return result; -} - -__attribute__((__pure__)) static _Bool - -operand_is(char const *operand, char const *name) { - return operand_matches(operand, name, '='); -} - -static void scanargs(int argc, char *const *argv) { - idx_t blocksize = 0; - intmax_t count = (9223372036854775807L); - intmax_t skip = 0; - intmax_t seek = 0; - - _Bool count_B = 0, skip_B = 0, seek_B = 0; - - for (int i = optind; i < argc; i++) { - char const *name = argv[i]; - char const *val = strchr(name, '='); - - if (val == ((void *)0)) { - nl_error(0, 0, dcgettext(((void *)0), "unrecognized operand %s", 5), - quote(name)); - usage(1); - } - val++; - - if (operand_is(name, "if")) - input_file = val; - else if (operand_is(name, "of")) - output_file = val; - else if (operand_is(name, "conv")) - conversions_mask |= - parse_symbols(val, conversions, 0, "invalid conversion"); - else if (operand_is(name, "iflag")) - input_flags |= parse_symbols(val, flags, 0, "invalid input flag"); - else if (operand_is(name, "oflag")) - output_flags |= parse_symbols(val, flags, 0, "invalid output flag"); - else if (operand_is(name, "status")) - status_level = parse_symbols(val, statuses, 1, "invalid status level"); - else { - strtol_error invalid = LONGINT_OK; - intmax_t n = parse_integer(val, &invalid); - - _Bool has_B = !!strchr(val, 'B'); - intmax_t n_min = 0; - intmax_t n_max = (9223372036854775807L); - idx_t *converted_idx = ((void *)0); - - idx_t max_blocksize = - ((((9223372036854775807L) - 1) < - ((((0x7fffffffffffffffL) < - (((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * - 2 + - 1))))) - ? (0x7fffffffffffffffL) - : (((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - - 1) * - 2 + - 1))))))) - ? ((9223372036854775807L) - 1) - : ((((0x7fffffffffffffffL) < - (((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - - 1) * - 2 + - 1))))) - ? (0x7fffffffffffffffL) - : (((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 - << ((sizeof(off_t) * 8) - 2)) - - 1) * - 2 + - 1))))))); - - if (operand_is(name, "ibs")) { - n_min = 1; - n_max = max_blocksize; - converted_idx = &input_blocksize; - } else if (operand_is(name, "obs")) { - n_min = 1; - n_max = max_blocksize; - converted_idx = &output_blocksize; - } else if (operand_is(name, "bs")) { - n_min = 1; - n_max = max_blocksize; - converted_idx = &blocksize; - } else if (operand_is(name, "cbs")) { - n_min = 1; - n_max = ((((18446744073709551615UL)) < ((9223372036854775807L))) - ? ((18446744073709551615UL)) - : ((9223372036854775807L))); - converted_idx = &conversion_blocksize; - } else if (operand_is(name, "skip") || operand_is(name, "iseek")) { - skip = n; - skip_B = has_B; - } else if (operand_is(name + (*name == 'o'), "seek")) { - seek = n; - seek_B = has_B; - } else if (operand_is(name, "count")) { - count = n; - count_B = has_B; - } else { - nl_error(0, 0, dcgettext(((void *)0), "unrecognized operand %s", 5), - quote(name)); - usage(1); - } - - if (n < n_min) - invalid = LONGINT_INVALID; - else if (n_max < n) - invalid = LONGINT_OVERFLOW; - - if (invalid != LONGINT_OK) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, invalid == LONGINT_OVERFLOW ? 75 : 0, " - "\"%s: %s\", dcgettext (((void *)0), \"invalid " - "number\", 5), quote (val)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error(1, invalid == LONGINT_OVERFLOW ? 75 : 0, "%s: %s", - dcgettext(((void *)0), "invalid number", 5), - quote(val)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error(1, invalid == LONGINT_OVERFLOW ? 75 : 0, "%s: %s", - dcgettext(((void *)0), "invalid number", 5), - quote(val)), - ((0) ? (void)0 : __builtin_unreachable())))); - else if (converted_idx) - *converted_idx = n; - } - } - - if (blocksize) - input_blocksize = output_blocksize = blocksize; - else { - - conversions_mask |= C_TWOBUFS; - } - - if (input_blocksize == 0) - input_blocksize = 512; - if (output_blocksize == 0) - output_blocksize = 512; - if (conversion_blocksize == 0) - conversions_mask &= ~(C_BLOCK | C_UNBLOCK); - - if (input_flags & (010000 | 04010000)) - input_flags |= 04010000; - - if (output_flags & O_FULLBLOCK) { - nl_error(0, 0, "%s: %s", dcgettext(((void *)0), "invalid output flag", 5), - quote("fullblock")); - usage(1); - } - - if (skip_B) - input_flags |= O_SKIP_BYTES; - if (input_flags & O_SKIP_BYTES && skip != 0) { - skip_records = skip / input_blocksize; - skip_bytes = skip % input_blocksize; - } else if (skip != 0) - skip_records = skip; - - if (count_B) - input_flags |= O_COUNT_BYTES; - if (input_flags & O_COUNT_BYTES && count != (9223372036854775807L)) { - max_records = count / input_blocksize; - max_bytes = count % input_blocksize; - } else if (count != (9223372036854775807L)) - max_records = count; - - if (seek_B) - output_flags |= O_SEEK_BYTES; - if (output_flags & O_SEEK_BYTES && seek != 0) { - seek_records = seek / output_blocksize; - seek_bytes = seek % output_blocksize; - } else if (seek != 0) - seek_records = seek; - - warn_partial_read = - (!(conversions_mask & C_TWOBUFS) && !(input_flags & O_FULLBLOCK) && - (skip_records || - (0 < max_records && max_records < (9223372036854775807L)) || - (input_flags | output_flags) & 040000)); - - iread_fnc = ((input_flags & O_FULLBLOCK) ? iread_fullblock : iread); - input_flags &= ~O_FULLBLOCK; - - if (multiple_bits_set(conversions_mask & (C_ASCII | C_EBCDIC | C_IBM))) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot combine " - "any two of {ascii,ebcdic,ibm}\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error(1, 0, - dcgettext(((void *)0), - "cannot combine any two of {ascii,ebcdic,ibm}", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error(1, 0, - dcgettext(((void *)0), - "cannot combine any two of {ascii,ebcdic,ibm}", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (multiple_bits_set(conversions_mask & (C_BLOCK | C_UNBLOCK))) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot " - "combine block and unblock\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error( - 1, 0, - dcgettext(((void *)0), "cannot combine block and unblock", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error( - 1, 0, - dcgettext(((void *)0), "cannot combine block and unblock", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (multiple_bits_set(conversions_mask & (C_LCASE | C_UCASE))) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot " - "combine lcase and ucase\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error( - 1, 0, - dcgettext(((void *)0), "cannot combine lcase and ucase", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error( - 1, 0, - dcgettext(((void *)0), "cannot combine lcase and ucase", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (multiple_bits_set(conversions_mask & (C_EXCL | C_NOCREAT))) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot " - "combine excl and nocreat\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error( - 1, 0, - dcgettext(((void *)0), "cannot combine excl and nocreat", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error( - 1, 0, - dcgettext(((void *)0), "cannot combine excl and nocreat", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (multiple_bits_set(input_flags & (040000 | O_NOCACHE)) || - multiple_bits_set(output_flags & (040000 | O_NOCACHE))) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot " - "combine direct and nocache\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error(1, 0, - dcgettext(((void *)0), - "cannot combine direct and nocache", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error(1, 0, - dcgettext(((void *)0), - "cannot combine direct and nocache", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (input_flags & O_NOCACHE) { - i_nocache = 1; - i_nocache_eof = (max_records == 0 && max_bytes == 0); - input_flags &= ~O_NOCACHE; - } - if (output_flags & O_NOCACHE) { - o_nocache = 1; - o_nocache_eof = (max_records == 0 && max_bytes == 0); - output_flags &= ~O_NOCACHE; - } -} - -static void apply_translations(void) { - int i; - - if (conversions_mask & C_ASCII) - translate_charset(ebcdic_to_ascii); - - if (conversions_mask & C_UCASE) { - for (i = 0; i < 256; i++) - trans_table[i] = (__extension__({ - int __res; - if (sizeof(trans_table[i]) > 1) { - if (__builtin_constant_p(trans_table[i])) { - int __c = (trans_table[i]); - __res = - __c < -128 || __c > 255 ? __c : (*__ctype_toupper_loc())[__c]; - } else - __res = toupper(trans_table[i]); - } else - __res = (*__ctype_toupper_loc())[(int)(trans_table[i])]; - __res; - })); - translation_needed = 1; - } else if (conversions_mask & C_LCASE) { - for (i = 0; i < 256; i++) - trans_table[i] = (__extension__({ - int __res; - if (sizeof(trans_table[i]) > 1) { - if (__builtin_constant_p(trans_table[i])) { - int __c = (trans_table[i]); - __res = - __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(trans_table[i]); - } else - __res = (*__ctype_tolower_loc())[(int)(trans_table[i])]; - __res; - })); - translation_needed = 1; - } - - if (conversions_mask & C_EBCDIC) { - translate_charset(ascii_to_ebcdic); - newline_character = ascii_to_ebcdic['\n']; - space_character = ascii_to_ebcdic[' ']; - } else if (conversions_mask & C_IBM) { - translate_charset(ascii_to_ibm); - newline_character = ascii_to_ibm['\n']; - space_character = ascii_to_ibm[' ']; - } -} - -static void translate_buffer(char *buf, idx_t nread) { - idx_t i; - char *cp; - for (i = nread, cp = buf; i; i--, cp++) - *cp = trans_table[to_uchar(*cp)]; -} -static char *swab_buffer(char *buf, idx_t *nread, int *saved_byte) { - if (*nread == 0) - return buf; - - int prev_saved = *saved_byte; - if ((prev_saved < 0) == (*nread & 1)) { - unsigned char c = buf[--*nread]; - *saved_byte = c; - } else - *saved_byte = -1; - - for (idx_t i = *nread; 1 < i; i -= 2) - buf[i] = buf[i - 2]; - - if (prev_saved < 0) - return buf + 1; - - buf[1] = prev_saved; - ++*nread; - return buf; -} - -static void advance_input_offset(intmax_t offset) { - if (0 <= input_offset && - __builtin_add_overflow(input_offset, offset, &input_offset)) - input_offset = -1; -} -static intmax_t skip(int fdesc, char const *file, intmax_t records, - idx_t blocksize, idx_t *bytes) { - - (*__errno_location()) = 0; - off_t offset; - if (!__builtin_mul_overflow(records, blocksize, &offset) && - !__builtin_add_overflow(offset, *bytes, &offset) && - 0 <= lseek(fdesc, offset, 1)) { - if (fdesc == 0) { - struct stat st; - if (ifstat(0, &st) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot fstat %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error( - 1, (*__errno_location()), - dcgettext(((void *)0), "cannot fstat %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error( - 1, (*__errno_location()), - dcgettext(((void *)0), "cannot fstat %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (usable_st_size(&st) && 0 <= input_offset && - st.st_size - input_offset < offset) { - - records = (offset - st.st_size) / blocksize; - offset = st.st_size - input_offset; - } else - records = 0; - advance_input_offset(offset); - } else { - records = 0; - *bytes = 0; - } - return records; - } else { - int lseek_errno = (*__errno_location()); - - if (lseek(fdesc, 0, 2) >= 0) { - - if (!lseek_errno) { - - lseek_errno = 75; - } - - if (fdesc == 0) - nl_error(0, lseek_errno, dcgettext(((void *)0), "%s: cannot skip", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - else - nl_error(0, lseek_errno, dcgettext(((void *)0), "%s: cannot seek", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - - quit(1); - } - - char *buf; - if (fdesc == 0) { - alloc_ibuf(); - buf = ibuf; - } else { - alloc_obuf(); - buf = obuf; - } - - do { - ssize_t nread = iread_fnc(fdesc, buf, records ? blocksize : *bytes); - if (nread < 0) { - if (fdesc == 0) { - nl_error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - if (conversions_mask & C_NOERROR) - print_stats(); - } else - nl_error(0, lseek_errno, dcgettext(((void *)0), "%s: cannot seek", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - quit(1); - } else if (nread == 0) - break; - else if (fdesc == 0) - advance_input_offset(nread); - - if (records != 0) - records--; - else - *bytes = 0; - } while (records || *bytes); - - return records; - } -} - -static _Bool - -advance_input_after_read_error(idx_t nbytes) { - if (!input_seekable) { - if (input_seek_errno == 29) - return 1; - - (*__errno_location()) = input_seek_errno; - } else { - off_t offset; - advance_input_offset(nbytes); - if (input_offset < 0) { - nl_error( - 0, 0, - dcgettext(((void *)0), "offset overflow while reading file %s", 5), - quotearg_style(shell_escape_always_quoting_style, input_file)); - return 0; - } - offset = lseek(0, 0, 1); - if (0 <= offset) { - off_t diff; - if (offset == input_offset) - return 1; - diff = input_offset - offset; - if (!(0 <= diff && diff <= nbytes) && status_level != STATUS_NONE) - nl_error(0, 0, - dcgettext(((void *)0), - "warning: invalid file offset after failed read", - 5)); - if (0 <= lseek(0, diff, 1)) - return 1; - if ((*__errno_location()) == 0) - nl_error(0, 0, - dcgettext(((void *)0), - "cannot work around kernel bug after all", 5)); - } - } - - nl_error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: cannot seek", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, input_file)); - return 0; -} - -static void copy_simple(char const *buf, idx_t nread) { - char const *start = buf; - - do { - idx_t nfree = - (((nread) < (output_blocksize - oc)) ? (nread) - : (output_blocksize - oc)); - - memcpy(obuf + oc, start, nfree); - - nread -= nfree; - start += nfree; - oc += nfree; - if (oc >= output_blocksize) - write_output(); - } while (nread != 0); -} - -static void copy_with_block(char const *buf, idx_t nread) { - for (idx_t i = nread; i; i--, buf++) { - if (*buf == newline_character) { - if (col < conversion_blocksize) { - idx_t j; - for (j = col; j < conversion_blocksize; j++) - do { - obuf[oc++] = (space_character); - if (oc >= output_blocksize) - write_output(); - } while (0); - } - col = 0; - } else { - if (col == conversion_blocksize) - r_truncate++; - else if (col < conversion_blocksize) - do { - obuf[oc++] = (*buf); - if (oc >= output_blocksize) - write_output(); - } while (0); - col++; - } - } -} - -static void copy_with_unblock(char const *buf, idx_t nread) { - static idx_t pending_spaces = 0; - - for (idx_t i = 0; i < nread; i++) { - char c = buf[i]; - - if (col++ >= conversion_blocksize) { - col = pending_spaces = 0; - i--; - do { - obuf[oc++] = (newline_character); - if (oc >= output_blocksize) - write_output(); - } while (0); - } else if (c == space_character) - pending_spaces++; - else { - - while (pending_spaces) { - do { - obuf[oc++] = (space_character); - if (oc >= output_blocksize) - write_output(); - } while (0); - --pending_spaces; - } - do { - obuf[oc++] = (c); - if (oc >= output_blocksize) - write_output(); - } while (0); - } - } -} - -static void set_fd_flags(int fd, int add_flags, char const *name) { - - add_flags &= ~(0400 | 0400000); - - if (add_flags) { - int old_flags = rpl_fcntl(fd, 3); - int new_flags = old_flags | add_flags; - - _Bool ok = 1; - if (old_flags < 0) - ok = 0; - else if (old_flags != new_flags) { - if (new_flags & (0200000 | 0)) { - - struct stat st; - if (ifstat(fd, &st) != 0) - ok = 0; - else if ((new_flags & 0200000) && - !((((st.st_mode)) & 0170000) == (0040000))) { - - (*__errno_location()) = 20; - ok = 0; - } else if ((new_flags & 0) && 1 < st.st_nlink) { - - (*__errno_location()) = 31; - ok = 0; - } - new_flags &= ~(0200000 | 0); - } - - if (ok && old_flags != new_flags && rpl_fcntl(fd, 4, new_flags) == -1) - ok = 0; - } - - if (!ok) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"setting flags for %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error( - 1, (*__errno_location()), - dcgettext(((void *)0), "setting flags for %s", 5), - quotearg_style(shell_escape_always_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error( - 1, (*__errno_location()), - dcgettext(((void *)0), "setting flags for %s", 5), - quotearg_style(shell_escape_always_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable())))); - } -} - -static int dd_copy(void) { - char *bufstart; - ssize_t nread; - - idx_t partread = 0; - - int exit_status = 0; - idx_t n_bytes_read; - - if (skip_records != 0 || skip_bytes != 0) { - intmax_t us_bytes; - - _Bool us_bytes_overflow = - (__builtin_mul_overflow(skip_records, input_blocksize, &us_bytes) || - __builtin_add_overflow(skip_bytes, us_bytes, &us_bytes)); - off_t input_offset0 = input_offset; - intmax_t us_blocks = - skip(0, input_file, skip_records, input_blocksize, &skip_bytes); - - if ((us_blocks || - (0 <= input_offset && - (us_bytes_overflow || us_bytes != input_offset - input_offset0))) && - status_level != STATUS_NONE) { - nl_error( - 0, 0, - - dcgettext(((void *)0), "%s: cannot skip to specified offset", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, input_file)); - } - } - - if (seek_records != 0 || seek_bytes != 0) { - idx_t bytes = seek_bytes; - intmax_t write_records = - skip(1, output_file, seek_records, output_blocksize, &bytes); - - if (write_records != 0 || bytes != 0) { - memset(obuf, 0, write_records ? output_blocksize : bytes); - - do { - idx_t size = write_records ? output_blocksize : bytes; - if (iwrite(1, obuf, size) != size) { - nl_error( - 0, (*__errno_location()), - dcgettext(((void *)0), "writing to %s", 5), - quotearg_style(shell_escape_always_quoting_style, output_file)); - quit(1); - } - - if (write_records != 0) - write_records--; - else - bytes = 0; - } while (write_records || bytes); - } - } - - if (max_records == 0 && max_bytes == 0) - return exit_status; - - alloc_ibuf(); - alloc_obuf(); - int saved_byte = -1; - - while (1) { - if (status_level == STATUS_PROGRESS) { - xtime_t progress_time = gethrxtime(); - if (next_time <= progress_time) { - print_xfer_stats(progress_time); - next_time += 1000000000; - } - } - - if (r_partial + r_full >= max_records + !!max_bytes) - break; - - if ((conversions_mask & C_SYNC) && (conversions_mask & C_NOERROR)) - memset(ibuf, (conversions_mask & (C_BLOCK | C_UNBLOCK)) ? ' ' : '\0', - input_blocksize); - - if (r_partial + r_full >= max_records) - nread = iread_fnc(0, ibuf, max_bytes); - else - nread = iread_fnc(0, ibuf, input_blocksize); - - if (nread > 0) { - advance_input_offset(nread); - if (i_nocache) - invalidate_cache(0, nread); - } else if (nread == 0) { - i_nocache_eof |= i_nocache; - o_nocache_eof |= o_nocache && !(conversions_mask & C_NOTRUNC); - break; - } else { - if (!(conversions_mask & C_NOERROR) || status_level != STATUS_NONE) - nl_error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, input_file)); - - if (conversions_mask & C_NOERROR) { - print_stats(); - idx_t bad_portion = input_blocksize - partread; - - invalidate_cache(0, bad_portion); - - if (!advance_input_after_read_error(bad_portion)) { - exit_status = 1; - - input_seekable = 0; - input_seek_errno = 29; - } - if ((conversions_mask & C_SYNC) && !partread) - - nread = 0; - else - continue; - } else { - - exit_status = 1; - break; - } - } - - n_bytes_read = nread; - - if (n_bytes_read < input_blocksize) { - r_partial++; - partread = n_bytes_read; - if (conversions_mask & C_SYNC) { - if (!(conversions_mask & C_NOERROR)) - - memset(ibuf + n_bytes_read, - (conversions_mask & (C_BLOCK | C_UNBLOCK)) ? ' ' : '\0', - input_blocksize - n_bytes_read); - n_bytes_read = input_blocksize; - } - } else { - r_full++; - partread = 0; - } - - if (ibuf == obuf) { - idx_t nwritten = iwrite(1, obuf, n_bytes_read); - w_bytes += nwritten; - if (nwritten != n_bytes_read) { - nl_error( - 0, (*__errno_location()), - dcgettext(((void *)0), "error writing %s", 5), - quotearg_style(shell_escape_always_quoting_style, output_file)); - return 1; - } else if (n_bytes_read == input_blocksize) - w_full++; - else - w_partial++; - continue; - } - - if (translation_needed) - translate_buffer(ibuf, n_bytes_read); - - if (conversions_mask & C_SWAB) - bufstart = swab_buffer(ibuf, &n_bytes_read, &saved_byte); - else - bufstart = ibuf; - - if (conversions_mask & C_BLOCK) - copy_with_block(bufstart, n_bytes_read); - else if (conversions_mask & C_UNBLOCK) - copy_with_unblock(bufstart, n_bytes_read); - else - copy_simple(bufstart, n_bytes_read); - } - - if (0 <= saved_byte) { - char saved_char = saved_byte; - if (conversions_mask & C_BLOCK) - copy_with_block(&saved_char, 1); - else if (conversions_mask & C_UNBLOCK) - copy_with_unblock(&saved_char, 1); - else - do { - obuf[oc++] = (saved_char); - if (oc >= output_blocksize) - write_output(); - } while (0); - } - - if ((conversions_mask & C_BLOCK) && col > 0) { - - for (idx_t i = col; i < conversion_blocksize; i++) - do { - obuf[oc++] = (space_character); - if (oc >= output_blocksize) - write_output(); - } while (0); - } - - if (col && (conversions_mask & C_UNBLOCK)) { - - do { - obuf[oc++] = (newline_character); - if (oc >= output_blocksize) - write_output(); - } while (0); - } - - if (oc != 0) { - idx_t nwritten = iwrite(1, obuf, oc); - w_bytes += nwritten; - if (nwritten != 0) - w_partial++; - if (nwritten != oc) { - nl_error(0, (*__errno_location()), - dcgettext(((void *)0), "error writing %s", 5), - quotearg_style(shell_escape_always_quoting_style, output_file)); - return 1; - } - } - - if (final_op_was_seek) { - struct stat stdout_stat; - if (ifstat(1, &stdout_stat) != 0) { - nl_error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot fstat %s", 5), - quotearg_style(shell_escape_always_quoting_style, output_file)); - return 1; - } - if (((((stdout_stat.st_mode)) & 0170000) == (0100000)) || - ((&stdout_stat)->st_mode - (&stdout_stat)->st_mode)) { - off_t output_offset = lseek(1, 0, 1); - if (0 <= output_offset && stdout_stat.st_size < output_offset) { - if (iftruncate(1, output_offset) != 0) { - nl_error( - 0, (*__errno_location()), - - dcgettext(((void *)0), - "failed to truncate to %" - "l" - "d" - " bytes" - " in output file %s", - 5) - - , - (intmax_t)output_offset, - quotearg_style(shell_escape_always_quoting_style, output_file)); - return 1; - } - } - } - } - - if (conversions_mask & (C_FDATASYNC | C_FSYNC) && - status_level == STATUS_PROGRESS && 0 <= reported_w_bytes && - reported_w_bytes < w_bytes) - print_xfer_stats(0); - - return exit_status; -} - -static int synchronize_output(void) { - int exit_status = 0; - int mask = conversions_mask; - conversions_mask &= ~(C_FDATASYNC | C_FSYNC); - - if ((mask & C_FDATASYNC) && ifdatasync(1) != 0) { - if ((*__errno_location()) != 38 && (*__errno_location()) != 22) { - nl_error(0, (*__errno_location()), - dcgettext(((void *)0), "fdatasync failed for %s", 5), - quotearg_style(shell_escape_always_quoting_style, output_file)); - exit_status = 1; - } - mask |= C_FSYNC; - } - - if ((mask & C_FSYNC) && ifsync(1) != 0) { - nl_error(0, (*__errno_location()), - dcgettext(((void *)0), "fsync failed for %s", 5), - quotearg_style(shell_escape_always_quoting_style, output_file)); - return 1; - } - - return exit_status; -} - -int main(int argc, char **argv) { - int i; - int exit_status; - off_t offset; - - install_signal_handlers(); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(maybe_close_stdout); - - page_size = getpagesize(); - - parse_gnu_standard_options_only(argc, argv, "dd", "coreutils", Version, - - 1, usage, ("Paul Rubin"), ("David MacKenzie"), - ("Stuart Kemp"), (char const *)((void *)0)); - close_stdout_required = 0; - - for (i = 0; i < 256; i++) - trans_table[i] = i; - - scanargs(argc, argv); - - apply_translations(); - - if (input_file == ((void *)0)) { - input_file = dcgettext(((void *)0), "standard input", 5); - set_fd_flags(0, input_flags, input_file); - } else { - if (ifd_reopen(0, input_file, 00 | input_flags, 0) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to open %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, input_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to open %s", 5), - quotearg_style(shell_escape_always_quoting_style, - input_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to open %s", 5), - quotearg_style(shell_escape_always_quoting_style, - input_file)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - offset = lseek(0, 0, 1); - input_seekable = (0 <= offset); - input_offset = (((0) > (offset)) ? (0) : (offset)); - input_seek_errno = (*__errno_location()); - - if (output_file == ((void *)0)) { - output_file = dcgettext(((void *)0), "standard output", 5); - set_fd_flags(1, output_flags, output_file); - } else { - mode_t perms = (0400 | 0200 | (0400 >> 3) | (0200 >> 3) | - ((0400 >> 3) >> 3) | ((0200 >> 3) >> 3)); - int opts = (output_flags | (conversions_mask & C_NOCREAT ? 0 : 0100) | - (conversions_mask & C_EXCL ? 0200 : 0) | - (seek_records || (conversions_mask & C_NOTRUNC) ? 0 : 01000)); - - off_t size; - if ((__builtin_mul_overflow(seek_records, output_blocksize, &size) || - __builtin_add_overflow(seek_bytes, size, &size)) && - !(conversions_mask & C_NOTRUNC)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"offset too " - "large: \" \"cannot truncate to a length of " - "seek=%\"\"l\" \"d\"\"\" \" (%td-byte) blocks\", 5), " - "seek_records, output_blocksize), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error(1, 0, - dcgettext(((void *)0), - "offset too large: " - "cannot truncate to a length of seek=%" - "l" - "d" - "" - " (%td-byte) blocks", - 5), - seek_records, output_blocksize), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error(1, 0, - dcgettext(((void *)0), - "offset too large: " - "cannot truncate to a length of seek=%" - "l" - "d" - "" - " (%td-byte) blocks", - 5), - seek_records, output_blocksize), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - - if ((!seek_records || ifd_reopen(1, output_file, 02 | opts, perms) < 0) && - (ifd_reopen(1, output_file, 01 | opts, perms) < 0)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to open %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, output_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((nl_error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to open %s", 5), - quotearg_style(shell_escape_always_quoting_style, - output_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((nl_error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to open %s", 5), - quotearg_style(shell_escape_always_quoting_style, - output_file)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (seek_records != 0 && !(conversions_mask & C_NOTRUNC)) { - if (iftruncate(1, size) != 0) { - - int ftruncate_errno = (*__errno_location()); - struct stat stdout_stat; - if (ifstat(1, &stdout_stat) != 0) { - nl_error( - 0, (*__errno_location()), - dcgettext(((void *)0), "cannot fstat %s", 5), - quotearg_style(shell_escape_always_quoting_style, output_file)); - exit_status = 1; - } else if (((((stdout_stat.st_mode)) & 0170000) == (0100000)) - - || ((((stdout_stat.st_mode)) & 0170000) == (0040000)) - - || ((&stdout_stat)->st_mode - (&stdout_stat)->st_mode)) { - intmax_t isize = size; - nl_error( - 0, ftruncate_errno, - - dcgettext(((void *)0), - "failed to truncate to %" - "l" - "d" - " bytes" - " in output file %s", - 5) - - , - isize, - quotearg_style(shell_escape_always_quoting_style, output_file)); - exit_status = 1; - } - } - } - } - - start_time = gethrxtime(); - next_time = start_time + 1000000000; - - exit_status = dd_copy(); - - int sync_status = synchronize_output(); - if (sync_status) - exit_status = sync_status; - - if (max_records == 0 && max_bytes == 0) { - - if (i_nocache && !invalidate_cache(0, 0)) { - nl_error( - 0, (*__errno_location()), - dcgettext(((void *)0), "failed to discard cache for: %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, input_file)); - exit_status = 1; - } - if (o_nocache && !invalidate_cache(1, 0)) { - nl_error( - 0, (*__errno_location()), - dcgettext(((void *)0), "failed to discard cache for: %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, output_file)); - exit_status = 1; - } - } else { - - if (i_nocache || i_nocache_eof) - invalidate_cache(0, 0); - if (o_nocache || o_nocache_eof) - invalidate_cache(1, 0); - } - - finish_up(); - exit(exit_status); -} diff --git a/tests/source/coreutils/df.c b/tests/source/coreutils/df.c deleted file mode 100644 index f2e26f2..0000000 --- a/tests/source/coreutils/df.c +++ /dev/null @@ -1,10582 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -inline _Bool - -c_isalnum(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isalpha(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isascii(int c) { - switch (c) { - case ' ': - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_isblank(int c) { - return c == ' ' || c == '\t'; -} - -inline _Bool - -c_iscntrl(int c) { - switch (c) { - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isgraph(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_islower(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isprint(int c) { - switch (c) { - case ' ': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_ispunct(int c) { - switch (c) { - case '!': - case '"': - case ' return 1; default: - return 0; - } -} - -inline _Bool - -c_isspace(int c) { - switch (c) { - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isupper(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isxdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline int c_tolower(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return c - 'A' + 'a'; - default: - return c; - } -} - -inline int c_toupper(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return c - 'a' + 'A'; - default: - return c; - } -} - -typedef unsigned int wint_t; - -typedef __mbstate_t mbstate_t; - -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -struct tm; - -extern wchar_t *wcscpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcscat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int wcscmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcsncmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcscasecmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int wcscasecmp_l(const wchar_t *__s1, const wchar_t *__s2, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp_l(const wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll_l(const wchar_t *__s1, const wchar_t *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm_l(wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcsdup(const wchar_t *__s) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(__builtin_free, 1))); -extern wchar_t *wcschr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsrchr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcschrnul(const wchar_t *__s, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcscspn(const wchar_t *__wcs, const wchar_t *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsspn(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcspbrk(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsstr(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcstok(wchar_t *__restrict __s, - const wchar_t *__restrict __delim, - wchar_t **__restrict __ptr) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcslen(const wchar_t *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); -extern wchar_t *wcswcs(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsnlen(const wchar_t *__s, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wmemchr(const wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern int wmemcmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wmemcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemset(wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmempcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t btowc(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int wctob(wint_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int mbsinit(const mbstate_t *__ps) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); - -extern size_t mbrtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n, mbstate_t *__restrict __p) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcrtomb(char *__restrict __s, wchar_t __wc, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t __mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbsrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbsnrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsnrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern int wcwidth(wchar_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int wcswidth(const wchar_t *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern double wcstod(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long double wcstold(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long int wcstol(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoq(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstouq(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -extern long int wcstol_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull_l(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern double wcstod_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern long double wcstold_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *wcpcpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcpncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern __FILE *open_wmemstream(wchar_t **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(rpl_fclose, 1))); - -extern int fwide(__FILE *__fp, int __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fwprintf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wprintf(const wchar_t *__restrict __format, ...); - -extern int swprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwprintf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwprintf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wscanf(const wchar_t *__restrict __format, ...); - -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_fwscanf") - - ; -extern int wscanf(const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_wscanf") - - ; -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_swscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwscanf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfwscanf") - - ; -extern int vwscanf(const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vwscanf") - - ; -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vswscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wint_t fgetwc(__FILE *__stream); -extern wint_t getwc(__FILE *__stream); - -extern wint_t getwchar(void); - -extern wint_t fputwc(wchar_t __wc, __FILE *__stream); -extern wint_t putwc(wchar_t __wc, __FILE *__stream); - -extern wint_t putwchar(wchar_t __wc); - -extern wchar_t *fgetws(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws(const wchar_t *__restrict __ws, __FILE *__restrict __stream); - -extern wint_t ungetwc(wint_t __wc, __FILE *__stream); -extern wint_t getwc_unlocked(__FILE *__stream); -extern wint_t getwchar_unlocked(void); - -extern wint_t fgetwc_unlocked(__FILE *__stream); - -extern wint_t fputwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwchar_unlocked(wchar_t __wc); -extern wchar_t *fgetws_unlocked(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws_unlocked(const wchar_t *__restrict __ws, - __FILE *__restrict __stream); - -extern size_t wcsftime(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsftime_l(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *__wmemcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmemcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmemcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemmove_chk(wchar_t *__s1, const wchar_t *__s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemmove_alias(wchar_t *__s1, const wchar_t *__s2, - size_t __n) __asm__("" - "wmemmove") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemmove_chk_warn(wchar_t *__s1, const wchar_t *__s2, - size_t __n, - size_t __ns1) __asm__("" - "__wmemmove_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemmove called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemmove_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmempcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmempcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmempcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmempcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmempcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmempcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmempcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmempcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemset_chk(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_alias(wchar_t *__s, wchar_t __c, - size_t __n) __asm__("" - "wmemset") - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_chk_warn(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) __asm__("" - "__wmemset_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemset called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemset(wchar_t *__s, wchar_t __c, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_alias(__s, __c, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_chk_warn(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))) - : __wmemset_chk(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscpy_alias(__dest, __src); -} - -extern wchar_t *__wcpcpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcpcpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcpcpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpcpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcpcpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcpcpy_alias(__dest, __src); -} - -extern wchar_t *__wcsncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcsncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcsncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcsncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcsncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcpncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcpncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcpncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcpncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcpncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcpncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcpncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscat(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscat_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscat_alias(__dest, __src); -} - -extern wchar_t *__wcsncat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncat(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcsncat_chk(__dest, __src, __n, sz / sizeof(wchar_t)); - return __wcsncat_alias(__dest, __src, __n); -} - -extern int __swprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int __swprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - ...) __asm__("" - "swprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -swprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - ...) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __swprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, - __builtin_va_arg_pack()); - return __swprintf_alias(__s, __n, __fmt, __builtin_va_arg_pack()); -} -extern int __vswprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int __vswprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) __asm__("" - "vswprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -vswprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __vswprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, __ap); - return __vswprintf_alias(__s, __n, __fmt, __ap); -} - -extern int __fwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, ...); -extern int __wprintf_chk(int __flag, const wchar_t *__restrict __format, ...); -extern int __vfwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, - __gnuc_va_list __ap); -extern int __vwprintf_chk(int __flag, const wchar_t *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -wprintf(const wchar_t *__restrict __fmt, ...) { - return __wprintf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) { - return __fwprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vwprintf(const wchar_t *__restrict __fmt, __gnuc_va_list __ap) { - return __vwprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfwprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern wchar_t *__fgetws_chk(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws") - - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_chk_warn(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgetws called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern wchar_t *__fgetws_unlocked_chk(wchar_t *__restrict __s, size_t __size, - int __n, __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_unlocked_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws_unlocked") - - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_unlocked_chk_warn( - wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgetws_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws_unlocked(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_unlocked_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern size_t __wcrtomb_chk(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __p, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern size_t __wcrtomb_alias(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __ps) __asm__("" - "wcrtomb") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcrtomb(char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) - -{ - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wcrtomb_chk(__s, __wchar, __ps, __builtin_object_size(__s, 2 > 1)); - return __wcrtomb_alias(__s, __wchar, __ps); -} - -extern size_t __mbsrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __mbsrtowcs_alias(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_chk_warn(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsrtowcs_chk(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __wcsrtombs_alias(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __wcsrtombs_chk_warn(char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_chk_warn(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsrtombs_chk(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern size_t __mbsnrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__mbsnrtowcs_alias(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsnrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsnrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsnrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsnrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsnrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_alias(__dst, __src, __nmc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_chk_warn(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsnrtowcs_chk(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsnrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__wcsnrtombs_alias(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsnrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t -__wcsnrtombs_chk_warn(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsnrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsnrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsnrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_alias(__dst, __src, __nwc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_chk_warn(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsnrtombs_chk(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrtowc(wchar_t *__restrict__ pwc, const char *__restrict__ s, - size_t n, mbstate_t *__restrict__ ps) - - ; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrlen(const char *__restrict__ s, size_t n, - mbstate_t *__restrict__ ps); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef unsigned long int wctype_t; -enum { - __ISwupper = 0, - __ISwlower = 1, - __ISwalpha = 2, - __ISwdigit = 3, - __ISwxdigit = 4, - __ISwspace = 5, - __ISwprint = 6, - __ISwgraph = 7, - __ISwblank = 8, - __ISwcntrl = 9, - __ISwpunct = 10, - __ISwalnum = 11, - - _ISwupper = - ((__ISwupper) < 8 - ? (int)((1UL << (__ISwupper)) << 24) - : ((__ISwupper) < 16 - ? (int)((1UL << (__ISwupper)) << 8) - : ((__ISwupper) < 24 ? (int)((1UL << (__ISwupper)) >> 8) - : (int)((1UL << (__ISwupper)) >> 24)))), - _ISwlower = - ((__ISwlower) < 8 - ? (int)((1UL << (__ISwlower)) << 24) - : ((__ISwlower) < 16 - ? (int)((1UL << (__ISwlower)) << 8) - : ((__ISwlower) < 24 ? (int)((1UL << (__ISwlower)) >> 8) - : (int)((1UL << (__ISwlower)) >> 24)))), - _ISwalpha = - ((__ISwalpha) < 8 - ? (int)((1UL << (__ISwalpha)) << 24) - : ((__ISwalpha) < 16 - ? (int)((1UL << (__ISwalpha)) << 8) - : ((__ISwalpha) < 24 ? (int)((1UL << (__ISwalpha)) >> 8) - : (int)((1UL << (__ISwalpha)) >> 24)))), - _ISwdigit = - ((__ISwdigit) < 8 - ? (int)((1UL << (__ISwdigit)) << 24) - : ((__ISwdigit) < 16 - ? (int)((1UL << (__ISwdigit)) << 8) - : ((__ISwdigit) < 24 ? (int)((1UL << (__ISwdigit)) >> 8) - : (int)((1UL << (__ISwdigit)) >> 24)))), - _ISwxdigit = - ((__ISwxdigit) < 8 ? (int)((1UL << (__ISwxdigit)) << 24) - : ((__ISwxdigit) < 16 - ? (int)((1UL << (__ISwxdigit)) << 8) - : ((__ISwxdigit) < 24 - ? (int)((1UL << (__ISwxdigit)) >> 8) - : (int)((1UL << (__ISwxdigit)) >> 24)))), - _ISwspace = - ((__ISwspace) < 8 - ? (int)((1UL << (__ISwspace)) << 24) - : ((__ISwspace) < 16 - ? (int)((1UL << (__ISwspace)) << 8) - : ((__ISwspace) < 24 ? (int)((1UL << (__ISwspace)) >> 8) - : (int)((1UL << (__ISwspace)) >> 24)))), - _ISwprint = - ((__ISwprint) < 8 - ? (int)((1UL << (__ISwprint)) << 24) - : ((__ISwprint) < 16 - ? (int)((1UL << (__ISwprint)) << 8) - : ((__ISwprint) < 24 ? (int)((1UL << (__ISwprint)) >> 8) - : (int)((1UL << (__ISwprint)) >> 24)))), - _ISwgraph = - ((__ISwgraph) < 8 - ? (int)((1UL << (__ISwgraph)) << 24) - : ((__ISwgraph) < 16 - ? (int)((1UL << (__ISwgraph)) << 8) - : ((__ISwgraph) < 24 ? (int)((1UL << (__ISwgraph)) >> 8) - : (int)((1UL << (__ISwgraph)) >> 24)))), - _ISwblank = - ((__ISwblank) < 8 - ? (int)((1UL << (__ISwblank)) << 24) - : ((__ISwblank) < 16 - ? (int)((1UL << (__ISwblank)) << 8) - : ((__ISwblank) < 24 ? (int)((1UL << (__ISwblank)) >> 8) - : (int)((1UL << (__ISwblank)) >> 24)))), - _ISwcntrl = - ((__ISwcntrl) < 8 - ? (int)((1UL << (__ISwcntrl)) << 24) - : ((__ISwcntrl) < 16 - ? (int)((1UL << (__ISwcntrl)) << 8) - : ((__ISwcntrl) < 24 ? (int)((1UL << (__ISwcntrl)) >> 8) - : (int)((1UL << (__ISwcntrl)) >> 24)))), - _ISwpunct = - ((__ISwpunct) < 8 - ? (int)((1UL << (__ISwpunct)) << 24) - : ((__ISwpunct) < 16 - ? (int)((1UL << (__ISwpunct)) << 8) - : ((__ISwpunct) < 24 ? (int)((1UL << (__ISwpunct)) >> 8) - : (int)((1UL << (__ISwpunct)) >> 24)))), - _ISwalnum = - ((__ISwalnum) < 8 - ? (int)((1UL << (__ISwalnum)) << 24) - : ((__ISwalnum) < 16 - ? (int)((1UL << (__ISwalnum)) << 8) - : ((__ISwalnum) < 24 ? (int)((1UL << (__ISwalnum)) >> 8) - : (int)((1UL << (__ISwalnum)) >> 24)))) -}; - -extern int iswalnum(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswalpha(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswcntrl(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswdigit(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswgraph(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswlower(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswprint(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswpunct(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswspace(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswupper(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswxdigit(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswblank(wint_t __wc) __attribute__((__nothrow__, __leaf__)); -extern wctype_t wctype(const char *__property) - __attribute__((__nothrow__, __leaf__)); - -extern int iswctype(wint_t __wc, wctype_t __desc) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towlower(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern wint_t towupper(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -typedef const __int32_t *wctrans_t; - -extern wctrans_t wctrans(const char *__property) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towctrans(wint_t __wc, wctrans_t __desc) - __attribute__((__nothrow__, __leaf__)); - -extern int iswalnum_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswalpha_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswcntrl_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswdigit_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswgraph_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswlower_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswprint_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswpunct_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswspace_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswupper_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswxdigit_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswblank_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wctype_t wctype_l(const char *__property, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswctype_l(wint_t __wc, wctype_t __desc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towlower_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towupper_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wctrans_t wctrans_l(const char *__property, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towctrans_l(wint_t __wc, wctrans_t __desc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum canonicalize_mode_t { - - CAN_EXISTING = 0, - - CAN_ALL_BUT_LAST = 1, - - CAN_MISSING = 2, - - CAN_NOLINKS = 4 -}; -typedef enum canonicalize_mode_t canonicalize_mode_t; -char *canonicalize_filename_mode(const char *, canonicalize_mode_t) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct fs_usage { - uintmax_t fsu_blocksize; - uintmax_t fsu_blocks; - uintmax_t fsu_bfree; - uintmax_t fsu_bavail; - - _Bool fsu_bavail_top_bit_set; - uintmax_t fsu_files; - uintmax_t fsu_ffree; -}; - -int get_fs_usage(char const *file, char const *disk, struct fs_usage *fsp); - -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -enum { - - human_ceiling = 0, - - human_round_to_nearest = 1, - - human_floor = 2, - - human_group_digits = 4, - - human_suppress_point_zero = 8, - - human_autoscale = 16, - - human_base_1024 = 32, - - human_space_before_unit = 64, - - human_SI = 128, - - human_B = 256 -}; - -char *human_readable(uintmax_t, char *, int, uintmax_t, uintmax_t); - -enum strtol_error human_options(char const *, int *, uintmax_t *); - -typedef enum { MBS_ALIGN_LEFT, MBS_ALIGN_RIGHT, MBS_ALIGN_CENTER } mbs_align_t; - -enum { - - MBA_UNIBYTE_FALLBACK = 0x0001, - - MBA_UNIBYTE_ONLY = 0x0002, - - MBA_NO_LEFT_PAD = 0x0004, - - MBA_NO_RIGHT_PAD = 0x0008 -}; - -size_t mbsalign(char const *src, char *dest, size_t dest_size, size_t *width, - mbs_align_t align, int flags) __attribute__((__nonnull__)); - -char *ambsalign(char const *src, size_t *width, mbs_align_t align, int flags) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__nonnull__)); -extern int gnu_mbswidth(const char *string, int flags); - -extern int mbsnwidth(const char *buf, size_t nbytes, int flags); - -struct mount_entry { - char *me_devname; - char *me_mountdir; - char *me_mntroot; - - char *me_type; - dev_t me_dev; - unsigned int me_dummy : 1; - unsigned int me_remote : 1; - unsigned int me_type_malloced : 1; - struct mount_entry *me_next; -}; - -struct mount_entry *read_file_system_list(_Bool need_fs_type) - __attribute__((__malloc__)); -void free_mount_entry(struct mount_entry *entry); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -extern char *find_mount_point(char const *, struct stat const *) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__nonnull__)); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); -_Noreturn void xstrtol_fatal(enum strtol_error, int, char, - struct option const *, char const *); -struct devlist { - dev_t dev_num; - struct mount_entry *me; - struct devlist *next; - struct devlist *seen_last; -}; - -static Hash_table *devlist_table; - -static _Bool show_all_fs; - -static _Bool show_local_fs; - -static _Bool show_listed_fs; - -static int human_output_opts; - -static uintmax_t output_block_size; - -static _Bool file_systems_processed; - -static _Bool require_sync; - -static int exit_status; - -struct fs_type_list { - char *fs_name; - struct fs_type_list *fs_next; -}; -static struct fs_type_list *fs_select_list; - -static struct fs_type_list *fs_exclude_list; - -static struct mount_entry *mount_list; - -static _Bool print_type; - -static _Bool print_grand_total; - -static struct fs_usage grand_fsu; - -enum { DEFAULT_MODE, INODES_MODE, HUMAN_MODE, POSIX_MODE, OUTPUT_MODE }; -static int header_mode = DEFAULT_MODE; - -typedef enum { - SOURCE_FIELD, - FSTYPE_FIELD, - SIZE_FIELD, - USED_FIELD, - AVAIL_FIELD, - PCENT_FIELD, - ITOTAL_FIELD, - IUSED_FIELD, - IAVAIL_FIELD, - IPCENT_FIELD, - TARGET_FIELD, - FILE_FIELD, - INVALID_FIELD -} display_field_t; - -typedef enum { BLOCK_FLD, INODE_FLD, OTHER_FLD } field_type_t; - -struct field_data_t { - display_field_t field; - char const *arg; - field_type_t field_type; - char const *caption; - size_t width; - mbs_align_t align; - - _Bool used; -}; - -static struct field_data_t field_data[] = { - [SOURCE_FIELD] = {SOURCE_FIELD, "source", OTHER_FLD, "Filesystem", 14, - MBS_ALIGN_LEFT, 0}, - - [FSTYPE_FIELD] = {FSTYPE_FIELD, "fstype", OTHER_FLD, "Type", 4, - MBS_ALIGN_LEFT, 0}, - - [SIZE_FIELD] = {SIZE_FIELD, "size", BLOCK_FLD, "blocks", 5, MBS_ALIGN_RIGHT, - 0}, - - [USED_FIELD] = {USED_FIELD, "used", BLOCK_FLD, "Used", 5, MBS_ALIGN_RIGHT, - 0}, - - [AVAIL_FIELD] = {AVAIL_FIELD, "avail", BLOCK_FLD, "Available", 5, - MBS_ALIGN_RIGHT, 0}, - - [PCENT_FIELD] = {PCENT_FIELD, "pcent", BLOCK_FLD, "Use%", 4, - MBS_ALIGN_RIGHT, 0}, - - [ITOTAL_FIELD] = {ITOTAL_FIELD, "itotal", INODE_FLD, "Inodes", 5, - MBS_ALIGN_RIGHT, 0}, - - [IUSED_FIELD] = {IUSED_FIELD, "iused", INODE_FLD, "IUsed", 5, - MBS_ALIGN_RIGHT, 0}, - - [IAVAIL_FIELD] = {IAVAIL_FIELD, "iavail", INODE_FLD, "IFree", 5, - MBS_ALIGN_RIGHT, 0}, - - [IPCENT_FIELD] = {IPCENT_FIELD, "ipcent", INODE_FLD, "IUse%", 4, - MBS_ALIGN_RIGHT, 0}, - - [TARGET_FIELD] = {TARGET_FIELD, "target", OTHER_FLD, "Mounted on", 0, - MBS_ALIGN_LEFT, 0}, - - [FILE_FIELD] = {FILE_FIELD, "file", OTHER_FLD, "File", 0, MBS_ALIGN_LEFT, - 0}}; - -static char const *all_args_string = - "source,fstype,itotal,iused,iavail,ipcent,size," - "used,avail,pcent,file,target"; - -static struct field_data_t **columns; - -static size_t ncolumns; - -struct field_values_t { - uintmax_t input_units; - uintmax_t output_units; - uintmax_t total; - uintmax_t available; - - _Bool negate_available; - uintmax_t available_to_root; - uintmax_t used; - - _Bool negate_used; -}; - -static char ***table; - -static size_t nrows; - -enum { NO_SYNC_OPTION = 0x7f + 1, SYNC_OPTION, TOTAL_OPTION, OUTPUT_OPTION }; - -static struct option const long_options[] = { - {"all", 0, ((void *)0), 'a'}, - {"block-size", 1, ((void *)0), 'B'}, - {"inodes", 0, ((void *)0), 'i'}, - {"human-readable", 0, ((void *)0), 'h'}, - {"si", 0, ((void *)0), 'H'}, - {"local", 0, ((void *)0), 'l'}, - {"output", 2, ((void *)0), OUTPUT_OPTION}, - {"portability", 0, ((void *)0), 'P'}, - {"print-type", 0, ((void *)0), 'T'}, - {"sync", 0, ((void *)0), SYNC_OPTION}, - {"no-sync", 0, ((void *)0), NO_SYNC_OPTION}, - {"total", 0, ((void *)0), TOTAL_OPTION}, - {"type", 1, ((void *)0), 't'}, - {"exclude-type", 1, ((void *)0), 'x'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static int automount_stat_err(char const *file, struct stat *st) { - int fd = open(file, 00 | 0400 | 04000); - if (fd < 0) { - if ((*__errno_location()) == 2 || (*__errno_location()) == 20) - return (*__errno_location()); - return stat(file, st) == 0 ? 0 : (*__errno_location()); - } else { - int err = fstat(fd, st) == 0 ? 0 : (*__errno_location()); - close(fd); - return err; - } -} - -static void replace_control_chars(char *cell) { - char *p = cell; - while (*p) { - if (c_iscntrl(to_uchar(*p))) - *p = '?'; - p++; - } -} - -static void replace_invalid_chars(char *cell) { - char *srcend = cell + strlen(cell); - char *dst = cell; - mbstate_t mbstate = { - 0, - }; - size_t n; - - for (char *src = cell; src != srcend; src += n) { - wchar_t wc; - size_t srcbytes = srcend - src; - n = rpl_mbrtowc(&wc, src, srcbytes, &mbstate); - - _Bool ok = n <= srcbytes; - - if (ok) - ok = !iswcntrl(wc); - else - n = 1; - - if (ok) { - memmove(dst, src, n); - dst += n; - } else { - *dst++ = '?'; - memset(&mbstate, 0, sizeof mbstate); - } - } - - *dst = '\0'; -} - -static void replace_problematic_chars(char *cell) { - static int tty_out = -1; - if (tty_out < 0) - tty_out = isatty(1); - - (tty_out ? replace_invalid_chars : replace_control_chars)(cell); -} - -static void alloc_table_row(void) { - nrows++; - table = xnrealloc(table, nrows, sizeof(char **)); - table[nrows - 1] = xnmalloc(ncolumns, sizeof(char *)); -} - -static void print_table(void) { - size_t row; - - for (row = 0; row < nrows; row++) { - size_t col; - for (col = 0; col < ncolumns; col++) { - char *cell = table[row][col]; - - if (col != 0) - putchar_unlocked(' '); - - int flags = 0; - if (col == ncolumns - 1) - flags = MBA_NO_RIGHT_PAD; - - size_t width = columns[col]->width; - cell = ambsalign(cell, &width, columns[col]->align, flags); - - fputs_unlocked(cell ? cell : table[row][col], stdout); - free(cell); - } - putchar_unlocked('\n'); - } -} - -static void alloc_field(int f, char const *c) { - ncolumns++; - columns = xnrealloc(columns, ncolumns, sizeof(struct field_data_t *)); - columns[ncolumns - 1] = &field_data[f]; - if (c != ((void *)0)) - columns[ncolumns - 1]->caption = c; - - if (field_data[f].used) - - ((void)sizeof((!"field used") ? 1 : 0), __extension__({ - if (!"field used") - ; - else - __assert_fail("!\"field used\"", "src/df.c", 425, - __extension__ __PRETTY_FUNCTION__); - })); - - field_data[f].used = 1; -} - -static void decode_output_arg(char const *arg) { - char *arg_writable = xstrdup(arg); - char *s = arg_writable; - do { - - char *comma = strchr(s, ','); - - if (comma) - *comma++ = 0; - - display_field_t field = INVALID_FIELD; - for (unsigned int i = 0; i < (sizeof(field_data) / sizeof *(field_data)); - i++) { - if ((strcmp(field_data[i].arg, s) == 0)) { - field = i; - break; - } - } - if (field == INVALID_FIELD) { - error(0, 0, - dcgettext(((void *)0), "option --output: field %s unknown", 5), - quote(s)); - usage(1); - } - - if (field_data[field].used) { - - error(0, 0, - dcgettext(((void *)0), - "option --output: field %s used more than once", 5), - quote(field_data[field].arg)); - usage(1); - } - - switch (field) { - case SOURCE_FIELD: - case FSTYPE_FIELD: - case USED_FIELD: - case PCENT_FIELD: - case ITOTAL_FIELD: - case IUSED_FIELD: - case IAVAIL_FIELD: - case IPCENT_FIELD: - case TARGET_FIELD: - case FILE_FIELD: - alloc_field(field, ((void *)0)); - break; - - case SIZE_FIELD: - alloc_field(field, "Size"); - break; - - case AVAIL_FIELD: - alloc_field(field, "Avail"); - break; - - default: - - ((void)sizeof((!"invalid field") ? 1 : 0), __extension__({ - if (!"invalid field") - ; - else - __assert_fail("!\"invalid field\"", "src/df.c", 496, - __extension__ __PRETTY_FUNCTION__); - })); - } - s = comma; - } while (s); - - free(arg_writable); -} - -static void get_field_list(void) { - switch (header_mode) { - case DEFAULT_MODE: - alloc_field(SOURCE_FIELD, ((void *)0)); - if (print_type) - alloc_field(FSTYPE_FIELD, ((void *)0)); - alloc_field(SIZE_FIELD, ((void *)0)); - alloc_field(USED_FIELD, ((void *)0)); - alloc_field(AVAIL_FIELD, ((void *)0)); - alloc_field(PCENT_FIELD, ((void *)0)); - alloc_field(TARGET_FIELD, ((void *)0)); - break; - - case HUMAN_MODE: - alloc_field(SOURCE_FIELD, ((void *)0)); - if (print_type) - alloc_field(FSTYPE_FIELD, ((void *)0)); - - alloc_field(SIZE_FIELD, "Size"); - alloc_field(USED_FIELD, ((void *)0)); - alloc_field(AVAIL_FIELD, "Avail"); - alloc_field(PCENT_FIELD, ((void *)0)); - alloc_field(TARGET_FIELD, ((void *)0)); - break; - - case INODES_MODE: - alloc_field(SOURCE_FIELD, ((void *)0)); - if (print_type) - alloc_field(FSTYPE_FIELD, ((void *)0)); - alloc_field(ITOTAL_FIELD, ((void *)0)); - alloc_field(IUSED_FIELD, ((void *)0)); - alloc_field(IAVAIL_FIELD, ((void *)0)); - alloc_field(IPCENT_FIELD, ((void *)0)); - alloc_field(TARGET_FIELD, ((void *)0)); - break; - - case POSIX_MODE: - alloc_field(SOURCE_FIELD, ((void *)0)); - if (print_type) - alloc_field(FSTYPE_FIELD, ((void *)0)); - alloc_field(SIZE_FIELD, ((void *)0)); - alloc_field(USED_FIELD, ((void *)0)); - alloc_field(AVAIL_FIELD, ((void *)0)); - alloc_field(PCENT_FIELD, "Capacity"); - alloc_field(TARGET_FIELD, ((void *)0)); - break; - - case OUTPUT_MODE: - if (!ncolumns) { - - decode_output_arg(all_args_string); - } - break; - - default: - - ((void)sizeof((!"invalid header_mode") ? 1 : 0), __extension__({ - if (!"invalid header_mode") - ; - else - __assert_fail("!\"invalid header_mode\"", "src/df.c", 565, - __extension__ __PRETTY_FUNCTION__); - })); - } -} - -static void get_header(void) { - size_t col; - - alloc_table_row(); - - for (col = 0; col < ncolumns; col++) { - char *cell = ((void *)0); - char const *header = dcgettext(((void *)0), columns[col]->caption, 5); - - if (columns[col]->field == SIZE_FIELD && - (header_mode == DEFAULT_MODE || - (header_mode == OUTPUT_MODE && - !(human_output_opts & human_autoscale)))) { - char buf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + - 1 + 3) + - 1]; - - int opts = (human_suppress_point_zero | human_autoscale | human_SI | - (human_output_opts & - (human_group_digits | human_base_1024 | human_B))); - - uintmax_t q1000 = output_block_size; - uintmax_t q1024 = output_block_size; - - _Bool divisible_by_1000; - - _Bool divisible_by_1024; - - do { - divisible_by_1000 = q1000 % 1000 == 0; - q1000 /= 1000; - divisible_by_1024 = q1024 % 1024 == 0; - q1024 /= 1024; - } while (divisible_by_1000 & divisible_by_1024); - - if (divisible_by_1000 < divisible_by_1024) - opts |= human_base_1024; - if (divisible_by_1024 < divisible_by_1000) - opts &= ~human_base_1024; - if (!(opts & human_base_1024)) - opts |= human_B; - - char *num = human_readable(output_block_size, buf, opts, 1, 1); - - header = dcgettext(((void *)0), "blocks", 5); - - if (rpl_asprintf(&cell, dcgettext(((void *)0), "%s-%s", 5), num, - header) == -1) - cell = ((void *)0); - } else if (header_mode == POSIX_MODE && columns[col]->field == SIZE_FIELD) { - char buf[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - char *num = umaxtostr(output_block_size, buf); - - if (rpl_asprintf(&cell, dcgettext(((void *)0), "%s-%s", 5), num, - header) == -1) - cell = ((void *)0); - } else - cell = strdup(header); - - if (!cell) - xalloc_die(); - - replace_problematic_chars(cell); - - table[nrows - 1][col] = cell; - - size_t cell_width = gnu_mbswidth(cell, 0); - columns[col]->width = - (((columns[col]->width) > (cell_width)) ? (columns[col]->width) - : (cell_width)); - } -} - -__attribute__((__pure__)) static _Bool - -selected_fstype(char const *fstype) { - const struct fs_type_list *fsp; - - if (fs_select_list == ((void *)0) || fstype == ((void *)0)) - return 1; - for (fsp = fs_select_list; fsp; fsp = fsp->fs_next) - if ((strcmp(fstype, fsp->fs_name) == 0)) - return 1; - return 0; -} - -__attribute__((__pure__)) static _Bool - -excluded_fstype(char const *fstype) { - const struct fs_type_list *fsp; - - if (fs_exclude_list == ((void *)0) || fstype == ((void *)0)) - return 0; - for (fsp = fs_exclude_list; fsp; fsp = fsp->fs_next) - if ((strcmp(fstype, fsp->fs_name) == 0)) - return 1; - return 0; -} - -static size_t devlist_hash(void const *x, size_t table_size) { - struct devlist const *p = x; - return (uintmax_t)p->dev_num % table_size; -} - -static _Bool - -devlist_compare(void const *x, void const *y) { - struct devlist const *a = x; - struct devlist const *b = y; - return a->dev_num == b->dev_num; -} - -static struct devlist *devlist_for_dev(dev_t dev) { - if (devlist_table == ((void *)0)) - return ((void *)0); - struct devlist dev_entry; - dev_entry.dev_num = dev; - - struct devlist *found = hash_lookup(devlist_table, &dev_entry); - if (found == ((void *)0)) - return ((void *)0); - - return found->seen_last; -} -static void filter_mount_list(_Bool devices_only) { - struct mount_entry *me; - - struct devlist *device_list = ((void *)0); - int mount_list_size = 0; - - for (me = mount_list; me; me = me->me_next) - mount_list_size++; - - devlist_table = hash_initialize(mount_list_size, ((void *)0), devlist_hash, - devlist_compare, ((void *)0)); - if (devlist_table == ((void *)0)) - xalloc_die(); - - for (me = mount_list; me;) { - struct stat buf; - struct mount_entry *discard_me = ((void *)0); - - if ((me->me_remote && show_local_fs) || - (me->me_dummy && !show_all_fs && !show_listed_fs) || - (!selected_fstype(me->me_type) || excluded_fstype(me->me_type)) || - -1 == stat(me->me_mountdir, &buf)) { - - buf.st_dev = me->me_dev; - } else { - - struct devlist *seen_dev = devlist_for_dev(buf.st_dev); - - if (seen_dev) { - - _Bool target_nearer_root = - strlen(seen_dev->me->me_mountdir) > strlen(me->me_mountdir); - - _Bool source_below_root = - seen_dev->me->me_mntroot != ((void *)0) - - && me->me_mntroot != ((void *)0) - - && (strlen(seen_dev->me->me_mntroot) < strlen(me->me_mntroot)); - if (!print_grand_total && me->me_remote && seen_dev->me->me_remote && - !(strcmp(seen_dev->me->me_devname, me->me_devname) == 0)) { - - } else if ((strchr(me->me_devname, '/') - - && !strchr(seen_dev->me->me_devname, '/')) - - || (target_nearer_root && !source_below_root) - - || (!(strcmp(seen_dev->me->me_devname, me->me_devname) == 0) - - && (strcmp(me->me_mountdir, seen_dev->me->me_mountdir) == - 0))) { - - discard_me = seen_dev->me; - seen_dev->me = me; - } else { - - discard_me = me; - } - } - } - - if (discard_me) { - me = me->me_next; - if (!devices_only) - free_mount_entry(discard_me); - } else { - - struct devlist *devlist = xmalloc(sizeof *devlist); - devlist->me = me; - devlist->dev_num = buf.st_dev; - devlist->next = device_list; - device_list = devlist; - - struct devlist *hash_entry = hash_insert(devlist_table, devlist); - if (hash_entry == ((void *)0)) - xalloc_die(); - - hash_entry->seen_last = devlist; - - me = me->me_next; - } - } - - if (!devices_only) { - mount_list = ((void *)0); - while (device_list) { - - me = device_list->me; - me->me_next = mount_list; - mount_list = me; - struct devlist *next = device_list->next; - free(device_list); - device_list = next; - } - - hash_free(devlist_table); - devlist_table = ((void *)0); - } -} - -__attribute__((__pure__)) static struct mount_entry const * -me_for_dev(dev_t dev) { - struct devlist *dl = devlist_for_dev(dev); - if (dl) - return dl->me; - - return ((void *)0); -} - -static _Bool - -known_value(uintmax_t n) { - return n < (18446744073709551615UL) - 1; -} -static char const *df_readable(_Bool negative, uintmax_t n, char *buf, - uintmax_t input_units, uintmax_t output_units) { - if (!known_value(n) && !negative) - return "-"; - else { - char *p = human_readable(negative ? -n : n, buf + negative, - human_output_opts, input_units, output_units); - if (negative) - *--p = '-'; - return p; - } -} - -static void add_uint_with_neg_flag(uintmax_t *dest, _Bool *dest_neg, - uintmax_t src, _Bool src_neg) { - if (*dest_neg == src_neg) { - *dest += src; - return; - } - - if (*dest_neg) - *dest = -*dest; - - if (src_neg) - src = -src; - - if (src < *dest) - *dest -= src; - else { - *dest = src - *dest; - *dest_neg = src_neg; - } - - if (*dest_neg) - *dest = -*dest; -} - -__attribute__((__pure__)) static _Bool - -has_uuid_suffix(char const *s) { - size_t len = strlen(s); - return (36 < len && strspn(s + len - 36, "-0123456789abcdefABCDEF") == 36); -} - -static void get_field_values(struct field_values_t *bv, - struct field_values_t *iv, - const struct fs_usage *fsu) { - - iv->input_units = iv->output_units = 1; - iv->total = fsu->fsu_files; - iv->available = iv->available_to_root = fsu->fsu_ffree; - iv->negate_available = 0; - - iv->used = (18446744073709551615UL); - iv->negate_used = 0; - if (known_value(iv->total) && known_value(iv->available_to_root)) { - iv->used = iv->total - iv->available_to_root; - iv->negate_used = (iv->total < iv->available_to_root); - } - - bv->input_units = fsu->fsu_blocksize; - bv->output_units = output_block_size; - bv->total = fsu->fsu_blocks; - bv->available = fsu->fsu_bavail; - bv->available_to_root = fsu->fsu_bfree; - bv->negate_available = - (fsu->fsu_bavail_top_bit_set && known_value(fsu->fsu_bavail)); - - bv->used = (18446744073709551615UL); - bv->negate_used = 0; - if (known_value(bv->total) && known_value(bv->available_to_root)) { - bv->used = bv->total - bv->available_to_root; - bv->negate_used = (bv->total < bv->available_to_root); - } -} - -static void add_to_grand_total(struct field_values_t *bv, - struct field_values_t *iv) { - if (known_value(iv->total)) - grand_fsu.fsu_files += iv->total; - if (known_value(iv->available)) - grand_fsu.fsu_ffree += iv->available; - - if (known_value(bv->total)) - grand_fsu.fsu_blocks += bv->input_units * bv->total; - if (known_value(bv->available_to_root)) - grand_fsu.fsu_bfree += bv->input_units * bv->available_to_root; - if (known_value(bv->available)) - add_uint_with_neg_flag( - &grand_fsu.fsu_bavail, &grand_fsu.fsu_bavail_top_bit_set, - bv->input_units * bv->available, bv->negate_available); -} -static void get_dev(char const *device, char const *mount_point, - char const *file, char const *stat_file, char const *fstype, - - _Bool me_dummy, _Bool me_remote, - const struct fs_usage *force_fsu, - - _Bool process_all) { - if (me_remote && show_local_fs) - return; - - if (me_dummy && !show_all_fs && !show_listed_fs) - return; - - if (!selected_fstype(fstype) || excluded_fstype(fstype)) - return; - - if (!force_fsu && mount_point && !(((mount_point)[0]) == '/')) - return; - - if (!stat_file) - stat_file = mount_point ? mount_point : device; - - struct fs_usage fsu; - if (force_fsu) - fsu = *force_fsu; - else if (get_fs_usage(stat_file, device, &fsu)) { - - if (process_all && - ((*__errno_location()) == 13 || (*__errno_location()) == 2)) { - if (!show_all_fs) - return; - - fstype = "-"; - fsu.fsu_bavail_top_bit_set = 0; - fsu.fsu_blocksize = fsu.fsu_blocks = fsu.fsu_bfree = fsu.fsu_bavail = - fsu.fsu_files = fsu.fsu_ffree = (18446744073709551615UL); - } else { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, stat_file)); - exit_status = 1; - return; - } - } else if (process_all && show_all_fs) { - - struct stat sb; - if (stat(stat_file, &sb) == 0) { - struct mount_entry const *dev_me = me_for_dev(sb.st_dev); - if (dev_me && !(strcmp(dev_me->me_devname, device) == 0) && - (!dev_me->me_remote || !me_remote)) { - fstype = "-"; - fsu.fsu_bavail_top_bit_set = 0; - fsu.fsu_blocksize = fsu.fsu_blocks = fsu.fsu_bfree = fsu.fsu_bavail = - fsu.fsu_files = fsu.fsu_ffree = (18446744073709551615UL); - } - } - } - - if (fsu.fsu_blocks == 0 && !show_all_fs && !show_listed_fs) - return; - - if (!force_fsu) - file_systems_processed = 1; - - alloc_table_row(); - - if (!device) - device = "-"; - - if (!file) - file = "-"; - - char *dev_name = xstrdup(device); - char *resolved_dev; - - if (process_all && has_uuid_suffix(dev_name) && - (resolved_dev = canonicalize_filename_mode(dev_name, CAN_EXISTING))) { - free(dev_name); - dev_name = resolved_dev; - } - - if (!fstype) - fstype = "-"; - - struct field_values_t block_values; - struct field_values_t inode_values; - get_field_values(&block_values, &inode_values, &fsu); - - if (print_grand_total && !force_fsu) - add_to_grand_total(&block_values, &inode_values); - - size_t col; - for (col = 0; col < ncolumns; col++) { - char buf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 2]; - char *cell; - - struct field_values_t *v; - switch (columns[col]->field_type) { - case BLOCK_FLD: - v = &block_values; - break; - case INODE_FLD: - v = &inode_values; - break; - case OTHER_FLD: - v = ((void *)0); - break; - default: - v = ((void *)0); - - ((void)sizeof((!"bad field_type") ? 1 : 0), __extension__({ - if (!"bad field_type") - ; - else - __assert_fail("!\"bad field_type\"", "src/df.c", 1152, - __extension__ __PRETTY_FUNCTION__); - })); - } - - switch (columns[col]->field) { - case SOURCE_FIELD: - cell = xstrdup(dev_name); - break; - - case FSTYPE_FIELD: - cell = xstrdup(fstype); - break; - - case SIZE_FIELD: - case ITOTAL_FIELD: - cell = xstrdup( - df_readable(0, v->total, buf, v->input_units, v->output_units)); - break; - - case USED_FIELD: - case IUSED_FIELD: - cell = xstrdup(df_readable(v->negate_used, v->used, buf, v->input_units, - v->output_units)); - break; - - case AVAIL_FIELD: - case IAVAIL_FIELD: - cell = xstrdup(df_readable(v->negate_available, v->available, buf, - v->input_units, v->output_units)); - break; - - case PCENT_FIELD: - case IPCENT_FIELD: { - double pct = -1; - if (!known_value(v->used) || !known_value(v->available)) - ; - else if (!v->negate_used && - v->used <= - ((uintmax_t)(!(!((uintmax_t)0 < (uintmax_t)-1)) - ? (uintmax_t)-1 - : ((((uintmax_t)1 - << ((sizeof(uintmax_t) * 8) - 2)) - - 1) * - 2 + - 1))) / - 100 && - v->used + v->available != 0 && - (v->used + v->available < v->used) == v->negate_available) { - uintmax_t u100 = v->used * 100; - uintmax_t nonroot_total = v->used + v->available; - pct = u100 / nonroot_total + (u100 % nonroot_total != 0); - } else { - - double u = v->negate_used ? -(double)-v->used : v->used; - double a = v->negate_available ? -(double)-v->available : v->available; - double nonroot_total = u + a; - if (nonroot_total) { - long int lipct = pct = u * 100 / nonroot_total; - double ipct = lipct; - - if (ipct - 1 < pct && pct <= ipct + 1) - pct = ipct + (ipct < pct); - } - } - - if (0 <= pct) { - if (rpl_asprintf(&cell, "%.0f%%", pct) == -1) - cell = ((void *)0); - } else - cell = strdup("-"); - - if (!cell) - xalloc_die(); - - break; - } - - case FILE_FIELD: - cell = xstrdup(file); - break; - - case TARGET_FIELD: - cell = xstrdup(mount_point); - break; - - default: - - ((void)sizeof((!"unhandled field") ? 1 : 0), __extension__({ - if (!"unhandled field") - ; - else - __assert_fail("!\"unhandled field\"", "src/df.c", 1254, - __extension__ __PRETTY_FUNCTION__); - })); - } - - if (!cell) - - ((void)sizeof((!"empty cell") ? 1 : 0), __extension__({ - if (!"empty cell") - ; - else - __assert_fail("!\"empty cell\"", "src/df.c", 1258, - __extension__ __PRETTY_FUNCTION__); - })); - - replace_problematic_chars(cell); - size_t cell_width = gnu_mbswidth(cell, 0); - columns[col]->width = - (((columns[col]->width) > (cell_width)) ? (columns[col]->width) - : (cell_width)); - table[nrows - 1][col] = cell; - } - free(dev_name); -} - -static char *last_device_for_mount(char const *mount) { - struct mount_entry const *me; - struct mount_entry const *le = ((void *)0); - - for (me = mount_list; me; me = me->me_next) { - if ((strcmp(me->me_mountdir, mount) == 0)) - le = me; - } - - if (le) { - char *devname = le->me_devname; - char *canon_dev = canonicalize_file_name(devname); - if (canon_dev && (((canon_dev)[0]) == '/')) - return canon_dev; - free(canon_dev); - return xstrdup(le->me_devname); - } else - return ((void *)0); -} - -static _Bool - -get_device(char const *device) { - struct mount_entry const *me; - struct mount_entry const *best_match = ((void *)0); - - _Bool best_match_accessible = 0; - - _Bool eclipsed_device = 0; - char const *file = device; - - char *resolved = canonicalize_file_name(device); - if (resolved && (((resolved)[0]) == '/')) - device = resolved; - - size_t best_match_len = (18446744073709551615UL); - for (me = mount_list; me; me = me->me_next) { - - char *devname = me->me_devname; - char *canon_dev = canonicalize_file_name(me->me_devname); - if (canon_dev && (((canon_dev)[0]) == '/')) - devname = canon_dev; - - if ((strcmp(device, devname) == 0)) { - char *last_device = last_device_for_mount(me->me_mountdir); - eclipsed_device = last_device && !(strcmp(last_device, devname) == 0); - size_t len = strlen(me->me_mountdir); - - if (!eclipsed_device && - (!best_match_accessible || len < best_match_len)) { - struct stat device_stats; - - _Bool this_match_accessible = 0; - - if (stat(me->me_mountdir, &device_stats) == 0) - best_match_accessible = this_match_accessible = 1; - - if (this_match_accessible || - (!best_match_accessible && len < best_match_len)) { - best_match = me; - if (len == 1) { - free(last_device); - free(canon_dev); - break; - } else - best_match_len = len; - } - } - - free(last_device); - } - - free(canon_dev); - } - - free(resolved); - - if (best_match) { - get_dev(best_match->me_devname, best_match->me_mountdir, file, ((void *)0), - best_match->me_type, best_match->me_dummy, best_match->me_remote, - ((void *)0), 0); - return 1; - } else if (eclipsed_device) { - error(0, 0, - dcgettext(((void *)0), - "cannot access %s: over-mounted by another device", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - exit_status = 1; - return 1; - } - - return 0; -} - -static void get_point(char const *point, const struct stat *statp) { - struct stat device_stats; - struct mount_entry *me; - struct mount_entry const *best_match = ((void *)0); - - char *resolved = canonicalize_file_name(point); - if (resolved && resolved[0] == '/') { - size_t resolved_len = strlen(resolved); - size_t best_match_len = 0; - - for (me = mount_list; me; me = me->me_next) { - if (!(strcmp(me->me_type, "lofs") == 0) && - (!best_match || best_match->me_dummy || !me->me_dummy)) { - size_t len = strlen(me->me_mountdir); - if (best_match_len <= len && len <= resolved_len && - (len == 1 || ((len == resolved_len || resolved[len] == '/') && - (strncmp(me->me_mountdir, resolved, len) == 0)))) { - best_match = me; - best_match_len = len; - } - } - } - } - free(resolved); - if (best_match && (stat(best_match->me_mountdir, &device_stats) != 0 || - device_stats.st_dev != statp->st_dev)) - best_match = ((void *)0); - - if (!best_match) - for (me = mount_list; me; me = me->me_next) { - if (me->me_dev == (dev_t)-1) { - if (stat(me->me_mountdir, &device_stats) == 0) - me->me_dev = device_stats.st_dev; - else { - - if ((*__errno_location()) == 5) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - me->me_mountdir)); - exit_status = 1; - } - - me->me_dev = (dev_t)-2; - } - } - - if (statp->st_dev == me->me_dev && !(strcmp(me->me_type, "lofs") == 0) && - (!best_match || best_match->me_dummy || !me->me_dummy)) { - - if (stat(me->me_mountdir, &device_stats) != 0 || - device_stats.st_dev != me->me_dev) - me->me_dev = (dev_t)-2; - else - best_match = me; - } - } - - if (best_match) - get_dev(best_match->me_devname, best_match->me_mountdir, point, point, - best_match->me_type, best_match->me_dummy, best_match->me_remote, - - ((void *)0), 0); - else { - - char *mp = find_mount_point(point, statp); - if (mp) { - get_dev(((void *)0), mp, point, ((void *)0), ((void *)0), 0, 0, - ((void *)0), 0); - free(mp); - } - } -} - -static void get_entry(char const *name, struct stat const *statp) { - if ((((((statp->st_mode)) & 0170000) == (0060000)) || - ((((statp->st_mode)) & 0170000) == (0020000))) && - get_device(name)) - return; - - get_point(name, statp); -} - -static void get_all_entries(void) { - struct mount_entry *me; - - filter_mount_list(show_all_fs); - - for (me = mount_list; me; me = me->me_next) - get_dev(me->me_devname, me->me_mountdir, ((void *)0), ((void *)0), - me->me_type, me->me_dummy, me->me_remote, ((void *)0), 1); -} - -static void add_fs_type(char const *fstype) { - struct fs_type_list *fsp; - - fsp = xmalloc(sizeof *fsp); - fsp->fs_name = (char *)fstype; - fsp->fs_next = fs_select_list; - fs_select_list = fsp; -} - -static void add_excluded_fs_type(char const *fstype) { - struct fs_type_list *fsp; - - fsp = xmalloc(sizeof *fsp); - fsp->fs_name = (char *)fstype; - fsp->fs_next = fs_exclude_list; - fs_exclude_list = fsp; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Show information about the file system on which each FILE " - "resides,\nor all file systems by default.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " -a, --all include pseudo, duplicate, inaccessible " - "file systems\n -B, --block-size=SIZE scale sizes by SIZE before " - "printing them; e.g.,\n '-BM' prints " - "sizes in units of 1,048,576 bytes;\n " - "see SIZE format below\n -h, --human-readable print sizes in " - "powers of 1024 (e.g., 1023M)\n -H, --si print sizes " - "in powers of 1000 (e.g., 1.1G)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -i, --inodes list inode information instead of " - "block usage\n -k like --block-size=1K\n " - " -l, --local limit listing to local file " - "systems\n --no-sync do not invoke sync before " - "getting usage info (default)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --output[=FIELD_LIST] use the output format defined " - "by FIELD_LIST,\n or print all " - "fields if FIELD_LIST is omitted.\n -P, --portability " - "use the POSIX output format\n --sync invoke " - "sync before getting usage info\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --total elide all entries " - "insignificant to available space,\n " - " and produce a grand total\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -t, --type=TYPE limit listing to file systems of " - "type TYPE\n -T, --print-type print file system type\n " - " -x, --exclude-type=TYPE limit listing to file systems " - "not of type TYPE\n -v (ignored)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_blocksize_note("DF"); - emit_size_note(); - fputs_unlocked( - dcgettext(((void *)0), - "\nFIELD_LIST is a comma-separated list of columns to be " - "included. Valid\nfield names are: 'source', 'fstype', " - "'itotal', 'iused', 'iavail', 'ipcent',\n'size', 'used', " - "'avail', 'pcent', 'file' and 'target' (see info page).\n", - 5), - stdout) - - ; - emit_ancillary_info("df"); - } - exit(status); -} - -int main(int argc, char **argv) { - struct stat *stats = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - fs_select_list = ((void *)0); - fs_exclude_list = ((void *)0); - show_all_fs = 0; - show_listed_fs = 0; - human_output_opts = -1; - print_type = 0; - file_systems_processed = 0; - exit_status = 0; - print_grand_total = 0; - grand_fsu.fsu_blocksize = 1; - - _Bool posix_format = 0; - - char const *msg_mut_excl = - dcgettext(((void *)0), "options %s and %s are mutually exclusive", 5); - - while (1) { - int oi = -1; - int c = getopt_long(argc, argv, "aB:iF:hHklmPTt:vx:", long_options, &oi); - if (c == -1) - break; - - switch (c) { - case 'a': - show_all_fs = 1; - break; - case 'B': { - enum strtol_error e = - human_options(optarg, &human_output_opts, &output_block_size); - if (e != LONGINT_OK) - xstrtol_fatal(e, oi, c, long_options, optarg); - } break; - case 'i': - if (header_mode == OUTPUT_MODE) { - error(0, 0, msg_mut_excl, "-i", "--output"); - usage(1); - } - header_mode = INODES_MODE; - break; - case 'h': - human_output_opts = human_autoscale | human_SI | human_base_1024; - output_block_size = 1; - break; - case 'H': - human_output_opts = human_autoscale | human_SI; - output_block_size = 1; - break; - case 'k': - human_output_opts = 0; - output_block_size = 1024; - break; - case 'l': - show_local_fs = 1; - break; - case 'm': - human_output_opts = 0; - output_block_size = 1024 * 1024; - break; - case 'T': - if (header_mode == OUTPUT_MODE) { - error(0, 0, msg_mut_excl, "-T", "--output"); - usage(1); - } - print_type = 1; - break; - case 'P': - if (header_mode == OUTPUT_MODE) { - error(0, 0, msg_mut_excl, "-P", "--output"); - usage(1); - } - posix_format = 1; - break; - case SYNC_OPTION: - require_sync = 1; - break; - case NO_SYNC_OPTION: - require_sync = 0; - break; - - case 'F': - - case 't': - add_fs_type(optarg); - break; - - case 'v': - - break; - case 'x': - add_excluded_fs_type(optarg); - break; - - case OUTPUT_OPTION: - if (header_mode == INODES_MODE) { - error(0, 0, msg_mut_excl, "-i", "--output"); - usage(1); - } - if (posix_format && header_mode == DEFAULT_MODE) { - error(0, 0, msg_mut_excl, "-P", "--output"); - usage(1); - } - if (print_type) { - error(0, 0, msg_mut_excl, "-T", "--output"); - usage(1); - } - header_mode = OUTPUT_MODE; - if (optarg) - decode_output_arg(optarg); - break; - - case TOTAL_OPTION: - print_grand_total = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "df", "GNU coreutils", Version, ("Torbjorn Granlund"), - ("David MacKenzie"), ("Paul Eggert"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (human_output_opts == -1) { - if (posix_format) { - human_output_opts = 0; - output_block_size = (getenv("POSIXLY_CORRECT") ? 512 : 1024); - } else - human_options(getenv("DF_BLOCK_SIZE"), &human_output_opts, - &output_block_size); - } - - if (header_mode == INODES_MODE || header_mode == OUTPUT_MODE) - ; - else if (human_output_opts & human_autoscale) - header_mode = HUMAN_MODE; - else if (posix_format) - header_mode = POSIX_MODE; - - { - - _Bool match = 0; - struct fs_type_list *fs_incl; - for (fs_incl = fs_select_list; fs_incl; fs_incl = fs_incl->fs_next) { - struct fs_type_list *fs_excl; - for (fs_excl = fs_exclude_list; fs_excl; fs_excl = fs_excl->fs_next) { - if ((strcmp(fs_incl->fs_name, fs_excl->fs_name) == 0)) { - error(0, 0, - - dcgettext(((void *)0), - "file system type %s both selected and excluded", 5), - quote(fs_incl->fs_name)); - match = 1; - break; - } - } - } - if (match) - return 1; - } - - ((0 < optind) ? (void)0 : __builtin_unreachable()); - - if (optind < argc) { - - stats = xnmalloc(argc - optind, sizeof *stats); - for (int i = optind; i < argc; ++i) { - int err = automount_stat_err(argv[i], &stats[i - optind]); - if (err != 0) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, argv[i])); - exit_status = 1; - argv[i] = ((void *)0); - } - } - } - - mount_list = read_file_system_list( - (fs_select_list != ((void *)0) - - || fs_exclude_list != ((void *)0) - - || print_type || field_data[FSTYPE_FIELD].used || show_local_fs)); - - if (mount_list == ((void *)0)) { - - int status = 0; - if (!(optind < argc) || - (show_all_fs || show_local_fs || fs_select_list != ((void *)0) - - || fs_exclude_list != ((void *)0))) { - status = 1; - } - char const *warning = - (status == 0 ? dcgettext(((void *)0), "Warning: ", 5) : ""); - error( - status, (*__errno_location()), "%s%s", warning, - - dcgettext(((void *)0), "cannot read table of mounted file systems", 5)); - } - - if (require_sync) - sync(); - - get_field_list(); - get_header(); - - if (stats) { - - show_listed_fs = 1; - - for (int i = optind; i < argc; ++i) - if (argv[i]) - get_entry(argv[i], &stats[i - optind]); - } else - get_all_entries(); - - if (file_systems_processed) { - if (print_grand_total) - get_dev("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), - - ((void *)0), ((void *)0), ((void *)0), 0, 0, &grand_fsu, 0); - - print_table(); - } else { - - if (exit_status == 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"no file " - "systems processed\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "no file systems processed", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "no file systems processed", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - exit(exit_status); -} diff --git a/tests/source/coreutils/dircolors.c b/tests/source/coreutils/dircolors.c deleted file mode 100644 index 00be31f..0000000 --- a/tests/source/coreutils/dircolors.c +++ /dev/null @@ -1,7618 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int fnmatch(const char *__pattern, const char *__name, int __flags); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -static char const G_line[] = { - ' ' ' ' ' ' ' ' ' ' 'C', 'O', 'L', 'O', 'R', 'T', 'E', 'R', 'M', ' ', - '?', '*', 0, 'T', 'E', 'R', 'M', ' ', 'E', 't', 'e', 'r', 'm', 0, 'T', 'E', - 'R', 'M', ' ', 'a', 'n', 's', 'i', 0, 'T', 'E', 'R', 'M', ' ', '*', 'c', - 'o', 'l', 'o', 'r', '*', 0, 'T', 'E', 'R', 'M', ' ', 'c', 'o', 'n', '[', - '0', '-', '9', ']', '*', 'x', '[', '0', '-', '9', ']', '*', 0, 'T', 'E', - 'R', 'M', ' ', 'c', 'o', 'n', 's', '2', '5', 0, 'T', 'E', 'R', 'M', ' ', - 'c', 'o', 'n', 's', 'o', 'l', 'e', 0, 'T', 'E', 'R', 'M', ' ', 'c', 'y', - 'g', 'w', 'i', 'n', 0, 'T', 'E', 'R', 'M', ' ', '*', 'd', 'i', 'r', 'e', - 'c', 't', '*', 0, 'T', 'E', 'R', 'M', ' ', 'd', 't', 't', 'e', 'r', 'm', 0, - 'T', 'E', 'R', 'M', ' ', 'g', 'n', 'o', 'm', 'e', 0, 'T', 'E', 'R', 'M', - ' ', 'h', 'u', 'r', 'd', 0, 'T', 'E', 'R', 'M', ' ', 'j', 'f', 'b', 't', - 'e', 'r', 'm', 0, 'T', 'E', 'R', 'M', ' ', 'k', 'o', 'n', 's', 'o', 'l', - 'e', 0, 'T', 'E', 'R', 'M', ' ', 'k', 't', 'e', 'r', 'm', 0, 'T', 'E', 'R', - 'M', ' ', 'l', 'i', 'n', 'u', 'x', 0, 'T', 'E', 'R', 'M', ' ', 'l', 'i', - 'n', 'u', 'x', '-', 'c', 0, 'T', 'E', 'R', 'M', ' ', 'm', 'l', 't', 'e', - 'r', 'm', 0, 'T', 'E', 'R', 'M', ' ', 'p', 'u', 't', 't', 'y', 0, 'T', 'E', - 'R', 'M', ' ', 'r', 'x', 'v', 't', '*', 0, 'T', 'E', 'R', 'M', ' ', 's', - 'c', 'r', 'e', 'e', 'n', '*', 0, 'T', 'E', 'R', 'M', ' ', 's', 't', 0, 'T', - 'E', 'R', 'M', ' ', 't', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'o', 'r', 0, - 'T', 'E', 'R', 'M', ' ', 't', 'm', 'u', 'x', '*', 0, 'T', 'E', 'R', 'M', - ' ', 'v', 't', '1', '0', '0', 0, 'T', 'E', 'R', 'M', ' ', 'x', 't', 'e', - 'r', 'm', '*', 0, ' ' ' ' ' ' ' ' ' ' ' ' 'R', 'E', 'S', 'E', 'T', - ' ', '0', ' ', ' ' D ',' I ',' R ',' ',' 0 ',' 1 ','; -',' 3 ',' 4 ',' ',' 'L', 'I', 'N', 'K', ' ', '0', '1', ';', '3', '6', ' ', - ' ' ',' 'M', 'U', 'L', 'T', 'I', 'H', 'A', 'R', 'D', 'L', 'I', 'N', 'K', - ' ', '0', '0', ' ', ' ' F ',' I ',' F ',' O ',' ',' 4 ',' 0 ','; -',' 3 ',' 3 ',' ',' 'S', 'O', 'C', 'K', ' ', '0', '1', ';', '3', '5', ' ', - ' ' D ',' O ',' O ',' R ',' ',' 0 ',' 1 ','; -',' 3 ',' 5 ',' ',' 'B', 'L', 'K', ' ', '4', '0', ';', '3', '3', ';', '0', '1', - ' ', ' ' C ',' H ',' R ',' ',' 4 ',' 0 ','; -',' 3 ',' 3 ','; -',' 0 ',' 1 ',' ',' 'O', 'R', 'P', 'H', 'A', 'N', ' ', '4', '0', ';', '3', '1', - ';', '0', '1', ' ', - ' ' M ',' I ',' S ',' S ',' I ',' N ',' G ',' ',' 0 ',' 0 ',' ',' 'S', 'E', - 'T', 'U', 'I', 'D', ' ', '3', '7', ';', '4', '1', ' ', - ' ' S ',' E ',' T ',' G ',' I ',' D ',' ',' 3 ',' 0 ','; -',' 4 ',' 3 ',' ',' 'C', 'A', 'P', 'A', 'B', 'I', 'L', 'I', 'T', 'Y', ' ', '0', - '0', ' ', - ' ' S ',' T ',' I ',' C ',' K ',' Y ','_ ',' O ',' T ',' H ',' E ',' R ','_ ',' W ',' R ',' I ',' T ',' A ',' B ',' L',' E ',' ',' 3 ',' 0 ','; -',' 4 ',' 2 ',' ',' 'O', 'T', 'H', 'E', 'R', '_', 'W', 'R', 'I', 'T', 'A', 'B', - 'L', 'E', ' ', '3', '4', ';', '4', '2', ' ', - ' ' S ',' T ',' I ',' C ',' K ',' Y ',' ',' 3 ',' 7 ','; -',' 4 ',' 4 ',' ',' ' ' E ',' X ',' E ',' C ',' ',' 0 ',' 1 ','; -',' 3 ',' 2',0, ' ' ' ' ' ' ' ' ' ' ' ' ' ' ',' '.', 't', 'a', 'r', ' ', - '0', '1', ';', '3', '1', 0, '.', 't', 'g', 'z', ' ', '0', '1', ';', '3', - '1', 0, '.', 'a', 'r', 'c', ' ', '0', '1', ';', '3', '1', 0, '.', 'a', 'r', - 'j', ' ', '0', '1', ';', '3', '1', 0, '.', 't', 'a', 'z', ' ', '0', '1', - ';', '3', '1', 0, '.', 'l', 'h', 'a', ' ', '0', '1', ';', '3', '1', 0, '.', - 'l', 'z', '4', ' ', '0', '1', ';', '3', '1', 0, '.', 'l', 'z', 'h', ' ', - '0', '1', ';', '3', '1', 0, '.', 'l', 'z', 'm', 'a', ' ', '0', '1', ';', - '3', '1', 0, '.', 't', 'l', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 't', - 'x', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 't', 'z', 'o', ' ', '0', - '1', ';', '3', '1', 0, '.', 't', '7', 'z', ' ', '0', '1', ';', '3', '1', 0, - '.', 'z', 'i', 'p', ' ', '0', '1', ';', '3', '1', 0, '.', 'z', ' ', '0', - '1', ';', '3', '1', 0, '.', 'd', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', - 'g', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 'l', 'r', 'z', ' ', '0', - '1', ';', '3', '1', 0, '.', 'l', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', - 'l', 'z', 'o', ' ', '0', '1', ';', '3', '1', 0, '.', 'x', 'z', ' ', '0', - '1', ';', '3', '1', 0, '.', 'z', 's', 't', ' ', '0', '1', ';', '3', '1', 0, - '.', 't', 'z', 's', 't', ' ', '0', '1', ';', '3', '1', 0, '.', 'b', 'z', - '2', ' ', '0', '1', ';', '3', '1', 0, '.', 'b', 'z', ' ', '0', '1', ';', - '3', '1', 0, '.', 't', 'b', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 't', - 'b', 'z', '2', ' ', '0', '1', ';', '3', '1', 0, '.', 't', 'z', ' ', '0', - '1', ';', '3', '1', 0, '.', 'd', 'e', 'b', ' ', '0', '1', ';', '3', '1', 0, - '.', 'r', 'p', 'm', ' ', '0', '1', ';', '3', '1', 0, '.', 'j', 'a', 'r', - ' ', '0', '1', ';', '3', '1', 0, '.', 'w', 'a', 'r', ' ', '0', '1', ';', - '3', '1', 0, '.', 'e', 'a', 'r', ' ', '0', '1', ';', '3', '1', 0, '.', 's', - 'a', 'r', ' ', '0', '1', ';', '3', '1', 0, '.', 'r', 'a', 'r', ' ', '0', - '1', ';', '3', '1', 0, '.', 'a', 'l', 'z', ' ', '0', '1', ';', '3', '1', 0, - '.', 'a', 'c', 'e', ' ', '0', '1', ';', '3', '1', 0, '.', 'z', 'o', 'o', - ' ', '0', '1', ';', '3', '1', 0, '.', 'c', 'p', 'i', 'o', ' ', '0', '1', - ';', '3', '1', 0, '.', '7', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 'r', - 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 'c', 'a', 'b', ' ', '0', '1', - ';', '3', '1', 0, '.', 'w', 'i', 'm', ' ', '0', '1', ';', '3', '1', 0, '.', - 's', 'w', 'm', ' ', '0', '1', ';', '3', '1', 0, '.', 'd', 'w', 'm', ' ', - '0', '1', ';', '3', '1', 0, '.', 'e', 's', 'd', ' ', '0', '1', ';', '3', - '1', 0, ' '.',' a ',' v ',' i ',' f ',' ',' 0 ',' 1 ','; -',' 3 ',' 5',0, '.', 'j', 'p', 'g', ' ', '0', '1', ';', '3', '5', 0, '.', 'j', - 'p', 'e', 'g', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', 'j', 'p', 'g', - ' ', '0', '1', ';', '3', '5', 0, '.', 'm', 'j', 'p', 'e', 'g', ' ', '0', - '1', ';', '3', '5', 0, '.', 'g', 'i', 'f', ' ', '0', '1', ';', '3', '5', 0, - '.', 'b', 'm', 'p', ' ', '0', '1', ';', '3', '5', 0, '.', 'p', 'b', 'm', - ' ', '0', '1', ';', '3', '5', 0, '.', 'p', 'g', 'm', ' ', '0', '1', ';', - '3', '5', 0, '.', 'p', 'p', 'm', ' ', '0', '1', ';', '3', '5', 0, '.', 't', - 'g', 'a', ' ', '0', '1', ';', '3', '5', 0, '.', 'x', 'b', 'm', ' ', '0', - '1', ';', '3', '5', 0, '.', 'x', 'p', 'm', ' ', '0', '1', ';', '3', '5', 0, - '.', 't', 'i', 'f', ' ', '0', '1', ';', '3', '5', 0, '.', 't', 'i', 'f', - 'f', ' ', '0', '1', ';', '3', '5', 0, '.', 'p', 'n', 'g', ' ', '0', '1', - ';', '3', '5', 0, '.', 's', 'v', 'g', ' ', '0', '1', ';', '3', '5', 0, '.', - 's', 'v', 'g', 'z', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', 'n', 'g', - ' ', '0', '1', ';', '3', '5', 0, '.', 'p', 'c', 'x', ' ', '0', '1', ';', - '3', '5', 0, '.', 'm', 'o', 'v', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', - 'p', 'g', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', 'p', 'e', 'g', ' ', - '0', '1', ';', '3', '5', 0, '.', 'm', '2', 'v', ' ', '0', '1', ';', '3', - '5', 0, '.', 'm', 'k', 'v', ' ', '0', '1', ';', '3', '5', 0, '.', 'w', 'e', - 'b', 'm', ' ', '0', '1', ';', '3', '5', 0, '.', 'w', 'e', 'b', 'p', ' ', - '0', '1', ';', '3', '5', 0, '.', 'o', 'g', 'm', ' ', '0', '1', ';', '3', - '5', 0, '.', 'm', 'p', '4', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', '4', - 'v', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', 'p', '4', 'v', ' ', '0', - '1', ';', '3', '5', 0, '.', 'v', 'o', 'b', ' ', '0', '1', ';', '3', '5', 0, - '.', 'q', 't', ' ', '0', '1', ';', '3', '5', 0, '.', 'n', 'u', 'v', ' ', - '0', '1', ';', '3', '5', 0, '.', 'w', 'm', 'v', ' ', '0', '1', ';', '3', - '5', 0, '.', 'a', 's', 'f', ' ', '0', '1', ';', '3', '5', 0, '.', 'r', 'm', - ' ', '0', '1', ';', '3', '5', 0, '.', 'r', 'm', 'v', 'b', ' ', '0', '1', - ';', '3', '5', 0, '.', 'f', 'l', 'c', ' ', '0', '1', ';', '3', '5', 0, '.', - 'a', 'v', 'i', ' ', '0', '1', ';', '3', '5', 0, '.', 'f', 'l', 'i', ' ', - '0', '1', ';', '3', '5', 0, '.', 'f', 'l', 'v', ' ', '0', '1', ';', '3', - '5', 0, '.', 'g', 'l', ' ', '0', '1', ';', '3', '5', 0, '.', 'd', 'l', ' ', - '0', '1', ';', '3', '5', 0, '.', 'x', 'c', 'f', ' ', '0', '1', ';', '3', - '5', 0, '.', 'x', 'w', 'd', ' ', '0', '1', ';', '3', '5', 0, '.', 'y', 'u', - 'v', ' ', '0', '1', ';', '3', '5', 0, '.', 'c', 'g', 'm', ' ', '0', '1', - ';', '3', '5', 0, '.', 'e', 'm', 'f', ' ', '0', '1', ';', '3', '5', 0, - ' '.',' o ',' g ',' v ',' ',' 0 ',' 1 ','; -',' 3 ',' 5',0, '.', 'o', 'g', 'x', ' ', '0', '1', ';', '3', '5', 0, - ' '.',' a ',' a ',' c ',' ',' 0 ',' 0 ','; -',' 3 ',' 6',0, '.', 'a', 'u', ' ', '0', '0', ';', '3', '6', 0, '.', 'f', 'l', - 'a', 'c', ' ', '0', '0', ';', '3', '6', 0, '.', 'm', '4', 'a', ' ', '0', - '0', ';', '3', '6', 0, '.', 'm', 'i', 'd', ' ', '0', '0', ';', '3', '6', 0, - '.', 'm', 'i', 'd', 'i', ' ', '0', '0', ';', '3', '6', 0, '.', 'm', 'k', - 'a', ' ', '0', '0', ';', '3', '6', 0, '.', 'm', 'p', '3', ' ', '0', '0', - ';', '3', '6', 0, '.', 'm', 'p', 'c', ' ', '0', '0', ';', '3', '6', 0, '.', - 'o', 'g', 'g', ' ', '0', '0', ';', '3', '6', 0, '.', 'r', 'a', ' ', '0', - '0', ';', '3', '6', 0, '.', 'w', 'a', 'v', ' ', '0', '0', ';', '3', '6', 0, - ' '.',' o ',' g ',' a ',' ',' 0 ',' 0 ','; -',' 3 ',' 6',0, '.', 'o', 'p', 'u', 's', ' ', '0', '0', ';', '3', '6', 0, '.', - 's', 'p', 'x', ' ', '0', '0', ';', '3', '6', 0, '.', 'x', 's', 'p', 'f', - ' ', '0', '0', ';', '3', '6', 0, ' ' * ',' ~',' ',' 0 ',' 0 ','; -',' 9 ',' 0',0, '*', ' '.',' b ',' a ',' k ',' ',' 0 ',' 0 ','; -',' 9 ',' 0',0, '.', 'o', 'l', 'd', ' ', '0', '0', ';', '9', '0', 0, '.', 'o', - 'r', 'i', 'g', ' ', '0', '0', ';', '9', '0', 0, '.', 'p', 'a', 'r', 't', - ' ', '0', '0', ';', '9', '0', 0, '.', 'r', 'e', 'j', ' ', '0', '0', ';', - '9', '0', 0, '.', 's', 'w', 'p', ' ', '0', '0', ';', '9', '0', 0, '.', 't', - 'm', 'p', ' ', '0', '0', ';', '9', '0', 0, '.', 'd', 'p', 'k', 'g', '-', - 'd', 'i', 's', 't', ' ', '0', '0', ';', '9', '0', 0, '.', 'd', 'p', 'k', - 'g', '-', 'o', 'l', 'd', ' ', '0', '0', ';', '9', '0', 0, '.', 'u', 'c', - 'f', '-', 'd', 'i', 's', 't', ' ', '0', '0', ';', '9', '0', 0, '.', 'u', - 'c', 'f', '-', 'n', 'e', 'w', ' ', '0', '0', ';', '9', '0', 0, '.', 'u', - 'c', 'f', '-', 'o', 'l', 'd', ' ', '0', '0', ';', '9', '0', 0, '.', 'r', - 'p', 'm', 'n', 'e', 'w', ' ', '0', '0', ';', '9', '0', 0, '.', 'r', 'p', - 'm', 'o', 'r', 'i', 'g', ' ', '0', '0', ';', '9', '0', 0, '.', 'r', 'p', - 'm', 's', 'a', 'v', 'e', ' ', '0', '0', ';', '9', '0', 0, ' ' -} -; -extern int c_strcasecmp(const char *s1, const char *s2) - __attribute__((__pure__)); - -extern int c_strncasecmp(const char *s1, const char *s2, size_t n) - __attribute__((__pure__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct _obstack_chunk { - char *limit; - struct _obstack_chunk *prev; - char contents[]; -}; - -struct obstack { - size_t chunk_size; - struct _obstack_chunk *chunk; - char *object_base; - char *next_free; - char *chunk_limit; - union { - size_t i; - void *p; - } temp; - size_t alignment_mask; - - union { - void *(*plain)(size_t); - void *(*extra)(void *, size_t); - } chunkfun; - union { - void (*plain)(void *); - void (*extra)(void *, void *); - } freefun; - - void *extra_arg; - unsigned use_extra_arg : 1; - unsigned maybe_empty_object : 1; - - unsigned alloc_failed : 1; -}; - -extern void _obstack_newchunk(struct obstack *, size_t); -extern void _obstack_free(struct obstack *, void *); -extern int _obstack_begin(struct obstack *, size_t, size_t, void *(*)(size_t), - void (*)(void *)); -extern int _obstack_begin_1(struct obstack *, size_t, size_t, - void *(*)(void *, size_t), void (*)(void *, void *), - void *); -extern size_t _obstack_memory_used(struct obstack *) - - __attribute__((__pure__)); - -extern __attribute__((__noreturn__)) void (*obstack_alloc_failed_handler)(void); - -extern int obstack_exit_failure; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); -enum Shell_syntax { SHELL_SYNTAX_BOURNE, SHELL_SYNTAX_C, SHELL_SYNTAX_UNKNOWN }; - -static struct obstack lsc_obstack; - -static char const *const slack_codes[] = {"NORMAL", - "NORM", - "FILE", - "RESET", - "DIR", - "LNK", - "LINK", - "SYMLINK", - "ORPHAN", - "MISSING", - "FIFO", - "PIPE", - "SOCK", - "BLK", - "BLOCK", - "CHR", - "CHAR", - "DOOR", - "EXEC", - "LEFT", - "LEFTCODE", - "RIGHT", - "RIGHTCODE", - "END", - "ENDCODE", - "SUID", - "SETUID", - "SGID", - "SETGID", - "STICKY", - "OTHER_WRITABLE", - "OWR", - "STICKY_OTHER_WRITABLE", - "OWT", - "CAPABILITY", - "MULTIHARDLINK", - "CLRTOEOL", - ((void *)0) - -}; - -static char const *const ls_codes[] = { - "no", "no", "fi", "rs", "di", "ln", "ln", "ln", "or", "mi", - "pi", "pi", "so", "bd", "bd", "cd", "cd", "do", "ex", "lc", - "lc", "rc", "rc", "ec", "ec", "su", "su", "sg", "sg", "st", - "ow", "ow", "tw", "tw", "ca", "mh", "cl", ((void *)0) - -}; -_Static_assert((sizeof(slack_codes) / sizeof *(slack_codes)) == - (sizeof(ls_codes) / sizeof *(ls_codes)), - "verify (" - "ARRAY_CARDINALITY (slack_codes) == ARRAY_CARDINALITY (ls_codes)" - ")"); - -static _Bool print_ls_colors; - -enum { - PRINT_LS_COLORS_OPTION = 0x7f + 1, -}; - -static struct option const long_options[] = { - {"bourne-shell", 0, ((void *)0), 'b'}, - {"sh", 0, ((void *)0), 'b'}, - {"csh", 0, ((void *)0), 'c'}, - {"c-shell", 0, ((void *)0), 'c'}, - {"print-database", 0, ((void *)0), 'p'}, - {"print-ls-colors", 0, ((void *)0), PRINT_LS_COLORS_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]\n", 5), - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Output commands to set the LS_COLORS environment " - "variable.\n\nDetermine format of output:\n -b, --sh, " - "--bourne-shell output Bourne shell code to set LS_COLORS\n " - "-c, --csh, --c-shell output C shell code to set " - "LS_COLORS\n -p, --print-database output defaults\n " - "--print-ls-colors output fully escaped colors for display\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nIf FILE is specified, read it to determine which colors " - "to use for which\nfile types and extensions. Otherwise, a " - "precompiled database is used.\nFor details on the format of " - "these files, run 'dircolors --print-database'.\n", - 5), - stdout) - - ; - emit_ancillary_info("dircolors"); - } - - exit(status); -} - -static enum Shell_syntax guess_shell_syntax(void) { - char *shell; - - shell = getenv("SHELL"); - if (shell == ((void *)0) || *shell == '\0') - return SHELL_SYNTAX_UNKNOWN; - - shell = last_component(shell); - - if ((strcmp(shell, "csh") == 0) || (strcmp(shell, "tcsh") == 0)) - return SHELL_SYNTAX_C; - - return SHELL_SYNTAX_BOURNE; -} - -static void parse_line(char const *line, char **keyword, char **arg) { - char const *p; - char const *keyword_start; - char const *arg_start; - - *keyword = ((void *)0); - *arg = ((void *)0); - - for (p = line; ((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISspace); - ++p) - continue; - - if (*p == '\0' || *p == ' return; - - keyword_start = p; - - while (! - ((*__ctype_b_loc ())[(int) (( - to_uchar (*p) - ))] & (unsigned short int) _ISspace) - && *p != '\0') - { - ++p; - } - - *keyword = ximemdup0 (keyword_start, p - keyword_start); - if (*p == '\0') - return; - - do - { - ++p; - } - while ( - ((*__ctype_b_loc ())[(int) (( - to_uchar (*p) - ))] & (unsigned short int) _ISspace) - ); - - if (*p == '\0' || *p == ' return; - - arg_start = p; - - while (*p != '\0' && *p != ' ++p; - - for (--p; - ((*__ctype_b_loc ())[(int) (( - to_uchar (*p) - ))] & (unsigned short int) _ISspace) - ; --p) - continue; - ++p; - - *arg = ximemdup0 (arg_start, p - arg_start); -} - -static void append_quoted(char const *str) { - - _Bool need_backslash = 1; - - while (*str != '\0') { - if (!print_ls_colors) - switch (*str) { - case '\'': - __extension__({ - struct obstack *__o = (&lsc_obstack); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < 1) - _obstack_newchunk(__o, 1); - ((void)(*((__o)->next_free)++ = ('\''))); - }); - __extension__({ - struct obstack *__o = (&lsc_obstack); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < 1) - _obstack_newchunk(__o, 1); - ((void)(*((__o)->next_free)++ = ('\\'))); - }); - __extension__({ - struct obstack *__o = (&lsc_obstack); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < 1) - _obstack_newchunk(__o, 1); - ((void)(*((__o)->next_free)++ = ('\''))); - }); - need_backslash = 1; - break; - - case '\\': - case '^': - need_backslash = !need_backslash; - break; - - case ':': - case '=': - if (need_backslash) - __extension__({ - struct obstack *__o = (&lsc_obstack); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < 1) - _obstack_newchunk(__o, 1); - ((void)(*((__o)->next_free)++ = ('\\'))); - }); - ; - - default: - need_backslash = 1; - break; - } - - __extension__({ - struct obstack *__o = (&lsc_obstack); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < 1) - _obstack_newchunk(__o, 1); - ((void)(*((__o)->next_free)++ = (*str))); - }); - ++str; - } -} - -static void append_entry(char prefix, char const *item, char const *arg) { - if (print_ls_colors) { - append_quoted("\x1B["); - append_quoted(arg); - __extension__({ - struct obstack *__o = (&lsc_obstack); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < 1) - _obstack_newchunk(__o, 1); - ((void)(*((__o)->next_free)++ = ('m'))); - }); - } - if (prefix) - __extension__({ - struct obstack *__o = (&lsc_obstack); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < 1) - _obstack_newchunk(__o, 1); - ((void)(*((__o)->next_free)++ = (prefix))); - }); - append_quoted(item); - __extension__({ - struct obstack *__o = (&lsc_obstack); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < 1) - _obstack_newchunk(__o, 1); - ((void)(*((__o)->next_free)++ = (print_ls_colors ? '\t' : '='))); - }); - append_quoted(arg); - if (print_ls_colors) - append_quoted("\x1B[0m"); - __extension__({ - struct obstack *__o = (&lsc_obstack); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < 1) - _obstack_newchunk(__o, 1); - ((void)(*((__o)->next_free)++ = (print_ls_colors ? '\n' : ':'))); - }); -} -static _Bool - -dc_parse_stream(FILE *fp, char const *filename) { - size_t line_number = 0; - char const *next_G_line = G_line; - char *input_line = ((void *)0); - size_t input_line_size = 0; - char const *line; - char const *term; - char const *colorterm; - - _Bool ok = 1; - - enum { ST_TERMNO, ST_TERMYES, ST_TERMSURE, ST_GLOBAL } state = ST_GLOBAL; - - term = getenv("TERM"); - if (term == ((void *)0) || *term == '\0') - term = "none"; - - colorterm = getenv("COLORTERM"); - if (colorterm == ((void *)0)) - colorterm = ""; - - while (1) { - char *keywd, *arg; - - _Bool unrecognized; - - ++line_number; - - if (fp) { - if (getline(&input_line, &input_line_size, fp) <= 0) { - free(input_line); - break; - } - line = input_line; - } else { - if (next_G_line == G_line + sizeof G_line) - break; - line = next_G_line; - next_G_line += strlen(next_G_line) + 1; - } - - parse_line(line, &keywd, &arg); - - if (keywd == ((void *)0)) - continue; - - if (arg == ((void *)0)) { - error(0, 0, - dcgettext(((void *)0), - "%s:%lu: invalid line; missing second token", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, filename), - (unsigned long int)line_number); - ok = 0; - free(keywd); - continue; - } - - unrecognized = 0; - if (c_strcasecmp(keywd, "TERM") == 0) { - if (state != ST_TERMSURE) - state = fnmatch(arg, term, 0) == 0 ? ST_TERMSURE : ST_TERMNO; - } else if (c_strcasecmp(keywd, "COLORTERM") == 0) { - if (state != ST_TERMSURE) - state = fnmatch(arg, colorterm, 0) == 0 ? ST_TERMSURE : ST_TERMNO; - } else { - if (state == ST_TERMSURE) - state = ST_TERMYES; - - if (state != ST_TERMNO) { - if (keywd[0] == '.') - append_entry('*', keywd, arg); - else if (keywd[0] == '*') - append_entry(0, keywd, arg); - else if (c_strcasecmp(keywd, "OPTIONS") == 0 || - c_strcasecmp(keywd, "COLOR") == 0 || - c_strcasecmp(keywd, "EIGHTBIT") == 0) { - - } else { - int i; - - for (i = 0; slack_codes[i] != ((void *)0); ++i) - if (c_strcasecmp(keywd, slack_codes[i]) == 0) - break; - - if (slack_codes[i] != ((void *)0)) - append_entry(0, ls_codes[i], arg); - else - unrecognized = 1; - } - } else - unrecognized = 1; - } - - if (unrecognized && (state == ST_TERMSURE || state == ST_TERMYES)) { - error(0, 0, dcgettext(((void *)0), "%s:%lu: unrecognized keyword %s", 5), - (filename ? quotearg_n_style_colon(0, shell_escape_quoting_style, - filename) - : dcgettext(((void *)0), "", 5)), - (unsigned long int)line_number, keywd); - ok = 0; - } - - free(keywd); - free(arg); - } - - return ok; -} - -static _Bool - -dc_parse_file(char const *filename) { - - _Bool ok; - - if (!(strcmp(filename, "-") == 0) && - freopen_safer(filename, "r", stdin) == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - ok = dc_parse_stream(stdin, filename); - - if (rpl_fclose(stdin) != 0) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return ok; -} - -int main(int argc, char **argv) { - - _Bool ok = 1; - int optc; - enum Shell_syntax syntax = SHELL_SYNTAX_UNKNOWN; - - _Bool print_database = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "bcp", long_options, ((void *)0))) != - -1) - switch (optc) { - case 'b': - syntax = SHELL_SYNTAX_BOURNE; - break; - - case 'c': - syntax = SHELL_SYNTAX_C; - break; - - case 'p': - print_database = 1; - break; - - case PRINT_LS_COLORS_OPTION: - print_ls_colors = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "dircolors", "GNU coreutils", Version, - ("H. Peter Anvin"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - - argc -= optind; - argv += optind; - - if ((print_database | print_ls_colors) && syntax != SHELL_SYNTAX_UNKNOWN) { - error(0, 0, - - dcgettext(((void *)0), - "the options to output non shell syntax,\n" - "and to select a shell syntax are mutually exclusive", - 5) - - ); - usage(1); - } - - if (print_database && print_ls_colors) { - error(0, 0, - - dcgettext(((void *)0), - "options --print-database and --print-ls-colors " - "are mutually exclusive", - 5) - - ); - usage(1); - } - - if ((!print_database) < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[!print_database])); - if (print_database) - fprintf(stderr, "%s\n", - - dcgettext(((void *)0), - "file operands cannot be combined with " - "--print-database (-p)", - 5) - - ); - usage(1); - } - - if (print_database) { - char const *p = G_line; - while (p - G_line < sizeof G_line) { - puts(p); - p += strlen(p) + 1; - } - } else { - - if (syntax == SHELL_SYNTAX_UNKNOWN && !print_ls_colors) { - syntax = guess_shell_syntax(); - if (syntax == SHELL_SYNTAX_UNKNOWN) { - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"no SHELL environment " - "variable, and no shell type option given\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "no SHELL environment variable, and no shell " - "type option given", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "no SHELL environment variable, and no shell " - "type option given", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } - - _obstack_begin((&lsc_obstack), 0, 0, (malloc), (free)); - if (argc == 0) - ok = dc_parse_stream(((void *)0), ((void *)0)); - else - ok = dc_parse_file(argv[0]); - - if (ok) { - size_t len = __extension__({ - struct obstack const *__o = (&lsc_obstack); - (size_t)(__o->next_free - __o->object_base); - }); - char *s = __extension__({ - struct obstack *__o1 = (&lsc_obstack); - void *__value = (void *)__o1->object_base; - if (__o1->next_free == __value) - __o1->maybe_empty_object = 1; - __o1->next_free = - ((sizeof(ptrdiff_t) < sizeof(void *) ? (__o1->object_base) - : (char *)0) + - (((__o1->next_free) - - (sizeof(ptrdiff_t) < sizeof(void *) ? (__o1->object_base) - : (char *)0) + - (__o1->alignment_mask)) & - ~(__o1->alignment_mask))); - if ((size_t)(__o1->next_free - (char *)__o1->chunk) > - (size_t)(__o1->chunk_limit - (char *)__o1->chunk)) - __o1->next_free = __o1->chunk_limit; - __o1->object_base = __o1->next_free; - __value; - }); - char const *prefix; - char const *suffix; - - if (syntax == SHELL_SYNTAX_BOURNE) { - prefix = "LS_COLORS='"; - suffix = "';\nexport LS_COLORS\n"; - } else { - prefix = "setenv LS_COLORS '"; - suffix = "'\n"; - } - if (!print_ls_colors) - fputs_unlocked(prefix, stdout); - fwrite_unlocked(s, 1, len, stdout); - if (!print_ls_colors) - fputs_unlocked(suffix, stdout); - } - } - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/dirname.c b/tests/source/coreutils/dirname.c deleted file mode 100644 index 4aa5f9d..0000000 --- a/tests/source/coreutils/dirname.c +++ /dev/null @@ -1,6885 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; -static struct option const longopts[] = { - {"zero", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION] NAME...\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Output each NAME with its last non-slash component and " - "trailing slashes\nremoved; if NAME contains no /'s, output " - "'.' (meaning the current directory).\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero end each output line with NUL, not newline\n", 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nExamples:\n %s /usr/bin/ -> \"/usr\"\n %s " - "dir1/str dir2/str -> \"dir1\" followed by \"dir2\"\n " - "%s stdio.h -> \".\"\n", - 5) - - , - program_name, program_name, program_name); - emit_ancillary_info("dirname"); - } - exit(status); -} - -int main(int argc, char **argv) { - static char const dot = '.'; - - _Bool use_nuls = 0; - char const *result; - size_t len; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while (1) { - int c = getopt_long(argc, argv, "z", longopts, ((void *)0)); - - if (c == -1) - break; - - switch (c) { - case 'z': - use_nuls = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "dirname", "GNU coreutils", Version, - ("David MacKenzie"), ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (argc < optind + 1) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - for (; optind < argc; optind++) { - result = argv[optind]; - len = dir_len(result); - - if (!len) { - result = ˙ - len = 1; - } - - fwrite_unlocked(result, 1, len, stdout); - putchar_unlocked(use_nuls ? '\0' : '\n'); - } - - return 0; -} diff --git a/tests/source/coreutils/du.c b/tests/source/coreutils/du.c deleted file mode 100644 index f72900b..0000000 --- a/tests/source/coreutils/du.c +++ /dev/null @@ -1,8137 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -struct argv_iterator; - -enum argv_iter_err { AI_ERR_OK = 1, AI_ERR_EOF, AI_ERR_MEM, AI_ERR_READ }; - -void argv_iter_free(struct argv_iterator *) - - __attribute__((__nonnull__(1))); - -struct argv_iterator *argv_iter_init_argv(char **argv) - - __attribute__((__nonnull__(1))) - __attribute__((__malloc__(argv_iter_free, 1))); -struct argv_iterator *argv_iter_init_stream(FILE *fp) - - __attribute__((__nonnull__(1))) - __attribute__((__malloc__(argv_iter_free, 1))); -char *argv_iter(struct argv_iterator *, enum argv_iter_err *) - - __attribute__((__nonnull__(1, 2))); -size_t argv_iter_n_args(struct argv_iterator const *) __attribute__((__pure__)) -__attribute__((__nonnull__(1))); - -struct di_set; - -void di_set_free(struct di_set *) __attribute__((__nonnull__(1))); - -struct di_set *di_set_alloc(void) __attribute__((__malloc__)) -__attribute__((__malloc__(di_set_free, 1))); - -int di_set_insert(struct di_set *, dev_t, ino_t) - __attribute__((__nonnull__(1))); - -int di_set_lookup(struct di_set *dis, dev_t dev, ino_t ino) - __attribute__((__nonnull__(1))); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct exclude; - -_Bool fnmatch_pattern_has_wildcards(const char *, int) - __attribute__((__pure__)); - -void free_exclude(struct exclude *) __attribute__((__nonnull__(1))); -struct exclude *new_exclude(void) __attribute__((__malloc__)) -__attribute__((__returns_nonnull__)) -__attribute__((__malloc__(free_exclude, 1))); -void add_exclude(struct exclude *, char const *, int); -int add_exclude_file(void (*)(struct exclude *, char const *, int), - struct exclude *, char const *, int, char); -int add_exclude_fp(void (*)(struct exclude *, char const *, int, void *), - struct exclude *, FILE *, int, char, void *); - -_Bool excluded_file_name(struct exclude const *, char const *); -void exclude_add_pattern_buffer(struct exclude *ex, char *buf); - -_Bool exclude_fnmatch(char const *, char const *, int); - -size_t fprintftime(FILE *fp, char const *fmt, struct tm const *tm, - timezone_t zone, int nanoseconds); - -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -enum { - - human_ceiling = 0, - - human_round_to_nearest = 1, - - human_floor = 2, - - human_group_digits = 4, - - human_suppress_point_zero = 8, - - human_autoscale = 16, - - human_base_1024 = 32, - - human_space_before_unit = 64, - - human_SI = 128, - - human_B = 256 -}; - -char *human_readable(uintmax_t, char *, int, uintmax_t, uintmax_t); - -enum strtol_error human_options(char const *, int *, uintmax_t *); - -struct mount_entry { - char *me_devname; - char *me_mountdir; - char *me_mntroot; - - char *me_type; - dev_t me_dev; - unsigned int me_dummy : 1; - unsigned int me_remote : 1; - unsigned int me_type_malloced : 1; - struct mount_entry *me_next; -}; - -struct mount_entry *read_file_system_list(_Bool need_fs_type) - __attribute__((__malloc__)); -void free_mount_entry(struct mount_entry *entry); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -enum { I_RING_SIZE = 4 }; -_Static_assert(1 <= I_RING_SIZE, "verify (" - "1 <= I_RING_SIZE" - ")"); -struct I_ring { - int ir_data[I_RING_SIZE]; - int ir_default_val; - unsigned int ir_front; - unsigned int ir_back; - - _Bool ir_empty; -}; -typedef struct I_ring I_ring; - -void i_ring_init(I_ring *ir, int ir_default_val); -int i_ring_push(I_ring *ir, int val); -int i_ring_pop(I_ring *ir); - -_Bool i_ring_empty(I_ring const *ir) __attribute__((__pure__)); - -typedef struct { - struct _ftsent *fts_cur; - struct _ftsent *fts_child; - struct _ftsent **fts_array; - dev_t fts_dev; - char *fts_path; - int fts_rfd; - int fts_cwd_fd; - - size_t fts_pathlen; - size_t fts_nitems; - int (*fts_compar)(struct _ftsent const **, struct _ftsent const **); - int fts_options; - struct hash_table *fts_leaf_optimization_works_ht; - - union { - struct hash_table *ht; - - struct cycle_check_state *state; - } fts_cycle; - - I_ring fts_fd_ring; -} FTS; - -typedef struct _ftsent { - struct _ftsent *fts_cycle; - struct _ftsent *fts_parent; - struct _ftsent *fts_link; - DIR *fts_dirp; - - long fts_number; - void *fts_pointer; - char *fts_accpath; - char *fts_path; - int fts_errno; - int fts_symfd; - size_t fts_pathlen; - - FTS *fts_fts; - - ptrdiff_t fts_level; - - size_t fts_namelen; - unsigned short int fts_info; - - unsigned short int fts_flags; - - unsigned short int fts_instr; - - struct stat fts_statp[1]; - char fts_name[]; -} FTSENT; - -FTSENT *rpl_fts_children(FTS *, int); - -int rpl_fts_close(FTS *); - -FTS *rpl_fts_open(char *const *, int, int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__(rpl_fts_close, 1))); - -FTSENT *rpl_fts_read(FTS *); - -int rpl_fts_set(FTS *, FTSENT *, int); - -FTS *xfts_open(char *const *, int options, - int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__)) __attribute__((__malloc__(rpl_fts_close, 1))) - __attribute__((__nonnull__(1))) __attribute__((__returns_nonnull__)); - -_Bool - -cycle_warning_required (FTS const *fts, FTSENT const *ent) - __attribute__ ((__nonnull__ )) __attribute__ ((__pure__)); - -_Noreturn void xstrtol_fatal(enum strtol_error, int, char, - struct option const *, char const *); - -extern _Bool fts_debug; -static struct di_set *di_files; - -static struct di_set *di_mnt; - -static size_t prev_level; - -struct duinfo { - - uintmax_t size; - - uintmax_t inodes; - - struct timespec tmax; -}; - -static inline void duinfo_init(struct duinfo *a) { - a->size = 0; - a->inodes = 0; - a->tmax.tv_sec = ((time_t) ~( - (time_t)(!(!((time_t)0 < (time_t)-1)) - ? (time_t)-1 - : ((((time_t)1 << ((sizeof(time_t) * 8) - 2)) - 1) * 2 + - 1)))); - a->tmax.tv_nsec = -1; -} - -static inline void duinfo_set(struct duinfo *a, uintmax_t size, - struct timespec tmax) { - a->size = size; - a->inodes = 1; - a->tmax = tmax; -} - -static inline void duinfo_add(struct duinfo *a, struct duinfo const *b) { - uintmax_t sum = a->size + b->size; - a->size = a->size <= sum ? sum : (18446744073709551615UL); - a->inodes = a->inodes + b->inodes; - if (timespec_cmp(a->tmax, b->tmax) < 0) - a->tmax = b->tmax; -} - -struct dulevel { - - struct duinfo ent; - - struct duinfo subdir; -}; - -static _Bool opt_all = 0; - -static _Bool apparent_size = 0; - -static _Bool opt_count_all = 0; - -static _Bool hash_all; - -static _Bool opt_nul_terminate_output = 0; - -static _Bool print_grand_total = 0; - -static _Bool opt_separate_dirs = 0; - -static size_t max_depth = (18446744073709551615UL); - -static intmax_t opt_threshold = 0; - -static int human_output_opts; - -static _Bool opt_inodes = 0; - -static _Bool opt_time = 0; - -enum time_type { time_mtime, time_ctime, time_atime }; - -static enum time_type time_type = time_mtime; - -static char const *time_style = ((void *)0); - -static char const *time_format = ((void *)0); - -static timezone_t localtz; - -static uintmax_t output_block_size; - -static struct exclude *exclude; - -static struct duinfo tot_dui; - -enum { - APPARENT_SIZE_OPTION = 0x7f + 1, - EXCLUDE_OPTION, - FILES0_FROM_OPTION, - HUMAN_SI_OPTION, - FTS_DEBUG, - TIME_OPTION, - TIME_STYLE_OPTION, - INODES_OPTION -}; - -static struct option const long_options[] = { - {"all", 0, ((void *)0), 'a'}, - {"apparent-size", 0, ((void *)0), APPARENT_SIZE_OPTION}, - {"block-size", 1, ((void *)0), 'B'}, - {"bytes", 0, ((void *)0), 'b'}, - {"count-links", 0, ((void *)0), 'l'}, - - {"dereference", 0, ((void *)0), 'L'}, - {"dereference-args", 0, ((void *)0), 'D'}, - {"exclude", 1, ((void *)0), EXCLUDE_OPTION}, - {"exclude-from", 1, ((void *)0), 'X'}, - {"files0-from", 1, ((void *)0), FILES0_FROM_OPTION}, - {"human-readable", 0, ((void *)0), 'h'}, - {"inodes", 0, ((void *)0), INODES_OPTION}, - {"si", 0, ((void *)0), HUMAN_SI_OPTION}, - {"max-depth", 1, ((void *)0), 'd'}, - {"null", 0, ((void *)0), '0'}, - {"no-dereference", 0, ((void *)0), 'P'}, - {"one-file-system", 0, ((void *)0), 'x'}, - {"separate-dirs", 0, ((void *)0), 'S'}, - {"summarize", 0, ((void *)0), 's'}, - {"total", 0, ((void *)0), 'c'}, - {"threshold", 1, ((void *)0), 't'}, - {"time", 2, ((void *)0), TIME_OPTION}, - {"time-style", 1, ((void *)0), TIME_STYLE_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static char const *const time_args[] = {"atime", "access", "use", "ctime", - "status", ((void *)0) - -}; -static enum time_type const time_types[] = {time_atime, time_atime, time_atime, - time_ctime, time_ctime}; -_Static_assert( - (sizeof(time_args) / sizeof *(time_args)) == - (sizeof(time_types) / sizeof *(time_types)) + 1, - "verify (" - "ARRAY_CARDINALITY (time_args) == ARRAY_CARDINALITY (time_types) + 1" - ")"); - -enum time_style { full_iso_time_style, long_iso_time_style, iso_time_style }; - -static char const *const time_style_args[] = {"full-iso", "long-iso", "iso", - ((void *)0) - -}; -static enum time_style const time_style_types[] = { - full_iso_time_style, long_iso_time_style, iso_time_style}; -_Static_assert((sizeof(time_style_args) / sizeof *(time_style_args)) == - (sizeof(time_style_types) / sizeof *(time_style_types)) + 1, - "verify (" - "ARRAY_CARDINALITY (time_style_args) == ARRAY_CARDINALITY " - "(time_style_types) + 1" - ")"); - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [FILE]...\n or: %s [OPTION]... " - "--files0-from=F\n", - 5) - - , - program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Summarize device usage of the set of FILEs, " - "recursively for directories.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " -0, --null end each output line with NUL, not " - "newline\n -a, --all write counts for all files, not " - "just directories\n --apparent-size print apparent sizes " - "rather than device usage; although\n the " - "apparent size is usually smaller, it may be\n " - " larger due to holes in ('sparse') files, internal\n " - " fragmentation, indirect blocks, and the like\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -B, --block-size=SIZE scale sizes by SIZE before printing " - "them; e.g.,\n '-BM' prints sizes in " - "units of 1,048,576 bytes;\n see SIZE " - "format below\n -b, --bytes equivalent to " - "'--apparent-size --block-size=1'\n -c, --total produce " - "a grand total\n -D, --dereference-args dereference only " - "symlinks that are listed on the\n " - "command line\n -d, --max-depth=N print the total for a " - "directory (or file, with --all)\n only " - "if it is N or fewer levels below the command\n " - " line argument; --max-depth=0 is the same as\n " - " --summarize\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " --files0-from=F summarize device usage of the\n " - " NUL-terminated file names specified in file F;\n " - " if F is -, then read names from standard " - "input\n -H equivalent to --dereference-args " - "(-D)\n -h, --human-readable print sizes in human readable " - "format (e.g., 1K 234M 2G)\n --inodes list inode " - "usage information instead of block usage\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -k like --block-size=1K\n -L, " - "--dereference dereference all symbolic links\n -l, " - "--count-links count sizes many times if hard linked\n " - "-m like --block-size=1M\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -P, --no-dereference don't follow any symbolic links (this is " - "the default)\n -S, --separate-dirs for directories do not " - "include size of subdirectories\n --si like -h, " - "but use powers of 1000 not 1024\n -s, --summarize display " - "only a total for each argument\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -t, --threshold=SIZE exclude entries smaller than SIZE if " - "positive,\n or entries greater than SIZE " - "if negative\n --time show time of the last " - "modification of any file in the\n " - "directory, or any of its subdirectories\n --time=WORD " - "show time as WORD instead of modification time:\n " - " atime, access, use, ctime or status\n " - "--time-style=STYLE show times using STYLE, which can be:\n " - " full-iso, long-iso, iso, or +FORMAT;\n " - " FORMAT is interpreted like in 'date'\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " -X, --exclude-from=FILE exclude files that match any " - "pattern in FILE\n --exclude=PATTERN exclude files " - "that match PATTERN\n -x, --one-file-system skip " - "directories on different file systems\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_blocksize_note("DU"); - emit_size_note(); - emit_ancillary_info("du"); - } - exit(status); -} - -static _Bool - -hash_ins(struct di_set *di_set, ino_t ino, dev_t dev) { - int inserted = di_set_insert(di_set, dev, ino); - if (inserted < 0) - xalloc_die(); - return inserted; -} - -static void show_date(char const *format, struct timespec when, timezone_t tz) { - struct tm tm; - if (localtime_rz(tz, &when.tv_sec, &tm)) - fprintftime(stdout, format, &tm, tz, when.tv_nsec); - else { - char buf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - char *when_str = timetostr(when.tv_sec, buf); - error(0, 0, dcgettext(((void *)0), "time %s is out of range", 5), - quote(when_str)); - fputs_unlocked(when_str, stdout); - } -} - -static void print_only_size(uintmax_t n_bytes) { - char buf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 1]; - fputs_unlocked((n_bytes == (18446744073709551615UL) - ? dcgettext(((void *)0), "Infinity", 5) - : human_readable(n_bytes, buf, human_output_opts, 1, - output_block_size)), - stdout) - - ; -} - -static void print_size(const struct duinfo *pdui, char const *string) { - print_only_size(opt_inodes ? pdui->inodes : pdui->size); - - if (opt_time) { - putchar_unlocked('\t'); - show_date(time_format, pdui->tmax, localtz); - } - printf("\t%s%c", string, opt_nul_terminate_output ? '\0' : '\n'); - fflush_unlocked(stdout); -} - -static void fill_mount_table(void) { - struct mount_entry *mnt_ent = read_file_system_list(0); - while (mnt_ent) { - struct mount_entry *mnt_free; - if (!mnt_ent->me_remote && !mnt_ent->me_dummy) { - struct stat buf; - if (!stat(mnt_ent->me_mountdir, &buf)) - hash_ins(di_mnt, buf.st_ino, buf.st_dev); - else { - } - } - - mnt_free = mnt_ent; - mnt_ent = mnt_ent->me_next; - free_mount_entry(mnt_free); - } -} - -static _Bool - -mount_point_in_fts_cycle(FTSENT const *ent) { - FTSENT const *cycle_ent = ent->fts_cycle; - - if (!di_mnt) { - - di_mnt = di_set_alloc(); - if (!di_mnt) - xalloc_die(); - - fill_mount_table(); - } - - while (ent && ent != cycle_ent) { - if (di_set_lookup(di_mnt, ent->fts_statp->st_dev, ent->fts_statp->st_ino) > - 0) { - return 1; - } - ent = ent->fts_parent; - } - - return 0; -} - -static _Bool - -process_file(FTS *fts, FTSENT *ent) { - - _Bool ok = 1; - struct duinfo dui; - struct duinfo dui_to_print; - size_t level; - static size_t n_alloc; - static struct dulevel *dulvl; - - char const *file = ent->fts_path; - const struct stat *sb = ent->fts_statp; - int info = ent->fts_info; - - if (info == 4) { - - error(0, ent->fts_errno, - dcgettext(((void *)0), "cannot read directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - ok = 0; - } else if (info != 6) { - - _Bool excluded = excluded_file_name(exclude, file); - if (!excluded) { - - if (info == 11) { - rpl_fts_set(fts, ent, 1); - FTSENT const *e = rpl_fts_read(fts); - - ((void)sizeof((e == ent) ? 1 : 0), __extension__({ - if (e == ent) - ; - else - __assert_fail("e == ent", "src/du.c", 527, - __extension__ __PRETTY_FUNCTION__); - })); - info = ent->fts_info; - } - - if (info == 10 || info == 13) { - error(0, ent->fts_errno, dcgettext(((void *)0), "cannot access %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - return 0; - } - - if (fts->fts_options & 0x0040 && 0 < ent->fts_level && - fts->fts_dev != sb->st_dev) - excluded = 1; - } - - if (excluded || - (!opt_count_all && - (hash_all || - (!((((sb->st_mode)) & 0170000) == (0040000)) && 1 < sb->st_nlink)) && - !hash_ins(di_files, sb->st_ino, sb->st_dev))) { - - if (info == 1) { - rpl_fts_set(fts, ent, 4); - FTSENT const *e = rpl_fts_read(fts); - - ((void)sizeof((e == ent) ? 1 : 0), __extension__({ - if (e == ent) - ; - else - __assert_fail("e == ent", "src/du.c", 560, - __extension__ __PRETTY_FUNCTION__); - })); - } - - return 1; - } - - switch (info) { - case 1: - return 1; - - case 7: - - error(0, ent->fts_errno, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - ok = 0; - break; - - case 2: - - if (cycle_warning_required(fts, ent) && !mount_point_in_fts_cycle(ent)) { - do { - error(0, 0, - dcgettext(((void *)0), - "WARNING: Circular directory structure.\nThis almost " - "certainly means that you have a corrupted file " - "system.\nNOTIFY YOUR SYSTEM MANAGER.\nThe following " - "directory is part of the cycle:\n %s\n", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - } while (0); - return 0; - } - return 1; - } - } - - duinfo_set(&dui, - (apparent_size ? (((0) > (sb->st_size)) ? (0) : (sb->st_size)) - - : (uintmax_t)((*sb).st_blocks) * 512), - (time_type == time_mtime ? get_stat_mtime(sb) - : time_type == time_atime ? get_stat_atime(sb) - : get_stat_ctime(sb))); - - level = ent->fts_level; - dui_to_print = dui; - - if (n_alloc == 0) { - n_alloc = level + 10; - dulvl = xcalloc(n_alloc, sizeof *dulvl); - } else { - if (level == prev_level) { - - } else if (level > prev_level) { - - if (n_alloc <= level) { - dulvl = xnrealloc(dulvl, level, 2 * sizeof *dulvl); - n_alloc = level * 2; - } - - for (size_t i = prev_level + 1; i <= level; i++) { - duinfo_init(&dulvl[i].ent); - duinfo_init(&dulvl[i].subdir); - } - } else { - - ((void)sizeof((level == prev_level - 1) ? 1 : 0), __extension__({ - if (level == prev_level - 1) - ; - else - __assert_fail("level == prev_level - 1", "src/du.c", 638, - __extension__ __PRETTY_FUNCTION__); - })); - duinfo_add(&dui_to_print, &dulvl[prev_level].ent); - if (!opt_separate_dirs) - duinfo_add(&dui_to_print, &dulvl[prev_level].subdir); - duinfo_add(&dulvl[level].subdir, &dulvl[prev_level].ent); - duinfo_add(&dulvl[level].subdir, &dulvl[prev_level].subdir); - } - } - - prev_level = level; - - if (!(opt_separate_dirs && ((info) == 6 || (info) == 4))) - duinfo_add(&dulvl[level].ent, &dui); - - duinfo_add(&tot_dui, &dui); - - if ((((info) == 6 || (info) == 4) && level <= max_depth) || - (opt_all && level <= max_depth) || level == 0) { - - uintmax_t v = opt_inodes ? dui_to_print.inodes : dui_to_print.size; - if (opt_threshold < 0 ? v <= -opt_threshold : v >= opt_threshold) - print_size(&dui_to_print, file); - } - - return ok; -} - -static _Bool - -du_files(char **files, int bit_flags) { - - _Bool ok = 1; - - if (*files) { - FTS *fts = xfts_open(files, bit_flags, ((void *)0)); - - while (1) { - FTSENT *ent; - - ent = rpl_fts_read(fts); - if (ent == ((void *)0)) { - if ((*__errno_location()) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "fts_read failed: %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - fts->fts_path)); - ok = 0; - } - - prev_level = 0; - break; - }; - - ok &= process_file(fts, ent); - } - - if (rpl_fts_close(fts) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "fts_close failed", 5)); - ok = 0; - } - } - - return ok; -} - -int main(int argc, char **argv) { - char *cwd_only[2]; - - _Bool max_depth_specified = 0; - - _Bool ok = 1; - char *files_from = ((void *)0); - - int bit_flags = 0x0008; - - int symlink_deref_bits = 0x0010; - - _Bool opt_summarize_only = 0; - - cwd_only[0] = bad_cast("."); - cwd_only[1] = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - exclude = new_exclude(); - - human_options(getenv("DU_BLOCK_SIZE"), &human_output_opts, - &output_block_size); - - while (1) { - int oi = -1; - int c = - getopt_long(argc, argv, "0abd:chHklmst:xB:DLPSX:", long_options, &oi); - if (c == -1) - break; - - switch (c) { - - case '0': - opt_nul_terminate_output = 1; - break; - - case 'a': - opt_all = 1; - break; - - case APPARENT_SIZE_OPTION: - apparent_size = 1; - break; - - case 'b': - apparent_size = 1; - human_output_opts = 0; - output_block_size = 1; - break; - - case 'c': - print_grand_total = 1; - break; - - case 'h': - human_output_opts = human_autoscale | human_SI | human_base_1024; - output_block_size = 1; - break; - - case HUMAN_SI_OPTION: - human_output_opts = human_autoscale | human_SI; - output_block_size = 1; - break; - - case 'k': - human_output_opts = 0; - output_block_size = 1024; - break; - - case 'd': { - uintmax_t tmp; - if (xstrtoumax(optarg, ((void *)0), 0, &tmp, "") == LONGINT_OK && - tmp <= (18446744073709551615UL)) { - max_depth_specified = 1; - max_depth = tmp; - } else { - error(0, 0, dcgettext(((void *)0), "invalid maximum depth %s", 5), - quote(optarg)); - ok = 0; - } - } break; - - case 'm': - human_output_opts = 0; - output_block_size = 1024 * 1024; - break; - - case 'l': - opt_count_all = 1; - break; - - case 's': - opt_summarize_only = 1; - break; - - case 't': { - enum strtol_error e; - e = xstrtoimax(optarg, ((void *)0), 0, &opt_threshold, "kKmMGTPEZY0"); - if (e != LONGINT_OK) - xstrtol_fatal(e, oi, c, long_options, optarg); - if (opt_threshold == 0 && *optarg == '-') { - - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "--threshold argument '-0'\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "invalid --threshold argument '-0'", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "invalid --threshold argument '-0'", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } break; - - case 'x': - bit_flags |= 0x0040; - break; - - case 'B': { - enum strtol_error e = - human_options(optarg, &human_output_opts, &output_block_size); - if (e != LONGINT_OK) - xstrtol_fatal(e, oi, c, long_options, optarg); - } break; - - case 'H': - case 'D': - symlink_deref_bits = 0x0001 | 0x0010; - break; - - case 'L': - symlink_deref_bits = 0x0002; - break; - - case 'P': - symlink_deref_bits = 0x0010; - break; - - case 'S': - opt_separate_dirs = 1; - break; - - case 'X': - if (add_exclude_file(add_exclude, exclude, optarg, (1 << 28), '\n')) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, optarg)); - ok = 0; - } - break; - - case FILES0_FROM_OPTION: - files_from = optarg; - break; - - case EXCLUDE_OPTION: - add_exclude(exclude, optarg, (1 << 28)); - break; - - case INODES_OPTION: - opt_inodes = 1; - break; - - case TIME_OPTION: - opt_time = 1; - time_type = - (optarg ? ((time_types)[__xargmatch_internal( - "--time", optarg, time_args, (void const *)(time_types), - sizeof *(time_types), argmatch_die, 1)]) - : time_mtime); - localtz = tzalloc(getenv("TZ")); - break; - - case TIME_STYLE_OPTION: - time_style = optarg; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "du", "GNU coreutils", Version, ("Torbjorn Granlund"), - ("David MacKenzie"), ("Paul Eggert"), ("Jim Meyering"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - ok = 0; - } - } - - if (!ok) - usage(1); - - if (opt_all && opt_summarize_only) { - error(0, 0, - dcgettext(((void *)0), "cannot both summarize and show all entries", - 5)); - usage(1); - } - - if (opt_summarize_only && max_depth_specified && max_depth == 0) { - error(0, 0, - - dcgettext(((void *)0), - "warning: summarizing is the same as using --max-depth=0", - 5)); - } - - if (opt_summarize_only && max_depth_specified && max_depth != 0) { - unsigned long int d = max_depth; - error(0, 0, - dcgettext(((void *)0), - "warning: summarizing conflicts with --max-depth=%lu", 5), - d); - usage(1); - } - - if (opt_summarize_only) - max_depth = 0; - - if (opt_inodes) { - if (apparent_size) { - error(0, 0, - dcgettext(((void *)0), - "warning: options --apparent-size and -b are " - "ineffective with --inodes", - 5) - - ); - } - output_block_size = 1; - } - - if (opt_time) { - if (!time_style) { - time_style = getenv("TIME_STYLE"); - - if (!time_style || (strcmp(time_style, "locale") == 0)) - time_style = "long-iso"; - else if (*time_style == '+') { - - char *p = strchr(time_style, '\n'); - if (p) - *p = '\0'; - } else { - - static char const posix_prefix[] = "posix-"; - static const size_t prefix_len = sizeof posix_prefix - 1; - while ((strncmp(time_style, posix_prefix, prefix_len) == 0)) - time_style += prefix_len; - } - } - - if (*time_style == '+') - time_format = time_style + 1; - else { - switch (((time_style_types)[__xargmatch_internal( - "time style", time_style, time_style_args, - (void const *)(time_style_types), sizeof *(time_style_types), - argmatch_die, 1)])) { - case full_iso_time_style: - time_format = "%Y-%m-%d %H:%M:%S.%N %z"; - break; - - case long_iso_time_style: - time_format = "%Y-%m-%d %H:%M"; - break; - - case iso_time_style: - time_format = "%Y-%m-%d"; - break; - } - } - } - - struct argv_iterator *ai; - if (files_from) { - - if (optind < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind])); - fprintf(stderr, "%s\n", - - dcgettext(((void *)0), - "file operands cannot be combined with --files0-from", - 5)); - usage(1); - } - - if (!((strcmp(files_from, "-") == 0) || - freopen_safer(files_from, "r", stdin))) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot open %s for reading\", 5), quotearg_style " - "(shell_escape_always_quoting_style, files_from)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, - files_from)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, - files_from)), - ((0) ? (void)0 : __builtin_unreachable())))); - - ai = argv_iter_init_stream(stdin); - - hash_all = 1; - } else { - char **files = (optind < argc ? argv + optind : cwd_only); - ai = argv_iter_init_argv(files); - - hash_all = (optind + 1 < argc || symlink_deref_bits == 0x0002); - } - - if (!ai) - xalloc_die(); - - di_files = di_set_alloc(); - if (!di_files) - xalloc_die(); - - if (opt_count_all || !hash_all) - bit_flags |= 0x0100; - - bit_flags |= symlink_deref_bits; - static char *temp_argv[] = {((void *)0), ((void *)0)}; - - while (1) { - - _Bool skip_file = 0; - enum argv_iter_err ai_err; - char *file_name = argv_iter(ai, &ai_err); - if (!file_name) { - switch (ai_err) { - case AI_ERR_EOF: - goto argv_iter_done; - case AI_ERR_READ: - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, files_from)); - ok = 0; - goto argv_iter_done; - case AI_ERR_MEM: - xalloc_die(); - default: - - ((void)sizeof((!"unexpected error code from argv_iter") ? 1 : 0), - __extension__({ - if (!"unexpected error code from argv_iter") - ; - else - __assert_fail("!\"unexpected error code from argv_iter\"", - "src/du.c", 1081, __extension__ __PRETTY_FUNCTION__); - })); - } - } - if (files_from && (strcmp(files_from, "-") == 0) && - (strcmp(file_name, "-") == 0)) { - - error(0, 0, - dcgettext(((void *)0), - "when reading file names from stdin, " - "no file name of %s allowed", - 5) - - , - quotearg_style(shell_escape_always_quoting_style, file_name)); - skip_file = 1; - } - - if (!file_name[0]) { - - if (files_from == ((void *)0)) - error(0, 0, "%s", - dcgettext(((void *)0), "invalid zero-length file name", 5)); - else { - - unsigned long int file_number = argv_iter_n_args(ai); - error(0, 0, "%s:%lu: %s", - quotearg_n_style_colon(0, shell_escape_quoting_style, files_from), - file_number, - dcgettext(((void *)0), "invalid zero-length file name", 5)); - } - skip_file = 1; - } - - if (skip_file) - ok = 0; - else { - temp_argv[0] = file_name; - ok &= du_files(temp_argv, bit_flags); - } - } -argv_iter_done: - - argv_iter_free(ai); - di_set_free(di_files); - if (di_mnt) - di_set_free(di_mnt); - - if (files_from && (ferror_unlocked(stdin) || rpl_fclose(stdin) != 0) && ok) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, files_from)), " - "assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, files_from)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, files_from)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (print_grand_total) - print_size(&tot_dui, dcgettext(((void *)0), "total", 5)); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/echo.c b/tests/source/coreutils/echo.c deleted file mode 100644 index 949cd3e..0000000 --- a/tests/source/coreutils/echo.c +++ /dev/null @@ -1,7028 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -enum { DEFAULT_ECHO_TO_XPG = 0 }; - -void usage(int status) { - - ((void)sizeof((status == 0) ? 1 : 0), __extension__({ - if (status == 0) - ; - else - __assert_fail("status == EXIT_SUCCESS", "src/echo.c", 40, - __extension__ __PRETTY_FUNCTION__); - })); - - printf(dcgettext( - ((void *)0), - "Usage: %s [SHORT-OPTION]... [STRING]...\n or: %s LONG-OPTION\n", - 5) - - , - program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Echo the STRING(s) to standard output.\n\n -n " - " do not output the trailing newline\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - DEFAULT_ECHO_TO_XPG - ? " -e enable interpretation of backslash " - "escapes (default)\n -E disable " - "interpretation of backslash escapes\n" - : " -e enable interpretation of backslash " - "escapes\n -E disable interpretation of " - "backslash escapes (default)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nIf -e is in effect, the following sequences are recognized:\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " \\\\ backslash\n \\a alert (BEL)\n " - "\\b backspace\n \\c produce no further " - "output\n \\e escape\n \\f form feed\n " - "\\n new line\n \\r carriage return\n " - "\\t horizontal tab\n \\v vertical tab\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " \\0NNN byte with octal value NNN (1 to 3 digits)\n \\xHH " - " byte with hexadecimal value HH (1 to 2 digits)\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your shell's " - "documentation\n" - "for details about the options it supports.\n", - 5), - "echo"); - fputs_unlocked( - dcgettext(((void *)0), - "\nNOTE: printf(1) is a preferred alternative,\nwhich does not " - "have issues outputting option-like strings.\n", - 5), - stdout) - - ; - emit_ancillary_info("echo"); - exit(status); -} - -static int hextobin(unsigned char c) { - switch (c) { - default: - return c - '0'; - case 'a': - case 'A': - return 10; - case 'b': - case 'B': - return 11; - case 'c': - case 'C': - return 12; - case 'd': - case 'D': - return 13; - case 'e': - case 'E': - return 14; - case 'f': - case 'F': - return 15; - } -} - -int main(int argc, char **argv) { - - _Bool display_return = 1; - - _Bool posixly_correct = !!getenv("POSIXLY_CORRECT"); - - _Bool allow_options = - (!posixly_correct || - (!DEFAULT_ECHO_TO_XPG && 1 < argc && (strcmp(argv[1], "-n") == 0))); - - _Bool do_v9 = DEFAULT_ECHO_TO_XPG; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - if (allow_options && argc == 2) { - if ((strcmp(argv[1], "--help") == 0)) - usage(0); - - if ((strcmp(argv[1], "--version") == 0)) { - version_etc(stdout, "echo", "GNU coreutils", Version, ("Brian Fox"), - ("Chet Ramey"), (char *)((void *)0)); - return 0; - } - } - - --argc; - ++argv; - - if (allow_options) - while (argc > 0 && *argv[0] == '-') { - char const *temp = argv[0] + 1; - size_t i; - - for (i = 0; temp[i]; i++) - switch (temp[i]) { - case 'e': - case 'E': - case 'n': - break; - default: - goto just_echo; - } - - if (i == 0) - goto just_echo; - - while (*temp) - switch (*temp++) { - case 'e': - do_v9 = 1; - break; - - case 'E': - do_v9 = 0; - break; - - case 'n': - display_return = 0; - break; - } - - argc--; - argv++; - } - -just_echo: - - if (do_v9 || posixly_correct) { - while (argc > 0) { - char const *s = argv[0]; - unsigned char c; - - while ((c = *s++)) { - if (c == '\\' && *s) { - switch (c = *s++) { - case 'a': - c = '\a'; - break; - case 'b': - c = '\b'; - break; - case 'c': - return 0; - case 'e': - c = '\x1B'; - break; - case 'f': - c = '\f'; - break; - case 'n': - c = '\n'; - break; - case 'r': - c = '\r'; - break; - case 't': - c = '\t'; - break; - case 'v': - c = '\v'; - break; - case 'x': { - unsigned char ch = *s; - if (!((*__ctype_b_loc())[(int)((ch))] & - (unsigned short int)_ISxdigit)) - goto not_an_escape; - s++; - c = hextobin(ch); - ch = *s; - if (((*__ctype_b_loc())[(int)((ch))] & - (unsigned short int)_ISxdigit)) { - s++; - c = c * 16 + hextobin(ch); - } - } break; - case '0': - c = 0; - if (!('0' <= *s && *s <= '7')) - break; - c = *s++; - ; - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - c -= '0'; - if ('0' <= *s && *s <= '7') - c = c * 8 + (*s++ - '0'); - if ('0' <= *s && *s <= '7') - c = c * 8 + (*s++ - '0'); - break; - case '\\': - break; - - not_an_escape: - default: - putchar_unlocked('\\'); - break; - } - } - putchar_unlocked(c); - } - argc--; - argv++; - if (argc > 0) - putchar_unlocked(' '); - } - } else { - while (argc > 0) { - fputs_unlocked(argv[0], stdout); - argc--; - argv++; - if (argc > 0) - putchar_unlocked(' '); - } - } - - if (display_return) - putchar_unlocked('\n'); - return 0; -} diff --git a/tests/source/coreutils/env.c b/tests/source/coreutils/env.c deleted file mode 100644 index efd4260..0000000 --- a/tests/source/coreutils/env.c +++ /dev/null @@ -1,8454 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -inline _Bool - -c_isalnum(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isalpha(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isascii(int c) { - switch (c) { - case ' ': - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_isblank(int c) { - return c == ' ' || c == '\t'; -} - -inline _Bool - -c_iscntrl(int c) { - switch (c) { - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isgraph(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_islower(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isprint(int c) { - switch (c) { - case ' ': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_ispunct(int c) { - switch (c) { - case '!': - case '"': - case ' return 1; default: - return 0; - } -} - -inline _Bool - -c_isspace(int c) { - switch (c) { - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isupper(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isxdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline int c_tolower(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return c - 'A' + 'a'; - default: - return c; - } -} - -inline int c_toupper(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return c - 'a' + 'A'; - default: - return c; - } -} - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern int operand2sig(char const *operand, char *signame) - __attribute__((__nonnull__)); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -int sig2str(int, char *); -int str2sig(char const *, int *); -static char const **usvars; -static size_t usvars_alloc; -static idx_t usvars_used; - -static _Bool dev_debug; - -static char *varname; -static idx_t vnlen; - -enum SIGNAL_MODE { - UNCHANGED = 0, - DEFAULT, - DEFAULT_NOERR, - IGNORE, - IGNORE_NOERR -}; -static enum SIGNAL_MODE *signals; - -static sigset_t block_signals; - -static sigset_t unblock_signals; - -static _Bool sig_mask_changed; - -static _Bool report_signal_handling; - -static char const shortopts[] = "+C:iS:u:v0" - " \t\n\v\f\r"; - -enum { - DEFAULT_SIGNAL_OPTION = 0x7f + 1, - IGNORE_SIGNAL_OPTION, - BLOCK_SIGNAL_OPTION, - LIST_SIGNAL_HANDLING_OPTION, -}; - -static struct option const longopts[] = { - {"ignore-environment", 0, ((void *)0), 'i'}, - {"null", 0, ((void *)0), '0'}, - {"unset", 1, ((void *)0), 'u'}, - {"chdir", 1, ((void *)0), 'C'}, - {"default-signal", 2, ((void *)0), DEFAULT_SIGNAL_OPTION}, - {"ignore-signal", 2, ((void *)0), IGNORE_SIGNAL_OPTION}, - {"block-signal", 2, ((void *)0), BLOCK_SIGNAL_OPTION}, - {"list-signal-handling", 0, ((void *)0), LIST_SIGNAL_HANDLING_OPTION}, - {"debug", 0, ((void *)0), 'v'}, - {"split-string", 1, ((void *)0), 'S'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext( - ((void *)0), - "Usage: %s [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]\n", - 5) - - , - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Set each NAME to VALUE in the environment and run COMMAND.\n", 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " -i, --ignore-environment start with an empty environment\n " - "-0, --null end each output line with NUL, not newline\n " - " -u, --unset=NAME remove variable from the environment\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -C, --chdir=DIR change working directory to DIR\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -S, --split-string=S process and split S into separate " - "arguments;\n used to pass multiple " - "arguments on shebang lines\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --block-signal[=SIG] block delivery of " - "SIG signal(s) to COMMAND\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --default-signal[=SIG] reset handling of " - "SIG signal(s) to the default\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --ignore-signal[=SIG] set handling of " - "SIG signal(s) to do nothing\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --list-signal-handling list non default " - "signal handling to stderr\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -v, --debug print verbose information " - "for each processing step\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - "\nA mere - implies -i. If no COMMAND, print the " - "resulting environment.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nSIG may be a signal name like 'PIPE', or a signal number " - "like '13'.\nWithout SIG, all known signals are included. " - "Multiple signals can be\ncomma-separated.\n", - 5), - stdout) - - ; - emit_ancillary_info("env"); - } - exit(status); -} - -static void append_unset_var(char const *var) { - if (usvars_used == usvars_alloc) - usvars = x2nrealloc(usvars, &usvars_alloc, sizeof *usvars); - usvars[usvars_used++] = var; -} - -static void unset_envvars(void) { - for (idx_t i = 0; i < usvars_used; ++i) { - do { - if (dev_debug) - fprintf(stderr, "unset: %s\n", usvars[i]); - } while (0); - - if (unsetenv(usvars[i])) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot unset %s\", 5), quote (usvars[i])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot unset %s", 5), - quote(usvars[i])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot unset %s", 5), - quote(usvars[i])), - ((0) ? (void)0 : __builtin_unreachable())))); - } -} - -__attribute__((__pure__)) static char const *scan_varname(char const *str) { - if (str[1] == '{' && (c_isalpha(str[2]) || str[2] == '_')) { - char const *end = str + 3; - while (c_isalnum(*end) || *end == '_') - ++end; - if (*end == '}') - return end; - } - - return ((void *)0); -} - -static char *extract_varname(char const *str) { - idx_t i; - char const *p; - - p = scan_varname(str); - if (!p) - return ((void *)0); - - i = p - str - 2; - - if (i >= vnlen) { - vnlen = i + 1; - varname = xrealloc(varname, vnlen); - } - - memcpy(varname, str + 2, i); - varname[i] = 0; - - return varname; -} - -struct splitbuf { - char **argv; - int argc; - idx_t half_alloc; - - int extra_argc; - - _Bool sep; -}; - -static void splitbuf_grow(struct splitbuf *ss) { - idx_t old_half_alloc = ss->half_alloc; - idx_t string_bytes = (intptr_t)ss->argv[ss->argc]; - ss->argv = xpalloc(ss->argv, &ss->half_alloc, 1, - - (((0x7fffffff) < ((9223372036854775807L))) - ? (0x7fffffff) - : ((9223372036854775807L))), - 2 * sizeof *ss->argv); - memmove(ss->argv + ss->half_alloc, ss->argv + old_half_alloc, string_bytes); -} - -static void splitbuf_append_byte(struct splitbuf *ss, char c) { - idx_t string_bytes = (intptr_t)ss->argv[ss->argc]; - if (ss->half_alloc * sizeof *ss->argv <= string_bytes) - splitbuf_grow(ss); - ((char *)(ss->argv + ss->half_alloc))[string_bytes] = c; - ss->argv[ss->argc] = (char *)(intptr_t)(string_bytes + 1); -} - -static void check_start_new_arg(struct splitbuf *ss) { - if (ss->sep) { - splitbuf_append_byte(ss, '\0'); - int argc = ss->argc; - if (ss->half_alloc <= argc + ss->extra_argc + 1) - splitbuf_grow(ss); - ss->argv[argc + 1] = ss->argv[argc]; - ss->argc = argc + 1; - ss->sep = 0; - } -} - -static char **splitbuf_finishup(struct splitbuf *ss) { - int argc = ss->argc; - char **argv = ss->argv; - char *stringbase = (char *)(ss->argv + ss->half_alloc); - for (int i = 1; i < argc; i++) - argv[i] = stringbase + (intptr_t)argv[i]; - return argv; -} -static char **build_argv(char const *str, int extra_argc, int *argc) { - - _Bool dq = 0, sq = 0; - struct splitbuf ss; - ss.argv = xnmalloc(extra_argc + 2, 2 * sizeof *ss.argv); - ss.argc = 1; - ss.half_alloc = extra_argc + 2; - ss.extra_argc = extra_argc; - ss.sep = 1; - ss.argv[ss.argc] = 0; - - while (*str) { - char newc = *str; - - switch (*str) { - case '\'': - if (dq) - break; - sq = !sq; - check_start_new_arg(&ss); - ++str; - continue; - - case '"': - if (sq) - break; - dq = !dq; - check_start_new_arg(&ss); - ++str; - continue; - - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - - if (sq || dq) - break; - ss.sep = 1; - str += strspn(str, " \t\n\v\f\r"); - continue; - - case ' if (!ss.sep) break; goto eos; - - case '\\': - - if (sq && str[1] != '\\' && str[1] != '\'') - break; - - newc = *++str; - switch (newc) { - case '"': - case ' break; - - case '_': - if (!dq) { - ++str; - ss.sep = 1; - continue; - } - newc = ' '; - break; - - case 'c': - if (dq) - ((!!sizeof(struct { - _Static_assert(EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, 0, dcgettext (((void *)0), " - "\"'\\\\c' must not appear in double-quoted -S " - "string\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, 0, - dcgettext( - ((void *)0), - "'\\c' must not appear in double-quoted -S string", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, 0, - dcgettext( - ((void *)0), - "'\\c' must not appear in double-quoted -S string", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - goto eos; - - case 'f': - newc = '\f'; - break; - case 'n': - newc = '\n'; - break; - case 'r': - newc = '\r'; - break; - case 't': - newc = '\t'; - break; - case 'v': - newc = '\v'; - break; - - case '\0': - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, 0, dcgettext (((void *)0), \"invalid " - "backslash at end of string in -S\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, 0, - dcgettext(((void *)0), - "invalid backslash at end of string in -S", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, 0, - dcgettext(((void *)0), - "invalid backslash at end of string in -S", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - default: - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, 0, dcgettext (((void *)0), \"invalid " - "sequence '\\\\%c' in -S\", 5), newc), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - EXIT_CANCELED, 0, - dcgettext(((void *)0), "invalid sequence '\\%c' in -S", 5), - newc), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - EXIT_CANCELED, 0, - dcgettext(((void *)0), "invalid sequence '\\%c' in -S", 5), - newc), - ((0) ? (void)0 : __builtin_unreachable())))); - } - break; - - case '$': - - if (sq) - break; - - { - char *n = extract_varname(str); - if (!n) - ((!!sizeof(struct { - _Static_assert(EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, 0, dcgettext (((void *)0), " - "\"only ${VARNAME} expansion is supported, error " - "at: %s\", 5), str), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, 0, - dcgettext(((void *)0), - "only ${VARNAME} expansion is supported, " - "error at: %s", - 5), - str), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, 0, - dcgettext(((void *)0), - "only ${VARNAME} expansion is supported, " - "error at: %s", - 5), - str), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - - char *v = getenv(n); - if (v) { - check_start_new_arg(&ss); - do { - if (dev_debug) - fprintf(stderr, "expanding ${%s} into %s\n", n, quote(v)); - } while (0); - for (; *v; v++) - splitbuf_append_byte(&ss, *v); - } else - do { - if (dev_debug) - fprintf(stderr, "replacing ${%s} with null string\n", n); - } while (0); - - str = strchr(str, '}') + 1; - continue; - } - } - - check_start_new_arg(&ss); - splitbuf_append_byte(&ss, newc); - ++str; - } - - if (dq || sq) - ((!!sizeof(struct { - _Static_assert(EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, 0, dcgettext (((void *)0), \"no " - "terminating quote in -S string\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, 0, - dcgettext(((void *)0), "no terminating quote in -S string", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, 0, - dcgettext(((void *)0), "no terminating quote in -S string", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - -eos: - splitbuf_append_byte(&ss, '\0'); - *argc = ss.argc; - return splitbuf_finishup(&ss); -} -static void parse_split_string(char const *str, int *orig_optind, - int *orig_argc, char ***orig_argv) { - int extra_argc = *orig_argc - *orig_optind, newargc; - char **newargv = build_argv(str, extra_argc, &newargc); - - *newargv = (*orig_argv)[0]; - - if (dev_debug && 1 < newargc) { - do { - if (dev_debug) - fprintf(stderr, "split -S: %s\n", quote(str)); - } while (0); - do { - if (dev_debug) - fprintf(stderr, " into: %s\n", quote(newargv[1])); - } while (0); - for (int i = 2; i < newargc; i++) - do { - if (dev_debug) - fprintf(stderr, " & %s\n", quote(newargv[i])); - } while (0); - } - - memcpy(newargv + newargc, *orig_argv + *orig_optind, - (extra_argc + 1) * sizeof *newargv); - - *orig_argc = newargc + extra_argc; - *orig_argv = newargv; - *orig_optind = 0; -} - -static void parse_signal_action_params(char const *optarg, _Bool set_default) { - char signame[( - sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)]; - char *opt_sig; - char *optarg_writable; - - if (!optarg) { - - for (int i = 1; i <= ((64 + 1) - 1); i++) - if (sig2str(i, signame) == 0) - signals[i] = set_default ? DEFAULT_NOERR : IGNORE_NOERR; - return; - } - - optarg_writable = xstrdup(optarg); - - opt_sig = strtok(optarg_writable, ","); - while (opt_sig) { - int signum = operand2sig(opt_sig, signame); - - if (signum == 0) - error(0, 0, dcgettext(((void *)0), "%s: invalid signal", 5), - quote(opt_sig)); - if (signum <= 0) - usage(exit_failure); - - signals[signum] = set_default ? DEFAULT : IGNORE; - - opt_sig = strtok(((void *)0), ","); - } - - free(optarg_writable); -} - -static void reset_signal_handlers(void) { - for (int i = 1; i <= ((64 + 1) - 1); i++) { - struct sigaction act; - - if (signals[i] == UNCHANGED) - continue; - - _Bool ignore_errors = - (signals[i] == DEFAULT_NOERR || signals[i] == IGNORE_NOERR); - - _Bool set_to_default = - (signals[i] == DEFAULT || signals[i] == DEFAULT_NOERR); - - int sig_err = sigaction(i, ((void *)0), &act); - - if (sig_err && !ignore_errors) - ((!!sizeof(struct { - _Static_assert(EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), " - "dcgettext (((void *)0), \"failed to get signal action " - "for signal %d\", 5), i), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "failed to get signal action for signal %d", 5), - i), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "failed to get signal action for signal %d", 5), - i), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (!sig_err) { - act.__sigaction_handler.sa_handler = - set_to_default ? ((__sighandler_t)0) : ((__sighandler_t)1); - sig_err = sigaction(i, &act, ((void *)0)); - if (sig_err && !ignore_errors) - ((!!sizeof(struct { - _Static_assert(EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), " - "dcgettext (((void *)0), \"failed to set signal " - "action for signal %d\", 5), i), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "failed to set signal action for signal %d", - 5), - i), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "failed to set signal action for signal %d", - 5), - i), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (dev_debug) { - char signame[(sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)]; - sig2str(i, signame); - do { - if (dev_debug) - fprintf(stderr, "Reset signal %s (%d) to %s%s\n", signame, i, - set_to_default ? "DEFAULT" : "IGNORE", - sig_err ? " (failure ignored)" : ""); - } while (0) - - ; - } - } -} - -static void parse_block_signal_params(char const *optarg, _Bool block) { - char signame[( - sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)]; - char *opt_sig; - char *optarg_writable; - - if (!optarg) { - - sigfillset(block ? &block_signals : &unblock_signals); - sigemptyset(block ? &unblock_signals : &block_signals); - } else if (!sig_mask_changed) { - - sigemptyset(&block_signals); - sigemptyset(&unblock_signals); - } - - sig_mask_changed = 1; - - if (!optarg) - return; - - optarg_writable = xstrdup(optarg); - - opt_sig = strtok(optarg_writable, ","); - while (opt_sig) { - int signum = operand2sig(opt_sig, signame); - - if (signum == 0) - error(0, 0, dcgettext(((void *)0), "%s: invalid signal", 5), - quote(opt_sig)); - if (signum <= 0) - usage(exit_failure); - - sigaddset(block ? &block_signals : &unblock_signals, signum); - sigdelset(block ? &unblock_signals : &block_signals, signum); - - opt_sig = strtok(((void *)0), ","); - } - - free(optarg_writable); -} - -static void set_signal_proc_mask(void) { - - sigset_t set; - char const *debug_act; - - sigemptyset(&set); - - if (sigprocmask(0, ((void *)0), &set)) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to get signal process mask\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to get signal process mask", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to get signal process mask", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - for (int i = 1; i <= ((64 + 1) - 1); i++) { - if (sigismember(&block_signals, i)) { - sigaddset(&set, i); - debug_act = "BLOCK"; - } else if (sigismember(&unblock_signals, i)) { - sigdelset(&set, i); - debug_act = "UNBLOCK"; - } else { - debug_act = ((void *)0); - } - - if (dev_debug && debug_act) { - char signame[(sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)]; - sig2str(i, signame); - do { - if (dev_debug) - fprintf(stderr, "signal %s (%d) mask set to %s\n", signame, i, - debug_act); - } while (0); - } - } - - if (sigprocmask(2, &set, ((void *)0))) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to set signal process mask\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to set signal process mask", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to set signal process mask", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static void list_signal_handling(void) { - sigset_t set; - char signame[( - sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)]; - - sigemptyset(&set); - if (sigprocmask(0, ((void *)0), &set)) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to get signal process mask\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to get signal process mask", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "failed to get signal process mask", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - for (int i = 1; i <= ((64 + 1) - 1); i++) { - struct sigaction act; - if (sigaction(i, ((void *)0), &act)) - continue; - - char const *ignored = - act.__sigaction_handler.sa_handler == ((__sighandler_t)1) ? "IGNORE" - : ""; - char const *blocked = sigismember(&set, i) ? "BLOCK" : ""; - char const *connect = *ignored && *blocked ? "," : ""; - - if (!*ignored && !*blocked) - continue; - - sig2str(i, signame); - fprintf(stderr, "%-10s (%2d): %s%s%s\n", signame, i, blocked, connect, - ignored); - } -} - -static void initialize_signals(void) { - signals = xmalloc((sizeof *signals) * (((64 + 1) - 1) + 1)); - - for (int i = 0; i <= ((64 + 1) - 1); i++) - signals[i] = UNCHANGED; - - return; -} - -int main(int argc, char **argv) { - int optc; - - _Bool ignore_environment = 0; - - _Bool opt_nul_terminate_output = 0; - char const *newdir = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(EXIT_CANCELED); - atexit(close_stdout); - - initialize_signals(); - - while ((optc = getopt_long(argc, argv, shortopts, longopts, ((void *)0))) != - -1) { - switch (optc) { - case 'i': - ignore_environment = 1; - break; - case 'u': - append_unset_var(optarg); - break; - case 'v': - dev_debug = 1; - break; - case '0': - opt_nul_terminate_output = 1; - break; - case DEFAULT_SIGNAL_OPTION: - parse_signal_action_params(optarg, 1); - parse_block_signal_params(optarg, 0); - break; - case IGNORE_SIGNAL_OPTION: - parse_signal_action_params(optarg, 0); - break; - case BLOCK_SIGNAL_OPTION: - parse_block_signal_params(optarg, 1); - break; - case LIST_SIGNAL_HANDLING_OPTION: - report_signal_handling = 1; - break; - case 'C': - newdir = optarg; - break; - case 'S': - parse_split_string(optarg, &optind, &argc, &argv); - break; - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - - error(0, 0, dcgettext(((void *)0), "invalid option -- '%c'", 5), optc); - error(0, 0, - dcgettext(((void *)0), "use -[v]S to pass options in shebang lines", - 5)); - usage(EXIT_CANCELED); - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "env", "GNU coreutils", Version, ("Richard Mlynarik"), - ("David MacKenzie"), ("Assaf Gordon"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(EXIT_CANCELED); - } - } - - if (optind < argc && (strcmp(argv[optind], "-") == 0)) { - ignore_environment = 1; - ++optind; - } - - if (ignore_environment) { - do { - if (dev_debug) - fprintf(stderr, "cleaning environ\n"); - } while (0); - static char *dummy_environ[] = {((void *)0)}; - environ = dummy_environ; - } else - unset_envvars(); - - char *eq; - while (optind < argc && (eq = strchr(argv[optind], '='))) { - do { - if (dev_debug) - fprintf(stderr, "setenv: %s\n", argv[optind]); - } while (0); - - if (putenv(argv[optind])) { - *eq = '\0'; - ((!!sizeof(struct { - _Static_assert(EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), " - "dcgettext (((void *)0), \"cannot set %s\", 5), quote " - "(argv[optind])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot set %s", 5), - quote(argv[optind])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot set %s", 5), - quote(argv[optind])), - ((0) ? (void)0 : __builtin_unreachable())))); - } - optind++; - } - - _Bool program_specified = optind < argc; - - if (opt_nul_terminate_output && program_specified) { - error(0, 0, - dcgettext(((void *)0), "cannot specify --null (-0) with command", 5)); - usage(EXIT_CANCELED); - } - - if (newdir && !program_specified) { - error(0, 0, - dcgettext(((void *)0), "must specify command with --chdir (-C)", 5)); - usage(EXIT_CANCELED); - } - - if (!program_specified) { - - char *const *e = environ; - while (*e) - printf("%s%c", *e++, opt_nul_terminate_output ? '\0' : '\n'); - return 0; - } - - reset_signal_handlers(); - if (sig_mask_changed) - set_signal_proc_mask(); - - if (report_signal_handling) - list_signal_handling(); - - if (newdir) { - do { - if (dev_debug) - fprintf(stderr, "chdir: %s\n", - quotearg_style(shell_escape_always_quoting_style, newdir)); - } while (0); - - if (chdir(newdir) != 0) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot change directory to %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, newdir)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot change directory to %s", 5), - quotearg_style(shell_escape_always_quoting_style, newdir)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot change directory to %s", 5), - quotearg_style(shell_escape_always_quoting_style, newdir)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (dev_debug) { - do { - if (dev_debug) - fprintf(stderr, "executing: %s\n", argv[optind]); - } while (0); - for (int i = optind; i < argc; ++i) - do { - if (dev_debug) - fprintf(stderr, " arg[%d]= %s\n", i - optind, quote(argv[i])); - } while (0); - } - - execvp(argv[optind], &argv[optind]); - - int exit_status = - (*__errno_location()) == 2 ? EXIT_ENOENT : EXIT_CANNOT_INVOKE; - error(0, (*__errno_location()), "%s", quote(argv[optind])); - - if (exit_status == EXIT_ENOENT && strpbrk(argv[optind], " \t\n\v\f\r")) - error(0, 0, - dcgettext(((void *)0), "use -[v]S to pass options in shebang lines", - 5)); - - exit(exit_status); -} diff --git a/tests/source/coreutils/expand-common.c b/tests/source/coreutils/expand-common.c deleted file mode 100644 index ececdd1..0000000 --- a/tests/source/coreutils/expand-common.c +++ /dev/null @@ -1,7218 +0,0 @@ - - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -extern _Bool convert_entire_line; - -extern size_t max_column_width; - -extern int exit_status; - -extern void add_tab_stop(uintmax_t tabval); - -extern void parse_tab_stops(char const *stops) __attribute__((__nonnull__)); - -extern uintmax_t get_next_tab_column(const uintmax_t column, size_t *tab_index, - - _Bool *last_tab) - __attribute__((__nonnull__(3))); - -extern void finalize_tab_stops(void); - -extern void set_file_list(char **file_list); - -extern FILE *next_file(FILE *fp); - -extern void cleanup_file_list_stdin(void); - -extern void emit_tab_list_info(void); - -_Bool convert_entire_line = 0; - -static uintmax_t tab_size = 0; - -static uintmax_t extend_size = 0; - -static uintmax_t increment_size = 0; - -size_t max_column_width; - -static uintmax_t *tab_list = ((void *)0); - -static size_t n_tabs_allocated = 0; - -static size_t first_free_tab = 0; - -static char **file_list = ((void *)0); - -static char *stdin_argv[] = {(char *)"-", ((void *)0) - -}; - -static _Bool have_read_stdin = 0; - -int exit_status = 0; - -extern void add_tab_stop(uintmax_t tabval) { - uintmax_t prev_column = first_free_tab ? tab_list[first_free_tab - 1] : 0; - uintmax_t column_width = prev_column <= tabval ? tabval - prev_column : 0; - - if (first_free_tab == n_tabs_allocated) - tab_list = - ((!!sizeof(struct { - _Static_assert( - sizeof *(tab_list) != 1, - "verify_expr (" - "sizeof *(tab_list) != 1" - ", " - "x2nrealloc (tab_list, &n_tabs_allocated, sizeof *(tab_list))" - ")"); - int _gl_dummy; - })) - ? (x2nrealloc(tab_list, &n_tabs_allocated, sizeof *(tab_list))) - : (x2nrealloc(tab_list, &n_tabs_allocated, sizeof *(tab_list)))); - tab_list[first_free_tab++] = tabval; - - if (max_column_width < column_width) { - if ((18446744073709551615UL) < column_width) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"tabs are " - "too far apart\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "tabs are too far apart", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "tabs are too far apart", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - max_column_width = column_width; - } -} - -static _Bool - -set_extend_size(uintmax_t tabval) { - - _Bool ok = 1; - - if (extend_size) { - error(0, 0, - - dcgettext(((void *)0), - "'/' specifier only allowed" - " with the last value", - 5) - - ); - ok = 0; - } - extend_size = tabval; - - return ok; -} - -static _Bool - -set_increment_size(uintmax_t tabval) { - - _Bool ok = 1; - - if (increment_size) { - error(0, 0, - - dcgettext(((void *)0), - "'+' specifier only allowed" - " with the last value", - 5) - - ); - ok = 0; - } - increment_size = tabval; - - return ok; -} - -extern void parse_tab_stops(char const *stops) { - - _Bool have_tabval = 0; - uintmax_t tabval = 0; - - _Bool extend_tabval = 0; - - _Bool increment_tabval = 0; - char const *num_start = ((void *)0); - - _Bool ok = 1; - - for (; *stops; stops++) { - if (*stops == ',' || ((*__ctype_b_loc())[(int)((to_uchar(*stops)))] & - (unsigned short int)_ISblank)) { - if (have_tabval) { - if (extend_tabval) { - if (!set_extend_size(tabval)) { - ok = 0; - break; - } - } else if (increment_tabval) { - if (!set_increment_size(tabval)) { - ok = 0; - break; - } - } else - add_tab_stop(tabval); - } - have_tabval = 0; - } else if (*stops == '/') { - if (have_tabval) { - error(0, 0, - dcgettext(((void *)0), "'/' specifier not at start of number: %s", - 5), - quote(stops)); - ok = 0; - } - extend_tabval = 1; - increment_tabval = 0; - } else if (*stops == '+') { - if (have_tabval) { - error(0, 0, - dcgettext(((void *)0), "'+' specifier not at start of number: %s", - 5), - quote(stops)); - ok = 0; - } - increment_tabval = 1; - extend_tabval = 0; - } else if (((unsigned int)(*stops) - '0' <= 9)) { - if (!have_tabval) { - tabval = 0; - have_tabval = 1; - num_start = stops; - } - - if (!((void)(&(tabval) == (uintmax_t *)((void *)0)), - ((!!sizeof(struct { - _Static_assert( - !(!((uintmax_t)0 < (uintmax_t)-1)), - "verify_expr (" - "! TYPE_SIGNED (uintmax_t)" - ", " - "(((uintmax_t) -1 / 10 < (tabval) || (uintmax_t) ((tabval) * " - "10 + (*stops - '0')) < (tabval)) ? false : (((tabval) = " - "(tabval) * 10 + (*stops - '0')), true))" - ")"); - int _gl_dummy; - })) - ? ((((uintmax_t)-1 / 10 < (tabval) || - (uintmax_t)((tabval)*10 + (*stops - '0')) < (tabval)) - ? 0 - : (((tabval) = (tabval)*10 + (*stops - '0')), 1))) - : ((((uintmax_t)-1 / 10 < (tabval) || - (uintmax_t)((tabval)*10 + (*stops - '0')) < (tabval)) - ? 0 - : (((tabval) = (tabval)*10 + (*stops - '0')), 1)))))) { - size_t len = strspn(num_start, "0123456789"); - char *bad_num = ximemdup0(num_start, len); - error(0, 0, dcgettext(((void *)0), "tab stop is too large %s", 5), - quote(bad_num)); - free(bad_num); - ok = 0; - stops = num_start + len - 1; - } - } else { - error(0, 0, - dcgettext(((void *)0), "tab size contains invalid character(s): %s", - 5), - quote(stops)); - ok = 0; - break; - } - } - - if (ok && have_tabval) { - if (extend_tabval) - ok &= set_extend_size(tabval); - else if (increment_tabval) - ok &= set_increment_size(tabval); - else - add_tab_stop(tabval); - } - - if (!ok) - exit(1); -} - -static void validate_tab_stops(uintmax_t const *tabs, size_t entries) { - uintmax_t prev_tab = 0; - - for (size_t i = 0; i < entries; i++) { - if (tabs[i] == 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"tab size " - "cannot be 0\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "tab size cannot be 0", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "tab size cannot be 0", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (tabs[i] <= prev_tab) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"tab sizes " - "must be ascending\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "tab sizes must be ascending", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "tab sizes must be ascending", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - prev_tab = tabs[i]; - } - - if (increment_size && extend_size) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"'/' specifier " - "is mutually exclusive with '+'\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "'/' specifier is mutually exclusive with '+'", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "'/' specifier is mutually exclusive with '+'", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); -} -extern void finalize_tab_stops(void) { - validate_tab_stops(tab_list, first_free_tab); - - if (first_free_tab == 0) - tab_size = max_column_width = extend_size ? extend_size - : increment_size ? increment_size - : 8; - else if (first_free_tab == 1 && !extend_size && !increment_size) - tab_size = tab_list[0]; - else - tab_size = 0; -} - -extern uintmax_t get_next_tab_column(const uintmax_t column, size_t *tab_index, - - _Bool *last_tab) { - *last_tab = 0; - - if (tab_size) - return column + (tab_size - column % tab_size); - - for (; *tab_index < first_free_tab; (*tab_index)++) { - uintmax_t tab = tab_list[*tab_index]; - if (column < tab) - return tab; - } - - if (extend_size) - return column + (extend_size - column % extend_size); - - if (increment_size) { - uintmax_t end_tab = tab_list[first_free_tab - 1]; - - return column + (increment_size - ((column - end_tab) % increment_size)); - } - - *last_tab = 1; - return 0; -} - -extern void set_file_list(char **list) { - have_read_stdin = 0; - - if (!list) - file_list = stdin_argv; - else - file_list = list; -} - -extern FILE *next_file(FILE *fp) { - static char *prev_file; - char *file; - - if (fp) { - - ((void)sizeof((prev_file) ? 1 : 0), __extension__({ - if (prev_file) - ; - else - __assert_fail("prev_file", "src/expand-common.c", 340, - __extension__ __PRETTY_FUNCTION__); - })); - int err = (*__errno_location()); - if (!ferror_unlocked(fp)) - err = 0; - if ((strcmp(prev_file, "-") == 0)) - clearerr_unlocked(fp); - else if (rpl_fclose(fp) != 0) - err = (*__errno_location()); - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, prev_file)); - exit_status = 1; - } - } - - while ((file = *file_list++) != ((void *)0)) { - if ((strcmp(file, "-") == 0)) { - have_read_stdin = 1; - fp = stdin; - } else - fp = fopen(file, "r"); - if (fp) { - prev_file = file; - fadvise(fp, FADVISE_SEQUENTIAL); - return fp; - } - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - exit_status = 1; - } - return ((void *)0); -} - -extern void cleanup_file_list_stdin(void) { - if (have_read_stdin && rpl_fclose(stdin) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"-\"), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -extern void emit_tab_list_info(void) { - - fputs_unlocked( - dcgettext( - ((void *)0), - " -t, --tabs=LIST use comma separated list of tab positions.\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " The last specified position can be prefixed " - "with '/'\n to specify a tab size to use after " - "the last\n explicitly specified tab stop. Also " - "a prefix of '+'\n can be used to align " - "remaining tab stops relative to\n the last " - "specified tab stop instead of the first column\n", - 5), - stdout) - - ; -} diff --git a/tests/source/coreutils/expand.c b/tests/source/coreutils/expand.c deleted file mode 100644 index 839d3d5..0000000 --- a/tests/source/coreutils/expand.c +++ /dev/null @@ -1,7040 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern _Bool convert_entire_line; - -extern size_t max_column_width; - -extern int exit_status; - -extern void add_tab_stop(uintmax_t tabval); - -extern void parse_tab_stops(char const *stops) __attribute__((__nonnull__)); - -extern uintmax_t get_next_tab_column(const uintmax_t column, size_t *tab_index, - - _Bool *last_tab) - __attribute__((__nonnull__(3))); - -extern void finalize_tab_stops(void); - -extern void set_file_list(char **file_list); - -extern FILE *next_file(FILE *fp); - -extern void cleanup_file_list_stdin(void); - -extern void emit_tab_list_info(void); - -static char const shortopts[] = "it:0::1::2::3::4::5::6::7::8::9::"; - -static struct option const longopts[] = { - {"tabs", 1, ((void *)0), 't'}, - {"initial", 0, ((void *)0), 'i'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - fputs_unlocked(dcgettext(((void *)0), - "Convert tabs in each FILE to spaces, writing to " - "standard output.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -i, --initial do not convert tabs after non blanks\n " - "-t, --tabs=N have tabs N characters apart, not 8\n", - 5), - stdout) - - ; - emit_tab_list_info(); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("expand"); - } - exit(status); -} - -static void expand(void) { - - FILE *fp = next_file(((void *)0)); - - if (!fp) - return; - - while (1) { - - int c; - - _Bool convert = 1; - - uintmax_t column = 0; - - size_t tab_index = 0; - - do { - while ((c = getc_unlocked(fp)) < 0 && (fp = next_file(fp))) - continue; - - if (convert) { - if (c == '\t') { - - uintmax_t next_tab_column; - - _Bool last_tab; - - next_tab_column = get_next_tab_column(column, &tab_index, &last_tab); - - if (last_tab) - next_tab_column = column + 1; - - if (next_tab_column < column) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"input " - "line is too long\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "input line is too long", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "input line is too long", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - while (++column < next_tab_column) - if (putchar_unlocked(' ') < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - c = ' '; - } else if (c == '\b') { - - column -= !!column; - tab_index -= !!tab_index; - } else { - column++; - if (!column) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"input " - "line is too long\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "input line is too long", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "input line is too long", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - convert &= convert_entire_line || !!((*__ctype_b_loc())[(int)((c))] & - (unsigned short int)_ISblank); - } - - if (c < 0) - return; - - if (putchar_unlocked(c) < 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } while (c != '\n'); - } -} - -int main(int argc, char **argv) { - int c; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - convert_entire_line = 1; - - while ((c = getopt_long(argc, argv, shortopts, longopts, ((void *)0))) != - -1) { - switch (c) { - case 'i': - convert_entire_line = 0; - break; - - case 't': - parse_tab_stops(optarg); - break; - - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (optarg) - parse_tab_stops(optarg - 1); - else { - char tab_stop[2]; - tab_stop[0] = c; - tab_stop[1] = '\0'; - parse_tab_stops(tab_stop); - } - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "expand", "GNU coreutils", Version, - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - finalize_tab_stops(); - - set_file_list((optind < argc) ? &argv[optind] : ((void *)0)); - - expand(); - - cleanup_file_list_stdin(); - - return exit_status; -} diff --git a/tests/source/coreutils/expr.c b/tests/source/coreutils/expr.c deleted file mode 100644 index 6d5728e..0000000 --- a/tests/source/coreutils/expr.c +++ /dev/null @@ -1,10765 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -typedef unsigned long int mp_limb_t; -typedef long int mp_limb_signed_t; - -typedef unsigned long int mp_bitcnt_t; - -typedef struct { - int _mp_alloc; - - int _mp_size; - - mp_limb_t *_mp_d; -} __mpz_struct; - -typedef __mpz_struct MP_INT; -typedef __mpz_struct mpz_t[1]; - -typedef mp_limb_t *mp_ptr; -typedef const mp_limb_t *mp_srcptr; - -typedef long int mp_size_t; -typedef long int mp_exp_t; - -typedef struct { - __mpz_struct _mp_num; - __mpz_struct _mp_den; -} __mpq_struct; - -typedef __mpq_struct MP_RAT; -typedef __mpq_struct mpq_t[1]; - -typedef struct { - int _mp_prec; - - int _mp_size; - - mp_exp_t _mp_exp; - mp_limb_t *_mp_d; -} __mpf_struct; - -typedef __mpf_struct mpf_t[1]; - -typedef enum { - GMP_RAND_ALG_DEFAULT = 0, - GMP_RAND_ALG_LC = GMP_RAND_ALG_DEFAULT -} gmp_randalg_t; - -typedef struct { - mpz_t _mp_seed; - gmp_randalg_t _mp_alg; - union { - void *_mp_lc; - } _mp_algdata; -} __gmp_randstate_struct; -typedef __gmp_randstate_struct gmp_randstate_t[1]; - -typedef const __mpz_struct *mpz_srcptr; -typedef __mpz_struct *mpz_ptr; -typedef const __mpf_struct *mpf_srcptr; -typedef __mpf_struct *mpf_ptr; -typedef const __mpq_struct *mpq_srcptr; -typedef __mpq_struct *mpq_ptr; -void __gmp_set_memory_functions(void *(*)(size_t), - void *(*)(void *, size_t, size_t), - void (*)(void *, size_t)); - -void __gmp_get_memory_functions(void *(**)(size_t), - void *(**)(void *, size_t, size_t), - void (**)(void *, size_t)); - -extern const int __gmp_bits_per_limb; - -extern int __gmp_errno; - -extern const char *const __gmp_version; - -void __gmp_randinit(gmp_randstate_t, gmp_randalg_t, ...); - -void __gmp_randinit_default(gmp_randstate_t); - -void __gmp_randinit_lc_2exp(gmp_randstate_t, mpz_srcptr, unsigned long int, - mp_bitcnt_t); - -int __gmp_randinit_lc_2exp_size(gmp_randstate_t, mp_bitcnt_t); - -void __gmp_randinit_mt(gmp_randstate_t); - -void __gmp_randinit_set(gmp_randstate_t, const __gmp_randstate_struct *); - -void __gmp_randseed(gmp_randstate_t, mpz_srcptr); - -void __gmp_randseed_ui(gmp_randstate_t, unsigned long int); - -void __gmp_randclear(gmp_randstate_t); - -unsigned long __gmp_urandomb_ui(gmp_randstate_t, unsigned long); - -unsigned long __gmp_urandomm_ui(gmp_randstate_t, unsigned long); - -int __gmp_asprintf(char **, const char *, ...); - -int __gmp_fprintf(FILE *, const char *, ...); -int __gmp_printf(const char *, ...); - -int __gmp_snprintf(char *, size_t, const char *, ...); - -int __gmp_sprintf(char *, const char *, ...); - -int __gmp_vasprintf(char **, const char *, va_list); - -int __gmp_vfprintf(FILE *, const char *, va_list); - -int __gmp_vprintf(const char *, va_list); - -int __gmp_vsnprintf(char *, size_t, const char *, va_list); - -int __gmp_vsprintf(char *, const char *, va_list); - -int __gmp_fscanf(FILE *, const char *, ...); - -int __gmp_scanf(const char *, ...); - -int __gmp_sscanf(const char *, const char *, ...); - -int __gmp_vfscanf(FILE *, const char *, va_list); - -int __gmp_vscanf(const char *, va_list); - -int __gmp_vsscanf(const char *, const char *, va_list); - -void *__gmpz_realloc(mpz_ptr, mp_size_t); - -void __gmpz_abs(mpz_ptr, mpz_srcptr); - -void __gmpz_add(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_add_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_addmul(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_addmul_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_and(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_array_init(mpz_ptr, mp_size_t, mp_size_t); - -void __gmpz_bin_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_bin_uiui(mpz_ptr, unsigned long int, unsigned long int); - -void __gmpz_cdiv_q(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_cdiv_q_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_cdiv_q_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_cdiv_qr(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr); - -unsigned long int __gmpz_cdiv_qr_ui(mpz_ptr, mpz_ptr, mpz_srcptr, - unsigned long int); - -void __gmpz_cdiv_r(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_cdiv_r_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_cdiv_r_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -unsigned long int __gmpz_cdiv_ui(mpz_srcptr, unsigned long int) - __attribute__((__pure__)); - -void __gmpz_clear(mpz_ptr); - -void __gmpz_clears(mpz_ptr, ...); - -void __gmpz_clrbit(mpz_ptr, mp_bitcnt_t); - -int __gmpz_cmp(mpz_srcptr, mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_cmp_d(mpz_srcptr, double) __attribute__((__pure__)); - -int __gmpz_cmp_si(mpz_srcptr, signed long int) __attribute__((__pure__)); - -int __gmpz_cmp_ui(mpz_srcptr, unsigned long int) __attribute__((__pure__)); - -int __gmpz_cmpabs(mpz_srcptr, mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_cmpabs_d(mpz_srcptr, double) __attribute__((__pure__)); - -int __gmpz_cmpabs_ui(mpz_srcptr, unsigned long int) __attribute__((__pure__)); - -void __gmpz_com(mpz_ptr, mpz_srcptr); - -void __gmpz_combit(mpz_ptr, mp_bitcnt_t); - -int __gmpz_congruent_p(mpz_srcptr, mpz_srcptr, mpz_srcptr) - __attribute__((__pure__)); - -int __gmpz_congruent_2exp_p(mpz_srcptr, mpz_srcptr, mp_bitcnt_t) - __attribute__((__pure__)); - -int __gmpz_congruent_ui_p(mpz_srcptr, unsigned long, unsigned long) - __attribute__((__pure__)); - -void __gmpz_divexact(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_divexact_ui(mpz_ptr, mpz_srcptr, unsigned long); - -int __gmpz_divisible_p(mpz_srcptr, mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_divisible_ui_p(mpz_srcptr, unsigned long) __attribute__((__pure__)); - -int __gmpz_divisible_2exp_p(mpz_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -void __gmpz_dump(mpz_srcptr); - -void *__gmpz_export(void *, size_t *, int, size_t, int, size_t, mpz_srcptr); - -void __gmpz_fac_ui(mpz_ptr, unsigned long int); - -void __gmpz_2fac_ui(mpz_ptr, unsigned long int); - -void __gmpz_mfac_uiui(mpz_ptr, unsigned long int, unsigned long int); - -void __gmpz_primorial_ui(mpz_ptr, unsigned long int); - -void __gmpz_fdiv_q(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_fdiv_q_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_fdiv_q_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_fdiv_qr(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr); - -unsigned long int __gmpz_fdiv_qr_ui(mpz_ptr, mpz_ptr, mpz_srcptr, - unsigned long int); - -void __gmpz_fdiv_r(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_fdiv_r_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_fdiv_r_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -unsigned long int __gmpz_fdiv_ui(mpz_srcptr, unsigned long int) - __attribute__((__pure__)); - -void __gmpz_fib_ui(mpz_ptr, unsigned long int); - -void __gmpz_fib2_ui(mpz_ptr, mpz_ptr, unsigned long int); - -int __gmpz_fits_sint_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_fits_slong_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_fits_sshort_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_fits_uint_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_fits_ulong_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_fits_ushort_p(mpz_srcptr) __attribute__((__pure__)); - -void __gmpz_gcd(mpz_ptr, mpz_srcptr, mpz_srcptr); - -unsigned long int __gmpz_gcd_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_gcdext(mpz_ptr, mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr); - -double __gmpz_get_d(mpz_srcptr) __attribute__((__pure__)); - -double __gmpz_get_d_2exp(signed long int *, mpz_srcptr); - -long int __gmpz_get_si(mpz_srcptr) __attribute__((__pure__)); - -char *__gmpz_get_str(char *, int, mpz_srcptr); - -unsigned long int __gmpz_get_ui(mpz_srcptr) __attribute__((__pure__)); - -mp_limb_t __gmpz_getlimbn(mpz_srcptr, mp_size_t) __attribute__((__pure__)); - -mp_bitcnt_t __gmpz_hamdist(mpz_srcptr, mpz_srcptr) __attribute__((__pure__)); - -void __gmpz_import(mpz_ptr, size_t, int, size_t, int, size_t, const void *); - -void __gmpz_init(mpz_ptr); - -void __gmpz_init2(mpz_ptr, mp_bitcnt_t); - -void __gmpz_inits(mpz_ptr, ...); - -void __gmpz_init_set(mpz_ptr, mpz_srcptr); - -void __gmpz_init_set_d(mpz_ptr, double); - -void __gmpz_init_set_si(mpz_ptr, signed long int); - -int __gmpz_init_set_str(mpz_ptr, const char *, int); - -void __gmpz_init_set_ui(mpz_ptr, unsigned long int); - -size_t __gmpz_inp_raw(mpz_ptr, FILE *); - -size_t __gmpz_inp_str(mpz_ptr, FILE *, int); - -int __gmpz_invert(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_ior(mpz_ptr, mpz_srcptr, mpz_srcptr); - -int __gmpz_jacobi(mpz_srcptr, mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_kronecker_si(mpz_srcptr, long) __attribute__((__pure__)); - -int __gmpz_kronecker_ui(mpz_srcptr, unsigned long) __attribute__((__pure__)); - -int __gmpz_si_kronecker(long, mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_ui_kronecker(unsigned long, mpz_srcptr) __attribute__((__pure__)); - -void __gmpz_lcm(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_lcm_ui(mpz_ptr, mpz_srcptr, unsigned long); - -void __gmpz_lucnum_ui(mpz_ptr, unsigned long int); - -void __gmpz_lucnum2_ui(mpz_ptr, mpz_ptr, unsigned long int); - -int __gmpz_millerrabin(mpz_srcptr, int) __attribute__((__pure__)); - -void __gmpz_mod(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_mul(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_mul_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -void __gmpz_mul_si(mpz_ptr, mpz_srcptr, long int); - -void __gmpz_mul_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_neg(mpz_ptr, mpz_srcptr); - -void __gmpz_nextprime(mpz_ptr, mpz_srcptr); - -size_t __gmpz_out_raw(FILE *, mpz_srcptr); - -size_t __gmpz_out_str(FILE *, int, mpz_srcptr); - -int __gmpz_perfect_power_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_perfect_square_p(mpz_srcptr) __attribute__((__pure__)); - -mp_bitcnt_t __gmpz_popcount(mpz_srcptr) __attribute__((__pure__)); - -void __gmpz_pow_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_powm(mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_powm_sec(mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_powm_ui(mpz_ptr, mpz_srcptr, unsigned long int, mpz_srcptr); - -int __gmpz_probab_prime_p(mpz_srcptr, int) __attribute__((__pure__)); - -void __gmpz_random(mpz_ptr, mp_size_t); - -void __gmpz_random2(mpz_ptr, mp_size_t); - -void __gmpz_realloc2(mpz_ptr, mp_bitcnt_t); - -mp_bitcnt_t __gmpz_remove(mpz_ptr, mpz_srcptr, mpz_srcptr); - -int __gmpz_root(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_rootrem(mpz_ptr, mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_rrandomb(mpz_ptr, gmp_randstate_t, mp_bitcnt_t); - -mp_bitcnt_t __gmpz_scan0(mpz_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -mp_bitcnt_t __gmpz_scan1(mpz_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -void __gmpz_set(mpz_ptr, mpz_srcptr); - -void __gmpz_set_d(mpz_ptr, double); - -void __gmpz_set_f(mpz_ptr, mpf_srcptr); - -void __gmpz_set_q(mpz_ptr, mpq_srcptr); - -void __gmpz_set_si(mpz_ptr, signed long int); - -int __gmpz_set_str(mpz_ptr, const char *, int); - -void __gmpz_set_ui(mpz_ptr, unsigned long int); - -void __gmpz_setbit(mpz_ptr, mp_bitcnt_t); - -size_t __gmpz_size(mpz_srcptr) __attribute__((__pure__)); - -size_t __gmpz_sizeinbase(mpz_srcptr, int) __attribute__((__pure__)); - -void __gmpz_sqrt(mpz_ptr, mpz_srcptr); - -void __gmpz_sqrtrem(mpz_ptr, mpz_ptr, mpz_srcptr); - -void __gmpz_sub(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_sub_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_ui_sub(mpz_ptr, unsigned long int, mpz_srcptr); - -void __gmpz_submul(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_submul_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_swap(mpz_ptr, mpz_ptr); - -unsigned long int __gmpz_tdiv_ui(mpz_srcptr, unsigned long int) - __attribute__((__pure__)); - -void __gmpz_tdiv_q(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_tdiv_q_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_tdiv_q_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_tdiv_qr(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr); - -unsigned long int __gmpz_tdiv_qr_ui(mpz_ptr, mpz_ptr, mpz_srcptr, - unsigned long int); - -void __gmpz_tdiv_r(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_tdiv_r_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_tdiv_r_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -int __gmpz_tstbit(mpz_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -void __gmpz_ui_pow_ui(mpz_ptr, unsigned long int, unsigned long int); - -void __gmpz_urandomb(mpz_ptr, gmp_randstate_t, mp_bitcnt_t); - -void __gmpz_urandomm(mpz_ptr, gmp_randstate_t, mpz_srcptr); - -void __gmpz_xor(mpz_ptr, mpz_srcptr, mpz_srcptr); - -mp_srcptr __gmpz_limbs_read(mpz_srcptr); - -mp_ptr __gmpz_limbs_write(mpz_ptr, mp_size_t); - -mp_ptr __gmpz_limbs_modify(mpz_ptr, mp_size_t); - -void __gmpz_limbs_finish(mpz_ptr, mp_size_t); - -mpz_srcptr __gmpz_roinit_n(mpz_ptr, mp_srcptr, mp_size_t); - -void __gmpq_abs(mpq_ptr, mpq_srcptr); - -void __gmpq_add(mpq_ptr, mpq_srcptr, mpq_srcptr); - -void __gmpq_canonicalize(mpq_ptr); - -void __gmpq_clear(mpq_ptr); - -void __gmpq_clears(mpq_ptr, ...); - -int __gmpq_cmp(mpq_srcptr, mpq_srcptr) __attribute__((__pure__)); - -int __gmpq_cmp_si(mpq_srcptr, long, unsigned long) __attribute__((__pure__)); - -int __gmpq_cmp_ui(mpq_srcptr, unsigned long int, unsigned long int) - __attribute__((__pure__)); - -int __gmpq_cmp_z(mpq_srcptr, mpz_srcptr) __attribute__((__pure__)); - -void __gmpq_div(mpq_ptr, mpq_srcptr, mpq_srcptr); - -void __gmpq_div_2exp(mpq_ptr, mpq_srcptr, mp_bitcnt_t); - -int __gmpq_equal(mpq_srcptr, mpq_srcptr) __attribute__((__pure__)); - -void __gmpq_get_num(mpz_ptr, mpq_srcptr); - -void __gmpq_get_den(mpz_ptr, mpq_srcptr); - -double __gmpq_get_d(mpq_srcptr) __attribute__((__pure__)); - -char *__gmpq_get_str(char *, int, mpq_srcptr); - -void __gmpq_init(mpq_ptr); - -void __gmpq_inits(mpq_ptr, ...); - -size_t __gmpq_inp_str(mpq_ptr, FILE *, int); - -void __gmpq_inv(mpq_ptr, mpq_srcptr); - -void __gmpq_mul(mpq_ptr, mpq_srcptr, mpq_srcptr); - -void __gmpq_mul_2exp(mpq_ptr, mpq_srcptr, mp_bitcnt_t); - -void __gmpq_neg(mpq_ptr, mpq_srcptr); - -size_t __gmpq_out_str(FILE *, int, mpq_srcptr); - -void __gmpq_set(mpq_ptr, mpq_srcptr); - -void __gmpq_set_d(mpq_ptr, double); - -void __gmpq_set_den(mpq_ptr, mpz_srcptr); - -void __gmpq_set_f(mpq_ptr, mpf_srcptr); - -void __gmpq_set_num(mpq_ptr, mpz_srcptr); - -void __gmpq_set_si(mpq_ptr, signed long int, unsigned long int); - -int __gmpq_set_str(mpq_ptr, const char *, int); - -void __gmpq_set_ui(mpq_ptr, unsigned long int, unsigned long int); - -void __gmpq_set_z(mpq_ptr, mpz_srcptr); - -void __gmpq_sub(mpq_ptr, mpq_srcptr, mpq_srcptr); - -void __gmpq_swap(mpq_ptr, mpq_ptr); - -void __gmpf_abs(mpf_ptr, mpf_srcptr); - -void __gmpf_add(mpf_ptr, mpf_srcptr, mpf_srcptr); - -void __gmpf_add_ui(mpf_ptr, mpf_srcptr, unsigned long int); - -void __gmpf_ceil(mpf_ptr, mpf_srcptr); - -void __gmpf_clear(mpf_ptr); - -void __gmpf_clears(mpf_ptr, ...); - -int __gmpf_cmp(mpf_srcptr, mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_cmp_z(mpf_srcptr, mpz_srcptr) __attribute__((__pure__)); - -int __gmpf_cmp_d(mpf_srcptr, double) __attribute__((__pure__)); - -int __gmpf_cmp_si(mpf_srcptr, signed long int) __attribute__((__pure__)); - -int __gmpf_cmp_ui(mpf_srcptr, unsigned long int) __attribute__((__pure__)); - -void __gmpf_div(mpf_ptr, mpf_srcptr, mpf_srcptr); - -void __gmpf_div_2exp(mpf_ptr, mpf_srcptr, mp_bitcnt_t); - -void __gmpf_div_ui(mpf_ptr, mpf_srcptr, unsigned long int); - -void __gmpf_dump(mpf_srcptr); - -int __gmpf_eq(mpf_srcptr, mpf_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -int __gmpf_fits_sint_p(mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_fits_slong_p(mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_fits_sshort_p(mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_fits_uint_p(mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_fits_ulong_p(mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_fits_ushort_p(mpf_srcptr) __attribute__((__pure__)); - -void __gmpf_floor(mpf_ptr, mpf_srcptr); - -double __gmpf_get_d(mpf_srcptr) __attribute__((__pure__)); - -double __gmpf_get_d_2exp(signed long int *, mpf_srcptr); - -mp_bitcnt_t __gmpf_get_default_prec(void) __attribute__((__pure__)); - -mp_bitcnt_t __gmpf_get_prec(mpf_srcptr) __attribute__((__pure__)); - -long __gmpf_get_si(mpf_srcptr) __attribute__((__pure__)); - -char *__gmpf_get_str(char *, mp_exp_t *, int, size_t, mpf_srcptr); - -unsigned long __gmpf_get_ui(mpf_srcptr) __attribute__((__pure__)); - -void __gmpf_init(mpf_ptr); - -void __gmpf_init2(mpf_ptr, mp_bitcnt_t); - -void __gmpf_inits(mpf_ptr, ...); - -void __gmpf_init_set(mpf_ptr, mpf_srcptr); - -void __gmpf_init_set_d(mpf_ptr, double); - -void __gmpf_init_set_si(mpf_ptr, signed long int); - -int __gmpf_init_set_str(mpf_ptr, const char *, int); - -void __gmpf_init_set_ui(mpf_ptr, unsigned long int); - -size_t __gmpf_inp_str(mpf_ptr, FILE *, int); - -int __gmpf_integer_p(mpf_srcptr) __attribute__((__pure__)); - -void __gmpf_mul(mpf_ptr, mpf_srcptr, mpf_srcptr); - -void __gmpf_mul_2exp(mpf_ptr, mpf_srcptr, mp_bitcnt_t); - -void __gmpf_mul_ui(mpf_ptr, mpf_srcptr, unsigned long int); - -void __gmpf_neg(mpf_ptr, mpf_srcptr); - -size_t __gmpf_out_str(FILE *, int, size_t, mpf_srcptr); - -void __gmpf_pow_ui(mpf_ptr, mpf_srcptr, unsigned long int); - -void __gmpf_random2(mpf_ptr, mp_size_t, mp_exp_t); - -void __gmpf_reldiff(mpf_ptr, mpf_srcptr, mpf_srcptr); - -void __gmpf_set(mpf_ptr, mpf_srcptr); - -void __gmpf_set_d(mpf_ptr, double); - -void __gmpf_set_default_prec(mp_bitcnt_t); - -void __gmpf_set_prec(mpf_ptr, mp_bitcnt_t); - -void __gmpf_set_prec_raw(mpf_ptr, mp_bitcnt_t); - -void __gmpf_set_q(mpf_ptr, mpq_srcptr); - -void __gmpf_set_si(mpf_ptr, signed long int); - -int __gmpf_set_str(mpf_ptr, const char *, int); - -void __gmpf_set_ui(mpf_ptr, unsigned long int); - -void __gmpf_set_z(mpf_ptr, mpz_srcptr); - -size_t __gmpf_size(mpf_srcptr) __attribute__((__pure__)); - -void __gmpf_sqrt(mpf_ptr, mpf_srcptr); - -void __gmpf_sqrt_ui(mpf_ptr, unsigned long int); - -void __gmpf_sub(mpf_ptr, mpf_srcptr, mpf_srcptr); - -void __gmpf_sub_ui(mpf_ptr, mpf_srcptr, unsigned long int); - -void __gmpf_swap(mpf_ptr, mpf_ptr); - -void __gmpf_trunc(mpf_ptr, mpf_srcptr); - -void __gmpf_ui_div(mpf_ptr, unsigned long int, mpf_srcptr); - -void __gmpf_ui_sub(mpf_ptr, unsigned long int, mpf_srcptr); - -void __gmpf_urandomb(mpf_t, gmp_randstate_t, mp_bitcnt_t); -mp_limb_t __gmpn_add(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_add_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_add_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_addmul_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -int __gmpn_cmp(mp_srcptr, mp_srcptr, mp_size_t) __attribute__((__pure__)); - -int __gmpn_zero_p(mp_srcptr, mp_size_t) __attribute__((__pure__)); - -void __gmpn_divexact_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_divexact_by3c(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_divrem(mp_ptr, mp_size_t, mp_ptr, mp_size_t, mp_srcptr, - mp_size_t); - -mp_limb_t __gmpn_divrem_1(mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_divrem_2(mp_ptr, mp_size_t, mp_ptr, mp_size_t, mp_srcptr); - -mp_limb_t __gmpn_div_qr_1(mp_ptr, mp_limb_t *, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_div_qr_2(mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_srcptr); - -mp_size_t __gmpn_gcd(mp_ptr, mp_ptr, mp_size_t, mp_ptr, mp_size_t); - -mp_limb_t __gmpn_gcd_11(mp_limb_t, mp_limb_t) __attribute__((__pure__)); - -mp_limb_t __gmpn_gcd_1(mp_srcptr, mp_size_t, mp_limb_t) - __attribute__((__pure__)); - -mp_limb_t __gmpn_gcdext_1(mp_limb_signed_t *, mp_limb_signed_t *, mp_limb_t, - mp_limb_t); - -mp_size_t __gmpn_gcdext(mp_ptr, mp_ptr, mp_size_t *, mp_ptr, mp_size_t, mp_ptr, - mp_size_t); - -size_t __gmpn_get_str(unsigned char *, int, mp_ptr, mp_size_t); - -mp_bitcnt_t __gmpn_hamdist(mp_srcptr, mp_srcptr, mp_size_t) - __attribute__((__pure__)); - -mp_limb_t __gmpn_lshift(mp_ptr, mp_srcptr, mp_size_t, unsigned int); - -mp_limb_t __gmpn_mod_1(mp_srcptr, mp_size_t, mp_limb_t) - __attribute__((__pure__)); - -mp_limb_t __gmpn_mul(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_mul_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -void __gmpn_mul_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_sqr(mp_ptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_neg(mp_ptr, mp_srcptr, mp_size_t); - -void __gmpn_com(mp_ptr, mp_srcptr, mp_size_t); - -int __gmpn_perfect_square_p(mp_srcptr, mp_size_t) __attribute__((__pure__)); - -int __gmpn_perfect_power_p(mp_srcptr, mp_size_t) __attribute__((__pure__)); - -mp_bitcnt_t __gmpn_popcount(mp_srcptr, mp_size_t) __attribute__((__pure__)); - -mp_size_t __gmpn_pow_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_ptr); - -mp_limb_t __gmpn_preinv_mod_1(mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t) - __attribute__((__pure__)); - -void __gmpn_random(mp_ptr, mp_size_t); - -void __gmpn_random2(mp_ptr, mp_size_t); - -mp_limb_t __gmpn_rshift(mp_ptr, mp_srcptr, mp_size_t, unsigned int); - -mp_bitcnt_t __gmpn_scan0(mp_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -mp_bitcnt_t __gmpn_scan1(mp_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -mp_size_t __gmpn_set_str(mp_ptr, const unsigned char *, size_t, int); - -size_t __gmpn_sizeinbase(mp_srcptr, mp_size_t, int); - -mp_size_t __gmpn_sqrtrem(mp_ptr, mp_ptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_sub(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_sub_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_sub_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_submul_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -void __gmpn_tdiv_qr(mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_srcptr, - mp_size_t); - -void __gmpn_and_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_andn_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_nand_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_ior_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_iorn_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_nior_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_xor_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_xnor_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_copyi(mp_ptr, mp_srcptr, mp_size_t); - -void __gmpn_copyd(mp_ptr, mp_srcptr, mp_size_t); - -void __gmpn_zero(mp_ptr, mp_size_t); - -mp_limb_t __gmpn_cnd_add_n(mp_limb_t, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_cnd_sub_n(mp_limb_t, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_sec_add_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_ptr); - -mp_size_t __gmpn_sec_add_1_itch(mp_size_t) __attribute__((__pure__)); - -mp_limb_t __gmpn_sec_sub_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_ptr); - -mp_size_t __gmpn_sec_sub_1_itch(mp_size_t) __attribute__((__pure__)); - -void __gmpn_cnd_swap(mp_limb_t, volatile mp_limb_t *, volatile mp_limb_t *, - mp_size_t); - -void __gmpn_sec_mul(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr); - -mp_size_t __gmpn_sec_mul_itch(mp_size_t, mp_size_t) __attribute__((__pure__)); - -void __gmpn_sec_sqr(mp_ptr, mp_srcptr, mp_size_t, mp_ptr); - -mp_size_t __gmpn_sec_sqr_itch(mp_size_t) __attribute__((__pure__)); - -void __gmpn_sec_powm(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_bitcnt_t, - mp_srcptr, mp_size_t, mp_ptr); - -mp_size_t __gmpn_sec_powm_itch(mp_size_t, mp_bitcnt_t, mp_size_t) - __attribute__((__pure__)); - -void __gmpn_sec_tabselect(volatile mp_limb_t *, volatile const mp_limb_t *, - mp_size_t, mp_size_t, mp_size_t); - -mp_limb_t __gmpn_sec_div_qr(mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_size_t, - mp_ptr); - -mp_size_t __gmpn_sec_div_qr_itch(mp_size_t, mp_size_t) - __attribute__((__pure__)); - -void __gmpn_sec_div_r(mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr); - -mp_size_t __gmpn_sec_div_r_itch(mp_size_t, mp_size_t) __attribute__((__pure__)); - -int __gmpn_sec_invert(mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_bitcnt_t, - mp_ptr); - -mp_size_t __gmpn_sec_invert_itch(mp_size_t) __attribute__((__pure__)); -extern __inline__ __attribute__((__gnu_inline__)) void -__gmpz_abs(mpz_ptr __gmp_w, mpz_srcptr __gmp_u) { - if (__gmp_w != __gmp_u) - __gmpz_set(__gmp_w, __gmp_u); - __gmp_w->_mp_size = - ((__gmp_w->_mp_size) >= 0 ? (__gmp_w->_mp_size) : -(__gmp_w->_mp_size)); -} -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpz_fits_uint_p(mpz_srcptr __gmp_z) { - mp_size_t __gmp_n = __gmp_z->_mp_size; - mp_ptr __gmp_p = __gmp_z->_mp_d; - return (__gmp_n == 0 || - (__gmp_n == 1 && __gmp_p[0] <= (0x7fffffff * 2U + 1U))); - ; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpz_fits_ulong_p(mpz_srcptr __gmp_z) { - mp_size_t __gmp_n = __gmp_z->_mp_size; - mp_ptr __gmp_p = __gmp_z->_mp_d; - return (__gmp_n == 0 || - (__gmp_n == 1 && __gmp_p[0] <= (0x7fffffffffffffffL * 2UL + 1UL))); - ; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpz_fits_ushort_p(mpz_srcptr __gmp_z) { - mp_size_t __gmp_n = __gmp_z->_mp_size; - mp_ptr __gmp_p = __gmp_z->_mp_d; - return (__gmp_n == 0 || (__gmp_n == 1 && __gmp_p[0] <= (0x7fff * 2 + 1))); - ; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -unsigned long -__gmpz_get_ui(mpz_srcptr __gmp_z) { - mp_ptr __gmp_p = __gmp_z->_mp_d; - mp_size_t __gmp_n = __gmp_z->_mp_size; - mp_limb_t __gmp_l = __gmp_p[0]; - - return (__gmp_n != 0 ? __gmp_l : 0); -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpz_getlimbn(mpz_srcptr __gmp_z, mp_size_t __gmp_n) { - mp_limb_t __gmp_result = 0; - if (__builtin_expect( - (__gmp_n >= 0 && - __gmp_n < ((__gmp_z->_mp_size) >= 0 ? (__gmp_z->_mp_size) - : -(__gmp_z->_mp_size))) != 0, - 1)) - __gmp_result = __gmp_z->_mp_d[__gmp_n]; - return __gmp_result; -} - -extern __inline__ __attribute__((__gnu_inline__)) void -__gmpz_neg(mpz_ptr __gmp_w, mpz_srcptr __gmp_u) { - if (__gmp_w != __gmp_u) - __gmpz_set(__gmp_w, __gmp_u); - __gmp_w->_mp_size = -__gmp_w->_mp_size; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpz_perfect_square_p(mpz_srcptr __gmp_a) { - mp_size_t __gmp_asize; - int __gmp_result; - - __gmp_asize = __gmp_a->_mp_size; - __gmp_result = (__gmp_asize >= 0); - if (__builtin_expect((__gmp_asize > 0) != 0, 1)) - __gmp_result = __gmpn_perfect_square_p(__gmp_a->_mp_d, __gmp_asize); - return __gmp_result; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_bitcnt_t -__gmpz_popcount(mpz_srcptr __gmp_u) { - mp_size_t __gmp_usize; - mp_bitcnt_t __gmp_result; - - __gmp_usize = __gmp_u->_mp_size; - __gmp_result = (__gmp_usize < 0 ? ~((mp_bitcnt_t)(0)) : ((mp_bitcnt_t)(0))); - if (__builtin_expect((__gmp_usize > 0) != 0, 1)) - __gmp_result = __gmpn_popcount(__gmp_u->_mp_d, __gmp_usize); - return __gmp_result; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - void - __gmpz_set_q(mpz_ptr __gmp_w, mpq_srcptr __gmp_u) { - __gmpz_tdiv_q(__gmp_w, (&((__gmp_u)->_mp_num)), (&((__gmp_u)->_mp_den))); -} - -extern __inline__ __attribute__((__gnu_inline__)) - -size_t -__gmpz_size(mpz_srcptr __gmp_z) { - return ((__gmp_z->_mp_size) >= 0 ? (__gmp_z->_mp_size) - : -(__gmp_z->_mp_size)); -} - -extern __inline__ __attribute__((__gnu_inline__)) void -__gmpq_abs(mpq_ptr __gmp_w, mpq_srcptr __gmp_u) { - if (__gmp_w != __gmp_u) - __gmpq_set(__gmp_w, __gmp_u); - __gmp_w->_mp_num._mp_size = - ((__gmp_w->_mp_num._mp_size) >= 0 ? (__gmp_w->_mp_num._mp_size) - : -(__gmp_w->_mp_num._mp_size)); -} - -extern __inline__ __attribute__((__gnu_inline__)) void -__gmpq_neg(mpq_ptr __gmp_w, mpq_srcptr __gmp_u) { - if (__gmp_w != __gmp_u) - __gmpq_set(__gmp_w, __gmp_u); - __gmp_w->_mp_num._mp_size = -__gmp_w->_mp_num._mp_size; -} -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpn_add(mp_ptr __gmp_wp, mp_srcptr __gmp_xp, mp_size_t __gmp_xsize, - mp_srcptr __gmp_yp, mp_size_t __gmp_ysize) { - mp_limb_t __gmp_c; - do { - mp_size_t __gmp_i; - mp_limb_t __gmp_x; - __gmp_i = (__gmp_ysize); - if (__gmp_i != 0) { - if (__gmpn_add_n(__gmp_wp, __gmp_xp, __gmp_yp, __gmp_i)) { - do { - if (__gmp_i >= (__gmp_xsize)) { - (__gmp_c) = 1; - goto __gmp_done; - } - __gmp_x = (__gmp_xp)[__gmp_i]; - } while ((((__gmp_wp)[__gmp_i++] = - (__gmp_x + 1) & ((~((mp_limb_t)(0))) >> 0)) == 0)); - } - } - if ((__gmp_wp) != (__gmp_xp)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (__gmp_i); __gmp_j < (__gmp_xsize); __gmp_j++) - (__gmp_wp)[__gmp_j] = (__gmp_xp)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - __gmp_done:; - } while (0); - return __gmp_c; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpn_add_1(mp_ptr __gmp_dst, mp_srcptr __gmp_src, mp_size_t __gmp_size, - mp_limb_t __gmp_n) { - mp_limb_t __gmp_c; - do { - mp_size_t __gmp_i; - mp_limb_t __gmp_x, __gmp_r; - __gmp_x = (__gmp_src)[0]; - __gmp_r = __gmp_x + (__gmp_n); - (__gmp_dst)[0] = __gmp_r; - if (((__gmp_r) < ((__gmp_n)))) { - (__gmp_c) = 1; - for (__gmp_i = 1; __gmp_i < (__gmp_size);) { - __gmp_x = (__gmp_src)[__gmp_i]; - __gmp_r = __gmp_x + 1; - (__gmp_dst)[__gmp_i] = __gmp_r; - ++__gmp_i; - if (!((__gmp_r) < (1))) { - if ((__gmp_src) != (__gmp_dst)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (__gmp_i); __gmp_j < (__gmp_size); __gmp_j++) - (__gmp_dst)[__gmp_j] = (__gmp_src)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - break; - } - } - } else { - if ((__gmp_src) != (__gmp_dst)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (1); __gmp_j < (__gmp_size); __gmp_j++) - (__gmp_dst)[__gmp_j] = (__gmp_src)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - } - } while (0); - return __gmp_c; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpn_cmp(mp_srcptr __gmp_xp, mp_srcptr __gmp_yp, mp_size_t __gmp_size) { - int __gmp_result; - do { - mp_size_t __gmp_i; - mp_limb_t __gmp_x, __gmp_y; - (__gmp_result) = 0; - __gmp_i = (__gmp_size); - while (--__gmp_i >= 0) { - __gmp_x = (__gmp_xp)[__gmp_i]; - __gmp_y = (__gmp_yp)[__gmp_i]; - if (__gmp_x != __gmp_y) { - (__gmp_result) = (__gmp_x > __gmp_y ? 1 : -1); - break; - } - } - } while (0); - return __gmp_result; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpn_zero_p(mp_srcptr __gmp_p, mp_size_t __gmp_n) { - - do { - if (__gmp_p[--__gmp_n] != 0) - return 0; - } while (__gmp_n != 0); - return 1; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpn_sub(mp_ptr __gmp_wp, mp_srcptr __gmp_xp, mp_size_t __gmp_xsize, - mp_srcptr __gmp_yp, mp_size_t __gmp_ysize) { - mp_limb_t __gmp_c; - do { - mp_size_t __gmp_i; - mp_limb_t __gmp_x; - __gmp_i = (__gmp_ysize); - if (__gmp_i != 0) { - if (__gmpn_sub_n(__gmp_wp, __gmp_xp, __gmp_yp, __gmp_i)) { - do { - if (__gmp_i >= (__gmp_xsize)) { - (__gmp_c) = 1; - goto __gmp_done; - } - __gmp_x = (__gmp_xp)[__gmp_i]; - } while ((((__gmp_wp)[__gmp_i++] = - (__gmp_x - 1) & ((~((mp_limb_t)(0))) >> 0)), - __gmp_x == 0)); - } - } - if ((__gmp_wp) != (__gmp_xp)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (__gmp_i); __gmp_j < (__gmp_xsize); __gmp_j++) - (__gmp_wp)[__gmp_j] = (__gmp_xp)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - __gmp_done:; - } while (0); - return __gmp_c; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpn_sub_1(mp_ptr __gmp_dst, mp_srcptr __gmp_src, mp_size_t __gmp_size, - mp_limb_t __gmp_n) { - mp_limb_t __gmp_c; - do { - mp_size_t __gmp_i; - mp_limb_t __gmp_x, __gmp_r; - __gmp_x = (__gmp_src)[0]; - __gmp_r = __gmp_x - (__gmp_n); - (__gmp_dst)[0] = __gmp_r; - if (((__gmp_x) < ((__gmp_n)))) { - (__gmp_c) = 1; - for (__gmp_i = 1; __gmp_i < (__gmp_size);) { - __gmp_x = (__gmp_src)[__gmp_i]; - __gmp_r = __gmp_x - 1; - (__gmp_dst)[__gmp_i] = __gmp_r; - ++__gmp_i; - if (!((__gmp_x) < (1))) { - if ((__gmp_src) != (__gmp_dst)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (__gmp_i); __gmp_j < (__gmp_size); __gmp_j++) - (__gmp_dst)[__gmp_j] = (__gmp_src)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - break; - } - } - } else { - if ((__gmp_src) != (__gmp_dst)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (1); __gmp_j < (__gmp_size); __gmp_j++) - (__gmp_dst)[__gmp_j] = (__gmp_src)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - } - } while (0); - return __gmp_c; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpn_neg(mp_ptr __gmp_rp, mp_srcptr __gmp_up, mp_size_t __gmp_n) { - while (*__gmp_up == 0) { - *__gmp_rp = 0; - if (!--__gmp_n) - return 0; - ++__gmp_up; - ++__gmp_rp; - } - - *__gmp_rp = (-*__gmp_up) & ((~((mp_limb_t)(0))) >> 0); - - if (--__gmp_n) - __gmpn_com(++__gmp_rp, ++__gmp_up, __gmp_n); - - return 1; -} -enum { - GMP_ERROR_NONE = 0, - GMP_ERROR_UNSUPPORTED_ARGUMENT = 1, - GMP_ERROR_DIVISION_BY_ZERO = 2, - GMP_ERROR_SQRT_OF_NEGATIVE = 4, - GMP_ERROR_INVALID_ARGUMENT = 8 -}; - -typedef unsigned int __re_size_t; -typedef unsigned long int __re_long_size_t; - -typedef long int s_reg_t; -typedef unsigned long int active_reg_t; - -typedef unsigned long int reg_syntax_t; -extern reg_syntax_t re_syntax_options; -typedef enum { - _REG_ENOSYS = -1, - _REG_NOERROR = 0, - _REG_NOMATCH, - - _REG_BADPAT, - _REG_ECOLLATE, - _REG_ECTYPE, - _REG_EESCAPE, - _REG_ESUBREG, - _REG_EBRACK, - _REG_EPAREN, - _REG_EBRACE, - _REG_BADBR, - _REG_ERANGE, - _REG_ESPACE, - _REG_BADRPT, - - _REG_EEND, - _REG_ESIZE, - _REG_ERPAREN -} reg_errcode_t; -struct re_pattern_buffer { - - struct re_dfa_t *buffer; - - __re_long_size_t allocated; - - __re_long_size_t used; - - reg_syntax_t syntax; - - char *fastmap; - - unsigned char *translate; - - size_t re_nsub; - - unsigned can_be_null : 1; - unsigned regs_allocated : 2; - - unsigned fastmap_accurate : 1; - - unsigned no_sub : 1; - - unsigned not_bol : 1; - - unsigned not_eol : 1; - - unsigned newline_anchor : 1; -}; - -typedef struct re_pattern_buffer regex_t; -typedef int regoff_t; - -struct re_registers { - __re_size_t num_regs; - regoff_t *start; - regoff_t *end; -}; -typedef struct { - regoff_t rm_so; - regoff_t rm_eo; -} regmatch_t; -extern reg_syntax_t re_set_syntax(reg_syntax_t __syntax); -extern const char *re_compile_pattern(const char *__pattern, size_t __length, - struct re_pattern_buffer *__buffer) - - __attribute__((__access__(__read_only__, 1, 2))); - -extern int re_compile_fastmap(struct re_pattern_buffer *__buffer); - -extern regoff_t re_search(struct re_pattern_buffer *__buffer, - const char *__String, regoff_t __length, - regoff_t __start, regoff_t __range, - struct re_registers *__regs) - - __attribute__((__access__(__read_only__, 2, 3))); - -extern regoff_t re_search_2(struct re_pattern_buffer *__buffer, - const char *__string1, regoff_t __length1, - const char *__string2, regoff_t __length2, - regoff_t __start, regoff_t __range, - struct re_registers *__regs, regoff_t __stop) - - __attribute__((__access__(__read_only__, 2, 3))) - __attribute__((__access__(__read_only__, 4, 5))); - -extern regoff_t re_match(struct re_pattern_buffer *__buffer, - const char *__String, regoff_t __length, - regoff_t __start, struct re_registers *__regs) - - __attribute__((__access__(__read_only__, 2, 3))); - -extern regoff_t -re_match_2(struct re_pattern_buffer *__buffer, const char *__string1, - regoff_t __length1, const char *__string2, regoff_t __length2, - regoff_t __start, struct re_registers *__regs, regoff_t __stop) - - __attribute__((__access__(__read_only__, 2, 3))) - __attribute__((__access__(__read_only__, 4, 5))); -extern void re_set_registers(struct re_pattern_buffer *__buffer, - struct re_registers *__regs, - __re_size_t __num_regs, regoff_t *__starts, - regoff_t *__ends); -extern int regcomp(regex_t *__restrict __preg, const char *__restrict __pattern, - int __cflags); - -extern int regexec(const regex_t *__restrict __preg, - const char *__restrict __String, size_t __nmatch, - regmatch_t __pmatch[__restrict - - __nmatch], - int __eflags); - -extern size_t regerror(int __errcode, const regex_t *__restrict __preg, - char *__restrict __errbuf, size_t __errbuf_size) - - __attribute__((__access__(__write_only__, 3, 4))); - -extern void regfree(regex_t *__preg); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -typedef unsigned int wint_t; - -typedef __mbstate_t mbstate_t; - -struct tm; - -extern wchar_t *wcscpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcscat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int wcscmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcsncmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcscasecmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int wcscasecmp_l(const wchar_t *__s1, const wchar_t *__s2, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp_l(const wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll_l(const wchar_t *__s1, const wchar_t *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm_l(wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcsdup(const wchar_t *__s) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(__builtin_free, 1))); -extern wchar_t *wcschr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsrchr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcschrnul(const wchar_t *__s, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcscspn(const wchar_t *__wcs, const wchar_t *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsspn(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcspbrk(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsstr(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcstok(wchar_t *__restrict __s, - const wchar_t *__restrict __delim, - wchar_t **__restrict __ptr) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcslen(const wchar_t *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); -extern wchar_t *wcswcs(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsnlen(const wchar_t *__s, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wmemchr(const wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern int wmemcmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wmemcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemset(wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmempcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t btowc(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int wctob(wint_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int mbsinit(const mbstate_t *__ps) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); - -extern size_t mbrtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n, mbstate_t *__restrict __p) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcrtomb(char *__restrict __s, wchar_t __wc, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t __mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbsrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbsnrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsnrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern int wcwidth(wchar_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int wcswidth(const wchar_t *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern double wcstod(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long double wcstold(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long int wcstol(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoq(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstouq(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -extern long int wcstol_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull_l(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern double wcstod_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern long double wcstold_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *wcpcpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcpncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern __FILE *open_wmemstream(wchar_t **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(rpl_fclose, 1))); - -extern int fwide(__FILE *__fp, int __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fwprintf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wprintf(const wchar_t *__restrict __format, ...); - -extern int swprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwprintf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwprintf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wscanf(const wchar_t *__restrict __format, ...); - -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_fwscanf") - - ; -extern int wscanf(const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_wscanf") - - ; -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_swscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwscanf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfwscanf") - - ; -extern int vwscanf(const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vwscanf") - - ; -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vswscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wint_t fgetwc(__FILE *__stream); -extern wint_t getwc(__FILE *__stream); - -extern wint_t getwchar(void); - -extern wint_t fputwc(wchar_t __wc, __FILE *__stream); -extern wint_t putwc(wchar_t __wc, __FILE *__stream); - -extern wint_t putwchar(wchar_t __wc); - -extern wchar_t *fgetws(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws(const wchar_t *__restrict __ws, __FILE *__restrict __stream); - -extern wint_t ungetwc(wint_t __wc, __FILE *__stream); -extern wint_t getwc_unlocked(__FILE *__stream); -extern wint_t getwchar_unlocked(void); - -extern wint_t fgetwc_unlocked(__FILE *__stream); - -extern wint_t fputwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwchar_unlocked(wchar_t __wc); -extern wchar_t *fgetws_unlocked(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws_unlocked(const wchar_t *__restrict __ws, - __FILE *__restrict __stream); - -extern size_t wcsftime(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsftime_l(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *__wmemcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmemcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmemcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemmove_chk(wchar_t *__s1, const wchar_t *__s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemmove_alias(wchar_t *__s1, const wchar_t *__s2, - size_t __n) __asm__("" - "wmemmove") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemmove_chk_warn(wchar_t *__s1, const wchar_t *__s2, - size_t __n, - size_t __ns1) __asm__("" - "__wmemmove_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemmove called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemmove_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmempcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmempcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmempcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmempcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmempcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmempcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmempcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmempcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemset_chk(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_alias(wchar_t *__s, wchar_t __c, - size_t __n) __asm__("" - "wmemset") - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_chk_warn(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) __asm__("" - "__wmemset_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemset called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemset(wchar_t *__s, wchar_t __c, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_alias(__s, __c, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_chk_warn(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))) - : __wmemset_chk(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscpy_alias(__dest, __src); -} - -extern wchar_t *__wcpcpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcpcpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcpcpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpcpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcpcpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcpcpy_alias(__dest, __src); -} - -extern wchar_t *__wcsncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcsncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcsncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcsncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcsncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcpncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcpncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcpncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcpncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcpncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcpncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcpncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscat(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscat_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscat_alias(__dest, __src); -} - -extern wchar_t *__wcsncat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncat(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcsncat_chk(__dest, __src, __n, sz / sizeof(wchar_t)); - return __wcsncat_alias(__dest, __src, __n); -} - -extern int __swprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int __swprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - ...) __asm__("" - "swprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -swprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - ...) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __swprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, - __builtin_va_arg_pack()); - return __swprintf_alias(__s, __n, __fmt, __builtin_va_arg_pack()); -} -extern int __vswprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int __vswprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) __asm__("" - "vswprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -vswprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __vswprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, __ap); - return __vswprintf_alias(__s, __n, __fmt, __ap); -} - -extern int __fwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, ...); -extern int __wprintf_chk(int __flag, const wchar_t *__restrict __format, ...); -extern int __vfwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, - __gnuc_va_list __ap); -extern int __vwprintf_chk(int __flag, const wchar_t *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -wprintf(const wchar_t *__restrict __fmt, ...) { - return __wprintf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) { - return __fwprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vwprintf(const wchar_t *__restrict __fmt, __gnuc_va_list __ap) { - return __vwprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfwprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern wchar_t *__fgetws_chk(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws") - - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_chk_warn(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgetws called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern wchar_t *__fgetws_unlocked_chk(wchar_t *__restrict __s, size_t __size, - int __n, __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_unlocked_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws_unlocked") - - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_unlocked_chk_warn( - wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgetws_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws_unlocked(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_unlocked_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern size_t __wcrtomb_chk(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __p, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern size_t __wcrtomb_alias(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __ps) __asm__("" - "wcrtomb") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcrtomb(char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) - -{ - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wcrtomb_chk(__s, __wchar, __ps, __builtin_object_size(__s, 2 > 1)); - return __wcrtomb_alias(__s, __wchar, __ps); -} - -extern size_t __mbsrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __mbsrtowcs_alias(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_chk_warn(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsrtowcs_chk(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __wcsrtombs_alias(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __wcsrtombs_chk_warn(char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_chk_warn(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsrtombs_chk(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern size_t __mbsnrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__mbsnrtowcs_alias(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsnrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsnrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsnrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsnrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsnrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_alias(__dst, __src, __nmc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_chk_warn(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsnrtowcs_chk(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsnrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__wcsnrtombs_alias(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsnrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t -__wcsnrtombs_chk_warn(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsnrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsnrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsnrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_alias(__dst, __src, __nwc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_chk_warn(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsnrtombs_chk(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrtowc(wchar_t *__restrict__ pwc, const char *__restrict__ s, - size_t n, mbstate_t *__restrict__ ps) - - ; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrlen(const char *__restrict__ s, size_t n, - mbstate_t *__restrict__ ps); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef unsigned long int wctype_t; -enum { - __ISwupper = 0, - __ISwlower = 1, - __ISwalpha = 2, - __ISwdigit = 3, - __ISwxdigit = 4, - __ISwspace = 5, - __ISwprint = 6, - __ISwgraph = 7, - __ISwblank = 8, - __ISwcntrl = 9, - __ISwpunct = 10, - __ISwalnum = 11, - - _ISwupper = - ((__ISwupper) < 8 - ? (int)((1UL << (__ISwupper)) << 24) - : ((__ISwupper) < 16 - ? (int)((1UL << (__ISwupper)) << 8) - : ((__ISwupper) < 24 ? (int)((1UL << (__ISwupper)) >> 8) - : (int)((1UL << (__ISwupper)) >> 24)))), - _ISwlower = - ((__ISwlower) < 8 - ? (int)((1UL << (__ISwlower)) << 24) - : ((__ISwlower) < 16 - ? (int)((1UL << (__ISwlower)) << 8) - : ((__ISwlower) < 24 ? (int)((1UL << (__ISwlower)) >> 8) - : (int)((1UL << (__ISwlower)) >> 24)))), - _ISwalpha = - ((__ISwalpha) < 8 - ? (int)((1UL << (__ISwalpha)) << 24) - : ((__ISwalpha) < 16 - ? (int)((1UL << (__ISwalpha)) << 8) - : ((__ISwalpha) < 24 ? (int)((1UL << (__ISwalpha)) >> 8) - : (int)((1UL << (__ISwalpha)) >> 24)))), - _ISwdigit = - ((__ISwdigit) < 8 - ? (int)((1UL << (__ISwdigit)) << 24) - : ((__ISwdigit) < 16 - ? (int)((1UL << (__ISwdigit)) << 8) - : ((__ISwdigit) < 24 ? (int)((1UL << (__ISwdigit)) >> 8) - : (int)((1UL << (__ISwdigit)) >> 24)))), - _ISwxdigit = - ((__ISwxdigit) < 8 ? (int)((1UL << (__ISwxdigit)) << 24) - : ((__ISwxdigit) < 16 - ? (int)((1UL << (__ISwxdigit)) << 8) - : ((__ISwxdigit) < 24 - ? (int)((1UL << (__ISwxdigit)) >> 8) - : (int)((1UL << (__ISwxdigit)) >> 24)))), - _ISwspace = - ((__ISwspace) < 8 - ? (int)((1UL << (__ISwspace)) << 24) - : ((__ISwspace) < 16 - ? (int)((1UL << (__ISwspace)) << 8) - : ((__ISwspace) < 24 ? (int)((1UL << (__ISwspace)) >> 8) - : (int)((1UL << (__ISwspace)) >> 24)))), - _ISwprint = - ((__ISwprint) < 8 - ? (int)((1UL << (__ISwprint)) << 24) - : ((__ISwprint) < 16 - ? (int)((1UL << (__ISwprint)) << 8) - : ((__ISwprint) < 24 ? (int)((1UL << (__ISwprint)) >> 8) - : (int)((1UL << (__ISwprint)) >> 24)))), - _ISwgraph = - ((__ISwgraph) < 8 - ? (int)((1UL << (__ISwgraph)) << 24) - : ((__ISwgraph) < 16 - ? (int)((1UL << (__ISwgraph)) << 8) - : ((__ISwgraph) < 24 ? (int)((1UL << (__ISwgraph)) >> 8) - : (int)((1UL << (__ISwgraph)) >> 24)))), - _ISwblank = - ((__ISwblank) < 8 - ? (int)((1UL << (__ISwblank)) << 24) - : ((__ISwblank) < 16 - ? (int)((1UL << (__ISwblank)) << 8) - : ((__ISwblank) < 24 ? (int)((1UL << (__ISwblank)) >> 8) - : (int)((1UL << (__ISwblank)) >> 24)))), - _ISwcntrl = - ((__ISwcntrl) < 8 - ? (int)((1UL << (__ISwcntrl)) << 24) - : ((__ISwcntrl) < 16 - ? (int)((1UL << (__ISwcntrl)) << 8) - : ((__ISwcntrl) < 24 ? (int)((1UL << (__ISwcntrl)) >> 8) - : (int)((1UL << (__ISwcntrl)) >> 24)))), - _ISwpunct = - ((__ISwpunct) < 8 - ? (int)((1UL << (__ISwpunct)) << 24) - : ((__ISwpunct) < 16 - ? (int)((1UL << (__ISwpunct)) << 8) - : ((__ISwpunct) < 24 ? (int)((1UL << (__ISwpunct)) >> 8) - : (int)((1UL << (__ISwpunct)) >> 24)))), - _ISwalnum = - ((__ISwalnum) < 8 - ? (int)((1UL << (__ISwalnum)) << 24) - : ((__ISwalnum) < 16 - ? (int)((1UL << (__ISwalnum)) << 8) - : ((__ISwalnum) < 24 ? (int)((1UL << (__ISwalnum)) >> 8) - : (int)((1UL << (__ISwalnum)) >> 24)))) -}; - -extern int iswalnum(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswalpha(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswcntrl(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswdigit(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswgraph(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswlower(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswprint(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswpunct(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswspace(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswupper(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswxdigit(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswblank(wint_t __wc) __attribute__((__nothrow__, __leaf__)); -extern wctype_t wctype(const char *__property) - __attribute__((__nothrow__, __leaf__)); - -extern int iswctype(wint_t __wc, wctype_t __desc) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towlower(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern wint_t towupper(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -typedef const __int32_t *wctrans_t; - -extern wctrans_t wctrans(const char *__property) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towctrans(wint_t __wc, wctrans_t __desc) - __attribute__((__nothrow__, __leaf__)); - -extern int iswalnum_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswalpha_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswcntrl_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswdigit_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswgraph_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswlower_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswprint_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswpunct_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswspace_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswupper_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswxdigit_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswblank_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wctype_t wctype_l(const char *__property, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswctype_l(wint_t __wc, wctype_t __desc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towlower_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towupper_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wctrans_t wctrans_l(const char *__property, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towctrans_l(wint_t __wc, wctrans_t __desc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct mbchar { - const char *ptr; - size_t bytes; - - _Bool wc_valid; - wchar_t wc; - char buf[24]; -}; - -typedef struct mbchar mbchar_t; -inline int mb_width_aux(wint_t wc) { - int w = wcwidth(wc); - - return (w >= 0 ? w : iswcntrl(wc) ? 0 : 1); -} -inline void mb_copy(mbchar_t *new_mbc, const mbchar_t *old_mbc) { - if (old_mbc->ptr == &old_mbc->buf[0]) { - memcpy(&new_mbc->buf[0], &old_mbc->buf[0], old_mbc->bytes); - new_mbc->ptr = &new_mbc->buf[0]; - } else - new_mbc->ptr = old_mbc->ptr; - new_mbc->bytes = old_mbc->bytes; - if ((new_mbc->wc_valid = old_mbc->wc_valid)) - new_mbc->wc = old_mbc->wc; -} -extern const unsigned int is_basic_table[]; - -inline _Bool - -is_basic(char c) { - return (is_basic_table[(unsigned char)c >> 5] >> ((unsigned char)c & 31)) & 1; -} - -extern size_t strnlen1(const char *string, size_t maxlen) - __attribute__((__pure__)); - -struct mbuiter_multi { - - _Bool in_shift; - mbstate_t state; - - _Bool next_done; - struct mbchar cur; -}; - -inline void mbuiter_multi_next(struct mbuiter_multi *iter) { - if (iter->next_done) - return; - if (iter->in_shift) - goto with_shift; - - if (is_basic(*iter->cur.ptr)) { - - iter->cur.bytes = 1; - iter->cur.wc = *iter->cur.ptr; - iter->cur.wc_valid = 1; - } else { - - ((void)sizeof((mbsinit(&iter->state)) ? 1 : 0), __extension__({ - if (mbsinit(&iter->state)) - ; - else - __assert_fail("mbsinit (&iter->state)", "./lib/mbuiter.h", 143, - __extension__ __PRETTY_FUNCTION__); - })); - iter->in_shift = 1; - with_shift: - iter->cur.bytes = rpl_mbrtowc( - &iter->cur.wc, iter->cur.ptr, - strnlen1(iter->cur.ptr, (__ctype_get_mb_cur_max())), &iter->state); - if (iter->cur.bytes == (size_t)-1) { - - iter->cur.bytes = 1; - iter->cur.wc_valid = 0; - - } else if (iter->cur.bytes == (size_t)-2) { - - iter->cur.bytes = strlen(iter->cur.ptr); - iter->cur.wc_valid = 0; - - } else { - if (iter->cur.bytes == 0) { - - iter->cur.bytes = 1; - - ((void)sizeof((*iter->cur.ptr == '\0') ? 1 : 0), __extension__({ - if (*iter->cur.ptr == '\0') - ; - else - __assert_fail("*iter->cur.ptr == '\\0'", "./lib/mbuiter.h", 171, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof((iter->cur.wc == 0) ? 1 : 0), __extension__({ - if (iter->cur.wc == 0) - ; - else - __assert_fail("iter->cur.wc == 0", "./lib/mbuiter.h", 172, - __extension__ __PRETTY_FUNCTION__); - })); - } - iter->cur.wc_valid = 1; - - if (mbsinit(&iter->state)) - iter->in_shift = 0; - } - } - iter->next_done = 1; -} - -inline void mbuiter_multi_reloc(struct mbuiter_multi *iter, ptrdiff_t ptrdiff) { - iter->cur.ptr += ptrdiff; -} - -inline void mbuiter_multi_copy(struct mbuiter_multi *new_iter, - const struct mbuiter_multi *old_iter) { - if ((new_iter->in_shift = old_iter->in_shift)) - memcpy(&new_iter->state, &old_iter->state, sizeof(mbstate_t)); - else - memset(&new_iter->state, 0, sizeof(mbstate_t)); - new_iter->next_done = old_iter->next_done; - mb_copy(&new_iter->cur, &old_iter->cur); -} - -typedef struct mbuiter_multi mbui_iterator_t; - -int strintcmp(char const *, char const *) __attribute__((__nonnull__)) -__attribute__((__pure__)); -int strnumcmp(char const *, char const *, int, int) __attribute__((__nonnull__)) -__attribute__((__pure__)); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -_Static_assert((18446744073709551615UL) <= (0x7fffffffffffffffL * 2UL + 1UL), - "verify (" - "SIZE_MAX <= ULONG_MAX" - ")"); -enum { - - EXPR_INVALID = 2, - - EXPR_FAILURE -}; - -enum valtype { integer, string }; -typedef enum valtype TYPE; - -struct valinfo { - TYPE type; - union { - mpz_t i; - char *s; - } u; -}; -typedef struct valinfo VALUE; - -static char **args; - -static VALUE *eval(_Bool); -static _Bool nomoreargs(void); -static _Bool null(VALUE *v); -static void printv(VALUE *v); -static size_t mbs_logical_cspn(char const *s, char const *accept) { - size_t idx = 0; - - if (accept[0] == '\0') - return 0; - - if ((__ctype_get_mb_cur_max()) > 1) { - mbui_iterator_t iter; - - for (((iter).cur.ptr = (s), (iter).in_shift = 0, - memset(&(iter).state, '\0', sizeof(mbstate_t)), (iter).next_done = 0); - (mbuiter_multi_next(&(iter)), - !(((iter).cur).wc_valid && ((iter).cur).wc == 0)); - ((iter).cur.ptr += (iter).cur.bytes, (iter).next_done = 0)) { - ++idx; - if ((((iter).cur).bytes) == 1) { - if (mbschr(accept, *(iter).cur.ptr)) - return idx; - } else { - mbui_iterator_t aiter; - - for (((aiter).cur.ptr = (accept), (aiter).in_shift = 0, - memset(&(aiter).state, '\0', sizeof(mbstate_t)), - (aiter).next_done = 0); - (mbuiter_multi_next(&(aiter)), - !(((aiter).cur).wc_valid && ((aiter).cur).wc == 0)); - ((aiter).cur.ptr += (aiter).cur.bytes, (aiter).next_done = 0)) - if ((((aiter).cur).wc_valid && ((iter).cur).wc_valid - ? ((aiter).cur).wc == ((iter).cur).wc - : ((aiter).cur).bytes == ((iter).cur).bytes && - memcmp(((aiter).cur).ptr, ((iter).cur).ptr, - ((aiter).cur).bytes) == 0)) - return idx; - } - } - - return 0; - } else { - - size_t i = strcspn(s, accept); - return (s[i] ? i + 1 : 0); - } -} -static char *mbs_logical_substr(char const *s, size_t pos, size_t len) { - char *v, *vlim; - - size_t blen = strlen(s); - size_t llen = ((__ctype_get_mb_cur_max()) > 1) ? mbslen(s) : blen; - - if (llen < pos || pos == 0 || len == 0 || len == (18446744073709551615UL)) - return xstrdup(""); - - size_t vlen = (((len) < (llen - pos + 1)) ? (len) : (llen - pos + 1)); - - if ((__ctype_get_mb_cur_max()) == 1) { - - v = xmalloc(vlen + 1); - vlim = mempcpy(v, s + pos - 1, vlen); - } else { - - vlim = v = xmalloc(blen + 1); - - mbui_iterator_t iter; - size_t idx = 1; - for (((iter).cur.ptr = (s), (iter).in_shift = 0, - memset(&(iter).state, '\0', sizeof(mbstate_t)), (iter).next_done = 0); - (mbuiter_multi_next(&(iter)), - !(((iter).cur).wc_valid && ((iter).cur).wc == 0)) && - vlen > 0; - ((iter).cur.ptr += (iter).cur.bytes, (iter).next_done = 0), ++idx) { - - if (idx < pos) - continue; - - --vlen; - vlim = mempcpy(vlim, (iter).cur.ptr, (((iter).cur).bytes)); - } - } - *vlim = '\0'; - return v; -} -static size_t mbs_offset_to_chars(char const *s, size_t ofs) { - mbui_iterator_t iter; - size_t c = 0; - for (((iter).cur.ptr = (s), (iter).in_shift = 0, - memset(&(iter).state, '\0', sizeof(mbstate_t)), (iter).next_done = 0); - (mbuiter_multi_next(&(iter)), - !(((iter).cur).wc_valid && ((iter).cur).wc == 0)); - ((iter).cur.ptr += (iter).cur.bytes, (iter).next_done = 0)) { - ptrdiff_t d = (iter).cur.ptr - s; - if (d >= ofs) - break; - ++c; - } - return c; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s EXPRESSION\n or: %s OPTION\n", 5) - - , - program_name, program_name); - putchar_unlocked('\n'); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nPrint the value of EXPRESSION to standard output. A " - "blank line below\nseparates increasing precedence groups. " - "EXPRESSION may be:\n\n ARG1 | ARG2 ARG1 if it is " - "neither null nor 0, otherwise ARG2\n\n ARG1 & ARG2 " - "ARG1 if neither argument is null or 0, otherwise 0\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\n ARG1 < ARG2 ARG1 is less than ARG2\n ARG1 <= ARG2 " - "ARG1 is less than or equal to ARG2\n ARG1 = ARG2 ARG1 is " - "equal to ARG2\n ARG1 != ARG2 ARG1 is unequal to ARG2\n " - "ARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n ARG1 > " - "ARG2 ARG1 is greater than ARG2\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n ARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n " - "ARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - "\n ARG1 * ARG2 arithmetic product of ARG1 and ARG2\n ARG1 " - "/ ARG2 arithmetic quotient of ARG1 divided by ARG2\n ARG1 " - "% ARG2 arithmetic remainder of ARG1 divided by ARG2\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\n STRING : REGEXP anchored pattern match of REGEXP in " - "STRING\n\n match STRING REGEXP same as STRING : REGEXP\n " - "substr STRING POS LENGTH substring of STRING, POS counted from " - "1\n index STRING CHARS index in STRING where any CHARS " - "is found, or 0\n length STRING length of STRING\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " + TOKEN interpret TOKEN as a string, " - "even if it is a\n keyword " - "like 'match' or an operator like '/'\n\n ( EXPRESSION ) " - " value of EXPRESSION\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nBeware that many operators need to be escaped or quoted for " - "shells.\nComparisons are arithmetic if both ARGs are numbers, " - "else lexicographical.\nPattern matches return the string matched " - "between \\( and \\) or null; if\n\\( and \\) are not used, they " - "return the number of characters matched or 0.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nExit status is 0 if EXPRESSION is neither null nor 0, 1 " - "if EXPRESSION is null\nor 0, 2 if EXPRESSION is " - "syntactically invalid, and 3 if an error occurred.\n", - 5), - stdout) - - ; - emit_ancillary_info("expr"); - } - exit(status); -} - -int main(int argc, char **argv) { - VALUE *v; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(EXPR_FAILURE); - atexit(close_stdout); - - parse_long_options(argc, argv, "expr", "GNU coreutils", "9.1", usage, - ("Mike Parker"), ("James Youngman"), ("Paul Eggert"), - (char const *)((void *)0)); - - unsigned int u_argc = argc; - if (1 < u_argc && (strcmp(argv[1], "--") == 0)) { - --u_argc; - ++argv; - } - - if (u_argc <= 1) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(EXPR_INVALID); - } - - args = argv + 1; - - v = eval(1); - if (!nomoreargs()) - ((!!sizeof(struct { - _Static_assert( - EXPR_INVALID, - "verify_expr (" - "EXPR_INVALID" - ", " - "(error (EXPR_INVALID, 0, dcgettext (((void *)0), \"syntax error: " - "unexpected argument %s\", 5), quotearg_n_style (0, " - "locale_quoting_style, *args)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), - "syntax error: unexpected argument %s", 5), - quotearg_n_style(0, locale_quoting_style, *args)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), - "syntax error: unexpected argument %s", 5), - quotearg_n_style(0, locale_quoting_style, *args)), - ((0) ? (void)0 : __builtin_unreachable())))); - - printv(v); - - exit(null(v)); -} - -static VALUE *int_value(unsigned long int i) { - VALUE *v = xmalloc(sizeof *v); - v->type = integer; - - __gmpz_init_set_ui(v->u.i, i); - return v; -} - -static VALUE *str_value(char const *s) { - VALUE *v = xmalloc(sizeof *v); - v->type = string; - v->u.s = xstrdup(s); - return v; -} - -static void freev(VALUE *v) { - if (v->type == string) - free(v->u.s); - else - - __gmpz_clear(v->u.i); - free(v); -} - -static void printv(VALUE *v) { - switch (v->type) { - case integer: - - __gmpz_out_str(stdout, 10, v->u.i); - putchar_unlocked('\n'); - break; - case string: - puts(v->u.s); - break; - default: - abort(); - } -} - -__attribute__((__pure__)) static _Bool - -null(VALUE *v) { - switch (v->type) { - case integer: - return ((v->u.i)->_mp_size < 0 ? -1 : (v->u.i)->_mp_size > 0) == 0; - case string: { - char const *cp = v->u.s; - if (*cp == '\0') - return 1; - - cp += (*cp == '-'); - - do { - if (*cp != '0') - return 0; - } while (*++cp); - - return 1; - } - default: - abort(); - } -} - -__attribute__((__pure__)) static _Bool - -looks_like_integer(char const *cp) { - cp += (*cp == '-'); - - do - if (!((unsigned int)(*cp) - '0' <= 9)) - return 0; - while (*++cp); - - return 1; -} - -static void tostring(VALUE *v) { - switch (v->type) { - case integer: { - char *s = __gmpz_get_str(((void *)0), 10, v->u.i); - - __gmpz_clear(v->u.i); - v->u.s = s; - v->type = string; - } break; - case string: - break; - default: - abort(); - } -} - -static _Bool - -toarith(VALUE *v) { - switch (v->type) { - case integer: - return 1; - case string: { - char *s = v->u.s; - - if (!looks_like_integer(s)) - return 0; - if (__gmpz_init_set_str(v->u.i, s, 10) != 0) - ((!!sizeof(struct { - _Static_assert(EXPR_FAILURE, - "verify_expr (" - "EXPR_FAILURE" - ", " - "(error (EXPR_FAILURE, 34, \"%s\", (s)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_FAILURE, 34, "%s", (s)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_FAILURE, 34, "%s", (s)), - ((0) ? (void)0 : __builtin_unreachable())))); - free(s); - v->type = integer; - return 1; - } - default: - abort(); - } -} - -static size_t getsize(mpz_t i) { - if (((i)->_mp_size < 0 ? -1 : (i)->_mp_size > 0) < 0) - return (18446744073709551615UL); - if (__gmpz_fits_ulong_p(i)) { - unsigned long int ul = __gmpz_get_ui(i); - if (ul < (18446744073709551615UL)) - return ul; - } - return (18446744073709551615UL) - 1; -} - -static _Bool - -nextarg(char const *str) { - if (*args == ((void *)0)) - return 0; - else { - - _Bool r = (strcmp(*args, str) == 0); - args += r; - return r; - } -} - -static _Bool - -nomoreargs(void) { - return *args == 0; -} - -static void require_more_args(void) { - if (nomoreargs()) - ((!!sizeof(struct { - _Static_assert( - EXPR_INVALID, - "verify_expr (" - "EXPR_INVALID" - ", " - "(error (EXPR_INVALID, 0, dcgettext (((void *)0), \"syntax error: " - "missing argument after %s\", 5), quotearg_n_style (0, " - "locale_quoting_style, *(args - 1))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), - "syntax error: missing argument after %s", 5), - quotearg_n_style(0, locale_quoting_style, *(args - 1))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), - "syntax error: missing argument after %s", 5), - quotearg_n_style(0, locale_quoting_style, *(args - 1))), - ((0) ? (void)0 : __builtin_unreachable())))); -} -static VALUE *docolon(VALUE *sv, VALUE *pv) { - VALUE *v; - char const *errmsg; - struct re_pattern_buffer re_buffer; - char fastmap[(0x7f * 2 + 1) + 1]; - struct re_registers re_regs; - regoff_t matchlen; - - tostring(sv); - tostring(pv); - - re_regs.num_regs = 0; - re_regs.start = ((void *)0); - re_regs.end = ((void *)0); - - re_buffer.buffer = ((void *)0); - re_buffer.allocated = 0; - re_buffer.fastmap = fastmap; - re_buffer.translate = ((void *)0); - re_syntax_options = - ((((((unsigned long int)1) << 1) << 1) | - ((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) << 1) | - (((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) << 1) - << 1) | - (((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) | - ((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1)) | - (((unsigned long int)1) << 1) | - ((((((((((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1)) & - ~((((((((((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) & - ~((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1); - errmsg = re_compile_pattern(pv->u.s, strlen(pv->u.s), &re_buffer); - if (errmsg) - ((!!sizeof(struct { - _Static_assert( - EXPR_INVALID, - "verify_expr (" - "EXPR_INVALID" - ", " - "(error (EXPR_INVALID, 0, \"%s\", (errmsg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_INVALID, 0, "%s", (errmsg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_INVALID, 0, "%s", (errmsg)), - ((0) ? (void)0 : __builtin_unreachable())))); - re_buffer.newline_anchor = 0; - - matchlen = re_match(&re_buffer, sv->u.s, strlen(sv->u.s), 0, &re_regs); - if (0 <= matchlen) { - - if (re_buffer.re_nsub > 0) { - if (re_regs.end[1] < 0) - v = str_value(""); - else { - sv->u.s[re_regs.end[1]] = '\0'; - v = str_value(sv->u.s + re_regs.start[1]); - } - } else { - - size_t i = ((__ctype_get_mb_cur_max()) == 1 - ? matchlen - : mbs_offset_to_chars(sv->u.s, matchlen)); - v = int_value(i); - } - } else if (matchlen == -1) { - - if (re_buffer.re_nsub > 0) - v = str_value(""); - else - v = int_value(0); - } else - ((!!sizeof(struct { - _Static_assert( - EXPR_FAILURE, - "verify_expr (" - "EXPR_FAILURE" - ", " - "(error (EXPR_FAILURE, (matchlen == -2 ? (*__errno_location ()) : " - "75), dcgettext (((void *)0), \"error in regular expression " - "matcher\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_FAILURE, (matchlen == -2 ? (*__errno_location()) : 75), - dcgettext(((void *)0), "error in regular expression matcher", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_FAILURE, (matchlen == -2 ? (*__errno_location()) : 75), - dcgettext(((void *)0), "error in regular expression matcher", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - - if (0 < re_regs.num_regs) { - free(re_regs.start); - free(re_regs.end); - } - re_buffer.fastmap = ((void *)0); - regfree(&re_buffer); - return v; -} - -static VALUE *eval7(_Bool evaluate) { - VALUE *v; - - require_more_args(); - - if (nextarg("(")) { - v = eval(evaluate); - if (nomoreargs()) - ((!!sizeof(struct { - _Static_assert( - EXPR_INVALID, - "verify_expr (" - "EXPR_INVALID" - ", " - "(error (EXPR_INVALID, 0, dcgettext (((void *)0), \"syntax error: " - "expecting ')' after %s\", 5), quotearg_n_style (0, " - "locale_quoting_style, *(args - 1))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), - "syntax error: expecting ')' after %s", 5), - quotearg_n_style(0, locale_quoting_style, *(args - 1))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), - "syntax error: expecting ')' after %s", 5), - quotearg_n_style(0, locale_quoting_style, *(args - 1))), - ((0) ? (void)0 : __builtin_unreachable())))); - if (!nextarg(")")) - ((!!sizeof(struct { - _Static_assert( - EXPR_INVALID, - "verify_expr (" - "EXPR_INVALID" - ", " - "(error (EXPR_INVALID, 0, dcgettext (((void *)0), \"syntax error: " - "expecting ')' instead of %s\", 5), quotearg_n_style (0, " - "locale_quoting_style, *args)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), - "syntax error: expecting ')' instead of %s", 5), - quotearg_n_style(0, locale_quoting_style, *args)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), - "syntax error: expecting ')' instead of %s", 5), - quotearg_n_style(0, locale_quoting_style, *args)), - ((0) ? (void)0 : __builtin_unreachable())))); - return v; - } - - if (nextarg(")")) - ((!!sizeof(struct { - _Static_assert(EXPR_INVALID, - "verify_expr (" - "EXPR_INVALID" - ", " - "(error (EXPR_INVALID, 0, dcgettext (((void *)0), " - "\"syntax error: unexpected ')'\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), "syntax error: unexpected ')'", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), "syntax error: unexpected ')'", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return str_value(*args++); -} - -static VALUE *eval6(_Bool evaluate) { - VALUE *l; - VALUE *r; - VALUE *v; - VALUE *i1; - VALUE *i2; - - if (nextarg("+")) { - require_more_args(); - return str_value(*args++); - } else if (nextarg("length")) { - r = eval6(evaluate); - tostring(r); - v = int_value(mbslen(r->u.s)); - freev(r); - return v; - } else if (nextarg("match")) { - l = eval6(evaluate); - r = eval6(evaluate); - if (evaluate) { - v = docolon(l, r); - freev(l); - } else - v = l; - freev(r); - return v; - } else if (nextarg("index")) { - size_t pos; - - l = eval6(evaluate); - r = eval6(evaluate); - tostring(l); - tostring(r); - pos = mbs_logical_cspn(l->u.s, r->u.s); - v = int_value(pos); - freev(l); - freev(r); - return v; - } else if (nextarg("substr")) { - l = eval6(evaluate); - i1 = eval6(evaluate); - i2 = eval6(evaluate); - tostring(l); - - if (!toarith(i1) || !toarith(i2)) - v = str_value(""); - else { - size_t pos = getsize(i1->u.i); - size_t len = getsize(i2->u.i); - - char *s = mbs_logical_substr(l->u.s, pos, len); - v = str_value(s); - free(s); - } - freev(l); - freev(i1); - freev(i2); - return v; - } else - return eval7(evaluate); -} - -static VALUE *eval5(_Bool evaluate) { - VALUE *l; - VALUE *r; - VALUE *v; - - l = eval6(evaluate); - while (1) { - if (nextarg(":")) { - r = eval6(evaluate); - if (evaluate) { - v = docolon(l, r); - freev(l); - l = v; - } - freev(r); - } else - return l; - } -} - -static VALUE *eval4(_Bool evaluate) { - VALUE *l; - VALUE *r; - enum { multiply, divide, mod } fxn; - - l = eval5(evaluate); - while (1) { - if (nextarg("*")) - fxn = multiply; - else if (nextarg("/")) - fxn = divide; - else if (nextarg("%")) - fxn = mod; - else - return l; - r = eval5(evaluate); - if (evaluate) { - if (!toarith(l) || !toarith(r)) - ((!!sizeof(struct { - _Static_assert(EXPR_INVALID, - "verify_expr (" - "EXPR_INVALID" - ", " - "(error (EXPR_INVALID, 0, dcgettext (((void *)0), " - "\"non-integer argument\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), "non-integer argument", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), "non-integer argument", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (fxn != multiply && - ((r->u.i)->_mp_size < 0 ? -1 : (r->u.i)->_mp_size > 0) == 0) - ((!!sizeof(struct { - _Static_assert(EXPR_INVALID, - "verify_expr (" - "EXPR_INVALID" - ", " - "(error (EXPR_INVALID, 0, dcgettext (((void *)0), " - "\"division by zero\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), "division by zero", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), "division by zero", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - ((fxn == multiply ? __gmpz_mul - - : fxn == divide ? __gmpz_tdiv_q - - : __gmpz_tdiv_r)(l->u.i, l->u.i, r->u.i)); - } - freev(r); - } -} - -static VALUE *eval3(_Bool evaluate) { - VALUE *l; - VALUE *r; - enum { plus, minus } fxn; - - l = eval4(evaluate); - while (1) { - if (nextarg("+")) - fxn = plus; - else if (nextarg("-")) - fxn = minus; - else - return l; - r = eval4(evaluate); - if (evaluate) { - if (!toarith(l) || !toarith(r)) - ((!!sizeof(struct { - _Static_assert(EXPR_INVALID, - "verify_expr (" - "EXPR_INVALID" - ", " - "(error (EXPR_INVALID, 0, dcgettext (((void *)0), " - "\"non-integer argument\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), "non-integer argument", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), "non-integer argument", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - (fxn == plus ? __gmpz_add : __gmpz_sub)(l->u.i, l->u.i, r->u.i); - } - freev(r); - } -} - -static VALUE *eval2(_Bool evaluate) { - VALUE *l; - - l = eval3(evaluate); - while (1) { - VALUE *r; - enum { - less_than, - less_equal, - equal, - not_equal, - greater_equal, - greater_than - } fxn; - - _Bool val = 0; - - if (nextarg("<")) - fxn = less_than; - else if (nextarg("<=")) - fxn = less_equal; - else if (nextarg("=") || nextarg("==")) - fxn = equal; - else if (nextarg("!=")) - fxn = not_equal; - else if (nextarg(">=")) - fxn = greater_equal; - else if (nextarg(">")) - fxn = greater_than; - else - return l; - r = eval3(evaluate); - - if (evaluate) { - int cmp; - tostring(l); - tostring(r); - - if (looks_like_integer(l->u.s) && looks_like_integer(r->u.s)) - cmp = strintcmp(l->u.s, r->u.s); - else { - - (*__errno_location()) = 0; - cmp = strcoll(l->u.s, r->u.s); - - if ((*__errno_location())) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "string comparison failed", 5)); - error(0, 0, - dcgettext(((void *)0), - "set LC_ALL='C' to work around the problem", 5)); - ((!!sizeof(struct { - _Static_assert( - EXPR_INVALID, - "verify_expr (" - "EXPR_INVALID" - ", " - "(error (EXPR_INVALID, 0, dcgettext (((void *)0), \"the " - "strings compared were %s and %s\", 5), quotearg_n_style (0, " - "locale_quoting_style, l->u.s), quotearg_n_style (1, " - "locale_quoting_style, r->u.s)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), - "the strings compared were %s and %s", 5), - quotearg_n_style(0, locale_quoting_style, l->u.s), - quotearg_n_style(1, locale_quoting_style, r->u.s)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXPR_INVALID, 0, - dcgettext(((void *)0), - "the strings compared were %s and %s", 5), - quotearg_n_style(0, locale_quoting_style, l->u.s), - quotearg_n_style(1, locale_quoting_style, r->u.s)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - } - - switch (fxn) { - case less_than: - val = (cmp < 0); - break; - case less_equal: - val = (cmp <= 0); - break; - case equal: - val = (cmp == 0); - break; - case not_equal: - val = (cmp != 0); - break; - case greater_equal: - val = (cmp >= 0); - break; - case greater_than: - val = (cmp > 0); - break; - default: - abort(); - } - } - - freev(l); - freev(r); - l = int_value(val); - } -} - -static VALUE *eval1(_Bool evaluate) { - VALUE *l; - VALUE *r; - - l = eval2(evaluate); - while (1) { - if (nextarg("&")) { - r = eval2(evaluate && !null(l)); - if (null(l) || null(r)) { - freev(l); - freev(r); - l = int_value(0); - } else - freev(r); - } else - return l; - } -} - -static VALUE *eval(_Bool evaluate) { - VALUE *l; - VALUE *r; - - l = eval1(evaluate); - while (1) { - if (nextarg("|")) { - r = eval1(evaluate && null(l)); - if (null(l)) { - freev(l); - l = r; - if (null(l)) { - freev(l); - l = int_value(0); - } - } else - freev(r); - } else - return l; - } -} diff --git a/tests/source/coreutils/factor.c b/tests/source/coreutils/factor.c deleted file mode 100644 index 6bdce63..0000000 --- a/tests/source/coreutils/factor.c +++ /dev/null @@ -1,16851 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef unsigned long int mp_limb_t; -typedef long int mp_limb_signed_t; - -typedef unsigned long int mp_bitcnt_t; - -typedef struct { - int _mp_alloc; - - int _mp_size; - - mp_limb_t *_mp_d; -} __mpz_struct; - -typedef __mpz_struct MP_INT; -typedef __mpz_struct mpz_t[1]; - -typedef mp_limb_t *mp_ptr; -typedef const mp_limb_t *mp_srcptr; - -typedef long int mp_size_t; -typedef long int mp_exp_t; - -typedef struct { - __mpz_struct _mp_num; - __mpz_struct _mp_den; -} __mpq_struct; - -typedef __mpq_struct MP_RAT; -typedef __mpq_struct mpq_t[1]; - -typedef struct { - int _mp_prec; - - int _mp_size; - - mp_exp_t _mp_exp; - mp_limb_t *_mp_d; -} __mpf_struct; - -typedef __mpf_struct mpf_t[1]; - -typedef enum { - GMP_RAND_ALG_DEFAULT = 0, - GMP_RAND_ALG_LC = GMP_RAND_ALG_DEFAULT -} gmp_randalg_t; - -typedef struct { - mpz_t _mp_seed; - gmp_randalg_t _mp_alg; - union { - void *_mp_lc; - } _mp_algdata; -} __gmp_randstate_struct; -typedef __gmp_randstate_struct gmp_randstate_t[1]; - -typedef const __mpz_struct *mpz_srcptr; -typedef __mpz_struct *mpz_ptr; -typedef const __mpf_struct *mpf_srcptr; -typedef __mpf_struct *mpf_ptr; -typedef const __mpq_struct *mpq_srcptr; -typedef __mpq_struct *mpq_ptr; -void __gmp_set_memory_functions(void *(*)(size_t), - void *(*)(void *, size_t, size_t), - void (*)(void *, size_t)); - -void __gmp_get_memory_functions(void *(**)(size_t), - void *(**)(void *, size_t, size_t), - void (**)(void *, size_t)); - -extern const int __gmp_bits_per_limb; - -extern int __gmp_errno; - -extern const char *const __gmp_version; - -void __gmp_randinit(gmp_randstate_t, gmp_randalg_t, ...); - -void __gmp_randinit_default(gmp_randstate_t); - -void __gmp_randinit_lc_2exp(gmp_randstate_t, mpz_srcptr, unsigned long int, - mp_bitcnt_t); - -int __gmp_randinit_lc_2exp_size(gmp_randstate_t, mp_bitcnt_t); - -void __gmp_randinit_mt(gmp_randstate_t); - -void __gmp_randinit_set(gmp_randstate_t, const __gmp_randstate_struct *); - -void __gmp_randseed(gmp_randstate_t, mpz_srcptr); - -void __gmp_randseed_ui(gmp_randstate_t, unsigned long int); - -void __gmp_randclear(gmp_randstate_t); - -unsigned long __gmp_urandomb_ui(gmp_randstate_t, unsigned long); - -unsigned long __gmp_urandomm_ui(gmp_randstate_t, unsigned long); - -int __gmp_asprintf(char **, const char *, ...); - -int __gmp_fprintf(FILE *, const char *, ...); -int __gmp_printf(const char *, ...); - -int __gmp_snprintf(char *, size_t, const char *, ...); - -int __gmp_sprintf(char *, const char *, ...); - -int __gmp_vasprintf(char **, const char *, va_list); - -int __gmp_vfprintf(FILE *, const char *, va_list); - -int __gmp_vprintf(const char *, va_list); - -int __gmp_vsnprintf(char *, size_t, const char *, va_list); - -int __gmp_vsprintf(char *, const char *, va_list); - -int __gmp_fscanf(FILE *, const char *, ...); - -int __gmp_scanf(const char *, ...); - -int __gmp_sscanf(const char *, const char *, ...); - -int __gmp_vfscanf(FILE *, const char *, va_list); - -int __gmp_vscanf(const char *, va_list); - -int __gmp_vsscanf(const char *, const char *, va_list); - -void *__gmpz_realloc(mpz_ptr, mp_size_t); - -void __gmpz_abs(mpz_ptr, mpz_srcptr); - -void __gmpz_add(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_add_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_addmul(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_addmul_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_and(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_array_init(mpz_ptr, mp_size_t, mp_size_t); - -void __gmpz_bin_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_bin_uiui(mpz_ptr, unsigned long int, unsigned long int); - -void __gmpz_cdiv_q(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_cdiv_q_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_cdiv_q_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_cdiv_qr(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr); - -unsigned long int __gmpz_cdiv_qr_ui(mpz_ptr, mpz_ptr, mpz_srcptr, - unsigned long int); - -void __gmpz_cdiv_r(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_cdiv_r_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_cdiv_r_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -unsigned long int __gmpz_cdiv_ui(mpz_srcptr, unsigned long int) - __attribute__((__pure__)); - -void __gmpz_clear(mpz_ptr); - -void __gmpz_clears(mpz_ptr, ...); - -void __gmpz_clrbit(mpz_ptr, mp_bitcnt_t); - -int __gmpz_cmp(mpz_srcptr, mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_cmp_d(mpz_srcptr, double) __attribute__((__pure__)); - -int __gmpz_cmp_si(mpz_srcptr, signed long int) __attribute__((__pure__)); - -int __gmpz_cmp_ui(mpz_srcptr, unsigned long int) __attribute__((__pure__)); - -int __gmpz_cmpabs(mpz_srcptr, mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_cmpabs_d(mpz_srcptr, double) __attribute__((__pure__)); - -int __gmpz_cmpabs_ui(mpz_srcptr, unsigned long int) __attribute__((__pure__)); - -void __gmpz_com(mpz_ptr, mpz_srcptr); - -void __gmpz_combit(mpz_ptr, mp_bitcnt_t); - -int __gmpz_congruent_p(mpz_srcptr, mpz_srcptr, mpz_srcptr) - __attribute__((__pure__)); - -int __gmpz_congruent_2exp_p(mpz_srcptr, mpz_srcptr, mp_bitcnt_t) - __attribute__((__pure__)); - -int __gmpz_congruent_ui_p(mpz_srcptr, unsigned long, unsigned long) - __attribute__((__pure__)); - -void __gmpz_divexact(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_divexact_ui(mpz_ptr, mpz_srcptr, unsigned long); - -int __gmpz_divisible_p(mpz_srcptr, mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_divisible_ui_p(mpz_srcptr, unsigned long) __attribute__((__pure__)); - -int __gmpz_divisible_2exp_p(mpz_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -void __gmpz_dump(mpz_srcptr); - -void *__gmpz_export(void *, size_t *, int, size_t, int, size_t, mpz_srcptr); - -void __gmpz_fac_ui(mpz_ptr, unsigned long int); - -void __gmpz_2fac_ui(mpz_ptr, unsigned long int); - -void __gmpz_mfac_uiui(mpz_ptr, unsigned long int, unsigned long int); - -void __gmpz_primorial_ui(mpz_ptr, unsigned long int); - -void __gmpz_fdiv_q(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_fdiv_q_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_fdiv_q_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_fdiv_qr(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr); - -unsigned long int __gmpz_fdiv_qr_ui(mpz_ptr, mpz_ptr, mpz_srcptr, - unsigned long int); - -void __gmpz_fdiv_r(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_fdiv_r_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_fdiv_r_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -unsigned long int __gmpz_fdiv_ui(mpz_srcptr, unsigned long int) - __attribute__((__pure__)); - -void __gmpz_fib_ui(mpz_ptr, unsigned long int); - -void __gmpz_fib2_ui(mpz_ptr, mpz_ptr, unsigned long int); - -int __gmpz_fits_sint_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_fits_slong_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_fits_sshort_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_fits_uint_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_fits_ulong_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_fits_ushort_p(mpz_srcptr) __attribute__((__pure__)); - -void __gmpz_gcd(mpz_ptr, mpz_srcptr, mpz_srcptr); - -unsigned long int __gmpz_gcd_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_gcdext(mpz_ptr, mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr); - -double __gmpz_get_d(mpz_srcptr) __attribute__((__pure__)); - -double __gmpz_get_d_2exp(signed long int *, mpz_srcptr); - -long int __gmpz_get_si(mpz_srcptr) __attribute__((__pure__)); - -char *__gmpz_get_str(char *, int, mpz_srcptr); - -unsigned long int __gmpz_get_ui(mpz_srcptr) __attribute__((__pure__)); - -mp_limb_t __gmpz_getlimbn(mpz_srcptr, mp_size_t) __attribute__((__pure__)); - -mp_bitcnt_t __gmpz_hamdist(mpz_srcptr, mpz_srcptr) __attribute__((__pure__)); - -void __gmpz_import(mpz_ptr, size_t, int, size_t, int, size_t, const void *); - -void __gmpz_init(mpz_ptr); - -void __gmpz_init2(mpz_ptr, mp_bitcnt_t); - -void __gmpz_inits(mpz_ptr, ...); - -void __gmpz_init_set(mpz_ptr, mpz_srcptr); - -void __gmpz_init_set_d(mpz_ptr, double); - -void __gmpz_init_set_si(mpz_ptr, signed long int); - -int __gmpz_init_set_str(mpz_ptr, const char *, int); - -void __gmpz_init_set_ui(mpz_ptr, unsigned long int); - -size_t __gmpz_inp_raw(mpz_ptr, FILE *); - -size_t __gmpz_inp_str(mpz_ptr, FILE *, int); - -int __gmpz_invert(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_ior(mpz_ptr, mpz_srcptr, mpz_srcptr); - -int __gmpz_jacobi(mpz_srcptr, mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_kronecker_si(mpz_srcptr, long) __attribute__((__pure__)); - -int __gmpz_kronecker_ui(mpz_srcptr, unsigned long) __attribute__((__pure__)); - -int __gmpz_si_kronecker(long, mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_ui_kronecker(unsigned long, mpz_srcptr) __attribute__((__pure__)); - -void __gmpz_lcm(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_lcm_ui(mpz_ptr, mpz_srcptr, unsigned long); - -void __gmpz_lucnum_ui(mpz_ptr, unsigned long int); - -void __gmpz_lucnum2_ui(mpz_ptr, mpz_ptr, unsigned long int); - -int __gmpz_millerrabin(mpz_srcptr, int) __attribute__((__pure__)); - -void __gmpz_mod(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_mul(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_mul_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -void __gmpz_mul_si(mpz_ptr, mpz_srcptr, long int); - -void __gmpz_mul_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_neg(mpz_ptr, mpz_srcptr); - -void __gmpz_nextprime(mpz_ptr, mpz_srcptr); - -size_t __gmpz_out_raw(FILE *, mpz_srcptr); - -size_t __gmpz_out_str(FILE *, int, mpz_srcptr); - -int __gmpz_perfect_power_p(mpz_srcptr) __attribute__((__pure__)); - -int __gmpz_perfect_square_p(mpz_srcptr) __attribute__((__pure__)); - -mp_bitcnt_t __gmpz_popcount(mpz_srcptr) __attribute__((__pure__)); - -void __gmpz_pow_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_powm(mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_powm_sec(mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_powm_ui(mpz_ptr, mpz_srcptr, unsigned long int, mpz_srcptr); - -int __gmpz_probab_prime_p(mpz_srcptr, int) __attribute__((__pure__)); - -void __gmpz_random(mpz_ptr, mp_size_t); - -void __gmpz_random2(mpz_ptr, mp_size_t); - -void __gmpz_realloc2(mpz_ptr, mp_bitcnt_t); - -mp_bitcnt_t __gmpz_remove(mpz_ptr, mpz_srcptr, mpz_srcptr); - -int __gmpz_root(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_rootrem(mpz_ptr, mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_rrandomb(mpz_ptr, gmp_randstate_t, mp_bitcnt_t); - -mp_bitcnt_t __gmpz_scan0(mpz_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -mp_bitcnt_t __gmpz_scan1(mpz_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -void __gmpz_set(mpz_ptr, mpz_srcptr); - -void __gmpz_set_d(mpz_ptr, double); - -void __gmpz_set_f(mpz_ptr, mpf_srcptr); - -void __gmpz_set_q(mpz_ptr, mpq_srcptr); - -void __gmpz_set_si(mpz_ptr, signed long int); - -int __gmpz_set_str(mpz_ptr, const char *, int); - -void __gmpz_set_ui(mpz_ptr, unsigned long int); - -void __gmpz_setbit(mpz_ptr, mp_bitcnt_t); - -size_t __gmpz_size(mpz_srcptr) __attribute__((__pure__)); - -size_t __gmpz_sizeinbase(mpz_srcptr, int) __attribute__((__pure__)); - -void __gmpz_sqrt(mpz_ptr, mpz_srcptr); - -void __gmpz_sqrtrem(mpz_ptr, mpz_ptr, mpz_srcptr); - -void __gmpz_sub(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_sub_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_ui_sub(mpz_ptr, unsigned long int, mpz_srcptr); - -void __gmpz_submul(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_submul_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_swap(mpz_ptr, mpz_ptr); - -unsigned long int __gmpz_tdiv_ui(mpz_srcptr, unsigned long int) - __attribute__((__pure__)); - -void __gmpz_tdiv_q(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_tdiv_q_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_tdiv_q_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -void __gmpz_tdiv_qr(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr); - -unsigned long int __gmpz_tdiv_qr_ui(mpz_ptr, mpz_ptr, mpz_srcptr, - unsigned long int); - -void __gmpz_tdiv_r(mpz_ptr, mpz_srcptr, mpz_srcptr); - -void __gmpz_tdiv_r_2exp(mpz_ptr, mpz_srcptr, mp_bitcnt_t); - -unsigned long int __gmpz_tdiv_r_ui(mpz_ptr, mpz_srcptr, unsigned long int); - -int __gmpz_tstbit(mpz_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -void __gmpz_ui_pow_ui(mpz_ptr, unsigned long int, unsigned long int); - -void __gmpz_urandomb(mpz_ptr, gmp_randstate_t, mp_bitcnt_t); - -void __gmpz_urandomm(mpz_ptr, gmp_randstate_t, mpz_srcptr); - -void __gmpz_xor(mpz_ptr, mpz_srcptr, mpz_srcptr); - -mp_srcptr __gmpz_limbs_read(mpz_srcptr); - -mp_ptr __gmpz_limbs_write(mpz_ptr, mp_size_t); - -mp_ptr __gmpz_limbs_modify(mpz_ptr, mp_size_t); - -void __gmpz_limbs_finish(mpz_ptr, mp_size_t); - -mpz_srcptr __gmpz_roinit_n(mpz_ptr, mp_srcptr, mp_size_t); - -void __gmpq_abs(mpq_ptr, mpq_srcptr); - -void __gmpq_add(mpq_ptr, mpq_srcptr, mpq_srcptr); - -void __gmpq_canonicalize(mpq_ptr); - -void __gmpq_clear(mpq_ptr); - -void __gmpq_clears(mpq_ptr, ...); - -int __gmpq_cmp(mpq_srcptr, mpq_srcptr) __attribute__((__pure__)); - -int __gmpq_cmp_si(mpq_srcptr, long, unsigned long) __attribute__((__pure__)); - -int __gmpq_cmp_ui(mpq_srcptr, unsigned long int, unsigned long int) - __attribute__((__pure__)); - -int __gmpq_cmp_z(mpq_srcptr, mpz_srcptr) __attribute__((__pure__)); - -void __gmpq_div(mpq_ptr, mpq_srcptr, mpq_srcptr); - -void __gmpq_div_2exp(mpq_ptr, mpq_srcptr, mp_bitcnt_t); - -int __gmpq_equal(mpq_srcptr, mpq_srcptr) __attribute__((__pure__)); - -void __gmpq_get_num(mpz_ptr, mpq_srcptr); - -void __gmpq_get_den(mpz_ptr, mpq_srcptr); - -double __gmpq_get_d(mpq_srcptr) __attribute__((__pure__)); - -char *__gmpq_get_str(char *, int, mpq_srcptr); - -void __gmpq_init(mpq_ptr); - -void __gmpq_inits(mpq_ptr, ...); - -size_t __gmpq_inp_str(mpq_ptr, FILE *, int); - -void __gmpq_inv(mpq_ptr, mpq_srcptr); - -void __gmpq_mul(mpq_ptr, mpq_srcptr, mpq_srcptr); - -void __gmpq_mul_2exp(mpq_ptr, mpq_srcptr, mp_bitcnt_t); - -void __gmpq_neg(mpq_ptr, mpq_srcptr); - -size_t __gmpq_out_str(FILE *, int, mpq_srcptr); - -void __gmpq_set(mpq_ptr, mpq_srcptr); - -void __gmpq_set_d(mpq_ptr, double); - -void __gmpq_set_den(mpq_ptr, mpz_srcptr); - -void __gmpq_set_f(mpq_ptr, mpf_srcptr); - -void __gmpq_set_num(mpq_ptr, mpz_srcptr); - -void __gmpq_set_si(mpq_ptr, signed long int, unsigned long int); - -int __gmpq_set_str(mpq_ptr, const char *, int); - -void __gmpq_set_ui(mpq_ptr, unsigned long int, unsigned long int); - -void __gmpq_set_z(mpq_ptr, mpz_srcptr); - -void __gmpq_sub(mpq_ptr, mpq_srcptr, mpq_srcptr); - -void __gmpq_swap(mpq_ptr, mpq_ptr); - -void __gmpf_abs(mpf_ptr, mpf_srcptr); - -void __gmpf_add(mpf_ptr, mpf_srcptr, mpf_srcptr); - -void __gmpf_add_ui(mpf_ptr, mpf_srcptr, unsigned long int); - -void __gmpf_ceil(mpf_ptr, mpf_srcptr); - -void __gmpf_clear(mpf_ptr); - -void __gmpf_clears(mpf_ptr, ...); - -int __gmpf_cmp(mpf_srcptr, mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_cmp_z(mpf_srcptr, mpz_srcptr) __attribute__((__pure__)); - -int __gmpf_cmp_d(mpf_srcptr, double) __attribute__((__pure__)); - -int __gmpf_cmp_si(mpf_srcptr, signed long int) __attribute__((__pure__)); - -int __gmpf_cmp_ui(mpf_srcptr, unsigned long int) __attribute__((__pure__)); - -void __gmpf_div(mpf_ptr, mpf_srcptr, mpf_srcptr); - -void __gmpf_div_2exp(mpf_ptr, mpf_srcptr, mp_bitcnt_t); - -void __gmpf_div_ui(mpf_ptr, mpf_srcptr, unsigned long int); - -void __gmpf_dump(mpf_srcptr); - -int __gmpf_eq(mpf_srcptr, mpf_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -int __gmpf_fits_sint_p(mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_fits_slong_p(mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_fits_sshort_p(mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_fits_uint_p(mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_fits_ulong_p(mpf_srcptr) __attribute__((__pure__)); - -int __gmpf_fits_ushort_p(mpf_srcptr) __attribute__((__pure__)); - -void __gmpf_floor(mpf_ptr, mpf_srcptr); - -double __gmpf_get_d(mpf_srcptr) __attribute__((__pure__)); - -double __gmpf_get_d_2exp(signed long int *, mpf_srcptr); - -mp_bitcnt_t __gmpf_get_default_prec(void) __attribute__((__pure__)); - -mp_bitcnt_t __gmpf_get_prec(mpf_srcptr) __attribute__((__pure__)); - -long __gmpf_get_si(mpf_srcptr) __attribute__((__pure__)); - -char *__gmpf_get_str(char *, mp_exp_t *, int, size_t, mpf_srcptr); - -unsigned long __gmpf_get_ui(mpf_srcptr) __attribute__((__pure__)); - -void __gmpf_init(mpf_ptr); - -void __gmpf_init2(mpf_ptr, mp_bitcnt_t); - -void __gmpf_inits(mpf_ptr, ...); - -void __gmpf_init_set(mpf_ptr, mpf_srcptr); - -void __gmpf_init_set_d(mpf_ptr, double); - -void __gmpf_init_set_si(mpf_ptr, signed long int); - -int __gmpf_init_set_str(mpf_ptr, const char *, int); - -void __gmpf_init_set_ui(mpf_ptr, unsigned long int); - -size_t __gmpf_inp_str(mpf_ptr, FILE *, int); - -int __gmpf_integer_p(mpf_srcptr) __attribute__((__pure__)); - -void __gmpf_mul(mpf_ptr, mpf_srcptr, mpf_srcptr); - -void __gmpf_mul_2exp(mpf_ptr, mpf_srcptr, mp_bitcnt_t); - -void __gmpf_mul_ui(mpf_ptr, mpf_srcptr, unsigned long int); - -void __gmpf_neg(mpf_ptr, mpf_srcptr); - -size_t __gmpf_out_str(FILE *, int, size_t, mpf_srcptr); - -void __gmpf_pow_ui(mpf_ptr, mpf_srcptr, unsigned long int); - -void __gmpf_random2(mpf_ptr, mp_size_t, mp_exp_t); - -void __gmpf_reldiff(mpf_ptr, mpf_srcptr, mpf_srcptr); - -void __gmpf_set(mpf_ptr, mpf_srcptr); - -void __gmpf_set_d(mpf_ptr, double); - -void __gmpf_set_default_prec(mp_bitcnt_t); - -void __gmpf_set_prec(mpf_ptr, mp_bitcnt_t); - -void __gmpf_set_prec_raw(mpf_ptr, mp_bitcnt_t); - -void __gmpf_set_q(mpf_ptr, mpq_srcptr); - -void __gmpf_set_si(mpf_ptr, signed long int); - -int __gmpf_set_str(mpf_ptr, const char *, int); - -void __gmpf_set_ui(mpf_ptr, unsigned long int); - -void __gmpf_set_z(mpf_ptr, mpz_srcptr); - -size_t __gmpf_size(mpf_srcptr) __attribute__((__pure__)); - -void __gmpf_sqrt(mpf_ptr, mpf_srcptr); - -void __gmpf_sqrt_ui(mpf_ptr, unsigned long int); - -void __gmpf_sub(mpf_ptr, mpf_srcptr, mpf_srcptr); - -void __gmpf_sub_ui(mpf_ptr, mpf_srcptr, unsigned long int); - -void __gmpf_swap(mpf_ptr, mpf_ptr); - -void __gmpf_trunc(mpf_ptr, mpf_srcptr); - -void __gmpf_ui_div(mpf_ptr, unsigned long int, mpf_srcptr); - -void __gmpf_ui_sub(mpf_ptr, unsigned long int, mpf_srcptr); - -void __gmpf_urandomb(mpf_t, gmp_randstate_t, mp_bitcnt_t); -mp_limb_t __gmpn_add(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_add_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_add_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_addmul_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -int __gmpn_cmp(mp_srcptr, mp_srcptr, mp_size_t) __attribute__((__pure__)); - -int __gmpn_zero_p(mp_srcptr, mp_size_t) __attribute__((__pure__)); - -void __gmpn_divexact_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_divexact_by3c(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_divrem(mp_ptr, mp_size_t, mp_ptr, mp_size_t, mp_srcptr, - mp_size_t); - -mp_limb_t __gmpn_divrem_1(mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_divrem_2(mp_ptr, mp_size_t, mp_ptr, mp_size_t, mp_srcptr); - -mp_limb_t __gmpn_div_qr_1(mp_ptr, mp_limb_t *, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_div_qr_2(mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_srcptr); - -mp_size_t __gmpn_gcd(mp_ptr, mp_ptr, mp_size_t, mp_ptr, mp_size_t); - -mp_limb_t __gmpn_gcd_11(mp_limb_t, mp_limb_t) __attribute__((__pure__)); - -mp_limb_t __gmpn_gcd_1(mp_srcptr, mp_size_t, mp_limb_t) - __attribute__((__pure__)); - -mp_limb_t __gmpn_gcdext_1(mp_limb_signed_t *, mp_limb_signed_t *, mp_limb_t, - mp_limb_t); - -mp_size_t __gmpn_gcdext(mp_ptr, mp_ptr, mp_size_t *, mp_ptr, mp_size_t, mp_ptr, - mp_size_t); - -size_t __gmpn_get_str(unsigned char *, int, mp_ptr, mp_size_t); - -mp_bitcnt_t __gmpn_hamdist(mp_srcptr, mp_srcptr, mp_size_t) - __attribute__((__pure__)); - -mp_limb_t __gmpn_lshift(mp_ptr, mp_srcptr, mp_size_t, unsigned int); - -mp_limb_t __gmpn_mod_1(mp_srcptr, mp_size_t, mp_limb_t) - __attribute__((__pure__)); - -mp_limb_t __gmpn_mul(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_mul_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -void __gmpn_mul_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_sqr(mp_ptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_neg(mp_ptr, mp_srcptr, mp_size_t); - -void __gmpn_com(mp_ptr, mp_srcptr, mp_size_t); - -int __gmpn_perfect_square_p(mp_srcptr, mp_size_t) __attribute__((__pure__)); - -int __gmpn_perfect_power_p(mp_srcptr, mp_size_t) __attribute__((__pure__)); - -mp_bitcnt_t __gmpn_popcount(mp_srcptr, mp_size_t) __attribute__((__pure__)); - -mp_size_t __gmpn_pow_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_ptr); - -mp_limb_t __gmpn_preinv_mod_1(mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t) - __attribute__((__pure__)); - -void __gmpn_random(mp_ptr, mp_size_t); - -void __gmpn_random2(mp_ptr, mp_size_t); - -mp_limb_t __gmpn_rshift(mp_ptr, mp_srcptr, mp_size_t, unsigned int); - -mp_bitcnt_t __gmpn_scan0(mp_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -mp_bitcnt_t __gmpn_scan1(mp_srcptr, mp_bitcnt_t) __attribute__((__pure__)); - -mp_size_t __gmpn_set_str(mp_ptr, const unsigned char *, size_t, int); - -size_t __gmpn_sizeinbase(mp_srcptr, mp_size_t, int); - -mp_size_t __gmpn_sqrtrem(mp_ptr, mp_ptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_sub(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_sub_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -mp_limb_t __gmpn_sub_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_submul_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t); - -void __gmpn_tdiv_qr(mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_srcptr, - mp_size_t); - -void __gmpn_and_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_andn_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_nand_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_ior_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_iorn_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_nior_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_xor_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_xnor_n(mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -void __gmpn_copyi(mp_ptr, mp_srcptr, mp_size_t); - -void __gmpn_copyd(mp_ptr, mp_srcptr, mp_size_t); - -void __gmpn_zero(mp_ptr, mp_size_t); - -mp_limb_t __gmpn_cnd_add_n(mp_limb_t, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_cnd_sub_n(mp_limb_t, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t); - -mp_limb_t __gmpn_sec_add_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_ptr); - -mp_size_t __gmpn_sec_add_1_itch(mp_size_t) __attribute__((__pure__)); - -mp_limb_t __gmpn_sec_sub_1(mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_ptr); - -mp_size_t __gmpn_sec_sub_1_itch(mp_size_t) __attribute__((__pure__)); - -void __gmpn_cnd_swap(mp_limb_t, volatile mp_limb_t *, volatile mp_limb_t *, - mp_size_t); - -void __gmpn_sec_mul(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr); - -mp_size_t __gmpn_sec_mul_itch(mp_size_t, mp_size_t) __attribute__((__pure__)); - -void __gmpn_sec_sqr(mp_ptr, mp_srcptr, mp_size_t, mp_ptr); - -mp_size_t __gmpn_sec_sqr_itch(mp_size_t) __attribute__((__pure__)); - -void __gmpn_sec_powm(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_bitcnt_t, - mp_srcptr, mp_size_t, mp_ptr); - -mp_size_t __gmpn_sec_powm_itch(mp_size_t, mp_bitcnt_t, mp_size_t) - __attribute__((__pure__)); - -void __gmpn_sec_tabselect(volatile mp_limb_t *, volatile const mp_limb_t *, - mp_size_t, mp_size_t, mp_size_t); - -mp_limb_t __gmpn_sec_div_qr(mp_ptr, mp_ptr, mp_size_t, mp_srcptr, mp_size_t, - mp_ptr); - -mp_size_t __gmpn_sec_div_qr_itch(mp_size_t, mp_size_t) - __attribute__((__pure__)); - -void __gmpn_sec_div_r(mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr); - -mp_size_t __gmpn_sec_div_r_itch(mp_size_t, mp_size_t) __attribute__((__pure__)); - -int __gmpn_sec_invert(mp_ptr, mp_ptr, mp_srcptr, mp_size_t, mp_bitcnt_t, - mp_ptr); - -mp_size_t __gmpn_sec_invert_itch(mp_size_t) __attribute__((__pure__)); -extern __inline__ __attribute__((__gnu_inline__)) void -__gmpz_abs(mpz_ptr __gmp_w, mpz_srcptr __gmp_u) { - if (__gmp_w != __gmp_u) - __gmpz_set(__gmp_w, __gmp_u); - __gmp_w->_mp_size = - ((__gmp_w->_mp_size) >= 0 ? (__gmp_w->_mp_size) : -(__gmp_w->_mp_size)); -} -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpz_fits_uint_p(mpz_srcptr __gmp_z) { - mp_size_t __gmp_n = __gmp_z->_mp_size; - mp_ptr __gmp_p = __gmp_z->_mp_d; - return (__gmp_n == 0 || - (__gmp_n == 1 && __gmp_p[0] <= (0x7fffffff * 2U + 1U))); - ; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpz_fits_ulong_p(mpz_srcptr __gmp_z) { - mp_size_t __gmp_n = __gmp_z->_mp_size; - mp_ptr __gmp_p = __gmp_z->_mp_d; - return (__gmp_n == 0 || - (__gmp_n == 1 && __gmp_p[0] <= (0x7fffffffffffffffL * 2UL + 1UL))); - ; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpz_fits_ushort_p(mpz_srcptr __gmp_z) { - mp_size_t __gmp_n = __gmp_z->_mp_size; - mp_ptr __gmp_p = __gmp_z->_mp_d; - return (__gmp_n == 0 || (__gmp_n == 1 && __gmp_p[0] <= (0x7fff * 2 + 1))); - ; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -unsigned long -__gmpz_get_ui(mpz_srcptr __gmp_z) { - mp_ptr __gmp_p = __gmp_z->_mp_d; - mp_size_t __gmp_n = __gmp_z->_mp_size; - mp_limb_t __gmp_l = __gmp_p[0]; - - return (__gmp_n != 0 ? __gmp_l : 0); -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpz_getlimbn(mpz_srcptr __gmp_z, mp_size_t __gmp_n) { - mp_limb_t __gmp_result = 0; - if (__builtin_expect( - (__gmp_n >= 0 && - __gmp_n < ((__gmp_z->_mp_size) >= 0 ? (__gmp_z->_mp_size) - : -(__gmp_z->_mp_size))) != 0, - 1)) - __gmp_result = __gmp_z->_mp_d[__gmp_n]; - return __gmp_result; -} - -extern __inline__ __attribute__((__gnu_inline__)) void -__gmpz_neg(mpz_ptr __gmp_w, mpz_srcptr __gmp_u) { - if (__gmp_w != __gmp_u) - __gmpz_set(__gmp_w, __gmp_u); - __gmp_w->_mp_size = -__gmp_w->_mp_size; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpz_perfect_square_p(mpz_srcptr __gmp_a) { - mp_size_t __gmp_asize; - int __gmp_result; - - __gmp_asize = __gmp_a->_mp_size; - __gmp_result = (__gmp_asize >= 0); - if (__builtin_expect((__gmp_asize > 0) != 0, 1)) - __gmp_result = __gmpn_perfect_square_p(__gmp_a->_mp_d, __gmp_asize); - return __gmp_result; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_bitcnt_t -__gmpz_popcount(mpz_srcptr __gmp_u) { - mp_size_t __gmp_usize; - mp_bitcnt_t __gmp_result; - - __gmp_usize = __gmp_u->_mp_size; - __gmp_result = (__gmp_usize < 0 ? ~((mp_bitcnt_t)(0)) : ((mp_bitcnt_t)(0))); - if (__builtin_expect((__gmp_usize > 0) != 0, 1)) - __gmp_result = __gmpn_popcount(__gmp_u->_mp_d, __gmp_usize); - return __gmp_result; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - void - __gmpz_set_q(mpz_ptr __gmp_w, mpq_srcptr __gmp_u) { - __gmpz_tdiv_q(__gmp_w, (&((__gmp_u)->_mp_num)), (&((__gmp_u)->_mp_den))); -} - -extern __inline__ __attribute__((__gnu_inline__)) - -size_t -__gmpz_size(mpz_srcptr __gmp_z) { - return ((__gmp_z->_mp_size) >= 0 ? (__gmp_z->_mp_size) - : -(__gmp_z->_mp_size)); -} - -extern __inline__ __attribute__((__gnu_inline__)) void -__gmpq_abs(mpq_ptr __gmp_w, mpq_srcptr __gmp_u) { - if (__gmp_w != __gmp_u) - __gmpq_set(__gmp_w, __gmp_u); - __gmp_w->_mp_num._mp_size = - ((__gmp_w->_mp_num._mp_size) >= 0 ? (__gmp_w->_mp_num._mp_size) - : -(__gmp_w->_mp_num._mp_size)); -} - -extern __inline__ __attribute__((__gnu_inline__)) void -__gmpq_neg(mpq_ptr __gmp_w, mpq_srcptr __gmp_u) { - if (__gmp_w != __gmp_u) - __gmpq_set(__gmp_w, __gmp_u); - __gmp_w->_mp_num._mp_size = -__gmp_w->_mp_num._mp_size; -} -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpn_add(mp_ptr __gmp_wp, mp_srcptr __gmp_xp, mp_size_t __gmp_xsize, - mp_srcptr __gmp_yp, mp_size_t __gmp_ysize) { - mp_limb_t __gmp_c; - do { - mp_size_t __gmp_i; - mp_limb_t __gmp_x; - __gmp_i = (__gmp_ysize); - if (__gmp_i != 0) { - if (__gmpn_add_n(__gmp_wp, __gmp_xp, __gmp_yp, __gmp_i)) { - do { - if (__gmp_i >= (__gmp_xsize)) { - (__gmp_c) = 1; - goto __gmp_done; - } - __gmp_x = (__gmp_xp)[__gmp_i]; - } while ((((__gmp_wp)[__gmp_i++] = - (__gmp_x + 1) & ((~((mp_limb_t)(0))) >> 0)) == 0)); - } - } - if ((__gmp_wp) != (__gmp_xp)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (__gmp_i); __gmp_j < (__gmp_xsize); __gmp_j++) - (__gmp_wp)[__gmp_j] = (__gmp_xp)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - __gmp_done:; - } while (0); - return __gmp_c; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpn_add_1(mp_ptr __gmp_dst, mp_srcptr __gmp_src, mp_size_t __gmp_size, - mp_limb_t __gmp_n) { - mp_limb_t __gmp_c; - do { - mp_size_t __gmp_i; - mp_limb_t __gmp_x, __gmp_r; - __gmp_x = (__gmp_src)[0]; - __gmp_r = __gmp_x + (__gmp_n); - (__gmp_dst)[0] = __gmp_r; - if (((__gmp_r) < ((__gmp_n)))) { - (__gmp_c) = 1; - for (__gmp_i = 1; __gmp_i < (__gmp_size);) { - __gmp_x = (__gmp_src)[__gmp_i]; - __gmp_r = __gmp_x + 1; - (__gmp_dst)[__gmp_i] = __gmp_r; - ++__gmp_i; - if (!((__gmp_r) < (1))) { - if ((__gmp_src) != (__gmp_dst)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (__gmp_i); __gmp_j < (__gmp_size); __gmp_j++) - (__gmp_dst)[__gmp_j] = (__gmp_src)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - break; - } - } - } else { - if ((__gmp_src) != (__gmp_dst)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (1); __gmp_j < (__gmp_size); __gmp_j++) - (__gmp_dst)[__gmp_j] = (__gmp_src)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - } - } while (0); - return __gmp_c; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpn_cmp(mp_srcptr __gmp_xp, mp_srcptr __gmp_yp, mp_size_t __gmp_size) { - int __gmp_result; - do { - mp_size_t __gmp_i; - mp_limb_t __gmp_x, __gmp_y; - (__gmp_result) = 0; - __gmp_i = (__gmp_size); - while (--__gmp_i >= 0) { - __gmp_x = (__gmp_xp)[__gmp_i]; - __gmp_y = (__gmp_yp)[__gmp_i]; - if (__gmp_x != __gmp_y) { - (__gmp_result) = (__gmp_x > __gmp_y ? 1 : -1); - break; - } - } - } while (0); - return __gmp_result; -} - -extern __inline__ - __attribute__((__gnu_inline__)) - - int - __gmpn_zero_p(mp_srcptr __gmp_p, mp_size_t __gmp_n) { - - do { - if (__gmp_p[--__gmp_n] != 0) - return 0; - } while (__gmp_n != 0); - return 1; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpn_sub(mp_ptr __gmp_wp, mp_srcptr __gmp_xp, mp_size_t __gmp_xsize, - mp_srcptr __gmp_yp, mp_size_t __gmp_ysize) { - mp_limb_t __gmp_c; - do { - mp_size_t __gmp_i; - mp_limb_t __gmp_x; - __gmp_i = (__gmp_ysize); - if (__gmp_i != 0) { - if (__gmpn_sub_n(__gmp_wp, __gmp_xp, __gmp_yp, __gmp_i)) { - do { - if (__gmp_i >= (__gmp_xsize)) { - (__gmp_c) = 1; - goto __gmp_done; - } - __gmp_x = (__gmp_xp)[__gmp_i]; - } while ((((__gmp_wp)[__gmp_i++] = - (__gmp_x - 1) & ((~((mp_limb_t)(0))) >> 0)), - __gmp_x == 0)); - } - } - if ((__gmp_wp) != (__gmp_xp)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (__gmp_i); __gmp_j < (__gmp_xsize); __gmp_j++) - (__gmp_wp)[__gmp_j] = (__gmp_xp)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - __gmp_done:; - } while (0); - return __gmp_c; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpn_sub_1(mp_ptr __gmp_dst, mp_srcptr __gmp_src, mp_size_t __gmp_size, - mp_limb_t __gmp_n) { - mp_limb_t __gmp_c; - do { - mp_size_t __gmp_i; - mp_limb_t __gmp_x, __gmp_r; - __gmp_x = (__gmp_src)[0]; - __gmp_r = __gmp_x - (__gmp_n); - (__gmp_dst)[0] = __gmp_r; - if (((__gmp_x) < ((__gmp_n)))) { - (__gmp_c) = 1; - for (__gmp_i = 1; __gmp_i < (__gmp_size);) { - __gmp_x = (__gmp_src)[__gmp_i]; - __gmp_r = __gmp_x - 1; - (__gmp_dst)[__gmp_i] = __gmp_r; - ++__gmp_i; - if (!((__gmp_x) < (1))) { - if ((__gmp_src) != (__gmp_dst)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (__gmp_i); __gmp_j < (__gmp_size); __gmp_j++) - (__gmp_dst)[__gmp_j] = (__gmp_src)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - break; - } - } - } else { - if ((__gmp_src) != (__gmp_dst)) - do { - mp_size_t __gmp_j; - ; - for (__gmp_j = (1); __gmp_j < (__gmp_size); __gmp_j++) - (__gmp_dst)[__gmp_j] = (__gmp_src)[__gmp_j]; - } while (0); - (__gmp_c) = 0; - } - } while (0); - return __gmp_c; -} - -extern __inline__ __attribute__((__gnu_inline__)) - -mp_limb_t -__gmpn_neg(mp_ptr __gmp_rp, mp_srcptr __gmp_up, mp_size_t __gmp_n) { - while (*__gmp_up == 0) { - *__gmp_rp = 0; - if (!--__gmp_n) - return 0; - ++__gmp_up; - ++__gmp_rp; - } - - *__gmp_rp = (-*__gmp_up) & ((~((mp_limb_t)(0))) >> 0); - - if (--__gmp_n) - __gmpn_com(++__gmp_rp, ++__gmp_up, __gmp_n); - - return 1; -} -enum { - GMP_ERROR_NONE = 0, - GMP_ERROR_UNSUPPORTED_ARGUMENT = 1, - GMP_ERROR_DIVISION_BY_ZERO = 2, - GMP_ERROR_SQRT_OF_NEGATIVE = 4, - GMP_ERROR_INVALID_ARGUMENT = 8 -}; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern size_t full_write(int fd, const void *buf, size_t count); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct tokenbuffer { - size_t size; - char *buffer; -}; -typedef struct tokenbuffer token_buffer; - -void init_tokenbuffer(token_buffer *tokenbuffer); - -size_t readtoken(FILE *stream, const char *delim, size_t n_delim, - token_buffer *tokenbuffer); -size_t readtokens(FILE *stream, size_t projected_n_tokens, const char *delim, - size_t n_delim, char ***tokens_out, size_t **token_lengths); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -typedef unsigned char UQItype; -typedef long SItype; -typedef unsigned long int USItype; - -typedef long long int DItype; -typedef unsigned long long int UDItype; - -extern uintmax_t __gmpn_umul_ppmm(uintmax_t *, uintmax_t, uintmax_t); -extern uintmax_t __gmpn_umul_ppmm_r(uintmax_t, uintmax_t, uintmax_t *); -extern uintmax_t __gmpn_udiv_qrnnd(uintmax_t *, uintmax_t, uintmax_t, - uintmax_t); -extern uintmax_t __gmpn_udiv_qrnnd_r(uintmax_t, uintmax_t, uintmax_t, - uintmax_t *); -enum { DEV_DEBUG_OPTION = 0x7f + 1 }; - -static struct option const long_options[] = { - {"-debug", 0, ((void *)0), DEV_DEBUG_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -struct factors { - uintmax_t plarge[2]; - uintmax_t p[26]; - unsigned char e[26]; - unsigned char nfactors; -}; - -struct mp_factors { - mpz_t *p; - unsigned long int *e; - unsigned long int nfactors; -}; - -static void factor(uintmax_t, uintmax_t, struct factors *); -static uintmax_t mod2(uintmax_t *r1, uintmax_t a1, uintmax_t a0, uintmax_t d1, - uintmax_t d0) { - int cntd, cnta; - - ((void)sizeof((d1 != 0) ? 1 : 0), __extension__({ - if (d1 != 0) - ; - else - __assert_fail("d1 != 0", "src/factor.c", 411, - __extension__ __PRETTY_FUNCTION__); - })); - - if (a1 == 0) { - *r1 = 0; - return a0; - } - - do { - UDItype __cbtmp; - ; - __asm__("bsr\t%1,%0" : "=r"(__cbtmp) : "rm"((UDItype)(d1))); - (cntd) = __cbtmp ^ 63; - } while (0); - do { - UDItype __cbtmp; - ; - __asm__("bsr\t%1,%0" : "=r"(__cbtmp) : "rm"((UDItype)(a1))); - (cnta) = __cbtmp ^ 63; - } while (0); - int cnt = cntd - cnta; - do { - (d1) = ((d1) << cnt) | ((d0) >> (64 - (cnt))); - (d0) = (d0) << (cnt); - } while (0); - for (int i = 0; i < cnt; i++) { - if (((a1) > (d1) || ((a1) == (d1) && (a0) >= (d0)))) - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(a1), "=&r"(a0) - : "0"((UDItype)(a1)), "rme"((UDItype)(d1)), "1"((UDItype)(a0)), - "rme"((UDItype)(d0))); - do { - (d0) = ((d1) << (64 - (1))) | ((d0) >> (1)); - (d1) = (d1) >> (1); - } while (0); - } - - *r1 = a1; - return a0; -} - -__attribute__((__const__)) static uintmax_t gcd_odd(uintmax_t a, uintmax_t b) { - if ((b & 1) == 0) { - uintmax_t t = b; - b = a; - a = t; - } - if (a == 0) - return b; - - b >>= 1; - - for (;;) { - uintmax_t t; - uintmax_t bgta; - - while ((a & 1) == 0) - a >>= 1; - a >>= 1; - - t = a - b; - if (t == 0) - return (a << 1) + 1; - - bgta = (((intmax_t)-1 >> 1) < 0 - ? (uintmax_t)((intmax_t)(t) >> (64 - 1)) - : ((t) & ((uintmax_t)1 << (64 - 1)) ? (18446744073709551615UL) - : (uintmax_t)0)); - - b += (bgta & t); - - a = (t ^ bgta) - bgta; - } -} - -static uintmax_t gcd2_odd(uintmax_t *r1, uintmax_t a1, uintmax_t a0, - uintmax_t b1, uintmax_t b0) { - - ((void)sizeof((b0 & 1) ? 1 : 0), __extension__({ - if (b0 & 1) - ; - else - __assert_fail("b0 & 1", "src/factor.c", 476, - __extension__ __PRETTY_FUNCTION__); - })); - - if ((a0 | a1) == 0) { - *r1 = b1; - return b0; - } - - while ((a0 & 1) == 0) - do { - (a0) = ((a1) << (64 - (1))) | ((a0) >> (1)); - (a1) = (a1) >> (1); - } while (0); - - for (;;) { - if ((b1 | a1) == 0) { - *r1 = 0; - return gcd_odd(b0, a0); - } - - if (((a1) > (b1) || ((a1) == (b1) && (a0) > (b0)))) { - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(a1), "=&r"(a0) - : "0"((UDItype)(a1)), "rme"((UDItype)(b1)), "1"((UDItype)(a0)), - "rme"((UDItype)(b0))); - do - do { - (a0) = ((a1) << (64 - (1))) | ((a0) >> (1)); - (a1) = (a1) >> (1); - } while (0); - while ((a0 & 1) == 0); - } else if (((b1) > (a1) || ((b1) == (a1) && (b0) > (a0)))) { - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(b1), "=&r"(b0) - : "0"((UDItype)(b1)), "rme"((UDItype)(a1)), "1"((UDItype)(b0)), - "rme"((UDItype)(a0))); - do - do { - (b0) = ((b1) << (64 - (1))) | ((b0) >> (1)); - (b1) = (b1) >> (1); - } while (0); - while ((b0 & 1) == 0); - } else - break; - } - - *r1 = a1; - return a0; -} - -static void factor_insert_multiplicity(struct factors *factors, uintmax_t prime, - unsigned int m) { - unsigned int nfactors = factors->nfactors; - uintmax_t *p = factors->p; - unsigned char *e = factors->e; - - int i; - for (i = nfactors - 1; i >= 0; i--) { - if (p[i] <= prime) - break; - } - - if (i < 0 || p[i] != prime) { - for (int j = nfactors - 1; j > i; j--) { - p[j + 1] = p[j]; - e[j + 1] = e[j]; - } - p[i + 1] = prime; - e[i + 1] = m; - factors->nfactors = nfactors + 1; - } else { - e[i] += m; - } -} - -static void factor_insert_large(struct factors *factors, uintmax_t p1, - uintmax_t p0) { - if (p1 > 0) { - - ((void)sizeof((factors->plarge[1] == 0) ? 1 : 0), __extension__({ - if (factors->plarge[1] == 0) - ; - else - __assert_fail("factors->plarge[1] == 0", "src/factor.c", 558, - __extension__ __PRETTY_FUNCTION__); - })); - factors->plarge[0] = p0; - factors->plarge[1] = p1; - } else - factor_insert_multiplicity(factors, p0, 1); -} -static void mp_factor(mpz_t, struct mp_factors *); - -static void mp_factor_init(struct mp_factors *factors) { - factors->p = ((void *)0); - factors->e = ((void *)0); - factors->nfactors = 0; -} - -static void mp_factor_clear(struct mp_factors *factors) { - for (unsigned int i = 0; i < factors->nfactors; i++) - - __gmpz_clear(factors->p[i]); - - free(factors->p); - free(factors->e); -} - -static void mp_factor_insert(struct mp_factors *factors, mpz_t prime) { - unsigned long int nfactors = factors->nfactors; - mpz_t *p = factors->p; - unsigned long int *e = factors->e; - long i; - - for (i = nfactors - 1; i >= 0; i--) { - if (__gmpz_cmp(p[i], prime) <= 0) - break; - } - - if (i < 0 || __gmpz_cmp(p[i], prime) != 0) { - p = xrealloc(p, (nfactors + 1) * sizeof p[0]); - e = xrealloc(e, (nfactors + 1) * sizeof e[0]); - - __gmpz_init(p[nfactors]); - for (long j = nfactors - 1; j > i; j--) { - - __gmpz_set(p[j + 1], p[j]); - e[j + 1] = e[j]; - } - - __gmpz_set(p[i + 1], prime); - e[i + 1] = 1; - - factors->p = p; - factors->e = e; - factors->nfactors = nfactors + 1; - } else { - e[i] += 1; - } -} - -static void mp_factor_insert_ui(struct mp_factors *factors, - unsigned long int prime) { - mpz_t pz; - - __gmpz_init_set_ui(pz, prime); - mp_factor_insert(factors, pz); - - __gmpz_clear(pz); -} - -enum { W = sizeof(uintmax_t) * 8 }; - -_Static_assert((18446744073709551615UL) >> (W - 1) == 1, - "verify (" - "UINTMAX_MAX >> (W - 1) == 1" - ")"); - -static const unsigned char primes_diff[] = { - - 1, - - 2, - - 2, - - 4, - - 2, - - 4, - - 2, - - 4, - - 6, - - 2, - - 6, - - 4, - - 2, - - 4, - - 6, - - 6, - - 2, - - 6, - - 4, - - 2, - - 6, - - 4, - - 6, - - 8, - - 4, - - 2, - - 4, - - 2, - - 4, - - 14, - - 4, - - 6, - - 2, - - 10, - - 2, - - 6, - - 6, - - 4, - - 6, - - 6, - - 2, - - 10, - - 2, - - 4, - - 2, - - 12, - - 12, - - 4, - - 2, - - 4, - - 6, - - 2, - - 10, - - 6, - - 6, - - 6, - - 2, - - 6, - - 4, - - 2, - - 10, - - 14, - - 4, - - 2, - - 4, - - 14, - - 6, - - 10, - - 2, - - 4, - - 6, - - 8, - - 6, - - 6, - - 4, - - 6, - - 8, - - 4, - - 8, - - 10, - - 2, - - 10, - - 2, - - 6, - - 4, - - 6, - - 8, - - 4, - - 2, - - 4, - - 12, - - 8, - - 4, - - 8, - - 4, - - 6, - - 12, - - 2, - - 18, - - 6, - - 10, - - 6, - - 6, - - 2, - - 6, - - 10, - - 6, - - 6, - - 2, - - 6, - - 6, - - 4, - - 2, - - 12, - - 10, - - 2, - - 4, - - 6, - - 6, - - 2, - - 12, - - 4, - - 6, - - 8, - - 10, - - 8, - - 10, - - 8, - - 6, - - 6, - - 4, - - 8, - - 6, - - 4, - - 8, - - 4, - - 14, - - 10, - - 12, - - 2, - - 10, - - 2, - - 4, - - 2, - - 10, - - 14, - - 4, - - 2, - - 4, - - 14, - - 4, - - 2, - - 4, - - 20, - - 4, - - 8, - - 10, - - 8, - - 4, - - 6, - - 6, - - 14, - - 4, - - 6, - - 6, - - 8, - - 6, - - 12, - - 4, - - 6, - - 2, - - 10, - - 2, - - 6, - - 10, - - 2, - - 10, - - 2, - - 6, - - 18, - - 4, - - 2, - - 4, - - 6, - - 6, - - 8, - - 6, - - 6, - - 22, - - 2, - - 10, - - 8, - - 10, - - 6, - - 6, - - 8, - - 12, - - 4, - - 6, - - 6, - - 2, - - 6, - - 12, - - 10, - - 18, - - 2, - - 4, - - 6, - - 2, - - 6, - - 4, - - 2, - - 4, - - 12, - - 2, - - 6, - - 34, - - 6, - - 6, - - 8, - - 18, - - 10, - - 14, - - 4, - - 2, - - 4, - - 6, - - 8, - - 4, - - 2, - - 6, - - 12, - - 10, - - 2, - - 4, - - 2, - - 4, - - 6, - - 12, - - 12, - - 8, - - 12, - - 6, - - 4, - - 6, - - 8, - - 4, - - 8, - - 4, - - 14, - - 4, - - 6, - - 2, - - 4, - - 6, - - 2, - - 6, - - 10, - - 20, - - 6, - - 4, - - 2, - - 24, - - 4, - - 2, - - 10, - - 12, - - 2, - - 10, - - 8, - - 6, - - 6, - - 6, - - 18, - - 6, - - 4, - - 2, - - 12, - - 10, - - 12, - - 8, - - 16, - - 14, - - 6, - - 4, - - 2, - - 4, - - 2, - - 10, - - 12, - - 6, - - 6, - - 18, - - 2, - - 16, - - 2, - - 22, - - 6, - - 8, - - 6, - - 4, - - 2, - - 4, - - 8, - - 6, - - 10, - - 2, - - 10, - - 14, - - 10, - - 6, - - 12, - - 2, - - 4, - - 2, - - 10, - - 12, - - 2, - - 16, - - 2, - - 6, - - 4, - - 2, - - 10, - - 8, - - 18, - - 24, - - 4, - - 6, - - 8, - - 16, - - 2, - - 4, - - 8, - - 16, - - 2, - - 4, - - 8, - - 6, - - 6, - - 4, - - 12, - - 2, - - 22, - - 6, - - 2, - - 6, - - 4, - - 6, - - 14, - - 6, - - 4, - - 2, - - 6, - - 4, - - 6, - - 12, - - 6, - - 6, - - 14, - - 4, - - 6, - - 12, - - 8, - - 6, - - 4, - - 26, - - 18, - - 10, - - 8, - - 4, - - 6, - - 2, - - 6, - - 22, - - 12, - - 2, - - 16, - - 8, - - 4, - - 12, - - 14, - - 10, - - 2, - - 4, - - 8, - - 6, - - 6, - - 4, - - 2, - - 4, - - 6, - - 8, - - 4, - - 2, - - 6, - - 10, - - 2, - - 10, - - 8, - - 4, - - 14, - - 10, - - 12, - - 2, - - 6, - - 4, - - 2, - - 16, - - 14, - - 4, - - 6, - - 8, - - 6, - - 4, - - 18, - - 8, - - 10, - - 6, - - 6, - - 8, - - 10, - - 12, - - 14, - - 4, - - 6, - - 6, - - 2, - - 28, - - 2, - - 10, - - 8, - - 4, - - 14, - - 4, - - 8, - - 12, - - 6, - - 12, - - 4, - - 6, - - 20, - - 10, - - 2, - - 16, - - 26, - - 4, - - 2, - - 12, - - 6, - - 4, - - 12, - - 6, - - 8, - - 4, - - 8, - - 22, - - 2, - - 4, - - 2, - - 12, - - 28, - - 2, - - 6, - - 6, - - 6, - - 4, - - 6, - - 2, - - 12, - - 4, - - 12, - - 2, - - 10, - - 2, - - 16, - - 2, - - 16, - - 6, - - 20, - - 16, - - 8, - - 4, - - 2, - - 4, - - 2, - - 22, - - 8, - - 12, - - 6, - - 10, - - 2, - - 4, - - 6, - - 2, - - 6, - - 10, - - 2, - - 12, - - 10, - - 2, - - 10, - - 14, - - 6, - - 4, - - 6, - - 8, - - 6, - - 6, - - 16, - - 12, - - 2, - - 4, - - 14, - - 6, - - 4, - - 8, - - 10, - - 8, - - 6, - - 6, - - 22, - - 6, - - 2, - - 10, - - 14, - - 4, - - 6, - - 18, - - 2, - - 10, - - 14, - - 4, - - 2, - - 10, - - 14, - - 4, - - 8, - - 18, - - 4, - - 6, - - 2, - - 4, - - 6, - - 2, - - 12, - - 4, - - 20, - - 22, - - 12, - - 2, - - 4, - - 6, - - 6, - - 2, - - 6, - - 22, - - 2, - - 6, - - 16, - - 6, - - 12, - - 2, - - 6, - - 12, - - 16, - - 2, - - 4, - - 6, - - 14, - - 4, - - 2, - - 18, - - 24, - - 10, - - 6, - - 2, - - 10, - - 2, - - 10, - - 2, - - 10, - - 6, - - 2, - - 10, - - 2, - - 10, - - 6, - - 8, - - 30, - - 10, - - 2, - - 10, - - 8, - - 6, - - 10, - - 18, - - 6, - - 12, - - 12, - - 2, - - 18, - - 6, - - 4, - - 6, - - 6, - - 18, - - 2, - - 10, - - 14, - - 6, - - 4, - - 2, - - 4, - - 24, - - 2, - - 12, - - 6, - - 16, - - 8, - - 6, - - 6, - - 18, - - 16, - - 2, - - 4, - - 6, - - 2, - - 6, - - 6, - - 10, - - 6, - - 12, - - 12, - - 18, - - 2, - - 6, - - 4, - - 18, - - 8, - - 24, - - 4, - - 2, - - 4, - - 6, - - 2, - - 12, - - 4, - - 14, - - 30, - - 10, - - 6, - - 12, - - 14, - - 6, - - 10, - - 12, - - 2, - - 4, - - 6, - - 8, - - 6, - - 10, - - 2, - - 4, - - 14, - - 6, - - 6, 0, 0, 0, 0, 0, 0, 0}; - -static const unsigned char primes_diff8[] = { - - 26, - - 26, - - 30, - - 30, - - 30, - - 30, - - 34, - - 36, - - 32, - - 36, - - 34, - - 32, - - 36, - - 36, - - 36, - - 38, - - 40, - - 36, - - 36, - - 36, - - 34, - - 44, - - 42, - - 40, - - 38, - - 46, - - 44, - - 48, - - 50, - - 40, - - 42, - - 42, - - 42, - - 42, - - 42, - - 40, - - 36, - - 44, - - 50, - - 48, - - 48, - - 42, - - 46, - - 44, - - 52, - - 46, - - 40, - - 42, - - 42, - - 44, - - 42, - - 42, - - 42, - - 50, - - 48, - - 44, - - 46, - - 54, - - 56, - - 64, - - 56, - - 46, - - 48, - - 54, - - 56, - - 48, - - 46, - - 42, - - 48, - - 48, - - 50, - - 52, - - 48, - - 52, - - 50, - - 50, - - 46, - - 48, - - 48, - - 42, - - 42, - - 36, - - 46, - - 48, - - 48, - - 50, - - 46, - - 48, - - 58, - - 56, - - 62, - - 60, - - 66, - - 64, - - 66, - - 62, - - 56, - - 64, - - 52, - - 52, - - 44, - - 44, - - 44, - - 46, - - 42, - - 44, - - 48, - - 44, - - 46, - - 46, - - 46, - - 44, - - 54, - - 46, - - 42, - - 48, - - 54, - - 56, - - 60, - - 66, - - 60, - - 62, - - 60, - - 60, - - 56, - - 52, - - 50, - - 46, - - 54, - - 58, - - 66, - - 60, - - 64, - - 62, - - 58, - - 56, - - 52, - - 56, - - 48, - - 48, - - 42, - - 54, - - 54, - - 54, - - 48, - - 54, - - 54, - - 60, - - 66, - - 60, - - 60, - - 64, - - 66, - - 60, - - 60, - - 58, - - 54, - - 54, - - 56, - - 62, - - 60, - - 52, - - 50, - - 54, - - 50, - - 48, - - 52, - - 42, - - 48, - - 44, - - 48, - - 56, - - 58, - - 54, - - 48, - - 52, - - 48, - - 54, - - 54, - - 42, - - 60, - - 60, - - 66, - - 68, - - 72, - - 70, - - 70, - - 72, - - 62, - - 64, - - 60, - - 58, - - 50, - - 50, - - 56, - - 58, - - 64, - - 62, - - 60, - - 60, - - 60, - - 60, - - 52, - - 44, - - 30, - - 40, - - 38, - - 38, - - 70, - - 70, - - 72, - - 78, - - 92, - - 90, - - 102, - - 100, - - 68, - - 66, - - 66, - - 66, - - 52, - - 44, - - 36, - - 44, - - 52, - - 50, - - 48, - - 42, - - 42, - - 46, - - 52, - - 52, - - 50, - - 60, - - 62, - - 64, - - 66, - - 68, - - 60, - - 56, - - 52, - - 54, - - 52, - - 54, - - 50, - - 46, - - 48, - - 42, - - 44, - - 40, - - 56, - - 56, - - 58, - - 56, - - 74, - - 76, - - 72, - - 72, - - 64, - - 60, - - 66, - - 72, - - 54, - - 56, - - 60, - - 68, - - 62, - - 64, - - 56, - - 60, - - 64, - - 70, - - 72, - - 70, - - 78, - - 80, - - 82, - - 72, - - 66, - - 56, - - 58, - - 54, - - 46, - - 46, - - 60, - - 60, - - 72, - - 72, - - 84, - - 78, - - 80, - - 80, - - 66, - - 66, - - 54, - - 60, - - 44, - - 48, - - 42, - - 46, - - 56, - - 64, - - 66, - - 70, - - 66, - - 60, - - 60, - - 60, - - 58, - - 50, - - 60, - - 50, - - 54, - - 54, - - 54, - - 54, - - 50, - - 66, - - 74, - - 76, - - 76, - - 80, - - 94, - - 86, - - 82, - - 72, - - 64, - - 62, - - 60, - - 60, - - 50, - - 54, - - 54, - - 58, - - 44, - - 64, - - 66, - - 60, - - 60, - - 58, - - 60, - - 62, - - 66, - - 48, - - 44, - - 48, - - 46, - - 48, - - 54, - - 46, - - 46, - - 56, - - 58, - - 58, - - 66, - - 68, - - 62, - - 60, - - 80, - - 84, - - 90, - - 92, - - 84, - - 82, - - 78, - - 80, - - 76, - - 70, - - 62, - - 70, - - 74, - - 72, - - 82, - - 90, - - 78, - - 68, - - 70, - - 62, - - 60, - - 62, - - 54, - - 42, - - 36, - - 40, - - 44, - - 40, - - 36, - - 36, - - 42, - - 42, - - 48, - - 50, - - 46, - - 56, - - 64, - - 70, - - 62, - - 66, - - 60, - - 54, - - 66, - - 66, - - 60, - - 54, - - 60, - - 60, - - 60, - - 76, - - 68, - - 64, - - 66, - - 66, - - 66, - - 70, - - 78, - - 74, - - 70, - - 66, - - 66, - - 62, - - 82, - - 74, - - 72, - - 66, - - 66, - - 74, - - 72, - - 78, - - 62, - - 66, - - 68, - - 64, - - 66, - - 72, - - 78, - - 72, - - 76, - - 96, - - 88, - - 86, - - 92, - - 78, - - 72, - - 82, - - 72, - - 54, - - 54, - - 60, - - 70, - - 66, - - 66, - - 56, - - 62, - - 82, - - 80, - - 78, - - 62, - - 66, - - 66, - - 70, - - 60, - - 44, - - 46, - - 52, - - 48, - - 52, - - 50, - - 60, - - 60, - - 64, - - 66, - - 74, - - 88, - - 86, - - 88, - - 74, - - 76, - - 62, - - 78, - - 66, - - 62, - - 60, - - 66, - - 66, - - 66, - - 70, - - 50, - - 48, - - 46, - - 42, - - 44, - - 52, - - 50, - - 54, - - 66, - - 66, - - 60, - - 64, - - 60, - - 56, - - 60, - - 66, - - 64, - - 60, - - 60, - - 68, - - 66, - - 64, - - 66, - - 60, - - 56, - - 60, - - 62, - - 70, - - 70, - - 68, - - 70, - - 74, - - 70, - - 70, - - 82, - - 62, - - 66, - - 78, - - 72, - - 60, - - 66, - - 74, - - 60, - - 66, - - 74, - - 64, - - 66, - - 66, - - 60, - - 52, - - 50, - - 54, - - 40, - - 56, - - 72, - - 82, - - 80, - - 78, - - 82, - - 76, - - 74, - - 60, - - 60, - - 50, - - 54, - - 66, - - 66, - - 72, - - 72, - - 72, - - 62, - - 76, - - 72, - - 60, - - 60, - - 62, - - 64, - - 60, - - 66, - - 74, - - 82, - - 84, - - 80, - - 76, - - 74, - - 82, - - 66, - - 52, - - 48, - - 44, - - 52, - - 44, - - 52, - - 48, - - 54, - - 74, - - 78, - - 78, - - 78, - - 84, - - 80, - - 84, - - 94, - - 70, - - 72, - - 82, - - 74, - - 84, - - 84, - - 78, - - 66, - - 66, - - 72, - - 62, - - 70, - - 66, - - 66, - - 66, - - 62, - - 60, - - 66, - - 66, - - 68, - - 60, - - 70, - - 74, - - 78, - - 80, - - 74, - - 88, - - 78, - - 76, - - 66, - - 60, - - 60, - - 60, - - 52, - - 42, - - 52, - - 60, - - 72, - - 72, - - 72, - - 70, - - 78, - - 80, - - 92, - - 84, - - 68, - - 70, - - 70, - - 68, - - 62, - - 58, - - 48, - - 74, - - 82, - - 84, - - 90, - - 102, - - 96, - - 102, - - 100, - - 72, - - 66, - - 66, - - 62, - - 54, - - 58, - - 50, - - 42, - - 54, - - 56, - - 56, - - 255, - - 255, - - 255, - - 255, - - 255, - - 255, - - 255, - - 255, 0, 0, 0, 0, 0, 0, 0}; - -struct primes_dtab { - uintmax_t binv, lim; -}; - -static const struct primes_dtab primes_dtab[] = { - - {(((((uintmax_t)0xaaaaU << 28 | 0xaaaaaaaU) << 28 | 0xaaaaaaaU) << 28 | - 0xaaaaaaaU) - << 28 | - 0xaaaaaabU), - (18446744073709551615UL) / 3}, - - {(((((uintmax_t)0xccccU << 28 | 0xcccccccU) << 28 | 0xcccccccU) << 28 | - 0xcccccccU) - << 28 | - 0xccccccdU), - (18446744073709551615UL) / 5}, - - {(((((uintmax_t)0xb6dbU << 28 | 0x6db6db6U) << 28 | 0xdb6db6dU) << 28 | - 0xb6db6dbU) - << 28 | - 0x6db6db7U), - (18446744073709551615UL) / 7}, - - {(((((uintmax_t)0xa2e8U << 28 | 0xba2e8baU) << 28 | 0x2e8ba2eU) << 28 | - 0x8ba2e8bU) - << 28 | - 0xa2e8ba3U), - (18446744073709551615UL) / 11}, - - {(((((uintmax_t)0xc4ecU << 28 | 0x4ec4ec4U) << 28 | 0xec4ec4eU) << 28 | - 0xc4ec4ecU) - << 28 | - 0x4ec4ec5U), - (18446744073709551615UL) / 13}, - - {(((((uintmax_t)0xf0f0U << 28 | 0xf0f0f0fU) << 28 | 0x0f0f0f0U) << 28 | - 0xf0f0f0fU) - << 28 | - 0x0f0f0f1U), - (18446744073709551615UL) / 17}, - - {(((((uintmax_t)0xbca1U << 28 | 0xaf286bcU) << 28 | 0xa1af286U) << 28 | - 0xbca1af2U) - << 28 | - 0x86bca1bU), - (18446744073709551615UL) / 19}, - - {(((((uintmax_t)0x4de9U << 28 | 0xbd37a6fU) << 28 | 0x4de9bd3U) << 28 | - 0x7a6f4deU) - << 28 | - 0x9bd37a7U), - (18446744073709551615UL) / 23}, - - {(((((uintmax_t)0xc234U << 28 | 0xf72c234U) << 28 | 0xf72c234U) << 28 | - 0xf72c234U) - << 28 | - 0xf72c235U), - (18446744073709551615UL) / 29}, - - {(((((uintmax_t)0xdef7U << 28 | 0xbdef7bdU) << 28 | 0xef7bdefU) << 28 | - 0x7bdef7bU) - << 28 | - 0xdef7bdfU), - (18446744073709551615UL) / 31}, - - {(((((uintmax_t)0xc1baU << 28 | 0xcf914c1U) << 28 | 0xbacf914U) << 28 | - 0xc1bacf9U) - << 28 | - 0x14c1badU), - (18446744073709551615UL) / 37}, - - {(((((uintmax_t)0x18f9U << 28 | 0xc18f9c1U) << 28 | 0x8f9c18fU) << 28 | - 0x9c18f9cU) - << 28 | - 0x18f9c19U), - (18446744073709551615UL) / 41}, - - {(((((uintmax_t)0xbe82U << 28 | 0xfa0be82U) << 28 | 0xfa0be82U) << 28 | - 0xfa0be82U) - << 28 | - 0xfa0be83U), - (18446744073709551615UL) / 43}, - - {(((((uintmax_t)0x3677U << 28 | 0xd46cefaU) << 28 | 0x8d9df51U) << 28 | - 0xb3bea36U) - << 28 | - 0x77d46cfU), - (18446744073709551615UL) / 47}, - - {(((((uintmax_t)0x1352U << 28 | 0x1cfb2b7U) << 28 | 0x8c13521U) << 28 | - 0xcfb2b78U) - << 28 | - 0xc13521dU), - (18446744073709551615UL) / 53}, - - {(((((uintmax_t)0x8f2fU << 28 | 0xba93868U) << 28 | 0x22b63cbU) << 28 | - 0xeea4e1aU) - << 28 | - 0x08ad8f3U), - (18446744073709551615UL) / 59}, - - {(((((uintmax_t)0x14fbU << 28 | 0xcda3ac1U) << 28 | 0x0c9714fU) << 28 | - 0xbcda3acU) - << 28 | - 0x10c9715U), - (18446744073709551615UL) / 61}, - - {(((((uintmax_t)0xc2ddU << 28 | 0x9ca81e9U) << 28 | 0x131abf0U) << 28 | - 0xb7672a0U) - << 28 | - 0x7a44c6bU), - (18446744073709551615UL) / 67}, - - {(((((uintmax_t)0x4f52U << 28 | 0xedf8c9eU) << 28 | 0xa5dbf19U) << 28 | - 0x3d4bb7eU) - << 28 | - 0x327a977U), - (18446744073709551615UL) / 71}, - - {(((((uintmax_t)0x3f1fU << 28 | 0x8fc7e3fU) << 28 | 0x1f8fc7eU) << 28 | - 0x3f1f8fcU) - << 28 | - 0x7e3f1f9U), - (18446744073709551615UL) / 73}, - - {(((((uintmax_t)0xd5dfU << 28 | 0x984dc5aU) << 28 | 0xbbf309bU) << 28 | - 0x8b577e6U) - << 28 | - 0x13716afU), - (18446744073709551615UL) / 79}, - - {(((((uintmax_t)0x2818U << 28 | 0xacb90f6U) << 28 | 0xbf3a9a3U) << 28 | - 0x784a062U) - << 28 | - 0xb2e43dbU), - (18446744073709551615UL) / 83}, - - {(((((uintmax_t)0xd1faU << 28 | 0x3f47e8fU) << 28 | 0xd1fa3f4U) << 28 | - 0x7e8fd1fU) - << 28 | - 0xa3f47e9U), - (18446744073709551615UL) / 89}, - - {(((((uintmax_t)0x5f02U << 28 | 0xa3a0fd5U) << 28 | 0xc5f02a3U) << 28 | - 0xa0fd5c5U) - << 28 | - 0xf02a3a1U), - (18446744073709551615UL) / 97}, - - {(((((uintmax_t)0xc32bU << 28 | 0x16cfd77U) << 28 | 0x20f353aU) << 28 | - 0x4c0a237U) - << 28 | - 0xc32b16dU), - (18446744073709551615UL) / 101}, - - {(((((uintmax_t)0xd0c6U << 28 | 0xd5bf60eU) << 28 | 0xe9a18daU) << 28 | - 0xb7ec1ddU) - << 28 | - 0x3431b57U), - (18446744073709551615UL) / 103}, - - {(((((uintmax_t)0xa2b1U << 28 | 0x0bf66e0U) << 28 | 0xe5aea77U) << 28 | - 0xa04c8f8U) - << 28 | - 0xd28ac43U), - (18446744073709551615UL) / 107}, - - {(((((uintmax_t)0xc096U << 28 | 0x4fda6c0U) << 28 | 0x964fda6U) << 28 | - 0xc0964fdU) - << 28 | - 0xa6c0965U), - (18446744073709551615UL) / 109}, - - {(((((uintmax_t)0xc090U << 28 | 0xfdbc090U) << 28 | 0xfdbc090U) << 28 | - 0xfdbc090U) - << 28 | - 0xfdbc091U), - (18446744073709551615UL) / 113}, - - {(((((uintmax_t)0xbf7eU << 28 | 0xfdfbf7eU) << 28 | 0xfdfbf7eU) << 28 | - 0xfdfbf7eU) - << 28 | - 0xfdfbf7fU), - (18446744073709551615UL) / 127}, - - {(((((uintmax_t)0xf82eU << 28 | 0xe6986d6U) << 28 | 0xf63aa03U) << 28 | - 0xe88cb3cU) - << 28 | - 0x9484e2bU), - (18446744073709551615UL) / 131}, - - {(((((uintmax_t)0x21a2U << 28 | 0x91c0779U) << 28 | 0x75b8fe2U) << 28 | - 0x1a291c0U) - << 28 | - 0x77975b9U), - (18446744073709551615UL) / 137}, - - {(((((uintmax_t)0xa212U << 28 | 0x6ad1f4fU) << 28 | 0x31ba03aU) << 28 | - 0xef6ca97U) - << 28 | - 0x0586723U), - (18446744073709551615UL) / 139}, - - {(((((uintmax_t)0x93c2U << 28 | 0x25cc74dU) << 28 | 0x50c06dfU) << 28 | - 0x5b0f768U) - << 28 | - 0xce2cabdU), - (18446744073709551615UL) / 149}, - - {(((((uintmax_t)0x26feU << 28 | 0x4dfc9bfU) << 28 | 0x937f26fU) << 28 | - 0xe4dfc9bU) - << 28 | - 0xf937f27U), - (18446744073709551615UL) / 151}, - - {(((((uintmax_t)0x0685U << 28 | 0xb4fe5e9U) << 28 | 0x2c0685bU) << 28 | - 0x4fe5e92U) - << 28 | - 0xc0685b5U), - (18446744073709551615UL) / 157}, - - {(((((uintmax_t)0x8bc7U << 28 | 0x75ca99eU) << 28 | 0xa03241fU) << 28 | - 0x693a1c4U) - << 28 | - 0x51ab30bU), - (18446744073709551615UL) / 163}, - - {(((((uintmax_t)0x513eU << 28 | 0xd9ad38bU) << 28 | 0x7f3bc8dU) << 28 | - 0x07aa27dU) - << 28 | - 0xb35a717U), - (18446744073709551615UL) / 167}, - - {(((((uintmax_t)0x133cU << 28 | 0xaba736cU) << 28 | 0x05eb488U) << 28 | - 0x2383b30U) - << 28 | - 0xd516325U), - (18446744073709551615UL) / 173}, - - {(((((uintmax_t)0x0e4dU << 28 | 0x3aa30a0U) << 28 | 0x2dc3eedU) << 28 | - 0x6866f8dU) - << 28 | - 0x962ae7bU), - (18446744073709551615UL) / 179}, - - {(((((uintmax_t)0x6fbcU << 28 | 0x1c498c0U) << 28 | 0x5a84f34U) << 28 | - 0x54dca41U) - << 28 | - 0x0f8ed9dU), - (18446744073709551615UL) / 181}, - - {(((((uintmax_t)0x7749U << 28 | 0xb79f7f5U) << 28 | 0x470961dU) << 28 | - 0x7ca632eU) - << 28 | - 0xe936f3fU), - (18446744073709551615UL) / 191}, - - {(((((uintmax_t)0x9094U << 28 | 0x8f40feaU) << 28 | 0xc6f6b70U) << 28 | - 0xbf01539U) - << 28 | - 0x0948f41U), - (18446744073709551615UL) / 193}, - - {(((((uintmax_t)0x0bb2U << 28 | 0x07cc053U) << 28 | 0x2ae21c9U) << 28 | - 0x6bdb9d3U) - << 28 | - 0xd137e0dU), - (18446744073709551615UL) / 197}, - - {(((((uintmax_t)0x7a36U << 28 | 0x07b7f5bU) << 28 | 0x5630e26U) << 28 | - 0x97cc8aeU) - << 28 | - 0xf46c0f7U), - (18446744073709551615UL) / 199}, - - {(((((uintmax_t)0x2f51U << 28 | 0x4a026d3U) << 28 | 0x1be7bc0U) << 28 | - 0xe8f2a76U) - << 28 | - 0xe68575bU), - (18446744073709551615UL) / 211}, - - {(((((uintmax_t)0xdd8fU << 28 | 0x7f6d0eeU) << 28 | 0xc7bfb68U) << 28 | - 0x7763dfdU) - << 28 | - 0xb43bb1fU), - (18446744073709551615UL) / 223}, - - {(((((uintmax_t)0x766aU << 28 | 0x024168eU) << 28 | 0x18cf81bU) << 28 | - 0x10ea929U) - << 28 | - 0xba144cbU), - (18446744073709551615UL) / 227}, - - {(((((uintmax_t)0x0c4cU << 28 | 0x0478bbcU) << 28 | 0xecfee1dU) << 28 | - 0x10c4c04U) - << 28 | - 0x78bbcedU), - (18446744073709551615UL) / 229}, - - {(((((uintmax_t)0x758fU << 28 | 0xee6bac7U) << 28 | 0xf735d63U) << 28 | - 0xfb9aeb1U) - << 28 | - 0xfdcd759U), - (18446744073709551615UL) / 233}, - - {(((((uintmax_t)0x077fU << 28 | 0x76e538cU) << 28 | 0x5167e64U) << 28 | - 0xafaa4f4U) - << 28 | - 0x37b2e0fU), - (18446744073709551615UL) / 239}, - - {(((((uintmax_t)0x10feU << 28 | 0xf010fefU) << 28 | 0x010fef0U) << 28 | - 0x10fef01U) - << 28 | - 0x0fef011U), - (18446744073709551615UL) / 241}, - - {(((((uintmax_t)0xa020U << 28 | 0xa32fefaU) << 28 | 0xe680828U) << 28 | - 0xcbfbeb9U) - << 28 | - 0xa020a33U), - (18446744073709551615UL) / 251}, - - {(((((uintmax_t)0xff00U << 28 | 0xff00ff0U) << 28 | 0x0ff00ffU) << 28 | - 0x00ff00fU) - << 28 | - 0xf00ff01U), - (18446744073709551615UL) / 257}, - - {(((((uintmax_t)0xf836U << 28 | 0x826ef73U) << 28 | 0xd52bcd6U) << 28 | - 0x24fd147U) - << 28 | - 0x0e99cb7U), - (18446744073709551615UL) / 263}, - - {(((((uintmax_t)0x3ce8U << 28 | 0x354b2eaU) << 28 | 0x1c8cd8fU) << 28 | - 0xb3ddbd6U) - << 28 | - 0x205b5c5U), - (18446744073709551615UL) / 269}, - - {(((((uintmax_t)0x8715U << 28 | 0xba188f9U) << 28 | 0x63302d5U) << 28 | - 0x7da36caU) - << 28 | - 0x27acdefU), - (18446744073709551615UL) / 271}, - - {(((((uintmax_t)0xb25eU << 28 | 0x4463cffU) << 28 | 0x13686eeU) << 28 | - 0x70c03b2U) - << 28 | - 0x5e4463dU), - (18446744073709551615UL) / 277}, - - {(((((uintmax_t)0x6c69U << 28 | 0xae01d27U) << 28 | 0x2ca3fc5U) << 28 | - 0xb1a6b80U) - << 28 | - 0x749cb29U), - (18446744073709551615UL) / 281}, - - {(((((uintmax_t)0xf26eU << 28 | 0x5c44bfcU) << 28 | 0x61b2347U) << 28 | - 0x768073cU) - << 28 | - 0x9b97113U), - (18446744073709551615UL) / 283}, - - {(((((uintmax_t)0xb07dU << 28 | 0xd0d1b15U) << 28 | 0xd7cf125U) << 28 | - 0x91e9488U) - << 28 | - 0x4ce32adU), - (18446744073709551615UL) / 293}, - - {(((((uintmax_t)0xd2f8U << 28 | 0x7ebfcaaU) << 28 | 0x1c5a0f0U) << 28 | - 0x2806abcU) - << 28 | - 0x74be1fbU), - (18446744073709551615UL) / 307}, - - {(((((uintmax_t)0xbe25U << 28 | 0xdd6d7aaU) << 28 | 0x646ca7eU) << 28 | - 0xc3e8f3aU) - << 28 | - 0x7198487U), - (18446744073709551615UL) / 311}, - - {(((((uintmax_t)0xbc1dU << 28 | 0x71afd8bU) << 28 | 0xdc03458U) << 28 | - 0x550f8a3U) - << 28 | - 0x9409d09U), - (18446744073709551615UL) / 313}, - - {(((((uintmax_t)0x2ed6U << 28 | 0xd05a72aU) << 28 | 0xcd1f7ecU) << 28 | - 0x9e48ae6U) - << 28 | - 0xf71de15U), - (18446744073709551615UL) / 317}, - - {(((((uintmax_t)0x62ffU << 28 | 0x3a018bfU) << 28 | 0xce8062fU) << 28 | - 0xf3a018bU) - << 28 | - 0xfce8063U), - (18446744073709551615UL) / 331}, - - {(((((uintmax_t)0x3fcfU << 28 | 0x61fe7b0U) << 28 | 0xff3d87fU) << 28 | - 0x9ec3fcfU) - << 28 | - 0x61fe7b1U), - (18446744073709551615UL) / 337}, - - {(((((uintmax_t)0x398bU << 28 | 0x6f668c2U) << 28 | 0xc43df89U) << 28 | - 0xf5abe57U) - << 28 | - 0x0e046d3U), - (18446744073709551615UL) / 347}, - - {(((((uintmax_t)0x8c1aU << 28 | 0x682913cU) << 28 | 0xe1ecedaU) << 28 | - 0x971b23fU) - << 28 | - 0x1545af5U), - (18446744073709551615UL) / 349}, - - {(((((uintmax_t)0x0b9aU << 28 | 0x7862a0fU) << 28 | 0xf465879U) << 28 | - 0xd5f00b9U) - << 28 | - 0xa7862a1U), - (18446744073709551615UL) / 353}, - - {(((((uintmax_t)0xe7c1U << 28 | 0x3f77161U) << 28 | 0xb18f54dU) << 28 | - 0xba1df32U) - << 28 | - 0xa128a57U), - (18446744073709551615UL) / 359}, - - {(((((uintmax_t)0x7318U << 28 | 0x6a06f9bU) << 28 | 0x8d9a287U) << 28 | - 0x530217bU) - << 28 | - 0x7747d8fU), - (18446744073709551615UL) / 367}, - - {(((((uintmax_t)0x7c39U << 28 | 0xa6c708eU) << 28 | 0xc18b530U) << 28 | - 0xbaae53bU) - << 28 | - 0xb5e06ddU), - (18446744073709551615UL) / 373}, - - {(((((uintmax_t)0x3763U << 28 | 0x4af9ebbU) << 28 | 0xc742deeU) << 28 | - 0x70206c1U) - << 28 | - 0x2e9b5b3U), - (18446744073709551615UL) / 379}, - - {(((((uintmax_t)0x5035U << 28 | 0x78fb523U) << 28 | 0x6cf34cdU) << 28 | - 0xde9462eU) - << 28 | - 0xc9dbe7fU), - (18446744073709551615UL) / 383}, - - {(((((uintmax_t)0xbcdfU << 28 | 0xc0d2975U) << 28 | 0xccab1afU) << 28 | - 0xb64b05eU) - << 28 | - 0xc41cf4dU), - (18446744073709551615UL) / 389}, - - {(((((uintmax_t)0xf5aeU << 28 | 0xc02944fU) << 28 | 0xf5aec02U) << 28 | - 0x944ff5aU) - << 28 | - 0xec02945U), - (18446744073709551615UL) / 397}, - - {(((((uintmax_t)0xc7d2U << 28 | 0x08f00a3U) << 28 | 0x6e71a2cU) << 28 | - 0xb033128U) - << 28 | - 0x382df71U), - (18446744073709551615UL) / 401}, - - {(((((uintmax_t)0xd38fU << 28 | 0x55c0280U) << 28 | 0xf05a21cU) << 28 | - 0xcacc0c8U) - << 28 | - 0x4b1c2a9U), - (18446744073709551615UL) / 409}, - - {(((((uintmax_t)0xca3bU << 28 | 0xe03aa76U) << 28 | 0x87a3219U) << 28 | - 0xa93db57U) - << 28 | - 0x5eb3a0bU), - (18446744073709551615UL) / 419}, - - {(((((uintmax_t)0x6a69U << 28 | 0xce2344bU) << 28 | 0x66c3cceU) << 28 | - 0xbeef94fU) - << 28 | - 0xa86fe2dU), - (18446744073709551615UL) / 421}, - - {(((((uintmax_t)0xfecfU << 28 | 0xe37d53bU) << 28 | 0xfd9fc6fU) << 28 | - 0xaa77fb3U) - << 28 | - 0xf8df54fU), - (18446744073709551615UL) / 431}, - - {(((((uintmax_t)0xa58aU << 28 | 0xf00975aU) << 28 | 0x750ff68U) << 28 | - 0xa58af00U) - << 28 | - 0x975a751U), - (18446744073709551615UL) / 433}, - - {(((((uintmax_t)0xdc6dU << 28 | 0xa187df5U) << 28 | 0x80dfed5U) << 28 | - 0x6e36d0cU) - << 28 | - 0x3efac07U), - (18446744073709551615UL) / 439}, - - {(((((uintmax_t)0x8fe4U << 28 | 0x4308ab0U) << 28 | 0xd4a8bd8U) << 28 | - 0xb44c47aU) - << 28 | - 0x8299b73U), - (18446744073709551615UL) / 443}, - - {(((((uintmax_t)0xf1bfU << 28 | 0x0091f5bU) << 28 | 0xcb8bb02U) << 28 | - 0xd9ccaf9U) - << 28 | - 0xba70e41U), - (18446744073709551615UL) / 449}, - - {(((((uintmax_t)0x5e1cU << 28 | 0x023d9e8U) << 28 | 0x78ff709U) << 28 | - 0x85e1c02U) - << 28 | - 0x3d9e879U), - (18446744073709551615UL) / 457}, - - {(((((uintmax_t)0x7880U << 28 | 0xd53da3dU) << 28 | 0x15a842aU) << 28 | - 0x343316cU) - << 28 | - 0x494d305U), - (18446744073709551615UL) / 461}, - - {(((((uintmax_t)0x1ddbU << 28 | 0x81ef699U) << 28 | 0xb5e8c70U) << 28 | - 0xcb7916aU) - << 28 | - 0xb67652fU), - (18446744073709551615UL) / 463}, - - {(((((uintmax_t)0xf364U << 28 | 0x5121706U) << 28 | 0x07acad3U) << 28 | - 0x98f132fU) - << 28 | - 0xb10fe5bU), - (18446744073709551615UL) / 467}, - - {(((((uintmax_t)0xadb1U << 28 | 0xf8848afU) << 28 | 0x4c6d06fU) << 28 | - 0x2a38a6bU) - << 28 | - 0xf54fa1fU), - (18446744073709551615UL) / 479}, - - {(((((uintmax_t)0xd9a0U << 28 | 0x541b55aU) << 28 | 0xf0c1721U) << 28 | - 0x1df689bU) - << 28 | - 0x98f81d7U), - (18446744073709551615UL) / 487}, - - {(((((uintmax_t)0x673bU << 28 | 0xf592825U) << 28 | 0x8a2ac0eU) << 28 | - 0x994983eU) - << 28 | - 0x90f1ec3U), - (18446744073709551615UL) / 491}, - - {(((((uintmax_t)0x0ddaU << 28 | 0x093c062U) << 28 | 0x8041aadU) << 28 | - 0x671e44bU) - << 28 | - 0xed87f3bU), - (18446744073709551615UL) / 499}, - - {(((((uintmax_t)0xa9fcU << 28 | 0xf24229bU) << 28 | 0xbcd1af9U) << 28 | - 0x623a051U) - << 28 | - 0x6e70fc7U), - (18446744073709551615UL) / 503}, - - {(((((uintmax_t)0xcbb1U << 28 | 0x8a4f773U) << 28 | 0x2cc324bU) << 28 | - 0x7129be9U) - << 28 | - 0xdece355U), - (18446744073709551615UL) / 509}, - - {(((((uintmax_t)0x01f7U << 28 | 0x27cce5fU) << 28 | 0x530a519U) << 28 | - 0x0f3b747U) - << 28 | - 0x3f62c39U), - (18446744073709551615UL) / 521}, - - {(((((uintmax_t)0x6da4U << 28 | 0xf4bdeb7U) << 28 | 0x1121c63U) << 28 | - 0xdacc9aaU) - << 28 | - 0xd46f9a3U), - (18446744073709551615UL) / 523}, - - {(((((uintmax_t)0x4d9aU << 28 | 0xbc552cfU) << 28 | 0x42b88c1U) << 28 | - 0x108fda2U) - << 28 | - 0x4e8d035U), - (18446744073709551615UL) / 541}, - - {(((((uintmax_t)0x141fU << 28 | 0xd312409U) << 28 | 0x5c328b7U) << 28 | - 0x7578472U) - << 28 | - 0x319bd8bU), - (18446744073709551615UL) / 547}, - - {(((((uintmax_t)0xddfdU << 28 | 0x3e0bf32U) << 28 | 0x18d1947U) << 28 | - 0x3d20a1cU) - << 28 | - 0x7ed9da5U), - (18446744073709551615UL) / 557}, - - {(((((uintmax_t)0xdb2bU << 28 | 0x3278f3bU) << 28 | 0x910d2fbU) << 28 | - 0xe85af0fU) - << 28 | - 0xea2c8fbU), - (18446744073709551615UL) / 563}, - - {(((((uintmax_t)0xcb5cU << 28 | 0x3b636e3U) << 28 | 0xa7d1358U) << 28 | - 0xa1f7e6cU) - << 28 | - 0xe0f4c09U), - (18446744073709551615UL) / 569}, - - {(((((uintmax_t)0x1bcbU << 28 | 0xfe34e75U) << 28 | 0x76cf21aU) << 28 | - 0x00e58c5U) - << 28 | - 0x44986f3U), - (18446744073709551615UL) / 571}, - - {(((((uintmax_t)0x6b5eU << 28 | 0x80aa5efU) << 28 | 0x23f0071U) << 28 | - 0x94a17f5U) - << 28 | - 0x5a10dc1U), - (18446744073709551615UL) / 577}, - - {(((((uintmax_t)0x9a62U << 28 | 0x8feb110U) << 28 | 0x22e3a70U) << 28 | - 0x8494478U) - << 28 | - 0x5e33763U), - (18446744073709551615UL) / 587}, - - {(((((uintmax_t)0xbe61U << 28 | 0x909eddeU) << 28 | 0x53c01baU) << 28 | - 0x10679bdU) - << 28 | - 0x84886b1U), - (18446744073709551615UL) / 593}, - - {(((((uintmax_t)0x4febU << 28 | 0x7c5e05fU) << 28 | 0xbb9e8ebU) << 28 | - 0xe9c6bb3U) - << 28 | - 0x1260967U), - (18446744073709551615UL) / 599}, - - {(((((uintmax_t)0x1ff2U << 28 | 0x5e8ff92U) << 28 | 0xf47fc97U) << 28 | - 0xa3fe4bdU) - << 28 | - 0x1ff25e9U), - (18446744073709551615UL) / 601}, - - {(((((uintmax_t)0x3014U << 28 | 0x3e6b1faU) << 28 | 0x187616cU) << 28 | - 0x6388395U) - << 28 | - 0xb84d99fU), - (18446744073709551615UL) / 607}, - - {(((((uintmax_t)0xd491U << 28 | 0x54c6c94U) << 28 | 0xac0f08cU) << 28 | - 0x51da6a1U) - << 28 | - 0x335df6dU), - (18446744073709551615UL) / 613}, - - {(((((uintmax_t)0x9b97U << 28 | 0x71454a4U) << 28 | 0x4e00d46U) << 28 | - 0xf323447U) - << 28 | - 0x5d5add9U), - (18446744073709551615UL) / 617}, - - {(((((uintmax_t)0x3abaU << 28 | 0x1b4baefU) << 28 | 0x0b2a990U) << 28 | - 0x5605ca3U) - << 28 | - 0xc619a43U), - (18446744073709551615UL) / 619}, - - {(((((uintmax_t)0xcc11U << 28 | 0xd9dd1bfU) << 28 | 0xe608eceU) << 28 | - 0xe8dff30U) - << 28 | - 0x4767747U), - (18446744073709551615UL) / 631}, - - {(((((uintmax_t)0xff99U << 28 | 0xc27f006U) << 28 | 0x63d80ffU) << 28 | - 0x99c27f0U) - << 28 | - 0x0663d81U), - (18446744073709551615UL) / 641}, - - {(((((uintmax_t)0x111eU << 28 | 0xa8032f6U) << 28 | 0x0bf1aacU) << 28 | - 0xca407f6U) - << 28 | - 0x71ddc2bU), - (18446744073709551615UL) / 643}, - - {(((((uintmax_t)0xdd93U << 28 | 0x95f5b66U) << 28 | 0x7aa88e7U) << 28 | - 0x1298bacU) - << 28 | - 0x1e12337U), - (18446744073709551615UL) / 647}, - - {(((((uintmax_t)0xa7caU << 28 | 0xaed9303U) << 28 | 0x8740afaU) << 28 | - 0x1e94309U) - << 28 | - 0xcd09045U), - (18446744073709551615UL) / 653}, - - {(((((uintmax_t)0x2be5U << 28 | 0x958f582U) << 28 | 0xe9db7beU) << 28 | - 0xbccb8e9U) - << 28 | - 0x1496b9bU), - (18446744073709551615UL) / 659}, - - {(((((uintmax_t)0x995eU << 28 | 0x1ca8dbfU) << 28 | 0xb5a3d31U) << 28 | - 0x2fa30ccU) - << 28 | - 0x7d7b8bdU), - (18446744073709551615UL) / 661}, - - {(((((uintmax_t)0x9f00U << 28 | 0x6160ff9U) << 28 | 0xe9f0061U) << 28 | - 0x60ff9e9U) - << 28 | - 0xf006161U), - (18446744073709551615UL) / 673}, - - {(((((uintmax_t)0xb33cU << 28 | 0xe15ee9bU) << 28 | 0x097416bU) << 28 | - 0x03673b5U) - << 28 | - 0xe28152dU), - (18446744073709551615UL) / 677}, - - {(((((uintmax_t)0xfa00U << 28 | 0xbfe802fU) << 28 | 0xfa00bfeU) << 28 | - 0x802ffa0U) - << 28 | - 0x0bfe803U), - (18446744073709551615UL) / 683}, - - {(((((uintmax_t)0x1c28U << 28 | 0x02f6bcfU) << 28 | 0x18d26e6U) << 28 | - 0x6fe25c9U) - << 28 | - 0xe907c7bU), - (18446744073709551615UL) / 691}, - - {(((((uintmax_t)0xcf6dU << 28 | 0xec4793eU) << 28 | 0x72aba3fU) << 28 | - 0x8b236c7U) - << 28 | - 0x6528895U), - (18446744073709551615UL) / 701}, - - {(((((uintmax_t)0x1e54U << 28 | 0x7da72d2U) << 28 | 0x24d44f6U) << 28 | - 0xf923bf0U) - << 28 | - 0x1ce2c0dU), - (18446744073709551615UL) / 709}, - - {(((((uintmax_t)0x7746U << 28 | 0xda9d5fcU) << 28 | 0x708306cU) << 28 | - 0x3d3d98bU) - << 28 | - 0xed7c42fU), - (18446744073709551615UL) / 719}, - - {(((((uintmax_t)0xcdffU << 28 | 0x4bb5591U) << 28 | 0x6e37a30U) << 28 | - 0x981efcdU) - << 28 | - 0x4b010e7U), - (18446744073709551615UL) / 727}, - - {(((((uintmax_t)0x2c01U << 28 | 0x65a1b3dU) << 28 | 0xd13356fU) << 28 | - 0x691fc81U) - << 28 | - 0xebbe575U), - (18446744073709551615UL) / 733}, - - {(((((uintmax_t)0xa802U << 28 | 0xc574bddU) << 28 | 0x5bccbb1U) << 28 | - 0x0480ddbU) - << 28 | - 0x47b52cbU), - (18446744073709551615UL) / 739}, - - {(((((uintmax_t)0x5411U << 28 | 0xeaa350fU) << 28 | 0x8134b74U) << 28 | - 0xcd59ed6U) - << 28 | - 0x4f3f0d7U), - (18446744073709551615UL) / 743}, - - {(((((uintmax_t)0xfceeU << 28 | 0x9d7c6bbU) << 28 | 0x7bbd301U) << 28 | - 0x05cb813U) - << 28 | - 0x16d6c0fU), - (18446744073709551615UL) / 751}, - - {(((((uintmax_t)0x4248U << 28 | 0x5eb0874U) << 28 | 0x553879bU) << 28 | - 0xe64c6d9U) - << 28 | - 0x1c1195dU), - (18446744073709551615UL) / 757}, - - {(((((uintmax_t)0xe060U << 28 | 0xe20f797U) << 28 | 0x0b19e71U) << 28 | - 0xb3f945aU) - << 28 | - 0x27b1f49U), - (18446744073709551615UL) / 761}, - - {(((((uintmax_t)0x782dU << 28 | 0x463deb5U) << 28 | 0xc369877U) << 28 | - 0xd80d50eU) - << 28 | - 0x508fd01U), - (18446744073709551615UL) / 769}, - - {(((((uintmax_t)0x4a2fU << 28 | 0x06f468aU) << 28 | 0x6e9cfa5U) << 28 | - 0xeb778e1U) - << 28 | - 0x33551cdU), - (18446744073709551615UL) / 773}, - - {(((((uintmax_t)0xda44U << 28 | 0x4f5ea87U) << 28 | 0xf831718U) << 28 | - 0x657d3c2U) - << 28 | - 0xd8a3f1bU), - (18446744073709551615UL) / 787}, - - {(((((uintmax_t)0xfb80U << 28 | 0xcd9225eU) << 28 | 0x6f2302eU) << 28 | - 0x40e220cU) - << 28 | - 0x34ad735U), - (18446744073709551615UL) / 797}, - - {(((((uintmax_t)0x1719U << 28 | 0xa1b36beU) << 28 | 0x7f357a7U) << 28 | - 0x6593c70U) - << 28 | - 0xa714919U), - (18446744073709551615UL) / 809}, - - {(((((uintmax_t)0x2867U << 28 | 0x894fdcaU) << 28 | 0x567da1eU) << 28 | - 0xef45212U) - << 28 | - 0x4eea383U), - (18446744073709551615UL) / 811}, - - {(((((uintmax_t)0x8932U << 28 | 0xd36914eU) << 28 | 0x43f9c38U) << 28 | - 0x206dc24U) - << 28 | - 0x2ba771dU), - (18446744073709551615UL) / 821}, - - {(((((uintmax_t)0xdeb7U << 28 | 0x8610cc0U) << 28 | 0xdafbf4cU) << 28 | - 0xd4c3580U) - << 28 | - 0x7772287U), - (18446744073709551615UL) / 823}, - - {(((((uintmax_t)0x8fa1U << 28 | 0xe560e3dU) << 28 | 0x4a9a283U) << 28 | - 0xde917d5U) - << 28 | - 0xe69ddf3U), - (18446744073709551615UL) / 827}, - - {(((((uintmax_t)0x6724U << 28 | 0x2159dccU) << 28 | 0xbcfd388U) << 28 | - 0x2ef0403U) - << 28 | - 0xb4a6c15U), - (18446744073709551615UL) / 829}, - - {(((((uintmax_t)0x5e96U << 28 | 0xbb58ca9U) << 28 | 0xa64b0f8U) << 28 | - 0xfb6c51cU) - << 28 | - 0x606b677U), - (18446744073709551615UL) / 839}, - - {(((((uintmax_t)0x2450U << 28 | 0x6e7171bU) << 28 | 0xe930eb4U) << 28 | - 0xabaac44U) - << 28 | - 0x6d3e1fdU), - (18446744073709551615UL) / 853}, - - {(((((uintmax_t)0x3743U << 28 | 0x3611535U) << 28 | 0x7861fa9U) << 28 | - 0xf83bbe4U) - << 28 | - 0x84a14e9U), - (18446744073709551615UL) / 857}, - - {(((((uintmax_t)0x232aU << 28 | 0x9df37baU) << 28 | 0xdbf080bU) << 28 | - 0xebbc0d1U) - << 28 | - 0xce874d3U), - (18446744073709551615UL) / 859}, - - {(((((uintmax_t)0x569eU << 28 | 0x67d2e92U) << 28 | 0x8a3bebdU) << 28 | - 0x418eaf0U) - << 28 | - 0x473189fU), - (18446744073709551615UL) / 863}, - - {(((((uintmax_t)0x7e1aU << 28 | 0x457923eU) << 28 | 0x77ae444U) << 28 | - 0xe3af6f3U) - << 28 | - 0x72b7e65U), - (18446744073709551615UL) / 877}, - - {(((((uintmax_t)0x9764U << 28 | 0x3fed672U) << 28 | 0x7cf2ec8U) << 28 | - 0x7fdace4U) - << 28 | - 0xf9e5d91U), - (18446744073709551615UL) / 881}, - - {(((((uintmax_t)0xea8bU << 28 | 0xbde5e83U) << 28 | 0x9fbf0ecU) << 28 | - 0x93479c4U) - << 28 | - 0x46bd9bbU), - (18446744073709551615UL) / 883}, - - {(((((uintmax_t)0x3d2fU << 28 | 0x9f06a35U) << 28 | 0xae9c6daU) << 28 | - 0xc4d592eU) - << 28 | - 0x777c647U), - (18446744073709551615UL) / 887}, - - {(((((uintmax_t)0x81d5U << 28 | 0xa9a1ba9U) << 28 | 0x11379a6U) << 28 | - 0x3ea8c8fU) - << 28 | - 0x61f0c23U), - (18446744073709551615UL) / 907}, - - {(((((uintmax_t)0x752eU << 28 | 0x5ddb77fU) << 28 | 0xdc07de4U) << 28 | - 0x76062eaU) - << 28 | - 0x5cbbb6fU), - (18446744073709551615UL) / 911}, - - {(((((uintmax_t)0x1abdU << 28 | 0xfafc60fU) << 28 | 0x0add2dfU) << 28 | - 0x68761c6U) - << 28 | - 0x9daac27U), - (18446744073709551615UL) / 919}, - - {(((((uintmax_t)0xac3aU << 28 | 0x6b786c0U) << 28 | 0x582e4b8U) << 28 | - 0x13d7376U) - << 28 | - 0x37aa061U), - (18446744073709551615UL) / 929}, - - {(((((uintmax_t)0x131fU << 28 | 0xf741d81U) << 28 | 0xc6a01a3U) << 28 | - 0xa77aac1U) - << 28 | - 0xfb15099U), - (18446744073709551615UL) / 937}, - - {(((((uintmax_t)0xc53cU << 28 | 0xaad918cU) << 28 | 0x1b34817U) << 28 | - 0xf0c3e07U) - << 28 | - 0x12c5825U), - (18446744073709551615UL) / 941}, - - {(((((uintmax_t)0xea1aU << 28 | 0x7df8f8bU) << 28 | 0x37f52fdU) << 28 | - 0x912a70fU) - << 28 | - 0xf30637bU), - (18446744073709551615UL) / 947}, - - {(((((uintmax_t)0xbb3bU << 28 | 0x5dc0113U) << 28 | 0x1288ffbU) << 28 | - 0xb3b5dc0U) - << 28 | - 0x1131289U), - (18446744073709551615UL) / 953}, - - {(((((uintmax_t)0x50beU << 28 | 0x9c31c53U) << 28 | 0xa81b885U) << 28 | - 0x6d560a0U) - << 28 | - 0xf5acdf7U), - (18446744073709551615UL) / 967}, - - {(((((uintmax_t)0x6580U << 28 | 0xec3a008U) << 28 | 0x6fc9296U) << 28 | - 0x472f314U) - << 28 | - 0xd3f89e3U), - (18446744073709551615UL) / 971}, - - {(((((uintmax_t)0x1108U << 28 | 0x1f71752U) << 28 | 0x03ab1a7U) << 28 | - 0x6f5c7edU) - << 28 | - 0x2253531U), - (18446744073709551615UL) / 977}, - - {(((((uintmax_t)0xb81fU << 28 | 0x4053563U) << 28 | 0x3908981U) << 28 | - 0x6eae7c7U) - << 28 | - 0xbf69fe7U), - (18446744073709551615UL) / 983}, - - {(((((uintmax_t)0x9c8bU << 28 | 0x7ed668eU) << 28 | 0x14263b6U) << 28 | - 0xa2bea4cU) - << 28 | - 0xfb1781fU), - (18446744073709551615UL) / 991}, - - {(((((uintmax_t)0x0291U << 28 | 0x54fdb06U) << 28 | 0x6b547a3U) << 28 | - 0x900c533U) - << 28 | - 0x18e81edU), - (18446744073709551615UL) / 997}, - - {(((((uintmax_t)0x2240U << 28 | 0x71aa3e6U) << 28 | 0xa0db360U) << 28 | - 0xaa7f5d9U) - << 28 | - 0xf148d11U), - (18446744073709551615UL) / 1009}, - - {(((((uintmax_t)0x02c7U << 28 | 0xa505cffU) << 28 | 0xbf4e16bU) << 28 | - 0xe8c0102U) - << 28 | - 0xc7a505dU), - (18446744073709551615UL) / 1013}, - - {(((((uintmax_t)0xcafdU << 28 | 0xbd2c779U) << 28 | 0x57ad98fU) << 28 | - 0xf3f0ed2U) - << 28 | - 0x8728f33U), - (18446744073709551615UL) / 1019}, - - {(((((uintmax_t)0x513cU << 28 | 0xedb245bU) << 28 | 0x4473568U) << 28 | - 0x0e0a87eU) - << 28 | - 0x5ec7155U), - (18446744073709551615UL) / 1021}, - - {(((((uintmax_t)0x2e6eU << 28 | 0xbe33267U) << 28 | 0xca5ddbbU) << 28 | - 0xf70fa49U) - << 28 | - 0xfe829b7U), - (18446744073709551615UL) / 1031}, - - {(((((uintmax_t)0x007eU << 28 | 0xe2825abU) << 28 | 0x3eb2ed6U) << 28 | - 0x9d1e7b6U) - << 28 | - 0xa50ca39U), - (18446744073709551615UL) / 1033}, - - {(((((uintmax_t)0x2f8dU << 28 | 0xacb84cdU) << 28 | 0xfb90a1aU) << 28 | - 0x1e0f46bU) - << 28 | - 0x6d26aefU), - (18446744073709551615UL) / 1039}, - - {(((((uintmax_t)0x01f3U << 28 | 0xcc435b0U) << 28 | 0x713c474U) << 28 | - 0x29f9a7aU) - << 28 | - 0x8251829U), - (18446744073709551615UL) / 1049}, - - {(((((uintmax_t)0x8c0eU << 28 | 0x9d59e14U) << 28 | 0xf29a6d9U) << 28 | - 0xc2219d1U) - << 28 | - 0xb863613U), - (18446744073709551615UL) / 1051}, - - {(((((uintmax_t)0x6e81U << 28 | 0xcf42d5cU) << 28 | 0x6932e91U) << 28 | - 0x406c182U) - << 28 | - 0x0d077adU), - (18446744073709551615UL) / 1061}, - - {(((((uintmax_t)0x9c4cU << 28 | 0x1a02688U) << 28 | 0x4efdd52U) << 28 | - 0x1f4ec02U) - << 28 | - 0xe3d2b97U), - (18446744073709551615UL) / 1063}, - - {(((((uintmax_t)0x7bcfU << 28 | 0x2599067U) << 28 | 0x74255bbU) << 28 | - 0x8283b63U) - << 28 | - 0xdc8eba5U), - (18446744073709551615UL) / 1069}, - - {(((((uintmax_t)0x46a7U << 28 | 0x3667275U) << 28 | 0x48c5d43U) << 28 | - 0x1eda153U) - << 28 | - 0x229ebbfU), - (18446744073709551615UL) / 1087}, - - {(((((uintmax_t)0xe720U << 28 | 0x9daecfeU) << 28 | 0x5b832afU) << 28 | - 0x0bf78d7U) - << 28 | - 0xe01686bU), - (18446744073709551615UL) / 1091}, - - {(((((uintmax_t)0x194bU << 28 | 0xa6ff4c1U) << 28 | 0xeeaafa9U) << 28 | - 0xced0742U) - << 28 | - 0xc086e8dU), - (18446744073709551615UL) / 1093}, - - {(((((uintmax_t)0x777bU << 28 | 0x730c5e4U) << 28 | 0x768c7c2U) << 28 | - 0x6458ad9U) - << 28 | - 0xf632df9U), - (18446744073709551615UL) / 1097}, - - {(((((uintmax_t)0x2aefU << 28 | 0xfc49577U) << 28 | 0xfe24abbU) << 28 | - 0xff1255dU) - << 28 | - 0xff892afU), - (18446744073709551615UL) / 1103}, - - {(((((uintmax_t)0xf1b0U << 28 | 0x213da24U) << 28 | 0x78f59cbU) << 28 | - 0xd49a333U) - << 28 | - 0xf04d8fdU), - (18446744073709551615UL) / 1109}, - - {(((((uintmax_t)0x8822U << 28 | 0xd60f205U) << 28 | 0x0ac58ecU) << 28 | - 0x84ed6f9U) - << 28 | - 0xcfdeff5U), - (18446744073709551615UL) / 1117}, - - {(((((uintmax_t)0x3606U << 28 | 0xd6bd351U) << 28 | 0xd682d97U) << 28 | - 0x980cc40U) - << 28 | - 0xbda9d4bU), - (18446744073709551615UL) / 1123}, - - {(((((uintmax_t)0x0122U << 28 | 0x3d38ea0U) << 28 | 0x15c4977U) << 28 | - 0x7f34d52U) - << 28 | - 0x4f5cbd9U), - (18446744073709551615UL) / 1129}, - - {(((((uintmax_t)0x78feU << 28 | 0x716e8a5U) << 28 | 0x7a1b227U) << 28 | - 0x97051d9U) - << 28 | - 0x4cbbb7fU), - (18446744073709551615UL) / 1151}, - - {(((((uintmax_t)0xd6ecU << 28 | 0xaef5908U) << 28 | 0xa8be0eaU) << 28 | - 0x769051bU) - << 28 | - 0x4f43b81U), - (18446744073709551615UL) / 1153}, - - {(((((uintmax_t)0x7867U << 28 | 0xe595e6eU) << 28 | 0x801c2ceU) << 28 | - 0x7910f30U) - << 28 | - 0x34d4323U), - (18446744073709551615UL) / 1163}, - - {(((((uintmax_t)0xa705U << 28 | 0xe713e4eU) << 28 | 0x43c5692U) << 28 | - 0x791d137U) - << 28 | - 0x4f5b99bU), - (18446744073709551615UL) / 1171}, - - {(((((uintmax_t)0x92c0U << 28 | 0x0ddf7c3U) << 28 | 0x4e40989U) << 28 | - 0xa5645ccU) - << 28 | - 0x68ea1b5U), - (18446744073709551615UL) / 1181}, - - {(((((uintmax_t)0xab06U << 28 | 0xaf8e205U) << 28 | 0x9b7f75fU) << 28 | - 0x8aacf79U) - << 28 | - 0x6c0cf0bU), - (18446744073709551615UL) / 1187}, - - {(((((uintmax_t)0xe187U << 28 | 0x673725fU) << 28 | 0xb4774f2U) << 28 | - 0xe90a15eU) - << 28 | - 0x33edf99U), - (18446744073709551615UL) / 1193}, - - {(((((uintmax_t)0x57d1U << 28 | 0xf5579b6U) << 28 | 0x3f8538eU) << 28 | - 0x99e5febU) - << 28 | - 0x897c451U), - (18446744073709551615UL) / 1201}, - - {(((((uintmax_t)0x5f64U << 28 | 0xab5ec29U) << 28 | 0x5d7e6acU) << 28 | - 0xa2eda38U) - << 28 | - 0xfb91695U), - (18446744073709551615UL) / 1213}, - - {(((((uintmax_t)0x48c8U << 28 | 0x41a1574U) << 28 | 0xbf0035dU) << 28 | - 0x9b737beU) - << 28 | - 0x5ea8b41U), - (18446744073709551615UL) / 1217}, - - {(((((uintmax_t)0x348aU << 28 | 0x26ef0b8U) << 28 | 0x33e964aU) << 28 | - 0xefe1db9U) - << 28 | - 0x3fd7cf7U), - (18446744073709551615UL) / 1223}, - - {(((((uintmax_t)0x5247U << 28 | 0x3d081faU) << 28 | 0x958f1a0U) << 28 | - 0x994ef20U) - << 28 | - 0xb3f8805U), - (18446744073709551615UL) / 1229}, - - {(((((uintmax_t)0x0ec3U << 28 | 0xe6367c5U) << 28 | 0xc55ae10U) << 28 | - 0x3890bdaU) - << 28 | - 0x912822fU), - (18446744073709551615UL) / 1231}, - - {(((((uintmax_t)0xb57fU << 28 | 0x46921bbU) << 28 | 0xb4ab5b4U) << 28 | - 0x41659d1U) - << 28 | - 0x3a9147dU), - (18446744073709551615UL) / 1237}, - - {(((((uintmax_t)0xb2eeU << 28 | 0xfcecf03U) << 28 | 0x7c00d1eU) << 28 | - 0x2134440U) - << 28 | - 0xc4c3f21U), - (18446744073709551615UL) / 1249}, - - {(((((uintmax_t)0xed4bU << 28 | 0x07ee1b3U) << 28 | 0xf3ccc26U) << 28 | - 0x3a27727U) - << 28 | - 0xa6883c3U), - (18446744073709551615UL) / 1259}, - - {(((((uintmax_t)0x435bU << 28 | 0x9d5e6bdU) << 28 | 0xa4fc978U) << 28 | - 0xe221472U) - << 28 | - 0xab33855U), - (18446744073709551615UL) / 1277}, - - {(((((uintmax_t)0x6013U << 28 | 0x370b023U) << 28 | 0x3a3ed95U) << 28 | - 0xeac88e8U) - << 28 | - 0x2e6faffU), - (18446744073709551615UL) / 1279}, - - {(((((uintmax_t)0x3447U << 28 | 0x089473bU) << 28 | 0xa900ff6U) << 28 | - 0x6c25831U) - << 28 | - 0x7be8dabU), - (18446744073709551615UL) / 1283}, - - {(((((uintmax_t)0x0f7dU << 28 | 0xb74fa3dU) << 28 | 0x912de09U) << 28 | - 0xee202c7U) - << 28 | - 0xcb91939U), - (18446744073709551615UL) / 1289}, - - {(((((uintmax_t)0x5316U << 28 | 0x02c6b14U) << 28 | 0x6caa88dU) << 28 | - 0x2fca104U) - << 28 | - 0x2a09ea3U), - (18446744073709551615UL) / 1291}, - - {(((((uintmax_t)0x2128U << 28 | 0xdb7c26aU) << 28 | 0xfaabb82U) << 28 | - 0x779c856U) - << 28 | - 0xd8b8bf1U), - (18446744073709551615UL) / 1297}, - - {(((((uintmax_t)0xb01cU << 28 | 0x55cadf2U) << 28 | 0x39d9d38U) << 28 | - 0x79361cbU) - << 28 | - 0xa8a223dU), - (18446744073709551615UL) / 1301}, - - {(((((uintmax_t)0x3d4cU << 28 | 0x6d3cb58U) << 28 | 0x9b9a9f2U) << 28 | - 0x3f43639U) - << 28 | - 0xc3182a7U), - (18446744073709551615UL) / 1303}, - - {(((((uintmax_t)0x0bc0U << 28 | 0x89e42fcU) << 28 | 0xab94aa0U) << 28 | - 0x3868fc4U) - << 28 | - 0x74bcd13U), - (18446744073709551615UL) / 1307}, - - {(((((uintmax_t)0x34fcU << 28 | 0x4ff6af1U) << 28 | 0x0e2b165U) << 28 | - 0x1e78b8cU) - << 28 | - 0x5311a97U), - (18446744073709551615UL) / 1319}, - - {(((((uintmax_t)0x18ffU << 28 | 0xce639c0U) << 28 | 0x0c6718fU) << 28 | - 0xfce639cU) - << 28 | - 0x00c6719U), - (18446744073709551615UL) / 1321}, - - {(((((uintmax_t)0x9b4cU << 28 | 0x33b39aeU) << 28 | 0x96dc4f7U) << 28 | - 0xb460754U) - << 28 | - 0xb0b61cfU), - (18446744073709551615UL) / 1327}, - - {(((((uintmax_t)0xbbe8U << 28 | 0xad0c9a3U) << 28 | 0xd51d27bU) << 28 | - 0x03f3359U) - << 28 | - 0xb8e63b1U), - (18446744073709551615UL) / 1361}, - - {(((((uintmax_t)0xa28dU << 28 | 0x33dfca1U) << 28 | 0x0dabba5U) << 28 | - 0x5c53260U) - << 28 | - 0x41eb667U), - (18446744073709551615UL) / 1367}, - - {(((((uintmax_t)0x677bU << 28 | 0x3ed5acdU) << 28 | 0x78a2964U) << 28 | - 0x7f88ab8U) - << 28 | - 0x96a76f5U), - (18446744073709551615UL) / 1373}, - - {(((((uintmax_t)0xf4e0U << 28 | 0xac06ac6U) << 28 | 0x595988fU) << 28 | - 0xd971434U) - << 28 | - 0xa55a46dU), - (18446744073709551615UL) / 1381}, - - {(((((uintmax_t)0x3ba7U << 28 | 0x6f12d90U) << 28 | 0x609e19fU) << 28 | - 0xbf96995U) - << 28 | - 0x8046447U), - (18446744073709551615UL) / 1399}, - - {(((((uintmax_t)0x3d69U << 28 | 0x32b0f71U) << 28 | 0x8e43399U) << 28 | - 0x86feba6U) - << 28 | - 0x9be3a81U), - (18446744073709551615UL) / 1409}, - - {(((((uintmax_t)0xb7adU << 28 | 0xf701426U) << 28 | 0x239eda6U) << 28 | - 0x68b3e6dU) - << 28 | - 0x053796fU), - (18446744073709551615UL) / 1423}, - - {(((((uintmax_t)0xd0d1U << 28 | 0x893d2caU) << 28 | 0xb80fc97U) << 28 | - 0x694e658U) - << 28 | - 0x9f4e09bU), - (18446744073709551615UL) / 1427}, - - {(((((uintmax_t)0xc00bU << 28 | 0x7721dbcU) << 28 | 0xffd2237U) << 28 | - 0x890c00bU) - << 28 | - 0x7721dbdU), - (18446744073709551615UL) / 1429}, - - {(((((uintmax_t)0xe9d9U << 28 | 0x0e1cf0dU) << 28 | 0x0a8a45aU) << 28 | - 0xc094a23U) - << 28 | - 0x5f37ea9U), - (18446744073709551615UL) / 1433}, - - {(((((uintmax_t)0x8489U << 28 | 0x56fe661U) << 28 | 0xd881831U) << 28 | - 0xcff775fU) - << 28 | - 0x2d5d65fU), - (18446744073709551615UL) / 1439}, - - {(((((uintmax_t)0xfd85U << 28 | 0xed3f28dU) << 28 | 0xe356dddU) << 28 | - 0xad8e6b3U) - << 28 | - 0x6505217U), - (18446744073709551615UL) / 1447}, - - {(((((uintmax_t)0x0a68U << 28 | 0xcca8aacU) << 28 | 0x8c7035aU) << 28 | - 0x27df897U) - << 28 | - 0x062cd03U), - (18446744073709551615UL) / 1451}, - - {(((((uintmax_t)0x57eaU << 28 | 0xdb877ceU) << 28 | 0xaae6ce2U) << 28 | - 0x396fe0fU) - << 28 | - 0xdb5a625U), - (18446744073709551615UL) / 1453}, - - {(((((uintmax_t)0x1c12U << 28 | 0xf330f43U) << 28 | 0xe76f6b3U) << 28 | - 0x52a4957U) - << 28 | - 0xe82317bU), - (18446744073709551615UL) / 1459}, - - {(((((uintmax_t)0x472dU << 28 | 0xc52d6c1U) << 28 | 0x2cb9dd8U) << 28 | - 0xab3f2c6U) - << 28 | - 0x0c2ea3fU), - (18446744073709551615UL) / 1471}, - - {(((((uintmax_t)0xda51U << 28 | 0x3e0e2c9U) << 28 | 0x8ce0b68U) << 28 | - 0x93f702fU) - << 28 | - 0x0452479U), - (18446744073709551615UL) / 1481}, - - {(((((uintmax_t)0x442fU << 28 | 0xa4dae2dU) << 28 | 0x3a2c896U) << 28 | - 0x86fdc18U) - << 28 | - 0x2acf7e3U), - (18446744073709551615UL) / 1483}, - - {(((((uintmax_t)0x091fU << 28 | 0xd96fbb2U) << 28 | 0x2f2be68U) << 28 | - 0x5403717U) - << 28 | - 0x3dce12fU), - (18446744073709551615UL) / 1487}, - - {(((((uintmax_t)0x3accU << 28 | 0x97fbdfaU) << 28 | 0xd798d7fU) << 28 | - 0x0ded168U) - << 28 | - 0x5c27331U), - (18446744073709551615UL) / 1489}, - - {(((((uintmax_t)0x4d54U << 28 | 0xe047548U) << 28 | 0x87cd3eeU) << 28 | - 0xda72e1fU) - << 28 | - 0xe490b7dU), - (18446744073709551615UL) / 1493}, - - {(((((uintmax_t)0x7e8cU << 28 | 0x61afbbbU) << 28 | 0x013209eU) << 28 | - 0x7bfc959U) - << 28 | - 0xa8e6e53U), - (18446744073709551615UL) / 1499}, - - {(((((uintmax_t)0xc4b3U << 28 | 0x96f4fccU) << 28 | 0x7ebab49U) << 28 | - 0xb314d6dU) - << 28 | - 0x4753dd7U), - (18446744073709551615UL) / 1511}, - - {(((((uintmax_t)0x9eadU << 28 | 0x21c933fU) << 28 | 0x089292eU) << 28 | - 0x8f8c5acU) - << 28 | - 0x4aa1b3bU), - (18446744073709551615UL) / 1523}, - - {(((((uintmax_t)0x0584U << 28 | 0x992a4deU) << 28 | 0xb99aab8U) << 28 | - 0xef72348U) - << 28 | - 0x1163d33U), - (18446744073709551615UL) / 1531}, - - {(((((uintmax_t)0x8b08U << 28 | 0x7620d9aU) << 28 | 0xcb6806aU) << 28 | - 0x2ec96a5U) - << 28 | - 0x94287b7U), - (18446744073709551615UL) / 1543}, - - {(((((uintmax_t)0xc108U << 28 | 0x6dbce6bU) << 28 | 0x6c94bdbU) << 28 | - 0xa41c6d1U) - << 28 | - 0x3aab8c5U), - (18446744073709551615UL) / 1549}, - - {(((((uintmax_t)0xe478U << 28 | 0xaa1e005U) << 28 | 0x46633c2U) << 28 | - 0xadbe648U) - << 28 | - 0xdc3aaf1U), - (18446744073709551615UL) / 1553}, - - {(((((uintmax_t)0x5cf1U << 28 | 0x0e9d4faU) << 28 | 0x40b2a87U) << 28 | - 0xa2bade5U) - << 28 | - 0x65f91a7U), - (18446744073709551615UL) / 1559}, - - {(((((uintmax_t)0x9ecbU << 28 | 0x8ef2c45U) << 28 | 0xec11a4dU) << 28 | - 0x6fe8798U) - << 28 | - 0xc01f5dfU), - (18446744073709551615UL) / 1567}, - - {(((((uintmax_t)0xfb99U << 28 | 0xaa49543U) << 28 | 0xf39d937U) << 28 | - 0x91310c8U) - << 28 | - 0xc23d98bU), - (18446744073709551615UL) / 1571}, - - {(((((uintmax_t)0x7abbU << 28 | 0x187b379U) << 28 | 0xc2112f8U) << 28 | - 0x0e446b0U) - << 28 | - 0x1228883U), - (18446744073709551615UL) / 1579}, - - {(((((uintmax_t)0x3cceU << 28 | 0x5a3d212U) << 28 | 0x6f95e9aU) << 28 | - 0xed1436fU) - << 28 | - 0xbf500cfU), - (18446744073709551615UL) / 1583}, - - {(((((uintmax_t)0xc6eeU << 28 | 0xd90c05cU) << 28 | 0x5547a78U) << 28 | - 0x39b54ccU) - << 28 | - 0x8b24115U), - (18446744073709551615UL) / 1597}, - - {(((((uintmax_t)0x8798U << 28 | 0x627f99aU) << 28 | 0x9f948c1U) << 28 | - 0x28c646aU) - << 28 | - 0xd0309c1U), - (18446744073709551615UL) / 1601}, - - {(((((uintmax_t)0x5233U << 28 | 0x4bab403U) << 28 | 0x2fa1b14U) << 28 | - 0xde63162U) - << 28 | - 0x4a3c377U), - (18446744073709551615UL) / 1607}, - - {(((((uintmax_t)0x0e51U << 28 | 0xc7ad43fU) << 28 | 0x016e93fU) << 28 | - 0x7b9fe68U) - << 28 | - 0xb0ecbf9U), - (18446744073709551615UL) / 1609}, - - {(((((uintmax_t)0x00a2U << 28 | 0x84ffd75U) << 28 | 0xec00a28U) << 28 | - 0x4ffd75eU) - << 28 | - 0xc00a285U), - (18446744073709551615UL) / 1613}, - - {(((((uintmax_t)0xe72cU << 28 | 0xbfa4ebeU) << 28 | 0xb20bb37U) << 28 | - 0x803cb80U) - << 28 | - 0xdea2ddbU), - (18446744073709551615UL) / 1619}, - - {(((((uintmax_t)0x22beU << 28 | 0x75d04e5U) << 28 | 0x4f6ff86U) << 28 | - 0xb63f7c9U) - << 28 | - 0xac4c6fdU), - (18446744073709551615UL) / 1621}, - - {(((((uintmax_t)0x84f4U << 28 | 0xd419cdfU) << 28 | 0x6dfbe8bU) << 28 | - 0x6851d1bU) - << 28 | - 0xd99b9d3U), - (18446744073709551615UL) / 1627}, - - {(((((uintmax_t)0xe83aU << 28 | 0xccdcd04U) << 28 | 0xd90f7b6U) << 28 | - 0x2fda77cU) - << 28 | - 0xa343b6dU), - (18446744073709551615UL) / 1637}, - - {(((((uintmax_t)0x9e34U << 28 | 0x383c8ffU) << 28 | 0xd872f1fU) << 28 | - 0x0dc009eU) - << 28 | - 0x34383c9U), - (18446744073709551615UL) / 1657}, - - {(((((uintmax_t)0x2e7dU << 28 | 0x4e5ad2eU) << 28 | 0x55e5d49U) << 28 | - 0x6dc21ddU) - << 28 | - 0xd35b97fU), - (18446744073709551615UL) / 1663}, - - {(((((uintmax_t)0xe596U << 28 | 0x098573aU) << 28 | 0x33e80b0U) << 28 | - 0xe96ce17U) - << 28 | - 0x090f82bU), - (18446744073709551615UL) / 1667}, - - {(((((uintmax_t)0x7181U << 28 | 0x4dc42e0U) << 28 | 0x3fceeaaU) << 28 | - 0xdf05acdU) - << 28 | - 0xd7d024dU), - (18446744073709551615UL) / 1669}, - - {(((((uintmax_t)0xa4abU << 28 | 0x2bb32f5U) << 28 | 0x43975cbU) << 28 | - 0x1381967U) - << 28 | - 0x46eafb5U), - (18446744073709551615UL) / 1693}, - - {(((((uintmax_t)0xa2ecU << 28 | 0x3cf1f87U) << 28 | 0x5102434U) << 28 | - 0x7f52373U) - << 28 | - 0x6755d61U), - (18446744073709551615UL) / 1697}, - - {(((((uintmax_t)0x6ff3U << 28 | 0xf223422U) << 28 | 0x5ab51d1U) << 28 | - 0x4a48a05U) - << 28 | - 0x1f7dd0bU), - (18446744073709551615UL) / 1699}, - - {(((((uintmax_t)0x6c00U << 28 | 0x9963e9dU) << 28 | 0x48f3447U) << 28 | - 0x4d71b1cU) - << 28 | - 0xe914d25U), - (18446744073709551615UL) / 1709}, - - {(((((uintmax_t)0x894cU << 28 | 0x02f99a8U) << 28 | 0xd502d38U) << 28 | - 0x6063f5eU) - << 28 | - 0x28c1f89U), - (18446744073709551615UL) / 1721}, - - {(((((uintmax_t)0xc8e0U << 28 | 0xa6684d4U) << 28 | 0x2b6281dU) << 28 | - 0xb7325e3U) - << 28 | - 0x2d04e73U), - (18446744073709551615UL) / 1723}, - - {(((((uintmax_t)0xf8c2U << 28 | 0xfdc8c0aU) << 28 | 0x0b85afeU) << 28 | - 0xf748d38U) - << 28 | - 0x93b880dU), - (18446744073709551615UL) / 1733}, - - {(((((uintmax_t)0xd0a7U << 28 | 0x0a25594U) << 28 | 0x123bb2fU) << 28 | - 0x3351506U) - << 28 | - 0xe935605U), - (18446744073709551615UL) / 1741}, - - {(((((uintmax_t)0xdb5dU << 28 | 0xa31878bU) << 28 | 0xf158a7aU) << 28 | - 0x3637fa2U) - << 28 | - 0x376415bU), - (18446744073709551615UL) / 1747}, - - {(((((uintmax_t)0x75b4U << 28 | 0x5a8abbcU) << 28 | 0xd2e004aU) << 28 | - 0xc525d2bU) - << 28 | - 0xaa21969U), - (18446744073709551615UL) / 1753}, - - {(((((uintmax_t)0x7e53U << 28 | 0x89d2e22U) << 28 | 0xa34af3aU) << 28 | - 0x11c16b4U) - << 28 | - 0x2cd351fU), - (18446744073709551615UL) / 1759}, - - {(((((uintmax_t)0xeaf7U << 28 | 0x801270aU) << 28 | 0x843ff6cU) << 28 | - 0x7abde00U) - << 28 | - 0x49c2a11U), - (18446744073709551615UL) / 1777}, - - {(((((uintmax_t)0x1ad9U << 28 | 0x60a0cecU) << 28 | 0x0ae9754U) << 28 | - 0xdad0303U) - << 28 | - 0xe069ac7U), - (18446744073709551615UL) / 1783}, - - {(((((uintmax_t)0x082aU << 28 | 0x676e737U) << 28 | 0x70be3ebU) << 28 | - 0xf1ac9fdU) - << 28 | - 0xfe91433U), - (18446744073709551615UL) / 1787}, - - {(((((uintmax_t)0x50b4U << 28 | 0xdfcda14U) << 28 | 0x51d9efaU) << 28 | - 0xfdda823U) - << 28 | - 0x7cec655U), - (18446744073709551615UL) / 1789}, - - {(((((uintmax_t)0x1ffbU << 28 | 0x738ffdbU) << 28 | 0x9c7fedcU) << 28 | - 0xe3ff6e7U) - << 28 | - 0x1ffb739U), - (18446744073709551615UL) / 1801}, - - {(((((uintmax_t)0xa660U << 28 | 0xf8ca6cdU) << 28 | 0x88f9ebeU) << 28 | - 0xd5737d6U) - << 28 | - 0x286db1bU), - (18446744073709551615UL) / 1811}, - - {(((((uintmax_t)0xed52U << 28 | 0xb6467eaU) << 28 | 0xa7abbe4U) << 28 | - 0x79e431fU) - << 28 | - 0xe08b4dfU), - (18446744073709551615UL) / 1823}, - - {(((((uintmax_t)0xdaf2U << 28 | 0xff4d09aU) << 28 | 0x5ae119dU) << 28 | - 0xd9b0dd7U) - << 28 | - 0x742f897U), - (18446744073709551615UL) / 1831}, - - {(((((uintmax_t)0x6054U << 28 | 0x454d33bU) << 28 | 0x2efc88fU) << 28 | - 0x09d7402U) - << 28 | - 0xc5a5e87U), - (18446744073709551615UL) / 1847}, - - {(((((uintmax_t)0xf545U << 28 | 0x31625b1U) << 28 | 0x0a51292U) << 28 | - 0x16d5c4dU) - << 28 | - 0x958738dU), - (18446744073709551615UL) / 1861}, - - {(((((uintmax_t)0x6df8U << 28 | 0x0c1100aU) << 28 | 0xf82f2b3U) << 28 | - 0x139ba11U) - << 28 | - 0xd34ca63U), - (18446744073709551615UL) / 1867}, - - {(((((uintmax_t)0xaf8bU << 28 | 0xf8e2952U) << 28 | 0x3b61d47U) << 28 | - 0xd54f7edU) - << 28 | - 0x644afafU), - (18446744073709551615UL) / 1871}, - - {(((((uintmax_t)0x4d5cU << 28 | 0x4227171U) << 28 | 0x9491f92U) << 28 | - 0xa81d85cU) - << 28 | - 0xf11a1b1U), - (18446744073709551615UL) / 1873}, - - {(((((uintmax_t)0xf78bU << 28 | 0x4082eeaU) << 28 | 0xdc21475U) << 28 | - 0x4b26533U) - << 28 | - 0x253bdfdU), - (18446744073709551615UL) / 1877}, - - {(((((uintmax_t)0xf354U << 28 | 0x558f76aU) << 28 | 0xad92bbbU) << 28 | - 0xe0efc98U) - << 28 | - 0x0bfd467U), - (18446744073709551615UL) / 1879}, - - {(((((uintmax_t)0x0ab4U << 28 | 0xc91d231U) << 28 | 0x99d11c0U) << 28 | - 0xd8d594fU) - << 28 | - 0x024dca1U), - (18446744073709551615UL) / 1889}, - - {(((((uintmax_t)0x1b56U << 28 | 0x52256feU) << 28 | 0x84c7d82U) << 28 | - 0x38d43bcU) - << 28 | - 0xaac1a65U), - (18446744073709551615UL) / 1901}, - - {(((((uintmax_t)0xaca2U << 28 | 0xb39dbc1U) << 28 | 0x2cb3e27U) << 28 | - 0x779c1faU) - << 28 | - 0xe6175bbU), - (18446744073709551615UL) / 1907}, - - {(((((uintmax_t)0x3856U << 28 | 0xb755c78U) << 28 | 0x7068ea7U) << 28 | - 0x46ca9afU) - << 28 | - 0x708b2c9U), - (18446744073709551615UL) / 1913}, - - {(((((uintmax_t)0x052bU << 28 | 0x9de5385U) << 28 | 0x8076c93U) << 28 | - 0xf3cd9f3U) - << 28 | - 0x89be823U), - (18446744073709551615UL) / 1931}, - - {(((((uintmax_t)0x820dU << 28 | 0x822f698U) << 28 | 0xd4f545cU) << 28 | - 0xb4a4c04U) - << 28 | - 0xc489345U), - (18446744073709551615UL) / 1933}, - - {(((((uintmax_t)0xcd09U << 28 | 0x536828fU) << 28 | 0xb23dbbfU) << 28 | - 0x6047743U) - << 28 | - 0xe85b6b5U), - (18446744073709551615UL) / 1949}, - - {(((((uintmax_t)0x8486U << 28 | 0xe386c1eU) << 28 | 0xf778961U) << 28 | - 0xc147831U) - << 28 | - 0x563545fU), - (18446744073709551615UL) / 1951}, - - {(((((uintmax_t)0xec68U << 28 | 0x5200c74U) << 28 | 0xc6c78edU) << 28 | - 0xb47c0aeU) - << 28 | - 0x62dee9dU), - (18446744073709551615UL) / 1973}, - - {(((((uintmax_t)0xd8acU << 28 | 0xd298624U) << 28 | 0xff1830aU) << 28 | - 0x3824386U) - << 28 | - 0x673a573U), - (18446744073709551615UL) / 1979}, - - {(((((uintmax_t)0x03ddU << 28 | 0x78b87ecU) << 28 | 0x6aad6a4U) << 28 | - 0xa77d19eU) - << 28 | - 0x575a0ebU), - (18446744073709551615UL) / 1987}, - - {(((((uintmax_t)0x8950U << 28 | 0x062a636U) << 28 | 0xb8325a2U) << 28 | - 0xbee045eU) - << 28 | - 0x066c279U), - (18446744073709551615UL) / 1993}, - - {(((((uintmax_t)0xa9daU << 28 | 0xd301275U) << 28 | 0xae369c2U) << 28 | - 0x3618de8U) - << 28 | - 0xab43d05U), - (18446744073709551615UL) / 1997}, - - {(((((uintmax_t)0xfa3cU << 28 | 0xb3cd496U) << 28 | 0x174ec26U) << 28 | - 0x6b51521U) - << 28 | - 0x6cb9f2fU), - (18446744073709551615UL) / 1999}, - - {(((((uintmax_t)0x5c05U << 28 | 0x9fa1eedU) << 28 | 0xfaa1ce2U) << 28 | - 0x79edd9eU) - << 28 | - 0x9c2e85bU), - (18446744073709551615UL) / 2003}, - - {(((((uintmax_t)0x8e52U << 28 | 0x3c5712bU) << 28 | 0x68c48d0U) << 28 | - 0xc591c22U) - << 28 | - 0x1dc9c53U), - (18446744073709551615UL) / 2011}, - - {(((((uintmax_t)0x8de5U << 28 | 0xdaaf67bU) << 28 | 0x1d10a06U) << 28 | - 0xda8ee9cU) - << 28 | - 0x9ee7c21U), - (18446744073709551615UL) / 2017}, - - {(((((uintmax_t)0xec2bU << 28 | 0xf35ed8fU) << 28 | 0x98f179dU) << 28 | - 0xfebcaf4U) - << 28 | - 0xc27e8c3U), - (18446744073709551615UL) / 2027}, - - {(((((uintmax_t)0xe8c8U << 28 | 0xdd0cfedU) << 28 | 0xd4d9849U) << 28 | - 0xaeff9f1U) - << 28 | - 0x9dd6de5U), - (18446744073709551615UL) / 2029}, - - {(((((uintmax_t)0x65f2U << 28 | 0xb107280U) << 28 | 0xd0eb086U) << 28 | - 0x976a57aU) - << 28 | - 0x296e9c7U), - (18446744073709551615UL) / 2039}, - - {(((((uintmax_t)0x44b5U << 28 | 0x0ed6b9cU) << 28 | 0xbe093a3U) << 28 | - 0xb9abf48U) - << 28 | - 0x72b84cdU), - (18446744073709551615UL) / 2053}, - - {(((((uintmax_t)0x9e96U << 28 | 0xa5899dfU) << 28 | 0x7cf5b34U) << 28 | - 0xfca6483U) - << 28 | - 0x895e6efU), - (18446744073709551615UL) / 2063}, - - {(((((uintmax_t)0x49beU << 28 | 0x6c24212U) << 28 | 0x8f47e34U) << 28 | - 0xb5a3339U) - << 28 | - 0x88f873dU), - (18446744073709551615UL) / 2069}, - - {(((((uintmax_t)0xd1fdU << 28 | 0xc922526U) << 28 | 0xc0275d9U) << 28 | - 0xdd4f19bU) - << 28 | - 0x5f17be1U), - (18446744073709551615UL) / 2081}, - - {(((((uintmax_t)0xb8d7U << 28 | 0x51f95d0U) << 28 | 0x8f8bfb9U) << 28 | - 0x35b507fU) - << 28 | - 0xd0ce78bU), - (18446744073709551615UL) / 2083}, - - {(((((uintmax_t)0x971fU << 28 | 0x47835f8U) << 28 | 0xe2aeeb4U) << 28 | - 0x50f5540U) - << 28 | - 0x660e797U), - (18446744073709551615UL) / 2087}, - - {(((((uintmax_t)0x418fU << 28 | 0xfe0a0c7U) << 28 | 0xff05063U) << 28 | - 0xff82831U) - << 28 | - 0xffc1419U), - (18446744073709551615UL) / 2089}, - - {(((((uintmax_t)0xd06fU << 28 | 0x3ae8760U) << 28 | 0xf5e0889U) << 28 | - 0x92f718cU) - << 28 | - 0x22a32fbU), - (18446744073709551615UL) / 2099}, - - {(((((uintmax_t)0x16adU << 28 | 0x6a5a779U) << 28 | 0x25f515fU) << 28 | - 0x3253ad0U) - << 28 | - 0xd37e7bfU), - (18446744073709551615UL) / 2111}, - - {(((((uintmax_t)0xfe0fU << 28 | 0xc007c0fU) << 28 | 0xfe0fc00U) << 28 | - 0x7c0ffe0U) - << 28 | - 0xfc007c1U), - (18446744073709551615UL) / 2113}, - - {(((((uintmax_t)0x9763U << 28 | 0x3395b43U) << 28 | 0xf020b4dU) << 28 | - 0x8ebadc0U) - << 28 | - 0xc0640b1U), - (18446744073709551615UL) / 2129}, - - {(((((uintmax_t)0x9a20U << 28 | 0xea7f195U) << 28 | 0x90471e2U) << 28 | - 0x729af83U) - << 28 | - 0x1037bdbU), - (18446744073709551615UL) / 2131}, - - {(((((uintmax_t)0x7285U << 28 | 0xee07e80U) << 28 | 0xa8ab8b8U) << 28 | - 0xf64bf30U) - << 28 | - 0xfeebfe9U), - (18446744073709551615UL) / 2137}, - - {(((((uintmax_t)0x3dd1U << 28 | 0x5e1a10fU) << 28 | 0xa9e8cdaU) << 28 | - 0x93124b5U) - << 28 | - 0x44c0bf5U), - (18446744073709551615UL) / 2141}, - - {(((((uintmax_t)0x4f14U << 28 | 0xe7bff85U) << 28 | 0xac9e29cU) << 28 | - 0xf7ff0b5U) - << 28 | - 0x93c539fU), - (18446744073709551615UL) / 2143}, - - {(((((uintmax_t)0x12e7U << 28 | 0xdccdf10U) << 28 | 0x4a322d6U) << 28 | - 0xbd8861fU) - << 28 | - 0xa0e07d9U), - (18446744073709551615UL) / 2153}, - - {(((((uintmax_t)0xd7b8U << 28 | 0xebfac9aU) << 28 | 0x00b5f5cU) << 28 | - 0xfe75c0bU) - << 28 | - 0xd8ab891U), - (18446744073709551615UL) / 2161}, - - {(((((uintmax_t)0xae1cU << 28 | 0xe6bd9efU) << 28 | 0x512ea43U) << 28 | - 0xe808757U) - << 28 | - 0xc2e862bU), - (18446744073709551615UL) / 2179}, - - {(((((uintmax_t)0x459bU << 28 | 0x5dc70f3U) << 28 | 0x90e8690U) << 28 | - 0xcaa96d5U) - << 28 | - 0x95c9d93U), - (18446744073709551615UL) / 2203}, - - {(((((uintmax_t)0x4ec2U << 28 | 0xa38d65bU) << 28 | 0xa2bd88fU) << 28 | - 0xd550625U) - << 28 | - 0xd07135fU), - (18446744073709551615UL) / 2207}, - - {(((((uintmax_t)0x525dU << 28 | 0x3cf6a14U) << 28 | 0x20da676U) << 28 | - 0xb010a86U) - << 28 | - 0xe209f2dU), - (18446744073709551615UL) / 2213}, - - {(((((uintmax_t)0x716bU << 28 | 0x4f6a9e5U) << 28 | 0xf3522ecU) << 28 | - 0xc042644U) - << 28 | - 0x7769b25U), - (18446744073709551615UL) / 2221}, - - {(((((uintmax_t)0x48abU << 28 | 0x336212fU) << 28 | 0xf32ece3U) << 28 | - 0x81339caU) - << 28 | - 0xabe3295U), - (18446744073709551615UL) / 2237}, - - {(((((uintmax_t)0xbde9U << 28 | 0xd1944b7U) << 28 | 0x656aad1U) << 28 | - 0xb190a2dU) - << 28 | - 0x0c7673fU), - (18446744073709551615UL) / 2239}, - - {(((((uintmax_t)0xb595U << 28 | 0xdb3fccdU) << 28 | 0xe54afc3U) << 28 | - 0xbce3cf2U) - << 28 | - 0x6b0e7ebU), - (18446744073709551615UL) / 2243}, - - {(((((uintmax_t)0x8a10U << 28 | 0x9aab45fU) << 28 | 0x137285fU) << 28 | - 0x87e76f5U) - << 28 | - 0x6c61ce3U), - (18446744073709551615UL) / 2251}, - - {(((((uintmax_t)0x2e69U << 28 | 0x78b763bU) << 28 | 0x65f88c0U) << 28 | - 0x6c6857aU) - << 28 | - 0x124b353U), - (18446744073709551615UL) / 2267}, - - {(((((uintmax_t)0x7e40U << 28 | 0x4f6dc75U) << 28 | 0xca11d38U) << 28 | - 0xc040fcbU) - << 28 | - 0xa630f75U), - (18446744073709551615UL) / 2269}, - - {(((((uintmax_t)0xa706U << 28 | 0x6b72173U) << 28 | 0x37865d0U) << 28 | - 0x78bc4fbU) - << 28 | - 0xd533b21U), - (18446744073709551615UL) / 2273}, - - {(((((uintmax_t)0x1165U << 28 | 0x5853800U) << 28 | 0xe5d99deU) << 28 | - 0x8e15c5dU) - << 28 | - 0xd354f59U), - (18446744073709551615UL) / 2281}, - - {(((((uintmax_t)0xad0dU << 28 | 0xfdfc31bU) << 28 | 0x33610caU) << 28 | - 0x61d53d7U) - << 28 | - 0x414260fU), - (18446744073709551615UL) / 2287}, - - {(((((uintmax_t)0x65b5U << 28 | 0x32cc4f0U) << 28 | 0xb46abb5U) << 28 | - 0x6bf5ba8U) - << 28 | - 0xeae635dU), - (18446744073709551615UL) / 2293}, - - {(((((uintmax_t)0xcdbcU << 28 | 0x7622fecU) << 28 | 0x6285844U) << 28 | - 0xa72cb0fU) - << 28 | - 0xb6e3949U), - (18446744073709551615UL) / 2297}, - - {(((((uintmax_t)0x37c4U << 28 | 0x92cae49U) << 28 | 0xd6fa587U) << 28 | - 0x9839a71U) - << 28 | - 0x4f45bcdU), - (18446744073709551615UL) / 2309}, - - {(((((uintmax_t)0xc031U << 28 | 0xa083283U) << 28 | 0x60ed802U) << 28 | - 0xa8994fdU) - << 28 | - 0xe5314b7U), - (18446744073709551615UL) / 2311}, - - {(((((uintmax_t)0xc841U << 28 | 0xd685a6aU) << 28 | 0xe081eb9U) << 28 | - 0x71920cfU) - << 28 | - 0x2b90135U), - (18446744073709551615UL) / 2333}, - - {(((((uintmax_t)0xc4c9U << 28 | 0xd2b0364U) << 28 | 0x9549a8aU) << 28 | - 0x8fd0b7dU) - << 28 | - 0xf9a6e8bU), - (18446744073709551615UL) / 2339}, - - {(((((uintmax_t)0xe3c9U << 28 | 0x5290213U) << 28 | 0xe7112b3U) << 28 | - 0x1f9a84cU) - << 28 | - 0x1c6eaadU), - (18446744073709551615UL) / 2341}, - - {(((((uintmax_t)0xf02fU << 28 | 0x1ede4bbU) << 28 | 0x2c64c92U) << 28 | - 0x293b028U) - << 28 | - 0x23c6d83U), - (18446744073709551615UL) / 2347}, - - {(((((uintmax_t)0x83f9U << 28 | 0x7773bffU) << 28 | 0x907f2eeU) << 28 | - 0xe77ff20U) - << 28 | - 0xfe5ddcfU), - (18446744073709551615UL) / 2351}, - - {(((((uintmax_t)0xd472U << 28 | 0x42b02b7U) << 28 | 0x1ef460eU) << 28 | - 0x1ea0f6cU) - << 28 | - 0x496c11dU), - (18446744073709551615UL) / 2357}, - - {(((((uintmax_t)0xd905U << 28 | 0xb8f4727U) << 28 | 0x318f0fdU) << 28 | - 0xf2d3d6fU) - << 28 | - 0x88ccb6bU), - (18446744073709551615UL) / 2371}, - - {(((((uintmax_t)0xf2c0U << 28 | 0xc7e3914U) << 28 | 0x920a1faU) << 28 | - 0x9d74a34U) - << 28 | - 0x57738f9U), - (18446744073709551615UL) / 2377}, - - {(((((uintmax_t)0x6c7cU << 28 | 0x4a67008U) << 28 | 0x99f72efU) << 28 | - 0xc3ca3dbU) - << 28 | - 0x71a5785U), - (18446744073709551615UL) / 2381}, - - {(((((uintmax_t)0x7e55U << 28 | 0xba2c0b9U) << 28 | 0xa289b8eU) << 28 | - 0x2071718U) - << 28 | - 0xd0d6dafU), - (18446744073709551615UL) / 2383}, - - {(((((uintmax_t)0xbf46U << 28 | 0xd4d0be4U) << 28 | 0xff091bcU) << 28 | - 0x0fdbfebU) - << 28 | - 0x6cfabfdU), - (18446744073709551615UL) / 2389}, - - {(((((uintmax_t)0x1908U << 28 | 0x738977bU) << 28 | 0x58af71eU) << 28 | - 0xeab613eU) - << 28 | - 0x5e5aee9U), - (18446744073709551615UL) / 2393}, - - {(((((uintmax_t)0x6a48U << 28 | 0xc6e8d7fU) << 28 | 0xbbb472dU) << 28 | - 0x2388e90U) - << 28 | - 0xe9e929fU), - (18446744073709551615UL) / 2399}, - - {(((((uintmax_t)0x9f7bU << 28 | 0x7cc2f24U) << 28 | 0xd82eb81U) << 28 | - 0xdbafba5U) - << 28 | - 0x88ddb43U), - (18446744073709551615UL) / 2411}, - - {(((((uintmax_t)0x57ceU << 28 | 0x01e8101U) << 28 | 0x96b8152U) << 28 | - 0xeebc51cU) - << 28 | - 0x4799791U), - (18446744073709551615UL) / 2417}, - - {(((((uintmax_t)0x22c2U << 28 | 0x9d6cb7dU) << 28 | 0x695651cU) << 28 | - 0x6bc4693U) - << 28 | - 0xb45a047U), - (18446744073709551615UL) / 2423}, - - {(((((uintmax_t)0x366aU << 28 | 0x190050aU) << 28 | 0xd1e2606U) << 28 | - 0xeee0974U) - << 28 | - 0x498874dU), - (18446744073709551615UL) / 2437}, - - {(((((uintmax_t)0x7708U << 28 | 0x7eb0665U) << 28 | 0xba929d8U) << 28 | - 0x5b7377aU) - << 28 | - 0x9953cb9U), - (18446744073709551615UL) / 2441}, - - {(((((uintmax_t)0x8f53U << 28 | 0x96f6b06U) << 28 | 0x2c2614bU) << 28 | - 0x6df412dU) - << 28 | - 0x4caf56fU), - (18446744073709551615UL) / 2447}, - - {(((((uintmax_t)0x0c2eU << 28 | 0x394250fU) << 28 | 0xedad56bU) << 28 | - 0x8afbbb4U) - << 28 | - 0xa053493U), - (18446744073709551615UL) / 2459}, - - {(((((uintmax_t)0x78afU << 28 | 0x29d1b7fU) << 28 | 0xbd965ccU) << 28 | - 0x5299c96U) - << 28 | - 0xac7720bU), - (18446744073709551615UL) / 2467}, - - {(((((uintmax_t)0x1287U << 28 | 0x9bcb69bU) << 28 | 0x11e89adU) << 28 | - 0xce84b5cU) - << 28 | - 0x710aa99U), - (18446744073709551615UL) / 2473}, - - {(((((uintmax_t)0x92c2U << 28 | 0x17c54bfU) << 28 | 0x67de19dU) << 28 | - 0x673f5aaU) - << 28 | - 0x3804225U), - (18446744073709551615UL) / 2477}, - - {(((((uintmax_t)0xd46eU << 28 | 0x0ce30e3U) << 28 | 0x76f2ce6U) << 28 | - 0x541268eU) - << 28 | - 0xfbce7f7U), - (18446744073709551615UL) / 2503}, - - {(((((uintmax_t)0xa49bU << 28 | 0x91ec4ccU) << 28 | 0x5004dfcU) << 28 | - 0xf41e76cU) - << 28 | - 0xf5be669U), - (18446744073709551615UL) / 2521}, - - {(((((uintmax_t)0x6098U << 28 | 0x1f8eb77U) << 28 | 0xa7cd05cU) << 28 | - 0x3eb5dc3U) - << 28 | - 0x1c383cbU), - (18446744073709551615UL) / 2531}, - - {(((((uintmax_t)0x62e9U << 28 | 0x505bf44U) << 28 | 0xdd6a930U) << 28 | - 0x1832d11U) - << 28 | - 0xd8ad6c3U), - (18446744073709551615UL) / 2539}, - - {(((((uintmax_t)0xb3cbU << 28 | 0x3fecabfU) << 28 | 0x119df2eU) << 28 | - 0x9c0942fU) - << 28 | - 0x1ce450fU), - (18446744073709551615UL) / 2543}, - - {(((((uintmax_t)0xef3aU << 28 | 0x59c92a1U) << 28 | 0x4b05b97U) << 28 | - 0xf3f2be3U) - << 28 | - 0x7a39a5dU), - (18446744073709551615UL) / 2549}, - - {(((((uintmax_t)0xe69cU << 28 | 0x5983c36U) << 28 | 0x30c57e8U) << 28 | - 0xb7d8a96U) - << 28 | - 0x54187c7U), - (18446744073709551615UL) / 2551}, - - {(((((uintmax_t)0x437aU << 28 | 0xa4cb09bU) << 28 | 0x61d08b5U) << 28 | - 0xd024d7dU) - << 28 | - 0xa5b1b55U), - (18446744073709551615UL) / 2557}, - - {(((((uintmax_t)0x1b65U << 28 | 0x8bdca98U) << 28 | 0xaabb9b8U) << 28 | - 0xba9d6e7U) - << 28 | - 0xae3501bU), - (18446744073709551615UL) / 2579}, - - {(((((uintmax_t)0x3ea4U << 28 | 0x3624f3dU) << 28 | 0x8dfb0f5U) << 28 | - 0x0865f71U) - << 28 | - 0xb90f1dfU), - (18446744073709551615UL) / 2591}, - - {(((((uintmax_t)0x2d05U << 28 | 0x08fbf3cU) << 28 | 0x1ffcd73U) << 28 | - 0x9c16828U) - << 28 | - 0x47df9e1U), - (18446744073709551615UL) / 2593}, - - {(((((uintmax_t)0xc716U << 28 | 0xdcc634cU) << 28 | 0xa218ec4U) << 28 | - 0x70a4d84U) - << 28 | - 0x2b90ed1U), - (18446744073709551615UL) / 2609}, - - {(((((uintmax_t)0xe30bU << 28 | 0x71f669dU) << 28 | 0x7e49c1fU) << 28 | - 0xb1be116U) - << 28 | - 0x98cc409U), - (18446744073709551615UL) / 2617}, - - {(((((uintmax_t)0xa624U << 28 | 0x238d871U) << 28 | 0x4cde4d8U) << 28 | - 0xd5512a7U) - << 28 | - 0xcd35d15U), - (18446744073709551615UL) / 2621}, - - {(((((uintmax_t)0x6488U << 28 | 0x81e55c1U) << 28 | 0x30e7ca5U) << 28 | - 0x4968217U) - << 28 | - 0x23e07f9U), - (18446744073709551615UL) / 2633}, - - {(((((uintmax_t)0x8513U << 28 | 0xd3830beU) << 28 | 0x54ea0bcU) << 28 | - 0xc8c6d7aU) - << 28 | - 0xbaa8167U), - (18446744073709551615UL) / 2647}, - - {(((((uintmax_t)0x49b5U << 28 | 0x0a4f32fU) << 28 | 0x800c552U) << 28 | - 0xc396c95U) - << 28 | - 0xeb619a1U), - (18446744073709551615UL) / 2657}, - - {(((((uintmax_t)0xa1f0U << 28 | 0x049f0c9U) << 28 | 0xcbd166eU) << 28 | - 0xb7e3808U) - << 28 | - 0x78ec74bU), - (18446744073709551615UL) / 2659}, - - {(((((uintmax_t)0x25f8U << 28 | 0xe2df380U) << 28 | 0xb892e3dU) << 28 | - 0x5513b50U) - << 28 | - 0x4537157U), - (18446744073709551615UL) / 2663}, - - {(((((uintmax_t)0x1654U << 28 | 0xeb02967U) << 28 | 0x9b8e231U) << 28 | - 0x4391f88U) - << 28 | - 0x62e948fU), - (18446744073709551615UL) / 2671}, - - {(((((uintmax_t)0x304aU << 28 | 0xf935d6eU) << 28 | 0x11c97dcU) << 28 | - 0x0b17cfcU) - << 28 | - 0xd81f5ddU), - (18446744073709551615UL) / 2677}, - - {(((((uintmax_t)0xef7eU << 28 | 0x3c1c9feU) << 28 | 0xaa07d2fU) << 28 | - 0x6bea3ecU) - << 28 | - 0x89044b3U), - (18446744073709551615UL) / 2683}, - - {(((((uintmax_t)0xd02cU << 28 | 0x34f8dabU) << 28 | 0xf7ff3ceU) << 28 | - 0x13a0586U) - << 28 | - 0x9f1b57fU), - (18446744073709551615UL) / 2687}, - - {(((((uintmax_t)0xca7fU << 28 | 0x00185f3U) << 28 | 0x3e2ad75U) << 28 | - 0x93474e8U) - << 28 | - 0xace3581U), - (18446744073709551615UL) / 2689}, - - {(((((uintmax_t)0x613fU << 28 | 0x67e6e76U) << 28 | 0x10ebc07U) << 28 | - 0xfc32929U) - << 28 | - 0x5a05e4dU), - (18446744073709551615UL) / 2693}, - - {(((((uintmax_t)0x91e1U << 28 | 0x1433fa4U) << 28 | 0xf1ad7b0U) << 28 | - 0x5377cbaU) - << 28 | - 0x4908d23U), - (18446744073709551615UL) / 2699}, - - {(((((uintmax_t)0x99c5U << 28 | 0x2d7ced2U) << 28 | 0xe3e9ae7U) << 28 | - 0xb2131a6U) - << 28 | - 0x28aa39bU), - (18446744073709551615UL) / 2707}, - - {(((((uintmax_t)0xe699U << 28 | 0x2a662c6U) << 28 | 0x1d45f90U) << 28 | - 0x31dbed7U) - << 28 | - 0xde01527U), - (18446744073709551615UL) / 2711}, - - {(((((uintmax_t)0x86efU << 28 | 0x7ca673aU) << 28 | 0xf9ad876U) << 28 | - 0x844b1c6U) - << 28 | - 0x70aa9a9U), - (18446744073709551615UL) / 2713}, - - {(((((uintmax_t)0xb29bU << 28 | 0x59ea585U) << 28 | 0x098266aU) << 28 | - 0x03f4533U) - << 28 | - 0xb08915fU), - (18446744073709551615UL) / 2719}, - - {(((((uintmax_t)0x2d67U << 28 | 0x181bc45U) << 28 | 0x6ad8b1dU) << 28 | - 0xbca579dU) - << 28 | - 0xb0a3999U), - (18446744073709551615UL) / 2729}, - - {(((((uintmax_t)0xffa0U << 28 | 0x02ffe80U) << 28 | 0x0bffa00U) << 28 | - 0x2ffe800U) - << 28 | - 0xbffa003U), - (18446744073709551615UL) / 2731}, - - {(((((uintmax_t)0xef00U << 28 | 0x778c303U) << 28 | 0x1503a47U) << 28 | - 0x8ab1a3eU) - << 28 | - 0x936139dU), - (18446744073709551615UL) / 2741}, - - {(((((uintmax_t)0xd453U << 28 | 0x113a63aU) << 28 | 0x4bcdb66U) << 28 | - 0xe722bc4U) - << 28 | - 0xc5cc095U), - (18446744073709551615UL) / 2749}, - - {(((((uintmax_t)0x01c4U << 28 | 0x4cfeca8U) << 28 | 0x7f35a7aU) << 28 | - 0x8f63c71U) - << 28 | - 0x7278541U), - (18446744073709551615UL) / 2753}, - - {(((((uintmax_t)0x3887U << 28 | 0x72a189cU) << 28 | 0x2c09fdfU) << 28 | - 0x6eee24dU) - << 28 | - 0x292bc2fU), - (18446744073709551615UL) / 2767}, - - {(((((uintmax_t)0x835dU << 28 | 0x625cbd2U) << 28 | 0xa50339fU) << 28 | - 0xc20d172U) - << 28 | - 0x37dd569U), - (18446744073709551615UL) / 2777}, - - {(((((uintmax_t)0x8052U << 28 | 0x3e3ba9bU) << 28 | 0x7da8ccdU) << 28 | - 0xf993235U) - << 28 | - 0x6bda2edU), - (18446744073709551615UL) / 2789}, - - {(((((uintmax_t)0xced6U << 28 | 0x1518ac7U) << 28 | 0x0a2e697U) << 28 | - 0xb5e332eU) - << 28 | - 0x80f68d7U), - (18446744073709551615UL) / 2791}, - - {(((((uintmax_t)0x42d0U << 28 | 0x7f67b31U) << 28 | 0xe1cbd46U) << 28 | - 0xeee26fdU) - << 28 | - 0x875e2e5U), - (18446744073709551615UL) / 2797}, - - {(((((uintmax_t)0xa787U << 28 | 0x5b7cc16U) << 28 | 0x4cf4935U) << 28 | - 0x48a8e65U) - << 28 | - 0x157a611U), - (18446744073709551615UL) / 2801}, - - {(((((uintmax_t)0x69abU << 28 | 0x6d816a6U) << 28 | 0x6791ac2U) << 28 | - 0x88d03beU) - << 28 | - 0x9b71e3bU), - (18446744073709551615UL) / 2803}, - - {(((((uintmax_t)0xace8U << 28 | 0x1dc954bU) << 28 | 0xa58d081U) << 28 | - 0x51186dbU) - << 28 | - 0x38937abU), - (18446744073709551615UL) / 2819}, - - {(((((uintmax_t)0x7c3fU << 28 | 0xfa377bbU) << 28 | 0x52dd078U) << 28 | - 0x00b9108U) - << 28 | - 0x95a45f1U), - (18446744073709551615UL) / 2833}, - - {(((((uintmax_t)0x1f0aU << 28 | 0x8ec0eccU) << 28 | 0x79a36aeU) << 28 | - 0xe0b0241U) - << 28 | - 0x82eec3dU), - (18446744073709551615UL) / 2837}, - - {(((((uintmax_t)0x609eU << 28 | 0x7b00a15U) << 28 | 0xca83496U) << 28 | - 0x323eda1U) - << 28 | - 0x73b5713U), - (18446744073709551615UL) / 2843}, - - {(((((uintmax_t)0x7362U << 28 | 0x52ca08cU) << 28 | 0xcba690eU) << 28 | - 0xd0dbd03U) - << 28 | - 0xae77c8bU), - (18446744073709551615UL) / 2851}, - - {(((((uintmax_t)0xa370U << 28 | 0x463ffa4U) << 28 | 0x3eb91f7U) << 28 | - 0x3800b78U) - << 28 | - 0x28dc119U), - (18446744073709551615UL) / 2857}, - - {(((((uintmax_t)0x4586U << 28 | 0x7cbbe80U) << 28 | 0x502c61bU) << 28 | - 0x61715ecU) - << 28 | - 0x22b7ca5U), - (18446744073709551615UL) / 2861}, - - {(((((uintmax_t)0x508fU << 28 | 0xb1c027dU) << 28 | 0x607a5a8U) << 28 | - 0x533a991U) - << 28 | - 0xead64bfU), - (18446744073709551615UL) / 2879}, - - {(((((uintmax_t)0xbc40U << 28 | 0xe8adccbU) << 28 | 0xf2e057fU) << 28 | - 0x6c7290eU) - << 28 | - 0x46c2e77U), - (18446744073709551615UL) / 2887}, - - {(((((uintmax_t)0x73d9U << 28 | 0x78cc4e1U) << 28 | 0xdde3e63U) << 28 | - 0x25e8d90U) - << 28 | - 0x7b01db1U), - (18446744073709551615UL) / 2897}, - - {(((((uintmax_t)0x1c21U << 28 | 0x8299f86U) << 28 | 0xa86ec28U) << 28 | - 0x909f701U) - << 28 | - 0x52a1067U), - (18446744073709551615UL) / 2903}, - - {(((((uintmax_t)0x5da2U << 28 | 0x8a842e1U) << 28 | 0xd0a78eaU) << 28 | - 0x7077af0U) - << 28 | - 0x997a0f5U), - (18446744073709551615UL) / 2909}, - - {(((((uintmax_t)0x21f6U << 28 | 0xb281b61U) << 28 | 0xadae07eU) << 28 | - 0x605cad1U) - << 28 | - 0x0c32e6dU), - (18446744073709551615UL) / 2917}, - - {(((((uintmax_t)0x2e9dU << 28 | 0xf4a1477U) << 28 | 0x4c2dd47U) << 28 | - 0x1b33570U) - << 28 | - 0x635b38fU), - (18446744073709551615UL) / 2927}, - - {(((((uintmax_t)0x891aU << 28 | 0x37ebcabU) << 28 | 0x12ba3abU) << 28 | - 0x559fa99U) - << 28 | - 0x7a61bb3U), - (18446744073709551615UL) / 2939}, - - {(((((uintmax_t)0xccadU << 28 | 0xbad1f78U) << 28 | 0x11569adU) << 28 | - 0x4bdae56U) - << 28 | - 0x2bddab9U), - (18446744073709551615UL) / 2953}, - - {(((((uintmax_t)0xb335U << 28 | 0x6a92a82U) << 28 | 0x08d4a05U) << 28 | - 0x5e1b2f2U) - << 28 | - 0xed62f45U), - (18446744073709551615UL) / 2957}, - - {(((((uintmax_t)0x58bbU << 28 | 0x5017802U) << 28 | 0x12d5c03U) << 28 | - 0xcd328b1U) - << 28 | - 0xa2dca9bU), - (18446744073709551615UL) / 2963}, - - {(((((uintmax_t)0x7501U << 28 | 0xa365242U) << 28 | 0x0c3e6d2U) << 28 | - 0x8f4e087U) - << 28 | - 0x33218a9U), - (18446744073709551615UL) / 2969}, - - {(((((uintmax_t)0x18a4U << 28 | 0xbffa7c4U) << 28 | 0x073ceb6U) << 28 | - 0x800b077U) - << 28 | - 0xf186293U), - (18446744073709551615UL) / 2971}, - - {(((((uintmax_t)0xa633U << 28 | 0x0bdd838U) << 28 | 0xae2356fU) << 28 | - 0xbd138c3U) - << 28 | - 0xfd9c207U), - (18446744073709551615UL) / 2999}, - - {(((((uintmax_t)0xe2ffU << 28 | 0x0fc80a3U) << 28 | 0xc9104b1U) << 28 | - 0x17ccd12U) - << 28 | - 0xae88a89U), - (18446744073709551615UL) / 3001}, - - {(((((uintmax_t)0x1183U << 28 | 0xb2cce6eU) << 28 | 0xb2b722fU) << 28 | - 0x1a1a044U) - << 28 | - 0x046bcebU), - (18446744073709551615UL) / 3011}, - - {(((((uintmax_t)0xbfb9U << 28 | 0x73118d8U) << 28 | 0x666f154U) << 28 | - 0x8aba0b0U) - << 28 | - 0x60541e3U), - (18446744073709551615UL) / 3019}, - - {(((((uintmax_t)0xa152U << 28 | 0xbc81bc6U) << 28 | 0xc0e90cfU) << 28 | - 0x4e808ceU) - << 28 | - 0xa111b2fU), - (18446744073709551615UL) / 3023}, - - {(((((uintmax_t)0xaebdU << 28 | 0xa92d6f2U) << 28 | 0xef39bdbU) << 28 | - 0xec1b4faU) - << 28 | - 0x855a475U), - (18446744073709551615UL) / 3037}, - - {(((((uintmax_t)0x890cU << 28 | 0xb62bf18U) << 28 | 0x542ece3U) << 28 | - 0xf794eb6U) - << 28 | - 0x00d7821U), - (18446744073709551615UL) / 3041}, - - {(((((uintmax_t)0x699fU << 28 | 0xc793db6U) << 28 | 0x480a134U) << 28 | - 0xfae0d9aU) - << 28 | - 0x11f7c59U), - (18446744073709551615UL) / 3049}, - - {(((((uintmax_t)0x14fdU << 28 | 0xe8c0055U) << 28 | 0xa3d62f0U) << 28 | - 0x06b0ccbU) - << 28 | - 0xbac085dU), - (18446744073709551615UL) / 3061}, - - {(((((uintmax_t)0xa99cU << 28 | 0x01006adU) << 28 | 0x72efe3fU) << 28 | - 0x45076dcU) - << 28 | - 0x3114733U), - (18446744073709551615UL) / 3067}, - - {(((((uintmax_t)0x59e0U << 28 | 0xe778f96U) << 28 | 0xe7f8aeeU) << 28 | - 0xf49bfa5U) - << 28 | - 0x8a1a1b7U), - (18446744073709551615UL) / 3079}, - - {(((((uintmax_t)0x6edaU << 28 | 0x627b0f3U) << 28 | 0x2121a12U) << 28 | - 0xc4218beU) - << 28 | - 0xa691fa3U), - (18446744073709551615UL) / 3083}, - - {(((((uintmax_t)0xf88aU << 28 | 0x9107df8U) << 28 | 0x35b3ebcU) << 28 | - 0x7504e3bU) - << 28 | - 0xd5e64f1U), - (18446744073709551615UL) / 3089}, - - {(((((uintmax_t)0xcddaU << 28 | 0x9dee60fU) << 28 | 0xf969a4eU) << 28 | - 0xe21c292U) - << 28 | - 0xbb92fadU), - (18446744073709551615UL) / 3109}, - - {(((((uintmax_t)0x4ff1U << 28 | 0x8de982bU) << 28 | 0xfe5bc34U) << 28 | - 0x338b732U) - << 28 | - 0x7a4bacfU), - (18446744073709551615UL) / 3119}, - - {(((((uintmax_t)0x8fdfU << 28 | 0x30a40ccU) << 28 | 0xbc0053fU) << 28 | - 0xe5c0833U) - << 28 | - 0xd6fccd1U), - (18446744073709551615UL) / 3121}, - - {(((((uintmax_t)0x0ca6U << 28 | 0x26ae799U) << 28 | 0x8087cb1U) << 28 | - 0xe707435U) - << 28 | - 0x35203c1U), - (18446744073709551615UL) / 3137}, - - {(((((uintmax_t)0x3a1cU << 28 | 0xa6ba507U) << 28 | 0x340aaefU) << 28 | - 0xbb5dcdfU) - << 28 | - 0xb4e43d3U), - (18446744073709551615UL) / 3163}, - - {(((((uintmax_t)0x340eU << 28 | 0x8ccfe76U) << 28 | 0xd34c8caU) << 28 | - 0x68467caU) - << 28 | - 0x5394f9fU), - (18446744073709551615UL) / 3167}, - - {(((((uintmax_t)0xe94cU << 28 | 0xd3010cdU) << 28 | 0x82c978cU) << 28 | - 0x51c0814U) - << 28 | - 0x08b97a1U), - (18446744073709551615UL) / 3169}, - - {(((((uintmax_t)0x69d4U << 28 | 0x0f213ccU) << 28 | 0x2c1a132U) << 28 | - 0x75a899dU) - << 28 | - 0xfa5dd65U), - (18446744073709551615UL) / 3181}, - - {(((((uintmax_t)0xcc45U << 28 | 0x14a4d46U) << 28 | 0x1ff849eU) << 28 | - 0x674cb62U) - << 28 | - 0xe1b78bbU), - (18446744073709551615UL) / 3187}, - - {(((((uintmax_t)0x6351U << 28 | 0xbffadd9U) << 28 | 0x54cc6a3U) << 28 | - 0x7ff5bb2U) - << 28 | - 0xa998d47U), - (18446744073709551615UL) / 3191}, - - {(((((uintmax_t)0x77baU << 28 | 0x4e2aae1U) << 28 | 0x3a95c79U) << 28 | - 0x2a999dbU) - << 28 | - 0x131a22bU), - (18446744073709551615UL) / 3203}, - - {(((((uintmax_t)0x8d1fU << 28 | 0x82e96c6U) << 28 | 0xa42da1bU) << 28 | - 0x48841bcU) - << 28 | - 0x30d29b9U), - (18446744073709551615UL) / 3209}, - - {(((((uintmax_t)0x0ef5U << 28 | 0xe4c8da5U) << 28 | 0xc2683f0U) << 28 | - 0x6721d20U) - << 28 | - 0x11d3471U), - (18446744073709551615UL) / 3217}, - - {(((((uintmax_t)0x9ccfU << 28 | 0x98fef77U) << 28 | 0xeed5293U) << 28 | - 0xfd2386dU) - << 28 | - 0xff85ebdU), - (18446744073709551615UL) / 3221}, - - {(((((uintmax_t)0x9c06U << 28 | 0xa8de9f5U) << 28 | 0xb182e4cU) << 28 | - 0xe72f54cU) - << 28 | - 0x07ed9b5U), - (18446744073709551615UL) / 3229}, - - {(((((uintmax_t)0xdcf5U << 28 | 0x5e929f8U) << 28 | 0x99148d6U) << 28 | - 0xd0fd3e7U) - << 28 | - 0x1dd827bU), - (18446744073709551615UL) / 3251}, - - {(((((uintmax_t)0xcebcU << 28 | 0x664e397U) << 28 | 0x2d17d85U) << 28 | - 0x6405fb1U) - << 28 | - 0xeed819dU), - (18446744073709551615UL) / 3253}, - - {(((((uintmax_t)0x921eU << 28 | 0x0671f84U) << 28 | 0xc15b18eU) << 28 | - 0xa8aceb7U) - << 28 | - 0xc443989U), - (18446744073709551615UL) / 3257}, - - {(((((uintmax_t)0x4223U << 28 | 0xfa07b2bU) << 28 | 0x4830634U) << 28 | - 0xa13026fU) - << 28 | - 0x62e5873U), - (18446744073709551615UL) / 3259}, - - {(((((uintmax_t)0x4ceeU << 28 | 0xdc3bcb1U) << 28 | 0x806e31eU) << 28 | - 0xea0208eU) - << 28 | - 0xc0af4f7U), - (18446744073709551615UL) / 3271}, - - {(((((uintmax_t)0x969eU << 28 | 0xc4a2f55U) << 28 | 0xe703563U) << 28 | - 0x679853cU) - << 28 | - 0xea598cbU), - (18446744073709551615UL) / 3299}, - - {(((((uintmax_t)0xd886U << 28 | 0xa176bb8U) << 28 | 0x577a9c3U) << 28 | - 0x0b3ebd6U) - << 28 | - 0x1f2d0edU), - (18446744073709551615UL) / 3301}, - - {(((((uintmax_t)0xaaecU << 28 | 0xb97a633U) << 28 | 0xdda117eU) << 28 | - 0xb9037bcU) - << 28 | - 0x7f43bc3U), - (18446744073709551615UL) / 3307}, - - {(((((uintmax_t)0x1a59U << 28 | 0x7af0505U) << 28 | 0xcb9c2a5U) << 28 | - 0x83e6f6cU) - << 28 | - 0xe016411U), - (18446744073709551615UL) / 3313}, - - {(((((uintmax_t)0x76c8U << 28 | 0x6358785U) << 28 | 0x34d5cf1U) << 28 | - 0x938d895U) - << 28 | - 0xf1a74c7U), - (18446744073709551615UL) / 3319}, - - {(((((uintmax_t)0xb781U << 28 | 0xa8058bfU) << 28 | 0xac2e880U) << 28 | - 0xcf1491cU) - << 28 | - 0x1e81e33U), - (18446744073709551615UL) / 3323}, - - {(((((uintmax_t)0xc604U << 28 | 0x75cf8d9U) << 28 | 0x2a5f33cU) << 28 | - 0x0f12886U) - << 28 | - 0xba8f301U), - (18446744073709551615UL) / 3329}, - - {(((((uintmax_t)0x9d2aU << 28 | 0x8009d65U) << 28 | 0x861c20eU) << 28 | - 0x4b786e0U) - << 28 | - 0xdfcc5abU), - (18446744073709551615UL) / 3331}, - - {(((((uintmax_t)0x4053U << 28 | 0x511894dU) << 28 | 0xe137367U) << 28 | - 0x2684c93U) - << 28 | - 0xf2d41efU), - (18446744073709551615UL) / 3343}, - - {(((((uintmax_t)0xcbfdU << 28 | 0x3f19edcU) << 28 | 0xbd615e0U) << 28 | - 0x0757badU) - << 28 | - 0xb35c51bU), - (18446744073709551615UL) / 3347}, - - {(((((uintmax_t)0x303eU << 28 | 0x309fbe2U) << 28 | 0x6de63d6U) << 28 | - 0xd84afe6U) - << 28 | - 0x6472edfU), - (18446744073709551615UL) / 3359}, - - {(((((uintmax_t)0x1123U << 28 | 0x440491fU) << 28 | 0x00137fbU) << 28 | - 0xbc0eedcU) - << 28 | - 0xbbfb6e1U), - (18446744073709551615UL) / 3361}, - - {(((((uintmax_t)0x5ae7U << 28 | 0x03df7f3U) << 28 | 0x3de4825U) << 28 | - 0x0f43aa0U) - << 28 | - 0x8a84983U), - (18446744073709551615UL) / 3371}, - - {(((((uintmax_t)0x11fcU << 28 | 0xcff5122U) << 28 | 0x3abe804U) << 28 | - 0x400e927U) - << 28 | - 0xb1acaa5U), - (18446744073709551615UL) / 3373}, - - {(((((uintmax_t)0x80cbU << 28 | 0x0c29652U) << 28 | 0x5643d56U) << 28 | - 0x572be34U) - << 28 | - 0xb9d3215U), - (18446744073709551615UL) / 3389}, - - {(((((uintmax_t)0xc57dU << 28 | 0xffd958dU) << 28 | 0xb3c0487U) << 28 | - 0x964ef77U) - << 28 | - 0x81c62bfU), - (18446744073709551615UL) / 3391}, - - {(((((uintmax_t)0x9c4aU << 28 | 0x3cdce8eU) << 28 | 0xea48e29U) << 28 | - 0xed84051U) - << 28 | - 0xc06e9afU), - (18446744073709551615UL) / 3407}, - - {(((((uintmax_t)0x0cf9U << 28 | 0xeca5ea8U) << 28 | 0xc4381b0U) << 28 | - 0x0acd11eU) - << 28 | - 0xd3f87fdU), - (18446744073709551615UL) / 3413}, - - {(((((uintmax_t)0xfe48U << 28 | 0xee074edU) << 28 | 0x223a506U) << 28 | - 0x3078817U) - << 28 | - 0x44152d9U), - (18446744073709551615UL) / 3433}, - - {(((((uintmax_t)0xa409U << 28 | 0x342e04eU) << 28 | 0x6187e7aU) << 28 | - 0x786459fU) - << 28 | - 0x5c1ccc9U), - (18446744073709551615UL) / 3449}, - - {(((((uintmax_t)0xe4e5U << 28 | 0x902e357U) << 28 | 0x74c7f13U) << 28 | - 0x08125d7U) - << 28 | - 0x4563281U), - (18446744073709551615UL) / 3457}, - - {(((((uintmax_t)0x7588U << 28 | 0x9dfe5f6U) << 28 | 0xae1e539U) << 28 | - 0x5310a48U) - << 28 | - 0x0b3e34dU), - (18446744073709551615UL) / 3461}, - - {(((((uintmax_t)0x3784U << 28 | 0x6603fdeU) << 28 | 0xe1c3d35U) << 28 | - 0x985baa8U) - << 28 | - 0xb202837U), - (18446744073709551615UL) / 3463}, - - {(((((uintmax_t)0xb450U << 28 | 0xa1daeecU) << 28 | 0xba5ea96U) << 28 | - 0x304a6e0U) - << 28 | - 0x52b3223U), - (18446744073709551615UL) / 3467}, - - {(((((uintmax_t)0xfbf0U << 28 | 0xf20d6e5U) << 28 | 0x363d8bdU) << 28 | - 0x8265fc9U) - << 28 | - 0xaf8fd45U), - (18446744073709551615UL) / 3469}, - - {(((((uintmax_t)0xeeb1U << 28 | 0x9bd44b6U) << 28 | 0x27bee1bU) << 28 | - 0x6d0b383U) - << 28 | - 0xec58e0bU), - (18446744073709551615UL) / 3491}, - - {(((((uintmax_t)0x7386U << 28 | 0x8c53fdfU) << 28 | 0x38fe9c2U) << 28 | - 0x1a7c3b6U) - << 28 | - 0x8b28503U), - (18446744073709551615UL) / 3499}, - - {(((((uintmax_t)0xba13U << 28 | 0x65219cfU) << 28 | 0xbb2b623U) << 28 | - 0x6fa180fU) - << 28 | - 0xbfd6007U), - (18446744073709551615UL) / 3511}, - - {(((((uintmax_t)0xe16dU << 28 | 0xb1887adU) << 28 | 0xe4c6dc4U) << 28 | - 0x2accd44U) - << 28 | - 0x0ed9595U), - (18446744073709551615UL) / 3517}, - - {(((((uintmax_t)0x4cf0U << 28 | 0x1ab5e49U) << 28 | 0x04b7c7aU) << 28 | - 0xcf71282U) - << 28 | - 0x36ba3f7U), - (18446744073709551615UL) / 3527}, - - {(((((uintmax_t)0x6374U << 28 | 0x6df92e5U) << 28 | 0xaad5ff9U) << 28 | - 0x09367a9U) - << 28 | - 0x87b9c79U), - (18446744073709551615UL) / 3529}, - - {(((((uintmax_t)0x3fc3U << 28 | 0xb6abbabU) << 28 | 0xa82dcb6U) << 28 | - 0x4efb252U) - << 28 | - 0xbfba705U), - (18446744073709551615UL) / 3533}, - - {(((((uintmax_t)0x82b6U << 28 | 0x6ef6f53U) << 28 | 0x8c8ce98U) << 28 | - 0x0d4f5a7U) - << 28 | - 0xe4cd25bU), - (18446744073709551615UL) / 3539}, - - {(((((uintmax_t)0x20c0U << 28 | 0x04a07f3U) << 28 | 0xdab1fe1U) << 28 | - 0xecc4ef2U) - << 28 | - 0x7b0c37dU), - (18446744073709551615UL) / 3541}, - - {(((((uintmax_t)0xfb2aU << 28 | 0x13c68cbU) << 28 | 0xd185291U) << 28 | - 0x11aebb8U) - << 28 | - 0x1d72653U), - (18446744073709551615UL) / 3547}, - - {(((((uintmax_t)0x8908U << 28 | 0x46d1b90U) << 28 | 0x96d9c89U) << 28 | - 0x51f985cU) - << 28 | - 0xb2c67edU), - (18446744073709551615UL) / 3557}, - - {(((((uintmax_t)0xf7baU << 28 | 0x5f17856U) << 28 | 0xe44e8c4U) << 28 | - 0x39d4fc5U) - << 28 | - 0x4e0b5d7U), - (18446744073709551615UL) / 3559}, - - {(((((uintmax_t)0x811cU << 28 | 0x75db26eU) << 28 | 0xd4a0de8U) << 28 | - 0x57bf318U) - << 28 | - 0x96d533bU), - (18446744073709551615UL) / 3571}, - - {(((((uintmax_t)0x6fbcU << 28 | 0x83d31afU) << 28 | 0x37d51b6U) << 28 | - 0x14bb4cbU) - << 28 | - 0x5023755U), - (18446744073709551615UL) / 3581}, - - {(((((uintmax_t)0xdf7dU << 28 | 0xad8c657U) << 28 | 0x4f61193U) << 28 | - 0x8a89e54U) - << 28 | - 0x73bf1ffU), - (18446744073709551615UL) / 3583}, - - {(((((uintmax_t)0x48beU << 28 | 0xf2f618aU) << 28 | 0x70259eaU) << 28 | - 0xc481acaU) - << 28 | - 0x34de039U), - (18446744073709551615UL) / 3593}, - - {(((((uintmax_t)0x5c8cU << 28 | 0x86d951dU) << 28 | 0x4fd8414U) << 28 | - 0xb961badU) - << 28 | - 0xf4809a7U), - (18446744073709551615UL) / 3607}, - - {(((((uintmax_t)0x3e35U << 28 | 0xfddfd4eU) << 28 | 0xb85d876U) << 28 | - 0x784fecbU) - << 28 | - 0xa352435U), - (18446744073709551615UL) / 3613}, - - {(((((uintmax_t)0x3f46U << 28 | 0x480d05dU) << 28 | 0xfde06efU) << 28 | - 0xa689bb5U) - << 28 | - 0x8aef5e1U), - (18446744073709551615UL) / 3617}, - - {(((((uintmax_t)0xa7f5U << 28 | 0x427da20U) << 28 | 0x5cb49b2U) << 28 | - 0xb2c4db9U) - << 28 | - 0xc3a8197U), - (18446744073709551615UL) / 3623}, - - {(((((uintmax_t)0x1756U << 28 | 0x39f44bdU) << 28 | 0xcbf7d25U) << 28 | - 0x03bc992U) - << 28 | - 0x279f8cfU), - (18446744073709551615UL) / 3631}, - - {(((((uintmax_t)0xf7b1U << 28 | 0xba9905dU) << 28 | 0x798f3d2U) << 28 | - 0xab9aec5U) - << 28 | - 0xca1541dU), - (18446744073709551615UL) / 3637}, - - {(((((uintmax_t)0x0ec1U << 28 | 0xcf3b3d3U) << 28 | 0x4ea253eU) << 28 | - 0x78ba146U) - << 28 | - 0x0f99af3U), - (18446744073709551615UL) / 3643}, - - {(((((uintmax_t)0x694bU << 28 | 0xe954ddeU) << 28 | 0xd63b30aU) << 28 | - 0x0142657U) - << 28 | - 0x2cfcb63U), - (18446744073709551615UL) / 3659}, - - {(((((uintmax_t)0xd628U << 28 | 0x9612455U) << 28 | 0x13dfebeU) << 28 | - 0xa857968U) - << 28 | - 0xf3cbd67U), - (18446744073709551615UL) / 3671}, - - {(((((uintmax_t)0x63bcU << 28 | 0xcfb30dbU) << 28 | 0xaffca78U) << 28 | - 0xdb213eeU) - << 28 | - 0xfe659e9U), - (18446744073709551615UL) / 3673}, - - {(((((uintmax_t)0x7cf8U << 28 | 0xb08fb32U) << 28 | 0x328ba96U) << 28 | - 0x3e8541aU) - << 28 | - 0x74d35f5U), - (18446744073709551615UL) / 3677}, - - {(((((uintmax_t)0x99e7U << 28 | 0xb98849cU) << 28 | 0xbfb489eU) << 28 | - 0x22d1527U) - << 28 | - 0x76f2e43U), - (18446744073709551615UL) / 3691}, - - {(((((uintmax_t)0x1767U << 28 | 0xa90721dU) << 28 | 0xc686c05U) << 28 | - 0xd10d39dU) - << 28 | - 0x1e1f291U), - (18446744073709551615UL) / 3697}, - - {(((((uintmax_t)0x817cU << 28 | 0xb6e3047U) << 28 | 0xeff3d37U) << 28 | - 0x4468dccU) - << 28 | - 0xaced1ddU), - (18446744073709551615UL) / 3701}, - - {(((((uintmax_t)0x916dU << 28 | 0x896be15U) << 28 | 0xac3548dU) << 28 | - 0x145c7d1U) - << 28 | - 0x10c5ad5U), - (18446744073709551615UL) / 3709}, - - {(((((uintmax_t)0x50e1U << 28 | 0xc7f7bd5U) << 28 | 0xdf5f332U) << 28 | - 0x51a39f5U) - << 28 | - 0xacb5737U), - (18446744073709551615UL) / 3719}, - - {(((((uintmax_t)0xc1e7U << 28 | 0xf58f36eU) << 28 | 0x1b567a6U) << 28 | - 0x6e50171U) - << 28 | - 0x443506fU), - (18446744073709551615UL) / 3727}, - - {(((((uintmax_t)0xe72cU << 28 | 0xc7f8de3U) << 28 | 0x0f6e112U) << 28 | - 0x4f69ad9U) - << 28 | - 0x1dd4cbdU), - (18446744073709551615UL) / 3733}, - - {(((((uintmax_t)0x81e2U << 28 | 0x02e029aU) << 28 | 0x0d485ecU) << 28 | - 0x24f8f2aU) - << 28 | - 0x61a2793U), - (18446744073709551615UL) / 3739}, - - {(((((uintmax_t)0x66a5U << 28 | 0x216bc00U) << 28 | 0x45b35b4U) << 28 | - 0x72148e6U) - << 28 | - 0x56b7a51U), - (18446744073709551615UL) / 3761}, - - {(((((uintmax_t)0x3442U << 28 | 0x9973536U) << 28 | 0x29ba00aU) << 28 | - 0xdf9570eU) - << 28 | - 0x1142f07U), - (18446744073709551615UL) / 3767}, - - {(((((uintmax_t)0xc952U << 28 | 0x869f58aU) << 28 | 0x38eb489U) << 28 | - 0xbf33b06U) - << 28 | - 0x5119789U), - (18446744073709551615UL) / 3769}, - - {(((((uintmax_t)0xc462U << 28 | 0xe78b7b7U) << 28 | 0xebf2b8fU) << 28 | - 0x0149803U) - << 28 | - 0xcb291ebU), - (18446744073709551615UL) / 3779}, - - {(((((uintmax_t)0xa7b8U << 28 | 0x300e09dU) << 28 | 0xa9be883U) << 28 | - 0x34b63afU) - << 28 | - 0xd190a31U), - (18446744073709551615UL) / 3793}, - - {(((((uintmax_t)0x678fU << 28 | 0x45607afU) << 28 | 0xa226292U) << 28 | - 0x0908d50U) - << 28 | - 0xd6aba7dU), - (18446744073709551615UL) / 3797}, - - {(((((uintmax_t)0x3066U << 28 | 0x51b882dU) << 28 | 0xc63e557U) << 28 | - 0xd8b018cU) - << 28 | - 0x5a33d53U), - (18446744073709551615UL) / 3803}, - - {(((((uintmax_t)0x03f3U << 28 | 0xf0b9737U) << 28 | 0x01682eaU) << 28 | - 0x1773092U) - << 28 | - 0xdc27ee5U), - (18446744073709551615UL) / 3821}, - - {(((((uintmax_t)0x824fU << 28 | 0x6b12f35U) << 28 | 0x80e76caU) << 28 | - 0xe5f38b7U) - << 28 | - 0xbf2e00fU), - (18446744073709551615UL) / 3823}, - - {(((((uintmax_t)0xba8aU << 28 | 0x4084821U) << 28 | 0xa94f02bU) << 28 | - 0xd02df34U) - << 28 | - 0xf695349U), - (18446744073709551615UL) / 3833}, - - {(((((uintmax_t)0x1f9bU << 28 | 0xea70762U) << 28 | 0xf3f48ddU) << 28 | - 0xfecd5beU) - << 28 | - 0x62e2eb7U), - (18446744073709551615UL) / 3847}, - - {(((((uintmax_t)0xb7acU << 28 | 0x817ee73U) << 28 | 0x45119dbU) << 28 | - 0xf849ebeU) - << 28 | - 0xc96c4a3U), - (18446744073709551615UL) / 3851}, - - {(((((uintmax_t)0xf8c2U << 28 | 0x0286585U) << 28 | 0xe14dcdaU) << 28 | - 0x31d4d01U) - << 28 | - 0x87357c5U), - (18446744073709551615UL) / 3853}, - - {(((((uintmax_t)0x7727U << 28 | 0x2a58ab3U) << 28 | 0xdb276e3U) << 28 | - 0x4e21cc2U) - << 28 | - 0xd5418a7U), - (18446744073709551615UL) / 3863}, - - {(((((uintmax_t)0x61caU << 28 | 0x83edc68U) << 28 | 0xdb38968U) << 28 | - 0xca5137aU) - << 28 | - 0x9e574adU), - (18446744073709551615UL) / 3877}, - - {(((((uintmax_t)0x74f3U << 28 | 0x8879e60U) << 28 | 0x2c53a3eU) << 28 | - 0xaa0d0f8U) - << 28 | - 0x04bfd19U), - (18446744073709551615UL) / 3881}, - - {(((((uintmax_t)0x1c6fU << 28 | 0xe7c6996U) << 28 | 0x04df055U) << 28 | - 0x4fb753cU) - << 28 | - 0xc20e9d1U), - (18446744073709551615UL) / 3889}, - - {(((((uintmax_t)0x374dU << 28 | 0x408a62aU) << 28 | 0xda31679U) << 28 | - 0x7afcca1U) - << 28 | - 0x300756bU), - (18446744073709551615UL) / 3907}, - - {(((((uintmax_t)0xc8e2U << 28 | 0xbdb1524U) << 28 | 0x758f48bU) << 28 | - 0x8d950b5U) - << 28 | - 0x2eeea77U), - (18446744073709551615UL) / 3911}, - - {(((((uintmax_t)0xbfc1U << 28 | 0x421336fU) << 28 | 0x6ea5dfbU) << 28 | - 0x6cd166aU) - << 28 | - 0xcabc185U), - (18446744073709551615UL) / 3917}, - - {(((((uintmax_t)0x7daeU << 28 | 0x58b5560U) << 28 | 0x7b5454eU) << 28 | - 0xb6c5ed9U) - << 28 | - 0x437a7afU), - (18446744073709551615UL) / 3919}, - - {(((((uintmax_t)0xf1f8U << 28 | 0x4cbdc3dU) << 28 | 0x573f5d1U) << 28 | - 0xeddbd91U) - << 28 | - 0xb790cdbU), - (18446744073709551615UL) / 3923}, - - {(((((uintmax_t)0xa6abU << 28 | 0x9f4ec63U) << 28 | 0x4c6db93U) << 28 | - 0xd714ea4U) - << 28 | - 0xd8948e9U), - (18446744073709551615UL) / 3929}, - - {(((((uintmax_t)0x8198U << 28 | 0x742e1b7U) << 28 | 0xb68a73cU) << 28 | - 0xa13ed81U) - << 28 | - 0x45188d3U), - (18446744073709551615UL) / 3931}, - - {(((((uintmax_t)0x5ab3U << 28 | 0x52c7947U) << 28 | 0xbe09382U) << 28 | - 0x9086016U) - << 28 | - 0xda89c57U), - (18446744073709551615UL) / 3943}, - - {(((((uintmax_t)0xec69U << 28 | 0x9751239U) << 28 | 0xb9900d7U) << 28 | - 0xda1f432U) - << 28 | - 0x124a543U), - (18446744073709551615UL) / 3947}, - - {(((((uintmax_t)0xa4e1U << 28 | 0x58dc715U) << 28 | 0x1a22b7eU) << 28 | - 0xad55816U) - << 28 | - 0x32fb07fU), - (18446744073709551615UL) / 3967}, - - {(((((uintmax_t)0x4cd1U << 28 | 0xba8fa08U) << 28 | 0x1613a35U) << 28 | - 0x443837fU) - << 28 | - 0x63ec3bdU), - (18446744073709551615UL) / 3989}, - - {(((((uintmax_t)0x48afU << 28 | 0x92759a4U) << 28 | 0x3f37589U) << 28 | - 0xe2b200eU) - << 28 | - 0x5519461U), - (18446744073709551615UL) / 4001}, - - {(((((uintmax_t)0x9293U << 28 | 0xfc29b25U) << 28 | 0xcbafee9U) << 28 | - 0xae44f0bU) - << 28 | - 0x7289c0bU), - (18446744073709551615UL) / 4003}, - - {(((((uintmax_t)0xc02cU << 28 | 0xfa2fa91U) << 28 | 0xcaf9094U) << 28 | - 0x387a277U) - << 28 | - 0xb9fa817U), - (18446744073709551615UL) / 4007}, - - {(((((uintmax_t)0x15c0U << 28 | 0xd8627efU) << 28 | 0x28a2cc8U) << 28 | - 0x4f1a58aU) - << 28 | - 0xbfc2c25U), - (18446744073709551615UL) / 4013}, - - {(((((uintmax_t)0x1143U << 28 | 0x12ca6e3U) << 28 | 0x2522b71U) << 28 | - 0x101d8e3U) - << 28 | - 0xc83377bU), - (18446744073709551615UL) / 4019}, - - {(((((uintmax_t)0xcfadU << 28 | 0x7d3b04aU) << 28 | 0x5c91ec0U) << 28 | - 0x24abe5cU) - << 28 | - 0x50ba69dU), - (18446744073709551615UL) / 4021}, - - {(((((uintmax_t)0x9d46U << 28 | 0x3eef687U) << 28 | 0x26d7815U) << 28 | - 0xde4eb36U) - << 28 | - 0x5a65d73U), - (18446744073709551615UL) / 4027}, - - {(((((uintmax_t)0xe98eU << 28 | 0x1152e37U) << 28 | 0xc3cf309U) << 28 | - 0xed28a76U) - << 28 | - 0xbcca931U), - (18446744073709551615UL) / 4049}, - - {(((((uintmax_t)0xa002U << 28 | 0x05affefU) << 28 | 0xd280081U) << 28 | - 0x6bffbf4U) - << 28 | - 0xa00205bU), - (18446744073709551615UL) / 4051}, - - {(((((uintmax_t)0x1d87U << 28 | 0xfb74ed0U) << 28 | 0x1b4271fU) << 28 | - 0x5c71543U) - << 28 | - 0xd558069U), - (18446744073709551615UL) / 4057}, - - {(((((uintmax_t)0x7051U << 28 | 0x751852fU) << 28 | 0x74370f2U) << 28 | - 0x5c64d0eU) - << 28 | - 0xc53b859U), - (18446744073709551615UL) / 4073}, - - {(((((uintmax_t)0x88e1U << 28 | 0x6f867eeU) << 28 | 0x6d54296U) << 28 | - 0xc02c2efU) - << 28 | - 0x1e0ff0fU), - (18446744073709551615UL) / 4079}, - - {(((((uintmax_t)0xe8e8U << 28 | 0xc8bebb9U) << 28 | 0xaa05219U) << 28 | - 0xa804816U) - << 28 | - 0x870a333U), - (18446744073709551615UL) / 4091}, - - {(((((uintmax_t)0xc605U << 28 | 0x20f62e2U) << 28 | 0x8a79f6dU) << 28 | - 0xe49add0U) - << 28 | - 0x971c555U), - (18446744073709551615UL) / 4093}, - - {(((((uintmax_t)0x46c2U << 28 | 0xbb7cd89U) << 28 | 0x7639d52U) << 28 | - 0x8087e68U) - << 28 | - 0x4c71aabU), - (18446744073709551615UL) / 4099}, - - {(((((uintmax_t)0xfc73U << 28 | 0x53e15cbU) << 28 | 0x9127ea9U) << 28 | - 0x4152c26U) - << 28 | - 0x9bcdeefU), - (18446744073709551615UL) / 4111}, - - {(((((uintmax_t)0x3d78U << 28 | 0xe5c2d68U) << 28 | 0x0673803U) << 28 | - 0x79450a3U) - << 28 | - 0xc2b6bdfU), - (18446744073709551615UL) / 4127}, - - {(((((uintmax_t)0x4a66U << 28 | 0x8c7e3baU) << 28 | 0x4fbb8d2U) << 28 | - 0xcd38bafU) - << 28 | - 0xe5373e1U), - (18446744073709551615UL) / 4129}, - - {(((((uintmax_t)0x616eU << 28 | 0xb008eb5U) << 28 | 0xfb2b2c2U) << 28 | - 0x9df2beaU) - << 28 | - 0x71d8badU), - (18446744073709551615UL) / 4133}, - - {(((((uintmax_t)0x12bdU << 28 | 0xa25ba9aU) << 28 | 0x80c5ec1U) << 28 | - 0x5862775U) - << 28 | - 0xf302e83U), - (18446744073709551615UL) / 4139}, - - {(((((uintmax_t)0x98dfU << 28 | 0x642b264U) << 28 | 0x7a0d310U) << 28 | - 0x16af2feU) - << 28 | - 0x55ede09U), - (18446744073709551615UL) / 4153}, - - {(((((uintmax_t)0xcc45U << 28 | 0x381a1c7U) << 28 | 0x3878b3dU) << 28 | - 0x26dbd9dU) - << 28 | - 0x1910715U), - (18446744073709551615UL) / 4157}, - - {(((((uintmax_t)0x1344U << 28 | 0x23b36d8U) << 28 | 0x0d4ba62U) << 28 | - 0x1dab2dfU) - << 28 | - 0xaf3dfbfU), - (18446744073709551615UL) / 4159}, - - {(((((uintmax_t)0xd614U << 28 | 0x399c587U) << 28 | 0xff827b6U) << 28 | - 0xf1d7ac2U) - << 28 | - 0x87338b1U), - (18446744073709551615UL) / 4177}, - - {(((((uintmax_t)0x5c04U << 28 | 0x24ce751U) << 28 | 0xf620c8dU) << 28 | - 0x9e9f0c3U) - << 28 | - 0xf9e7fd9U), - (18446744073709551615UL) / 4201}, - - {(((((uintmax_t)0xa4cfU << 28 | 0x6d1fac5U) << 28 | 0x93e8e60U) << 28 | - 0xa93f876U) - << 28 | - 0x2e914bbU), - (18446744073709551615UL) / 4211}, - - {(((((uintmax_t)0x16b4U << 28 | 0x4c7d8a9U) << 28 | 0x7e358b1U) << 28 | - 0x4371f24U) - << 28 | - 0x7c159c9U), - (18446744073709551615UL) / 4217}, - - {(((((uintmax_t)0x7d2dU << 28 | 0xb0c132cU) << 28 | 0x9926a6dU) << 28 | - 0xd3b4844U) - << 28 | - 0x71d4eb3U), - (18446744073709551615UL) / 4219}, - - {(((((uintmax_t)0xc12aU << 28 | 0x5044c45U) << 28 | 0xfa4f4cdU) << 28 | - 0x172f470U) - << 28 | - 0x1c1684dU), - (18446744073709551615UL) / 4229}, - - {(((((uintmax_t)0x3b6aU << 28 | 0xabf51beU) << 28 | 0x4a6c103U) << 28 | - 0x72e686eU) - << 28 | - 0xd8bb537U), - (18446744073709551615UL) / 4231}, - - {(((((uintmax_t)0x0b0bU << 28 | 0xe43ba38U) << 28 | 0x61105bcU) << 28 | - 0x07f7ca6U) - << 28 | - 0x5c5b071U), - (18446744073709551615UL) / 4241}, - - {(((((uintmax_t)0x1841U << 28 | 0x2954499U) << 28 | 0xbb949abU) << 28 | - 0x2b6170cU) - << 28 | - 0x3f78d9bU), - (18446744073709551615UL) / 4243}, - - {(((((uintmax_t)0x67e4U << 28 | 0x8d552c3U) << 28 | 0xde0d1f3U) << 28 | - 0xd74f461U) - << 28 | - 0xfe6f5b5U), - (18446744073709551615UL) / 4253}, - - {(((((uintmax_t)0xa030U << 28 | 0x161ea7bU) << 28 | 0x38ae8dbU) << 28 | - 0xc13f4b3U) - << 28 | - 0x1f3230bU), - (18446744073709551615UL) / 4259}, - - {(((((uintmax_t)0xf2a9U << 28 | 0x8b90bb7U) << 28 | 0x2eec1d1U) << 28 | - 0x420716eU) - << 28 | - 0x3f1572dU), - (18446744073709551615UL) / 4261}, - - {(((((uintmax_t)0xa0c1U << 28 | 0xb926e68U) << 28 | 0x69f8ed5U) << 28 | - 0xbe2fd4dU) - << 28 | - 0x805464fU), - (18446744073709551615UL) / 4271}, - - {(((((uintmax_t)0xc4edU << 28 | 0x7ccb753U) << 28 | 0xef76ec6U) << 28 | - 0x8b97c13U) - << 28 | - 0x6943851U), - (18446744073709551615UL) / 4273}, - - {(((((uintmax_t)0x5305U << 28 | 0xada2a32U) << 28 | 0xce35e9eU) << 28 | - 0x27918afU) - << 28 | - 0x7cfb473U), - (18446744073709551615UL) / 4283}, - - {(((((uintmax_t)0x0b38U << 28 | 0xa4bcd9fU) << 28 | 0xaa0cc5eU) << 28 | - 0xc8ab6c3U) - << 28 | - 0x6ac7f41U), - (18446744073709551615UL) / 4289}, - - {(((((uintmax_t)0xc8f3U << 28 | 0x8c6bf3dU) << 28 | 0x8adf696U) << 28 | - 0x4076331U) - << 28 | - 0xdd90979U), - (18446744073709551615UL) / 4297}, - - {(((((uintmax_t)0x3ed4U << 28 | 0xdeb0e60U) << 28 | 0x6fb3530U) << 28 | - 0x198eff7U) - << 28 | - 0x7b002d7U), - (18446744073709551615UL) / 4327}, - - {(((((uintmax_t)0xe304U << 28 | 0x8b8a2eaU) << 28 | 0x19da93aU) << 28 | - 0xf7cb958U) - << 28 | - 0x3ece011U), - (18446744073709551615UL) / 4337}, - - {(((((uintmax_t)0x63b5U << 28 | 0xa908ca7U) << 28 | 0xcb9bb34U) << 28 | - 0xce06f64U) - << 28 | - 0x3d9883bU), - (18446744073709551615UL) / 4339}, - - {(((((uintmax_t)0xd58fU << 28 | 0x1940b11U) << 28 | 0x0300879U) << 28 | - 0xf767e52U) - << 28 | - 0x8708c55U), - (18446744073709551615UL) / 4349}, - - {(((((uintmax_t)0xa973U << 28 | 0xcee1454U) << 28 | 0x5fa7a18U) << 28 | - 0x5332d2eU) - << 28 | - 0xf2313cdU), - (18446744073709551615UL) / 4357}, - - {(((((uintmax_t)0xc544U << 28 | 0x1f37189U) << 28 | 0x5bd3a43U) << 28 | - 0xb611b84U) - << 28 | - 0xc8332a3U), - (18446744073709551615UL) / 4363}, - - {(((((uintmax_t)0xc201U << 28 | 0x49b4038U) << 28 | 0x330c3c2U) << 28 | - 0xe215e4fU) - << 28 | - 0x43bb63dU), - (18446744073709551615UL) / 4373}, - - {(((((uintmax_t)0xfcf7U << 28 | 0xe56a2a8U) << 28 | 0xf4dd4f9U) << 28 | - 0x4b9dd22U) - << 28 | - 0xce44e97U), - (18446744073709551615UL) / 4391}, - - {(((((uintmax_t)0xc364U << 28 | 0x3300862U) << 28 | 0x47258d8U) << 28 | - 0x95834a1U) - << 28 | - 0xdb166a5U), - (18446744073709551615UL) / 4397}, - - {(((((uintmax_t)0xa5f1U << 28 | 0xb76bd2bU) << 28 | 0x5f83834U) << 28 | - 0x7d2f16dU) - << 28 | - 0x19b8d09U), - (18446744073709551615UL) / 4409}, - - {(((((uintmax_t)0x9b97U << 28 | 0x89df750U) << 28 | 0x6e4081bU) << 28 | - 0x54d4dc4U) - << 28 | - 0x5b7d98dU), - (18446744073709551615UL) / 4421}, - - {(((((uintmax_t)0x612dU << 28 | 0xe5f44efU) << 28 | 0x2839e11U) << 28 | - 0x7ac30d9U) - << 28 | - 0xa044877U), - (18446744073709551615UL) / 4423}, - - {(((((uintmax_t)0x9811U << 28 | 0x1015369U) << 28 | 0x6e9ec0eU) << 28 | - 0x10b78a6U) - << 28 | - 0x7a526e9U), - (18446744073709551615UL) / 4441}, - - {(((((uintmax_t)0xa197U << 28 | 0x1cf4c64U) << 28 | 0x2a99792U) << 28 | - 0xda68a81U) - << 28 | - 0x8688a9fU), - (18446744073709551615UL) / 4447}, - - {(((((uintmax_t)0x0f02U << 28 | 0xeeeb01cU) << 28 | 0x870bacfU) << 28 | - 0x2b6c87fU) - << 28 | - 0x741f84bU), - (18446744073709551615UL) / 4451}, - - {(((((uintmax_t)0x8d2eU << 28 | 0x94fe559U) << 28 | 0x50d09d2U) << 28 | - 0x64f9bd4U) - << 28 | - 0x1e18ed9U), - (18446744073709551615UL) / 4457}, - - {(((((uintmax_t)0xa84bU << 28 | 0xb74450fU) << 28 | 0xe38c973U) << 28 | - 0x3cbeaa9U) - << 28 | - 0x7166d8fU), - (18446744073709551615UL) / 4463}, - - {(((((uintmax_t)0x495aU << 28 | 0xe4dcfaaU) << 28 | 0xfd8b1c9U) << 28 | - 0xf475b02U) - << 28 | - 0x1d22e81U), - (18446744073709551615UL) / 4481}, - - {(((((uintmax_t)0x6837U << 28 | 0x46fb256U) << 28 | 0x74d6073U) << 28 | - 0x1f76f2eU) - << 28 | - 0xc4c852bU), - (18446744073709551615UL) / 4483}, - - {(((((uintmax_t)0xf6ffU << 28 | 0x5f8d222U) << 28 | 0x12931daU) << 28 | - 0xf6f0c97U) - << 28 | - 0x8f69945U), - (18446744073709551615UL) / 4493}, - - {(((((uintmax_t)0xd49aU << 28 | 0xb982b2bU) << 28 | 0x1c92174U) << 28 | - 0x9c8ad20U) - << 28 | - 0xc61ec93U), - (18446744073709551615UL) / 4507}, - - {(((((uintmax_t)0x2f4fU << 28 | 0x04983ffU) << 28 | 0xc5e9e09U) << 28 | - 0x307ff8bU) - << 28 | - 0xd3c1261U), - (18446744073709551615UL) / 4513}, - - {(((((uintmax_t)0xadefU << 28 | 0x566dd5fU) << 28 | 0x282eb33U) << 28 | - 0x4a69fb5U) - << 28 | - 0xa486e2dU), - (18446744073709551615UL) / 4517}, - - {(((((uintmax_t)0xd118U << 28 | 0x137ccc9U) << 28 | 0xe647f1fU) << 28 | - 0x36c7bf3U) - << 28 | - 0x1578617U), - (18446744073709551615UL) / 4519}, - - {(((((uintmax_t)0x01cfU << 28 | 0xa9f7f67U) << 28 | 0xdc3aa31U) << 28 | - 0xebbcc27U) - << 28 | - 0x9ea6103U), - (18446744073709551615UL) / 4523}, - - {(((((uintmax_t)0x9c1fU << 28 | 0x4da38ddU) << 28 | 0x2657442U) << 28 | - 0xe2aad11U) - << 28 | - 0x9f466ebU), - (18446744073709551615UL) / 4547}, - - {(((((uintmax_t)0x41acU << 28 | 0x994bcdcU) << 28 | 0xd3d2c10U) << 28 | - 0x6ec05a0U) - << 28 | - 0xab1450dU), - (18446744073709551615UL) / 4549}, - - {(((((uintmax_t)0x556dU << 28 | 0x480324aU) << 28 | 0x6d002b1U) << 28 | - 0xb38db92U) - << 28 | - 0xa99e731U), - (18446744073709551615UL) / 4561}, - - {(((((uintmax_t)0x9c39U << 28 | 0x2ce6456U) << 28 | 0x52d9278U) << 28 | - 0x4ae377eU) - << 28 | - 0x67071e7U), - (18446744073709551615UL) / 4567}, - - {(((((uintmax_t)0xcdc8U << 28 | 0x79fec56U) << 28 | 0x781893eU) << 28 | - 0x9e1471bU) - << 28 | - 0xa6671d7U), - (18446744073709551615UL) / 4583}, - - {(((((uintmax_t)0x375eU << 28 | 0xf621586U) << 28 | 0x1b19982U) << 28 | - 0xc29b59dU) - << 28 | - 0x4d73d0fU), - (18446744073709551615UL) / 4591}, - - {(((((uintmax_t)0x75c7U << 28 | 0xfa35597U) << 28 | 0xdcce0c2U) << 28 | - 0x3dd0712U) - << 28 | - 0x8b5525dU), - (18446744073709551615UL) / 4597}, - - {(((((uintmax_t)0x4083U << 28 | 0xb2ce1ccU) << 28 | 0xf1d164dU) << 28 | - 0x4e5ce0eU) - << 28 | - 0x9245133U), - (18446744073709551615UL) / 4603}, - - {(((((uintmax_t)0x9d9cU << 28 | 0x64622aeU) << 28 | 0x10824c8U) << 28 | - 0xfd1057cU) - << 28 | - 0x09f8cc5U), - (18446744073709551615UL) / 4621}, - - {(((((uintmax_t)0x02b4U << 28 | 0x87cfdbcU) << 28 | 0x89230eaU) << 28 | - 0x1516e94U) - << 28 | - 0xf394035U), - (18446744073709551615UL) / 4637}, - - {(((((uintmax_t)0x32e1U << 28 | 0x4328c7fU) << 28 | 0xce8e0b5U) << 28 | - 0xe3319c5U) - << 28 | - 0x64ee9dfU), - (18446744073709551615UL) / 4639}, - - {(((((uintmax_t)0xf929U << 28 | 0xbd10602U) << 28 | 0x894a612U) << 28 | - 0x6a69f90U) - << 28 | - 0xd822d8bU), - (18446744073709551615UL) / 4643}, - - {(((((uintmax_t)0xa0bcU << 28 | 0x8b6d15cU) << 28 | 0x03be950U) << 28 | - 0x1ed6348U) - << 28 | - 0x857aa19U), - (18446744073709551615UL) / 4649}, - - {(((((uintmax_t)0xf169U << 28 | 0xf4a94f1U) << 28 | 0x86231deU) << 28 | - 0x344a324U) - << 28 | - 0xeee1c83U), - (18446744073709551615UL) / 4651}, - - {(((((uintmax_t)0xafdaU << 28 | 0x2e10d23U) << 28 | 0x58ab11dU) << 28 | - 0xd9690cbU) - << 28 | - 0x2c406d1U), - (18446744073709551615UL) / 4657}, - - {(((((uintmax_t)0x70eeU << 28 | 0x0c3017bU) << 28 | 0x7881908U) << 28 | - 0xd6c5178U) - << 28 | - 0xd5e4387U), - (18446744073709551615UL) / 4663}, - - {(((((uintmax_t)0x2b47U << 28 | 0x45bd0e3U) << 28 | 0x051844cU) << 28 | - 0xea4050aU) - << 28 | - 0x3e8fdc1U), - (18446744073709551615UL) / 4673}, - - {(((((uintmax_t)0x5aa8U << 28 | 0x9fc2b8dU) << 28 | 0x1a891c1U) << 28 | - 0x14a06acU) - << 28 | - 0xc83f777U), - (18446744073709551615UL) / 4679}, - - {(((((uintmax_t)0x834dU << 28 | 0x385f9c7U) << 28 | 0x5a89320U) << 28 | - 0xb060ebcU) - << 28 | - 0x0ea01dbU), - (18446744073709551615UL) / 4691}, - - {(((((uintmax_t)0xcbb0U << 28 | 0x86fea3aU) << 28 | 0x06a40feU) << 28 | - 0x50045acU) - << 28 | - 0xb78c99fU), - (18446744073709551615UL) / 4703}, - - {(((((uintmax_t)0x4bceU << 28 | 0xc35242bU) << 28 | 0x29eaa29U) << 28 | - 0x1a68705U) - << 28 | - 0xb196e91U), - (18446744073709551615UL) / 4721}, - - {(((((uintmax_t)0x1cf1U << 28 | 0xbea1a20U) << 28 | 0x324cdc1U) << 28 | - 0x042c724U) - << 28 | - 0x273e2bbU), - (18446744073709551615UL) / 4723}, - - {(((((uintmax_t)0x530aU << 28 | 0xaa16d83U) << 28 | 0x622522cU) << 28 | - 0xee680bbU) - << 28 | - 0x165b7c9U), - (18446744073709551615UL) / 4729}, - - {(((((uintmax_t)0x6dbeU << 28 | 0xc4fd598U) << 28 | 0x42343fdU) << 28 | - 0x2ff9f12U) - << 28 | - 0xe0776d5U), - (18446744073709551615UL) / 4733}, - - {(((((uintmax_t)0x9327U << 28 | 0xd1e0357U) << 28 | 0x3cba016U) << 28 | - 0x6a5da63U) - << 28 | - 0xaf2cc6fU), - (18446744073709551615UL) / 4751}, - - {(((((uintmax_t)0xfe7eU << 28 | 0x69c1b53U) << 28 | 0xa5d7dedU) << 28 | - 0xd16a593U) - << 28 | - 0x0408d27U), - (18446744073709551615UL) / 4759}, - - {(((((uintmax_t)0xdba8U << 28 | 0x6fc17c3U) << 28 | 0xa04d12aU) << 28 | - 0xdf30c26U) - << 28 | - 0x528844fU), - (18446744073709551615UL) / 4783}, - - {(((((uintmax_t)0x4928U << 28 | 0x7ba43b4U) << 28 | 0x0f9d99aU) << 28 | - 0x48d6572U) - << 28 | - 0xb5eec7bU), - (18446744073709551615UL) / 4787}, - - {(((((uintmax_t)0xfd7cU << 28 | 0xd1c2bd5U) << 28 | 0x72fbc6eU) << 28 | - 0x8bf2877U) - << 28 | - 0x503cb9dU), - (18446744073709551615UL) / 4789}, - - {(((((uintmax_t)0x1951U << 28 | 0x21b3d5eU) << 28 | 0x975e0eaU) << 28 | - 0x27a191aU) - << 28 | - 0x7045389U), - (18446744073709551615UL) / 4793}, - - {(((((uintmax_t)0xced1U << 28 | 0x00e827bU) << 28 | 0x0325b6eU) << 28 | - 0xb091f34U) - << 28 | - 0xdd45d3fU), - (18446744073709551615UL) / 4799}, - - {(((((uintmax_t)0xe394U << 28 | 0x4a02e12U) << 28 | 0x05dd8dcU) << 28 | - 0x8a6cabbU) - << 28 | - 0x2937d41U), - (18446744073709551615UL) / 4801}, - - {(((((uintmax_t)0x3e2dU << 28 | 0xa2eb33fU) << 28 | 0x746e6bcU) << 28 | - 0x2f04f25U) - << 28 | - 0x4922a05U), - (18446744073709551615UL) / 4813}, - - {(((((uintmax_t)0xf205U << 28 | 0xd890fadU) << 28 | 0x84cf441U) << 28 | - 0x431f4d6U) - << 28 | - 0xeb38631U), - (18446744073709551615UL) / 4817}, - - {(((((uintmax_t)0x7974U << 28 | 0xa2271b8U) << 28 | 0x09c017bU) << 28 | - 0xd717435U) - << 28 | - 0xa08291fU), - (18446744073709551615UL) / 4831}, - - {(((((uintmax_t)0xf434U << 28 | 0x0837312U) << 28 | 0x2b4a342U) << 28 | - 0x32df9c9U) - << 28 | - 0x1fc1a55U), - (18446744073709551615UL) / 4861}, - - {(((((uintmax_t)0x4c78U << 28 | 0x09ab985U) << 28 | 0xc13f8a4U) << 28 | - 0x651e1d5U) - << 28 | - 0x382eab7U), - (18446744073709551615UL) / 4871}, - - {(((((uintmax_t)0x9273U << 28 | 0x60376e4U) << 28 | 0x8c0bf7cU) << 28 | - 0xfb5409dU) - << 28 | - 0xe4cf3c5U), - (18446744073709551615UL) / 4877}, - - {(((((uintmax_t)0x47a1U << 28 | 0xbf627e6U) << 28 | 0x7276dcdU) << 28 | - 0xd636fb0U) - << 28 | - 0x68b9929U), - (18446744073709551615UL) / 4889}, - - {(((((uintmax_t)0x3f55U << 28 | 0x93b5db8U) << 28 | 0xe2d01eeU) << 28 | - 0x8f95e74U) - << 28 | - 0x0462c97U), - (18446744073709551615UL) / 4903}, - - {(((((uintmax_t)0x29aaU << 28 | 0xc9d12b8U) << 28 | 0xb650349U) << 28 | - 0x0f97b3aU) - << 28 | - 0x758b4a5U), - (18446744073709551615UL) / 4909}, - - {(((((uintmax_t)0x3c51U << 28 | 0x65394caU) << 28 | 0x8d3eb64U) << 28 | - 0x1431563U) - << 28 | - 0xc441287U), - (18446744073709551615UL) / 4919}, - - {(((((uintmax_t)0xf258U << 28 | 0x91c808bU) << 28 | 0x8d292b7U) << 28 | - 0x43dad3eU) - << 28 | - 0xc45916bU), - (18446744073709551615UL) / 4931}, - - {(((((uintmax_t)0x708fU << 28 | 0xa57e92aU) << 28 | 0x8098c7bU) << 28 | - 0x188be8fU) - << 28 | - 0x55c878dU), - (18446744073709551615UL) / 4933}, - - {(((((uintmax_t)0x983dU << 28 | 0xcf2775dU) << 28 | 0xcd7ead8U) << 28 | - 0x05648b2U) - << 28 | - 0xca54ef9U), - (18446744073709551615UL) / 4937}, - - {(((((uintmax_t)0x729cU << 28 | 0xb7c09bcU) << 28 | 0x91a2776U) << 28 | - 0xdbe6eefU) - << 28 | - 0x60123afU), - (18446744073709551615UL) / 4943}, - - {(((((uintmax_t)0xe8f0U << 28 | 0x5536727U) << 28 | 0xa8b8137U) << 28 | - 0x11525e6U) - << 28 | - 0xa9e8867U), - (18446744073709551615UL) / 4951}, - - {(((((uintmax_t)0xbdf2U << 28 | 0x781fd01U) << 28 | 0x3014a85U) << 28 | - 0xc2215cbU) - << 28 | - 0x383d8f5U), - (18446744073709551615UL) / 4957}, - - {(((((uintmax_t)0x0439U << 28 | 0xee5f8e3U) << 28 | 0x30656e5U) << 28 | - 0x8f554c8U) - << 28 | - 0x9825857U), - (18446744073709551615UL) / 4967}, - - {(((((uintmax_t)0x77adU << 28 | 0xfb283c9U) << 28 | 0x63b0a8fU) << 28 | - 0xbd3b17cU) - << 28 | - 0x01dacd9U), - (18446744073709551615UL) / 4969}, - - {(((((uintmax_t)0x5d7bU << 28 | 0xe851f3fU) << 28 | 0x443554cU) << 28 | - 0x8c39dc7U) - << 28 | - 0xaedee65U), - (18446744073709551615UL) / 4973}, - - {(((((uintmax_t)0x373cU << 28 | 0x1c8a99bU) << 28 | 0x1412465U) << 28 | - 0x3ac6ddaU) - << 28 | - 0x86cd3b3U), - (18446744073709551615UL) / 4987}, - - {(((((uintmax_t)0x5b50U << 28 | 0xa687decU) << 28 | 0x6a07b0dU) << 28 | - 0x61c6791U) - << 28 | - 0xa9c2c81U), - (18446744073709551615UL) / 4993}, - - {(((((uintmax_t)0x0b44U << 28 | 0x292c4bfU) << 28 | 0xef9cdb6U) << 28 | - 0x27a3009U) - << 28 | - 0x0354237U), - (18446744073709551615UL) / 4999}, - {1, 0}, - {1, 0}, - {1, 0}, - {1, 0}, - {1, 0}, - {1, 0}, - {1, 0}}; - -_Static_assert(W <= 128, "verify (" - "W <= WIDE_UINT_BITS" - ")"); - -static _Bool dev_debug = 0; - -static _Bool flag_prove_primality = 1; - -static void factor_insert_refind(struct factors *factors, uintmax_t p, - unsigned int i, unsigned int off) { - for (unsigned int j = 0; j < off; j++) - p += primes_diff[i + j]; - factor_insert_multiplicity(factors, p, 1); -} -static uintmax_t factor_using_division(uintmax_t *t1p, uintmax_t t1, - uintmax_t t0, struct factors *factors) { - if (t0 % 2 == 0) { - unsigned int cnt; - - if (t0 == 0) { - do { - ; - __asm__("bsf\t%1, %q0" : "=r"(cnt) : "rm"((UDItype)(t1))); - } while (0); - t0 = t1 >> cnt; - t1 = 0; - cnt += 64; - } else { - do { - ; - __asm__("bsf\t%1, %q0" : "=r"(cnt) : "rm"((UDItype)(t0))); - } while (0); - do { - (t0) = ((t1) << (64 - (cnt))) | ((t0) >> (cnt)); - (t1) = (t1) >> (cnt); - } while (0); - } - - factor_insert_multiplicity(factors, 2, cnt); - } - - uintmax_t p = 3; - unsigned int i; - for (i = 0; - t1 > 0 && i < (sizeof(primes_diff) / sizeof(primes_diff[0]) - 8 + 1); - i++) { - for (;;) { - uintmax_t q1, q0, hi; - uintmax_t lo; - - q0 = t0 * primes_dtab[i].binv; - __asm__("mulq\t%3" - : "=a"(lo), "=d"(hi) - : "%0"((UDItype)(q0)), "rm"((UDItype)(p))); - if (hi > t1) - break; - hi = t1 - hi; - q1 = hi * primes_dtab[i].binv; - if (__builtin_expect((q1 > primes_dtab[i].lim), 1)) - break; - t1 = q1; - t0 = q0; - factor_insert_multiplicity(factors, p, 1); - } - p += primes_diff[i + 1]; - } - if (t1p) - *t1p = t1; - for (; i < (sizeof(primes_diff) / sizeof(primes_diff[0]) - 8 + 1); i += 8) { - uintmax_t q; - const struct primes_dtab *pd = &primes_dtab[i]; - do { - for (;;) { - q = t0 * pd[0].binv; - if (__builtin_expect((q > pd[0].lim), 1)) - break; - t0 = q; - factor_insert_refind(factors, p, i + 1, 0); - } - } while (0); - do { - for (;;) { - q = t0 * pd[1].binv; - if (__builtin_expect((q > pd[1].lim), 1)) - break; - t0 = q; - factor_insert_refind(factors, p, i + 1, 1); - } - } while (0); - do { - for (;;) { - q = t0 * pd[2].binv; - if (__builtin_expect((q > pd[2].lim), 1)) - break; - t0 = q; - factor_insert_refind(factors, p, i + 1, 2); - } - } while (0); - do { - for (;;) { - q = t0 * pd[3].binv; - if (__builtin_expect((q > pd[3].lim), 1)) - break; - t0 = q; - factor_insert_refind(factors, p, i + 1, 3); - } - } while (0); - do { - for (;;) { - q = t0 * pd[4].binv; - if (__builtin_expect((q > pd[4].lim), 1)) - break; - t0 = q; - factor_insert_refind(factors, p, i + 1, 4); - } - } while (0); - do { - for (;;) { - q = t0 * pd[5].binv; - if (__builtin_expect((q > pd[5].lim), 1)) - break; - t0 = q; - factor_insert_refind(factors, p, i + 1, 5); - } - } while (0); - do { - for (;;) { - q = t0 * pd[6].binv; - if (__builtin_expect((q > pd[6].lim), 1)) - break; - t0 = q; - factor_insert_refind(factors, p, i + 1, 6); - } - } while (0); - do { - for (;;) { - q = t0 * pd[7].binv; - if (__builtin_expect((q > pd[7].lim), 1)) - break; - t0 = q; - factor_insert_refind(factors, p, i + 1, 7); - } - } while (0); - - p += primes_diff8[i]; - if (p * p > t0) - break; - } - - return t0; -} - -static void mp_factor_using_division(mpz_t t, struct mp_factors *factors) { - mpz_t q; - unsigned long int p; - - do { - if (dev_debug) - fprintf(stderr, "[trial division] "); - } while (0); - - __gmpz_init(q); - - p = __gmpz_scan1(t, 0); - - __gmpz_fdiv_q_2exp(t, t, p); - while (p) { - mp_factor_insert_ui(factors, 2); - --p; - } - - p = 3; - for (unsigned int i = 1; - i <= (sizeof(primes_diff) / sizeof(primes_diff[0]) - 8 + 1);) { - if (!__gmpz_divisible_ui_p(t, p)) { - p += primes_diff[i++]; - if ((__builtin_constant_p(p * p) && (p * p) == 0 - ? ((t)->_mp_size < 0 ? -1 : (t)->_mp_size > 0) - : __gmpz_cmp_ui(t, p * p)) < 0) - break; - } else { - - __gmpz_tdiv_q_ui(t, t, p); - mp_factor_insert_ui(factors, p); - } - } - - __gmpz_clear(q); -} - -static const unsigned char binvert_table[128] = { - 0x01, 0xAB, 0xCD, 0xB7, 0x39, 0xA3, 0xC5, 0xEF, 0xF1, 0x1B, 0x3D, 0xA7, - 0x29, 0x13, 0x35, 0xDF, 0xE1, 0x8B, 0xAD, 0x97, 0x19, 0x83, 0xA5, 0xCF, - 0xD1, 0xFB, 0x1D, 0x87, 0x09, 0xF3, 0x15, 0xBF, 0xC1, 0x6B, 0x8D, 0x77, - 0xF9, 0x63, 0x85, 0xAF, 0xB1, 0xDB, 0xFD, 0x67, 0xE9, 0xD3, 0xF5, 0x9F, - 0xA1, 0x4B, 0x6D, 0x57, 0xD9, 0x43, 0x65, 0x8F, 0x91, 0xBB, 0xDD, 0x47, - 0xC9, 0xB3, 0xD5, 0x7F, 0x81, 0x2B, 0x4D, 0x37, 0xB9, 0x23, 0x45, 0x6F, - 0x71, 0x9B, 0xBD, 0x27, 0xA9, 0x93, 0xB5, 0x5F, 0x61, 0x0B, 0x2D, 0x17, - 0x99, 0x03, 0x25, 0x4F, 0x51, 0x7B, 0x9D, 0x07, 0x89, 0x73, 0x95, 0x3F, - 0x41, 0xEB, 0x0D, 0xF7, 0x79, 0xE3, 0x05, 0x2F, 0x31, 0x5B, 0x7D, 0xE7, - 0x69, 0x53, 0x75, 0x1F, 0x21, 0xCB, 0xED, 0xD7, 0x59, 0xC3, 0xE5, 0x0F, - 0x11, 0x3B, 0x5D, 0xC7, 0x49, 0x33, 0x55, 0xFF}; -static inline uintmax_t mulredc(uintmax_t a, uintmax_t b, uintmax_t m, - uintmax_t mi) { - uintmax_t rh, rl, q, th, xh; - uintmax_t tl; - - __asm__("mulq\t%3" - : "=a"(rl), "=d"(rh) - : "%0"((UDItype)(a)), "rm"((UDItype)(b))); - q = rl * mi; - __asm__("mulq\t%3" - : "=a"(tl), "=d"(th) - : "%0"((UDItype)(q)), "rm"((UDItype)(m))); - xh = rh - th; - if (rh < th) - xh += m; - - return xh; -} - -static uintmax_t mulredc2(uintmax_t *r1p, uintmax_t a1, uintmax_t a0, - uintmax_t b1, uintmax_t b0, uintmax_t m1, - uintmax_t m0, uintmax_t mi) { - uintmax_t r1, r0, q, p1, t1, t0, s1, s0; - uintmax_t p0; - mi = -mi; - - ((void)sizeof(((a1 >> (64 - 1)) == 0) ? 1 : 0), __extension__({ - if ((a1 >> (64 - 1)) == 0) - ; - else - __assert_fail("(a1 >> (W_TYPE_SIZE - 1)) == 0", "src/factor.c", 993, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof(((b1 >> (64 - 1)) == 0) ? 1 : 0), __extension__({ - if ((b1 >> (64 - 1)) == 0) - ; - else - __assert_fail("(b1 >> (W_TYPE_SIZE - 1)) == 0", "src/factor.c", 994, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof(((m1 >> (64 - 1)) == 0) ? 1 : 0), __extension__({ - if ((m1 >> (64 - 1)) == 0) - ; - else - __assert_fail("(m1 >> (W_TYPE_SIZE - 1)) == 0", "src/factor.c", 995, - __extension__ __PRETTY_FUNCTION__); - })); - __asm__("mulq\t%3" - : "=a"(t0), "=d"(t1) - : "%0"((UDItype)(a0)), "rm"((UDItype)(b0))); - __asm__("mulq\t%3" - : "=a"(r0), "=d"(r1) - : "%0"((UDItype)(a0)), "rm"((UDItype)(b1))); - q = mi * t0; - __asm__("mulq\t%3" - : "=a"(p0), "=d"(p1) - : "%0"((UDItype)(q)), "rm"((UDItype)(m0))); - __asm__("mulq\t%3" - : "=a"(s0), "=d"(s1) - : "%0"((UDItype)(q)), "rm"((UDItype)(m1))); - r0 += (t0 != 0); - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"(r1), "=&r"(r0) - : "0"((UDItype)(r1)), "rme"((UDItype)(0)), "%1"((UDItype)(r0)), - "rme"((UDItype)(p1))); - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"(r1), "=&r"(r0) - : "0"((UDItype)(r1)), "rme"((UDItype)(0)), "%1"((UDItype)(r0)), - "rme"((UDItype)(t1))); - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"(r1), "=&r"(r0) - : "0"((UDItype)(r1)), "rme"((UDItype)(s1)), "%1"((UDItype)(r0)), - "rme"((UDItype)(s0))); - __asm__("mulq\t%3" - : "=a"(t0), "=d"(t1) - : "%0"((UDItype)(a1)), "rm"((UDItype)(b0))); - __asm__("mulq\t%3" - : "=a"(s0), "=d"(s1) - : "%0"((UDItype)(a1)), "rm"((UDItype)(b1))); - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"(t1), "=&r"(t0) - : "0"((UDItype)(t1)), "rme"((UDItype)(0)), "%1"((UDItype)(t0)), - "rme"((UDItype)(r0))); - q = mi * t0; - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"(r1), "=&r"(r0) - : "0"((UDItype)(s1)), "rme"((UDItype)(0)), "%1"((UDItype)(s0)), - "rme"((UDItype)(r1))); - __asm__("mulq\t%3" - : "=a"(p0), "=d"(p1) - : "%0"((UDItype)(q)), "rm"((UDItype)(m0))); - __asm__("mulq\t%3" - : "=a"(s0), "=d"(s1) - : "%0"((UDItype)(q)), "rm"((UDItype)(m1))); - r0 += (t0 != 0); - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"(r1), "=&r"(r0) - : "0"((UDItype)(r1)), "rme"((UDItype)(0)), "%1"((UDItype)(r0)), - "rme"((UDItype)(p1))); - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"(r1), "=&r"(r0) - : "0"((UDItype)(r1)), "rme"((UDItype)(0)), "%1"((UDItype)(r0)), - "rme"((UDItype)(t1))); - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"(r1), "=&r"(r0) - : "0"((UDItype)(r1)), "rme"((UDItype)(s1)), "%1"((UDItype)(r0)), - "rme"((UDItype)(s0))); - - if (((r1) > (m1) || ((r1) == (m1) && (r0) >= (m0)))) - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(r1), "=&r"(r0) - : "0"((UDItype)(r1)), "rme"((UDItype)(m1)), "1"((UDItype)(r0)), - "rme"((UDItype)(m0))); - - *r1p = r1; - return r0; -} - -__attribute__((__const__)) static uintmax_t -powm(uintmax_t b, uintmax_t e, uintmax_t n, uintmax_t ni, uintmax_t one) { - uintmax_t y = one; - - if (e & 1) - y = b; - - while (e != 0) { - b = mulredc(b, b, n, ni); - e >>= 1; - - if (e & 1) - y = mulredc(y, b, n, ni); - } - - return y; -} - -static uintmax_t powm2(uintmax_t *r1m, const uintmax_t *bp, const uintmax_t *ep, - const uintmax_t *np, uintmax_t ni, - const uintmax_t *one) { - uintmax_t r1, r0, b1, b0, n1, n0; - unsigned int i; - uintmax_t e; - - b0 = bp[0]; - b1 = bp[1]; - n0 = np[0]; - n1 = np[1]; - - r0 = one[0]; - r1 = one[1]; - - for (e = ep[0], i = 64; i > 0; i--, e >>= 1) { - if (e & 1) { - r0 = mulredc2(r1m, r1, r0, b1, b0, n1, n0, ni); - r1 = *r1m; - } - b0 = mulredc2(r1m, b1, b0, b1, b0, n1, n0, ni); - b1 = *r1m; - } - for (e = ep[1]; e > 0; e >>= 1) { - if (e & 1) { - r0 = mulredc2(r1m, r1, r0, b1, b0, n1, n0, ni); - r1 = *r1m; - } - b0 = mulredc2(r1m, b1, b0, b1, b0, n1, n0, ni); - b1 = *r1m; - } - *r1m = r1; - return r0; -} - -__attribute__((__const__)) static _Bool - -millerrabin(uintmax_t n, uintmax_t ni, uintmax_t b, uintmax_t q, unsigned int k, - uintmax_t one) { - uintmax_t y = powm(b, q, n, ni, one); - - uintmax_t nm1 = n - one; - - if (y == one || y == nm1) - return 1; - - for (unsigned int i = 1; i < k; i++) { - y = mulredc(y, y, n, ni); - - if (y == nm1) - return 1; - if (y == one) - return 0; - } - return 0; -} - -__attribute__((__pure__)) static _Bool - -millerrabin2(const uintmax_t *np, uintmax_t ni, const uintmax_t *bp, - const uintmax_t *qp, unsigned int k, const uintmax_t *one) { - uintmax_t y1, y0, nm1_1, nm1_0, r1m; - - y0 = powm2(&r1m, bp, qp, np, ni, one); - y1 = r1m; - - if (y0 == one[0] && y1 == one[1]) - return 1; - - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(nm1_1), "=&r"(nm1_0) - : "0"((UDItype)(np[1])), "rme"((UDItype)(one[1])), - "1"((UDItype)(np[0])), "rme"((UDItype)(one[0]))); - - if (y0 == nm1_0 && y1 == nm1_1) - return 1; - - for (unsigned int i = 1; i < k; i++) { - y0 = mulredc2(&r1m, y1, y0, y1, y0, np[1], np[0], ni); - y1 = r1m; - - if (y0 == nm1_0 && y1 == nm1_1) - return 1; - if (y0 == one[0] && y1 == one[1]) - return 0; - } - return 0; -} - -static _Bool - -mp_millerrabin(mpz_srcptr n, mpz_srcptr nm1, mpz_ptr x, mpz_ptr y, mpz_srcptr q, - unsigned long int k) { - - __gmpz_powm(y, x, q, n); - - if ((__builtin_constant_p(1) && (1) == 0 - ? ((y)->_mp_size < 0 ? -1 : (y)->_mp_size > 0) - : __gmpz_cmp_ui(y, 1)) == 0 || - __gmpz_cmp(y, nm1) == 0) - return 1; - - for (unsigned long int i = 1; i < k; i++) { - - __gmpz_powm_ui(y, y, 2, n); - if (__gmpz_cmp(y, nm1) == 0) - return 1; - if ((__builtin_constant_p(1) && (1) == 0 - ? ((y)->_mp_size < 0 ? -1 : (y)->_mp_size > 0) - : __gmpz_cmp_ui(y, 1)) == 0) - return 0; - } - return 0; -} - -static _Bool - -prime_p(uintmax_t n) { - int k; - - _Bool is_prime; - uintmax_t a_prim, one, ni; - struct factors factors; - - if (n <= 1) - return 0; - - if (n < (uintmax_t)5003 * 5003) - return 1; - - uintmax_t q = n - 1; - for (k = 0; (q & 1) == 0; k++) - q >>= 1; - - uintmax_t a = 2; - do { - uintmax_t __n = (n); - uintmax_t __inv; - __inv = binvert_table[(__n / 2) & 0x7F]; - if (64 > 8) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 16) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 32) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 64) { - int __invbits = 64; - do { - __inv = 2 * __inv - __inv * __inv * __n; - __invbits *= 2; - } while (__invbits < 64); - } - (ni) = __inv; - } while (0); - do { - uintmax_t _redcify_q; - do { - uintmax_t __d1, __d0, __q, __r1, __r0; - ((void)sizeof(((1) < (n)) ? 1 : 0), __extension__({ - if ((1) < (n)) - ; - else - __assert_fail("(1) < (n)", "src/factor.c", 1214, - __extension__ __PRETTY_FUNCTION__); - })); - __d1 = (n); - __d0 = 0; - __r1 = (1); - __r0 = (0); - __q = 0; - for (unsigned int __i = 64; __i > 0; __i--) { - do { - (__d0) = ((__d1) << (64 - (1))) | ((__d0) >> (1)); - (__d1) = (__d1) >> (1); - } while (0); - __q <<= 1; - if (((__r1) > (__d1) || ((__r1) == (__d1) && (__r0) >= (__d0)))) { - __q++; - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(__r1), "=&r"(__r0) - : "0"((UDItype)(__r1)), "rme"((UDItype)(__d1)), - "1"((UDItype)(__r0)), "rme"((UDItype)(__d0))); - } - } - (one) = __r0; - (_redcify_q) = __q; - } while (0); - } while (0); - do { - uintmax_t _t = -(uintmax_t)((one) < ((n) - (one))); - ((a_prim)) = (((n)) & _t) + ((one)) - (((n) - (one))); - } while (0); - - if (!millerrabin(n, ni, a_prim, q, k, one)) - return 0; - - if (flag_prove_primality) { - - factor(0, n - 1, &factors); - } - - for (unsigned int r = 0; - r < (sizeof(primes_diff) / sizeof(primes_diff[0]) - 8 + 1); r++) { - if (flag_prove_primality) { - is_prime = 1; - for (unsigned int i = 0; i < factors.nfactors && is_prime; i++) { - is_prime = powm(a_prim, (n - 1) / factors.p[i], n, ni, one) != one; - } - } else { - - is_prime = (r == 25 - 1); - } - - if (is_prime) - return 1; - - a += primes_diff[r]; - - { - uintmax_t s1, s0; - __asm__("mulq\t%3" - : "=a"(s0), "=d"(s1) - : "%0"((UDItype)(one)), "rm"((UDItype)(a))); - if (__builtin_expect((s1 == 0), 1)) - a_prim = s0 % n; - else { - uintmax_t dummy; - do { - uintmax_t __d1, __d0, __q, __r1, __r0; - ((void)sizeof(((s1) < (n)) ? 1 : 0), __extension__({ - if ((s1) < (n)) - ; - else - __assert_fail("(s1) < (n)", "src/factor.c", 1262, - __extension__ __PRETTY_FUNCTION__); - })); - __d1 = (n); - __d0 = 0; - __r1 = (s1); - __r0 = (s0); - __q = 0; - for (unsigned int __i = 64; __i > 0; __i--) { - do { - (__d0) = ((__d1) << (64 - (1))) | ((__d0) >> (1)); - (__d1) = (__d1) >> (1); - } while (0); - __q <<= 1; - if (((__r1) > (__d1) || ((__r1) == (__d1) && (__r0) >= (__d0)))) { - __q++; - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(__r1), "=&r"(__r0) - : "0"((UDItype)(__r1)), "rme"((UDItype)(__d1)), - "1"((UDItype)(__r0)), "rme"((UDItype)(__d0))); - } - } - (a_prim) = __r0; - (dummy) = __q; - } while (0); - } - } - - if (!millerrabin(n, ni, a_prim, q, k, one)) - return 0; - } - - error(0, 0, - dcgettext(((void *)0), - "Lucas prime test failure. This should not happen", 5)); - abort(); -} - -static _Bool - -prime2_p(uintmax_t n1, uintmax_t n0) { - uintmax_t q[2], nm1[2]; - uintmax_t a_prim[2]; - uintmax_t one[2]; - uintmax_t na[2]; - uintmax_t ni; - unsigned int k; - struct factors factors; - - if (n1 == 0) - return prime_p(n0); - - nm1[1] = n1 - (n0 == 0); - nm1[0] = n0 - 1; - if (nm1[0] == 0) { - do { - ; - __asm__("bsf\t%1, %q0" : "=r"(k) : "rm"((UDItype)(nm1[1]))); - } while (0); - - q[0] = nm1[1] >> k; - q[1] = 0; - k += 64; - } else { - do { - ; - __asm__("bsf\t%1, %q0" : "=r"(k) : "rm"((UDItype)(nm1[0]))); - } while (0); - do { - (q[0]) = ((nm1[1]) << (64 - (k))) | ((nm1[0]) >> (k)); - (q[1]) = (nm1[1]) >> (k); - } while (0); - } - - uintmax_t a = 2; - do { - uintmax_t __n = (n0); - uintmax_t __inv; - __inv = binvert_table[(__n / 2) & 0x7F]; - if (64 > 8) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 16) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 32) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 64) { - int __invbits = 64; - do { - __inv = 2 * __inv - __inv * __inv * __n; - __invbits *= 2; - } while (__invbits < 64); - } - (ni) = __inv; - } while (0); - do { - uintmax_t _r1, _r0, _i; - if ((1) < (n1)) { - _r1 = (1); - _r0 = 0; - _i = 64; - } else { - _r1 = 0; - _r0 = (1); - _i = 2 * 64; - } - while (_i-- > 0) { - do { - (_r1) = ((_r1) << 1) | ((_r0) >> (64 - (1))); - (_r0) = (_r0) << (1); - } while (0); - if (((_r1) > ((n1)) || ((_r1) == ((n1)) && (_r0) >= ((n0))))) - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(_r1), "=&r"(_r0) - : "0"((UDItype)(_r1)), "rme"((UDItype)((n1))), - "1"((UDItype)(_r0)), "rme"((UDItype)((n0)))); - } - (one[1]) = _r1; - (one[0]) = _r0; - } while (0); - do { - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"((a_prim[1])), "=&r"((a_prim[0])) - : "0"((UDItype)((one[1]))), "rme"((UDItype)((one[1]))), - "%1"((UDItype)((one[0]))), "rme"((UDItype)((one[0])))); - if ((((a_prim[1])) > ((n1)) || - (((a_prim[1])) == ((n1)) && ((a_prim[0])) >= ((n0))))) - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"((a_prim[1])), "=&r"((a_prim[0])) - : "0"((UDItype)((a_prim[1]))), "rme"((UDItype)((n1))), - "1"((UDItype)((a_prim[0]))), "rme"((UDItype)((n0)))); - } while (0); - - na[0] = n0; - na[1] = n1; - - if (!millerrabin2(na, ni, a_prim, q, k, one)) - return 0; - - if (flag_prove_primality) { - - factor(nm1[1], nm1[0], &factors); - } - - for (unsigned int r = 0; - r < (sizeof(primes_diff) / sizeof(primes_diff[0]) - 8 + 1); r++) { - - _Bool is_prime; - uintmax_t e[2], y[2]; - - if (flag_prove_primality) { - is_prime = 1; - if (factors.plarge[1]) { - uintmax_t pi; - do { - uintmax_t __n = (factors.plarge[0]); - uintmax_t __inv; - __inv = binvert_table[(__n / 2) & 0x7F]; - if (64 > 8) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 16) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 32) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 64) { - int __invbits = 64; - do { - __inv = 2 * __inv - __inv * __inv * __n; - __invbits *= 2; - } while (__invbits < 64); - } - (pi) = __inv; - } while (0); - e[0] = pi * nm1[0]; - e[1] = 0; - y[0] = powm2(&y[1], a_prim, e, na, ni, one); - is_prime = (y[0] != one[0] || y[1] != one[1]); - } - for (unsigned int i = 0; i < factors.nfactors && is_prime; i++) { - - if (factors.p[i] == 2) - do { - (e[0]) = ((nm1[1]) << (64 - (1))) | ((nm1[0]) >> (1)); - (e[1]) = (nm1[1]) >> (1); - } while (0); - else - do { - uintmax_t _di, _q0; - do { - uintmax_t __n = ((factors.p[i])); - uintmax_t __inv; - __inv = binvert_table[(__n / 2) & 0x7F]; - if (64 > 8) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 16) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 32) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 64) { - int __invbits = 64; - do { - __inv = 2 * __inv - __inv * __inv * __n; - __invbits *= 2; - } while (__invbits < 64); - } - (_di) = __inv; - } while (0); - _q0 = (nm1[0]) * _di; - if ((nm1[1]) >= (factors.p[i])) { - uintmax_t _p1; - intmax_t _p0; - __asm__("mulq\t%3" - : "=a"(_p0), "=d"(_p1) - : "%0"((UDItype)(_q0)), "rm"((UDItype)(factors.p[i]))); - (e[1]) = ((nm1[1]) - _p1) * _di; - (e[0]) = _q0; - } else { - (e[0]) = _q0; - (e[1]) = 0; - } - } while (0); - y[0] = powm2(&y[1], a_prim, e, na, ni, one); - is_prime = (y[0] != one[0] || y[1] != one[1]); - } - } else { - - is_prime = (r == 25 - 1); - } - - if (is_prime) - return 1; - - a += primes_diff[r]; - do { - uintmax_t _r1, _r0, _i; - if ((a) < (n1)) { - _r1 = (a); - _r0 = 0; - _i = 64; - } else { - _r1 = 0; - _r0 = (a); - _i = 2 * 64; - } - while (_i-- > 0) { - do { - (_r1) = ((_r1) << 1) | ((_r0) >> (64 - (1))); - (_r0) = (_r0) << (1); - } while (0); - if (((_r1) > ((n1)) || ((_r1) == ((n1)) && (_r0) >= ((n0))))) - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(_r1), "=&r"(_r0) - : "0"((UDItype)(_r1)), "rme"((UDItype)((n1))), - "1"((UDItype)(_r0)), "rme"((UDItype)((n0)))); - } - (a_prim[1]) = _r1; - (a_prim[0]) = _r0; - } while (0); - - if (!millerrabin2(na, ni, a_prim, q, k, one)) - return 0; - } - - error(0, 0, - dcgettext(((void *)0), - "Lucas prime test failure. This should not happen", 5)); - abort(); -} - -static _Bool - -mp_prime_p(mpz_t n) { - - _Bool is_prime; - mpz_t q, a, nm1, tmp; - struct mp_factors factors; - - if ((__builtin_constant_p(1) && (1) == 0 - ? ((n)->_mp_size < 0 ? -1 : (n)->_mp_size > 0) - : __gmpz_cmp_ui(n, 1)) <= 0) - return 0; - - if ((__builtin_constant_p((long)5003 * 5003) && ((long)5003 * 5003) == 0 - ? ((n)->_mp_size < 0 ? -1 : (n)->_mp_size > 0) - : __gmpz_cmp_ui(n, (long)5003 * 5003)) < 0) - return 1; - - __gmpz_inits(q, a, nm1, tmp, ((void *)0)); - - __gmpz_sub_ui(nm1, n, 1); - - unsigned long int k = __gmpz_scan1(nm1, 0); - - __gmpz_tdiv_q_2exp(q, nm1, k); - - __gmpz_set_ui(a, 2); - - if (!mp_millerrabin(n, nm1, a, tmp, q, k)) { - is_prime = 0; - goto ret2; - } - - if (flag_prove_primality) { - - __gmpz_set(tmp, nm1); - mp_factor(tmp, &factors); - } - - for (unsigned int r = 0; - r < (sizeof(primes_diff) / sizeof(primes_diff[0]) - 8 + 1); r++) { - if (flag_prove_primality) { - is_prime = 1; - for (unsigned long int i = 0; i < factors.nfactors && is_prime; i++) { - - __gmpz_divexact(tmp, nm1, factors.p[i]); - - __gmpz_powm(tmp, a, tmp, n); - is_prime = (__builtin_constant_p(1) && (1) == 0 - ? ((tmp)->_mp_size < 0 ? -1 : (tmp)->_mp_size > 0) - : __gmpz_cmp_ui(tmp, 1)) != 0; - } - } else { - - is_prime = (r == 25 - 1); - } - - if (is_prime) - goto ret1; - - __gmpz_add_ui(a, a, primes_diff[r]); - - if (!mp_millerrabin(n, nm1, a, tmp, q, k)) { - is_prime = 0; - goto ret1; - } - } - - error(0, 0, - dcgettext(((void *)0), - "Lucas prime test failure. This should not happen", 5)); - abort(); - -ret1: - if (flag_prove_primality) - mp_factor_clear(&factors); -ret2: - - __gmpz_clears(q, a, nm1, tmp, ((void *)0)); - - return is_prime; -} - -static void factor_using_pollard_rho(uintmax_t n, unsigned long int a, - struct factors *factors) { - uintmax_t x, z, y, P, t, ni, g; - - unsigned long int k = 1; - unsigned long int l = 1; - - do { - uintmax_t _redcify_q; - do { - uintmax_t __d1, __d0, __q, __r1, __r0; - ((void)sizeof(((1) < (n)) ? 1 : 0), __extension__({ - if ((1) < (n)) - ; - else - __assert_fail("(1) < (n)", "src/factor.c", 1466, - __extension__ __PRETTY_FUNCTION__); - })); - __d1 = (n); - __d0 = 0; - __r1 = (1); - __r0 = (0); - __q = 0; - for (unsigned int __i = 64; __i > 0; __i--) { - do { - (__d0) = ((__d1) << (64 - (1))) | ((__d0) >> (1)); - (__d1) = (__d1) >> (1); - } while (0); - __q <<= 1; - if (((__r1) > (__d1) || ((__r1) == (__d1) && (__r0) >= (__d0)))) { - __q++; - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(__r1), "=&r"(__r0) - : "0"((UDItype)(__r1)), "rme"((UDItype)(__d1)), - "1"((UDItype)(__r0)), "rme"((UDItype)(__d0))); - } - } - (P) = __r0; - (_redcify_q) = __q; - } while (0); - } while (0); - do { - uintmax_t _t = -(uintmax_t)((P) < ((n) - (P))); - ((x)) = (((n)) & _t) + ((P)) - (((n) - (P))); - } while (0); - y = z = x; - - while (n != 1) { - - ((void)sizeof((a < n) ? 1 : 0), __extension__({ - if (a < n) - ; - else - __assert_fail("a < n", "src/factor.c", 1472, - __extension__ __PRETTY_FUNCTION__); - })); - - do { - uintmax_t __n = (n); - uintmax_t __inv; - __inv = binvert_table[(__n / 2) & 0x7F]; - if (64 > 8) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 16) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 32) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 64) { - int __invbits = 64; - do { - __inv = 2 * __inv - __inv * __inv * __n; - __invbits *= 2; - } while (__invbits < 64); - } - (ni) = __inv; - } while (0); - - for (;;) { - do { - x = mulredc(x, x, n, ni); - do { - uintmax_t _t = -(uintmax_t)((x) < ((n) - (a))); - ((x)) = (((n)) & _t) + ((x)) - (((n) - (a))); - } while (0); - - do { - uintmax_t _t = -(uintmax_t)(z < x); - (t) = ((n)&_t) + (z) - (x); - } while (0); - P = mulredc(P, t, n, ni); - - if (k % 32 == 1) { - if (gcd_odd(P, n) != 1) - goto factor_found; - y = x; - } - } while (--k != 0); - - z = x; - k = l; - l = 2 * l; - for (unsigned long int i = 0; i < k; i++) { - x = mulredc(x, x, n, ni); - do { - uintmax_t _t = -(uintmax_t)((x) < ((n) - (a))); - ((x)) = (((n)) & _t) + ((x)) - (((n) - (a))); - } while (0); - } - y = x; - } - - factor_found: - do { - y = mulredc(y, y, n, ni); - do { - uintmax_t _t = -(uintmax_t)((y) < ((n) - (a))); - ((y)) = (((n)) & _t) + ((y)) - (((n) - (a))); - } while (0); - - do { - uintmax_t _t = -(uintmax_t)(z < y); - (t) = ((n)&_t) + (z) - (y); - } while (0); - g = gcd_odd(t, n); - } while (g == 1); - - if (n == g) { - - factor_using_pollard_rho(n, a + 1, factors); - return; - } - - n = n / g; - - if (!prime_p(g)) - factor_using_pollard_rho(g, a + 1, factors); - else - factor_insert_multiplicity(factors, g, 1); - - if (prime_p(n)) { - factor_insert_multiplicity(factors, n, 1); - break; - } - - x = x % n; - z = z % n; - y = y % n; - } -} - -static void factor_using_pollard_rho2(uintmax_t n1, uintmax_t n0, - unsigned long int a, - struct factors *factors) { - uintmax_t x1, x0, z1, z0, y1, y0, P1, P0, t1, t0, ni, g1, g0, r1m; - - unsigned long int k = 1; - unsigned long int l = 1; - - do { - uintmax_t _r1, _r0, _i; - if ((1) < (n1)) { - _r1 = (1); - _r0 = 0; - _i = 64; - } else { - _r1 = 0; - _r0 = (1); - _i = 2 * 64; - } - while (_i-- > 0) { - do { - (_r1) = ((_r1) << 1) | ((_r0) >> (64 - (1))); - (_r0) = (_r0) << (1); - } while (0); - if (((_r1) > ((n1)) || ((_r1) == ((n1)) && (_r0) >= ((n0))))) - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(_r1), "=&r"(_r0) - : "0"((UDItype)(_r1)), "rme"((UDItype)((n1))), - "1"((UDItype)(_r0)), "rme"((UDItype)((n0)))); - } - (P1) = _r1; - (P0) = _r0; - } while (0); - do { - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"((x1)), "=&r"((x0)) - : "0"((UDItype)((P1))), "rme"((UDItype)((P1))), - "%1"((UDItype)((P0))), "rme"((UDItype)((P0)))); - if ((((x1)) > ((n1)) || (((x1)) == ((n1)) && ((x0)) >= ((n0))))) - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"((x1)), "=&r"((x0)) - : "0"((UDItype)((x1))), "rme"((UDItype)((n1))), - "1"((UDItype)((x0))), "rme"((UDItype)((n0)))); - } while (0); - y1 = z1 = x1; - y0 = z0 = x0; - - while (n1 != 0 || n0 != 1) { - do { - uintmax_t __n = (n0); - uintmax_t __inv; - __inv = binvert_table[(__n / 2) & 0x7F]; - if (64 > 8) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 16) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 32) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 64) { - int __invbits = 64; - do { - __inv = 2 * __inv - __inv * __inv * __n; - __invbits *= 2; - } while (__invbits < 64); - } - (ni) = __inv; - } while (0); - - for (;;) { - do { - x0 = mulredc2(&r1m, x1, x0, x1, x0, n1, n0, ni); - x1 = r1m; - do { - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"((x1)), "=&r"((x0)) - : "0"((UDItype)((x1))), "rme"((UDItype)((0))), - "%1"((UDItype)((x0))), "rme"((UDItype)(((uintmax_t)a)))); - if ((((x1)) > ((n1)) || (((x1)) == ((n1)) && ((x0)) >= ((n0))))) - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"((x1)), "=&r"((x0)) - : "0"((UDItype)((x1))), "rme"((UDItype)((n1))), - "1"((UDItype)((x0))), "rme"((UDItype)((n0)))); - } while (0); - - do { - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"((t1)), "=&r"((t0)) - : "0"((UDItype)((z1))), "rme"((UDItype)((x1))), - "1"((UDItype)((z0))), "rme"((UDItype)((x0)))); - if ((intmax_t)(t1) < 0) - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"((t1)), "=&r"((t0)) - : "0"((UDItype)((t1))), "rme"((UDItype)((n1))), - "%1"((UDItype)((t0))), "rme"((UDItype)((n0)))); - } while (0); - P0 = mulredc2(&r1m, P1, P0, t1, t0, n1, n0, ni); - P1 = r1m; - - if (k % 32 == 1) { - g0 = gcd2_odd(&g1, P1, P0, n1, n0); - if (g1 != 0 || g0 != 1) - goto factor_found; - y1 = x1; - y0 = x0; - } - } while (--k != 0); - - z1 = x1; - z0 = x0; - k = l; - l = 2 * l; - for (unsigned long int i = 0; i < k; i++) { - x0 = mulredc2(&r1m, x1, x0, x1, x0, n1, n0, ni); - x1 = r1m; - do { - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"((x1)), "=&r"((x0)) - : "0"((UDItype)((x1))), "rme"((UDItype)((0))), - "%1"((UDItype)((x0))), "rme"((UDItype)(((uintmax_t)a)))); - if ((((x1)) > ((n1)) || (((x1)) == ((n1)) && ((x0)) >= ((n0))))) - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"((x1)), "=&r"((x0)) - : "0"((UDItype)((x1))), "rme"((UDItype)((n1))), - "1"((UDItype)((x0))), "rme"((UDItype)((n0)))); - } while (0); - } - y1 = x1; - y0 = x0; - } - - factor_found: - do { - y0 = mulredc2(&r1m, y1, y0, y1, y0, n1, n0, ni); - y1 = r1m; - do { - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"((y1)), "=&r"((y0)) - : "0"((UDItype)((y1))), "rme"((UDItype)((0))), - "%1"((UDItype)((y0))), "rme"((UDItype)(((uintmax_t)a)))); - if ((((y1)) > ((n1)) || (((y1)) == ((n1)) && ((y0)) >= ((n0))))) - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"((y1)), "=&r"((y0)) - : "0"((UDItype)((y1))), "rme"((UDItype)((n1))), - "1"((UDItype)((y0))), "rme"((UDItype)((n0)))); - } while (0); - - do { - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"((t1)), "=&r"((t0)) - : "0"((UDItype)((z1))), "rme"((UDItype)((y1))), - "1"((UDItype)((z0))), "rme"((UDItype)((y0)))); - if ((intmax_t)(t1) < 0) - __asm__("addq %5,%q1\n\tadcq %3,%q0" - : "=r"((t1)), "=&r"((t0)) - : "0"((UDItype)((t1))), "rme"((UDItype)((n1))), - "%1"((UDItype)((t0))), "rme"((UDItype)((n0)))); - } while (0); - g0 = gcd2_odd(&g1, t1, t0, n1, n0); - } while (g1 == 0 && g0 == 1); - - if (g1 == 0) { - - do { - uintmax_t _di, _q0; - do { - uintmax_t __n = ((g0)); - uintmax_t __inv; - __inv = binvert_table[(__n / 2) & 0x7F]; - if (64 > 8) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 16) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 32) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 64) { - int __invbits = 64; - do { - __inv = 2 * __inv - __inv * __inv * __n; - __invbits *= 2; - } while (__invbits < 64); - } - (_di) = __inv; - } while (0); - _q0 = (n0)*_di; - if ((n1) >= (g0)) { - uintmax_t _p1; - intmax_t _p0; - __asm__("mulq\t%3" - : "=a"(_p0), "=d"(_p1) - : "%0"((UDItype)(_q0)), "rm"((UDItype)(g0))); - (n1) = ((n1)-_p1) * _di; - (n0) = _q0; - } else { - (n0) = _q0; - (n1) = 0; - } - } while (0); - - if (!prime_p(g0)) - factor_using_pollard_rho(g0, a + 1, factors); - else - factor_insert_multiplicity(factors, g0, 1); - } else { - - uintmax_t ginv; - - if (n1 == g1 && n0 == g0) { - - factor_using_pollard_rho2(n1, n0, a + 1, factors); - return; - } - - do { - uintmax_t __n = (g0); - uintmax_t __inv; - __inv = binvert_table[(__n / 2) & 0x7F]; - if (64 > 8) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 16) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 32) - __inv = 2 * __inv - __inv * __inv * __n; - if (64 > 64) { - int __invbits = 64; - do { - __inv = 2 * __inv - __inv * __inv * __n; - __invbits *= 2; - } while (__invbits < 64); - } - (ginv) = __inv; - } while (0); - n0 = ginv * n0; - n1 = 0; - - if (!prime2_p(g1, g0)) - factor_using_pollard_rho2(g1, g0, a + 1, factors); - else - factor_insert_large(factors, g1, g0); - } - - if (n1 == 0) { - if (prime_p(n0)) { - factor_insert_multiplicity(factors, n0, 1); - break; - } - - factor_using_pollard_rho(n0, a, factors); - return; - } - - if (prime2_p(n1, n0)) { - factor_insert_large(factors, n1, n0); - break; - } - - x0 = mod2(&x1, x1, x0, n1, n0); - z0 = mod2(&z1, z1, z0, n1, n0); - y0 = mod2(&y1, y1, y0, n1, n0); - } -} - -static void mp_factor_using_pollard_rho(mpz_t n, unsigned long int a, - struct mp_factors *factors) { - mpz_t x, z, y, P; - mpz_t t, t2; - - do { - if (dev_debug) - fprintf(stderr, "[pollard-rho (%lu)] ", a); - } while (0); - - __gmpz_inits(t, t2, ((void *)0)); - - __gmpz_init_set_si(y, 2); - - __gmpz_init_set_si(x, 2); - - __gmpz_init_set_si(z, 2); - - __gmpz_init_set_ui(P, 1); - - unsigned long long int k = 1; - unsigned long long int l = 1; - - while ((__builtin_constant_p(1) && (1) == 0 - ? ((n)->_mp_size < 0 ? -1 : (n)->_mp_size > 0) - : __gmpz_cmp_ui(n, 1)) != 0) { - for (;;) { - do { - - __gmpz_mul(t, x, x); - - __gmpz_mod(x, t, n); - - __gmpz_add_ui(x, x, a); - - __gmpz_sub(t, z, x); - - __gmpz_mul(t2, P, t); - - __gmpz_mod(P, t2, n); - - if (k % 32 == 1) { - - __gmpz_gcd(t, P, n); - if ((__builtin_constant_p(1) && (1) == 0 - ? ((t)->_mp_size < 0 ? -1 : (t)->_mp_size > 0) - : __gmpz_cmp_ui(t, 1)) != 0) - goto factor_found; - - __gmpz_set(y, x); - } - } while (--k != 0); - - __gmpz_set(z, x); - k = l; - l = 2 * l; - for (unsigned long long int i = 0; i < k; i++) { - - __gmpz_mul(t, x, x); - - __gmpz_mod(x, t, n); - - __gmpz_add_ui(x, x, a); - } - - __gmpz_set(y, x); - } - - factor_found: - do { - - __gmpz_mul(t, y, y); - - __gmpz_mod(y, t, n); - - __gmpz_add_ui(y, y, a); - - __gmpz_sub(t, z, y); - - __gmpz_gcd(t, t, n); - } while ((__builtin_constant_p(1) && (1) == 0 - ? ((t)->_mp_size < 0 ? -1 : (t)->_mp_size > 0) - : __gmpz_cmp_ui(t, 1)) == 0); - - __gmpz_divexact(n, n, t); - - if (!mp_prime_p(t)) { - do { - if (dev_debug) - fprintf(stderr, "[composite factor--restarting pollard-rho] "); - } while (0); - mp_factor_using_pollard_rho(t, a + 1, factors); - } else { - mp_factor_insert(factors, t); - } - - if (mp_prime_p(n)) { - mp_factor_insert(factors, n); - break; - } - - __gmpz_mod(x, x, n); - - __gmpz_mod(z, z, n); - - __gmpz_mod(y, y, n); - } - - __gmpz_clears(P, t2, t, z, x, y, ((void *)0)); -} -static void factor(uintmax_t t1, uintmax_t t0, struct factors *factors) { - factors->nfactors = 0; - factors->plarge[1] = 0; - - if (t1 == 0 && t0 < 2) - return; - - t0 = factor_using_division(&t1, t1, t0, factors); - - if (t1 == 0 && t0 < 2) - return; - - if (prime2_p(t1, t0)) - factor_insert_large(factors, t1, t0); - else { - - if (t1 == 0) - factor_using_pollard_rho(t0, 1, factors); - else - factor_using_pollard_rho2(t1, t0, 1, factors); - } -} - -static void mp_factor(mpz_t t, struct mp_factors *factors) { - mp_factor_init(factors); - - if (((t)->_mp_size < 0 ? -1 : (t)->_mp_size > 0) != 0) { - mp_factor_using_division(t, factors); - - if ((__builtin_constant_p(1) && (1) == 0 - ? ((t)->_mp_size < 0 ? -1 : (t)->_mp_size > 0) - : __gmpz_cmp_ui(t, 1)) != 0) { - do { - if (dev_debug) - fprintf(stderr, "[is number prime?] "); - } while (0); - if (mp_prime_p(t)) - mp_factor_insert(factors, t); - else - mp_factor_using_pollard_rho(t, 1, factors); - } - } -} - -static strtol_error strto2uintmax(uintmax_t *hip, uintmax_t *lop, - char const *s) { - unsigned int lo_carry; - uintmax_t hi = 0, lo = 0; - - strtol_error err = LONGINT_INVALID; - - char const *p = s; - for (;;) { - unsigned int c = *p++; - if (c == 0) - break; - - if (__builtin_expect((!((unsigned int)(c) - '0' <= 9)), 0)) { - err = LONGINT_INVALID; - break; - } - - err = LONGINT_OK; - } - - while (err == LONGINT_OK) { - unsigned int c = *s++; - if (c == 0) - break; - - c -= '0'; - - if (__builtin_expect((hi > ~(uintmax_t)0 / 10), 0)) { - err = LONGINT_OVERFLOW; - break; - } - hi = 10 * hi; - - lo_carry = (lo >> (64 - 3)) + (lo >> (64 - 1)); - lo_carry += 10 * lo < 2 * lo; - - lo = 10 * lo; - lo += c; - - lo_carry += lo < c; - hi += lo_carry; - if (__builtin_expect((hi < lo_carry), 0)) { - err = LONGINT_OVERFLOW; - break; - } - } - - *hip = hi; - *lop = lo; - - return err; -} - -static struct lbuf_ { - char *buf; - char *end; -} lbuf; -static void lbuf_alloc(void) { - if (lbuf.buf) - return; - - lbuf.buf = xmalloc(512 * 2); - lbuf.end = lbuf.buf; -} - -static void lbuf_flush(void) { - size_t size = lbuf.end - lbuf.buf; - if (full_write(1, lbuf.buf, size) != size) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - lbuf.end = lbuf.buf; -} - -static void lbuf_putc(char c) { - *lbuf.end++ = c; - - if (c == '\n') { - size_t buffered = lbuf.end - lbuf.buf; - - static int line_buffered = -1; - if (line_buffered == -1) - line_buffered = isatty(0) || isatty(1); - if (line_buffered) - lbuf_flush(); - else if (buffered >= 512) { - - char const *tend = lbuf.end; - - char *tlend = lbuf.buf + 512; - while (*--tlend != '\n') - ; - tlend++; - - lbuf.end = tlend; - lbuf_flush(); - - memcpy(lbuf.buf, tlend, tend - tlend); - lbuf.end = lbuf.buf + (tend - tlend); - } - } -} - -static void lbuf_putint(uintmax_t i, size_t min_width) { - char buf[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - char const *umaxstr = umaxtostr(i, buf); - size_t width = sizeof(buf) - (umaxstr - buf) - 1; - size_t z = width; - - for (; z < min_width; z++) - *lbuf.end++ = '0'; - - memcpy(lbuf.end, umaxstr, width); - lbuf.end += width; -} - -static void print_uintmaxes(uintmax_t t1, uintmax_t t0) { - uintmax_t q, r; - - if (t1 == 0) - lbuf_putint(t0, 0); - else { - - q = t1 / 1000000000; - r = t1 % 1000000000; - do { - uintmax_t __d1, __d0, __q, __r1, __r0; - ((void)sizeof(((r) < (1000000000)) ? 1 : 0), __extension__({ - if ((r) < (1000000000)) - ; - else - __assert_fail("(r) < (1000000000)", "src/factor.c", 2438, - __extension__ __PRETTY_FUNCTION__); - })); - __d1 = (1000000000); - __d0 = 0; - __r1 = (r); - __r0 = (t0); - __q = 0; - for (unsigned int __i = 64; __i > 0; __i--) { - do { - (__d0) = ((__d1) << (64 - (1))) | ((__d0) >> (1)); - (__d1) = (__d1) >> (1); - } while (0); - __q <<= 1; - if (((__r1) > (__d1) || ((__r1) == (__d1) && (__r0) >= (__d0)))) { - __q++; - __asm__("subq %5,%q1\n\tsbbq %3,%q0" - : "=r"(__r1), "=&r"(__r0) - : "0"((UDItype)(__r1)), "rme"((UDItype)(__d1)), - "1"((UDItype)(__r0)), "rme"((UDItype)(__d0))); - } - } - (r) = __r0; - (t0) = __q; - } while (0); - print_uintmaxes(q, t0); - lbuf_putint(r, 9); - } -} - -static void print_factors_single(uintmax_t t1, uintmax_t t0) { - struct factors factors; - - print_uintmaxes(t1, t0); - lbuf_putc(':'); - - factor(t1, t0, &factors); - - for (unsigned int j = 0; j < factors.nfactors; j++) - for (unsigned int k = 0; k < factors.e[j]; k++) { - lbuf_putc(' '); - print_uintmaxes(0, factors.p[j]); - } - - if (factors.plarge[1]) { - lbuf_putc(' '); - print_uintmaxes(factors.plarge[1], factors.plarge[0]); - } - - lbuf_putc('\n'); -} - -static _Bool - -print_factors(char const *input) { - - char const *str = input; - while (*str == ' ') - str++; - str += *str == '+'; - - uintmax_t t1, t0; - - strtol_error err = strto2uintmax(&t1, &t0, str); - - switch (err) { - case LONGINT_OK: - if (((t1 << 1) >> 1) == t1) { - do { - if (dev_debug) - fprintf(stderr, "[using single-precision arithmetic] "); - } while (0); - print_factors_single(t1, t0); - return 1; - } - break; - - case LONGINT_OVERFLOW: - - break; - - default: - error(0, 0, dcgettext(((void *)0), "%s is not a valid positive integer", 5), - quote(input)); - return 0; - } - - do { - if (dev_debug) - fprintf(stderr, "[using arbitrary-precision arithmetic] "); - } while (0); - mpz_t t; - struct mp_factors factors; - - __gmpz_init_set_str(t, str, 10); - - __gmpz_out_str(stdout, 10, t); - putchar_unlocked(':'); - mp_factor(t, &factors); - - for (unsigned int j = 0; j < factors.nfactors; j++) - for (unsigned int k = 0; k < factors.e[j]; k++) { - putchar_unlocked(' '); - - __gmpz_out_str(stdout, 10, factors.p[j]); - } - - mp_factor_clear(&factors); - - __gmpz_clear(t); - putchar_unlocked('\n'); - fflush_unlocked(stdout); - return 1; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext(((void *)0), "Usage: %s [NUMBER]...\n or: %s OPTION\n", 5) - - , - program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Print the prime factors of each specified " - "integer NUMBER. If none\nare specified on the " - "command line, read them from standard input.\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("factor"); - } - exit(status); -} - -static _Bool - -do_stdin(void) { - - _Bool ok = 1; - token_buffer tokenbuffer; - - init_tokenbuffer(&tokenbuffer); - - while (1) { - size_t token_length = - readtoken(stdin, "\n\t ", sizeof("\n\t ") - 1, &tokenbuffer); - if (token_length == (size_t)-1) - break; - ok &= print_factors(tokenbuffer.buffer); - } - free(tokenbuffer.buffer); - - return ok; -} - -int main(int argc, char **argv) { - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - lbuf_alloc(); - atexit(close_stdout); - atexit(lbuf_flush); - - int c; - while ((c = getopt_long(argc, argv, "", long_options, ((void *)0))) != -1) { - switch (c) { - case DEV_DEBUG_OPTION: - dev_debug = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc( - stdout, "factor", "GNU coreutils", Version, ("Paul Rubin"), - proper_name_utf8("Torbjorn Granlund", "Torbj\303\266rn Granlund"), - proper_name_utf8("Niels Moller", "Niels M\303\266ller"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - _Bool ok; - if (argc <= optind) - ok = do_stdin(); - else { - ok = 1; - for (int i = optind; i < argc; i++) - if (!print_factors(argv[i])) - ok = 0; - } - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/false.c b/tests/source/coreutils/false.c deleted file mode 100644 index 2950074..0000000 --- a/tests/source/coreutils/false.c +++ /dev/null @@ -1,6788 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -void usage(int status) { - printf(dcgettext( - ((void *)0), - "Usage: %s [ignored command line arguments]\n or: %s OPTION\n", - 5) - - , - program_name, program_name); - printf("%s\n\n", - - dcgettext(((void *)0), - 1 == 0 ? "Exit with a status code indicating success." - : "Exit with a status code indicating failure.", - 5) - - ); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", 5), - stdout); - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your shell's " - "documentation\n" - "for details about the options it supports.\n", - 5), - "false"); - emit_ancillary_info("false"); - exit(status); -} - -int main(int argc, char **argv) { - - if (argc == 2) { - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - if ((strcmp(argv[1], "--help") == 0)) - usage(1); - - if ((strcmp(argv[1], "--version") == 0)) - version_etc(stdout, "false", "GNU coreutils", Version, ("Jim Meyering"), - (char *)((void *)0)); - } - - return 1; -} diff --git a/tests/source/coreutils/find-mount-point.c b/tests/source/coreutils/find-mount-point.c deleted file mode 100644 index 73e91a3..0000000 --- a/tests/source/coreutils/find-mount-point.c +++ /dev/null @@ -1,6872 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct saved_cwd { - int desc; - char *name; -}; - -int save_cwd(struct saved_cwd *cwd); -int restore_cwd(const struct saved_cwd *cwd); -void free_cwd(struct saved_cwd *cwd); - -extern char *xgetcwd(void) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -extern char *find_mount_point(char const *, struct stat const *) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__nonnull__)); - -extern char *find_mount_point(char const *file, struct stat const *file_stat) { - struct saved_cwd cwd; - struct stat last_stat; - char *mp = ((void *)0); - - if (save_cwd(&cwd) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot get current directory", 5)); - return ((void *)0); - } - - if (((((file_stat->st_mode)) & 0170000) == (0040000))) - - { - last_stat = *file_stat; - if (chdir(file) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot change to directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - return ((void *)0); - } - } else - - { - char *xdir = dir_name(file); - char *dir; - do { - dir = (__extension__({ - const char *__old = (xdir); - size_t __len = strlen(__old) + 1; - char *__new = (char *)__builtin_alloca(__len); - (char *)memcpy(__new, __old, __len); - })); - } while (0); - free(xdir); - - if (chdir(dir) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot change to directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - return ((void *)0); - } - - if (stat(".", &last_stat) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot stat current directory (now %s)", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - goto done; - } - } - - while (1) { - struct stat st; - if (stat("..", &st) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, "..")); - goto done; - } - if (st.st_dev != last_stat.st_dev || st.st_ino == last_stat.st_ino) - - break; - if (chdir("..") < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot change to directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, "..")); - goto done; - } - last_stat = st; - } - - mp = xgetcwd(); - -done : - -{ - int save_errno = (*__errno_location()); - if (restore_cwd(&cwd) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed " - "to return to initial working directory\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to return to initial working directory", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to return to initial working directory", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - free_cwd(&cwd); - - (*__errno_location()) = save_errno; -} - - return mp; -} diff --git a/tests/source/coreutils/fmt.c b/tests/source/coreutils/fmt.c deleted file mode 100644 index 984d407..0000000 --- a/tests/source/coreutils/fmt.c +++ /dev/null @@ -1,8106 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -inline _Bool - -c_isalnum(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isalpha(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isascii(int c) { - switch (c) { - case ' ': - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_isblank(int c) { - return c == ' ' || c == '\t'; -} - -inline _Bool - -c_iscntrl(int c) { - switch (c) { - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isgraph(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_islower(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isprint(int c) { - switch (c) { - case ' ': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_ispunct(int c) { - switch (c) { - case '!': - case '"': - case ' return 1; default: - return 0; - } -} - -inline _Bool - -c_isspace(int c) { - switch (c) { - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isupper(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isxdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline int c_tolower(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return c - 'A' + 'a'; - default: - return c; - } -} - -inline int c_toupper(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return c - 'a' + 'A'; - default: - return c; - } -} - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char unused_word_type; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof unused_word_type - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&unused_word_type, p, sizeof unused_word_type); - if (unused_word_type) - return 0; - p += sizeof unused_word_type; - length -= sizeof unused_word_type; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -typedef long int COST; -typedef struct Word WORD; - -struct Word { - - char const *text; - int length; - int space; - unsigned int paren : 1; - unsigned int period : 1; - unsigned int punct : 1; - unsigned int final : 1; - - int line_length; - COST best_cost; - WORD *next_break; -}; - -static void set_prefix(char *p); -static _Bool fmt(FILE *f, char const *); -static _Bool get_paragraph(FILE *f); -static int get_line(FILE *f, int c); -static int get_prefix(FILE *f); -static int get_space(FILE *f, int c); -static int copy_rest(FILE *f, int c); -static _Bool same_para(int c); -static void flush_paragraph(void); -static void fmt_paragraph(void); -static void check_punctuation(WORD *w); -static COST base_cost(WORD *this); -static COST line_cost(WORD *next, int len); -static void put_paragraph(WORD *finish); -static void put_line(WORD *w, int indent); -static void put_word(WORD *w); -static void put_space(int space); - -static _Bool crown; - -static _Bool tagged; - -static _Bool split; - -static _Bool uniform; - -static char const *prefix; - -static int max_width; - -static int prefix_full_length; - -static int prefix_lead_space; - -static int prefix_length; - -static int goal_width; - -static int in_column; - -static int out_column; - -static char parabuf[5000]; - -static char *wptr; - -static WORD unused_word_type[1000]; - -static WORD *word_limit; - -static _Bool tabs; - -static int prefix_indent; - -static int first_indent; - -static int other_indent; -static int next_char; - -static int next_prefix_indent; - -static int last_line_length; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext(((void *)0), "Usage: %s [-WIDTH] [OPTION]... [FILE]...\n", 5), - program_name); - fputs_unlocked(dcgettext(((void *)0), - "Reformat each paragraph in the FILE(s), writing " - "to standard output.\nThe option -WIDTH is an " - "abbreviated form of --width=DIGITS.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -c, --crown-margin preserve indentation of first " - "two lines\n -p, --prefix=STRING reformat only lines " - "beginning with STRING,\n " - "reattaching the prefix to reformatted lines\n -s, " - "--split-only split long lines, but do not refill\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " -t, --tagged-paragraph indentation of first line different " - "from second\n -u, --uniform-spacing one space between words, " - "two after sentences\n -w, --width=WIDTH maximum line " - "width (default of 75 columns)\n -g, --goal=WIDTH goal " - "width (default of 93% of width)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("fmt"); - } - exit(status); -} - -static struct option const long_options[] = { - {"crown-margin", 0, ((void *)0), 'c'}, - {"prefix", 1, ((void *)0), 'p'}, - {"split-only", 0, ((void *)0), 's'}, - {"tagged-paragraph", 0, ((void *)0), 't'}, - {"uniform-spacing", 0, ((void *)0), 'u'}, - {"width", 1, ((void *)0), 'w'}, - {"goal", 1, ((void *)0), 'g'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}, -}; - -int main(int argc, char **argv) { - int optchar; - - _Bool ok = 1; - char const *max_width_option = ((void *)0); - char const *goal_width_option = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - crown = tagged = split = uniform = 0; - max_width = 75; - prefix = ""; - prefix_length = prefix_lead_space = prefix_full_length = 0; - - if (argc > 1 && argv[1][0] == '-' && - ((unsigned int)(argv[1][1]) - '0' <= 9)) { - - max_width_option = argv[1] + 1; - - argv[1] = argv[0]; - argv++; - argc--; - } - - while ((optchar = getopt_long(argc, argv, "0123456789cstuw:p:g:", - long_options, ((void *)0))) != -1) - switch (optchar) { - default: - if (((unsigned int)(optchar) - '0' <= 9)) - error(0, 0, - dcgettext(((void *)0), - "invalid option -- %c; -WIDTH is recognized only when " - "it is the first\noption; use -w N instead", - 5) - - , - optchar); - usage(1); - - case 'c': - crown = 1; - break; - - case 's': - split = 1; - break; - - case 't': - tagged = 1; - break; - - case 'u': - uniform = 1; - break; - - case 'w': - max_width_option = optarg; - break; - - case 'g': - goal_width_option = optarg; - break; - - case 'p': - set_prefix(optarg); - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "fmt", "GNU coreutils", Version, ("Ross Paterson"), - (char *)((void *)0)); - exit(0); - break; - ; - } - - if (max_width_option) { - - max_width = xdectoumax(max_width_option, 0, 5000 / 2, "", - - dcgettext(((void *)0), "invalid width", 5), 0); - } - - if (goal_width_option) { - - goal_width = xdectoumax(goal_width_option, 0, max_width, "", - - dcgettext(((void *)0), "invalid width", 5), 0); - if (max_width_option == ((void *)0)) - max_width = goal_width + 10; - } else { - goal_width = max_width * (2 * (100 - 7) + 1) / 200; - } - - _Bool have_read_stdin = 0; - - if (optind == argc) { - have_read_stdin = 1; - ok = fmt(stdin, "-"); - } else { - for (; optind < argc; optind++) { - char *file = argv[optind]; - if ((strcmp(file, "-") == 0)) { - ok &= fmt(stdin, file); - have_read_stdin = 1; - } else { - FILE *in_stream; - in_stream = fopen(file, "r"); - if (in_stream != ((void *)0)) - ok &= fmt(in_stream, file); - else { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - ok = 0; - } - } - } - } - - if (have_read_stdin && rpl_fclose(stdin) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", dcgettext (((void " - "*)0), \"closing standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "closing standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "closing standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} - -static void set_prefix(char *p) { - char *s; - - prefix_lead_space = 0; - while (*p == ' ') { - prefix_lead_space++; - p++; - } - prefix = p; - prefix_full_length = strlen(p); - s = p + prefix_full_length; - while (s > p && s[-1] == ' ') - s--; - *s = '\0'; - prefix_length = s - p; -} - -static _Bool - -fmt(FILE *f, char const *file) { - fadvise(f, FADVISE_SEQUENTIAL); - tabs = 0; - other_indent = 0; - next_char = get_prefix(f); - while (get_paragraph(f)) { - fmt_paragraph(); - put_paragraph(word_limit); - } - - int err = ferror_unlocked(f) ? 0 : -1; - if (f == stdin) - clearerr_unlocked(f); - else if (rpl_fclose(f) != 0 && err < 0) - err = (*__errno_location()); - if (0 <= err) - error(0, err, err ? "%s" : dcgettext(((void *)0), "read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return err < 0; -} - -static void set_other_indent(_Bool same_paragraph) { - if (split) - other_indent = first_indent; - else if (crown) { - other_indent = (same_paragraph ? in_column : first_indent); - } else if (tagged) { - if (same_paragraph && in_column != first_indent) { - other_indent = in_column; - } - - else if (other_indent == first_indent) - other_indent = first_indent == 0 ? 3 : 0; - } else { - other_indent = first_indent; - } -} -static _Bool - -get_paragraph(FILE *f) { - int c; - - last_line_length = 0; - c = next_char; - - while (c == '\n' || c == (-1) - - || next_prefix_indent < prefix_lead_space || - in_column < next_prefix_indent + prefix_full_length) { - c = copy_rest(f, c); - if (c == (-1)) { - next_char = (-1); - return 0; - } - putchar_unlocked('\n'); - c = get_prefix(f); - } - - prefix_indent = next_prefix_indent; - first_indent = in_column; - wptr = parabuf; - word_limit = unused_word_type; - c = get_line(f, c); - set_other_indent(same_para(c)); - - if (split) { - - } else if (crown) { - if (same_para(c)) { - do { - c = get_line(f, c); - } while (same_para(c) && in_column == other_indent); - } - } else if (tagged) { - if (same_para(c) && in_column != first_indent) { - do { - c = get_line(f, c); - } while (same_para(c) && in_column == other_indent); - } - } else { - while (same_para(c) && in_column == other_indent) - c = get_line(f, c); - } - - ((void)sizeof((unused_word_type < word_limit) ? 1 : 0), __extension__({ - if (unused_word_type < word_limit) - ; - else - __assert_fail("word < word_limit", "src/fmt.c", 624, - __extension__ __PRETTY_FUNCTION__); - })); - - (word_limit - 1)->period = (word_limit - 1)->final = 1; - next_char = c; - return 1; -} - -static int copy_rest(FILE *f, int c) { - char const *s; - - out_column = 0; - if (in_column > next_prefix_indent || (c != '\n' && c != (-1))) { - put_space(next_prefix_indent); - for (s = prefix; out_column != in_column && *s; out_column++) - putchar_unlocked(*s++); - if (c != (-1) && c != '\n') - put_space(in_column - out_column); - if (c == (-1) && in_column >= next_prefix_indent + prefix_length) - putchar_unlocked('\n'); - } - while (c != '\n' && c != (-1)) { - putchar_unlocked(c); - c = getc_unlocked(f); - } - return c; -} - -static _Bool - -same_para(int c) { - return (next_prefix_indent == prefix_indent && - in_column >= next_prefix_indent + prefix_full_length && c != '\n' && - c != (-1)); -} -static int get_line(FILE *f, int c) { - int start; - char *end_of_parabuf; - WORD *end_of_word; - - end_of_parabuf = ¶buf[5000]; - end_of_word = &unused_word_type[1000 - 2]; - - do { - - word_limit->text = wptr; - do { - if (wptr == end_of_parabuf) { - set_other_indent(1); - flush_paragraph(); - } - *wptr++ = c; - c = getc_unlocked(f); - } while (c != (-1) && !c_isspace(c)); - in_column += word_limit->length = wptr - word_limit->text; - check_punctuation(word_limit); - - start = in_column; - c = get_space(f, c); - word_limit->space = in_column - start; - word_limit->final = - (c == (-1) - - || (word_limit->period && (c == '\n' || word_limit->space > 1))); - if (c == '\n' || c == (-1) || uniform) - word_limit->space = word_limit->final ? 2 : 1; - if (word_limit == end_of_word) { - set_other_indent(1); - flush_paragraph(); - } - word_limit++; - } while (c != '\n' && c != (-1)); - return get_prefix(f); -} - -static int get_prefix(FILE *f) { - int c; - - in_column = 0; - c = get_space(f, getc_unlocked(f)); - if (prefix_length == 0) - next_prefix_indent = - prefix_lead_space < in_column ? prefix_lead_space : in_column; - else { - char const *p; - next_prefix_indent = in_column; - for (p = prefix; *p != '\0'; p++) { - unsigned char pc = *p; - if (c != pc) - return c; - in_column++; - c = getc_unlocked(f); - } - c = get_space(f, c); - } - return c; -} - -static int get_space(FILE *f, int c) { - while (1) { - if (c == ' ') - in_column++; - else if (c == '\t') { - tabs = 1; - in_column = (in_column / 8 + 1) * 8; - } else - return c; - c = getc_unlocked(f); - } -} - -static void check_punctuation(WORD *w) { - char const *start = w->text; - char const *finish = start + (w->length - 1); - unsigned char fin = *finish; - - w->paren = (strchr("(['`\"", *start) != ((void *)0)); - w->punct = - !!((*__ctype_b_loc())[(int)((fin))] & (unsigned short int)_ISpunct); - while (start < finish && (strchr(")]'\"", *finish) != ((void *)0))) - finish--; - w->period = (strchr(".?!", *finish) != ((void *)0)); -} - -static void flush_paragraph(void) { - WORD *split_point; - WORD *w; - int shift; - COST best_break; - - if (word_limit == unused_word_type) { - fwrite_unlocked(parabuf, sizeof *parabuf, wptr - parabuf, stdout); - wptr = parabuf; - return; - } - - fmt_paragraph(); - - split_point = word_limit; - best_break = - ((COST)(!(!((COST)0 < (COST)-1)) - ? (COST)-1 - : ((((COST)1 << ((sizeof(COST) * 8) - 2)) - 1) * 2 + 1))); - for (w = unused_word_type->next_break; w != word_limit; w = w->next_break) { - if (w->best_cost - w->next_break->best_cost < best_break) { - split_point = w; - best_break = w->best_cost - w->next_break->best_cost; - } - if (best_break <= - ((COST)(!(!((COST)0 < (COST)-1)) - ? (COST)-1 - : ((((COST)1 << ((sizeof(COST) * 8) - 2)) - 1) * 2 + 1))) - - (((COST)(3)) * ((COST)(3)))) - best_break += (((COST)(3)) * ((COST)(3))); - } - put_paragraph(split_point); - - memmove(parabuf, split_point->text, wptr - split_point->text); - shift = split_point->text - parabuf; - wptr -= shift; - - for (w = split_point; w <= word_limit; w++) - w->text -= shift; - - memmove(unused_word_type, split_point, - (word_limit - split_point + 1) * sizeof *unused_word_type); - word_limit -= split_point - unused_word_type; -} - -static void fmt_paragraph(void) { - WORD *start, *w; - int len; - COST wcost, best; - int saved_length; - - word_limit->best_cost = 0; - saved_length = word_limit->length; - word_limit->length = max_width; - - for (start = word_limit - 1; start >= unused_word_type; start--) { - best = - ((COST)(!(!((COST)0 < (COST)-1)) - ? (COST)-1 - : ((((COST)1 << ((sizeof(COST) * 8) - 2)) - 1) * 2 + 1))); - len = start == unused_word_type ? first_indent : other_indent; - - w = start; - len += w->length; - do { - w++; - - wcost = line_cost(w, len) + w->best_cost; - if (start == unused_word_type && last_line_length > 0) - wcost += ((((COST)((len - last_line_length) * 10)) * - ((COST)((len - last_line_length) * 10))) / - 2); - if (wcost < best) { - best = wcost; - start->next_break = w; - start->line_length = len; - } - - if (w == word_limit) - break; - - len += (w - 1)->space + w->length; - } while (len < max_width); - start->best_cost = best + base_cost(start); - } - - word_limit->length = saved_length; -} - -static COST base_cost(WORD *this) { - COST cost; - - cost = (((COST)(70)) * ((COST)(70))); - - if (this > unused_word_type) { - if ((this - 1)->period) { - if ((this - 1)->final) - cost -= (((COST)(50)) * ((COST)(50))); - else - cost += (((COST)(600)) * ((COST)(600))); - } else if ((this - 1)->punct) - cost -= (((COST)(40)) * ((COST)(40))); - else if (this > unused_word_type + 1 && (this - 2)->final) - cost += ((((COST)(200)) * ((COST)(200))) / (((this - 1)->length) + 2)); - } - - if (this->paren) - cost -= (((COST)(40)) * ((COST)(40))); - else if (this->final) - cost += ((((COST)(150)) * ((COST)(150))) / ((this->length) + 2)); - - return cost; -} - -static COST line_cost(WORD *next, int len) { - int n; - COST cost; - - if (next == word_limit) - return 0; - n = goal_width - len; - cost = (((COST)((n)*10)) * ((COST)((n)*10))); - if (next->next_break != word_limit) { - n = len - next->line_length; - cost += ((((COST)((n)*10)) * ((COST)((n)*10))) / 2); - } - return cost; -} - -static void put_paragraph(WORD *finish) { - WORD *w; - - put_line(unused_word_type, first_indent); - for (w = unused_word_type->next_break; w != finish; w = w->next_break) - put_line(w, other_indent); -} - -static void put_line(WORD *w, int indent) { - WORD *endline; - - out_column = 0; - put_space(prefix_indent); - fputs_unlocked(prefix, stdout); - out_column += prefix_length; - put_space(indent - out_column); - - endline = w->next_break - 1; - for (; w != endline; w++) { - put_word(w); - put_space(w->space); - } - put_word(w); - last_line_length = out_column; - putchar_unlocked('\n'); -} - -static void put_word(WORD *w) { - char const *s; - int n; - - s = w->text; - for (n = w->length; n != 0; n--) - putchar_unlocked(*s++); - out_column += w->length; -} - -static void put_space(int space) { - int space_target, tab_target; - - space_target = out_column + space; - if (tabs) { - tab_target = space_target / 8 * 8; - if (out_column + 1 < tab_target) - while (out_column < tab_target) { - putchar_unlocked('\t'); - out_column = (out_column / 8 + 1) * 8; - } - } - while (out_column < space_target) { - putchar_unlocked(' '); - out_column++; - } -} diff --git a/tests/source/coreutils/fold.c b/tests/source/coreutils/fold.c deleted file mode 100644 index 1482c58..0000000 --- a/tests/source/coreutils/fold.c +++ /dev/null @@ -1,7082 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -static _Bool break_spaces; - -static _Bool count_bytes; - -static _Bool have_read_stdin; - -static char const shortopts[] = "bsw:0::1::2::3::4::5::6::7::8::9::"; - -static struct option const longopts[] = { - {"bytes", 0, ((void *)0), 'b'}, - {"spaces", 0, ((void *)0), 's'}, - {"width", 1, ((void *)0), 'w'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Wrap input lines in each FILE, writing to standard output.\n", 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -b, --bytes count bytes rather than columns\n " - "-s, --spaces break at spaces\n -w, --width=WIDTH " - "use WIDTH columns instead of 80\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("fold"); - } - exit(status); -} - -static size_t adjust_column(size_t column, char c) { - if (!count_bytes) { - if (c == '\b') { - if (column > 0) - column--; - } else if (c == '\r') - column = 0; - else if (c == '\t') - column += 8 - column % 8; - else - column++; - } else - column++; - return column; -} - -static _Bool - -fold_file(char const *filename, size_t width) { - FILE *istream; - int c; - size_t column = 0; - size_t offset_out = 0; - static char *line_out = ((void *)0); - static size_t allocated_out = 0; - int saved_errno; - - if ((strcmp(filename, "-") == 0)) { - istream = stdin; - have_read_stdin = 1; - } else - istream = fopen(filename, "r"); - - if (istream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - fadvise(istream, FADVISE_SEQUENTIAL); - - while ((c = getc_unlocked(istream)) != (-1)) { - if (offset_out + 1 >= allocated_out) - line_out = ((!!sizeof(struct { - _Static_assert(sizeof *(line_out) == 1, - "verify_expr (" - "sizeof *(line_out) == 1" - ", " - "x2realloc (line_out, &allocated_out)" - ")"); - int _gl_dummy; - })) - ? (x2realloc(line_out, &allocated_out)) - : (x2realloc(line_out, &allocated_out))); - - if (c == '\n') { - line_out[offset_out++] = c; - fwrite_unlocked(line_out, sizeof(char), offset_out, stdout); - column = offset_out = 0; - continue; - } - - rescan: - column = adjust_column(column, c); - - if (column > width) { - - if (break_spaces) { - - _Bool found_blank = 0; - size_t logical_end = offset_out; - - while (logical_end) { - --logical_end; - if (((*__ctype_b_loc())[(int)((to_uchar(line_out[logical_end])))] & - (unsigned short int)_ISblank)) { - found_blank = 1; - break; - } - } - - if (found_blank) { - size_t i; - - logical_end++; - fwrite_unlocked(line_out, sizeof(char), (size_t)logical_end, stdout); - putchar_unlocked('\n'); - - memmove(line_out, line_out + logical_end, offset_out - logical_end); - offset_out -= logical_end; - for (column = i = 0; i < offset_out; i++) - column = adjust_column(column, line_out[i]); - goto rescan; - } - } - - if (offset_out == 0) { - line_out[offset_out++] = c; - continue; - } - - line_out[offset_out++] = '\n'; - fwrite_unlocked(line_out, sizeof(char), (size_t)offset_out, stdout); - column = offset_out = 0; - goto rescan; - } - - line_out[offset_out++] = c; - } - - saved_errno = (*__errno_location()); - if (!ferror_unlocked(istream)) - saved_errno = 0; - - if (offset_out) - fwrite_unlocked(line_out, sizeof(char), (size_t)offset_out, stdout); - - if ((strcmp(filename, "-") == 0)) - clearerr_unlocked(istream); - else if (rpl_fclose(istream) != 0 && !saved_errno) - saved_errno = (*__errno_location()); - - if (saved_errno) { - error(0, saved_errno, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return 1; -} - -int main(int argc, char **argv) { - size_t width = 80; - int i; - int optc; - - _Bool ok; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - break_spaces = count_bytes = have_read_stdin = 0; - - while ((optc = getopt_long(argc, argv, shortopts, longopts, ((void *)0))) != - -1) { - char optargbuf[2]; - - switch (optc) { - case 'b': - count_bytes = 1; - break; - - case 's': - break_spaces = 1; - break; - - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (optarg) - optarg--; - else { - optargbuf[0] = optc; - optargbuf[1] = '\0'; - optarg = optargbuf; - }; - case 'w': - width = - xdectoumax(optarg, 1, (18446744073709551615UL) - 8 - 1, "", - - dcgettext(((void *)0), "invalid number of columns", 5), 0); - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "fold", "GNU coreutils", Version, ("David MacKenzie"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (argc == optind) - ok = fold_file("-", width); - else { - ok = 1; - for (i = optind; i < argc; i++) - ok &= fold_file(argv[i], width); - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"-\"), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/force-link.c b/tests/source/coreutils/force-link.c deleted file mode 100644 index 02d6a88..0000000 --- a/tests/source/coreutils/force-link.c +++ /dev/null @@ -1,6850 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern int force_linkat(int, char const *, int, char const *, int, _Bool, int) - __attribute__((__nonnull__)); -extern int force_symlinkat(char const *, int, char const *, _Bool, int) - __attribute__((__nonnull__)); - -extern int gen_tempname(char *tmpl, int suffixlen, int flags, int kind); - -extern int gen_tempname_len(char *tmpl, int suffixlen, int flags, int kind, - size_t x_suffix_len); - -extern int try_tempname(char *tmpl, int suffixlen, void *args, - int (*tryfunc)(char *, void *)); - -extern int try_tempname_len(char *tmpl, int suffixlen, void *args, - int (*tryfunc)(char *, void *), - size_t x_suffix_len); - -static char const simple_pattern[] = "CuXXXXXX"; -enum { x_suffix_len = sizeof "XXXXXX" - 1 }; - -enum { smallsize = 256 }; - -static char *samedir_template(char const *dstname, char buf[smallsize]) { - ptrdiff_t dstdirlen = last_component(dstname) - dstname; - size_t dsttmpsize = dstdirlen + sizeof simple_pattern; - char *dsttmp; - if (dsttmpsize <= smallsize) - dsttmp = buf; - else { - dsttmp = malloc(dsttmpsize); - if (!dsttmp) - return dsttmp; - } - strcpy(mempcpy(dsttmp, dstname, dstdirlen), simple_pattern); - return dsttmp; -} - -struct link_arg { - int srcdir; - char const *srcname; - int dstdir; - int flags; -}; - -static int try_link(char *dest, void *arg) { - struct link_arg *a = arg; - return linkat(a->srcdir, a->srcname, a->dstdir, dest, a->flags); -} -extern int force_linkat(int srcdir, char const *srcname, int dstdir, - char const *dstname, int flags, _Bool force, - int linkat_errno) { - if (linkat_errno < 0) - linkat_errno = (linkat(srcdir, srcname, dstdir, dstname, flags) == 0 - ? 0 - : (*__errno_location())); - if (!force || linkat_errno != 17) - return linkat_errno; - - char buf[smallsize]; - char *dsttmp = samedir_template(dstname, buf); - if (!dsttmp) - return (*__errno_location()); - struct link_arg arg = {srcdir, srcname, dstdir, flags}; - int err; - - if (try_tempname_len(dsttmp, 0, &arg, try_link, x_suffix_len) != 0) - err = (*__errno_location()); - else { - err = renameat(dstdir, dsttmp, dstdir, dstname) == 0 - ? -1 - : (*__errno_location()); - - unlinkat(dstdir, dsttmp, 0); - } - - if (dsttmp != buf) - free(dsttmp); - return err; -} - -struct symlink_arg { - char const *srcname; - int dstdir; -}; - -static int try_symlink(char *dest, void *arg) { - struct symlink_arg *a = arg; - return symlinkat(a->srcname, a->dstdir, dest); -} -extern int force_symlinkat(char const *srcname, int dstdir, char const *dstname, - - _Bool force, int symlinkat_errno) { - if (symlinkat_errno < 0) - symlinkat_errno = - symlinkat(srcname, dstdir, dstname) == 0 ? 0 : (*__errno_location()); - if (!force || symlinkat_errno != 17) - return symlinkat_errno; - - char buf[smallsize]; - char *dsttmp = samedir_template(dstname, buf); - if (!dsttmp) - return (*__errno_location()); - struct symlink_arg arg = {srcname, dstdir}; - int err; - - if (try_tempname_len(dsttmp, 0, &arg, try_symlink, x_suffix_len) != 0) - err = (*__errno_location()); - else if (renameat(dstdir, dsttmp, dstdir, dstname) != 0) { - err = (*__errno_location()); - unlinkat(dstdir, dsttmp, 0); - } else { - - err = -1; - } - - if (dsttmp != buf) - free(dsttmp); - return err; -} diff --git a/tests/source/coreutils/getlimits.c b/tests/source/coreutils/getlimits.c deleted file mode 100644 index 1146823..0000000 --- a/tests/source/coreutils/getlimits.c +++ /dev/null @@ -1,7401 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -int ftoastr(char *buf, size_t bufsize, int flags, int width, float x); -int dtoastr(char *buf, size_t bufsize, int flags, int width, double x); -int ldtoastr(char *buf, size_t bufsize, int flags, int width, long double x); - -int c_dtoastr(char *buf, size_t bufsize, int flags, int width, double x); -int c_ldtoastr(char *buf, size_t bufsize, int flags, int width, long double x); - -enum { - - FTOASTR_LEFT_JUSTIFY = 1, - - FTOASTR_ALWAYS_SIGNED = 2, - - FTOASTR_SPACE_POSITIVE = 4, - - FTOASTR_ZERO_PAD = 8, - - FTOASTR_UPPER_E = 16 -}; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s\n", 5) - - , - program_name); - - fputs_unlocked(dcgettext(((void *)0), - "Output platform dependent limits in a format " - "useful for shell scripts.\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("getlimits"); - } - exit(status); -} - -static char const *decimal_absval_add_one(char *buf) { - - _Bool negative = (buf[1] == '-'); - char *absnum = buf + 1 + negative; - char *p = absnum + strlen(absnum); - absnum[-1] = '0'; - while (*--p == '9') - *p = '0'; - ++*p; - char *result = (((absnum) < (p)) ? (absnum) : (p)); - if (negative) - *--result = '-'; - return result; -} -static void print_FLT(float x) { - char buf[((1 + (((((24) * 1) * 146 + 484) / 485) + 1) + 16 + 1 + - (-100 < ((-37)) && (38) < 100 ? 3 - : -1000 < ((-37)) && (38) < 1000 ? 4 - : -10000 < ((-37)) && (38) < 10000 ? 5 - : -100000 < ((-37)) && (38) < 100000 ? 6 - : -1000000 < ((-37)) && (38) < 1000000 - ? 7 - : (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))))) + - 1)]; - ftoastr(buf, sizeof buf, FTOASTR_LEFT_JUSTIFY, 0, x); - puts(buf); -} -static void print_DBL(double x) { - char buf[((1 + (((((53) * 1) * 146 + 484) / 485) + 1) + 16 + 1 + - (-100 < ((-307)) && (308) < 100 ? 3 - : -1000 < ((-307)) && (308) < 1000 ? 4 - : -10000 < ((-307)) && (308) < 10000 ? 5 - : -100000 < ((-307)) && (308) < 100000 ? 6 - : -1000000 < ((-307)) && (308) < 1000000 - ? 7 - : (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))))) + - 1)]; - dtoastr(buf, sizeof buf, FTOASTR_LEFT_JUSTIFY, 0, x); - puts(buf); -} -static void print_LDBL(long double x) { - char buf[((1 + (((((64) * 1) * 146 + 484) / 485) + 1) + 16 + 1 + - (-100 < ((-4931)) && (4932) < 100 ? 3 - : -1000 < ((-4931)) && (4932) < 1000 ? 4 - : -10000 < ((-4931)) && (4932) < 10000 ? 5 - : -100000 < ((-4931)) && (4932) < 100000 ? 6 - : -1000000 < ((-4931)) && (4932) < 1000000 - ? 7 - : (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))))) + - 1)]; - ldtoastr(buf, sizeof buf, FTOASTR_LEFT_JUSTIFY, 0, x); - puts(buf); -} - -int main(int argc, char **argv) { - char limit - [1 + - (((((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)) > - (((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1))) - ? (((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)) - : (((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1))) - - ]; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(1); - atexit(close_stdout); - - parse_long_options(argc, argv, "getlimits", "GNU coreutils", "9.1", usage, - ("Padraig Brady"), (char const *)((void *)0)); - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)0x7f); - printf("CHAR" - "_MAX=%s\n", - limit + 1); - printf("CHAR" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if ((-0x7f - 1)) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)(-0x7f - 1)); - printf("CHAR" - "_MIN=%s\n", - limit + 1); - printf("CHAR" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)0x7f); - printf("SCHAR" - "_MAX=%s\n", - limit + 1); - printf("SCHAR" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if ((-0x7f - 1)) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)(-0x7f - 1)); - printf("SCHAR" - "_MIN=%s\n", - limit + 1); - printf("SCHAR" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)(0x7f * 2 + 1)); - printf("UCHAR" - "_MAX=%s\n", - limit + 1); - printf("UCHAR" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (0) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)0); - printf("UCHAR" - "_MIN=%s\n", - limit + 1); - printf("UCHAR" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)0x7fff); - printf("SHRT" - "_MAX=%s\n", - limit + 1); - printf("SHRT" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if ((-0x7fff - 1)) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)(-0x7fff - 1)); - printf("SHRT" - "_MIN=%s\n", - limit + 1); - printf("SHRT" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)0x7fffffff); - printf("INT" - "_MAX=%s\n", - limit + 1); - printf("INT" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if ((-0x7fffffff - 1)) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)(-0x7fffffff - 1)); - printf("INT" - "_MIN=%s\n", - limit + 1); - printf("INT" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)(0x7fffffff * 2U + 1U)); - printf("UINT" - "_MAX=%s\n", - limit + 1); - printf("UINT" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (0) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)0); - printf("UINT" - "_MIN=%s\n", - limit + 1); - printf("UINT" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)0x7fffffffffffffffL); - printf("LONG" - "_MAX=%s\n", - limit + 1); - printf("LONG" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if ((-0x7fffffffffffffffL - 1L)) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)(-0x7fffffffffffffffL - 1L)); - printf("LONG" - "_MIN=%s\n", - limit + 1); - printf("LONG" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)(0x7fffffffffffffffL * 2UL + 1UL)); - printf("ULONG" - "_MAX=%s\n", - limit + 1); - printf("ULONG" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (0) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)0); - printf("ULONG" - "_MIN=%s\n", - limit + 1); - printf("ULONG" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)(18446744073709551615UL)); - printf("SIZE" - "_MAX=%s\n", - limit + 1); - printf("SIZE" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (0) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)0); - printf("SIZE" - "_MIN=%s\n", - limit + 1); - printf("SIZE" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)0x7fffffffffffffffL); - printf("SSIZE" - "_MAX=%s\n", - limit + 1); - printf("SSIZE" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (((ssize_t) ~( - (ssize_t)(!(!((ssize_t)0 < (ssize_t)-1)) - ? (ssize_t)-1 - : ((((ssize_t)1 << ((sizeof(ssize_t) * 8) - 2)) - 1) * - 2 + - 1))))) { - sprintf( - limit + 1, - "%" - "l" - "d", - (intmax_t)((ssize_t) ~( - (ssize_t)(!(!((ssize_t)0 < (ssize_t)-1)) - ? (ssize_t)-1 - : ((((ssize_t)1 << ((sizeof(ssize_t) * 8) - 2)) - 1) * - 2 + - 1))))); - printf("SSIZE" - "_MIN=%s\n", - limit + 1); - printf("SSIZE" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf( - limit + 1, - "%" - "l" - "u", - (uintmax_t)(( - time_t)(!(!((time_t)0 < (time_t)-1)) - ? (time_t)-1 - : ((((time_t)1 << ((sizeof(time_t) * 8) - 2)) - 1) * 2 + - 1)))); - printf("TIME_T" - "_MAX=%s\n", - limit + 1); - printf("TIME_T" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (((time_t) ~( - (time_t)(!(!((time_t)0 < (time_t)-1)) - ? (time_t)-1 - : ((((time_t)1 << ((sizeof(time_t) * 8) - 2)) - 1) * 2 + - 1))))) { - sprintf( - limit + 1, - "%" - "l" - "d", - (intmax_t)((time_t) ~(( - time_t)(!(!((time_t)0 < (time_t)-1)) - ? (time_t)-1 - : ((((time_t)1 << ((sizeof(time_t) * 8) - 2)) - 1) * 2 + - 1))))); - printf("TIME_T" - "_MIN=%s\n", - limit + 1); - printf("TIME_T" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)(( - uid_t)(!(!((uid_t)0 < (uid_t)-1)) - ? (uid_t)-1 - : ((((uid_t)1 << ((sizeof(uid_t) * 8) - 2)) - 1) * 2 + - 1)))); - printf("UID_T" - "_MAX=%s\n", - limit + 1); - printf("UID_T" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (0) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)0); - printf("UID_T" - "_MIN=%s\n", - limit + 1); - printf("UID_T" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)(( - gid_t)(!(!((gid_t)0 < (gid_t)-1)) - ? (gid_t)-1 - : ((((gid_t)1 << ((sizeof(gid_t) * 8) - 2)) - 1) * 2 + - 1)))); - printf("GID_T" - "_MAX=%s\n", - limit + 1); - printf("GID_T" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (0) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)0); - printf("GID_T" - "_MIN=%s\n", - limit + 1); - printf("GID_T" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)(( - pid_t)(!(!((pid_t)0 < (pid_t)-1)) - ? (pid_t)-1 - : ((((pid_t)1 << ((sizeof(pid_t) * 8) - 2)) - 1) * 2 + - 1)))); - printf("PID_T" - "_MAX=%s\n", - limit + 1); - printf("PID_T" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (((pid_t) ~( - (pid_t)(!(!((pid_t)0 < (pid_t)-1)) - ? (pid_t)-1 - : ((((pid_t)1 << ((sizeof(pid_t) * 8) - 2)) - 1) * 2 + - 1))))) { - sprintf( - limit + 1, - "%" - "l" - "d", - (intmax_t)((pid_t) ~( - (pid_t)(!(!((pid_t)0 < (pid_t)-1)) - ? (pid_t)-1 - : ((((pid_t)1 << ((sizeof(pid_t) * 8) - 2)) - 1) * 2 + - 1))))); - printf("PID_T" - "_MIN=%s\n", - limit + 1); - printf("PID_T" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)(( - off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1)))); - printf("OFF_T" - "_MAX=%s\n", - limit + 1); - printf("OFF_T" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (((off_t) ~( - (off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1))))) { - sprintf( - limit + 1, - "%" - "l" - "d", - (intmax_t)((off_t) ~( - (off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1))))); - printf("OFF_T" - "_MIN=%s\n", - limit + 1); - printf("OFF_T" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)(9223372036854775807L)); - printf("INTMAX" - "_MAX=%s\n", - limit + 1); - printf("INTMAX" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if ((-9223372036854775807L - 1)) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)(-9223372036854775807L - 1)); - printf("INTMAX" - "_MIN=%s\n", - limit + 1); - printf("INTMAX" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - sprintf(limit + 1, - "%" - "l" - "u", - (uintmax_t)(18446744073709551615UL)); - printf("UINTMAX" - "_MAX=%s\n", - limit + 1); - printf("UINTMAX" - "_OFLOW=%s\n", - decimal_absval_add_one(limit)); - if (0) { - sprintf(limit + 1, - "%" - "l" - "d", - (intmax_t)0); - printf("UINTMAX" - "_MIN=%s\n", - limit + 1); - printf("UINTMAX" - "_UFLOW=%s\n", - decimal_absval_add_one(limit)); - }; - - printf("FLT" - "_MIN="); - print_FLT(1.17549435082228750796873653722224568e-38F); - printf("FLT" - "_MAX="); - print_FLT(3.40282346638528859811704183484516925e+38F); - ; - printf("DBL" - "_MIN="); - print_DBL(((double)2.22507385850720138309023271733240406e-308L)); - printf("DBL" - "_MAX="); - print_DBL(((double)1.79769313486231570814527423731704357e+308L)); - ; - printf("LDBL" - "_MIN="); - print_LDBL(3.36210314311209350626267781732175260e-4932L); - printf("LDBL" - "_MAX="); - print_LDBL(1.18973149535723176502126385303097021e+4932L); - ; - - return 0; -} diff --git a/tests/source/coreutils/group-list.c b/tests/source/coreutils/group-list.c deleted file mode 100644 index f9c4a69..0000000 --- a/tests/source/coreutils/group-list.c +++ /dev/null @@ -1,6942 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct passwd { - char *pw_name; - char *pw_passwd; - - __uid_t pw_uid; - __gid_t pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; -extern void setpwent(void); - -extern void endpwent(void); - -extern struct passwd *getpwent(void); -extern struct passwd *fgetpwent(FILE *__stream) __attribute__((__nonnull__(1))); - -extern int putpwent(const struct passwd *__restrict __p, FILE *__restrict __f); - -extern struct passwd *getpwuid(__uid_t __uid); - -extern struct passwd *getpwnam(const char *__name) - __attribute__((__nonnull__(1))); -extern int getpwent_r(struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 4))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpwuid_r(__uid_t __uid, struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int getpwnam_r(const char *__restrict __name, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int fgetpwent_r(FILE *__restrict __stream, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int getpw(__uid_t __uid, char *__buffer); - -struct group { - char *gr_name; - char *gr_passwd; - __gid_t gr_gid; - char **gr_mem; -}; -extern void setgrent(void); - -extern void endgrent(void); - -extern struct group *getgrent(void); -extern struct group *fgetgrent(FILE *__stream); -extern int putgrent(const struct group *__restrict __p, FILE *__restrict __f); - -extern struct group *getgrgid(__gid_t __gid); - -extern struct group *getgrnam(const char *__name); -extern int getgrent_r(struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrgid_r(__gid_t __gid, struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrnam_r(const char *__restrict __name, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); -extern int fgetgrent_r(FILE *__restrict __stream, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int setgroups(size_t __n, const __gid_t *__groups) - __attribute__((__nothrow__, __leaf__)); -extern int getgrouplist(const char *__user, __gid_t __group, __gid_t *__groups, - int *__ngroups); -extern int initgroups(const char *__user, __gid_t __group); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int mgetgroups(const char *username, gid_t gid, gid_t **groups); - -int xgetgroups(const char *username, gid_t gid, gid_t **groups); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -_Bool print_group(gid_t, _Bool); - -_Bool print_group_list(char const *, uid_t, gid_t, gid_t, _Bool, char); - -extern _Bool - -print_group_list(char const *username, uid_t ruid, gid_t rgid, gid_t egid, - - _Bool use_names, char delim) { - - _Bool ok = 1; - struct passwd *pwd = ((void *)0); - - if (username) { - pwd = getpwuid(ruid); - if (pwd == ((void *)0)) - ok = 0; - } - - if (!print_group(rgid, use_names)) - ok = 0; - - if (egid != rgid) { - putchar_unlocked(delim); - if (!print_group(egid, use_names)) - ok = 0; - } - - { - gid_t *groups; - - int n_groups = xgetgroups(username, (pwd ? pwd->pw_gid : egid), &groups); - if (n_groups < 0) { - if (username) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to get groups for user %s", 5), - quote(username)); - } else { - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to get groups for the current process", 5)); - } - return 0; - } - - for (int i = 0; i < n_groups; i++) - if (groups[i] != rgid && groups[i] != egid) { - putchar_unlocked(delim); - if (!print_group(groups[i], use_names)) - ok = 0; - } - free(groups); - } - return ok; -} - -static char *gidtostr_ptr(gid_t const *gid) { - static char - buf[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - return umaxtostr(*gid, buf); -} - -extern _Bool - -print_group(gid_t gid, _Bool use_name) { - struct group *grp = ((void *)0); - - _Bool ok = 1; - - if (use_name) { - grp = getgrgid(gid); - if (grp == ((void *)0)) { - error(0, 0, - dcgettext(((void *)0), "cannot find name for group ID %lu", 5), - (unsigned long int)gid); - ok = 0; - } - } - - char *s = grp ? grp->gr_name : gidtostr_ptr(&(gid)); - fputs_unlocked(s, stdout); - return ok; -} diff --git a/tests/source/coreutils/groups.c b/tests/source/coreutils/groups.c deleted file mode 100644 index 9e867eb..0000000 --- a/tests/source/coreutils/groups.c +++ /dev/null @@ -1,7030 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct passwd { - char *pw_name; - char *pw_passwd; - - __uid_t pw_uid; - __gid_t pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; -extern void setpwent(void); - -extern void endpwent(void); - -extern struct passwd *getpwent(void); -extern struct passwd *fgetpwent(FILE *__stream) __attribute__((__nonnull__(1))); - -extern int putpwent(const struct passwd *__restrict __p, FILE *__restrict __f); - -extern struct passwd *getpwuid(__uid_t __uid); - -extern struct passwd *getpwnam(const char *__name) - __attribute__((__nonnull__(1))); -extern int getpwent_r(struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 4))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpwuid_r(__uid_t __uid, struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int getpwnam_r(const char *__restrict __name, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int fgetpwent_r(FILE *__restrict __stream, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int getpw(__uid_t __uid, char *__buffer); - -struct group { - char *gr_name; - char *gr_passwd; - __gid_t gr_gid; - char **gr_mem; -}; -extern void setgrent(void); - -extern void endgrent(void); - -extern struct group *getgrent(void); -extern struct group *fgetgrent(FILE *__stream); -extern int putgrent(const struct group *__restrict __p, FILE *__restrict __f); - -extern struct group *getgrgid(__gid_t __gid); - -extern struct group *getgrnam(const char *__name); -extern int getgrent_r(struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrgid_r(__gid_t __gid, struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrnam_r(const char *__restrict __name, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); -extern int fgetgrent_r(FILE *__restrict __stream, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int setgroups(size_t __n, const __gid_t *__groups) - __attribute__((__nothrow__, __leaf__)); -extern int getgrouplist(const char *__user, __gid_t __group, __gid_t *__groups, - int *__ngroups); -extern int initgroups(const char *__user, __gid_t __group); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -_Bool print_group(gid_t, _Bool); - -_Bool print_group_list(char const *, uid_t, gid_t, gid_t, _Bool, char); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -static struct option const longopts[] = { - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [USERNAME]...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Print group memberships for each USERNAME or, if no " - "USERNAME is specified, for\nthe current process (which may " - "differ if the groups database has changed).\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("groups"); - } - exit(status); -} - -int main(int argc, char **argv) { - int optc; - - _Bool ok = 1; - gid_t rgid, egid; - uid_t ruid; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "", longopts, ((void *)0))) != -1) { - switch (optc) { - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "groups", "GNU coreutils", Version, - ("David MacKenzie"), ("James Youngman"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (optind == argc) { - - uid_t NO_UID = -1; - gid_t NO_GID = -1; - - (*__errno_location()) = 0; - ruid = getuid(); - if (ruid == NO_UID && (*__errno_location())) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot get real UID\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get real UID", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get real UID", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - (*__errno_location()) = 0; - egid = getegid(); - if (egid == NO_GID && (*__errno_location())) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot get effective GID\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get effective GID", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get effective GID", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - (*__errno_location()) = 0; - rgid = getgid(); - if (rgid == NO_GID && (*__errno_location())) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot get real GID\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get real GID", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get real GID", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (!print_group_list(((void *)0), ruid, rgid, egid, 1, ' ')) - ok = 0; - putchar_unlocked('\n'); - } else { - - for (; optind < argc; optind++) { - struct passwd *pwd = getpwnam(argv[optind]); - if (pwd == ((void *)0)) { - error(0, 0, dcgettext(((void *)0), "%s: no such user", 5), - quote(argv[optind])); - ok = 0; - continue; - } - ruid = pwd->pw_uid; - rgid = egid = pwd->pw_gid; - - printf("%s : ", argv[optind]); - if (!print_group_list(argv[optind], ruid, rgid, egid, 1, ' ')) - ok = 0; - putchar_unlocked('\n'); - } - } - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/head.c b/tests/source/coreutils/head.c deleted file mode 100644 index 147873b..0000000 --- a/tests/source/coreutils/head.c +++ /dev/null @@ -1,7758 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern size_t full_read(int fd, void *buf, size_t count); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -extern size_t safe_read(int fd, void *buf, size_t count); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -static _Bool presume_input_pipe; - -static _Bool print_headers; - -static char line_end; - -enum header_mode { multiple_files, always, never }; - -static _Bool have_read_stdin; - -enum Copy_fd_status { - COPY_FD_OK = 0, - COPY_FD_READ_ERROR, - COPY_FD_UNEXPECTED_EOF -}; - -enum { PRESUME_INPUT_PIPE_OPTION = 0x7f + 1 }; - -static struct option const long_options[] = { - {"bytes", 1, ((void *)0), 'c'}, - {"lines", 1, ((void *)0), 'n'}, - {"-presume-input-pipe", 0, ((void *)0), PRESUME_INPUT_PIPE_OPTION}, - {"quiet", 0, ((void *)0), 'q'}, - {"silent", 0, ((void *)0), 'q'}, - {"verbose", 0, ((void *)0), 'v'}, - {"zero-terminated", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - printf(dcgettext(((void *)0), - "Print the first %d lines of each FILE to standard " - "output.\nWith more than one FILE, precede each with a " - "header giving the file name.\n", - 5) - - , - 10); - - emit_stdin_note(); - emit_mandatory_arg_note(); - - printf( - dcgettext(((void *)0), - " -c, --bytes=[-]NUM print the first NUM bytes of " - "each file;\n with the leading " - "'-', print all but the last\n " - "NUM bytes of each file\n -n, --lines=[-]NUM print " - "the first NUM lines instead of the first %d;\n " - " with the leading '-', print all but the " - "last\n NUM lines of each file\n", - 5) - - , - 10); - fputs_unlocked(dcgettext(((void *)0), - " -q, --quiet, --silent never print headers " - "giving file names\n -v, --verbose " - "always print headers giving file names\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero-terminated line delimiter is NUL, not newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nNUM may have a multiplier suffix:\nb 512, kB 1000, K " - "1024, MB 1000*1000, M 1024*1024,\nGB 1000*1000*1000, G " - "1024*1024*1024, and so on for T, P, E, Z, Y.\nBinary " - "prefixes can be used, too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; - emit_ancillary_info("head"); - } - exit(status); -} - -static void diagnose_copy_fd_failure(enum Copy_fd_status err, - char const *filename) { - switch (err) { - case COPY_FD_READ_ERROR: - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - break; - case COPY_FD_UNEXPECTED_EOF: - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: file has shrunk too much", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - break; - default: - abort(); - } -} - -static void write_header(char const *filename) { - static _Bool first_file = 1; - - printf("%s==> %s <==\n", (first_file ? "" : "\n"), filename); - first_file = 0; -} - -static void xwrite_stdout(char const *buffer, size_t n_bytes) { - if (n_bytes > 0 && fwrite_unlocked(buffer, 1, n_bytes, stdout) < n_bytes) { - clearerr_unlocked(stdout); - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"error writing %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, \"standard " - "output\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "error writing %s", 5), - quotearg_style(shell_escape_always_quoting_style, - "standard output")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "error writing %s", 5), - quotearg_style(shell_escape_always_quoting_style, - "standard output")), - ((0) ? (void)0 : __builtin_unreachable())))); - } -} - -static enum Copy_fd_status copy_fd(int src_fd, uintmax_t n_bytes) { - char buf[8192]; - const size_t buf_size = sizeof(buf); - - while (0 < n_bytes) { - size_t n_to_read = (((buf_size) < (n_bytes)) ? (buf_size) : (n_bytes)); - size_t n_read = safe_read(src_fd, buf, n_to_read); - if (n_read == ((size_t)-1)) - return COPY_FD_READ_ERROR; - - n_bytes -= n_read; - - if (n_read == 0 && n_bytes != 0) - return COPY_FD_UNEXPECTED_EOF; - - xwrite_stdout(buf, n_read); - } - - return COPY_FD_OK; -} - -static off_t elseek(int fd, off_t offset, int whence, char const *filename) { - off_t new_offset = lseek(fd, offset, whence); - char buf[((((((sizeof(offset) * 8) - - (!((__typeof__(offset))0 < (__typeof__(offset))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(offset))0 < (__typeof__(offset))-1))) + - 1)]; - - if (new_offset < 0) - error(0, (*__errno_location()), - - dcgettext(((void *)0), - whence == 0 ? "%s: cannot seek to offset %s" - : "%s: cannot seek to relative offset %s", - 5) - - , - quotearg_n_style_colon(0, shell_escape_quoting_style, filename), - offtostr(offset, buf)); - - return new_offset; -} -static _Bool - -elide_tail_bytes_pipe(char const *filename, int fd, uintmax_t n_elide_0, - off_t current_pos) { - size_t n_elide = n_elide_0; - uintmax_t desired_pos = current_pos; - - _Bool ok = 1; - if ((18446744073709551615UL) < n_elide_0 + 8192) { - char umax_buf[( - (((((sizeof(n_elide_0) * 8) - - (!((__typeof__(n_elide_0))0 < (__typeof__(n_elide_0))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(n_elide_0))0 < (__typeof__(n_elide_0))-1))) + - 1)]; - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: number of bytes is too " - "large\", 5), umaxtostr (n_elide_0, umax_buf)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext(((void *)0), "%s: number of bytes is too large", 5), - umaxtostr(n_elide_0, umax_buf)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext(((void *)0), "%s: number of bytes is too large", 5), - umaxtostr(n_elide_0, umax_buf)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - if (n_elide <= 1024 * 1024) { - - _Bool first = 1; - - _Bool eof = 0; - size_t n_to_read = 8192 + n_elide; - - _Bool i; - char *b[2]; - b[0] = xnmalloc(2, n_to_read); - b[1] = b[0] + n_to_read; - - for (i = 0; !eof; i = !i) { - size_t n_read = full_read(fd, b[i], n_to_read); - size_t delta = 0; - if (n_read < n_to_read) { - if ((*__errno_location()) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - ok = 0; - break; - } - - if (n_read <= n_elide) { - if (first) { - - } else { - delta = n_elide - n_read; - } - } - eof = 1; - } - - if (!first) { - desired_pos += n_elide - delta; - xwrite_stdout(b[!i] + 8192, n_elide - delta); - } - first = 0; - - if (n_elide < n_read) { - desired_pos += n_read - n_elide; - xwrite_stdout(b[i], n_read - n_elide); - } - } - - free(b[0]); - } else { - - _Bool eof = 0; - size_t n_read; - - _Bool buffered_enough; - size_t i, i_next; - char **b = ((void *)0); - - size_t rem = 8192 - (n_elide % 8192); - size_t n_elide_round = n_elide + rem; - size_t n_bufs = n_elide_round / 8192 + 1; - size_t n_alloc = 0; - size_t n_array_alloc = 0; - - buffered_enough = 0; - for (i = 0, i_next = 1; !eof; i = i_next, i_next = (i_next + 1) % n_bufs) { - if (n_array_alloc == i) { - - if (n_array_alloc == 0) - n_array_alloc = (((n_bufs) < (16)) ? (n_bufs) : (16)); - else if (n_array_alloc <= n_bufs / 2) - n_array_alloc *= 2; - else - n_array_alloc = n_bufs; - b = xnrealloc(b, n_array_alloc, sizeof *b); - } - - if (!buffered_enough) { - b[i] = xmalloc(8192); - n_alloc = i + 1; - } - n_read = full_read(fd, b[i], 8192); - if (n_read < 8192) { - if ((*__errno_location()) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - ok = 0; - goto free_mem; - } - eof = 1; - } - - if (i + 1 == n_bufs) - buffered_enough = 1; - - if (buffered_enough) { - desired_pos += n_read; - xwrite_stdout(b[i_next], n_read); - } - } - - if (rem) { - if (buffered_enough) { - size_t n_bytes_left_in_b_i = 8192 - n_read; - desired_pos += rem; - if (rem < n_bytes_left_in_b_i) { - xwrite_stdout(b[i] + n_read, rem); - } else { - xwrite_stdout(b[i] + n_read, n_bytes_left_in_b_i); - xwrite_stdout(b[i_next], rem - n_bytes_left_in_b_i); - } - } else if (i + 1 == n_bufs) { - size_t y = 8192 - rem; - size_t x = n_read - y; - desired_pos += x; - xwrite_stdout(b[i_next], x); - } - } - - free_mem: - for (i = 0; i < n_alloc; i++) - free(b[i]); - free(b); - } - - if (0 <= current_pos && elseek(fd, desired_pos, 0, filename) < 0) - ok = 0; - return ok; -} -static _Bool - -elide_tail_bytes_file(char const *filename, int fd, uintmax_t n_elide, - struct stat const *st, off_t current_pos) { - off_t size = st->st_size; - if (presume_input_pipe || current_pos < 0 || - size <= - ((0 < (*st).st_blksize && (*st).st_blksize <= ((size_t)-1) / 8 + 1) - ? (*st).st_blksize - : 512)) - return elide_tail_bytes_pipe(filename, fd, n_elide, current_pos); - else { - - off_t diff = size - current_pos; - off_t bytes_remaining = diff < 0 ? 0 : diff; - - if (bytes_remaining <= n_elide) - return 1; - - enum Copy_fd_status err = copy_fd(fd, bytes_remaining - n_elide); - if (err == COPY_FD_OK) - return 1; - - diagnose_copy_fd_failure(err, filename); - return 0; - } -} -static _Bool - -elide_tail_lines_pipe(char const *filename, int fd, uintmax_t n_elide, - off_t current_pos) { - struct linebuffer { - char buffer[8192 + 1]; - size_t nbytes; - size_t nlines; - struct linebuffer *next; - }; - uintmax_t desired_pos = current_pos; - typedef struct linebuffer LBUFFER; - LBUFFER *first, *last, *tmp; - size_t total_lines = 0; - - _Bool ok = 1; - size_t n_read; - - first = last = xmalloc(sizeof(LBUFFER)); - first->nbytes = first->nlines = 0; - first->next = ((void *)0); - tmp = xmalloc(sizeof(LBUFFER)); - - while (1) { - n_read = safe_read(fd, tmp->buffer, 8192); - if (n_read == 0 || n_read == ((size_t)-1)) - break; - - if (!n_elide) { - desired_pos += n_read; - xwrite_stdout(tmp->buffer, n_read); - continue; - } - - tmp->nbytes = n_read; - tmp->nlines = 0; - tmp->next = ((void *)0); - - { - char *buffer_end = tmp->buffer + n_read; - *buffer_end = line_end; - char const *p = tmp->buffer; - while ((p = rawmemchr(p, line_end)) < buffer_end) { - ++p; - ++tmp->nlines; - } - } - total_lines += tmp->nlines; - - if (tmp->nbytes + last->nbytes < 8192) { - memcpy(&last->buffer[last->nbytes], tmp->buffer, tmp->nbytes); - last->nbytes += tmp->nbytes; - last->nlines += tmp->nlines; - } else { - - last = last->next = tmp; - if (n_elide < total_lines - first->nlines) { - desired_pos += first->nbytes; - xwrite_stdout(first->buffer, first->nbytes); - tmp = first; - total_lines -= first->nlines; - first = first->next; - } else - tmp = xmalloc(sizeof(LBUFFER)); - } - } - - free(tmp); - - if (n_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - ok = 0; - goto free_lbuffers; - } - - if (last->nbytes && last->buffer[last->nbytes - 1] != line_end) { - ++last->nlines; - ++total_lines; - } - - for (tmp = first; n_elide < total_lines - tmp->nlines; tmp = tmp->next) { - desired_pos += tmp->nbytes; - xwrite_stdout(tmp->buffer, tmp->nbytes); - total_lines -= tmp->nlines; - } - - if (n_elide < total_lines) { - size_t n = total_lines - n_elide; - char const *buffer_end = tmp->buffer + tmp->nbytes; - char const *p = tmp->buffer; - while (n && (p = memchr(p, line_end, buffer_end - p))) { - ++p; - ++tmp->nlines; - --n; - } - desired_pos += p - tmp->buffer; - xwrite_stdout(tmp->buffer, p - tmp->buffer); - } - -free_lbuffers: - while (first) { - tmp = first->next; - free(first); - first = tmp; - } - - if (0 <= current_pos && elseek(fd, desired_pos, 0, filename) < 0) - ok = 0; - return ok; -} -static _Bool - -elide_tail_lines_seekable(char const *pretty_filename, int fd, - uintmax_t n_lines, off_t start_pos, off_t size) { - char buffer[8192]; - size_t bytes_read; - off_t pos = size; - - bytes_read = (pos - start_pos) % 8192; - if (bytes_read == 0) - bytes_read = 8192; - - pos -= bytes_read; - if (elseek(fd, pos, 0, pretty_filename) < 0) - return 0; - bytes_read = safe_read(fd, buffer, bytes_read); - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_filename)); - return 0; - } - - const _Bool all_lines = !n_lines; - - if (n_lines && bytes_read && buffer[bytes_read - 1] != line_end) - --n_lines; - - while (1) { - - size_t n = bytes_read; - while (n) { - if (all_lines) - n -= 1; - else { - char const *nl; - nl = memrchr(buffer, line_end, n); - if (nl == ((void *)0)) - break; - n = nl - buffer; - } - if (n_lines-- == 0) { - - if (start_pos < pos) { - enum Copy_fd_status err; - if (elseek(fd, start_pos, 0, pretty_filename) < 0) - return 0; - - err = copy_fd(fd, pos - start_pos); - if (err != COPY_FD_OK) { - diagnose_copy_fd_failure(err, pretty_filename); - return 0; - } - } - - xwrite_stdout(buffer, n + 1); - - return 0 <= elseek(fd, pos + n + 1, 0, pretty_filename); - } - } - - if (pos == start_pos) { - - return 1; - } - pos -= 8192; - if (elseek(fd, pos, 0, pretty_filename) < 0) - return 0; - - bytes_read = safe_read(fd, buffer, 8192); - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_filename)); - return 0; - } - - if (bytes_read == 0) - return 1; - } -} - -static _Bool - -elide_tail_lines_file(char const *filename, int fd, uintmax_t n_elide, - struct stat const *st, off_t current_pos) { - off_t size = st->st_size; - if (presume_input_pipe || current_pos < 0 || - size <= - ((0 < (*st).st_blksize && (*st).st_blksize <= ((size_t)-1) / 8 + 1) - ? (*st).st_blksize - : 512)) - return elide_tail_lines_pipe(filename, fd, n_elide, current_pos); - else { - - return ( - size <= current_pos || - elide_tail_lines_seekable(filename, fd, n_elide, current_pos, size)); - } -} - -static _Bool - -head_bytes(char const *filename, int fd, uintmax_t bytes_to_write) { - char buffer[8192]; - size_t bytes_to_read = 8192; - - while (bytes_to_write) { - size_t bytes_read; - if (bytes_to_write < bytes_to_read) - bytes_to_read = bytes_to_write; - bytes_read = safe_read(fd, buffer, bytes_to_read); - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - return 0; - } - if (bytes_read == 0) - break; - xwrite_stdout(buffer, bytes_read); - bytes_to_write -= bytes_read; - } - return 1; -} - -static _Bool - -head_lines(char const *filename, int fd, uintmax_t lines_to_write) { - char buffer[8192]; - - while (lines_to_write) { - size_t bytes_read = safe_read(fd, buffer, 8192); - size_t bytes_to_write = 0; - - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - return 0; - } - if (bytes_read == 0) - break; - while (bytes_to_write < bytes_read) - if (buffer[bytes_to_write++] == line_end && --lines_to_write == 0) { - off_t n_bytes_past_EOL = bytes_read - bytes_to_write; - - if (lseek(fd, -n_bytes_past_EOL, 1) < 0) { - struct stat st; - if (fstat(fd, &st) != 0 || ((((st.st_mode)) & 0170000) == (0100000))) - elseek(fd, -n_bytes_past_EOL, 1, filename); - } - break; - } - xwrite_stdout(buffer, bytes_to_write); - } - return 1; -} - -static _Bool - -head(char const *filename, int fd, uintmax_t n_units, _Bool count_lines, - - _Bool elide_from_end) { - if (print_headers) - write_header(filename); - - if (elide_from_end) { - off_t current_pos = -1; - struct stat st; - if (fstat(fd, &st) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot fstat %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - return 0; - } - if (!presume_input_pipe && usable_st_size(&st)) { - current_pos = elseek(fd, 0, 1, filename); - if (current_pos < 0) - return 0; - } - if (count_lines) - return elide_tail_lines_file(filename, fd, n_units, &st, current_pos); - else - return elide_tail_bytes_file(filename, fd, n_units, &st, current_pos); - } - if (count_lines) - return head_lines(filename, fd, n_units); - else - return head_bytes(filename, fd, n_units); -} - -static _Bool - -head_file(char const *filename, uintmax_t n_units, _Bool count_lines, - - _Bool elide_from_end) { - int fd; - - _Bool ok; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - fd = 0; - filename = dcgettext(((void *)0), "standard input", 5); - xset_binary_mode(0, 0); - } else { - fd = open(filename, 00 | 0); - if (fd < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - return 0; - } - } - - ok = head(filename, fd, n_units, count_lines, elide_from_end); - if (!is_stdin && close(fd) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to close %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - return 0; - } - return ok; -} - -static uintmax_t string_to_integer(_Bool count_lines, char const *n_string) { - return xdectoumax(n_string, 0, (18446744073709551615UL), "bkKmMGTPEZY0", - count_lines - ? dcgettext(((void *)0), "invalid number of lines", 5) - - : dcgettext(((void *)0), "invalid number of bytes", 5), - 0); -} - -int main(int argc, char **argv) { - enum header_mode header_mode = multiple_files; - - _Bool ok = 1; - int c; - size_t i; - - uintmax_t n_units = 10; - - _Bool count_lines = 1; - - _Bool elide_from_end = 0; - - static char const *const default_file_list[] = {"-", ((void *)0)}; - char const *const *file_list; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - have_read_stdin = 0; - - print_headers = 0; - - line_end = '\n'; - - if (1 < argc && argv[1][0] == '-' && - ((unsigned int)(argv[1][1]) - '0' <= 9)) { - char *a = argv[1]; - char *n_string = ++a; - char *end_n_string; - char multiplier_char = 0; - - do - ++a; - while (((unsigned int)(*a) - '0' <= 9)); - - end_n_string = a; - - for (; *a; a++) { - switch (*a) { - case 'c': - count_lines = 0; - multiplier_char = 0; - break; - - case 'b': - case 'k': - case 'm': - count_lines = 0; - multiplier_char = *a; - break; - - case 'l': - count_lines = 1; - break; - - case 'q': - header_mode = never; - break; - - case 'v': - header_mode = always; - break; - - case 'z': - line_end = '\0'; - break; - - default: - error(0, 0, dcgettext(((void *)0), "invalid trailing option -- %c", 5), - *a); - usage(1); - } - } - - *end_n_string = multiplier_char; - if (multiplier_char) - *(++end_n_string) = 0; - - n_units = string_to_integer(count_lines, n_string); - - argv[1] = argv[0]; - argv++; - argc--; - } - - while ((c = getopt_long(argc, argv, "c:n:qvz0123456789", long_options, - ((void *)0))) != -1) { - switch (c) { - case PRESUME_INPUT_PIPE_OPTION: - presume_input_pipe = 1; - break; - - case 'c': - count_lines = 0; - elide_from_end = (*optarg == '-'); - if (elide_from_end) - ++optarg; - n_units = string_to_integer(count_lines, optarg); - break; - - case 'n': - count_lines = 1; - elide_from_end = (*optarg == '-'); - if (elide_from_end) - ++optarg; - n_units = string_to_integer(count_lines, optarg); - break; - - case 'q': - header_mode = never; - break; - - case 'v': - header_mode = always; - break; - - case 'z': - line_end = '\0'; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "head", "GNU coreutils", Version, ("David MacKenzie"), - ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - if (((unsigned int)(c) - '0' <= 9)) - error(0, 0, dcgettext(((void *)0), "invalid trailing option -- %c", 5), - c); - usage(1); - } - } - - if (header_mode == always || - (header_mode == multiple_files && optind < argc - 1)) - print_headers = 1; - - if (!count_lines && elide_from_end && - ((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + 1))) < - n_units) { - char umax_buf[((((((sizeof(n_units) * 8) - - (!((__typeof__(n_units))0 < (__typeof__(n_units))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(n_units))0 < (__typeof__(n_units))-1))) + - 1)]; - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 75, \"%s: %s\", dcgettext (((void *)0), " - "\"invalid number of bytes\", 5), quote (umaxtostr " - "(n_units, umax_buf))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 75, "%s: %s", - dcgettext(((void *)0), "invalid number of bytes", 5), - quote(umaxtostr(n_units, umax_buf))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 75, "%s: %s", - dcgettext(((void *)0), "invalid number of bytes", 5), - quote(umaxtostr(n_units, umax_buf))), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - file_list = - (optind < argc ? (char const *const *)&argv[optind] : default_file_list); - - xset_binary_mode(1, 0); - - for (i = 0; file_list[i]; ++i) - ok &= head_file(file_list[i], n_units, count_lines, elide_from_end); - - if (have_read_stdin && close(0) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"-\"), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/hostid.c b/tests/source/coreutils/hostid.c deleted file mode 100644 index 072ed68..0000000 --- a/tests/source/coreutils/hostid.c +++ /dev/null @@ -1,6829 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]\nPrint the numeric identifier (in " - "hexadecimal) for the current host.\n\n", - 5) - - , - program_name); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("hostid"); - } - exit(status); -} - -int main(int argc, char **argv) { - unsigned int id; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - parse_gnu_standard_options_only(argc, argv, "hostid", "GNU coreutils", - Version, 1, usage, ("Jim Meyering"), - (char const *)((void *)0)); - - if (optind < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind])); - usage(1); - } - - id = gethostid(); - - id &= 0xffffffff; - - printf("%08x\n", id); - - return 0; -} diff --git a/tests/source/coreutils/id.c b/tests/source/coreutils/id.c deleted file mode 100644 index 4ae95a1..0000000 --- a/tests/source/coreutils/id.c +++ /dev/null @@ -1,7821 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct passwd { - char *pw_name; - char *pw_passwd; - - __uid_t pw_uid; - __gid_t pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; -extern void setpwent(void); - -extern void endpwent(void); - -extern struct passwd *getpwent(void); -extern struct passwd *fgetpwent(FILE *__stream) __attribute__((__nonnull__(1))); - -extern int putpwent(const struct passwd *__restrict __p, FILE *__restrict __f); - -extern struct passwd *getpwuid(__uid_t __uid); - -extern struct passwd *getpwnam(const char *__name) - __attribute__((__nonnull__(1))); -extern int getpwent_r(struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 4))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpwuid_r(__uid_t __uid, struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int getpwnam_r(const char *__restrict __name, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int fgetpwent_r(FILE *__restrict __stream, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int getpw(__uid_t __uid, char *__buffer); - -struct group { - char *gr_name; - char *gr_passwd; - __gid_t gr_gid; - char **gr_mem; -}; -extern void setgrent(void); - -extern void endgrent(void); - -extern struct group *getgrent(void); -extern struct group *fgetgrent(FILE *__stream); -extern int putgrent(const struct group *__restrict __p, FILE *__restrict __f); - -extern struct group *getgrgid(__gid_t __gid); - -extern struct group *getgrnam(const char *__name); -extern int getgrent_r(struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrgid_r(__gid_t __gid, struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrnam_r(const char *__restrict __name, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); -extern int fgetgrent_r(FILE *__restrict __stream, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int setgroups(size_t __n, const __gid_t *__groups) - __attribute__((__nothrow__, __leaf__)); -extern int getgrouplist(const char *__user, __gid_t __group, __gid_t *__groups, - int *__ngroups); -extern int initgroups(const char *__user, __gid_t __group); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int mgetgroups(const char *username, gid_t gid, gid_t **groups); - -int xgetgroups(const char *username, gid_t gid, gid_t **groups); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -_Bool print_group(gid_t, _Bool); - -_Bool print_group_list(char const *, uid_t, gid_t, gid_t, _Bool, char); - -static inline ssize_t smack_new_label_from_self(char **label) { return -1; } - -static inline int smack_set_label_for_self(char const *label) { return -1; } - -static inline _Bool - -is_smack_enabled(void) { - - return 0; -} - -char const *parse_user_spec(char const *spec_arg, uid_t *uid, gid_t *gid, - char **username_arg, char **groupname_arg); -char const *parse_user_spec_warn(char const *spec_arg, uid_t *uid, gid_t *gid, - char **username_arg, char **groupname_arg, - _Bool *pwarn); -static _Bool just_context = 0; - -static _Bool opt_zero = 0; - -static _Bool just_group_list = 0; - -static _Bool just_group = 0; - -static _Bool use_real = 0; - -static _Bool just_user = 0; - -static _Bool ok = 1; - -static _Bool multiple_users = 0; - -static _Bool use_name = 0; - -static uid_t ruid, euid; -static gid_t rgid, egid; - -static char *context = ((void *)0); - -static void print_user(uid_t uid); -static void print_full_info(char const *username); -static void print_stuff(char const *pw_name); - -static struct option const longopts[] = { - {"context", 0, ((void *)0), 'Z'}, - {"group", 0, ((void *)0), 'g'}, - {"groups", 0, ((void *)0), 'G'}, - {"name", 0, ((void *)0), 'n'}, - {"real", 0, ((void *)0), 'r'}, - {"user", 0, ((void *)0), 'u'}, - {"zero", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [USER]...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Print user and group information for each specified " - "USER,\nor (when USER omitted) for the current process.\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -a ignore, for compatibility with other versions\n " - "-Z, --context print only the security context of the process\n " - "-g, --group print only the effective group ID\n -G, --groups " - " print all group IDs\n -n, --name print a name instead of a " - "number, for -ugG\n -r, --real print the real ID instead of " - "the effective ID, with -ugG\n -u, --user print only the " - "effective user ID\n -z, --zero delimit entries with NUL " - "characters, not whitespace;\n not permitted in " - "default format\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - "\nWithout any OPTION, print some useful set of " - "identified information.\n", - 5), - stdout) - - ; - emit_ancillary_info("id"); - } - exit(status); -} - -int main(int argc, char **argv) { - int optc; - int selinux_enabled = (is_selinux_enabled() > 0); - - _Bool smack_enabled = is_smack_enabled(); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "agnruzGZ", longopts, ((void *)0))) != - -1) { - switch (optc) { - case 'a': - - break; - - case 'Z': - - if (!selinux_enabled) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"--context (-Z) works " - "only on an SELinux-enabled kernel\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "--context (-Z) works only on an " - "SELinux-enabled kernel", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "--context (-Z) works only on an " - "SELinux-enabled kernel", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - just_context = 1; - break; - - case 'g': - just_group = 1; - break; - case 'n': - use_name = 1; - break; - case 'r': - use_real = 1; - break; - case 'u': - just_user = 1; - break; - case 'z': - opt_zero = 1; - break; - case 'G': - just_group_list = 1; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "id", "GNU coreutils", Version, ("Arnold Robbins"), - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - size_t n_ids = argc - optind; - - if (n_ids && just_context) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot print security " - "context when user specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "cannot print security context when user specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "cannot print security context when user specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (just_user + just_group + just_group_list + just_context > 1) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot print " - "\\\"only\\\" of more than one choice\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot print \"only\" of more than one choice", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot print \"only\" of more than one choice", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - _Bool default_format = - !(just_user || just_group || just_group_list || just_context); - - if (default_format && (use_real || use_name)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot print only names " - "or real IDs in default format\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "cannot print only names or real IDs in default format", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "cannot print only names or real IDs in default format", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (default_format && opt_zero) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"option --zero " - "not permitted in default format\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "option --zero not permitted in default format", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "option --zero not permitted in default format", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (n_ids == 0 && - (just_context || (default_format && !getenv("POSIXLY_CORRECT")))) { - - if ((selinux_enabled && getcon(&context) && just_context) || - (smack_enabled && smack_new_label_from_self(&context) < 0 && - just_context)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"can't get " - "process context\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "can't get process context", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "can't get process context", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (n_ids >= 1) { - multiple_users = n_ids > 1 ? 1 : 0; - - n_ids += optind; - - for (; optind < n_ids; optind++) { - char *pw_name = ((void *)0); - struct passwd *pwd = ((void *)0); - char const *spec = argv[optind]; - - if (*spec) { - if (parse_user_spec(spec, &euid, ((void *)0), &pw_name, ((void *)0)) == - ((void *)0)) - pwd = pw_name ? getpwnam(pw_name) : getpwuid(euid); - } - if (pwd == ((void *)0)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: no such user", 5), quote(spec)); - ok &= 0; - } else { - if (!pw_name) - pw_name = xstrdup(pwd->pw_name); - ruid = euid = pwd->pw_uid; - rgid = egid = pwd->pw_gid; - print_stuff(pw_name); - } - free(pw_name); - } - } else { - - uid_t NO_UID = -1; - gid_t NO_GID = -1; - - if (just_user ? !use_real - : !just_group && !just_group_list && !just_context) { - - (*__errno_location()) = 0; - euid = geteuid(); - if (euid == NO_UID && (*__errno_location())) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot get effective UID\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get effective UID", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get effective UID", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (just_user ? use_real - : !just_group && (just_group_list || !just_context)) { - - (*__errno_location()) = 0; - ruid = getuid(); - if (ruid == NO_UID && (*__errno_location())) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot get real UID\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get real UID", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get real UID", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (!just_user && (just_group || just_group_list || !just_context)) { - - (*__errno_location()) = 0; - egid = getegid(); - if (egid == NO_GID && (*__errno_location())) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot get effective GID\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get effective GID", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get effective GID", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - (*__errno_location()) = 0; - rgid = getgid(); - if (rgid == NO_GID && (*__errno_location())) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot get real GID\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get real GID", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get real GID", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - print_stuff(((void *)0)); - } - - return ok ? 0 : 1; -} - -static char *gidtostr_ptr(gid_t const *gid) { - static char - buf[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - return umaxtostr(*gid, buf); -} - -static char *uidtostr_ptr(uid_t const *uid) { - static char - buf[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - return umaxtostr(*uid, buf); -} - -static void print_user(uid_t uid) { - struct passwd *pwd = ((void *)0); - - if (use_name) { - pwd = getpwuid(uid); - if (pwd == ((void *)0)) { - error(0, 0, dcgettext(((void *)0), "cannot find name for user ID %s", 5), - uidtostr_ptr(&(uid))); - ok &= 0; - } - } - - char *s = pwd ? pwd->pw_name : uidtostr_ptr(&(uid)); - fputs_unlocked(s, stdout); -} - -static void print_full_info(char const *username) { - struct passwd *pwd; - struct group *grp; - - printf(dcgettext(((void *)0), "uid=%s", 5), uidtostr_ptr(&(ruid))); - pwd = getpwuid(ruid); - if (pwd) - printf("(%s)", pwd->pw_name); - - printf(dcgettext(((void *)0), " gid=%s", 5), gidtostr_ptr(&(rgid))); - grp = getgrgid(rgid); - if (grp) - printf("(%s)", grp->gr_name); - - if (euid != ruid) { - printf(dcgettext(((void *)0), " euid=%s", 5), uidtostr_ptr(&(euid))); - pwd = getpwuid(euid); - if (pwd) - printf("(%s)", pwd->pw_name); - } - - if (egid != rgid) { - printf(dcgettext(((void *)0), " egid=%s", 5), gidtostr_ptr(&(egid))); - grp = getgrgid(egid); - if (grp) - printf("(%s)", grp->gr_name); - } - - { - gid_t *groups; - - gid_t primary_group; - if (username) - primary_group = pwd ? pwd->pw_gid : -1; - else - primary_group = egid; - - int n_groups = xgetgroups(username, primary_group, &groups); - if (n_groups < 0) { - if (username) - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to get groups for user %s", 5), - quote(username)); - else - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to get groups for the current process", 5)); - ok &= 0; - return; - } - - if (n_groups > 0) - fputs_unlocked(dcgettext(((void *)0), " groups=", 5), stdout); - for (int i = 0; i < n_groups; i++) { - if (i > 0) - putchar_unlocked(','); - fputs_unlocked(gidtostr_ptr(&(groups[i])), stdout); - grp = getgrgid(groups[i]); - if (grp) - printf("(%s)", grp->gr_name); - } - free(groups); - } - - if (context) - printf(dcgettext(((void *)0), " context=%s", 5), context); -} - -static void print_stuff(char const *pw_name) { - if (just_user) - print_user(use_real ? ruid : euid); - - else if (just_group) - ok &= print_group(use_real ? rgid : egid, use_name); - else if (just_group_list) - ok &= print_group_list(pw_name, ruid, rgid, egid, use_name, - opt_zero ? '\0' : ' '); - else if (just_context) - fputs_unlocked(context, stdout); - else - print_full_info(pw_name); - - if (opt_zero && just_group_list && multiple_users) { - putchar_unlocked('\0'); - putchar_unlocked('\0'); - } else { - putchar_unlocked(opt_zero ? '\0' : '\n'); - } -} diff --git a/tests/source/coreutils/install.c b/tests/source/coreutils/install.c deleted file mode 100644 index 7e74277..0000000 --- a/tests/source/coreutils/install.c +++ /dev/null @@ -1,8887 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct passwd { - char *pw_name; - char *pw_passwd; - - __uid_t pw_uid; - __gid_t pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; -extern void setpwent(void); - -extern void endpwent(void); - -extern struct passwd *getpwent(void); -extern struct passwd *fgetpwent(FILE *__stream) __attribute__((__nonnull__(1))); - -extern int putpwent(const struct passwd *__restrict __p, FILE *__restrict __f); - -extern struct passwd *getpwuid(__uid_t __uid); - -extern struct passwd *getpwnam(const char *__name) - __attribute__((__nonnull__(1))); -extern int getpwent_r(struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 4))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpwuid_r(__uid_t __uid, struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int getpwnam_r(const char *__restrict __name, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int fgetpwent_r(FILE *__restrict __stream, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int getpw(__uid_t __uid, char *__buffer); - -struct group { - char *gr_name; - char *gr_passwd; - __gid_t gr_gid; - char **gr_mem; -}; -extern void setgrent(void); - -extern void endgrent(void); - -extern struct group *getgrent(void); -extern struct group *fgetgrent(FILE *__stream); -extern int putgrent(const struct group *__restrict __p, FILE *__restrict __f); - -extern struct group *getgrgid(__gid_t __gid); - -extern struct group *getgrnam(const char *__name); -extern int getgrent_r(struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrgid_r(__gid_t __gid, struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrnam_r(const char *__restrict __name, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); -extern int fgetgrent_r(FILE *__restrict __stream, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int setgroups(size_t __n, const __gid_t *__groups) - __attribute__((__nothrow__, __leaf__)); -extern int getgrouplist(const char *__user, __gid_t __group, __gid_t *__groups, - int *__ngroups); -extern int initgroups(const char *__user, __gid_t __group); - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); -struct selabel_handle; -extern struct selabel_handle *selabel_open(unsigned int backend, - const struct selinux_opt *opts, - unsigned nopts); -extern void selabel_close(struct selabel_handle *handle); -extern int selabel_lookup(struct selabel_handle *handle, char **con, - const char *key, int type); -extern int selabel_lookup_raw(struct selabel_handle *handle, char **con, - const char *key, int type); - -extern _Bool selabel_partial_match(struct selabel_handle *handle, - const char *key); - -extern _Bool selabel_get_digests_all_partial_matches( - struct selabel_handle *rec, const char *key, uint8_t **calculated_digest, - uint8_t **xattr_digest, size_t *digest_len); -extern _Bool selabel_hash_all_partial_matches(struct selabel_handle *rec, - const char *key, uint8_t *digest); - -extern int selabel_lookup_best_match(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_digest(struct selabel_handle *rec, unsigned char **digest, - size_t *digest_len, char ***specfiles, - size_t *num_specfiles); - -enum selabel_cmp_result { - SELABEL_SUBSET, - SELABEL_EQUAL, - SELABEL_SUPERSET, - SELABEL_INCOMPARABLE -}; -extern enum selabel_cmp_result selabel_cmp(struct selabel_handle *h1, - struct selabel_handle *h2); -extern void selabel_stats(struct selabel_handle *handle); - -typedef enum { P_ALL, P_PID, P_PGID } idtype_t; -extern __pid_t wait(int *__stat_loc); -extern __pid_t waitpid(__pid_t __pid, int *__stat_loc, int __options); -extern int waitid(idtype_t __idtype, __id_t __id, siginfo_t *__infop, - int __options); - -struct rusage; - -extern __pid_t wait3(int *__stat_loc, int __options, struct rusage *__usage) - __attribute__((__nothrow__)); -extern __pid_t wait4(__pid_t __pid, int *__stat_loc, int __options, - struct rusage *__usage) __attribute__((__nothrow__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum backup_type { - - no_backups, - - simple_backups, - - numbered_existing_backups, - - numbered_backups -}; - -extern char const *simple_backup_suffix; - -void set_simple_backup_suffix(char const *); -char *backup_file_rename(int, char const *, enum backup_type) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -char *find_backup_file_name(int, char const *, enum backup_type) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -enum backup_type get_version(char const *context, char const *arg); -enum backup_type xget_version(char const *context, char const *arg); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; -void hash_init(void); -void forget_created(ino_t ino, dev_t dev); -char *remember_copied(char const *node, ino_t ino, dev_t dev) - __attribute__((__nonnull__)); -char *src_to_dest_lookup(ino_t ino, dev_t dev); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); - -struct selabel_handle; - -enum Sparse_type { - SPARSE_UNUSED, - - SPARSE_NEVER, - - SPARSE_AUTO, - - SPARSE_ALWAYS -}; - -enum Reflink_type { - - REFLINK_NEVER, - - REFLINK_AUTO, - - REFLINK_ALWAYS -}; - -enum Interactive { I_ALWAYS_YES = 1, I_ALWAYS_NO, I_ASK_USER, I_UNSPECIFIED }; - -enum Dereference_symlink { - DEREF_UNDEFINED = 1, - - DEREF_NEVER, - - DEREF_COMMAND_LINE_ARGUMENTS, - - DEREF_ALWAYS -}; -struct cp_options { - enum backup_type backup_type; - - enum Dereference_symlink dereference; - - enum Interactive interactive; - - enum Sparse_type sparse_mode; - - mode_t mode; - - _Bool copy_as_regular; - - _Bool unlink_dest_before_opening; - - _Bool unlink_dest_after_failed_open; - - _Bool hard_link; - - _Bool move_mode; - - _Bool install_mode; - - _Bool chown_privileges; - - _Bool owner_privileges; - - _Bool one_file_system; - - _Bool preserve_ownership; - - _Bool preserve_mode; - - _Bool preserve_timestamps; - - _Bool explicit_no_preserve_mode; - - struct selabel_handle *set_security_context; - - _Bool preserve_links; - - _Bool data_copy_required; - - _Bool require_preserve; - - _Bool preserve_security_context; - - _Bool require_preserve_context; - - _Bool preserve_xattr; - - _Bool require_preserve_xattr; - - _Bool reduce_diagnostics; - - _Bool recursive; - - _Bool set_mode; - - _Bool symbolic_link; - - _Bool update; - - _Bool verbose; - - _Bool stdin_tty; - - _Bool open_dangling_dest_symlink; - - _Bool last_file; - - int rename_errno; - - enum Reflink_type reflink_mode; - Hash_table *dest_info; - - Hash_table *src_info; -}; - -_Bool copy(char const *src_name, char const *dst_name, int dst_dirfd, - char const *dst_relname, int nonexistent_dst, - const struct cp_options *options, - - _Bool *copy_into_self, _Bool *rename_succeeded) - __attribute__((__nonnull__(1, 2, 4, 6, 7))); - -extern _Bool set_process_security_ctx(char const *src_name, - char const *dst_name, mode_t mode, - _Bool new_dst, const struct cp_options *x) - __attribute__((__nonnull__)); - -extern _Bool set_file_security_ctx(char const *dst_name, - - _Bool recurse, const struct cp_options *x) - __attribute__((__nonnull__)); - -void dest_info_init(struct cp_options *) __attribute__((__nonnull__)); -void dest_info_free(struct cp_options *) __attribute__((__nonnull__)); -void src_info_init(struct cp_options *) __attribute__((__nonnull__)); -void src_info_free(struct cp_options *) __attribute__((__nonnull__)); - -void cp_options_default(struct cp_options *) __attribute__((__nonnull__)); - -_Bool chown_failure_ok(struct cp_options const *) __attribute__((__nonnull__)) -__attribute__((__pure__)); -mode_t cached_umask(void); - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -extern size_t full_read(int fd, void *buf, size_t count); - -struct savewd; -ptrdiff_t mkancesdirs(char *, struct savewd *, - int (*)(char const *, char const *, void *), void *); - -struct savewd; - -_Bool make_dir_parents(char *dir, struct savewd *wd, - int (*make_ancestor)(char const *, char const *, void *), - void *options, mode_t mode, - void (*announce)(char const *, void *), mode_t mode_bits, - uid_t owner, gid_t group, - - _Bool preserve_existing); - -struct mode_change *mode_compile(const char *) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -struct mode_change *mode_create_from_ref(const char *) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -mode_t mode_adjust(mode_t, _Bool, mode_t, struct mode_change const *, mode_t *); - -extern void prog_fprintf(FILE *fp, char const *fmt, ...) - __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct savewd { - - enum { - - INITIAL_STATE, - - FD_STATE, - - FD_POST_CHDIR_STATE, - - FORKING_STATE, - - ERROR_STATE, - - FINAL_STATE - } state; - - union { - int fd; - int errnum; - pid_t child; - } val; -}; - -inline void savewd_init(struct savewd *wd) { wd->state = INITIAL_STATE; } - -enum { - - SAVEWD_CHDIR_NOFOLLOW = 1, - - SAVEWD_CHDIR_SKIP_READABLE = 2 -}; -int savewd_chdir(struct savewd *wd, char const *dir, int options, - int open_result[2]); - -int savewd_restore(struct savewd *wd, int status); - -inline int __attribute__((__pure__)) savewd_errno(struct savewd const *wd) { - return (wd->state == ERROR_STATE ? wd->val.errnum : 0); -} - -void savewd_finish(struct savewd *wd); -int savewd_process_files(int n_files, char **file, - int (*act)(char *, struct savewd *, void *), - void *options); - -struct selabel_handle; - -static inline _Bool - -ignorable_ctx_err(int err) { - return err == 95 || err == 61; -} - -extern _Bool - -restorecon(struct selabel_handle *selabel_handle, char const *path, - _Bool recurse); -extern int defaultcon(struct selabel_handle *selabel_handle, char const *path, - mode_t mode); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -extern int target_directory_operand(char const *file, struct stat *st); - -inline __attribute__((__pure__)) _Bool - -target_dirfd_valid(int fd) { - return fd != -1 - (-100 == -1); -} - -int fdutimens(int, char const *, struct timespec const[2]); -int utimens(char const *, struct timespec const[2]); -int lutimens(char const *, struct timespec const[2]); - -int fdutimensat(int fd, int dir, char const *name, struct timespec const[2], - int atflag); - -inline int lutimensat(int dir, char const *file, - struct timespec const times[2]) { - return utimensat(dir, file, times, 0x100); -} - -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -static int selinux_enabled = 0; -static _Bool use_default_selinux_context = 1; -static char *owner_name; - -static uid_t owner_id; - -static char *group_name; - -static gid_t group_id; - -static mode_t mode = ((0400 | 0200 | 0100) | (0400 >> 3) | (0100 >> 3) | - ((0400 >> 3) >> 3) | ((0100 >> 3) >> 3)); - -static mode_t dir_mode = ((0400 | 0200 | 0100) | (0400 >> 3) | (0100 >> 3) | - ((0400 >> 3) >> 3) | ((0100 >> 3) >> 3)); - -static mode_t dir_mode_bits = - (04000 | 02000 | 01000 | (0400 | 0200 | 0100) | - ((0400 | 0200 | 0100) >> 3) | (((0400 | 0200 | 0100) >> 3) >> 3)); - -static _Bool copy_only_if_needed; - -static _Bool strip_files; - -static _Bool dir_arg; - -static char const *strip_program = "strip"; - -enum { PRESERVE_CONTEXT_OPTION = 0x7f + 1, STRIP_PROGRAM_OPTION }; - -static struct option const long_options[] = { - {"backup", 2, ((void *)0), 'b'}, - {"compare", 0, ((void *)0), 'C'}, - {"context", 2, ((void *)0), 'Z'}, - {"directory", 0, ((void *)0), 'd'}, - {"group", 1, ((void *)0), 'g'}, - {"mode", 1, ((void *)0), 'm'}, - {"no-target-directory", 0, ((void *)0), 'T'}, - {"owner", 1, ((void *)0), 'o'}, - {"preserve-timestamps", 0, ((void *)0), 'p'}, - {"preserve-context", 0, ((void *)0), PRESERVE_CONTEXT_OPTION}, - {"strip", 0, ((void *)0), 's'}, - {"strip-program", 1, ((void *)0), STRIP_PROGRAM_OPTION}, - {"suffix", 1, ((void *)0), 'S'}, - {"target-directory", 1, ((void *)0), 't'}, - {"verbose", 0, ((void *)0), 'v'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static _Bool - -have_same_content(int a_fd, int b_fd) { - enum { CMP_BLOCK_SIZE = 4096 }; - static char a_buff[CMP_BLOCK_SIZE]; - static char b_buff[CMP_BLOCK_SIZE]; - - size_t size; - while (0 < (size = full_read(a_fd, a_buff, sizeof a_buff))) { - if (size != full_read(b_fd, b_buff, sizeof b_buff)) - return 0; - - if (memcmp(a_buff, b_buff, size) != 0) - return 0; - } - - return size == 0; -} - -static _Bool - -extra_mode(mode_t input) { - mode_t mask = ((0400 | 0200 | 0100) | ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3)) | - 0170000; - return !!(input & ~mask); -} - -static _Bool - -need_copy(char const *src_name, char const *dest_name, int dest_dirfd, - char const *dest_relname, const struct cp_options *x) { - struct stat src_sb, dest_sb; - int src_fd, dest_fd; - - _Bool content_match; - - if (extra_mode(mode)) - return 1; - - if (lstat(src_name, &src_sb) != 0) - return 1; - - if (fstatat(dest_dirfd, dest_relname, &dest_sb, 0x100) != 0) - return 1; - - if (!((((src_sb.st_mode)) & 0170000) == (0100000)) || - !((((dest_sb.st_mode)) & 0170000) == (0100000)) - - || extra_mode(src_sb.st_mode) || extra_mode(dest_sb.st_mode)) - return 1; - - if (src_sb.st_size != dest_sb.st_size || - (dest_sb.st_mode & (04000 | 02000 | 01000 | (0400 | 0200 | 0100) | - ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3))) != mode) - return 1; - - if (owner_id == (uid_t)-1) { - - (*__errno_location()) = 0; - uid_t ruid = getuid(); - if ((ruid == (uid_t)-1 && (*__errno_location())) || dest_sb.st_uid != ruid) - return 1; - } else if (dest_sb.st_uid != owner_id) - return 1; - - if (group_id == (uid_t)-1) { - - (*__errno_location()) = 0; - gid_t rgid = getgid(); - if ((rgid == (uid_t)-1 && (*__errno_location())) || dest_sb.st_gid != rgid) - return 1; - } else if (dest_sb.st_gid != group_id) - return 1; - - if (selinux_enabled && x->preserve_security_context) { - char *file_scontext = ((void *)0); - char *to_scontext = ((void *)0); - - _Bool scontext_match; - - if (rpl_getfilecon(src_name, &file_scontext) == -1) - return 1; - - if (rpl_getfilecon(dest_name, &to_scontext) == -1) { - freecon(file_scontext); - return 1; - } - - scontext_match = (strcmp(file_scontext, to_scontext) == 0); - - freecon(file_scontext); - freecon(to_scontext); - if (!scontext_match) - return 1; - } - - src_fd = open(src_name, 00 | 0); - if (src_fd < 0) - return 1; - - dest_fd = openat(dest_dirfd, dest_relname, 00 | 0); - if (dest_fd < 0) { - close(src_fd); - return 1; - } - - content_match = have_same_content(src_fd, dest_fd); - - close(src_fd); - close(dest_fd); - return !content_match; -} - -static void cp_option_init(struct cp_options *x) { - cp_options_default(x); - x->copy_as_regular = 1; - x->reflink_mode = REFLINK_AUTO; - x->dereference = DEREF_ALWAYS; - x->unlink_dest_before_opening = 1; - x->unlink_dest_after_failed_open = 0; - x->hard_link = 0; - x->interactive = I_UNSPECIFIED; - x->move_mode = 0; - x->install_mode = 1; - x->one_file_system = 0; - x->preserve_ownership = 0; - x->preserve_links = 0; - x->preserve_mode = 0; - x->preserve_timestamps = 0; - x->explicit_no_preserve_mode = 0; - x->reduce_diagnostics = 0; - x->data_copy_required = 1; - x->require_preserve = 0; - x->require_preserve_xattr = 0; - x->recursive = 0; - x->sparse_mode = SPARSE_AUTO; - x->symbolic_link = 0; - x->backup_type = no_backups; - - x->set_mode = 1; - x->mode = 0400 | 0200; - x->stdin_tty = 0; - - x->open_dangling_dest_symlink = 0; - x->update = 0; - x->require_preserve_context = 0; - x->preserve_security_context = 0; - x->set_security_context = ((void *)0); - x->preserve_xattr = 0; - x->verbose = 0; - x->dest_info = ((void *)0); - x->src_info = ((void *)0); -} - -static struct selabel_handle *get_labeling_handle(void) { - static _Bool initialized; - static struct selabel_handle *hnd; - if (!initialized) { - initialized = 1; - hnd = selabel_open(0, ((void *)0), 0); - if (!hnd) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: security labeling handle failed", - 5)); - } - return hnd; -} - -static void setdefaultfilecon(char const *file) { - struct stat st; - char *scontext = ((void *)0); - - if (selinux_enabled != 1) { - - return; - } - if (lstat(file, &st) != 0) - return; - - struct selabel_handle *hnd = get_labeling_handle(); - if (!hnd) - return; - if (selabel_lookup(hnd, &scontext, file, st.st_mode) != 0) { - if ((*__errno_location()) != 2 && !ignorable_ctx_err((*__errno_location()))) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: %s: context lookup failed", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return; - } - - if (lsetfilecon(file, scontext) < 0 && (*__errno_location()) != 95) - error(0, (*__errno_location()), - - dcgettext(((void *)0), "warning: %s: failed to change context to %s", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file), - quote_n(1, scontext)); - - freecon(scontext); -} - -static void announce_mkdir(char const *dir, void *options) { - struct cp_options const *x = options; - if (x->verbose) - prog_fprintf(stdout, dcgettext(((void *)0), "creating directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); -} - -static int make_ancestor(char const *dir, char const *component, - void *options) { - struct cp_options const *x = options; - if (x->set_security_context && - defaultcon(x->set_security_context, component, 0040000) < 0 && - !ignorable_ctx_err((*__errno_location()))) - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to set default creation context for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - - int r = mkdir(component, ((0400 | 0200 | 0100) | (0400 >> 3) | (0100 >> 3) | - ((0400 >> 3) >> 3) | ((0100 >> 3) >> 3))); - if (r == 0) - announce_mkdir(dir, options); - return r; -} - -static int process_dir(char *dir, struct savewd *wd, void *options) { - struct cp_options const *x = options; - - int ret = - (make_dir_parents(dir, wd, make_ancestor, options, dir_mode, - announce_mkdir, dir_mode_bits, owner_id, group_id, 0) - ? 0 - - : 1); - - if (ret == 0 && x->set_security_context) { - if (!restorecon(x->set_security_context, last_component(dir), 0) && - !ignorable_ctx_err((*__errno_location()))) - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to restore context for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - } - - return ret; -} - -static _Bool - -copy_file(char const *from, char const *to, int to_dirfd, - char const *to_relname, const struct cp_options *x) { - - _Bool copy_into_self; - - if (copy_only_if_needed && !need_copy(from, to, to_dirfd, to_relname, x)) - return 1; - - return copy(from, to, to_dirfd, to_relname, 0, x, ©_into_self, - ((void *)0)); -} - -static _Bool - -change_attributes(char const *name, int dirfd, char const *relname) { - - _Bool ok = 0; - if (!(owner_id == (uid_t)-1 && group_id == (gid_t)-1) && - lchownat(dirfd, relname, owner_id, group_id) != 0) - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot change ownership of %s", 5), - quotearg_style(shell_escape_always_quoting_style, name)); - else if (chmodat(dirfd, relname, mode) != 0) - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot change permissions of %s", 5), - quotearg_style(shell_escape_always_quoting_style, name)); - else - ok = 1; - - if (use_default_selinux_context) - setdefaultfilecon(name); - - return ok; -} - -static _Bool - -change_timestamps(struct stat const *src_sb, char const *dest, int dirfd, - char const *relname) { - struct timespec timespec[2]; - timespec[0] = get_stat_atime(src_sb); - timespec[1] = get_stat_mtime(src_sb); - - if (utimensat(dirfd, relname, timespec, 0)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot set timestamps for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dest)); - return 0; - } - return 1; -} - -static _Bool - -strip(char const *name) { - int status; - - _Bool ok = 0; - pid_t pid = fork(); - - switch (pid) { - case -1: - error(0, (*__errno_location()), - dcgettext(((void *)0), "fork system call failed", 5)); - break; - case 0: - execlp(strip_program, strip_program, name, ((void *)0)); - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot " - "run %s\", 5), quotearg_style (shell_escape_always_quoting_style, " - "strip_program)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot run %s", 5), - quotearg_style(shell_escape_always_quoting_style, - strip_program)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot run %s", 5), - quotearg_style(shell_escape_always_quoting_style, - strip_program)), - ((0) ? (void)0 : __builtin_unreachable())))); - default: - if (waitpid(pid, &status, 0) < 0) - error(0, (*__errno_location()), - dcgettext(((void *)0), "waiting for strip", 5)); - else if (!(((status)&0x7f) == 0) || (((status)&0xff00) >> 8)) - error(0, 0, - dcgettext(((void *)0), "strip process terminated abnormally", 5)); - else - ok = 1; - break; - } - return ok; -} - -static void get_ids(void) { - struct passwd *pw; - struct group *gr; - - if (owner_name) { - pw = getpwnam(owner_name); - if (pw == ((void *)0)) { - uintmax_t tmp; - if (xstrtoumax(owner_name, ((void *)0), 0, &tmp, "") != LONGINT_OK || - ((uid_t)(!(!((uid_t)0 < (uid_t)-1)) - ? (uid_t)-1 - : ((((uid_t)1 << ((sizeof(uid_t) * 8) - 2)) - 1) * 2 + - 1))) < tmp) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid user " - "%s\", 5), quote (owner_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid user %s", 5), - quote(owner_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid user %s", 5), - quote(owner_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - owner_id = tmp; - } else - owner_id = pw->pw_uid; - endpwent(); - } else - owner_id = (uid_t)-1; - - if (group_name) { - gr = getgrnam(group_name); - if (gr == ((void *)0)) { - uintmax_t tmp; - if (xstrtoumax(group_name, ((void *)0), 0, &tmp, "") != LONGINT_OK || - ((gid_t)(!(!((gid_t)0 < (gid_t)-1)) - ? (gid_t)-1 - : ((((gid_t)1 << ((sizeof(gid_t) * 8) - 2)) - 1) * 2 + - 1))) < tmp) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "group %s\", 5), quote (group_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid group %s", 5), - quote(group_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid group %s", 5), - quote(group_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - group_id = tmp; - } else - group_id = gr->gr_gid; - endgrent(); - } else - group_id = (gid_t)-1; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext( - ((void *)0), - "Usage: %s [OPTION]... [-T] SOURCE DEST\n or: %s [OPTION]... " - "SOURCE... DIRECTORY\n or: %s [OPTION]... -t DIRECTORY " - "SOURCE...\n or: %s [OPTION]... -d DIRECTORY...\n", - 5) - - , - program_name, program_name, program_name, program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThis install program copies files (often just compiled) into " - "destination\nlocations you choose. If you want to download and " - "install a ready-to-use\npackage on a GNU/Linux system, you should " - "instead be using a package manager\nlike yum(1) or " - "apt-get(1).\n\nIn the first three forms, copy SOURCE to DEST or " - "multiple SOURCE(s) to\nthe existing DIRECTORY, while setting " - "permission modes and owner/group.\nIn the 4th form, create all " - "components of the given DIRECTORY(ies).\n", - 5), - stdout); - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " --backup[=CONTROL] make a backup of each existing " - "destination file\n -b like --backup but does " - "not accept an argument\n -c (ignored)\n -C, " - "--compare compare content of source and destination files, " - "and\n if no change to content, ownership, " - "and permissions,\n do not modify the " - "destination at all\n -d, --directory treat all arguments as " - "directory names; create all\n components " - "of the specified directories\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " -D create all leading components of DEST " - "except the last,\n or all components " - "of --target-directory,\n then copy " - "SOURCE to DEST\n -g, --group=GROUP set group ownership, " - "instead of process' current group\n -m, --mode=MODE " - "set permission mode (as in chmod), instead of rwxr-xr-x\n " - "-o, --owner=OWNER set ownership (super-user only)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -p, --preserve-timestamps apply access/modification times of " - "SOURCE files\n to corresponding " - "destination files\n -s, --strip strip symbol tables\n " - " --strip-program=PROGRAM program used to strip binaries\n -S, " - "--suffix=SUFFIX override the usual backup suffix\n -t, " - "--target-directory=DIRECTORY copy all SOURCE arguments into " - "DIRECTORY\n -T, --no-target-directory treat DEST as a normal " - "file\n -v, --verbose print the name of each directory as " - "it is created\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " --preserve-context preserve SELinux security context\n -Z " - " set SELinux security context of " - "destination\n file and each created " - "directory to default type\n --context[=CTX] like -Z, or " - "if CTX is specified then set the\n " - "SELinux or SMACK security context to CTX\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_backup_suffix_note(); - emit_ancillary_info("install"); - } - exit(status); -} - -static _Bool - -install_file_in_file(char const *from, char const *to, int to_dirfd, - char const *to_relname, const struct cp_options *x) { - struct stat from_sb; - if (x->preserve_timestamps && stat(from, &from_sb) != 0) { - error(0, (*__errno_location()), dcgettext(((void *)0), "cannot stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, from)); - return 0; - } - if (!copy_file(from, to, to_dirfd, to_relname, x)) - return 0; - if (strip_files) - if (!strip(to)) { - if (unlinkat(to_dirfd, to_relname, 0) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot unlink %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, to)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot unlink %s", 5), - quotearg_style(shell_escape_always_quoting_style, to)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot unlink %s", 5), - quotearg_style(shell_escape_always_quoting_style, to)), - ((0) ? (void)0 : __builtin_unreachable())))); - return 0; - } - if (x->preserve_timestamps && - (strip_files || !((((from_sb.st_mode)) & 0170000) == (0100000))) && - !change_timestamps(&from_sb, to, to_dirfd, to_relname)) - return 0; - return change_attributes(to, to_dirfd, to_relname); -} - -static _Bool - -mkancesdirs_safe_wd(char const *from, char *to, struct cp_options *x, - - _Bool save_always) { - - _Bool save_working_directory = - save_always || !((((from)[0]) == '/') && (((to)[0]) == '/')); - int status = 0; - - struct savewd wd; - savewd_init(&wd); - if (!save_working_directory) - savewd_finish(&wd); - - if (mkancesdirs(to, &wd, make_ancestor, x) == -1) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot create directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, to)); - status = 1; - } - - if (save_working_directory) { - int restore_result = savewd_restore(&wd, status); - int restore_errno = (*__errno_location()); - savewd_finish(&wd); - if (0 < restore_result) - return 0; - if (restore_result < 0 && status == 0) { - error(0, restore_errno, - dcgettext(((void *)0), "cannot create directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, to)); - return 0; - } - } - return status == 0; -} - -static _Bool - -install_file_in_file_parents(char const *from, char *to, - const struct cp_options *x) { - return (mkancesdirs_safe_wd(from, to, (struct cp_options *)x, 0) && - install_file_in_file(from, to, -100, to, x)); -} - -static _Bool - -install_file_in_dir(char const *from, char const *to_dir, - const struct cp_options *x, _Bool mkdir_and_install, - int *target_dirfd) { - char const *from_base = last_component(from); - char *to_relname; - char *to = file_name_concat(to_dir, from_base, &to_relname); - - _Bool ret = 1; - - if (!target_dirfd_valid(*target_dirfd) && (ret = mkdir_and_install) && - (ret = mkancesdirs_safe_wd(from, to, (struct cp_options *)x, 1))) { - int fd = open(to_dir, O_PATHSEARCH | 0200000); - if (fd < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s", 5), - quotearg_style(shell_escape_always_quoting_style, to)); - ret = 0; - } else - *target_dirfd = fd; - } - - if (ret) { - int to_dirfd = *target_dirfd; - if (!target_dirfd_valid(to_dirfd)) { - to_dirfd = -100; - to_relname = to; - } - ret = install_file_in_file(from, to, to_dirfd, to_relname, x); - } - - free(to); - return ret; -} - -int main(int argc, char **argv) { - int optc; - int exit_status = 0; - char const *specified_mode = ((void *)0); - - _Bool make_backups = 0; - char const *backup_suffix = ((void *)0); - char *version_control_string = ((void *)0); - - _Bool mkdir_and_install = 0; - struct cp_options x; - char const *target_directory = ((void *)0); - - _Bool no_target_directory = 0; - int n_files; - char **file; - - _Bool strip_program_specified = 0; - char const *scontext = ((void *)0); - - selinux_enabled = (0 < is_selinux_enabled()); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdin); - - cp_option_init(&x); - - owner_name = ((void *)0); - group_name = ((void *)0); - strip_files = 0; - dir_arg = 0; - umask(0); - - while ((optc = getopt_long(argc, argv, "bcCsDdg:m:o:pt:TvS:Z", long_options, - - ((void *)0))) != -1) { - switch (optc) { - case 'b': - make_backups = 1; - if (optarg) - version_control_string = optarg; - break; - case 'c': - break; - case 'C': - copy_only_if_needed = 1; - break; - case 's': - strip_files = 1; - - signal(17, ((__sighandler_t)0)); - - break; - case STRIP_PROGRAM_OPTION: - strip_program = xstrdup(optarg); - strip_program_specified = 1; - break; - case 'd': - dir_arg = 1; - break; - case 'D': - mkdir_and_install = 1; - break; - case 'v': - x.verbose = 1; - break; - case 'g': - group_name = optarg; - break; - case 'm': - specified_mode = optarg; - break; - case 'o': - owner_name = optarg; - break; - case 'p': - x.preserve_timestamps = 1; - break; - case 'S': - make_backups = 1; - backup_suffix = optarg; - break; - case 't': - if (target_directory) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "target directories specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "multiple target directories specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "multiple target directories specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - target_directory = optarg; - break; - case 'T': - no_target_directory = 1; - break; - - case PRESERVE_CONTEXT_OPTION: - if (!selinux_enabled) { - error(0, 0, - dcgettext(((void *)0), - "WARNING: ignoring --preserve-context; " - "this kernel is not SELinux-enabled", - 5) - - ); - break; - } - x.preserve_security_context = 1; - use_default_selinux_context = 0; - break; - case 'Z': - if (selinux_enabled) { - - use_default_selinux_context = 0; - - if (optarg) - scontext = optarg; - else - x.set_security_context = get_labeling_handle(); - } else if (optarg) { - error(0, 0, - - dcgettext(((void *)0), - "warning: ignoring --context; " - "it requires an SELinux-enabled kernel", - 5) - - ); - } - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "install", "GNU coreutils", Version, - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (dir_arg && strip_files) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"the strip option may not " - "be used when installing a directory\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "the strip option may not be used when installing " - "a directory", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "the strip option may not be used when installing " - "a directory", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (dir_arg && target_directory) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"target directory not " - "allowed when installing a directory\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext( - ((void *)0), - "target directory not allowed when installing a directory", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext( - ((void *)0), - "target directory not allowed when installing a directory", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - x.backup_type = - (make_backups ? xget_version(dcgettext(((void *)0), "backup type", 5), - version_control_string) - : no_backups); - set_simple_backup_suffix(backup_suffix); - - if (x.preserve_security_context && (x.set_security_context || scontext)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot set " - "target context and preserve it\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot set target context and preserve it", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot set target context and preserve it", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (scontext && setfscreatecon(scontext) < 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to set default file creation context " - "to %s\", 5), quote (scontext)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to set default file creation context to %s", 5), - quote(scontext)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to set default file creation context to %s", 5), - quote(scontext)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - - n_files = argc - optind; - file = argv + optind; - - if (n_files <= !(dir_arg || target_directory)) { - if (n_files <= 0) - error(0, 0, dcgettext(((void *)0), "missing file operand", 5)); - else - error(0, 0, - dcgettext(((void *)0), "missing destination file operand after %s", - 5), - quotearg_style(shell_escape_always_quoting_style, file[0])); - usage(1); - } - - struct stat sb; - int target_dirfd = -100; - if (no_target_directory) { - if (target_directory) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot " - "combine --target-directory (-t) \" \"and " - "--no-target-directory (-T)\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot combine --target-directory (-t) " - "and --no-target-directory (-T)", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot combine --target-directory (-t) " - "and --no-target-directory (-T)", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - if (2 < n_files) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quotearg_style(shell_escape_always_quoting_style, file[2])); - usage(1); - } - } else if (target_directory) { - target_dirfd = target_directory_operand(target_directory, &sb); - if (!(target_dirfd_valid(target_dirfd) || - (mkdir_and_install && (*__errno_location()) == 2))) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"failed to access %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "target_directory)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to access %s", 5), - quotearg_style(shell_escape_always_quoting_style, - target_directory)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to access %s", 5), - quotearg_style(shell_escape_always_quoting_style, - target_directory)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else if (!dir_arg) { - char const *lastfile = file[n_files - 1]; - int fd = target_directory_operand(lastfile, &sb); - if (target_dirfd_valid(fd)) { - target_dirfd = fd; - target_directory = lastfile; - n_files--; - } else if (2 < n_files) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"target %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, lastfile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "target %s", 5), - quotearg_style(shell_escape_always_quoting_style, lastfile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "target %s", 5), - quotearg_style(shell_escape_always_quoting_style, lastfile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (specified_mode) { - struct mode_change *change = mode_compile(specified_mode); - if (!change) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid mode " - "%s\", 5), quote (specified_mode)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid mode %s", 5), - quote(specified_mode)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid mode %s", 5), - quote(specified_mode)), - ((0) ? (void)0 : __builtin_unreachable())))); - mode = mode_adjust(0, 0, 0, change, ((void *)0)); - dir_mode = mode_adjust(0, 1, 0, change, &dir_mode_bits); - free(change); - } - - if (strip_program_specified && !strip_files) - error(0, 0, - dcgettext(((void *)0), - "WARNING: ignoring --strip-program option as -s option was " - "not specified", - 5) - - ); - - if (copy_only_if_needed && x.preserve_timestamps) { - error(0, 0, - dcgettext(((void *)0), - "options --compare (-C) and --preserve-timestamps are " - "mutually exclusive", - 5) - - ); - usage(1); - } - - if (copy_only_if_needed && strip_files) { - error(0, 0, - dcgettext(((void *)0), - "options --compare (-C) and --strip are mutually " - "exclusive", - 5) - - ); - usage(1); - } - - if (copy_only_if_needed && extra_mode(mode)) - error(0, 0, - dcgettext(((void *)0), - "the --compare (-C) option is ignored when you" - " specify a mode with non-permission bits", - 5) - - ); - - get_ids(); - - if (dir_arg) - exit_status = savewd_process_files(n_files, file, process_dir, &x); - else { - - hash_init(); - - if (!target_directory) { - if (!(mkdir_and_install - ? install_file_in_file_parents(file[0], file[1], &x) - : install_file_in_file(file[0], file[1], -100, file[1], &x))) - exit_status = 1; - } else { - int i; - dest_info_init(&x); - for (i = 0; i < n_files; i++) - if (!install_file_in_dir(file[i], target_directory, &x, - i == 0 && mkdir_and_install, &target_dirfd)) - exit_status = 1; - } - } - - exit(exit_status); -} diff --git a/tests/source/coreutils/join.c b/tests/source/coreutils/join.c deleted file mode 100644 index 0b5c34a..0000000 --- a/tests/source/coreutils/join.c +++ /dev/null @@ -1,8141 +0,0 @@ - - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); -extern _Bool hard_locale(int category); - -struct linebuffer { - idx_t size; - idx_t length; - char *buffer; -}; - -void initbuffer(struct linebuffer *linebuffer); - -struct linebuffer *readlinebuffer_delim(struct linebuffer *linebuffer, - FILE *stream, char delimiter); - -struct linebuffer *readlinebuffer(struct linebuffer *linebuffer, FILE *stream); - -void freebuffer(struct linebuffer *); - -int memcasecmp(const void *vs1, const void *vs2, size_t n) - __attribute__((__pure__)); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -int xmemcoll(char *__restrict__, size_t, char *__restrict__, size_t); -int xmemcoll0(char const *, size_t, char const *, size_t); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); -struct outlist { - - int file; - - size_t field; - - struct outlist *next; -}; - -struct field { - char *beg; - size_t len; -}; - -struct line { - struct linebuffer buf; - size_t nfields; - size_t nfields_allocated; - struct field *fields; -}; - -struct seq { - size_t count; - size_t alloc; - struct line **lines; -}; - -static struct line *prevline[2] = {((void *)0), ((void *)0)}; - -static uintmax_t line_no[2] = {0, 0}; - -static char *g_names[2]; - -static struct line *spareline[2] = {((void *)0), ((void *)0)}; - -static _Bool hard_LC_COLLATE; - -static _Bool print_unpairables_1, print_unpairables_2; - -static _Bool print_pairables; - -static _Bool seen_unpairable; - -static _Bool issued_disorder_warning[2]; - -static char const *empty_filler; - -static _Bool autoformat; - -static size_t autocount_1; -static size_t autocount_2; - -static size_t join_field_1 = (18446744073709551615UL); -static size_t join_field_2 = (18446744073709551615UL); - -static struct outlist outlist_head; - -static struct outlist *outlist_end = &outlist_head; - -static int tab = -1; - -static enum { - CHECK_ORDER_DEFAULT, - CHECK_ORDER_ENABLED, - CHECK_ORDER_DISABLED -} check_input_order; - -enum { - CHECK_ORDER_OPTION = 0x7f + 1, - NOCHECK_ORDER_OPTION, - HEADER_LINE_OPTION -}; - -static struct option const longopts[] = { - {"ignore-case", 0, ((void *)0), 'i'}, - {"check-order", 0, ((void *)0), CHECK_ORDER_OPTION}, - {"nocheck-order", 0, ((void *)0), NOCHECK_ORDER_OPTION}, - {"zero-terminated", 0, ((void *)0), 'z'}, - {"header", 0, ((void *)0), HEADER_LINE_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static struct line uni_blank; - -static _Bool ignore_case; - -static _Bool join_header_lines; - -static char eolchar = '\n'; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... FILE1 FILE2\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "For each pair of input lines with identical join fields, " - "write a line to\nstandard output. The default join field " - "is the first, delimited by blanks.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nWhen FILE1 or FILE2 (not both) is -, read standard input.\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n -a FILENUM also print unpairable lines from " - "file FILENUM, where\n FILENUM is " - "1 or 2, corresponding to FILE1 or FILE2\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -e STRING replace missing (empty) input " - "fields with STRING;\n I.e., " - "missing fields specified with '-12jo' options\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -i, --ignore-case ignore differences in case when " - "comparing fields\n -j FIELD equivalent to " - "'-1 FIELD -2 FIELD'\n -o FORMAT obey FORMAT " - "while constructing output line\n -t CHAR " - "use CHAR as input and output field separator\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -v FILENUM like -a FILENUM, but suppress joined " - "output lines\n -1 FIELD join on this FIELD of file " - "1\n -2 FIELD join on this FIELD of file 2\n " - "--check-order check that the input is correctly sorted, " - "even\n if all input lines are " - "pairable\n --nocheck-order do not check that the input is " - "correctly sorted\n --header treat the first line " - "in each file as field headers,\n print " - "them without trying to pair them\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero-terminated line delimiter is NUL, not newline\n", 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nUnless -t CHAR is given, leading blanks separate fields and are " - "ignored,\nelse fields are separated by CHAR. Any FIELD is a " - "field number counted\nfrom 1. FORMAT is one or more comma or " - "blank separated specifications,\neach being 'FILENUM.FIELD' or " - "'0'. Default FORMAT outputs the join field,\nthe remaining " - "fields from FILE1, the remaining fields from FILE2, " - "all\nseparated by CHAR. If FORMAT is the keyword 'auto', then " - "the first\nline of each file determines the number of fields " - "output for each line.\n\nImportant: FILE1 and FILE2 must be " - "sorted on the join fields.\nE.g., use \"sort -k 1b,1\" if 'join' " - "has no options,\nor use \"join -t ''\" if 'sort' has no " - "options.\nNote, comparisons honor the rules specified by " - "'LC_COLLATE'.\nIf the input is not sorted and some lines cannot " - "be joined, a\nwarning message will be given.\n", - 5), - stdout); - emit_ancillary_info("join"); - } - exit(status); -} - -static void extract_field(struct line *line, char *field, size_t len) { - if (line->nfields >= line->nfields_allocated) { - line->fields = ((!!sizeof(struct { - _Static_assert(sizeof *(line->fields) != 1, - "verify_expr (" - "sizeof *(line->fields) != 1" - ", " - "x2nrealloc (line->fields, &line->nfields_allocated, " - "sizeof *(line->fields))" - ")"); - int _gl_dummy; - })) - ? (x2nrealloc(line->fields, &line->nfields_allocated, - sizeof *(line->fields))) - : (x2nrealloc(line->fields, &line->nfields_allocated, - sizeof *(line->fields)))); - } - line->fields[line->nfields].beg = field; - line->fields[line->nfields].len = len; - ++(line->nfields); -} - -static void xfields(struct line *line) { - char *ptr = line->buf.buffer; - char const *lim = ptr + line->buf.length - 1; - - if (ptr == lim) - return; - - if (0 <= tab && tab != '\n') { - char *sep; - for (; (sep = memchr(ptr, tab, lim - ptr)) != ((void *)0); ptr = sep + 1) - extract_field(line, ptr, sep - ptr); - } else if (tab < 0) { - - while (field_sep(*ptr)) - if (++ptr == lim) - return; - - do { - char *sep; - for (sep = ptr + 1; sep != lim && !field_sep(*sep); sep++) - continue; - extract_field(line, ptr, sep - ptr); - if (sep == lim) - return; - for (ptr = sep + 1; ptr != lim && field_sep(*ptr); ptr++) - continue; - } while (ptr != lim); - } - - extract_field(line, ptr, lim - ptr); -} - -static void freeline(struct line *line) { - if (line == ((void *)0)) - return; - free(line->fields); - line->fields = ((void *)0); - free(line->buf.buffer); - line->buf.buffer = ((void *)0); -} - -static int keycmp(struct line const *line1, struct line const *line2, - size_t jf_1, size_t jf_2) { - - char *beg1; - char *beg2; - - size_t len1; - size_t len2; - int diff; - - if (jf_1 < line1->nfields) { - beg1 = line1->fields[jf_1].beg; - len1 = line1->fields[jf_1].len; - } else { - beg1 = ((void *)0); - len1 = 0; - } - - if (jf_2 < line2->nfields) { - beg2 = line2->fields[jf_2].beg; - len2 = line2->fields[jf_2].len; - } else { - beg2 = ((void *)0); - len2 = 0; - } - - if (len1 == 0) - return len2 == 0 ? 0 : -1; - if (len2 == 0) - return 1; - - if (ignore_case) { - - diff = memcasecmp(beg1, beg2, (((len1) < (len2)) ? (len1) : (len2))); - } else { - if (hard_LC_COLLATE) - return xmemcoll(beg1, len1, beg2, len2); - diff = memcmp(beg1, beg2, (((len1) < (len2)) ? (len1) : (len2))); - } - - if (diff) - return diff; - return len1 < len2 ? -1 : len1 != len2; -} -static void check_order(const struct line *prev, const struct line *current, - int whatfile) { - if (check_input_order != CHECK_ORDER_DISABLED && - ((check_input_order == CHECK_ORDER_ENABLED) || seen_unpairable)) { - if (!issued_disorder_warning[whatfile - 1]) { - size_t join_field = whatfile == 1 ? join_field_1 : join_field_2; - if (keycmp(prev, current, join_field, join_field) > 0) { - - size_t len = current->buf.length; - if (0 < len && current->buf.buffer[len - 1] == '\n') - --len; - - len = (((0x7fffffff) < (len)) ? (0x7fffffff) : (len)); - - error((check_input_order == CHECK_ORDER_ENABLED ? 1 : 0), 0, - dcgettext(((void *)0), - "%s:%" - "l" - "u" - ": is not sorted: %.*s", - 5), - g_names[whatfile - 1], line_no[whatfile - 1], (int)len, - current->buf.buffer); - - issued_disorder_warning[whatfile - 1] = 1; - } - } - } -} - -static inline void reset_line(struct line *line) { line->nfields = 0; } - -static struct line *init_linep(struct line **linep) { - struct line *line = xcalloc(1, sizeof *line); - *linep = line; - return line; -} - -static _Bool - -get_line(FILE *fp, struct line **linep, int which) { - struct line *line = *linep; - - if (line == prevline[which - 1]) { - do { - struct line *tmp = line; - line = spareline[which - 1]; - spareline[which - 1] = tmp; - } while (0); - ; - *linep = line; - } - - if (line) - reset_line(line); - else - line = init_linep(linep); - - if (!readlinebuffer_delim(&line->buf, fp, eolchar)) { - if (ferror_unlocked(fp)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - freeline(line); - return 0; - } - ++line_no[which - 1]; - - xfields(line); - - if (prevline[which - 1]) - check_order(prevline[which - 1], line, which); - - prevline[which - 1] = line; - return 1; -} - -static void free_spareline(void) { - for (size_t i = 0; i < (sizeof(spareline) / sizeof *(spareline)); i++) { - if (spareline[i]) { - freeline(spareline[i]); - free(spareline[i]); - } - } -} - -static void initseq(struct seq *seq) { - seq->count = 0; - seq->alloc = 0; - seq->lines = ((void *)0); -} - -static _Bool - -getseq(FILE *fp, struct seq *seq, int whichfile) { - if (seq->count == seq->alloc) { - seq->lines = - ((!!sizeof(struct { - _Static_assert( - sizeof *(seq->lines) != 1, - "verify_expr (" - "sizeof *(seq->lines) != 1" - ", " - "x2nrealloc (seq->lines, &seq->alloc, sizeof *(seq->lines))" - ")"); - int _gl_dummy; - })) - ? (x2nrealloc(seq->lines, &seq->alloc, sizeof *(seq->lines))) - : (x2nrealloc(seq->lines, &seq->alloc, sizeof *(seq->lines)))); - for (size_t i = seq->count; i < seq->alloc; i++) - seq->lines[i] = ((void *)0); - } - - if (get_line(fp, &seq->lines[seq->count], whichfile)) { - ++seq->count; - return 1; - } - return 0; -} - -static _Bool - -advance_seq(FILE *fp, struct seq *seq, _Bool first, int whichfile) { - if (first) - seq->count = 0; - - return getseq(fp, seq, whichfile); -} - -static void delseq(struct seq *seq) { - for (size_t i = 0; i < seq->alloc; i++) { - freeline(seq->lines[i]); - free(seq->lines[i]); - } - free(seq->lines); -} - -static void prfield(size_t n, struct line const *line) { - size_t len; - - if (n < line->nfields) { - len = line->fields[n].len; - if (len) - fwrite_unlocked(line->fields[n].beg, 1, len, stdout); - else if (empty_filler) - fputs_unlocked(empty_filler, stdout); - } else if (empty_filler) - fputs_unlocked(empty_filler, stdout); -} - -static void prfields(struct line const *line, size_t join_field, - size_t autocount) { - size_t i; - size_t nfields = autoformat ? autocount : line->nfields; - char output_separator = tab < 0 ? ' ' : tab; - - for (i = 0; i < join_field && i < nfields; ++i) { - putchar_unlocked(output_separator); - prfield(i, line); - } - for (i = join_field + 1; i < nfields; ++i) { - putchar_unlocked(output_separator); - prfield(i, line); - } -} - -static void prjoin(struct line const *line1, struct line const *line2) { - const struct outlist *outlist; - char output_separator = tab < 0 ? ' ' : tab; - size_t field; - struct line const *line; - - outlist = outlist_head.next; - if (outlist) { - const struct outlist *o; - - o = outlist; - while (1) { - if (o->file == 0) { - if (line1 == &uni_blank) { - line = line2; - field = join_field_2; - } else { - line = line1; - field = join_field_1; - } - } else { - line = (o->file == 1 ? line1 : line2); - field = o->field; - } - prfield(field, line); - o = o->next; - if (o == ((void *)0)) - break; - putchar_unlocked(output_separator); - } - putchar_unlocked(eolchar); - } else { - if (line1 == &uni_blank) { - line = line2; - field = join_field_2; - } else { - line = line1; - field = join_field_1; - } - - prfield(field, line); - - prfields(line1, join_field_1, autocount_1); - prfields(line2, join_field_2, autocount_2); - - putchar_unlocked(eolchar); - } -} - -static void system_join(FILE *fp1, FILE *fp2) { - struct seq seq1, seq2; - int diff; - - _Bool eof1, eof2; - - fadvise(fp1, FADVISE_SEQUENTIAL); - fadvise(fp2, FADVISE_SEQUENTIAL); - - initseq(&seq1); - getseq(fp1, &seq1, 1); - initseq(&seq2); - getseq(fp2, &seq2, 2); - - if (autoformat) { - autocount_1 = seq1.count ? seq1.lines[0]->nfields : 0; - autocount_2 = seq2.count ? seq2.lines[0]->nfields : 0; - } - - if (join_header_lines && (seq1.count || seq2.count)) { - struct line const *hline1 = seq1.count ? seq1.lines[0] : &uni_blank; - struct line const *hline2 = seq2.count ? seq2.lines[0] : &uni_blank; - prjoin(hline1, hline2); - prevline[0] = ((void *)0); - prevline[1] = ((void *)0); - if (seq1.count) - advance_seq(fp1, &seq1, 1, 1); - if (seq2.count) - advance_seq(fp2, &seq2, 1, 2); - } - - while (seq1.count && seq2.count) { - diff = keycmp(seq1.lines[0], seq2.lines[0], join_field_1, join_field_2); - if (diff < 0) { - if (print_unpairables_1) - prjoin(seq1.lines[0], &uni_blank); - advance_seq(fp1, &seq1, 1, 1); - seen_unpairable = 1; - continue; - } - if (diff > 0) { - if (print_unpairables_2) - prjoin(&uni_blank, seq2.lines[0]); - advance_seq(fp2, &seq2, 1, 2); - seen_unpairable = 1; - continue; - } - - eof1 = 0; - do - if (!advance_seq(fp1, &seq1, 0, 1)) { - eof1 = 1; - ++seq1.count; - break; - } - while (!keycmp(seq1.lines[seq1.count - 1], seq2.lines[0], join_field_1, - join_field_2)); - - eof2 = 0; - do - if (!advance_seq(fp2, &seq2, 0, 2)) { - eof2 = 1; - ++seq2.count; - break; - } - while (!keycmp(seq1.lines[0], seq2.lines[seq2.count - 1], join_field_1, - join_field_2)); - - if (print_pairables) { - for (size_t i = 0; i < seq1.count - 1; ++i) { - size_t j; - for (j = 0; j < seq2.count - 1; ++j) - prjoin(seq1.lines[i], seq2.lines[j]); - } - } - - if (!eof1) { - do { - struct line *tmp = seq1.lines[0]; - seq1.lines[0] = seq1.lines[seq1.count - 1]; - seq1.lines[seq1.count - 1] = tmp; - } while (0); - ; - seq1.count = 1; - } else - seq1.count = 0; - - if (!eof2) { - do { - struct line *tmp = seq2.lines[0]; - seq2.lines[0] = seq2.lines[seq2.count - 1]; - seq2.lines[seq2.count - 1] = tmp; - } while (0); - ; - seq2.count = 1; - } else - seq2.count = 0; - } - - struct line *line = ((void *)0); - - _Bool checktail = 0; - - if (check_input_order != CHECK_ORDER_DISABLED && - !(issued_disorder_warning[0] && issued_disorder_warning[1])) - checktail = 1; - - if ((print_unpairables_1 || checktail) && seq1.count) { - if (print_unpairables_1) - prjoin(seq1.lines[0], &uni_blank); - if (seq2.count) - seen_unpairable = 1; - while (get_line(fp1, &line, 1)) { - if (print_unpairables_1) - prjoin(line, &uni_blank); - if (issued_disorder_warning[0] && !print_unpairables_1) - break; - } - } - - if ((print_unpairables_2 || checktail) && seq2.count) { - if (print_unpairables_2) - prjoin(&uni_blank, seq2.lines[0]); - if (seq1.count) - seen_unpairable = 1; - while (get_line(fp2, &line, 2)) { - if (print_unpairables_2) - prjoin(&uni_blank, line); - if (issued_disorder_warning[1] && !print_unpairables_2) - break; - } - } - - freeline(line); - free(line); - - delseq(&seq1); - delseq(&seq2); -} - -static void add_field(int file, size_t field) { - struct outlist *o; - - ((void)sizeof((file == 0 || file == 1 || file == 2) ? 1 : 0), __extension__({ - if (file == 0 || file == 1 || file == 2) - ; - else - __assert_fail("file == 0 || file == 1 || file == 2", "src/join.c", 823, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof((file != 0 || field == 0) ? 1 : 0), __extension__({ - if (file != 0 || field == 0) - ; - else - __assert_fail("file != 0 || field == 0", "src/join.c", 824, - __extension__ __PRETTY_FUNCTION__); - })); - - o = xmalloc(sizeof *o); - o->file = file; - o->field = field; - o->next = ((void *)0); - - outlist_end->next = o; - outlist_end = o; -} - -static size_t string_to_join_field(char const *str) { - size_t result; - uintmax_t val; - - strtol_error s_err = xstrtoumax(str, ((void *)0), 10, &val, ""); - if (s_err == LONGINT_OVERFLOW || - (s_err == LONGINT_OK && (18446744073709551615UL) < val)) - val = (18446744073709551615UL); - else if (s_err != LONGINT_OK || val == 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid field " - "number: %s\", 5), quote (str)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid field number: %s", 5), - quote(str)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid field number: %s", 5), - quote(str)), - ((0) ? (void)0 : __builtin_unreachable())))); - - result = val - 1; - - return result; -} - -static void decode_field_spec(char const *s, int *file_index, - size_t *field_index) { - - switch (s[0]) { - case '0': - if (s[1]) { - - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid field " - "specifier: %s\", 5), quote (s)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid field specifier: %s", 5), - quote(s)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid field specifier: %s", 5), - quote(s)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - *file_index = 0; - *field_index = 0; - break; - - case '1': - case '2': - if (s[1] != '.') - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid field " - "specifier: %s\", 5), quote (s)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid field specifier: %s", 5), - quote(s)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid field specifier: %s", 5), - quote(s)), - ((0) ? (void)0 : __builtin_unreachable())))); - *file_index = s[0] - '0'; - *field_index = string_to_join_field(s + 2); - break; - - default: - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid file number in " - "field spec: %s\", 5), quote (s)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "invalid file number in field spec: %s", 5), - quote(s)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "invalid file number in field spec: %s", 5), - quote(s)), - ((0) ? (void)0 : __builtin_unreachable())))); - - abort(); - - break; - } -} - -static void add_field_list(char *str) { - char *p = str; - - do { - int file_index; - size_t field_index; - char const *spec_item = p; - - p = strpbrk(p, ", \t"); - if (p) - *p++ = '\0'; - decode_field_spec(spec_item, &file_index, &field_index); - add_field(file_index, field_index); - } while (p); -} - -static void set_join_field(size_t *var, size_t val) { - if (*var != (18446744073709551615UL) && *var != val) { - unsigned long int var1 = *var + 1; - unsigned long int val1 = val + 1; - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"incompatible " - "join fields %lu, %lu\", 5), var1, val1), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext(((void *)0), "incompatible join fields %lu, %lu", 5), - var1, val1), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext(((void *)0), "incompatible join fields %lu, %lu", 5), - var1, val1), - ((0) ? (void)0 : __builtin_unreachable())))); - } - *var = val; -} - -enum operand_status { - - MUST_BE_OPERAND, - - MIGHT_BE_J1_ARG, - MIGHT_BE_J2_ARG, - - MIGHT_BE_O_ARG -}; - -static void add_file_name(char *name, char *names[2], int operand_status[2], - int joption_count[2], int *nfiles, - int *prev_optc_status, int *optc_status) { - int n = *nfiles; - - if (n == 2) { - - _Bool op0 = (operand_status[0] == MUST_BE_OPERAND); - char *arg = names[op0]; - switch (operand_status[op0]) { - case MUST_BE_OPERAND: - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quotearg_style(shell_escape_always_quoting_style, name)); - usage(1); - - case MIGHT_BE_J1_ARG: - joption_count[0]--; - set_join_field(&join_field_1, string_to_join_field(arg)); - break; - - case MIGHT_BE_J2_ARG: - joption_count[1]--; - set_join_field(&join_field_2, string_to_join_field(arg)); - break; - - case MIGHT_BE_O_ARG: - add_field_list(arg); - break; - } - if (!op0) { - operand_status[0] = operand_status[1]; - names[0] = names[1]; - } - n = 1; - } - - operand_status[n] = *prev_optc_status; - names[n] = name; - *nfiles = n + 1; - if (*prev_optc_status == MIGHT_BE_O_ARG) - *optc_status = MIGHT_BE_O_ARG; -} - -int main(int argc, char **argv) { - int optc_status; - int prev_optc_status = MUST_BE_OPERAND; - int operand_status[2]; - int joption_count[2] = {0, 0}; - FILE *fp1, *fp2; - int optc; - int nfiles = 0; - int i; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - hard_LC_COLLATE = hard_locale(3); - - atexit(close_stdout); - atexit(free_spareline); - - print_pairables = 1; - seen_unpairable = 0; - issued_disorder_warning[0] = issued_disorder_warning[1] = 0; - check_input_order = CHECK_ORDER_DEFAULT; - - while ((optc = getopt_long(argc, argv, "-a:e:i1:2:j:o:t:v:z", longopts, - ((void *)0))) != -1) { - optc_status = MUST_BE_OPERAND; - - switch (optc) { - case 'v': - print_pairables = 0; - ; - - case 'a': { - unsigned long int val; - if (xstrtoul(optarg, ((void *)0), 10, &val, "") != LONGINT_OK || - (val != 1 && val != 2)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid field " - "number: %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid field number: %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid field number: %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (val == 1) - print_unpairables_1 = 1; - else - print_unpairables_2 = 1; - } break; - - case 'e': - if (empty_filler && !(strcmp(empty_filler, optarg) == 0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"conflicting " - "empty-field replacement strings\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "conflicting empty-field replacement strings", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "conflicting empty-field replacement strings", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - empty_filler = optarg; - break; - - case 'i': - ignore_case = 1; - break; - - case '1': - set_join_field(&join_field_1, string_to_join_field(optarg)); - break; - - case '2': - set_join_field(&join_field_2, string_to_join_field(optarg)); - break; - - case 'j': - if ((optarg[0] == '1' || optarg[0] == '2') && !optarg[1] && - optarg == argv[optind - 1] + 2) { - - _Bool is_j2 = (optarg[0] == '2'); - joption_count[is_j2]++; - optc_status = MIGHT_BE_J1_ARG + is_j2; - } else { - set_join_field(&join_field_1, string_to_join_field(optarg)); - set_join_field(&join_field_2, join_field_1); - } - break; - - case 'o': - if ((strcmp(optarg, "auto") == 0)) - autoformat = 1; - else { - add_field_list(optarg); - optc_status = MIGHT_BE_O_ARG; - } - break; - - case 't': { - unsigned char newtab = optarg[0]; - if (!newtab) - newtab = '\n'; - else if (optarg[1]) { - if ((strcmp(optarg, "\\0") == 0)) - newtab = '\0'; - else - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multi-character " - "tab %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "multi-character tab %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "multi-character tab %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - if (0 <= tab && tab != newtab) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), " - "\"incompatible tabs\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "incompatible tabs", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "incompatible tabs", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - tab = newtab; - } break; - - case 'z': - eolchar = 0; - break; - - case NOCHECK_ORDER_OPTION: - check_input_order = CHECK_ORDER_DISABLED; - break; - - case CHECK_ORDER_OPTION: - check_input_order = CHECK_ORDER_ENABLED; - break; - - case 1: - add_file_name(optarg, g_names, operand_status, joption_count, &nfiles, - &prev_optc_status, &optc_status); - break; - - case HEADER_LINE_OPTION: - join_header_lines = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "join", "GNU coreutils", Version, ("Mike Haertel"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - - prev_optc_status = optc_status; - } - - prev_optc_status = MUST_BE_OPERAND; - while (optind < argc) - add_file_name(argv[optind++], g_names, operand_status, joption_count, - &nfiles, &prev_optc_status, &optc_status); - - if (nfiles != 2) { - if (nfiles == 0) - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - else - error(0, 0, dcgettext(((void *)0), "missing operand after %s", 5), - quote(argv[argc - 1])); - usage(1); - } - - for (i = 0; i < 2; i++) - if (joption_count[i] != 0) { - set_join_field(&join_field_1, i); - set_join_field(&join_field_2, i); - } - - if (join_field_1 == (18446744073709551615UL)) - join_field_1 = 0; - if (join_field_2 == (18446744073709551615UL)) - join_field_2 = 0; - - fp1 = (strcmp(g_names[0], "-") == 0) ? stdin : fopen_safer(g_names[0], "r"); - if (!fp1) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, g_names[0])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - g_names[0])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - g_names[0])), - ((0) ? (void)0 : __builtin_unreachable())))); - fp2 = (strcmp(g_names[1], "-") == 0) ? stdin : fopen_safer(g_names[1], "r"); - if (!fp2) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, g_names[1])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - g_names[1])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - g_names[1])), - ((0) ? (void)0 : __builtin_unreachable())))); - if (fp1 == fp2) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"both files cannot be standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "both files cannot be standard input", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "both files cannot be standard input", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - system_join(fp1, fp2); - - if (rpl_fclose(fp1) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, g_names[0])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - g_names[0])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - g_names[0])), - ((0) ? (void)0 : __builtin_unreachable())))); - if (rpl_fclose(fp2) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, g_names[1])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - g_names[1])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - g_names[1])), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (issued_disorder_warning[0] || issued_disorder_warning[1]) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"input is not " - "in sorted order\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "input is not in sorted order", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "input is not in sorted order", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - else - return 0; -} diff --git a/tests/source/coreutils/kill.c b/tests/source/coreutils/kill.c deleted file mode 100644 index 6b10616..0000000 --- a/tests/source/coreutils/kill.c +++ /dev/null @@ -1,7084 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int sig2str(int, char *); -int str2sig(char const *, int *); -extern int operand2sig(char const *operand, char *signame) - __attribute__((__nonnull__)); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -static char const short_options[] = "0::1::2::3::4::5::6::7::8::9::" - "A::B::C::D::E::F::G::H::I::J::K::M::" - "N::O::P::Q::R::S::T::U::V::W::X::Y::Z::" - "Lln:s:t"; - -static struct option const long_options[] = { - {"list", 0, ((void *)0), 'l'}, - {"signal", 1, ((void *)0), 's'}, - {"table", 0, ((void *)0), 't'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [-s SIGNAL | -SIGNAL] PID...\n or: %s -l " - "[SIGNAL]...\n or: %s -t [SIGNAL]...\n", - 5) - - , - program_name, program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Send signals to processes, or list signals.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " -s, --signal=SIGNAL, -SIGNAL\n specify the " - "name or number of the signal to be sent\n -l, --list list " - "signal names, or convert signal names to/from numbers\n -t, " - "--table print a table of signal information\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nSIGNAL may be a signal name like 'HUP', or a signal " - "number like '1',\nor the exit status of a process " - "terminated by a signal.\nPID is an integer; if negative it " - "identifies a process group.\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your " - "shell's documentation\n" - "for details about the options it supports.\n", - 5), - "kill"); - emit_ancillary_info("kill"); - } - exit(status); -} - -static void print_table_row(int num_width, int signum, int name_width, - char const *signame) { - char const *description = strsignal(signum); - printf("%*d %-*s %s\n", num_width, signum, name_width, signame, - description ? description : "?"); -} - -static int list_signals(_Bool table, char *const *argv) { - int signum; - int status = 0; - char signame[( - sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)]; - - if (table) { - unsigned int name_width = 0; - - unsigned int num_width = 1; - for (signum = 1; signum <= ((64 + 1) - 1) / 10; signum *= 10) - num_width++; - - for (signum = 1; signum <= ((64 + 1) - 1); signum++) - if (sig2str(signum, signame) == 0) { - size_t len = strlen(signame); - if (name_width < len) - name_width = len; - } - - if (argv) - for (; *argv; argv++) { - signum = operand2sig(*argv, signame); - if (signum < 0) - status = 1; - else - print_table_row(num_width, signum, name_width, signame); - } - else - for (signum = 1; signum <= ((64 + 1) - 1); signum++) - if (sig2str(signum, signame) == 0) - print_table_row(num_width, signum, name_width, signame); - } else { - if (argv) - for (; *argv; argv++) { - signum = operand2sig(*argv, signame); - if (signum < 0) - status = 1; - else { - if (((unsigned int)(**argv) - '0' <= 9)) - puts(signame); - else - printf("%d\n", signum); - } - } - else - for (signum = 1; signum <= ((64 + 1) - 1); signum++) - if (sig2str(signum, signame) == 0) - puts(signame); - } - - return status; -} - -static int send_signals(int signum, char *const *argv) { - int status = 0; - char const *arg = *argv; - - do { - char *endp; - intmax_t n = ((*__errno_location()) = 0, strtoimax(arg, &endp, 10)); - pid_t pid = n; - - if ((*__errno_location()) == 34 || pid != n || arg == endp || *endp) { - error(0, 0, dcgettext(((void *)0), "%s: invalid process id", 5), - quote(arg)); - status = 1; - } else if (kill(pid, signum) != 0) { - error(0, (*__errno_location()), "%s", quote(arg)); - status = 1; - } - } while ((arg = *++argv)); - - return status; -} - -int main(int argc, char **argv) { - int optc; - - _Bool list = 0; - - _Bool table = 0; - int signum = -1; - char signame[( - sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)]; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, short_options, long_options, - ((void *)0))) != -1) - switch (optc) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (optind != 2) { - - optind--; - goto no_more_options; - }; - case 'A': - case 'B': - case 'C': - case 'D': - case 'E': - case 'F': - case 'G': - case 'H': - case 'I': - case 'J': - case 'K': - case 'M': - case 'N': - case 'O': - case 'P': - case 'Q': - case 'R': - case 'S': - case 'T': - case 'U': - case 'V': - case 'W': - case 'X': - case 'Y': - case 'Z': - if (!optarg) - optarg = argv[optind - 1] + strlen(argv[optind - 1]); - if (optarg != argv[optind - 1] + 2) { - error(0, 0, dcgettext(((void *)0), "invalid option -- %c", 5), optc); - usage(1); - } - optarg--; - ; - case 'n': - case 's': - if (0 <= signum) { - error(0, 0, dcgettext(((void *)0), "%s: multiple signals specified", 5), - quote(optarg)); - usage(1); - } - signum = operand2sig(optarg, signame); - if (signum < 0) - usage(1); - break; - - case 'L': - case 't': - table = 1; - ; - case 'l': - if (list) { - error(0, 0, - dcgettext(((void *)0), "multiple -l or -t options specified", 5)); - usage(1); - } - list = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "kill", "GNU coreutils", Version, ("Paul Eggert"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } -no_more_options: - - if (signum < 0) - signum = 15; - else if (list) { - error(0, 0, - dcgettext(((void *)0), "cannot combine signal with -l or -t", 5)); - usage(1); - } - - if (!list && argc <= optind) { - error(0, 0, dcgettext(((void *)0), "no process ID specified", 5)); - usage(1); - } - - return (list - ? list_signals(table, optind < argc ? argv + optind : ((void *)0)) - : send_signals(signum, argv + optind)); -} diff --git a/tests/source/coreutils/lbracket.c b/tests/source/coreutils/lbracket.c deleted file mode 100644 index 80538ec..0000000 --- a/tests/source/coreutils/lbracket.c +++ /dev/null @@ -1,7556 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -int strintcmp(char const *, char const *) __attribute__((__nonnull__)) -__attribute__((__pure__)); -int strnumcmp(char const *, char const *, int, int) __attribute__((__nonnull__)) -__attribute__((__pure__)); - -extern void verror(int __status, int __errnum, const char *__format, - va_list __args) - __attribute__((__format__(__gnu_printf__, 3, 0))); -extern void verror_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, - va_list __args) - __attribute__((__format__(__gnu_printf__, 5, 0))); - -enum { TEST_TRUE, TEST_FALSE, TEST_FAILURE }; -static int pos; -static int argc; -static char **argv; - -static _Bool unary_operator(void); -static _Bool binary_operator(_Bool); -static _Bool two_arguments(void); -static _Bool three_arguments(void); -static _Bool posixtest(int); - -static _Bool expr(void); -static _Bool term(void); -static _Bool and (void); -static _Bool or (void); - -static void beyond(void); - -__attribute__((__format__(printf, 1, 2))) static _Noreturn void -test_syntax_error(char const *format, ...) { - va_list ap; - - __builtin_va_start(ap, format); - verror(0, 0, format, ap); - exit(TEST_FAILURE); -} - -static void advance(_Bool f) { - ++pos; - - if (f && pos >= argc) - beyond(); -} - -static void unary_advance(void) { - advance(1); - ++pos; -} - -static void beyond(void) { - test_syntax_error(dcgettext(((void *)0), "missing argument after %s", 5), - quote(argv[argc - 1])); -} - -static char const *find_int(char const *string) { - char const *p; - char const *number_start; - - for (p = string; ((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISblank); - p++) - continue; - - if (*p == '+') { - p++; - number_start = p; - } else { - number_start = p; - p += (*p == '-'); - } - - if (((unsigned int)(*p++) - '0' <= 9)) { - while (((unsigned int)(*p) - '0' <= 9)) - p++; - while (((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISblank)) - p++; - if (!*p) - return number_start; - } - - test_syntax_error(dcgettext(((void *)0), "invalid integer %s", 5), - quote(string)); -} - -static _Bool - -get_mtime(char const *filename, struct timespec *mtime) { - struct stat finfo; - - _Bool ok = (stat(filename, &finfo) == 0); - if (ok) - *mtime = get_stat_mtime(&finfo); - return ok; -} - -static _Bool - -binop(char const *s) { - return (((strcmp(s, "=") == 0)) || ((strcmp(s, "!=") == 0)) || - ((strcmp(s, "==") == 0)) || ((strcmp(s, "-nt") == 0)) || - ((strcmp(s, "-ot") == 0)) || ((strcmp(s, "-ef") == 0)) || - ((strcmp(s, "-eq") == 0)) || ((strcmp(s, "-ne") == 0)) || - ((strcmp(s, "-lt") == 0)) || ((strcmp(s, "-le") == 0)) || - ((strcmp(s, "-gt") == 0)) || ((strcmp(s, "-ge") == 0))); -} -static _Bool - -term(void) { - - _Bool value; - - _Bool negated = 0; - - while (pos < argc && argv[pos][0] == '!' && argv[pos][1] == '\0') { - advance(1); - negated = !negated; - } - - if (pos >= argc) - beyond(); - - if (argv[pos][0] == '(' && argv[pos][1] == '\0') { - int nargs; - - advance(1); - - for (nargs = 1; - pos + nargs < argc && !(strcmp(argv[pos + nargs], ")") == 0); nargs++) - if (nargs == 4) { - nargs = argc - pos; - break; - } - - value = posixtest(nargs); - if (argv[pos] == 0) - test_syntax_error(dcgettext(((void *)0), "%s expected", 5), quote(")")); - else if (argv[pos][0] != ')' || argv[pos][1]) - test_syntax_error(dcgettext(((void *)0), "%s expected, found %s", 5), - quote_n(0, ")"), quote_n(1, argv[pos])); - advance(0); - } - - else if (4 <= argc - pos && (strcmp(argv[pos], "-l") == 0) && - binop(argv[pos + 2])) - value = binary_operator(1); - else if (3 <= argc - pos && binop(argv[pos + 1])) - value = binary_operator(0); - - else if (argv[pos][0] == '-' && argv[pos][1] && argv[pos][2] == '\0') - value = unary_operator(); - else { - value = (argv[pos][0] != '\0'); - advance(0); - } - - return negated ^ value; -} - -static _Bool - -binary_operator(_Bool l_is_l) { - int op; - struct stat stat_buf, stat_spare; - - _Bool r_is_l; - - if (l_is_l) - advance(0); - op = pos + 1; - - if ((op < argc - 2) && (strcmp(argv[op + 1], "-l") == 0)) { - r_is_l = 1; - advance(0); - } else - r_is_l = 0; - - if (argv[op][0] == '-') { - - if ((((argv[op][1] == 'l' || argv[op][1] == 'g') && - (argv[op][2] == 'e' || argv[op][2] == 't')) || - (argv[op][1] == 'e' && argv[op][2] == 'q') || - (argv[op][1] == 'n' && argv[op][2] == 'e')) && - !argv[op][3]) { - char lbuf[((((((sizeof(uintmax_t) * 8) - (!((__typeof__(uintmax_t))0 < - (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - char rbuf[((((((sizeof(uintmax_t) * 8) - (!((__typeof__(uintmax_t))0 < - (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - char const *l = (l_is_l ? umaxtostr(strlen(argv[op - 1]), lbuf) - : find_int(argv[op - 1])); - char const *r = (r_is_l ? umaxtostr(strlen(argv[op + 2]), rbuf) - : find_int(argv[op + 1])); - int cmp = strintcmp(l, r); - - _Bool xe_operator = (argv[op][2] == 'e'); - pos += 3; - return (argv[op][1] == 'l' ? cmp < xe_operator - : argv[op][1] == 'g' ? cmp > -xe_operator - : (cmp != 0) == xe_operator); - } - - switch (argv[op][1]) { - default: - break; - - case 'n': - if (argv[op][2] == 't' && !argv[op][3]) { - - struct timespec lt, rt; - - _Bool le, re; - pos += 3; - if (l_is_l || r_is_l) - test_syntax_error( - dcgettext(((void *)0), "-nt does not accept -l", 5)); - le = get_mtime(argv[op - 1], <); - re = get_mtime(argv[op + 1], &rt); - return le && (!re || timespec_cmp(lt, rt) > 0); - } - break; - - case 'e': - if (argv[op][2] == 'f' && !argv[op][3]) { - - pos += 3; - if (l_is_l || r_is_l) - test_syntax_error( - dcgettext(((void *)0), "-ef does not accept -l", 5)); - return (stat(argv[op - 1], &stat_buf) == 0 && - stat(argv[op + 1], &stat_spare) == 0 && - stat_buf.st_dev == stat_spare.st_dev && - stat_buf.st_ino == stat_spare.st_ino); - } - break; - - case 'o': - if ('t' == argv[op][2] && '\000' == argv[op][3]) { - - struct timespec lt, rt; - - _Bool le, re; - pos += 3; - if (l_is_l || r_is_l) - test_syntax_error( - dcgettext(((void *)0), "-ot does not accept -l", 5)); - le = get_mtime(argv[op - 1], <); - re = get_mtime(argv[op + 1], &rt); - return re && (!le || timespec_cmp(lt, rt) < 0); - } - break; - } - - test_syntax_error(dcgettext(((void *)0), "%s: unknown binary operator", 5), - quote(argv[op])); - } - - if (argv[op][0] == '=' && - (!argv[op][1] || ((argv[op][1] == '=') && !argv[op][2]))) { - - _Bool value = (strcmp(argv[pos], argv[pos + 2]) == 0); - pos += 3; - return value; - } - - if ((strcmp(argv[op], "!=") == 0)) { - - _Bool value = !(strcmp(argv[pos], argv[pos + 2]) == 0); - pos += 3; - return value; - } - - abort(); -} - -static _Bool - -unary_operator(void) { - struct stat stat_buf; - - switch (argv[pos][1]) { - default: - test_syntax_error(dcgettext(((void *)0), "%s: unary operator expected", 5), - quote(argv[pos])); - return 0; - - case 'e': - unary_advance(); - return stat(argv[pos - 1], &stat_buf) == 0; - - case 'r': - unary_advance(); - return euidaccess(argv[pos - 1], 4) == 0; - - case 'w': - unary_advance(); - return euidaccess(argv[pos - 1], 2) == 0; - - case 'x': - unary_advance(); - return euidaccess(argv[pos - 1], 1) == 0; - - case 'N': { - unary_advance(); - if (stat(argv[pos - 1], &stat_buf) != 0) - return 0; - struct timespec atime = get_stat_atime(&stat_buf); - struct timespec mtime = get_stat_mtime(&stat_buf); - return (timespec_cmp(mtime, atime) > 0); - } - - case 'O': { - unary_advance(); - if (stat(argv[pos - 1], &stat_buf) != 0) - return 0; - - (*__errno_location()) = 0; - uid_t euid = geteuid(); - uid_t NO_UID = -1; - return !(euid == NO_UID && (*__errno_location())) && - euid == stat_buf.st_uid; - } - - case 'G': { - unary_advance(); - if (stat(argv[pos - 1], &stat_buf) != 0) - return 0; - - (*__errno_location()) = 0; - gid_t egid = getegid(); - gid_t NO_GID = -1; - return !(egid == NO_GID && (*__errno_location())) && - egid == stat_buf.st_gid; - } - - case 'f': - unary_advance(); - - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0100000))); - - case 'd': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0040000))); - - case 's': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && 0 < stat_buf.st_size); - - case 'S': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0140000))); - - case 'c': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0020000))); - - case 'b': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0060000))); - - case 'p': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0010000))); - - case 'L': - - case 'h': - unary_advance(); - return (lstat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0120000))); - - case 'u': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && (stat_buf.st_mode & 04000)); - - case 'g': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && (stat_buf.st_mode & 02000)); - - case 'k': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && (stat_buf.st_mode & 01000)); - - case 't': { - long int fd; - char const *arg; - unary_advance(); - arg = find_int(argv[pos - 1]); - - (*__errno_location()) = 0; - fd = strtol(arg, ((void *)0), 10); - return ((*__errno_location()) != 34 && 0 <= fd && fd <= 0x7fffffff && - isatty(fd)); - } - - case 'n': - unary_advance(); - return argv[pos - 1][0] != 0; - - case 'z': - unary_advance(); - return argv[pos - 1][0] == '\0'; - } -} - -static _Bool - - and (void) { - - _Bool value = 1; - - while (1) { - value &= term(); - if (!(pos < argc && (strcmp(argv[pos], "-a") == 0))) - return value; - advance(0); - } -} - -static _Bool - - or (void) { - - _Bool value = 0; - - while (1) { - value |= and(); - if (!(pos < argc && (strcmp(argv[pos], "-o") == 0))) - return value; - advance(0); - } -} - -static _Bool - -expr(void) { - if (pos >= argc) - beyond(); - - return or (); -} - -static _Bool - -one_argument(void) { - return argv[pos++][0] != '\0'; -} - -static _Bool - -two_arguments(void) { - - _Bool value; - - if ((strcmp(argv[pos], "!") == 0)) { - advance(0); - value = !one_argument(); - } else if (argv[pos][0] == '-' && argv[pos][1] != '\0' && - argv[pos][2] == '\0') { - value = unary_operator(); - } else - beyond(); - return (value); -} - -static _Bool - -three_arguments(void) { - - _Bool value; - - if (binop(argv[pos + 1])) - value = binary_operator(0); - else if ((strcmp(argv[pos], "!") == 0)) { - advance(1); - value = !two_arguments(); - } else if ((strcmp(argv[pos], "(") == 0) && - (strcmp(argv[pos + 2], ")") == 0)) { - advance(0); - value = one_argument(); - advance(0); - } else if ((strcmp(argv[pos + 1], "-a") == 0) || - (strcmp(argv[pos + 1], "-o") == 0)) - value = expr(); - else - test_syntax_error(dcgettext(((void *)0), "%s: binary operator expected", 5), - quote(argv[pos + 1])); - return (value); -} - -static _Bool - -posixtest(int nargs) { - - _Bool value; - - switch (nargs) { - case 1: - value = one_argument(); - break; - - case 2: - value = two_arguments(); - break; - - case 3: - value = three_arguments(); - break; - - case 4: - if ((strcmp(argv[pos], "!") == 0)) { - advance(1); - value = !three_arguments(); - break; - } - if ((strcmp(argv[pos], "(") == 0) && (strcmp(argv[pos + 3], ")") == 0)) { - advance(0); - value = two_arguments(); - advance(0); - break; - }; - case 5: - default: - if (nargs <= 0) - abort(); - value = expr(); - } - - return (value); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - fputs_unlocked(dcgettext(((void *)0), - "Usage: test EXPRESSION\n or: test\n or: [ " - "EXPRESSION ]\n or: [ ]\n or: [ OPTION\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "Exit with the status determined by EXPRESSION.\n\n", 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - "\nAn omitted EXPRESSION defaults to false. " - "Otherwise,\nEXPRESSION is true or false and sets " - "exit status. It is one of:\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n ( EXPRESSION ) EXPRESSION is true\n ! " - "EXPRESSION EXPRESSION is false\n " - "EXPRESSION1 -a EXPRESSION2 both EXPRESSION1 and " - "EXPRESSION2 are true\n EXPRESSION1 -o EXPRESSION2 either " - "EXPRESSION1 or EXPRESSION2 is true\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n -n STRING the length of STRING is nonzero\n " - "STRING equivalent to -n STRING\n -z STRING " - " the length of STRING is zero\n STRING1 = STRING2 " - " the strings are equal\n STRING1 != STRING2 the strings " - "are not equal\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n INTEGER1 -eq INTEGER2 INTEGER1 is equal to INTEGER2\n " - " INTEGER1 -ge INTEGER2 INTEGER1 is greater than or equal " - "to INTEGER2\n INTEGER1 -gt INTEGER2 INTEGER1 is greater " - "than INTEGER2\n INTEGER1 -le INTEGER2 INTEGER1 is less " - "than or equal to INTEGER2\n INTEGER1 -lt INTEGER2 " - "INTEGER1 is less than INTEGER2\n INTEGER1 -ne INTEGER2 " - "INTEGER1 is not equal to INTEGER2\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\n FILE1 -ef FILE2 FILE1 and FILE2 have the same device and " - "inode numbers\n FILE1 -nt FILE2 FILE1 is newer (modification " - "date) than FILE2\n FILE1 -ot FILE2 FILE1 is older than FILE2\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n -b FILE FILE exists and is block special\n -c FILE " - " FILE exists and is character special\n -d FILE " - "FILE exists and is a directory\n -e FILE FILE exists\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -f FILE FILE exists and is a regular file\n -g FILE " - " FILE exists and is set-group-ID\n -G FILE FILE " - "exists and is owned by the effective group ID\n -h FILE " - " FILE exists and is a symbolic link (same as -L)\n -k FILE " - " FILE exists and has its sticky bit set\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -L FILE FILE exists and is a symbolic link (same as -h)\n " - "-N FILE FILE exists and has been modified since it was last " - "read\n -O FILE FILE exists and is owned by the effective " - "user ID\n -p FILE FILE exists and is a named pipe\n -r FILE " - " FILE exists and the user has read access\n -s FILE FILE " - "exists and has a size greater than zero\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -S FILE FILE exists and is a socket\n -t FD " - "file descriptor FD is opened on a terminal\n -u FILE " - "FILE exists and its set-user-ID bit is set\n -w FILE " - "FILE exists and the user has write access\n -x FILE " - "FILE exists and the user has execute (or search) access\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nExcept for -h and -L, all FILE-related tests dereference " - "symbolic links.\nBeware that parentheses need to be escaped " - "(e.g., by backslashes) for shells.\nINTEGER may also be -l " - "STRING, which evaluates to the length of STRING.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nNOTE: Binary -a and -o are inherently ambiguous. Use 'test " - "EXPR1 && test\nEXPR2' or 'test EXPR1 || test EXPR2' instead.\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - "\nNOTE: [ honors the --help and --version " - "options, but test does not.\ntest treats each of " - "those as it treats any other nonempty STRING.\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your " - "shell's documentation\n" - "for details about the options it supports.\n", - 5), - dcgettext(((void *)0), "test and/or [", 5)); - emit_ancillary_info("["); - } - exit(status); -} -int main(int margc, char **margv) { - - _Bool value; - ; - set_program_name(margv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(TEST_FAILURE); - atexit(close_stdout); - - argv = margv; - - if (1) { - - if (margc == 2) { - if ((strcmp(margv[1], "--help") == 0)) - usage(0); - - if ((strcmp(margv[1], "--version") == 0)) { - version_etc(stdout, "[", "GNU coreutils", Version, ("Kevin Braunsdorf"), - ("Matthew Bradburn"), (char *)((void *)0)); - return 0; - } - } - if (margc < 2 || !(strcmp(margv[margc - 1], "]") == 0)) - test_syntax_error(dcgettext(((void *)0), "missing %s", 5), quote("]")); - - --margc; - } - - argc = margc; - pos = 1; - - if (pos >= argc) - return TEST_FALSE; - - value = posixtest(argc - 1); - - if (pos != argc) - test_syntax_error(dcgettext(((void *)0), "extra argument %s", 5), - quote(argv[pos])); - - return value ? TEST_TRUE : TEST_FALSE; -} diff --git a/tests/source/coreutils/libcksum_pclmul_a-cksum_pclmul.c b/tests/source/coreutils/libcksum_pclmul_a-cksum_pclmul.c deleted file mode 100644 index 24ac2a9..0000000 --- a/tests/source/coreutils/libcksum_pclmul_a-cksum_pclmul.c +++ /dev/null @@ -1,46941 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bsfd(int __X) { - return __builtin_ctz(__X); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bsrd(int __X) { - return __builtin_ia32_bsrsi(__X); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bswapd(int __X) { - return __builtin_bswap32(__X); -} -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __crc32b(unsigned int __C, unsigned char __V) { - return __builtin_ia32_crc32qi(__C, __V); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __crc32w(unsigned int __C, unsigned short __V) { - return __builtin_ia32_crc32hi(__C, __V); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __crc32d(unsigned int __C, unsigned int __V) { - return __builtin_ia32_crc32si(__C, __V); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __popcntd(unsigned int __X) { - return __builtin_popcount(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rdpmc(int __S) { - return __builtin_ia32_rdpmc(__S); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rdtsc(void) { - return __builtin_ia32_rdtsc(); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rdtscp(unsigned int *__A) { - return __builtin_ia32_rdtscp(__A); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rolb(unsigned char __X, int __C) { - return __builtin_ia32_rolqi(__X, __C); -} - -extern __inline unsigned short - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rolw(unsigned short __X, int __C) { - return __builtin_ia32_rolhi(__X, __C); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rold(unsigned int __X, int __C) { - __C &= 31; - return (__X << __C) | (__X >> (-__C & 31)); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rorb(unsigned char __X, int __C) { - return __builtin_ia32_rorqi(__X, __C); -} - -extern __inline unsigned short - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rorw(unsigned short __X, int __C) { - return __builtin_ia32_rorhi(__X, __C); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rord(unsigned int __X, int __C) { - __C &= 31; - return (__X >> __C) | (__X << (-__C & 31)); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __pause(void) { - __builtin_ia32_pause(); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bsfq(long long __X) { - return __builtin_ctzll(__X); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bsrq(long long __X) { - return __builtin_ia32_bsrdi(__X); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bswapq(long long __X) { - return __builtin_bswap64(__X); -} -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __crc32q(unsigned long long __C, unsigned long long __V) { - return __builtin_ia32_crc32di(__C, __V); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __popcntq(unsigned long long __X) { - return __builtin_popcountll(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rolq(unsigned long long __X, int __C) { - __C &= 63; - return (__X << __C) | (__X >> (-__C & 63)); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rorq(unsigned long long __X, int __C) { - __C &= 63; - return (__X >> __C) | (__X << (-__C & 63)); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __readeflags(void) { - return __builtin_ia32_readeflags_u64(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __writeeflags(unsigned long long __X) { - __builtin_ia32_writeeflags_u64(__X); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _subborrow_u32(unsigned char __CF, unsigned int __X, unsigned int __Y, - unsigned int *__P) { - return __builtin_ia32_sbb_u32(__CF, __X, __Y, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _addcarry_u32(unsigned char __CF, unsigned int __X, unsigned int __Y, - unsigned int *__P) { - return __builtin_ia32_addcarryx_u32(__CF, __X, __Y, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _addcarryx_u32(unsigned char __CF, unsigned int __X, unsigned int __Y, - unsigned int *__P) { - return __builtin_ia32_addcarryx_u32(__CF, __X, __Y, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _subborrow_u64(unsigned char __CF, unsigned long long __X, - unsigned long long __Y, unsigned long long *__P) { - return __builtin_ia32_sbb_u64(__CF, __X, __Y, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _addcarry_u64(unsigned char __CF, unsigned long long __X, - unsigned long long __Y, unsigned long long *__P) { - return __builtin_ia32_addcarryx_u64(__CF, __X, __Y, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _addcarryx_u64(unsigned char __CF, unsigned long long __X, - unsigned long long __Y, unsigned long long *__P) { - return __builtin_ia32_addcarryx_u64(__CF, __X, __Y, __P); -} - -extern __inline unsigned short - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __tzcnt_u16(unsigned short __X) { - return __builtin_ia32_tzcnt_u16(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __andn_u32(unsigned int __X, unsigned int __Y) { - return ~__X & __Y; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bextr_u32(unsigned int __X, unsigned int __Y) { - return __builtin_ia32_bextr_u32(__X, __Y); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _bextr_u32(unsigned int __X, unsigned int __Y, unsigned __Z) { - return __builtin_ia32_bextr_u32(__X, ((__Y & 0xff) | ((__Z & 0xff) << 8))); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsi_u32(unsigned int __X) { - return __X & -__X; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsi_u32(unsigned int __X) { - return __blsi_u32(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsmsk_u32(unsigned int __X) { - return __X ^ (__X - 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsmsk_u32(unsigned int __X) { - return __blsmsk_u32(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsr_u32(unsigned int __X) { - return __X & (__X - 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsr_u32(unsigned int __X) { - return __blsr_u32(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __tzcnt_u32(unsigned int __X) { - return __builtin_ia32_tzcnt_u32(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tzcnt_u32(unsigned int __X) { - return __builtin_ia32_tzcnt_u32(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __andn_u64(unsigned long long __X, unsigned long long __Y) { - return ~__X & __Y; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bextr_u64(unsigned long long __X, unsigned long long __Y) { - return __builtin_ia32_bextr_u64(__X, __Y); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _bextr_u64(unsigned long long __X, unsigned int __Y, unsigned int __Z) { - return __builtin_ia32_bextr_u64(__X, ((__Y & 0xff) | ((__Z & 0xff) << 8))); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsi_u64(unsigned long long __X) { - return __X & -__X; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsi_u64(unsigned long long __X) { - return __blsi_u64(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsmsk_u64(unsigned long long __X) { - return __X ^ (__X - 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsmsk_u64(unsigned long long __X) { - return __blsmsk_u64(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsr_u64(unsigned long long __X) { - return __X & (__X - 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsr_u64(unsigned long long __X) { - return __blsr_u64(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __tzcnt_u64(unsigned long long __X) { - return __builtin_ia32_tzcnt_u64(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tzcnt_u64(unsigned long long __X) { - return __builtin_ia32_tzcnt_u64(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _bzhi_u32(unsigned int __X, unsigned int __Y) { - return __builtin_ia32_bzhi_si(__X, __Y); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _pdep_u32(unsigned int __X, unsigned int __Y) { - return __builtin_ia32_pdep_si(__X, __Y); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _pext_u32(unsigned int __X, unsigned int __Y) { - return __builtin_ia32_pext_si(__X, __Y); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _bzhi_u64(unsigned long long __X, unsigned long long __Y) { - return __builtin_ia32_bzhi_di(__X, __Y); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _pdep_u64(unsigned long long __X, unsigned long long __Y) { - return __builtin_ia32_pdep_di(__X, __Y); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _pext_u64(unsigned long long __X, unsigned long long __Y) { - return __builtin_ia32_pext_di(__X, __Y); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mulx_u64(unsigned long long __X, unsigned long long __Y, - unsigned long long *__P) { - unsigned __int128 __res = (unsigned __int128)__X * __Y; - *__P = (unsigned long long)(__res >> 64); - return (unsigned long long)__res; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _get_ssp(void) { - return __builtin_ia32_rdsspq(); -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _inc_ssp(unsigned int __B) { - - __builtin_ia32_incsspq((unsigned long long)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _saveprevssp(void) { - __builtin_ia32_saveprevssp(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rstorssp(void *__B) { - __builtin_ia32_rstorssp(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wrssd(unsigned int __B, void *__C) { - __builtin_ia32_wrssd(__B, __C); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wrssq(unsigned long long __B, void *__C) { - __builtin_ia32_wrssq(__B, __C); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wrussd(unsigned int __B, void *__C) { - __builtin_ia32_wrussd(__B, __C); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wrussq(unsigned long long __B, void *__C) { - __builtin_ia32_wrussq(__B, __C); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _setssbsy(void) { - __builtin_ia32_setssbsy(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _clrssbsy(void *__B) { - __builtin_ia32_clrssbsy(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cldemote(void *__A) { - __builtin_ia32_cldemote(__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_clflushopt(void *__A) { - __builtin_ia32_clflushopt(__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_clwb(void *__A) { - __builtin_ia32_clwb(__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_clzero(void *__I) { - __builtin_ia32_clzero(__I); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _enqcmd(void *__P, const void *__Q) { - return __builtin_ia32_enqcmd(__P, __Q); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _enqcmds(void *__P, const void *__Q) { - return __builtin_ia32_enqcmds(__P, __Q); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _fxsave(void *__P) { - __builtin_ia32_fxsave(__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _fxrstor(void *__P) { - __builtin_ia32_fxrstor(__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _fxsave64(void *__P) { - __builtin_ia32_fxsave64(__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _fxrstor64(void *__P) { - __builtin_ia32_fxrstor64(__P); -} - -extern __inline unsigned short - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __lzcnt16(unsigned short __X) { - return __builtin_ia32_lzcnt_u16(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __lzcnt32(unsigned int __X) { - return __builtin_ia32_lzcnt_u32(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _lzcnt_u32(unsigned int __X) { - return __builtin_ia32_lzcnt_u32(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __lzcnt64(unsigned long long __X) { - return __builtin_ia32_lzcnt_u64(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _lzcnt_u64(unsigned long long __X) { - return __builtin_ia32_lzcnt_u64(__X); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __llwpcb(void *__pcbAddress) { - __builtin_ia32_llwpcb(__pcbAddress); -} - -extern __inline void *__attribute__((__gnu_inline__, __always_inline__, - __artificial__)) __slwpcb(void) { - return __builtin_ia32_slwpcb(); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -__lwpval32(unsigned int __data2, unsigned int __data1, unsigned int __flags) { - __builtin_ia32_lwpval32(__data2, __data1, __flags); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __lwpval64(unsigned long long __data2, unsigned int __data1, - unsigned int __flags) { - __builtin_ia32_lwpval64(__data2, __data1, __flags); -} -extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -__lwpins32(unsigned int __data2, unsigned int __data1, unsigned int __flags) { - return __builtin_ia32_lwpins32(__data2, __data1, __flags); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __lwpins64(unsigned long long __data2, unsigned int __data1, - unsigned int __flags) { - return __builtin_ia32_lwpins64(__data2, __data1, __flags); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _directstoreu_u32(void *__P, unsigned int __A) { - __builtin_ia32_directstoreu_u32((unsigned int *)__P, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _directstoreu_u64(void *__P, unsigned long long __A) { - __builtin_ia32_directstoreu_u64((unsigned long long *)__P, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _movdir64b(void *__P, const void *__Q) { - __builtin_ia32_movdir64b(__P, __Q); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_monitor(void const *__P, unsigned int __E, unsigned int __H) { - __builtin_ia32_monitor(__P, __E, __H); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mwait(unsigned int __E, unsigned int __H) { - __builtin_ia32_mwait(__E, __H); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_monitorx(void const *__P, unsigned int __E, unsigned int __H) { - __builtin_ia32_monitorx(__P, __E, __H); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mwaitx(unsigned int __E, unsigned int __H, unsigned int __C) { - __builtin_ia32_mwaitx(__E, __H, __C); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _pconfig_u32(const unsigned int __L, size_t __D[]) { - enum __pconfig_type { - __PCONFIG_KEY_PROGRAM = 0x01, - }; - - unsigned int __R = 0; - - if (!__builtin_constant_p(__L)) - __asm__ __volatile__("pconfig\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - else - switch (__L) { - case __PCONFIG_KEY_PROGRAM: - __asm__ __volatile__("pconfig\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]) - : "cc"); - break; - default: - __asm__ __volatile__("pconfig\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - } - return __R; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_u32(unsigned int __X) { - return __builtin_popcount(__X); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_u64(unsigned long long __X) { - return __builtin_popcountll(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdpkru_u32(void) { - return __builtin_ia32_rdpkru(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wrpkru(unsigned int __key) { - __builtin_ia32_wrpkru(__key); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdseed16_step(unsigned short *__p) { - return __builtin_ia32_rdseed_hi_step(__p); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdseed32_step(unsigned int *__p) { - return __builtin_ia32_rdseed_si_step(__p); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdseed64_step(unsigned long long *__p) { - return __builtin_ia32_rdseed_di_step(__p); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xbegin(void) { - return __builtin_ia32_xbegin(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xend(void) { - __builtin_ia32_xend(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xabort(const unsigned int __imm) { - __builtin_ia32_xabort(__imm); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _serialize(void) { - __builtin_ia32_serialize(); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _encls_u32(const unsigned int __L, size_t __D[]) { - enum __encls_type { - __SGX_ECREATE = 0x00, - __SGX_EADD = 0x01, - __SGX_EINIT = 0x02, - __SGX_EREMOVE = 0x03, - __SGX_EDBGRD = 0x04, - __SGX_EDBGWR = 0x05, - __SGX_EEXTEND = 0x06, - __SGX_ELDB = 0x07, - __SGX_ELDU = 0x08, - __SGX_EBLOCK = 0x09, - __SGX_EPA = 0x0A, - __SGX_EWB = 0x0B, - __SGX_ETRACK = 0x0C, - __SGX_EAUG = 0x0D, - __SGX_EMODPR = 0x0E, - __SGX_EMODT = 0x0F, - __SGX_ERDINFO = 0x10, - __SGX_ETRACKC = 0x11, - __SGX_ELDBC = 0x12, - __SGX_ELDUC = 0x13 - }; - enum __encls_type __T = (enum __encls_type)__L; - unsigned int __R = 0; - if (!__builtin_constant_p(__T)) - __asm__ __volatile__("encls\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - else - switch (__T) { - case __SGX_ECREATE: - case __SGX_EADD: - case __SGX_EDBGWR: - case __SGX_EEXTEND: - case __SGX_EPA: - case __SGX_EMODPR: - case __SGX_EMODT: - case __SGX_EAUG: - case __SGX_ERDINFO: - __asm__ __volatile__("encls\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]), "c"(__D[1]) - : "cc"); - break; - case __SGX_EINIT: - case __SGX_ELDB: - case __SGX_ELDU: - case __SGX_EWB: - case __SGX_ELDBC: - case __SGX_ELDUC: - __asm__ __volatile__("encls\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - break; - case __SGX_EREMOVE: - case __SGX_EBLOCK: - case __SGX_ETRACK: - case __SGX_ETRACKC: - __asm__ __volatile__("encls\n\t" - : "=a"(__R) - : "a"(__L), "c"(__D[1]) - : "cc"); - break; - case __SGX_EDBGRD: - __asm__ __volatile__("encls\n\t" - : "=a"(__R), "=b"(__D[0]) - : "a"(__L), "c"(__D[1])); - break; - default: - __asm__ __volatile__("encls\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - } - return __R; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _enclu_u32(const unsigned int __L, size_t __D[]) { - enum __enclu_type { - __SGX_EREPORT = 0x00, - __SGX_EGETKEY = 0x01, - __SGX_EENTER = 0x02, - __SGX_ERESUME = 0x03, - __SGX_EEXIT = 0x04, - __SGX_EACCEPT = 0x05, - __SGX_EMODPE = 0x06, - __SGX_EACCEPTCOPY = 0x07 - }; - enum __enclu_type __T = (enum __enclu_type)__L; - unsigned int __R = 0; - if (!__builtin_constant_p(__T)) - __asm__ __volatile__("enclu\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - else - switch (__T) { - case __SGX_EREPORT: - case __SGX_EACCEPTCOPY: - __asm__ __volatile__("enclu\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - break; - case __SGX_EGETKEY: - case __SGX_ERESUME: - case __SGX_EACCEPT: - case __SGX_EMODPE: - __asm__ __volatile__("enclu\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]), "c"(__D[1]) - : "cc"); - break; - case __SGX_EENTER: - __asm__ __volatile__("enclu\n\t" - : "=a"(__R), "=c"(__D[1]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]) - : "cc"); - break; - case __SGX_EEXIT: - __asm__ __volatile__("enclu\n\t" - : "=a"(__R), "=c"(__D[1]) - : "a"(__L), "b"(__D[0]) - : "cc"); - break; - default: - __asm__ __volatile__("enclu\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - } - return __R; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _enclv_u32(const unsigned int __L, size_t __D[]) { - enum __enclv_type { - __SGX_EDECVIRTCHILD = 0x00, - __SGX_EINCVIRTCHILD = 0x01, - __SGX_ESETCONTEXT = 0x02 - }; - unsigned int __R = 0; - if (!__builtin_constant_p(__L)) - __asm__ __volatile__("enclv\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[0]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - else - switch (__L) { - case __SGX_EDECVIRTCHILD: - case __SGX_EINCVIRTCHILD: - __asm__ __volatile__("enclv\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]), "c"(__D[1]) - : "cc"); - break; - case __SGX_ESETCONTEXT: - __asm__ __volatile__("enclv\n\t" - : "=a"(__R) - : "a"(__L), "c"(__D[1]), "d"(__D[2]) - : "cc"); - break; - default: - __asm__ __volatile__("enclv\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[0]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - } - return __R; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bextri_u32(unsigned int __X, const unsigned int __I) { - return __builtin_ia32_bextri_u32(__X, __I); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcfill_u32(unsigned int __X) { - return __X & (__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blci_u32(unsigned int __X) { - return __X | ~(__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcic_u32(unsigned int __X) { - return ~__X & (__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcmsk_u32(unsigned int __X) { - return __X ^ (__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcs_u32(unsigned int __X) { - return __X | (__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsfill_u32(unsigned int __X) { - return __X | (__X - 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsic_u32(unsigned int __X) { - return ~__X | (__X - 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __t1mskc_u32(unsigned int __X) { - return ~__X | (__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __tzmsk_u32(unsigned int __X) { - return ~__X & (__X - 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bextri_u64(unsigned long long __X, const unsigned int __I) { - return __builtin_ia32_bextri_u64(__X, __I); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcfill_u64(unsigned long long __X) { - return __X & (__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blci_u64(unsigned long long __X) { - return __X | ~(__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcic_u64(unsigned long long __X) { - return ~__X & (__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcmsk_u64(unsigned long long __X) { - return __X ^ (__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcs_u64(unsigned long long __X) { - return __X | (__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsfill_u64(unsigned long long __X) { - return __X | (__X - 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsic_u64(unsigned long long __X) { - return ~__X | (__X - 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __t1mskc_u64(unsigned long long __X) { - return ~__X | (__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __tzmsk_u64(unsigned long long __X) { - return ~__X & (__X - 1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsusldtrk(void) { - __builtin_ia32_xsusldtrk(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xresldtrk(void) { - __builtin_ia32_xresldtrk(); -} - -struct __uintr_frame { - - unsigned long long rip; - - unsigned long long rflags; - - unsigned long long rsp; -}; - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _clui(void) { - __builtin_ia32_clui(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _stui(void) { - __builtin_ia32_stui(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _senduipi(unsigned long long __R) { - __builtin_ia32_senduipi(__R); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _testui(void) { - return __builtin_ia32_testui(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _umonitor(void *__A) { - __builtin_ia32_umonitor(__A); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _umwait(unsigned int __A, unsigned long long __B) { - return __builtin_ia32_umwait(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tpause(unsigned int __A, unsigned long long __B) { - return __builtin_ia32_tpause(__A, __B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wbnoinvd(void) { - __builtin_ia32_wbnoinvd(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsave(void *__P, long long __M) { - __builtin_ia32_xsave(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xrstor(void *__P, long long __M) { - __builtin_ia32_xrstor(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsetbv(unsigned int __A, long long __V) { - __builtin_ia32_xsetbv(__A, __V); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xgetbv(unsigned int __A) { - return __builtin_ia32_xgetbv(__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsave64(void *__P, long long __M) { - __builtin_ia32_xsave64(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xrstor64(void *__P, long long __M) { - __builtin_ia32_xrstor64(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsavec(void *__P, long long __M) { - __builtin_ia32_xsavec(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsavec64(void *__P, long long __M) { - __builtin_ia32_xsavec64(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsaveopt(void *__P, long long __M) { - __builtin_ia32_xsaveopt(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsaveopt64(void *__P, long long __M) { - __builtin_ia32_xsaveopt64(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsaves(void *__P, long long __M) { - __builtin_ia32_xsaves(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xrstors(void *__P, long long __M) { - __builtin_ia32_xrstors(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xrstors64(void *__P, long long __M) { - __builtin_ia32_xrstors64(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsaves64(void *__P, long long __M) { - __builtin_ia32_xsaves64(__P, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xtest(void) { - return __builtin_ia32_xtest(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _hreset(unsigned int __EAX) { - __builtin_ia32_hreset(__EAX); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wbinvd(void) { - __builtin_ia32_wbinvd(); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdrand16_step(unsigned short *__P) { - return __builtin_ia32_rdrand16_step(__P); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdrand32_step(unsigned int *__P) { - return __builtin_ia32_rdrand32_step(__P); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdpid_u32(void) { - return __builtin_ia32_rdpid(); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _readfsbase_u32(void) { - return __builtin_ia32_rdfsbase32(); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _readfsbase_u64(void) { - return __builtin_ia32_rdfsbase64(); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _readgsbase_u32(void) { - return __builtin_ia32_rdgsbase32(); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _readgsbase_u64(void) { - return __builtin_ia32_rdgsbase64(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _writefsbase_u32(unsigned int __B) { - __builtin_ia32_wrfsbase32(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _writefsbase_u64(unsigned long long __B) { - __builtin_ia32_wrfsbase64(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _writegsbase_u32(unsigned int __B) { - __builtin_ia32_wrgsbase32(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _writegsbase_u64(unsigned long long __B) { - __builtin_ia32_wrgsbase64(__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdrand64_step(unsigned long long *__P) { - return __builtin_ia32_rdrand64_step(__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ptwrite64(unsigned long long __B) { - __builtin_ia32_ptwrite64(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ptwrite32(unsigned __B) { - __builtin_ia32_ptwrite32(__B); -} - -typedef int __m64 __attribute__((__vector_size__(8), __may_alias__)); -typedef int __m32 __attribute__((__vector_size__(4), __may_alias__)); -typedef short __m16 __attribute__((__vector_size__(2), __may_alias__)); - -typedef int __m64_u - __attribute__((__vector_size__(8), __may_alias__, __aligned__(1))); -typedef int __m32_u - __attribute__((__vector_size__(4), __may_alias__, __aligned__(1))); -typedef short __m16_u - __attribute__((__vector_size__(2), __may_alias__, __aligned__(1))); - -typedef int __v2si __attribute__((__vector_size__(8))); -typedef short __v4hi __attribute__((__vector_size__(8))); -typedef char __v8qi __attribute__((__vector_size__(8))); -typedef long long __v1di __attribute__((__vector_size__(8))); -typedef float __v2sf __attribute__((__vector_size__(8))); - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_empty(void) { - __builtin_ia32_emms(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_empty(void) { - _mm_empty(); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi32_si64(int __i) { - return (__m64)__builtin_ia32_vec_init_v2si(__i, 0); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_from_int(int __i) { - return _mm_cvtsi32_si64(__i); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_from_int64(long long __i) { - return (__m64)__i; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_m64(long long __i) { - return (__m64)__i; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64x_si64(long long __i) { - return (__m64)__i; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pi64x(long long __i) { - return (__m64)__i; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_si32(__m64 __i) { - return __builtin_ia32_vec_ext_v2si((__v2si)__i, 0); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_to_int(__m64 __i) { - return _mm_cvtsi64_si32(__i); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_to_int64(__m64 __i) { - return (long long)__i; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtm64_si64(__m64 __i) { - return (long long)__i; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_si64x(__m64 __i) { - return (long long)__i; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packs_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_packsswb(__m64 __m1, __m64 __m2) { - return _mm_packs_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packs_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_packssdw(__m64 __m1, __m64 __m2) { - return _mm_packs_pi32(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packs_pu16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_packuswb(__m64 __m1, __m64 __m2) { - return _mm_packs_pu16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpckhbw(__m64 __m1, __m64 __m2) { - return _mm_unpackhi_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpckhwd(__m64 __m1, __m64 __m2) { - return _mm_unpackhi_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpckhdq(__m64 __m1, __m64 __m2) { - return _mm_unpackhi_pi32(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpcklbw(__m64 __m1, __m64 __m2) { - return _mm_unpacklo_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpcklwd(__m64 __m1, __m64 __m2) { - return _mm_unpacklo_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpckldq(__m64 __m1, __m64 __m2) { - return _mm_unpacklo_pi32(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddb(__m64 __m1, __m64 __m2) { - return _mm_add_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddw(__m64 __m1, __m64 __m2) { - return _mm_add_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddd(__m64 __m1, __m64 __m2) { - return _mm_add_pi32(__m1, __m2); -} -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_si64(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddq((__v1di)__m1, (__v1di)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddsb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddsb(__m64 __m1, __m64 __m2) { - return _mm_adds_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddsw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddsw(__m64 __m1, __m64 __m2) { - return _mm_adds_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_pu8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddusb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddusb(__m64 __m1, __m64 __m2) { - return _mm_adds_pu8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_pu16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddusw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddusw(__m64 __m1, __m64 __m2) { - return _mm_adds_pu16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubb(__m64 __m1, __m64 __m2) { - return _mm_sub_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubw(__m64 __m1, __m64 __m2) { - return _mm_sub_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubd((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubd(__m64 __m1, __m64 __m2) { - return _mm_sub_pi32(__m1, __m2); -} -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_si64(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubq((__v1di)__m1, (__v1di)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubsb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubsb(__m64 __m1, __m64 __m2) { - return _mm_subs_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubsw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubsw(__m64 __m1, __m64 __m2) { - return _mm_subs_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_pu8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubusb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubusb(__m64 __m1, __m64 __m2) { - return _mm_subs_pu8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_pu16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubusw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubusw(__m64 __m1, __m64 __m2) { - return _mm_subs_pu16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_madd_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pmaddwd((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmaddwd(__m64 __m1, __m64 __m2) { - return _mm_madd_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhi_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pmulhw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmulhw(__m64 __m1, __m64 __m2) { - return _mm_mulhi_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mullo_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pmullw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmullw(__m64 __m1, __m64 __m2) { - return _mm_mullo_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_pi16(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psllw((__v4hi)__m, (__v4hi)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psllw(__m64 __m, __m64 __count) { - return _mm_sll_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_pi16(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psllwi((__v4hi)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psllwi(__m64 __m, int __count) { - return _mm_slli_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_pi32(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_pslld((__v2si)__m, (__v2si)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pslld(__m64 __m, __m64 __count) { - return _mm_sll_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_pi32(__m64 __m, int __count) { - return (__m64)__builtin_ia32_pslldi((__v2si)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pslldi(__m64 __m, int __count) { - return _mm_slli_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_si64(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psllq((__v1di)__m, (__v1di)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psllq(__m64 __m, __m64 __count) { - return _mm_sll_si64(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_si64(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psllqi((__v1di)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psllqi(__m64 __m, int __count) { - return _mm_slli_si64(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sra_pi16(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psraw((__v4hi)__m, (__v4hi)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psraw(__m64 __m, __m64 __count) { - return _mm_sra_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srai_pi16(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psrawi((__v4hi)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrawi(__m64 __m, int __count) { - return _mm_srai_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sra_pi32(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psrad((__v2si)__m, (__v2si)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrad(__m64 __m, __m64 __count) { - return _mm_sra_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srai_pi32(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psradi((__v2si)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psradi(__m64 __m, int __count) { - return _mm_srai_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_pi16(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psrlw((__v4hi)__m, (__v4hi)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrlw(__m64 __m, __m64 __count) { - return _mm_srl_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_pi16(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psrlwi((__v4hi)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrlwi(__m64 __m, int __count) { - return _mm_srli_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_pi32(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psrld((__v2si)__m, (__v2si)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrld(__m64 __m, __m64 __count) { - return _mm_srl_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_pi32(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psrldi((__v2si)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrldi(__m64 __m, int __count) { - return _mm_srli_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_si64(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psrlq((__v1di)__m, (__v1di)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrlq(__m64 __m, __m64 __count) { - return _mm_srl_si64(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_si64(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psrlqi((__v1di)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrlqi(__m64 __m, int __count) { - return _mm_srli_si64(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_and_si64(__m64 __m1, __m64 __m2) { - return __builtin_ia32_pand(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pand(__m64 __m1, __m64 __m2) { - return _mm_and_si64(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_andnot_si64(__m64 __m1, __m64 __m2) { - return __builtin_ia32_pandn(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pandn(__m64 __m1, __m64 __m2) { - return _mm_andnot_si64(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_si64(__m64 __m1, __m64 __m2) { - return __builtin_ia32_por(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_por(__m64 __m1, __m64 __m2) { - return _mm_or_si64(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_si64(__m64 __m1, __m64 __m2) { - return __builtin_ia32_pxor(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pxor(__m64 __m1, __m64 __m2) { - return _mm_xor_si64(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpeqb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpeqb(__m64 __m1, __m64 __m2) { - return _mm_cmpeq_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpgtb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpgtb(__m64 __m1, __m64 __m2) { - return _mm_cmpgt_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpeqw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpeqw(__m64 __m1, __m64 __m2) { - return _mm_cmpeq_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpgtw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpgtw(__m64 __m1, __m64 __m2) { - return _mm_cmpgt_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpeqd((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpeqd(__m64 __m1, __m64 __m2) { - return _mm_cmpeq_pi32(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpgtd((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpgtd(__m64 __m1, __m64 __m2) { - return _mm_cmpgt_pi32(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setzero_si64(void) { - return (__m64)0LL; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pi32(int __i1, int __i0) { - return (__m64)__builtin_ia32_vec_init_v2si(__i0, __i1); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pi16(short __w3, short __w2, short __w1, short __w0) { - return (__m64)__builtin_ia32_vec_init_v4hi(__w0, __w1, __w2, __w3); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pi8(char __b7, char __b6, char __b5, char __b4, char __b3, - char __b2, char __b1, char __b0) { - return (__m64)__builtin_ia32_vec_init_v8qi(__b0, __b1, __b2, __b3, __b4, __b5, - __b6, __b7); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_pi32(int __i0, int __i1) { - return _mm_set_pi32(__i1, __i0); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_pi16(short __w0, short __w1, short __w2, short __w3) { - return _mm_set_pi16(__w3, __w2, __w1, __w0); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_pi8(char __b0, char __b1, char __b2, char __b3, char __b4, - char __b5, char __b6, char __b7) { - return _mm_set_pi8(__b7, __b6, __b5, __b4, __b3, __b2, __b1, __b0); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_pi32(int __i) { - return _mm_set_pi32(__i, __i); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_pi16(short __w) { - return _mm_set_pi16(__w, __w, __w, __w); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_pi8(char __b) { - return _mm_set_pi8(__b, __b, __b, __b, __b, __b, __b, __b); -} - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); - -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int posix_memalign(void **, size_t, size_t); - -static __inline void *_mm_malloc(size_t __size, size_t __alignment) { - void *__ptr; - if (__alignment == 1) - return malloc(__size); - if (__alignment == 2 || (sizeof(void *) == 8 && __alignment == 4)) - __alignment = sizeof(void *); - if (posix_memalign(&__ptr, __alignment, __size) == 0) - return __ptr; - else - return ((void *)0); -} - -static __inline void _mm_free(void *__ptr) { free(__ptr); } - -enum _mm_hint { - - _MM_HINT_ET0 = 7, - _MM_HINT_ET1 = 6, - _MM_HINT_T0 = 3, - _MM_HINT_T1 = 2, - _MM_HINT_T2 = 1, - _MM_HINT_NTA = 0 -}; - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_prefetch(const void *__P, enum _mm_hint __I) { - __builtin_prefetch(__P, (__I & 0x4) >> 2, __I & 0x3); -} -typedef float __m128 __attribute__((__vector_size__(16), __may_alias__)); - -typedef float __m128_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); - -typedef float __v4sf __attribute__((__vector_size__(16))); -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_undefined_ps(void) { - __m128 __Y = __Y; - return __Y; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setzero_ps(void) { - return __extension__(__m128){0.0f, 0.0f, 0.0f, 0.0f}; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_addss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_subss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_mulss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_divss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_ss(__m128 __A) { - return (__m128)__builtin_ia32_sqrtss((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp_ss(__m128 __A) { - return (__m128)__builtin_ia32_rcpss((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt_ss(__m128 __A) { - return (__m128)__builtin_ia32_rsqrtss((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_ps(__m128 __A, __m128 __B) { - return (__m128)((__v4sf)__A + (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_ps(__m128 __A, __m128 __B) { - return (__m128)((__v4sf)__A - (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_ps(__m128 __A, __m128 __B) { - return (__m128)((__v4sf)__A * (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_ps(__m128 __A, __m128 __B) { - return (__m128)((__v4sf)__A / (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_ps(__m128 __A) { - return (__m128)__builtin_ia32_sqrtps((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp_ps(__m128 __A) { - return (__m128)__builtin_ia32_rcpps((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt_ps(__m128 __A) { - return (__m128)__builtin_ia32_rsqrtps((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_and_ps(__m128 __A, __m128 __B) { - return __builtin_ia32_andps(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_andnot_ps(__m128 __A, __m128 __B) { - return __builtin_ia32_andnps(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_ps(__m128 __A, __m128 __B) { - return __builtin_ia32_orps(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_ps(__m128 __A, __m128 __B) { - return __builtin_ia32_xorps(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpeqss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpltss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpless((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movss( - (__v4sf)__A, (__v4sf)__builtin_ia32_cmpltss((__v4sf)__B, (__v4sf)__A)); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movss( - (__v4sf)__A, (__v4sf)__builtin_ia32_cmpless((__v4sf)__B, (__v4sf)__A)); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpneqss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnlt_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpnltss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnle_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpnless((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpngt_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movss( - (__v4sf)__A, (__v4sf)__builtin_ia32_cmpnltss((__v4sf)__B, (__v4sf)__A)); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnge_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movss( - (__v4sf)__A, (__v4sf)__builtin_ia32_cmpnless((__v4sf)__B, (__v4sf)__A)); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpord_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpordss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpunord_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpunordss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpeqps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpltps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpleps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpgtps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpgeps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpneqps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnlt_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpnltps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnle_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpnleps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpngt_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpngtps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnge_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpngeps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpord_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpordps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpunord_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpunordps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comieq_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comieq((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comilt_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comilt((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comile_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comile((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comigt_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comigt((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comige_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comige((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comineq_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comineq((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomieq_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomieq((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomilt_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomilt((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomile_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomile((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomigt_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomigt((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomige_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomige((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomineq_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomineq((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_si32(__m128 __A) { - return __builtin_ia32_cvtss2si((__v4sf)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_ss2si(__m128 __A) { - return _mm_cvtss_si32(__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_si64(__m128 __A) { - return __builtin_ia32_cvtss2si64((__v4sf)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_si64x(__m128 __A) { - return __builtin_ia32_cvtss2si64((__v4sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_pi32(__m128 __A) { - return (__m64)__builtin_ia32_cvtps2pi((__v4sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_ps2pi(__m128 __A) { - return _mm_cvtps_pi32(__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_si32(__m128 __A) { - return __builtin_ia32_cvttss2si((__v4sf)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_ss2si(__m128 __A) { - return _mm_cvttss_si32(__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_si64(__m128 __A) { - return __builtin_ia32_cvttss2si64((__v4sf)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_si64x(__m128 __A) { - return __builtin_ia32_cvttss2si64((__v4sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttps_pi32(__m128 __A) { - return (__m64)__builtin_ia32_cvttps2pi((__v4sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_ps2pi(__m128 __A) { - return _mm_cvttps_pi32(__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi32_ss(__m128 __A, int __B) { - return (__m128)__builtin_ia32_cvtsi2ss((__v4sf)__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_si2ss(__m128 __A, int __B) { - return _mm_cvtsi32_ss(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_ss(__m128 __A, long long __B) { - return (__m128)__builtin_ia32_cvtsi642ss((__v4sf)__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64x_ss(__m128 __A, long long __B) { - return (__m128)__builtin_ia32_cvtsi642ss((__v4sf)__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpi32_ps(__m128 __A, __m64 __B) { - return (__m128)__builtin_ia32_cvtpi2ps((__v4sf)__A, (__v2si)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_pi2ps(__m128 __A, __m64 __B) { - return _mm_cvtpi32_ps(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpi16_ps(__m64 __A) { - __v4hi __sign; - __v2si __hisi, __losi; - __v4sf __zero, __ra, __rb; - - __sign = __builtin_ia32_pcmpgtw((__v4hi)0LL, (__v4hi)__A); - - __losi = (__v2si)__builtin_ia32_punpcklwd((__v4hi)__A, __sign); - __hisi = (__v2si)__builtin_ia32_punpckhwd((__v4hi)__A, __sign); - - __zero = (__v4sf)_mm_setzero_ps(); - __ra = __builtin_ia32_cvtpi2ps(__zero, __losi); - __rb = __builtin_ia32_cvtpi2ps(__ra, __hisi); - - return (__m128)__builtin_ia32_movlhps(__ra, __rb); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpu16_ps(__m64 __A) { - __v2si __hisi, __losi; - __v4sf __zero, __ra, __rb; - - __losi = (__v2si)__builtin_ia32_punpcklwd((__v4hi)__A, (__v4hi)0LL); - __hisi = (__v2si)__builtin_ia32_punpckhwd((__v4hi)__A, (__v4hi)0LL); - - __zero = (__v4sf)_mm_setzero_ps(); - __ra = __builtin_ia32_cvtpi2ps(__zero, __losi); - __rb = __builtin_ia32_cvtpi2ps(__ra, __hisi); - - return (__m128)__builtin_ia32_movlhps(__ra, __rb); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpi8_ps(__m64 __A) { - __v8qi __sign; - - __sign = __builtin_ia32_pcmpgtb((__v8qi)0LL, (__v8qi)__A); - - __A = (__m64)__builtin_ia32_punpcklbw((__v8qi)__A, __sign); - - return _mm_cvtpi16_ps(__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpu8_ps(__m64 __A) { - __A = (__m64)__builtin_ia32_punpcklbw((__v8qi)__A, (__v8qi)0LL); - return _mm_cvtpu16_ps(__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpi32x2_ps(__m64 __A, __m64 __B) { - __v4sf __zero = (__v4sf)_mm_setzero_ps(); - __v4sf __sfa = __builtin_ia32_cvtpi2ps(__zero, (__v2si)__A); - __v4sf __sfb = __builtin_ia32_cvtpi2ps(__sfa, (__v2si)__B); - return (__m128)__builtin_ia32_movlhps(__sfa, __sfb); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_pi16(__m128 __A) { - __v4sf __hisf = (__v4sf)__A; - __v4sf __losf = __builtin_ia32_movhlps(__hisf, __hisf); - __v2si __hisi = __builtin_ia32_cvtps2pi(__hisf); - __v2si __losi = __builtin_ia32_cvtps2pi(__losf); - return (__m64)__builtin_ia32_packssdw(__hisi, __losi); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_pi8(__m128 __A) { - __v4hi __tmp = (__v4hi)_mm_cvtps_pi16(__A); - return (__m64)__builtin_ia32_packsswb(__tmp, (__v4hi)0LL); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_ps(__m128 __A, __m128 __B, int const __mask) { - return (__m128)__builtin_ia32_shufps((__v4sf)__A, (__v4sf)__B, __mask); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpckhps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpcklps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadh_pi(__m128 __A, __m64 const *__P) { - return (__m128)__builtin_ia32_loadhps((__v4sf)__A, (const __v2sf *)__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeh_pi(__m64 *__P, __m128 __A) { - __builtin_ia32_storehps((__v2sf *)__P, (__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movehl_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movhlps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movelh_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movlhps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadl_pi(__m128 __A, __m64 const *__P) { - return (__m128)__builtin_ia32_loadlps((__v4sf)__A, (const __v2sf *)__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storel_pi(__m64 *__P, __m128 __A) { - __builtin_ia32_storelps((__v2sf *)__P, (__v4sf)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movemask_ps(__m128 __A) { - return __builtin_ia32_movmskps((__v4sf)__A); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getcsr(void) { - return __builtin_ia32_stmxcsr(); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_GET_EXCEPTION_STATE(void) { - return _mm_getcsr() & 0x003f; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_GET_EXCEPTION_MASK(void) { - return _mm_getcsr() & 0x1f80; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_GET_ROUNDING_MODE(void) { - return _mm_getcsr() & 0x6000; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_GET_FLUSH_ZERO_MODE(void) { - return _mm_getcsr() & 0x8000; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setcsr(unsigned int __I) { - __builtin_ia32_ldmxcsr(__I); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_SET_EXCEPTION_STATE(unsigned int __mask) { - _mm_setcsr((_mm_getcsr() & ~0x003f) | __mask); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_SET_EXCEPTION_MASK(unsigned int __mask) { - _mm_setcsr((_mm_getcsr() & ~0x1f80) | __mask); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_SET_ROUNDING_MODE(unsigned int __mode) { - _mm_setcsr((_mm_getcsr() & ~0x6000) | __mode); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_SET_FLUSH_ZERO_MODE(unsigned int __mode) { - _mm_setcsr((_mm_getcsr() & ~0x8000) | __mode); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_ss(float __F) { - return __extension__(__m128)(__v4sf){__F, 0.0f, 0.0f, 0.0f}; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_ps(float __F) { - return __extension__(__m128)(__v4sf){__F, __F, __F, __F}; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_ps1(float __F) { - return _mm_set1_ps(__F); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_ss(float const *__P) { - return _mm_set_ss(*__P); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load1_ps(float const *__P) { - return _mm_set1_ps(*__P); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_ps1(float const *__P) { - return _mm_load1_ps(__P); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_ps(float const *__P) { - return *(__m128 *)__P; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_ps(float const *__P) { - return *(__m128_u *)__P; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadr_ps(float const *__P) { - __v4sf __tmp = *(__v4sf *)__P; - return (__m128)__builtin_ia32_shufps( - __tmp, __tmp, (((0) << 6) | ((1) << 4) | ((2) << 2) | (3))); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_set_ps(const float __Z, const float __Y, const float __X, const float __W) { - return __extension__(__m128)(__v4sf){__W, __X, __Y, __Z}; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_ps(float __Z, float __Y, float __X, float __W) { - return __extension__(__m128)(__v4sf){__Z, __Y, __X, __W}; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_ss(float *__P, __m128 __A) { - *__P = ((__v4sf)__A)[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_f32(__m128 __A) { - return ((__v4sf)__A)[0]; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_ps(float *__P, __m128 __A) { - *(__m128 *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_ps(float *__P, __m128 __A) { - *(__m128_u *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store1_ps(float *__P, __m128 __A) { - __v4sf __va = (__v4sf)__A; - __v4sf __tmp = __builtin_ia32_shufps( - __va, __va, (((0) << 6) | ((0) << 4) | ((0) << 2) | (0))); - _mm_storeu_ps(__P, __tmp); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_ps1(float *__P, __m128 __A) { - _mm_store1_ps(__P, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storer_ps(float *__P, __m128 __A) { - __v4sf __va = (__v4sf)__A; - __v4sf __tmp = __builtin_ia32_shufps( - __va, __va, (((0) << 6) | ((1) << 4) | ((2) << 2) | (3))); - _mm_store_ps(__P, __tmp); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_move_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_shuffle( - (__v4sf)__A, (__v4sf)__B, - __extension__(__attribute__((__vector_size__(16))) int){4, 1, 2, 3}); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_pi16(__m64 const __A, int const __N) { - return (unsigned short)__builtin_ia32_vec_ext_v4hi((__v4hi)__A, __N); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pextrw(__m64 const __A, int const __N) { - return _mm_extract_pi16(__A, __N); -} -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_pi16(__m64 const __A, int const __D, int const __N) { - return (__m64)__builtin_ia32_vec_set_v4hi((__v4hi)__A, __D, __N); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pinsrw(__m64 const __A, int const __D, int const __N) { - return _mm_insert_pi16(__A, __D, __N); -} -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_pi16(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pmaxsw((__v4hi)__A, (__v4hi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmaxsw(__m64 __A, __m64 __B) { - return _mm_max_pi16(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_pu8(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pmaxub((__v8qi)__A, (__v8qi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmaxub(__m64 __A, __m64 __B) { - return _mm_max_pu8(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_pi16(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pminsw((__v4hi)__A, (__v4hi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pminsw(__m64 __A, __m64 __B) { - return _mm_min_pi16(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_pu8(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pminub((__v8qi)__A, (__v8qi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pminub(__m64 __A, __m64 __B) { - return _mm_min_pu8(__A, __B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movemask_pi8(__m64 __A) { - return __builtin_ia32_pmovmskb((__v8qi)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmovmskb(__m64 __A) { - return _mm_movemask_pi8(__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhi_pu16(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pmulhuw((__v4hi)__A, (__v4hi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmulhuw(__m64 __A, __m64 __B) { - return _mm_mulhi_pu16(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_pi16(__m64 __A, int const __N) { - return (__m64)__builtin_ia32_pshufw((__v4hi)__A, __N); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pshufw(__m64 __A, int const __N) { - return _mm_shuffle_pi16(__A, __N); -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskmove_si64(__m64 __A, __m64 __N, char *__P) { - - typedef long long __v2di __attribute__((__vector_size__(16))); - typedef char __v16qi __attribute__((__vector_size__(16))); - - __v2di __A128 = __extension__(__v2di){((__v1di)__A)[0], 0}; - __v2di __N128 = __extension__(__v2di){((__v1di)__N)[0], 0}; - - long unsigned int offset = ((long unsigned int)__P) & 0xf; - if (offset) { - - if (offset > 8) - offset = 8; - __P = (char *)(((long unsigned int)__P) - offset); - - switch (offset) { - case 1: - __A128 = __builtin_ia32_pslldqi128(__A128, 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 8); - break; - case 2: - __A128 = __builtin_ia32_pslldqi128(__A128, 2 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 2 * 8); - break; - case 3: - __A128 = __builtin_ia32_pslldqi128(__A128, 3 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 3 * 8); - break; - case 4: - __A128 = __builtin_ia32_pslldqi128(__A128, 4 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 4 * 8); - break; - case 5: - __A128 = __builtin_ia32_pslldqi128(__A128, 5 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 5 * 8); - break; - case 6: - __A128 = __builtin_ia32_pslldqi128(__A128, 6 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 6 * 8); - break; - case 7: - __A128 = __builtin_ia32_pslldqi128(__A128, 7 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 7 * 8); - break; - case 8: - __A128 = __builtin_ia32_pslldqi128(__A128, 8 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 8 * 8); - break; - default: - break; - } - } - __builtin_ia32_maskmovdqu((__v16qi)__A128, (__v16qi)__N128, __P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_maskmovq(__m64 __A, __m64 __N, char *__P) { - _mm_maskmove_si64(__A, __N, __P); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_avg_pu8(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pavgb((__v8qi)__A, (__v8qi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pavgb(__m64 __A, __m64 __B) { - return _mm_avg_pu8(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_avg_pu16(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pavgw((__v4hi)__A, (__v4hi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pavgw(__m64 __A, __m64 __B) { - return _mm_avg_pu16(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sad_pu8(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_psadbw((__v8qi)__A, (__v8qi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psadbw(__m64 __A, __m64 __B) { - return _mm_sad_pu8(__A, __B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_pi(__m64 *__P, __m64 __A) { - __builtin_ia32_movntq((unsigned long long *)__P, (unsigned long long)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_ps(float *__P, __m128 __A) { - __builtin_ia32_movntps(__P, (__v4sf)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sfence(void) { - __builtin_ia32_sfence(); -} -typedef double __v2df __attribute__((__vector_size__(16))); -typedef long long __v2di __attribute__((__vector_size__(16))); -typedef unsigned long long __v2du __attribute__((__vector_size__(16))); -typedef int __v4si __attribute__((__vector_size__(16))); -typedef unsigned int __v4su __attribute__((__vector_size__(16))); -typedef short __v8hi __attribute__((__vector_size__(16))); -typedef unsigned short __v8hu __attribute__((__vector_size__(16))); -typedef char __v16qi __attribute__((__vector_size__(16))); -typedef signed char __v16qs __attribute__((__vector_size__(16))); -typedef unsigned char __v16qu __attribute__((__vector_size__(16))); - -typedef long long __m128i __attribute__((__vector_size__(16), __may_alias__)); -typedef double __m128d __attribute__((__vector_size__(16), __may_alias__)); - -typedef long long __m128i_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); -typedef double __m128d_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_sd(double __F) { - return __extension__(__m128d){__F, 0.0}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_pd(double __F) { - return __extension__(__m128d){__F, __F}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pd1(double __F) { - return _mm_set1_pd(__F); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pd(double __W, double __X) { - return __extension__(__m128d){__X, __W}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_pd(double __W, double __X) { - return __extension__(__m128d){__W, __X}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_undefined_pd(void) { - __m128d __Y = __Y; - return __Y; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setzero_pd(void) { - return __extension__(__m128d){0.0, 0.0}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_move_sd(__m128d __A, __m128d __B) { - return __extension__(__m128d) - __builtin_shuffle((__v2df)__A, (__v2df)__B, (__v2di){2, 1}); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_pd(double const *__P) { - return *(__m128d *)__P; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_pd(double const *__P) { - return *(__m128d_u *)__P; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load1_pd(double const *__P) { - return _mm_set1_pd(*__P); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_sd(double const *__P) { - return _mm_set_sd(*__P); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_pd1(double const *__P) { - return _mm_load1_pd(__P); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadr_pd(double const *__P) { - __m128d __tmp = _mm_load_pd(__P); - return __builtin_ia32_shufpd(__tmp, __tmp, (((0) << 1) | (1))); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_pd(double *__P, __m128d __A) { - *(__m128d *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_pd(double *__P, __m128d __A) { - *(__m128d_u *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_sd(double *__P, __m128d __A) { - *__P = ((__v2df)__A)[0]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_f64(__m128d __A) { - return ((__v2df)__A)[0]; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storel_pd(double *__P, __m128d __A) { - _mm_store_sd(__P, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeh_pd(double *__P, __m128d __A) { - *__P = ((__v2df)__A)[1]; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store1_pd(double *__P, __m128d __A) { - _mm_store_pd(__P, __builtin_ia32_shufpd(__A, __A, (((0) << 1) | (0)))); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_pd1(double *__P, __m128d __A) { - _mm_store1_pd(__P, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storer_pd(double *__P, __m128d __A) { - _mm_store_pd(__P, __builtin_ia32_shufpd(__A, __A, (((0) << 1) | (1)))); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi128_si32(__m128i __A) { - return __builtin_ia32_vec_ext_v4si((__v4si)__A, 0); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi128_si64(__m128i __A) { - return ((__v2di)__A)[0]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi128_si64x(__m128i __A) { - return ((__v2di)__A)[0]; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_pd(__m128d __A, __m128d __B) { - return (__m128d)((__v2df)__A + (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_addsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_pd(__m128d __A, __m128d __B) { - return (__m128d)((__v2df)__A - (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_subsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_pd(__m128d __A, __m128d __B) { - return (__m128d)((__v2df)__A * (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_mulsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_pd(__m128d __A, __m128d __B) { - return (__m128d)((__v2df)__A / (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_divsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_pd(__m128d __A) { - return (__m128d)__builtin_ia32_sqrtpd((__v2df)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_sd(__m128d __A, __m128d __B) { - __v2df __tmp = __builtin_ia32_movsd((__v2df)__A, (__v2df)__B); - return (__m128d)__builtin_ia32_sqrtsd((__v2df)__tmp); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_and_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_andnot_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andnpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_orpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_xorpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpeqpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpltpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmplepd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpgtpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpgepd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpneqpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnlt_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpnltpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnle_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpnlepd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpngt_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpngtpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnge_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpngepd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpord_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpordpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpunord_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpunordpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpeqsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpltsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmplesd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movsd( - (__v2df)__A, (__v2df)__builtin_ia32_cmpltsd((__v2df)__B, (__v2df)__A)); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movsd( - (__v2df)__A, (__v2df)__builtin_ia32_cmplesd((__v2df)__B, (__v2df)__A)); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpneqsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnlt_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpnltsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnle_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpnlesd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpngt_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movsd( - (__v2df)__A, (__v2df)__builtin_ia32_cmpnltsd((__v2df)__B, (__v2df)__A)); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnge_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movsd( - (__v2df)__A, (__v2df)__builtin_ia32_cmpnlesd((__v2df)__B, (__v2df)__A)); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpord_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpordsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpunord_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpunordsd((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comieq_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdeq((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comilt_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdlt((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comile_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdle((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comigt_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdgt((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comige_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdge((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comineq_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdneq((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomieq_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdeq((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomilt_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdlt((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomile_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdle((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomigt_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdgt((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomige_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdge((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomineq_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdneq((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_epi64x(long long __q1, long long __q0) { - return __extension__(__m128i)(__v2di){__q0, __q1}; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_epi64(__m64 __q1, __m64 __q0) { - return _mm_set_epi64x((long long)__q1, (long long)__q0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_epi32(int __q3, int __q2, int __q1, int __q0) { - return __extension__(__m128i)(__v4si){__q0, __q1, __q2, __q3}; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_epi16(short __q7, short __q6, short __q5, short __q4, short __q3, - short __q2, short __q1, short __q0) { - return __extension__(__m128i)(__v8hi){__q0, __q1, __q2, __q3, - __q4, __q5, __q6, __q7}; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_epi8(char __q15, char __q14, char __q13, char __q12, char __q11, - char __q10, char __q09, char __q08, char __q07, char __q06, - char __q05, char __q04, char __q03, char __q02, char __q01, - char __q00) { - return __extension__(__m128i)(__v16qi){ - __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, - __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15}; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_epi64x(long long __A) { - return _mm_set_epi64x(__A, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_epi64(__m64 __A) { - return _mm_set_epi64(__A, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_epi32(int __A) { - return _mm_set_epi32(__A, __A, __A, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_epi16(short __A) { - return _mm_set_epi16(__A, __A, __A, __A, __A, __A, __A, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_epi8(char __A) { - return _mm_set_epi8(__A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_epi64(__m64 __q0, __m64 __q1) { - return _mm_set_epi64(__q1, __q0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_epi32(int __q0, int __q1, int __q2, int __q3) { - return _mm_set_epi32(__q3, __q2, __q1, __q0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_epi16(short __q0, short __q1, short __q2, short __q3, short __q4, - short __q5, short __q6, short __q7) { - return _mm_set_epi16(__q7, __q6, __q5, __q4, __q3, __q2, __q1, __q0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_epi8(char __q00, char __q01, char __q02, char __q03, char __q04, - char __q05, char __q06, char __q07, char __q08, char __q09, - char __q10, char __q11, char __q12, char __q13, char __q14, - char __q15) { - return _mm_set_epi8(__q15, __q14, __q13, __q12, __q11, __q10, __q09, __q08, - __q07, __q06, __q05, __q04, __q03, __q02, __q01, __q00); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_si128(__m128i const *__P) { - return *__P; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_si128(__m128i_u const *__P) { - return *__P; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadl_epi64(__m128i_u const *__P) { - return _mm_set_epi64((__m64)0LL, *(__m64_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_si64(void const *__P) { - return _mm_loadl_epi64((__m128i_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_si32(void const *__P) { - return _mm_set_epi32(0, 0, 0, (*(__m32_u *)__P)[0]); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_si16(void const *__P) { - return _mm_set_epi16(0, 0, 0, 0, 0, 0, 0, (*(__m16_u *)__P)[0]); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_si128(__m128i *__P, __m128i __B) { - *__P = __B; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_si128(__m128i_u *__P, __m128i __B) { - *__P = __B; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storel_epi64(__m128i_u *__P, __m128i __B) { - *(__m64_u *)__P = (__m64)((__v2di)__B)[0]; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_si64(void *__P, __m128i __B) { - _mm_storel_epi64((__m128i_u *)__P, __B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_si32(void *__P, __m128i __B) { - *(__m32_u *)__P = (__m32)((__v4si)__B)[0]; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_si16(void *__P, __m128i __B) { - *(__m16_u *)__P = (__m16)((__v8hi)__B)[0]; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movepi64_pi64(__m128i __B) { - return (__m64)((__v2di)__B)[0]; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movpi64_epi64(__m64 __A) { - return _mm_set_epi64((__m64)0LL, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_move_epi64(__m128i __A) { - return (__m128i)__builtin_ia32_movq128((__v2di)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_undefined_si128(void) { - __m128i __Y = __Y; - return __Y; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setzero_si128(void) { - return __extension__(__m128i)(__v4si){0, 0, 0, 0}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi32_pd(__m128i __A) { - return (__m128d)__builtin_ia32_cvtdq2pd((__v4si)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi32_ps(__m128i __A) { - return (__m128)__builtin_ia32_cvtdq2ps((__v4si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_epi32(__m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq((__v2df)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_pi32(__m128d __A) { - return (__m64)__builtin_ia32_cvtpd2pi((__v2df)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_ps(__m128d __A) { - return (__m128)__builtin_ia32_cvtpd2ps((__v2df)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttpd_epi32(__m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq((__v2df)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttpd_pi32(__m128d __A) { - return (__m64)__builtin_ia32_cvttpd2pi((__v2df)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpi32_pd(__m64 __A) { - return (__m128d)__builtin_ia32_cvtpi2pd((__v2si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_epi32(__m128 __A) { - return (__m128i)__builtin_ia32_cvtps2dq((__v4sf)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttps_epi32(__m128 __A) { - return (__m128i)__builtin_ia32_cvttps2dq((__v4sf)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_pd(__m128 __A) { - return (__m128d)__builtin_ia32_cvtps2pd((__v4sf)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_si32(__m128d __A) { - return __builtin_ia32_cvtsd2si((__v2df)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_si64(__m128d __A) { - return __builtin_ia32_cvtsd2si64((__v2df)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_si64x(__m128d __A) { - return __builtin_ia32_cvtsd2si64((__v2df)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_si32(__m128d __A) { - return __builtin_ia32_cvttsd2si((__v2df)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_si64(__m128d __A) { - return __builtin_ia32_cvttsd2si64((__v2df)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_si64x(__m128d __A) { - return __builtin_ia32_cvttsd2si64((__v2df)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_ss(__m128 __A, __m128d __B) { - return (__m128)__builtin_ia32_cvtsd2ss((__v4sf)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi32_sd(__m128d __A, int __B) { - return (__m128d)__builtin_ia32_cvtsi2sd((__v2df)__A, __B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_sd(__m128d __A, long long __B) { - return (__m128d)__builtin_ia32_cvtsi642sd((__v2df)__A, __B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64x_sd(__m128d __A, long long __B) { - return (__m128d)__builtin_ia32_cvtsi642sd((__v2df)__A, __B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_sd(__m128d __A, __m128 __B) { - return (__m128d)__builtin_ia32_cvtss2sd((__v2df)__A, (__v4sf)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_pd(__m128d __A, __m128d __B, const int __mask) { - return (__m128d)__builtin_ia32_shufpd((__v2df)__A, (__v2df)__B, __mask); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpckhpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpcklpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadh_pd(__m128d __A, double const *__B) { - return (__m128d)__builtin_ia32_loadhpd((__v2df)__A, __B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadl_pd(__m128d __A, double const *__B) { - return (__m128d)__builtin_ia32_loadlpd((__v2df)__A, __B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movemask_pd(__m128d __A) { - return __builtin_ia32_movmskpd((__v2df)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packs_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packsswb128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packs_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packssdw128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packus_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packuswb128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhbw128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhwd128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhdq128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhqdq128((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklbw128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklwd128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckldq128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklqdq128((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_epi8(__m128i __A, __m128i __B) { - return (__m128i)((__v16qu)__A + (__v16qu)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hu)__A + (__v8hu)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4su)__A + (__v4su)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_epi64(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A + (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsb128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusb128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_epi8(__m128i __A, __m128i __B) { - return (__m128i)((__v16qu)__A - (__v16qu)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hu)__A - (__v8hu)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4su)__A - (__v4su)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_epi64(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A - (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsb128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusb128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_madd_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaddwd128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhi_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mullo_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hu)__A * (__v8hu)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_su32(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pmuludq((__v2si)__A, (__v2si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmuludq128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_epi16(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllwi128((__v8hi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_epi32(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_pslldi128((__v4si)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_epi64(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllqi128((__v2di)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srai_epi16(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psrawi128((__v8hi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srai_epi32(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psradi128((__v4si)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_bsrli_si128(__m128i __A, const int __N) { - return (__m128i)__builtin_ia32_psrldqi128(__A, __N * 8); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_bslli_si128(__m128i __A, const int __N) { - return (__m128i)__builtin_ia32_pslldqi128(__A, __N * 8); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_si128(__m128i __A, const int __N) { - return (__m128i)__builtin_ia32_psrldqi128(__A, __N * 8); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_si128(__m128i __A, const int __N) { - return (__m128i)__builtin_ia32_pslldqi128(__A, __N * 8); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_epi16(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psrlwi128((__v8hi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_epi32(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psrldi128((__v4si)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_epi64(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psrlqi128((__v2di)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pslld128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllq128((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sra_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sra_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrad128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrld128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlq128((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_and_si128(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A & (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_andnot_si128(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandn128((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_si128(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A | (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_si128(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A ^ (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi8(__m128i __A, __m128i __B) { - return (__m128i)((__v16qi)__A == (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hi)__A == (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4si)__A == (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi8(__m128i __A, __m128i __B) { - return (__m128i)((__v16qs)__A < (__v16qs)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hi)__A < (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4si)__A < (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi8(__m128i __A, __m128i __B) { - return (__m128i)((__v16qs)__A > (__v16qs)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hi)__A > (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4si)__A > (__v4si)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_epi16(__m128i const __A, int const __N) { - return (unsigned short)__builtin_ia32_vec_ext_v8hi((__v8hi)__A, __N); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_epi16(__m128i const __A, int const __D, int const __N) { - return (__m128i)__builtin_ia32_vec_set_v8hi((__v8hi)__A, __D, __N); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxub128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminub128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movemask_epi8(__m128i __A) { - return __builtin_ia32_pmovmskb128((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhi_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhuw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shufflehi_epi16(__m128i __A, const int __mask) { - return (__m128i)__builtin_ia32_pshufhw((__v8hi)__A, __mask); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shufflelo_epi16(__m128i __A, const int __mask) { - return (__m128i)__builtin_ia32_pshuflw((__v8hi)__A, __mask); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_epi32(__m128i __A, const int __mask) { - return (__m128i)__builtin_ia32_pshufd((__v4si)__A, __mask); -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskmoveu_si128(__m128i __A, __m128i __B, char *__C) { - __builtin_ia32_maskmovdqu((__v16qi)__A, (__v16qi)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_avg_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgb128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_avg_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sad_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psadbw128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_si32(int *__A, int __B) { - __builtin_ia32_movnti(__A, __B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_si64(long long int *__A, long long int __B) { - __builtin_ia32_movnti64(__A, __B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_si128(__m128i *__A, __m128i __B) { - __builtin_ia32_movntdq((__v2di *)__A, (__v2di)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_pd(double *__A, __m128d __B) { - __builtin_ia32_movntpd(__A, (__v2df)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_clflush(void const *__A) { - __builtin_ia32_clflush(__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_lfence(void) { - __builtin_ia32_lfence(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mfence(void) { - __builtin_ia32_mfence(); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi32_si128(int __A) { - return _mm_set_epi32(0, 0, 0, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_si128(long long __A) { - return _mm_set_epi64x(0, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64x_si128(long long __A) { - return _mm_set_epi64x(0, __A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castpd_ps(__m128d __A) { - return (__m128)__A; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castpd_si128(__m128d __A) { - return (__m128i)__A; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castps_pd(__m128 __A) { - return (__m128d)__A; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castps_si128(__m128 __A) { - return (__m128i)__A; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castsi128_ps(__m128i __A) { - return (__m128)__A; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castsi128_pd(__m128i __A) { - return (__m128d)__A; -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_pause(void) { - __builtin_ia32_pause(); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_addsub_ps(__m128 __X, __m128 __Y) { - return (__m128)__builtin_ia32_addsubps((__v4sf)__X, (__v4sf)__Y); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_ps(__m128 __X, __m128 __Y) { - return (__m128)__builtin_ia32_haddps((__v4sf)__X, (__v4sf)__Y); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_ps(__m128 __X, __m128 __Y) { - return (__m128)__builtin_ia32_hsubps((__v4sf)__X, (__v4sf)__Y); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movehdup_ps(__m128 __X) { - return (__m128)__builtin_ia32_movshdup((__v4sf)__X); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_moveldup_ps(__m128 __X) { - return (__m128)__builtin_ia32_movsldup((__v4sf)__X); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_addsub_pd(__m128d __X, __m128d __Y) { - return (__m128d)__builtin_ia32_addsubpd((__v2df)__X, (__v2df)__Y); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_pd(__m128d __X, __m128d __Y) { - return (__m128d)__builtin_ia32_haddpd((__v2df)__X, (__v2df)__Y); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_pd(__m128d __X, __m128d __Y) { - return (__m128d)__builtin_ia32_hsubpd((__v2df)__X, (__v2df)__Y); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loaddup_pd(double const *__P) { - return _mm_load1_pd(__P); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movedup_pd(__m128d __X) { - return _mm_shuffle_pd(__X, __X, (((0) << 1) | (0))); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_lddqu_si128(__m128i const *__P) { - return (__m128i)__builtin_ia32_lddqu((char const *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phaddw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phaddd128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadds_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phaddsw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phaddw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_pi32(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phaddd((__v2si)__X, (__v2si)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadds_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phaddsw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phsubw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phsubd128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsubs_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phsubsw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phsubw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_pi32(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phsubd((__v2si)__X, (__v2si)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsubs_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phsubsw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddubs_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaddubsw128((__v16qi)__X, (__v16qi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddubs_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_pmaddubsw((__v8qi)__X, (__v8qi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhrs_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmulhrsw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhrs_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_pmulhrsw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_epi8(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pshufb128((__v16qi)__X, (__v16qi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_pi8(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_pshufb((__v8qi)__X, (__v8qi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_epi8(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psignb128((__v16qi)__X, (__v16qi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psignw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psignd128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_pi8(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_psignb((__v8qi)__X, (__v8qi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_psignw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_pi32(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_psignd((__v2si)__X, (__v2si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_alignr_epi8(__m128i __X, __m128i __Y, const int __N) { - return (__m128i)__builtin_ia32_palignr128((__v2di)__X, (__v2di)__Y, __N * 8); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_alignr_pi8(__m64 __X, __m64 __Y, const int __N) { - return (__m64)__builtin_ia32_palignr((__v1di)__X, (__v1di)__Y, __N * 8); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_epi8(__m128i __X) { - return (__m128i)__builtin_ia32_pabsb128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_epi16(__m128i __X) { - return (__m128i)__builtin_ia32_pabsw128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pabsd128((__v4si)__X); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_pi8(__m64 __X) { - return (__m64)__builtin_ia32_pabsb((__v8qi)__X); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_pi16(__m64 __X) { - return (__m64)__builtin_ia32_pabsw((__v4hi)__X); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_pi32(__m64 __X) { - return (__m64)__builtin_ia32_pabsd((__v2si)__X); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testz_si128(__m128i __M, __m128i __V) { - return __builtin_ia32_ptestz128((__v2di)__M, (__v2di)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testc_si128(__m128i __M, __m128i __V) { - return __builtin_ia32_ptestc128((__v2di)__M, (__v2di)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testnzc_si128(__m128i __M, __m128i __V) { - return __builtin_ia32_ptestnzc128((__v2di)__M, (__v2di)__V); -} -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_round_pd(__m128d __V, const int __M) { - return (__m128d)__builtin_ia32_roundpd((__v2df)__V, __M); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_round_sd(__m128d __D, __m128d __V, const int __M) { - return (__m128d)__builtin_ia32_roundsd((__v2df)__D, (__v2df)__V, __M); -} -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_round_ps(__m128 __V, const int __M) { - return (__m128)__builtin_ia32_roundps((__v4sf)__V, __M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_round_ss(__m128 __D, __m128 __V, const int __M) { - return (__m128)__builtin_ia32_roundss((__v4sf)__D, (__v4sf)__V, __M); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blend_epi16(__m128i __X, __m128i __Y, const int __M) { - return (__m128i)__builtin_ia32_pblendw128((__v8hi)__X, (__v8hi)__Y, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blendv_epi8(__m128i __X, __m128i __Y, __m128i __M) { - return (__m128i)__builtin_ia32_pblendvb128((__v16qi)__X, (__v16qi)__Y, - (__v16qi)__M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blend_ps(__m128 __X, __m128 __Y, const int __M) { - return (__m128)__builtin_ia32_blendps((__v4sf)__X, (__v4sf)__Y, __M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blendv_ps(__m128 __X, __m128 __Y, __m128 __M) { - return (__m128)__builtin_ia32_blendvps((__v4sf)__X, (__v4sf)__Y, (__v4sf)__M); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blend_pd(__m128d __X, __m128d __Y, const int __M) { - return (__m128d)__builtin_ia32_blendpd((__v2df)__X, (__v2df)__Y, __M); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blendv_pd(__m128d __X, __m128d __Y, __m128d __M) { - return (__m128d)__builtin_ia32_blendvpd((__v2df)__X, (__v2df)__Y, - (__v2df)__M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dp_ps(__m128 __X, __m128 __Y, const int __M) { - return (__m128)__builtin_ia32_dpps((__v4sf)__X, (__v4sf)__Y, __M); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dp_pd(__m128d __X, __m128d __Y, const int __M) { - return (__m128d)__builtin_ia32_dppd((__v2df)__X, (__v2df)__Y, __M); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi64(__m128i __X, __m128i __Y) { - return (__m128i)((__v2di)__X == (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epi8(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pminsb128((__v16qi)__X, (__v16qi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epi8(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaxsb128((__v16qi)__X, (__v16qi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epu16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pminuw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epu16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaxuw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pminsd128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaxsd128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epu32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pminud128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epu32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaxud128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mullo_epi32(__m128i __X, __m128i __Y) { - return (__m128i)((__v4su)__X * (__v4su)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmuldq128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_ps(__m128 __D, __m128 __S, const int __N) { - return (__m128)__builtin_ia32_insertps128((__v4sf)__D, (__v4sf)__S, __N); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_ps(__m128 __X, const int __N) { - union { - int i; - float f; - } __tmp; - __tmp.f = __builtin_ia32_vec_ext_v4sf((__v4sf)__X, __N); - return __tmp.i; -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_epi8(__m128i __D, int __S, const int __N) { - return (__m128i)__builtin_ia32_vec_set_v16qi((__v16qi)__D, __S, __N); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_epi32(__m128i __D, int __S, const int __N) { - return (__m128i)__builtin_ia32_vec_set_v4si((__v4si)__D, __S, __N); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_epi64(__m128i __D, long long __S, const int __N) { - return (__m128i)__builtin_ia32_vec_set_v2di((__v2di)__D, __S, __N); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_epi8(__m128i __X, const int __N) { - return (unsigned char)__builtin_ia32_vec_ext_v16qi((__v16qi)__X, __N); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_epi32(__m128i __X, const int __N) { - return __builtin_ia32_vec_ext_v4si((__v4si)__X, __N); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_epi64(__m128i __X, const int __N) { - return __builtin_ia32_vec_ext_v2di((__v2di)__X, __N); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_minpos_epu16(__m128i __X) { - return (__m128i)__builtin_ia32_phminposuw128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi8_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxbd128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi16_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxwd128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi8_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxbq128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi32_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxdq128((__v4si)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi16_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxwq128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi8_epi16(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxbw128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu8_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxbd128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu16_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxwd128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu8_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxbq128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu32_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxdq128((__v4si)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu16_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxwq128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu8_epi16(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxbw128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packus_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_packusdw128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mpsadbw_epu8(__m128i __X, __m128i __Y, const int __M) { - return (__m128i)__builtin_ia32_mpsadbw128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_load_si128(__m128i *__X) { - return (__m128i)__builtin_ia32_movntdqa((__v2di *)__X); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistrm(__m128i __X, __m128i __Y, const int __M) { - return (__m128i)__builtin_ia32_pcmpistrm128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistri(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistri128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestrm(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return (__m128i)__builtin_ia32_pcmpestrm128((__v16qi)__X, __LX, (__v16qi)__Y, - __LY, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestri(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestri128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistra(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistria128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistrc(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistric128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistro(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistrio128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistrs(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistris128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistrz(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistriz128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestra(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestria128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestrc(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestric128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestro(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestrio128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestrs(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestris128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestrz(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestriz128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi64(__m128i __X, __m128i __Y) { - return (__m128i)((__v2di)__X > (__v2di)__Y); -} -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_crc32_u8(unsigned int __C, unsigned char __V) { - return __builtin_ia32_crc32qi(__C, __V); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_crc32_u16(unsigned int __C, unsigned short __V) { - return __builtin_ia32_crc32hi(__C, __V); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_crc32_u32(unsigned int __C, unsigned int __V) { - return __builtin_ia32_crc32si(__C, __V); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_crc32_u64(unsigned long long __C, unsigned long long __V) { - return __builtin_ia32_crc32di(__C, __V); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesdec_si128(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_aesdec128((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesdeclast_si128(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_aesdeclast128((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesenc_si128(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_aesenc128((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesenclast_si128(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_aesenclast128((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesimc_si128(__m128i __X) { - return (__m128i)__builtin_ia32_aesimc128((__v2di)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aeskeygenassist_si128(__m128i __X, const int __C) { - return (__m128i)__builtin_ia32_aeskeygenassist128((__v2di)__X, __C); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_clmulepi64_si128(__m128i __X, __m128i __Y, const int __I) { - return (__m128i)__builtin_ia32_pclmulqdq128((__v2di)__X, (__v2di)__Y, __I); -} - -typedef double __v4df __attribute__((__vector_size__(32))); -typedef float __v8sf __attribute__((__vector_size__(32))); -typedef long long __v4di __attribute__((__vector_size__(32))); -typedef unsigned long long __v4du __attribute__((__vector_size__(32))); -typedef int __v8si __attribute__((__vector_size__(32))); -typedef unsigned int __v8su __attribute__((__vector_size__(32))); -typedef short __v16hi __attribute__((__vector_size__(32))); -typedef unsigned short __v16hu __attribute__((__vector_size__(32))); -typedef char __v32qi __attribute__((__vector_size__(32))); -typedef signed char __v32qs __attribute__((__vector_size__(32))); -typedef unsigned char __v32qu __attribute__((__vector_size__(32))); - -typedef float __m256 __attribute__((__vector_size__(32), __may_alias__)); -typedef long long __m256i __attribute__((__vector_size__(32), __may_alias__)); -typedef double __m256d __attribute__((__vector_size__(32), __may_alias__)); - -typedef float __m256_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -typedef long long __m256i_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -typedef double __m256d_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_pd(__m256d __A, __m256d __B) { - return (__m256d)((__v4df)__A + (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_ps(__m256 __A, __m256 __B) { - return (__m256)((__v8sf)__A + (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_addsub_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_addsubpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_addsub_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_addsubps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_and_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_and_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_andnot_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andnpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_andnot_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andnps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blend_pd(__m256d __X, __m256d __Y, const int __M) { - return (__m256d)__builtin_ia32_blendpd256((__v4df)__X, (__v4df)__Y, __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blend_ps(__m256 __X, __m256 __Y, const int __M) { - return (__m256)__builtin_ia32_blendps256((__v8sf)__X, (__v8sf)__Y, __M); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blendv_pd(__m256d __X, __m256d __Y, __m256d __M) { - return (__m256d)__builtin_ia32_blendvpd256((__v4df)__X, (__v4df)__Y, - (__v4df)__M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blendv_ps(__m256 __X, __m256 __Y, __m256 __M) { - return (__m256)__builtin_ia32_blendvps256((__v8sf)__X, (__v8sf)__Y, - (__v8sf)__M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_div_pd(__m256d __A, __m256d __B) { - return (__m256d)((__v4df)__A / (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_div_ps(__m256 __A, __m256 __B) { - return (__m256)((__v8sf)__A / (__v8sf)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dp_ps(__m256 __X, __m256 __Y, const int __M) { - return (__m256)__builtin_ia32_dpps256((__v8sf)__X, (__v8sf)__Y, __M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hadd_pd(__m256d __X, __m256d __Y) { - return (__m256d)__builtin_ia32_haddpd256((__v4df)__X, (__v4df)__Y); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hadd_ps(__m256 __X, __m256 __Y) { - return (__m256)__builtin_ia32_haddps256((__v8sf)__X, (__v8sf)__Y); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hsub_pd(__m256d __X, __m256d __Y) { - return (__m256d)__builtin_ia32_hsubpd256((__v4df)__X, (__v4df)__Y); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hsub_ps(__m256 __X, __m256 __Y) { - return (__m256)__builtin_ia32_hsubps256((__v8sf)__X, (__v8sf)__Y); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_maxpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_maxps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_minpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_minps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mul_pd(__m256d __A, __m256d __B) { - return (__m256d)((__v4df)__A * (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mul_ps(__m256 __A, __m256 __B) { - return (__m256)((__v8sf)__A * (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_or_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_orpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_or_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_orps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_pd(__m256d __A, __m256d __B, const int __mask) { - return (__m256d)__builtin_ia32_shufpd256((__v4df)__A, (__v4df)__B, __mask); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_ps(__m256 __A, __m256 __B, const int __mask) { - return (__m256)__builtin_ia32_shufps256((__v8sf)__A, (__v8sf)__B, __mask); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_pd(__m256d __A, __m256d __B) { - return (__m256d)((__v4df)__A - (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_ps(__m256 __A, __m256 __B) { - return (__m256)((__v8sf)__A - (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_xor_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_xorpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_xor_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_xorps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_pd(__m128d __X, __m128d __Y, const int __P) { - return (__m128d)__builtin_ia32_cmppd((__v2df)__X, (__v2df)__Y, __P); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_ps(__m128 __X, __m128 __Y, const int __P) { - return (__m128)__builtin_ia32_cmpps((__v4sf)__X, (__v4sf)__Y, __P); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_pd(__m256d __X, __m256d __Y, const int __P) { - return (__m256d)__builtin_ia32_cmppd256((__v4df)__X, (__v4df)__Y, __P); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_ps(__m256 __X, __m256 __Y, const int __P) { - return (__m256)__builtin_ia32_cmpps256((__v8sf)__X, (__v8sf)__Y, __P); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_sd(__m128d __X, __m128d __Y, const int __P) { - return (__m128d)__builtin_ia32_cmpsd((__v2df)__X, (__v2df)__Y, __P); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_ss(__m128 __X, __m128 __Y, const int __P) { - return (__m128)__builtin_ia32_cmpss((__v4sf)__X, (__v4sf)__Y, __P); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsi256_si32(__m256i __A) { - __v8si __B = (__v8si)__A; - return __B[0]; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi32_pd(__m128i __A) { - return (__m256d)__builtin_ia32_cvtdq2pd256((__v4si)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi32_ps(__m256i __A) { - return (__m256)__builtin_ia32_cvtdq2ps256((__v8si)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtpd_ps(__m256d __A) { - return (__m128)__builtin_ia32_cvtpd2ps256((__v4df)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_epi32(__m256 __A) { - return (__m256i)__builtin_ia32_cvtps2dq256((__v8sf)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_pd(__m128 __A) { - return (__m256d)__builtin_ia32_cvtps2pd256((__v4sf)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttpd_epi32(__m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq256((__v4df)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtpd_epi32(__m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq256((__v4df)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttps_epi32(__m256 __A) { - return (__m256i)__builtin_ia32_cvttps2dq256((__v8sf)__A); -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsd_f64(__m256d __A) { - return __A[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtss_f32(__m256 __A) { - return __A[0]; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extractf128_pd(__m256d __X, const int __N) { - return (__m128d)__builtin_ia32_vextractf128_pd256((__v4df)__X, __N); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extractf128_ps(__m256 __X, const int __N) { - return (__m128)__builtin_ia32_vextractf128_ps256((__v8sf)__X, __N); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extractf128_si256(__m256i __X, const int __N) { - return (__m128i)__builtin_ia32_vextractf128_si256((__v8si)__X, __N); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extract_epi32(__m256i __X, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 2); - return _mm_extract_epi32(__Y, __N % 4); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extract_epi16(__m256i __X, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 3); - return _mm_extract_epi16(__Y, __N % 8); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extract_epi8(__m256i __X, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 4); - return _mm_extract_epi8(__Y, __N % 16); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extract_epi64(__m256i __X, const int __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 1); - return _mm_extract_epi64(__Y, __N % 2); -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_zeroall(void) { - __builtin_ia32_vzeroall(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_zeroupper(void) { - __builtin_ia32_vzeroupper(); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutevar_pd(__m128d __A, __m128i __C) { - return (__m128d)__builtin_ia32_vpermilvarpd((__v2df)__A, (__v2di)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutevar_pd(__m256d __A, __m256i __C) { - return (__m256d)__builtin_ia32_vpermilvarpd256((__v4df)__A, (__v4di)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutevar_ps(__m128 __A, __m128i __C) { - return (__m128)__builtin_ia32_vpermilvarps((__v4sf)__A, (__v4si)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutevar_ps(__m256 __A, __m256i __C) { - return (__m256)__builtin_ia32_vpermilvarps256((__v8sf)__A, (__v8si)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permute_pd(__m128d __X, const int __C) { - return (__m128d)__builtin_ia32_vpermilpd((__v2df)__X, __C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute_pd(__m256d __X, const int __C) { - return (__m256d)__builtin_ia32_vpermilpd256((__v4df)__X, __C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permute_ps(__m128 __X, const int __C) { - return (__m128)__builtin_ia32_vpermilps((__v4sf)__X, __C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute_ps(__m256 __X, const int __C) { - return (__m256)__builtin_ia32_vpermilps256((__v8sf)__X, __C); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2f128_pd(__m256d __X, __m256d __Y, const int __C) { - return (__m256d)__builtin_ia32_vperm2f128_pd256((__v4df)__X, (__v4df)__Y, - __C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2f128_ps(__m256 __X, __m256 __Y, const int __C) { - return (__m256)__builtin_ia32_vperm2f128_ps256((__v8sf)__X, (__v8sf)__Y, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2f128_si256(__m256i __X, __m256i __Y, const int __C) { - return (__m256i)__builtin_ia32_vperm2f128_si256((__v8si)__X, (__v8si)__Y, - __C); -} -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcast_ss(float const *__X) { - return (__m128)__builtin_ia32_vbroadcastss(__X); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_sd(double const *__X) { - return (__m256d)__builtin_ia32_vbroadcastsd256(__X); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_ss(float const *__X) { - return (__m256)__builtin_ia32_vbroadcastss256(__X); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_pd(__m128d const *__X) { - return (__m256d)__builtin_ia32_vbroadcastf128_pd256(__X); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_ps(__m128 const *__X) { - return (__m256)__builtin_ia32_vbroadcastf128_ps256(__X); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insertf128_pd(__m256d __X, __m128d __Y, const int __O) { - return (__m256d)__builtin_ia32_vinsertf128_pd256((__v4df)__X, (__v2df)__Y, - __O); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insertf128_ps(__m256 __X, __m128 __Y, const int __O) { - return (__m256)__builtin_ia32_vinsertf128_ps256((__v8sf)__X, (__v4sf)__Y, - __O); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insertf128_si256(__m256i __X, __m128i __Y, const int __O) { - return (__m256i)__builtin_ia32_vinsertf128_si256((__v8si)__X, (__v4si)__Y, - __O); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insert_epi32(__m256i __X, int __D, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 2); - __Y = _mm_insert_epi32(__Y, __D, __N % 4); - return _mm256_insertf128_si256(__X, __Y, __N >> 2); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insert_epi16(__m256i __X, int __D, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 3); - __Y = _mm_insert_epi16(__Y, __D, __N % 8); - return _mm256_insertf128_si256(__X, __Y, __N >> 3); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insert_epi8(__m256i __X, int __D, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 4); - __Y = _mm_insert_epi8(__Y, __D, __N % 16); - return _mm256_insertf128_si256(__X, __Y, __N >> 4); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insert_epi64(__m256i __X, long long __D, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 1); - __Y = _mm_insert_epi64(__Y, __D, __N % 2); - return _mm256_insertf128_si256(__X, __Y, __N >> 1); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_load_pd(double const *__P) { - return *(__m256d *)__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_store_pd(double *__P, __m256d __A) { - *(__m256d *)__P = __A; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_load_ps(float const *__P) { - return *(__m256 *)__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_store_ps(float *__P, __m256 __A) { - *(__m256 *)__P = __A; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_pd(double const *__P) { - return *(__m256d_u *)__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_pd(double *__P, __m256d __A) { - *(__m256d_u *)__P = __A; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_ps(float const *__P) { - return *(__m256_u *)__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_ps(float *__P, __m256 __A) { - *(__m256_u *)__P = __A; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_load_si256(__m256i const *__P) { - return *__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_store_si256(__m256i *__P, __m256i __A) { - *__P = __A; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_si256(__m256i_u const *__P) { - return *__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_si256(__m256i_u *__P, __m256i __A) { - *__P = __A; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskload_pd(double const *__P, __m128i __M) { - return (__m128d)__builtin_ia32_maskloadpd((const __v2df *)__P, (__v2di)__M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskstore_pd(double *__P, __m128i __M, __m128d __A) { - __builtin_ia32_maskstorepd((__v2df *)__P, (__v2di)__M, (__v2df)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskload_pd(double const *__P, __m256i __M) { - return (__m256d)__builtin_ia32_maskloadpd256((const __v4df *)__P, - (__v4di)__M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskstore_pd(double *__P, __m256i __M, __m256d __A) { - __builtin_ia32_maskstorepd256((__v4df *)__P, (__v4di)__M, (__v4df)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskload_ps(float const *__P, __m128i __M) { - return (__m128)__builtin_ia32_maskloadps((const __v4sf *)__P, (__v4si)__M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskstore_ps(float *__P, __m128i __M, __m128 __A) { - __builtin_ia32_maskstoreps((__v4sf *)__P, (__v4si)__M, (__v4sf)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskload_ps(float const *__P, __m256i __M) { - return (__m256)__builtin_ia32_maskloadps256((const __v8sf *)__P, (__v8si)__M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskstore_ps(float *__P, __m256i __M, __m256 __A) { - __builtin_ia32_maskstoreps256((__v8sf *)__P, (__v8si)__M, (__v8sf)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movehdup_ps(__m256 __X) { - return (__m256)__builtin_ia32_movshdup256((__v8sf)__X); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_moveldup_ps(__m256 __X) { - return (__m256)__builtin_ia32_movsldup256((__v8sf)__X); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movedup_pd(__m256d __X) { - return (__m256d)__builtin_ia32_movddup256((__v4df)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_lddqu_si256(__m256i const *__P) { - return (__m256i)__builtin_ia32_lddqu256((char const *)__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_stream_si256(__m256i *__A, __m256i __B) { - __builtin_ia32_movntdq256((__v4di *)__A, (__v4di)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_stream_pd(double *__A, __m256d __B) { - __builtin_ia32_movntpd256(__A, (__v4df)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_stream_ps(float *__P, __m256 __A) { - __builtin_ia32_movntps256(__P, (__v8sf)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rcp_ps(__m256 __A) { - return (__m256)__builtin_ia32_rcpps256((__v8sf)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rsqrt_ps(__m256 __A) { - return (__m256)__builtin_ia32_rsqrtps256((__v8sf)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sqrt_pd(__m256d __A) { - return (__m256d)__builtin_ia32_sqrtpd256((__v4df)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sqrt_ps(__m256 __A) { - return (__m256)__builtin_ia32_sqrtps256((__v8sf)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_round_pd(__m256d __V, const int __M) { - return (__m256d)__builtin_ia32_roundpd256((__v4df)__V, __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_round_ps(__m256 __V, const int __M) { - return (__m256)__builtin_ia32_roundps256((__v8sf)__V, __M); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpckhpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpcklpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpckhps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpcklps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testz_pd(__m128d __M, __m128d __V) { - return __builtin_ia32_vtestzpd((__v2df)__M, (__v2df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testc_pd(__m128d __M, __m128d __V) { - return __builtin_ia32_vtestcpd((__v2df)__M, (__v2df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testnzc_pd(__m128d __M, __m128d __V) { - return __builtin_ia32_vtestnzcpd((__v2df)__M, (__v2df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testz_ps(__m128 __M, __m128 __V) { - return __builtin_ia32_vtestzps((__v4sf)__M, (__v4sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testc_ps(__m128 __M, __m128 __V) { - return __builtin_ia32_vtestcps((__v4sf)__M, (__v4sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testnzc_ps(__m128 __M, __m128 __V) { - return __builtin_ia32_vtestnzcps((__v4sf)__M, (__v4sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testz_pd(__m256d __M, __m256d __V) { - return __builtin_ia32_vtestzpd256((__v4df)__M, (__v4df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testc_pd(__m256d __M, __m256d __V) { - return __builtin_ia32_vtestcpd256((__v4df)__M, (__v4df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testnzc_pd(__m256d __M, __m256d __V) { - return __builtin_ia32_vtestnzcpd256((__v4df)__M, (__v4df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testz_ps(__m256 __M, __m256 __V) { - return __builtin_ia32_vtestzps256((__v8sf)__M, (__v8sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testc_ps(__m256 __M, __m256 __V) { - return __builtin_ia32_vtestcps256((__v8sf)__M, (__v8sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testnzc_ps(__m256 __M, __m256 __V) { - return __builtin_ia32_vtestnzcps256((__v8sf)__M, (__v8sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testz_si256(__m256i __M, __m256i __V) { - return __builtin_ia32_ptestz256((__v4di)__M, (__v4di)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testc_si256(__m256i __M, __m256i __V) { - return __builtin_ia32_ptestc256((__v4di)__M, (__v4di)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testnzc_si256(__m256i __M, __m256i __V) { - return __builtin_ia32_ptestnzc256((__v4di)__M, (__v4di)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movemask_pd(__m256d __A) { - return __builtin_ia32_movmskpd256((__v4df)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movemask_ps(__m256 __A) { - return __builtin_ia32_movmskps256((__v8sf)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_undefined_pd(void) { - __m256d __Y = __Y; - return __Y; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_undefined_ps(void) { - __m256 __Y = __Y; - return __Y; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_undefined_si256(void) { - __m256i __Y = __Y; - return __Y; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setzero_pd(void) { - return __extension__(__m256d){0.0, 0.0, 0.0, 0.0}; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setzero_ps(void) { - return __extension__(__m256){0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setzero_si256(void) { - return __extension__(__m256i)(__v4di){0, 0, 0, 0}; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_pd(double __A, double __B, double __C, double __D) { - return __extension__(__m256d){__D, __C, __B, __A}; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_ps(float __A, float __B, float __C, float __D, float __E, - float __F, float __G, float __H) { - return __extension__(__m256){__H, __G, __F, __E, __D, __C, __B, __A}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_epi32(int __A, int __B, int __C, int __D, int __E, int __F, - int __G, int __H) { - return __extension__(__m256i)(__v8si){__H, __G, __F, __E, __D, __C, __B, __A}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_epi16(short __q15, short __q14, short __q13, short __q12, - short __q11, short __q10, short __q09, short __q08, - short __q07, short __q06, short __q05, short __q04, - short __q03, short __q02, short __q01, short __q00) { - return __extension__(__m256i)(__v16hi){ - __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, - __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_epi8(char __q31, char __q30, char __q29, char __q28, char __q27, - char __q26, char __q25, char __q24, char __q23, char __q22, - char __q21, char __q20, char __q19, char __q18, char __q17, - char __q16, char __q15, char __q14, char __q13, char __q12, - char __q11, char __q10, char __q09, char __q08, char __q07, - char __q06, char __q05, char __q04, char __q03, char __q02, - char __q01, char __q00) { - return __extension__(__m256i)(__v32qi){ - __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, - __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15, - __q16, __q17, __q18, __q19, __q20, __q21, __q22, __q23, - __q24, __q25, __q26, __q27, __q28, __q29, __q30, __q31}; -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_set_epi64x(long long __A, long long __B, long long __C, long long __D) { - return __extension__(__m256i)(__v4di){__D, __C, __B, __A}; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_pd(double __A) { - return __extension__(__m256d){__A, __A, __A, __A}; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_ps(float __A) { - return __extension__(__m256){__A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_epi32(int __A) { - return __extension__(__m256i)(__v8si){__A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_epi16(short __A) { - return _mm256_set_epi16(__A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_epi8(char __A) { - return _mm256_set_epi8(__A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_epi64x(long long __A) { - return __extension__(__m256i)(__v4di){__A, __A, __A, __A}; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_pd(double __A, double __B, double __C, double __D) { - return _mm256_set_pd(__D, __C, __B, __A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_ps(float __A, float __B, float __C, float __D, float __E, - float __F, float __G, float __H) { - return _mm256_set_ps(__H, __G, __F, __E, __D, __C, __B, __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_epi32(int __A, int __B, int __C, int __D, int __E, int __F, - int __G, int __H) { - return _mm256_set_epi32(__H, __G, __F, __E, __D, __C, __B, __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_epi16(short __q15, short __q14, short __q13, short __q12, - short __q11, short __q10, short __q09, short __q08, - short __q07, short __q06, short __q05, short __q04, - short __q03, short __q02, short __q01, short __q00) { - return _mm256_set_epi16(__q00, __q01, __q02, __q03, __q04, __q05, __q06, - __q07, __q08, __q09, __q10, __q11, __q12, __q13, - __q14, __q15); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_epi8(char __q31, char __q30, char __q29, char __q28, char __q27, - char __q26, char __q25, char __q24, char __q23, char __q22, - char __q21, char __q20, char __q19, char __q18, char __q17, - char __q16, char __q15, char __q14, char __q13, char __q12, - char __q11, char __q10, char __q09, char __q08, char __q07, - char __q06, char __q05, char __q04, char __q03, char __q02, - char __q01, char __q00) { - return _mm256_set_epi8(__q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, - __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15, - __q16, __q17, __q18, __q19, __q20, __q21, __q22, __q23, - __q24, __q25, __q26, __q27, __q28, __q29, __q30, - __q31); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_setr_epi64x(long long __A, long long __B, long long __C, long long __D) { - return _mm256_set_epi64x(__D, __C, __B, __A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castpd_ps(__m256d __A) { - return (__m256)__A; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castpd_si256(__m256d __A) { - return (__m256i)__A; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castps_pd(__m256 __A) { - return (__m256d)__A; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castps_si256(__m256 __A) { - return (__m256i)__A; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castsi256_ps(__m256i __A) { - return (__m256)__A; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castsi256_pd(__m256i __A) { - return (__m256d)__A; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castpd256_pd128(__m256d __A) { - return (__m128d)__builtin_ia32_pd_pd256((__v4df)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castps256_ps128(__m256 __A) { - return (__m128)__builtin_ia32_ps_ps256((__v8sf)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castsi256_si128(__m256i __A) { - return (__m128i)__builtin_ia32_si_si256((__v8si)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castpd128_pd256(__m128d __A) { - return (__m256d)__builtin_ia32_pd256_pd((__v2df)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castps128_ps256(__m128 __A) { - return (__m256)__builtin_ia32_ps256_ps((__v4sf)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castsi128_si256(__m128i __A) { - return (__m256i)__builtin_ia32_si256_si((__v4si)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_zextpd128_pd256(__m128d __A) { - return _mm256_insertf128_pd(_mm256_setzero_pd(), __A, 0); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_zextps128_ps256(__m128 __A) { - return _mm256_insertf128_ps(_mm256_setzero_ps(), __A, 0); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_zextsi128_si256(__m128i __A) { - return _mm256_insertf128_si256(_mm256_setzero_si256(), __A, 0); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_m128(__m128 __H, __m128 __L) { - return _mm256_insertf128_ps(_mm256_castps128_ps256(__L), __H, 1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_m128d(__m128d __H, __m128d __L) { - return _mm256_insertf128_pd(_mm256_castpd128_pd256(__L), __H, 1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_m128i(__m128i __H, __m128i __L) { - return _mm256_insertf128_si256(_mm256_castsi128_si256(__L), __H, 1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_m128(__m128 __L, __m128 __H) { - return _mm256_set_m128(__H, __L); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_m128d(__m128d __L, __m128d __H) { - return _mm256_set_m128d(__H, __L); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_m128i(__m128i __L, __m128i __H) { - return _mm256_set_m128i(__H, __L); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu2_m128(float const *__PH, float const *__PL) { - return _mm256_insertf128_ps(_mm256_castps128_ps256(_mm_loadu_ps(__PL)), - _mm_loadu_ps(__PH), 1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu2_m128(float *__PH, float *__PL, __m256 __A) { - _mm_storeu_ps(__PL, _mm256_castps256_ps128(__A)); - _mm_storeu_ps(__PH, _mm256_extractf128_ps(__A, 1)); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu2_m128d(double const *__PH, double const *__PL) { - return _mm256_insertf128_pd(_mm256_castpd128_pd256(_mm_loadu_pd(__PL)), - _mm_loadu_pd(__PH), 1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu2_m128d(double *__PH, double *__PL, __m256d __A) { - _mm_storeu_pd(__PL, _mm256_castpd256_pd128(__A)); - _mm_storeu_pd(__PH, _mm256_extractf128_pd(__A, 1)); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu2_m128i(__m128i_u const *__PH, __m128i_u const *__PL) { - return _mm256_insertf128_si256(_mm256_castsi128_si256(_mm_loadu_si128(__PL)), - _mm_loadu_si128(__PH), 1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu2_m128i(__m128i_u *__PH, __m128i_u *__PL, __m256i __A) { - _mm_storeu_si128(__PL, _mm256_castsi256_si128(__A)); - _mm_storeu_si128(__PH, _mm256_extractf128_si256(__A, 1)); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dpbusd_avx_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpdpbusd_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dpbusd_avx_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpdpbusd_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dpbusds_avx_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpdpbusds_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dpbusds_avx_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpdpbusds_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dpwssd_avx_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpdpwssd_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dpwssd_avx_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpdpwssd_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dpwssds_avx_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpdpwssds_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dpwssds_avx_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpdpwssds_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mpsadbw_epu8(__m256i __X, __m256i __Y, const int __M) { - return (__m256i)__builtin_ia32_mpsadbw256((__v32qi)__X, (__v32qi)__Y, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_abs_epi8(__m256i __A) { - return (__m256i)__builtin_ia32_pabsb256((__v32qi)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_abs_epi16(__m256i __A) { - return (__m256i)__builtin_ia32_pabsw256((__v16hi)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_abs_epi32(__m256i __A) { - return (__m256i)__builtin_ia32_pabsd256((__v8si)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_packs_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packssdw256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_packs_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packsswb256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_packus_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packusdw256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_packus_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packuswb256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_epi8(__m256i __A, __m256i __B) { - return (__m256i)((__v32qu)__A + (__v32qu)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_epi16(__m256i __A, __m256i __B) { - return (__m256i)((__v16hu)__A + (__v16hu)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8su)__A + (__v8su)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A + (__v4du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_adds_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_adds_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_adds_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_adds_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_alignr_epi8(__m256i __A, __m256i __B, const int __N) { - return (__m256i)__builtin_ia32_palignr256((__v4di)__A, (__v4di)__B, __N * 8); -} -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_and_si256(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A & (__v4du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_andnot_si256(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_andnotsi256((__v4di)__A, (__v4di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_avg_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_avg_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blendv_epi8(__m256i __X, __m256i __Y, __m256i __M) { - return (__m256i)__builtin_ia32_pblendvb256((__v32qi)__X, (__v32qi)__Y, - (__v32qi)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blend_epi16(__m256i __X, __m256i __Y, const int __M) { - return (__m256i)__builtin_ia32_pblendw256((__v16hi)__X, (__v16hi)__Y, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi8(__m256i __A, __m256i __B) { - return (__m256i)((__v32qi)__A == (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi16(__m256i __A, __m256i __B) { - return (__m256i)((__v16hi)__A == (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8si)__A == (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4di)__A == (__v4di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi8(__m256i __A, __m256i __B) { - return (__m256i)((__v32qs)__A > (__v32qs)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi16(__m256i __A, __m256i __B) { - return (__m256i)((__v16hi)__A > (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8si)__A > (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4di)__A > (__v4di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hadd_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phaddw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hadd_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phaddd256((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hadds_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phaddsw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hsub_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phsubw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hsub_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phsubd256((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hsubs_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phsubsw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maddubs_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmaddubsw256((__v32qi)__X, (__v32qi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_madd_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaddwd256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsd256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxub256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epu32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxud256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsd256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminub256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epu32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminud256((__v8si)__A, (__v8si)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movemask_epi8(__m256i __A) { - return __builtin_ia32_pmovmskb256((__v32qi)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi8_epi16(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxbw256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi8_epi32(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxbd256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi8_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxbq256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi16_epi32(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxwd256((__v8hi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi16_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxwq256((__v8hi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi32_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxdq256((__v4si)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu8_epi16(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxbw256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu8_epi32(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxbd256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu8_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxbq256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu16_epi32(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxwd256((__v8hi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu16_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxwq256((__v8hi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu32_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxdq256((__v4si)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mul_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmuldq256((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mulhrs_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmulhrsw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mulhi_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhuw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mulhi_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mullo_epi16(__m256i __A, __m256i __B) { - return (__m256i)((__v16hu)__A * (__v16hu)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mullo_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8su)__A * (__v8su)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mul_epu32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmuludq256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_or_si256(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A | (__v4du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sad_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psadbw256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_epi8(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pshufb256((__v32qi)__X, (__v32qi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_epi32(__m256i __A, const int __mask) { - return (__m256i)__builtin_ia32_pshufd256((__v8si)__A, __mask); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shufflehi_epi16(__m256i __A, const int __mask) { - return (__m256i)__builtin_ia32_pshufhw256((__v16hi)__A, __mask); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shufflelo_epi16(__m256i __A, const int __mask) { - return (__m256i)__builtin_ia32_pshuflw256((__v16hi)__A, __mask); -} -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sign_epi8(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psignb256((__v32qi)__X, (__v32qi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sign_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psignw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sign_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psignd256((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_bslli_epi128(__m256i __A, const int __N) { - return (__m256i)__builtin_ia32_pslldqi256(__A, __N * 8); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_slli_si256(__m256i __A, const int __N) { - return (__m256i)__builtin_ia32_pslldqi256(__A, __N * 8); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_slli_epi16(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllwi256((__v16hi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sll_epi16(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllw256((__v16hi)__A, (__v8hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_slli_epi32(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_pslldi256((__v8si)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sll_epi32(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_pslld256((__v8si)__A, (__v4si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_slli_epi64(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllqi256((__v4di)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sll_epi64(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllq256((__v4di)__A, (__v2di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srai_epi16(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psrawi256((__v16hi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sra_epi16(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraw256((__v16hi)__A, (__v8hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srai_epi32(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psradi256((__v8si)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sra_epi32(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrad256((__v8si)__A, (__v4si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_bsrli_epi128(__m256i __A, const int __N) { - return (__m256i)__builtin_ia32_psrldqi256(__A, __N * 8); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srli_si256(__m256i __A, const int __N) { - return (__m256i)__builtin_ia32_psrldqi256(__A, __N * 8); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srli_epi16(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psrlwi256((__v16hi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srl_epi16(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlw256((__v16hi)__A, (__v8hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srli_epi32(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psrldi256((__v8si)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srl_epi32(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrld256((__v8si)__A, (__v4si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srli_epi64(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psrlqi256((__v4di)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srl_epi64(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlq256((__v4di)__A, (__v2di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_epi8(__m256i __A, __m256i __B) { - return (__m256i)((__v32qu)__A - (__v32qu)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_epi16(__m256i __A, __m256i __B) { - return (__m256i)((__v16hu)__A - (__v16hu)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8su)__A - (__v8su)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A - (__v4du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_subs_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_subs_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_subs_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_subs_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhbw256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhwd256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhdq256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhqdq256((__v4di)__A, (__v4di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklbw256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklwd256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckldq256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklqdq256((__v4di)__A, (__v4di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_xor_si256(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A ^ (__v4du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_stream_load_si256(__m256i const *__X) { - return (__m256i)__builtin_ia32_movntdqa256((__v4di *)__X); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastss_ps(__m128 __X) { - return (__m128)__builtin_ia32_vbroadcastss_ps((__v4sf)__X); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastss_ps(__m128 __X) { - return (__m256)__builtin_ia32_vbroadcastss_ps256((__v4sf)__X); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastsd_pd(__m128d __X) { - return (__m256d)__builtin_ia32_vbroadcastsd_pd256((__v2df)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastsi128_si256(__m128i __X) { - return (__m256i)__builtin_ia32_vbroadcastsi256((__v2di)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blend_epi32(__m128i __X, __m128i __Y, const int __M) { - return (__m128i)__builtin_ia32_pblendd128((__v4si)__X, (__v4si)__Y, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blend_epi32(__m256i __X, __m256i __Y, const int __M) { - return (__m256i)__builtin_ia32_pblendd256((__v8si)__X, (__v8si)__Y, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastb_epi8(__m128i __X) { - return (__m256i)__builtin_ia32_pbroadcastb256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastw_epi16(__m128i __X) { - return (__m256i)__builtin_ia32_pbroadcastw256((__v8hi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastd_epi32(__m128i __X) { - return (__m256i)__builtin_ia32_pbroadcastd256((__v4si)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastq_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pbroadcastq256((__v2di)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastb_epi8(__m128i __X) { - return (__m128i)__builtin_ia32_pbroadcastb128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastw_epi16(__m128i __X) { - return (__m128i)__builtin_ia32_pbroadcastw128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastd_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pbroadcastd128((__v4si)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastq_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pbroadcastq128((__v2di)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutevar8x32_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_permvarsi256((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute4x64_pd(__m256d __X, const int __M) { - return (__m256d)__builtin_ia32_permdf256((__v4df)__X, __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutevar8x32_ps(__m256 __X, __m256i __Y) { - return (__m256)__builtin_ia32_permvarsf256((__v8sf)__X, (__v8si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute4x64_epi64(__m256i __X, const int __M) { - return (__m256i)__builtin_ia32_permdi256((__v4di)__X, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2x128_si256(__m256i __X, __m256i __Y, const int __M) { - return (__m256i)__builtin_ia32_permti256((__v4di)__X, (__v4di)__Y, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extracti128_si256(__m256i __X, const int __M) { - return (__m128i)__builtin_ia32_extract128i256((__v4di)__X, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_inserti128_si256(__m256i __X, __m128i __Y, const int __M) { - return (__m256i)__builtin_ia32_insert128i256((__v4di)__X, (__v2di)__Y, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskload_epi32(int const *__X, __m256i __M) { - return (__m256i)__builtin_ia32_maskloadd256((const __v8si *)__X, (__v8si)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskload_epi64(long long const *__X, __m256i __M) { - return (__m256i)__builtin_ia32_maskloadq256((const __v4di *)__X, (__v4di)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskload_epi32(int const *__X, __m128i __M) { - return (__m128i)__builtin_ia32_maskloadd((const __v4si *)__X, (__v4si)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskload_epi64(long long const *__X, __m128i __M) { - return (__m128i)__builtin_ia32_maskloadq((const __v2di *)__X, (__v2di)__M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskstore_epi32(int *__X, __m256i __M, __m256i __Y) { - __builtin_ia32_maskstored256((__v8si *)__X, (__v8si)__M, (__v8si)__Y); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskstore_epi64(long long *__X, __m256i __M, __m256i __Y) { - __builtin_ia32_maskstoreq256((__v4di *)__X, (__v4di)__M, (__v4di)__Y); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskstore_epi32(int *__X, __m128i __M, __m128i __Y) { - __builtin_ia32_maskstored((__v4si *)__X, (__v4si)__M, (__v4si)__Y); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskstore_epi64(long long *__X, __m128i __M, __m128i __Y) { - __builtin_ia32_maskstoreq((__v2di *)__X, (__v2di)__M, (__v2di)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sllv_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv8si((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sllv_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv4si((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sllv_epi64(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv4di((__v4di)__X, (__v4di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sllv_epi64(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv2di((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srav_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrav8si((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srav_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrav4si((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srlv_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv8si((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srlv_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv4si((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srlv_epi64(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv4di((__v4di)__X, (__v4di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srlv_epi64(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv2di((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32gather_pd(double const *__base, __m128i __index, const int __scale) { - __v2df __zero = _mm_setzero_pd(); - __v2df __mask = _mm_cmpeq_pd(__zero, __zero); - - return (__m128d)__builtin_ia32_gathersiv2df(_mm_undefined_pd(), __base, - (__v4si)__index, __mask, __scale); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32gather_pd(__m128d __src, double const *__base, __m128i __index, - __m128d __mask, const int __scale) { - return (__m128d)__builtin_ia32_gathersiv2df( - (__v2df)__src, __base, (__v4si)__index, (__v2df)__mask, __scale); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i32gather_pd(double const *__base, __m128i __index, const int __scale) { - __v4df __zero = _mm256_setzero_pd(); - __v4df __mask = _mm256_cmp_pd(__zero, __zero, 0x00); - - return (__m256d)__builtin_ia32_gathersiv4df(_mm256_undefined_pd(), __base, - (__v4si)__index, __mask, __scale); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32gather_pd(__m256d __src, double const *__base, - __m128i __index, __m256d __mask, - const int __scale) { - return (__m256d)__builtin_ia32_gathersiv4df( - (__v4df)__src, __base, (__v4si)__index, (__v4df)__mask, __scale); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64gather_pd(double const *__base, __m128i __index, const int __scale) { - __v2df __src = _mm_setzero_pd(); - __v2df __mask = _mm_cmpeq_pd(__src, __src); - - return (__m128d)__builtin_ia32_gatherdiv2df(__src, __base, (__v2di)__index, - __mask, __scale); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64gather_pd(__m128d __src, double const *__base, __m128i __index, - __m128d __mask, const int __scale) { - return (__m128d)__builtin_ia32_gatherdiv2df( - (__v2df)__src, __base, (__v2di)__index, (__v2df)__mask, __scale); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i64gather_pd(double const *__base, __m256i __index, const int __scale) { - __v4df __src = _mm256_setzero_pd(); - __v4df __mask = _mm256_cmp_pd(__src, __src, 0x00); - - return (__m256d)__builtin_ia32_gatherdiv4df(__src, __base, (__v4di)__index, - __mask, __scale); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64gather_pd(__m256d __src, double const *__base, - __m256i __index, __m256d __mask, - const int __scale) { - return (__m256d)__builtin_ia32_gatherdiv4df( - (__v4df)__src, __base, (__v4di)__index, (__v4df)__mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32gather_ps(float const *__base, __m128i __index, const int __scale) { - __v4sf __src = _mm_setzero_ps(); - __v4sf __mask = _mm_cmpeq_ps(__src, __src); - - return (__m128)__builtin_ia32_gathersiv4sf(__src, __base, (__v4si)__index, - __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32gather_ps(__m128 __src, float const *__base, __m128i __index, - __m128 __mask, const int __scale) { - return (__m128)__builtin_ia32_gathersiv4sf( - (__v4sf)__src, __base, (__v4si)__index, (__v4sf)__mask, __scale); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i32gather_ps(float const *__base, __m256i __index, const int __scale) { - __v8sf __src = _mm256_setzero_ps(); - __v8sf __mask = _mm256_cmp_ps(__src, __src, 0x00); - - return (__m256)__builtin_ia32_gathersiv8sf(__src, __base, (__v8si)__index, - __mask, __scale); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32gather_ps(__m256 __src, float const *__base, __m256i __index, - __m256 __mask, const int __scale) { - return (__m256)__builtin_ia32_gathersiv8sf( - (__v8sf)__src, __base, (__v8si)__index, (__v8sf)__mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64gather_ps(float const *__base, __m128i __index, const int __scale) { - __v4sf __src = _mm_setzero_ps(); - __v4sf __mask = _mm_cmpeq_ps(__src, __src); - - return (__m128)__builtin_ia32_gatherdiv4sf(__src, __base, (__v2di)__index, - __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64gather_ps(__m128 __src, float const *__base, __m128i __index, - __m128 __mask, const int __scale) { - return (__m128)__builtin_ia32_gatherdiv4sf( - (__v4sf)__src, __base, (__v2di)__index, (__v4sf)__mask, __scale); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i64gather_ps(float const *__base, __m256i __index, const int __scale) { - __v4sf __src = _mm_setzero_ps(); - __v4sf __mask = _mm_cmpeq_ps(__src, __src); - - return (__m128)__builtin_ia32_gatherdiv4sf256(__src, __base, (__v4di)__index, - __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64gather_ps(__m128 __src, float const *__base, __m256i __index, - __m128 __mask, const int __scale) { - return (__m128)__builtin_ia32_gatherdiv4sf256( - (__v4sf)__src, __base, (__v4di)__index, (__v4sf)__mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32gather_epi64(long long int const *__base, __m128i __index, - const int __scale) { - __v2di __src = __extension__(__v2di){0, 0}; - __v2di __mask = __extension__(__v2di){~0, ~0}; - - return (__m128i)__builtin_ia32_gathersiv2di(__src, __base, (__v4si)__index, - __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32gather_epi64(__m128i __src, long long int const *__base, - __m128i __index, __m128i __mask, - const int __scale) { - return (__m128i)__builtin_ia32_gathersiv2di( - (__v2di)__src, __base, (__v4si)__index, (__v2di)__mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i32gather_epi64(long long int const *__base, __m128i __index, - const int __scale) { - __v4di __src = __extension__(__v4di){0, 0, 0, 0}; - __v4di __mask = __extension__(__v4di){~0, ~0, ~0, ~0}; - - return (__m256i)__builtin_ia32_gathersiv4di(__src, __base, (__v4si)__index, - __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32gather_epi64(__m256i __src, long long int const *__base, - __m128i __index, __m256i __mask, - const int __scale) { - return (__m256i)__builtin_ia32_gathersiv4di( - (__v4di)__src, __base, (__v4si)__index, (__v4di)__mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64gather_epi64(long long int const *__base, __m128i __index, - const int __scale) { - __v2di __src = __extension__(__v2di){0, 0}; - __v2di __mask = __extension__(__v2di){~0, ~0}; - - return (__m128i)__builtin_ia32_gatherdiv2di(__src, __base, (__v2di)__index, - __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64gather_epi64(__m128i __src, long long int const *__base, - __m128i __index, __m128i __mask, - const int __scale) { - return (__m128i)__builtin_ia32_gatherdiv2di( - (__v2di)__src, __base, (__v2di)__index, (__v2di)__mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i64gather_epi64(long long int const *__base, __m256i __index, - const int __scale) { - __v4di __src = __extension__(__v4di){0, 0, 0, 0}; - __v4di __mask = __extension__(__v4di){~0, ~0, ~0, ~0}; - - return (__m256i)__builtin_ia32_gatherdiv4di(__src, __base, (__v4di)__index, - __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64gather_epi64(__m256i __src, long long int const *__base, - __m256i __index, __m256i __mask, - const int __scale) { - return (__m256i)__builtin_ia32_gatherdiv4di( - (__v4di)__src, __base, (__v4di)__index, (__v4di)__mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32gather_epi32(int const *__base, __m128i __index, const int __scale) { - __v4si __src = __extension__(__v4si){0, 0, 0, 0}; - __v4si __mask = __extension__(__v4si){~0, ~0, ~0, ~0}; - - return (__m128i)__builtin_ia32_gathersiv4si(__src, __base, (__v4si)__index, - __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32gather_epi32(__m128i __src, int const *__base, __m128i __index, - __m128i __mask, const int __scale) { - return (__m128i)__builtin_ia32_gathersiv4si( - (__v4si)__src, __base, (__v4si)__index, (__v4si)__mask, __scale); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i32gather_epi32(int const *__base, __m256i __index, const int __scale) { - __v8si __src = __extension__(__v8si){0, 0, 0, 0, 0, 0, 0, 0}; - __v8si __mask = __extension__(__v8si){~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0}; - - return (__m256i)__builtin_ia32_gathersiv8si(__src, __base, (__v8si)__index, - __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32gather_epi32(__m256i __src, int const *__base, - __m256i __index, __m256i __mask, - const int __scale) { - return (__m256i)__builtin_ia32_gathersiv8si( - (__v8si)__src, __base, (__v8si)__index, (__v8si)__mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64gather_epi32(int const *__base, __m128i __index, const int __scale) { - __v4si __src = __extension__(__v4si){0, 0, 0, 0}; - __v4si __mask = __extension__(__v4si){~0, ~0, ~0, ~0}; - - return (__m128i)__builtin_ia32_gatherdiv4si(__src, __base, (__v2di)__index, - __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64gather_epi32(__m128i __src, int const *__base, __m128i __index, - __m128i __mask, const int __scale) { - return (__m128i)__builtin_ia32_gatherdiv4si( - (__v4si)__src, __base, (__v2di)__index, (__v4si)__mask, __scale); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i64gather_epi32(int const *__base, __m256i __index, const int __scale) { - __v4si __src = __extension__(__v4si){0, 0, 0, 0}; - __v4si __mask = __extension__(__v4si){~0, ~0, ~0, ~0}; - - return (__m128i)__builtin_ia32_gatherdiv4si256(__src, __base, (__v4di)__index, - __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64gather_epi32(__m128i __src, int const *__base, - __m256i __index, __m128i __mask, - const int __scale) { - return (__m128i)__builtin_ia32_gatherdiv4si256( - (__v4si)__src, __base, (__v4di)__index, (__v4si)__mask, __scale); -} - -typedef double __v8df __attribute__((__vector_size__(64))); -typedef float __v16sf __attribute__((__vector_size__(64))); -typedef long long __v8di __attribute__((__vector_size__(64))); -typedef unsigned long long __v8du __attribute__((__vector_size__(64))); -typedef int __v16si __attribute__((__vector_size__(64))); -typedef unsigned int __v16su __attribute__((__vector_size__(64))); -typedef short __v32hi __attribute__((__vector_size__(64))); -typedef unsigned short __v32hu __attribute__((__vector_size__(64))); -typedef char __v64qi __attribute__((__vector_size__(64))); -typedef unsigned char __v64qu __attribute__((__vector_size__(64))); - -typedef float __m512 __attribute__((__vector_size__(64), __may_alias__)); -typedef long long __m512i __attribute__((__vector_size__(64), __may_alias__)); -typedef double __m512d __attribute__((__vector_size__(64), __may_alias__)); - -typedef float __m512_u - __attribute__((__vector_size__(64), __may_alias__, __aligned__(1))); -typedef long long __m512i_u - __attribute__((__vector_size__(64), __may_alias__, __aligned__(1))); -typedef double __m512d_u - __attribute__((__vector_size__(64), __may_alias__, __aligned__(1))); - -typedef unsigned char __mmask8; -typedef unsigned short __mmask16; - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_int2mask(int __M) { - return (__mmask16)__M; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2int(__mmask16 __M) { - return (int)__M; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_epi64(long long __A, long long __B, long long __C, long long __D, - long long __E, long long __F, long long __G, - long long __H) { - return __extension__(__m512i)(__v8di){__H, __G, __F, __E, __D, __C, __B, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_epi32(int __A, int __B, int __C, int __D, int __E, int __F, - int __G, int __H, int __I, int __J, int __K, int __L, - int __M, int __N, int __O, int __P) { - return __extension__(__m512i)(__v16si){__P, __O, __N, __M, __L, __K, - __J, __I, __H, __G, __F, __E, - __D, __C, __B, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_epi16(short __q31, short __q30, short __q29, short __q28, - short __q27, short __q26, short __q25, short __q24, - short __q23, short __q22, short __q21, short __q20, - short __q19, short __q18, short __q17, short __q16, - short __q15, short __q14, short __q13, short __q12, - short __q11, short __q10, short __q09, short __q08, - short __q07, short __q06, short __q05, short __q04, - short __q03, short __q02, short __q01, short __q00) { - return __extension__(__m512i)(__v32hi){ - __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, - __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15, - __q16, __q17, __q18, __q19, __q20, __q21, __q22, __q23, - __q24, __q25, __q26, __q27, __q28, __q29, __q30, __q31}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_epi8(char __q63, char __q62, char __q61, char __q60, char __q59, - char __q58, char __q57, char __q56, char __q55, char __q54, - char __q53, char __q52, char __q51, char __q50, char __q49, - char __q48, char __q47, char __q46, char __q45, char __q44, - char __q43, char __q42, char __q41, char __q40, char __q39, - char __q38, char __q37, char __q36, char __q35, char __q34, - char __q33, char __q32, char __q31, char __q30, char __q29, - char __q28, char __q27, char __q26, char __q25, char __q24, - char __q23, char __q22, char __q21, char __q20, char __q19, - char __q18, char __q17, char __q16, char __q15, char __q14, - char __q13, char __q12, char __q11, char __q10, char __q09, - char __q08, char __q07, char __q06, char __q05, char __q04, - char __q03, char __q02, char __q01, char __q00) { - return __extension__(__m512i)(__v64qi){ - __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, __q08, __q09, - __q10, __q11, __q12, __q13, __q14, __q15, __q16, __q17, __q18, __q19, - __q20, __q21, __q22, __q23, __q24, __q25, __q26, __q27, __q28, __q29, - __q30, __q31, __q32, __q33, __q34, __q35, __q36, __q37, __q38, __q39, - __q40, __q41, __q42, __q43, __q44, __q45, __q46, __q47, __q48, __q49, - __q50, __q51, __q52, __q53, __q54, __q55, __q56, __q57, __q58, __q59, - __q60, __q61, __q62, __q63}; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_pd(double __A, double __B, double __C, double __D, double __E, - double __F, double __G, double __H) { - return __extension__(__m512d){__H, __G, __F, __E, __D, __C, __B, __A}; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_ps(float __A, float __B, float __C, float __D, float __E, - float __F, float __G, float __H, float __I, float __J, - float __K, float __L, float __M, float __N, float __O, - float __P) { - return __extension__(__m512){__P, __O, __N, __M, __L, __K, __J, __I, - __H, __G, __F, __E, __D, __C, __B, __A}; -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_undefined_ps(void) { - __m512 __Y = __Y; - return __Y; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_undefined_pd(void) { - __m512d __Y = __Y; - return __Y; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_undefined_epi32(void) { - __m512i __Y = __Y; - return __Y; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_epi8(char __A) { - return __extension__(__m512i)(__v64qi){ - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_epi16(short __A) { - return __extension__(__m512i)(__v32hi){ - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_pd(double __A) { - return __extension__(__m512d)(__v8df){__A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_ps(float __A) { - return __extension__(__m512)(__v16sf){__A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set4_epi32(int __A, int __B, int __C, int __D) { - return __extension__(__m512i)(__v16si){__D, __C, __B, __A, __D, __C, - __B, __A, __D, __C, __B, __A, - __D, __C, __B, __A}; -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_set4_epi64(long long __A, long long __B, long long __C, long long __D) { - return __extension__(__m512i)(__v8di){__D, __C, __B, __A, __D, __C, __B, __A}; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set4_pd(double __A, double __B, double __C, double __D) { - return __extension__(__m512d){__D, __C, __B, __A, __D, __C, __B, __A}; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set4_ps(float __A, float __B, float __C, float __D) { - return __extension__(__m512){__D, __C, __B, __A, __D, __C, __B, __A, - __D, __C, __B, __A, __D, __C, __B, __A}; -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_setzero_ps(void) { - return __extension__(__m512){0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, - 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_setzero(void) { - return _mm512_setzero_ps(); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_setzero_pd(void) { - return __extension__(__m512d){0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_setzero_epi32(void) { - return __extension__(__m512i)(__v8di){0, 0, 0, 0, 0, 0, 0, 0}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_setzero_si512(void) { - return __extension__(__m512i)(__v8di){0, 0, 0, 0, 0, 0, 0, 0}; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_movapd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_movapd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movaps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movaps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_load_pd(void const *__P) { - return *(__m512d *)__P; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_load_pd(__m512d __W, __mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_loadapd512_mask((const __v8df *)__P, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_load_pd(__mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_loadapd512_mask( - (const __v8df *)__P, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_store_pd(void *__P, __m512d __A) { - *(__m512d *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_store_pd(void *__P, __mmask8 __U, __m512d __A) { - __builtin_ia32_storeapd512_mask((__v8df *)__P, (__v8df)__A, (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_load_ps(void const *__P) { - return *(__m512 *)__P; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_load_ps(__m512 __W, __mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_loadaps512_mask((const __v16sf *)__P, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_load_ps(__mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_loadaps512_mask( - (const __v16sf *)__P, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_store_ps(void *__P, __m512 __A) { - *(__m512 *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_store_ps(void *__P, __mmask16 __U, __m512 __A) { - __builtin_ia32_storeaps512_mask((__v16sf *)__P, (__v16sf)__A, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdqa64_512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdqa64_512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_load_epi64(void const *__P) { - return *(__m512i *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_load_epi64(__m512i __W, __mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_movdqa64load512_mask( - (const __v8di *)__P, (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_load_epi64(__mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_movdqa64load512_mask( - (const __v8di *)__P, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_store_epi64(void *__P, __m512i __A) { - *(__m512i *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_store_epi64(void *__P, __mmask8 __U, __m512i __A) { - __builtin_ia32_movdqa64store512_mask((__v8di *)__P, (__v8di)__A, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdqa32_512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdqa32_512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_load_si512(void const *__P) { - return *(__m512i *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_load_epi32(void const *__P) { - return *(__m512i *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_load_epi32(__m512i __W, __mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_movdqa32load512_mask( - (const __v16si *)__P, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_load_epi32(__mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_movdqa32load512_mask( - (const __v16si *)__P, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_store_si512(void *__P, __m512i __A) { - *(__m512i *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_store_epi32(void *__P, __m512i __A) { - *(__m512i *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_store_epi32(void *__P, __mmask16 __U, __m512i __A) { - __builtin_ia32_movdqa32store512_mask((__v16si *)__P, (__v16si)__A, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mullo_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A * (__v16su)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mullo_epi32(__mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulld512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mullo_epi32(__m512i __W, __mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulld512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mullox_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A * (__v8du)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mullox_epi64(__m512i __W, __mmask8 __M, __m512i __A, __m512i __B) { - return _mm512_mask_mov_epi64(__W, __M, _mm512_mullox_epi64(__A, __B)); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sllv_epi32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv16si_mask( - (__v16si)__X, (__v16si)__Y, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sllv_epi32(__m512i __W, __mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sllv_epi32(__mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srav_epi32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav16si_mask( - (__v16si)__X, (__v16si)__Y, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srav_epi32(__m512i __W, __mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srav_epi32(__mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srlv_epi32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv16si_mask( - (__v16si)__X, (__v16si)__Y, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srlv_epi32(__m512i __W, __mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srlv_epi32(__mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A + (__v8du)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A - (__v8du)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sllv_epi64(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sllv_epi64(__m512i __W, __mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv8di_mask((__v8di)__X, (__v8di)__Y, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sllv_epi64(__mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srav_epi64(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srav_epi64(__m512i __W, __mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav8di_mask((__v8di)__X, (__v8di)__Y, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srav_epi64(__mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srlv_epi64(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srlv_epi64(__m512i __W, __mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv8di_mask((__v8di)__X, (__v8di)__Y, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srlv_epi64(__mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A + (__v16su)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_add_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_epi32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuldq512_mask( - (__v16si)__X, (__v16si)__Y, (__v8di)_mm512_undefined_epi32(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_epi32(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuldq512_mask((__v16si)__X, (__v16si)__Y, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_epi32(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuldq512_mask( - (__v16si)__X, (__v16si)__Y, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A - (__v16su)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sub_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_epu32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuludq512_mask( - (__v16si)__X, (__v16si)__Y, (__v8di)_mm512_undefined_epi32(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_epu32(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuludq512_mask((__v16si)__X, (__v16si)__Y, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_epu32(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuludq512_mask( - (__v16si)__X, (__v16si)__Y, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_slli_epi64(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psllqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_slli_epi64(__m512i __W, __mmask8 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_psllqi512_mask((__v8di)__A, __B, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_slli_epi64(__mmask8 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psllqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sll_epi64(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sll_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllq512_mask((__v8di)__A, (__v2di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sll_epi64(__mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srli_epi64(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psrlqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srli_epi64(__m512i __W, __mmask8 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_psrlqi512_mask((__v8di)__A, __B, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srli_epi64(__mmask8 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psrlqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srl_epi64(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srl_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlq512_mask((__v8di)__A, (__v2di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srl_epi64(__mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srai_epi64(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psraqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srai_epi64(__m512i __W, __mmask8 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_psraqi512_mask((__v8di)__A, __B, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srai_epi64(__mmask8 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psraqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sra_epi64(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sra_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraq512_mask((__v8di)__A, (__v2di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sra_epi64(__mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_slli_epi32(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_pslldi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_slli_epi32(__m512i __W, __mmask16 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_pslldi512_mask((__v16si)__A, __B, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_slli_epi32(__mmask16 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_pslldi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sll_epi32(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_pslld512_mask( - (__v16si)__A, (__v4si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sll_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_pslld512_mask((__v16si)__A, (__v4si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sll_epi32(__mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_pslld512_mask((__v16si)__A, (__v4si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srli_epi32(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psrldi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srli_epi32(__m512i __W, __mmask16 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_psrldi512_mask((__v16si)__A, __B, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srli_epi32(__mmask16 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psrldi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srl_epi32(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrld512_mask( - (__v16si)__A, (__v4si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srl_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrld512_mask((__v16si)__A, (__v4si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srl_epi32(__mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrld512_mask((__v16si)__A, (__v4si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srai_epi32(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psradi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srai_epi32(__m512i __W, __mmask16 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_psradi512_mask((__v16si)__A, __B, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srai_epi32(__mmask16 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psradi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sra_epi32(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrad512_mask( - (__v16si)__A, (__v4si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sra_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrad512_mask((__v16si)__A, (__v4si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sra_epi32(__mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrad512_mask((__v16si)__A, (__v4si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_addsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_addsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_add_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_addsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_addss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_addss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_add_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_addss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_subsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_subsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_sub_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_subsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_subss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_subss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_sub_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_subss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ternarylogic_epi64(__m512i __A, __m512i __B, __m512i __C, - const int __imm) { - return (__m512i)__builtin_ia32_pternlogq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)__C, __imm, (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ternarylogic_epi64(__m512i __A, __mmask8 __U, __m512i __B, - __m512i __C, const int __imm) { - return (__m512i)__builtin_ia32_pternlogq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_ternarylogic_epi64(__mmask8 __U, __m512i __A, __m512i __B, - __m512i __C, const int __imm) { - return (__m512i)__builtin_ia32_pternlogq512_maskz( - (__v8di)__A, (__v8di)__B, (__v8di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ternarylogic_epi32(__m512i __A, __m512i __B, __m512i __C, - const int __imm) { - return (__m512i)__builtin_ia32_pternlogd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)__C, __imm, (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ternarylogic_epi32(__m512i __A, __mmask16 __U, __m512i __B, - __m512i __C, const int __imm) { - return (__m512i)__builtin_ia32_pternlogd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)__C, __imm, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_ternarylogic_epi32(__mmask16 __U, __m512i __A, __m512i __B, - __m512i __C, const int __imm) { - return (__m512i)__builtin_ia32_pternlogd512_maskz( - (__v16si)__A, (__v16si)__B, (__v16si)__C, __imm, (__mmask16)__U); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rcp14_pd(__m512d __A) { - return (__m512d)__builtin_ia32_rcp14pd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_rcp14_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rcp14pd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rcp14_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rcp14pd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rcp14_ps(__m512 __A) { - return (__m512)__builtin_ia32_rcp14ps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_rcp14_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rcp14ps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rcp14_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rcp14ps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp14_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rcp14sd((__v2df)__B, (__v2df)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp14_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rcp14sd_mask((__v2df)__B, (__v2df)__A, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp14_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rcp14sd_mask( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp14_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rcp14ss((__v4sf)__B, (__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp14_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rcp14ss_mask((__v4sf)__B, (__v4sf)__A, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp14_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rcp14ss_mask( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rsqrt14_pd(__m512d __A) { - return (__m512d)__builtin_ia32_rsqrt14pd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_rsqrt14_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rsqrt14pd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rsqrt14_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rsqrt14pd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rsqrt14_ps(__m512 __A) { - return (__m512)__builtin_ia32_rsqrt14ps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_rsqrt14_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rsqrt14ps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rsqrt14_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rsqrt14ps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt14_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rsqrt14sd((__v2df)__B, (__v2df)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt14_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rsqrt14sd_mask((__v2df)__B, (__v2df)__A, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rsqrt14_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rsqrt14sd_mask( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt14_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rsqrt14ss((__v4sf)__B, (__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt14_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rsqrt14ss_mask((__v4sf)__B, (__v4sf)__A, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rsqrt14_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rsqrt14ss_mask( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sqrt_round_pd(__m512d __A, const int __R) { - return (__m512d)__builtin_ia32_sqrtpd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sqrt_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512d)__builtin_ia32_sqrtpd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sqrt_round_pd(__mmask8 __U, __m512d __A, const int __R) { - return (__m512d)__builtin_ia32_sqrtpd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sqrt_round_ps(__m512 __A, const int __R) { - return (__m512)__builtin_ia32_sqrtps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sqrt_round_ps(__m512 __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512)__builtin_ia32_sqrtps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sqrt_round_ps(__mmask16 __U, __m512 __A, const int __R) { - return (__m512)__builtin_ia32_sqrtps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_sqrtsd_mask_round( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sqrt_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_sqrtsd_mask_round( - (__v2df)__B, (__v2df)__A, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_sqrt_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_sqrtsd_mask_round( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_sqrtss_mask_round( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sqrt_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_sqrtss_mask_round( - (__v4sf)__B, (__v4sf)__A, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_sqrt_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_sqrtss_mask_round( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi8_epi32(__m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbd512_mask( - (__v16qi)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi8_epi32(__m512i __W, __mmask16 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbd512_mask((__v16qi)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi8_epi32(__mmask16 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbd512_mask( - (__v16qi)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi8_epi64(__m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbq512_mask( - (__v16qi)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi8_epi64(__m512i __W, __mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbq512_mask((__v16qi)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi8_epi64(__mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbq512_mask( - (__v16qi)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi16_epi32(__m256i __A) { - return (__m512i)__builtin_ia32_pmovsxwd512_mask( - (__v16hi)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi16_epi32(__m512i __W, __mmask16 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovsxwd512_mask((__v16hi)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi16_epi32(__mmask16 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovsxwd512_mask( - (__v16hi)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi16_epi64(__m128i __A) { - return (__m512i)__builtin_ia32_pmovsxwq512_mask( - (__v8hi)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi16_epi64(__m512i __W, __mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxwq512_mask((__v8hi)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi16_epi64(__mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxwq512_mask( - (__v8hi)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi32_epi64(__m256i __X) { - return (__m512i)__builtin_ia32_pmovsxdq512_mask( - (__v8si)__X, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_epi64(__m512i __W, __mmask8 __U, __m256i __X) { - return (__m512i)__builtin_ia32_pmovsxdq512_mask((__v8si)__X, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi32_epi64(__mmask8 __U, __m256i __X) { - return (__m512i)__builtin_ia32_pmovsxdq512_mask( - (__v8si)__X, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu8_epi32(__m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbd512_mask( - (__v16qi)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu8_epi32(__m512i __W, __mmask16 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbd512_mask((__v16qi)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu8_epi32(__mmask16 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbd512_mask( - (__v16qi)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu8_epi64(__m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbq512_mask( - (__v16qi)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu8_epi64(__m512i __W, __mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbq512_mask((__v16qi)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu8_epi64(__mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbq512_mask( - (__v16qi)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu16_epi32(__m256i __A) { - return (__m512i)__builtin_ia32_pmovzxwd512_mask( - (__v16hi)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu16_epi32(__m512i __W, __mmask16 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovzxwd512_mask((__v16hi)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu16_epi32(__mmask16 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovzxwd512_mask( - (__v16hi)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu16_epi64(__m128i __A) { - return (__m512i)__builtin_ia32_pmovzxwq512_mask( - (__v8hi)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu16_epi64(__m512i __W, __mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxwq512_mask((__v8hi)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu16_epi64(__mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxwq512_mask( - (__v8hi)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu32_epi64(__m256i __X) { - return (__m512i)__builtin_ia32_pmovzxdq512_mask( - (__v8si)__X, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu32_epi64(__m512i __W, __mmask8 __U, __m256i __X) { - return (__m512i)__builtin_ia32_pmovzxdq512_mask((__v8si)__X, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu32_epi64(__mmask8 __U, __m256i __X) { - return (__m512i)__builtin_ia32_pmovzxdq512_mask( - (__v8si)__X, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_addpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_addpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_addpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_addps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_addps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_addps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_subpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_subpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_subpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_subps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_subps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_subps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_mulpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_mulpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_mulpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_mulps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_mulps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_mulps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_div_round_pd(__m512d __M, __m512d __V, const int __R) { - return (__m512d)__builtin_ia32_divpd512_mask((__v8df)__M, (__v8df)__V, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_div_round_pd(__m512d __W, __mmask8 __U, __m512d __M, - __m512d __V, const int __R) { - return (__m512d)__builtin_ia32_divpd512_mask((__v8df)__M, (__v8df)__V, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_div_round_pd(__mmask8 __U, __m512d __M, __m512d __V, - const int __R) { - return (__m512d)__builtin_ia32_divpd512_mask((__v8df)__M, (__v8df)__V, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_div_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_divps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_div_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_divps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_div_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_divps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_mulsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_mulsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_mul_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_mulsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_mulss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_mulss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_mul_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_mulss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_divsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_divsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_div_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_divsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_divss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_divss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_div_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_divss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_maxpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_maxpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_maxpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_maxps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_maxps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_maxps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_minpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_minpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_minpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_minps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_minps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_minps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_scalef_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_scalefpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_scalef_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_scalefpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_scalef_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_scalefpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_scalef_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_scalefps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_scalef_round_ps(__m512 __W, __mmask16 __U, __m512 __A, - __m512 __B, const int __R) { - return (__m512)__builtin_ia32_scalefps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_scalef_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_scalefps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_scalefsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)-1, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_scalef_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_scalefsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_scalef_round_sd(__mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_scalefsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_scalefss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_scalef_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_scalefss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_scalef_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_scalefss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmadd_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmadd_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmadd_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmadd_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmadd_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmadd_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmadd_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfmaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmadd_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmsub_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsub_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsub_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsub_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmsub_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsub_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsub_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfmsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsub_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmaddsub_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmaddsub_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmaddsub_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmaddsub_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmaddsub_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmaddsub_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmaddsub_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmaddsub_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmsubadd_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsubadd_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsubadd_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfmsubaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsubadd_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_maskz( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmsubadd_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsubadd_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsubadd_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfmsubaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsubadd_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fnmadd_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmadd_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmadd_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmadd_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmaddpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmadd_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmadd_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmadd_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfnmaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmadd_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmaddps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fnmsub_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmsub_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmsub_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmsub_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmsub_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmsub_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmsub_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfnmsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmsub_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_epi64(__m512i __A) { - return (__m512i)__builtin_ia32_pabsq512_mask( - (__v8di)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsq512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_abs_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsq512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_epi32(__m512i __A) { - return (__m512i)__builtin_ia32_pabsd512_mask( - (__v16si)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsd512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_abs_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsd512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastss_ps(__m128 __A) { - return (__m512)__builtin_ia32_broadcastss512( - (__v4sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastss_ps(__m512 __O, __mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastss512((__v4sf)__A, (__v16sf)__O, __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastss_ps(__mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastss512( - (__v4sf)__A, (__v16sf)_mm512_setzero_ps(), __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastsd_pd(__m128d __A) { - return (__m512d)__builtin_ia32_broadcastsd512( - (__v2df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastsd_pd(__m512d __O, __mmask8 __M, __m128d __A) { - return (__m512d)__builtin_ia32_broadcastsd512((__v2df)__A, (__v8df)__O, __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastsd_pd(__mmask8 __M, __m128d __A) { - return (__m512d)__builtin_ia32_broadcastsd512( - (__v2df)__A, (__v8df)_mm512_setzero_pd(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastd_epi32(__m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastd512( - (__v4si)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastd_epi32(__m512i __O, __mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastd512((__v4si)__A, (__v16si)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastd_epi32(__mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastd512( - (__v4si)__A, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_epi32(int __A) { - return (__m512i)(__v16si){__A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_set1_epi32(__m512i __O, __mmask16 __M, int __A) { - return (__m512i)__builtin_ia32_pbroadcastd512_gpr_mask(__A, (__v16si)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_set1_epi32(__mmask16 __M, int __A) { - return (__m512i)__builtin_ia32_pbroadcastd512_gpr_mask( - __A, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastq_epi64(__m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastq512( - (__v2di)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastq_epi64(__m512i __O, __mmask8 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastq512((__v2di)__A, (__v8di)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastq_epi64(__mmask8 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastq512( - (__v2di)__A, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_epi64(long long __A) { - return (__m512i)(__v8di){__A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_set1_epi64(__m512i __O, __mmask8 __M, long long __A) { - return (__m512i)__builtin_ia32_pbroadcastq512_gpr_mask(__A, (__v8di)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_set1_epi64(__mmask8 __M, long long __A) { - return (__m512i)__builtin_ia32_pbroadcastq512_gpr_mask( - __A, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_f32x4(__m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x4_512( - (__v4sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_f32x4(__m512 __O, __mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x4_512((__v4sf)__A, (__v16sf)__O, - __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_f32x4(__mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x4_512( - (__v4sf)__A, (__v16sf)_mm512_setzero_ps(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_i32x4(__m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x4_512( - (__v4si)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_i32x4(__m512i __O, __mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x4_512((__v4si)__A, (__v16si)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_i32x4(__mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x4_512( - (__v4si)__A, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_f64x4(__m256d __A) { - return (__m512d)__builtin_ia32_broadcastf64x4_512( - (__v4df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_f64x4(__m512d __O, __mmask8 __M, __m256d __A) { - return (__m512d)__builtin_ia32_broadcastf64x4_512((__v4df)__A, (__v8df)__O, - __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_f64x4(__mmask8 __M, __m256d __A) { - return (__m512d)__builtin_ia32_broadcastf64x4_512( - (__v4df)__A, (__v8df)_mm512_setzero_pd(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_i64x4(__m256i __A) { - return (__m512i)__builtin_ia32_broadcasti64x4_512( - (__v4di)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_i64x4(__m512i __O, __mmask8 __M, __m256i __A) { - return (__m512i)__builtin_ia32_broadcasti64x4_512((__v4di)__A, (__v8di)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_i64x4(__mmask8 __M, __m256i __A) { - return (__m512i)__builtin_ia32_broadcasti64x4_512( - (__v4di)__A, (__v8di)_mm512_setzero_si512(), __M); -} - -typedef enum { - _MM_PERM_AAAA = 0x00, - _MM_PERM_AAAB = 0x01, - _MM_PERM_AAAC = 0x02, - _MM_PERM_AAAD = 0x03, - _MM_PERM_AABA = 0x04, - _MM_PERM_AABB = 0x05, - _MM_PERM_AABC = 0x06, - _MM_PERM_AABD = 0x07, - _MM_PERM_AACA = 0x08, - _MM_PERM_AACB = 0x09, - _MM_PERM_AACC = 0x0A, - _MM_PERM_AACD = 0x0B, - _MM_PERM_AADA = 0x0C, - _MM_PERM_AADB = 0x0D, - _MM_PERM_AADC = 0x0E, - _MM_PERM_AADD = 0x0F, - _MM_PERM_ABAA = 0x10, - _MM_PERM_ABAB = 0x11, - _MM_PERM_ABAC = 0x12, - _MM_PERM_ABAD = 0x13, - _MM_PERM_ABBA = 0x14, - _MM_PERM_ABBB = 0x15, - _MM_PERM_ABBC = 0x16, - _MM_PERM_ABBD = 0x17, - _MM_PERM_ABCA = 0x18, - _MM_PERM_ABCB = 0x19, - _MM_PERM_ABCC = 0x1A, - _MM_PERM_ABCD = 0x1B, - _MM_PERM_ABDA = 0x1C, - _MM_PERM_ABDB = 0x1D, - _MM_PERM_ABDC = 0x1E, - _MM_PERM_ABDD = 0x1F, - _MM_PERM_ACAA = 0x20, - _MM_PERM_ACAB = 0x21, - _MM_PERM_ACAC = 0x22, - _MM_PERM_ACAD = 0x23, - _MM_PERM_ACBA = 0x24, - _MM_PERM_ACBB = 0x25, - _MM_PERM_ACBC = 0x26, - _MM_PERM_ACBD = 0x27, - _MM_PERM_ACCA = 0x28, - _MM_PERM_ACCB = 0x29, - _MM_PERM_ACCC = 0x2A, - _MM_PERM_ACCD = 0x2B, - _MM_PERM_ACDA = 0x2C, - _MM_PERM_ACDB = 0x2D, - _MM_PERM_ACDC = 0x2E, - _MM_PERM_ACDD = 0x2F, - _MM_PERM_ADAA = 0x30, - _MM_PERM_ADAB = 0x31, - _MM_PERM_ADAC = 0x32, - _MM_PERM_ADAD = 0x33, - _MM_PERM_ADBA = 0x34, - _MM_PERM_ADBB = 0x35, - _MM_PERM_ADBC = 0x36, - _MM_PERM_ADBD = 0x37, - _MM_PERM_ADCA = 0x38, - _MM_PERM_ADCB = 0x39, - _MM_PERM_ADCC = 0x3A, - _MM_PERM_ADCD = 0x3B, - _MM_PERM_ADDA = 0x3C, - _MM_PERM_ADDB = 0x3D, - _MM_PERM_ADDC = 0x3E, - _MM_PERM_ADDD = 0x3F, - _MM_PERM_BAAA = 0x40, - _MM_PERM_BAAB = 0x41, - _MM_PERM_BAAC = 0x42, - _MM_PERM_BAAD = 0x43, - _MM_PERM_BABA = 0x44, - _MM_PERM_BABB = 0x45, - _MM_PERM_BABC = 0x46, - _MM_PERM_BABD = 0x47, - _MM_PERM_BACA = 0x48, - _MM_PERM_BACB = 0x49, - _MM_PERM_BACC = 0x4A, - _MM_PERM_BACD = 0x4B, - _MM_PERM_BADA = 0x4C, - _MM_PERM_BADB = 0x4D, - _MM_PERM_BADC = 0x4E, - _MM_PERM_BADD = 0x4F, - _MM_PERM_BBAA = 0x50, - _MM_PERM_BBAB = 0x51, - _MM_PERM_BBAC = 0x52, - _MM_PERM_BBAD = 0x53, - _MM_PERM_BBBA = 0x54, - _MM_PERM_BBBB = 0x55, - _MM_PERM_BBBC = 0x56, - _MM_PERM_BBBD = 0x57, - _MM_PERM_BBCA = 0x58, - _MM_PERM_BBCB = 0x59, - _MM_PERM_BBCC = 0x5A, - _MM_PERM_BBCD = 0x5B, - _MM_PERM_BBDA = 0x5C, - _MM_PERM_BBDB = 0x5D, - _MM_PERM_BBDC = 0x5E, - _MM_PERM_BBDD = 0x5F, - _MM_PERM_BCAA = 0x60, - _MM_PERM_BCAB = 0x61, - _MM_PERM_BCAC = 0x62, - _MM_PERM_BCAD = 0x63, - _MM_PERM_BCBA = 0x64, - _MM_PERM_BCBB = 0x65, - _MM_PERM_BCBC = 0x66, - _MM_PERM_BCBD = 0x67, - _MM_PERM_BCCA = 0x68, - _MM_PERM_BCCB = 0x69, - _MM_PERM_BCCC = 0x6A, - _MM_PERM_BCCD = 0x6B, - _MM_PERM_BCDA = 0x6C, - _MM_PERM_BCDB = 0x6D, - _MM_PERM_BCDC = 0x6E, - _MM_PERM_BCDD = 0x6F, - _MM_PERM_BDAA = 0x70, - _MM_PERM_BDAB = 0x71, - _MM_PERM_BDAC = 0x72, - _MM_PERM_BDAD = 0x73, - _MM_PERM_BDBA = 0x74, - _MM_PERM_BDBB = 0x75, - _MM_PERM_BDBC = 0x76, - _MM_PERM_BDBD = 0x77, - _MM_PERM_BDCA = 0x78, - _MM_PERM_BDCB = 0x79, - _MM_PERM_BDCC = 0x7A, - _MM_PERM_BDCD = 0x7B, - _MM_PERM_BDDA = 0x7C, - _MM_PERM_BDDB = 0x7D, - _MM_PERM_BDDC = 0x7E, - _MM_PERM_BDDD = 0x7F, - _MM_PERM_CAAA = 0x80, - _MM_PERM_CAAB = 0x81, - _MM_PERM_CAAC = 0x82, - _MM_PERM_CAAD = 0x83, - _MM_PERM_CABA = 0x84, - _MM_PERM_CABB = 0x85, - _MM_PERM_CABC = 0x86, - _MM_PERM_CABD = 0x87, - _MM_PERM_CACA = 0x88, - _MM_PERM_CACB = 0x89, - _MM_PERM_CACC = 0x8A, - _MM_PERM_CACD = 0x8B, - _MM_PERM_CADA = 0x8C, - _MM_PERM_CADB = 0x8D, - _MM_PERM_CADC = 0x8E, - _MM_PERM_CADD = 0x8F, - _MM_PERM_CBAA = 0x90, - _MM_PERM_CBAB = 0x91, - _MM_PERM_CBAC = 0x92, - _MM_PERM_CBAD = 0x93, - _MM_PERM_CBBA = 0x94, - _MM_PERM_CBBB = 0x95, - _MM_PERM_CBBC = 0x96, - _MM_PERM_CBBD = 0x97, - _MM_PERM_CBCA = 0x98, - _MM_PERM_CBCB = 0x99, - _MM_PERM_CBCC = 0x9A, - _MM_PERM_CBCD = 0x9B, - _MM_PERM_CBDA = 0x9C, - _MM_PERM_CBDB = 0x9D, - _MM_PERM_CBDC = 0x9E, - _MM_PERM_CBDD = 0x9F, - _MM_PERM_CCAA = 0xA0, - _MM_PERM_CCAB = 0xA1, - _MM_PERM_CCAC = 0xA2, - _MM_PERM_CCAD = 0xA3, - _MM_PERM_CCBA = 0xA4, - _MM_PERM_CCBB = 0xA5, - _MM_PERM_CCBC = 0xA6, - _MM_PERM_CCBD = 0xA7, - _MM_PERM_CCCA = 0xA8, - _MM_PERM_CCCB = 0xA9, - _MM_PERM_CCCC = 0xAA, - _MM_PERM_CCCD = 0xAB, - _MM_PERM_CCDA = 0xAC, - _MM_PERM_CCDB = 0xAD, - _MM_PERM_CCDC = 0xAE, - _MM_PERM_CCDD = 0xAF, - _MM_PERM_CDAA = 0xB0, - _MM_PERM_CDAB = 0xB1, - _MM_PERM_CDAC = 0xB2, - _MM_PERM_CDAD = 0xB3, - _MM_PERM_CDBA = 0xB4, - _MM_PERM_CDBB = 0xB5, - _MM_PERM_CDBC = 0xB6, - _MM_PERM_CDBD = 0xB7, - _MM_PERM_CDCA = 0xB8, - _MM_PERM_CDCB = 0xB9, - _MM_PERM_CDCC = 0xBA, - _MM_PERM_CDCD = 0xBB, - _MM_PERM_CDDA = 0xBC, - _MM_PERM_CDDB = 0xBD, - _MM_PERM_CDDC = 0xBE, - _MM_PERM_CDDD = 0xBF, - _MM_PERM_DAAA = 0xC0, - _MM_PERM_DAAB = 0xC1, - _MM_PERM_DAAC = 0xC2, - _MM_PERM_DAAD = 0xC3, - _MM_PERM_DABA = 0xC4, - _MM_PERM_DABB = 0xC5, - _MM_PERM_DABC = 0xC6, - _MM_PERM_DABD = 0xC7, - _MM_PERM_DACA = 0xC8, - _MM_PERM_DACB = 0xC9, - _MM_PERM_DACC = 0xCA, - _MM_PERM_DACD = 0xCB, - _MM_PERM_DADA = 0xCC, - _MM_PERM_DADB = 0xCD, - _MM_PERM_DADC = 0xCE, - _MM_PERM_DADD = 0xCF, - _MM_PERM_DBAA = 0xD0, - _MM_PERM_DBAB = 0xD1, - _MM_PERM_DBAC = 0xD2, - _MM_PERM_DBAD = 0xD3, - _MM_PERM_DBBA = 0xD4, - _MM_PERM_DBBB = 0xD5, - _MM_PERM_DBBC = 0xD6, - _MM_PERM_DBBD = 0xD7, - _MM_PERM_DBCA = 0xD8, - _MM_PERM_DBCB = 0xD9, - _MM_PERM_DBCC = 0xDA, - _MM_PERM_DBCD = 0xDB, - _MM_PERM_DBDA = 0xDC, - _MM_PERM_DBDB = 0xDD, - _MM_PERM_DBDC = 0xDE, - _MM_PERM_DBDD = 0xDF, - _MM_PERM_DCAA = 0xE0, - _MM_PERM_DCAB = 0xE1, - _MM_PERM_DCAC = 0xE2, - _MM_PERM_DCAD = 0xE3, - _MM_PERM_DCBA = 0xE4, - _MM_PERM_DCBB = 0xE5, - _MM_PERM_DCBC = 0xE6, - _MM_PERM_DCBD = 0xE7, - _MM_PERM_DCCA = 0xE8, - _MM_PERM_DCCB = 0xE9, - _MM_PERM_DCCC = 0xEA, - _MM_PERM_DCCD = 0xEB, - _MM_PERM_DCDA = 0xEC, - _MM_PERM_DCDB = 0xED, - _MM_PERM_DCDC = 0xEE, - _MM_PERM_DCDD = 0xEF, - _MM_PERM_DDAA = 0xF0, - _MM_PERM_DDAB = 0xF1, - _MM_PERM_DDAC = 0xF2, - _MM_PERM_DDAD = 0xF3, - _MM_PERM_DDBA = 0xF4, - _MM_PERM_DDBB = 0xF5, - _MM_PERM_DDBC = 0xF6, - _MM_PERM_DDBD = 0xF7, - _MM_PERM_DDCA = 0xF8, - _MM_PERM_DDCB = 0xF9, - _MM_PERM_DDCC = 0xFA, - _MM_PERM_DDCD = 0xFB, - _MM_PERM_DDDA = 0xFC, - _MM_PERM_DDDB = 0xFD, - _MM_PERM_DDDC = 0xFE, - _MM_PERM_DDDD = 0xFF -} _MM_PERM_ENUM; - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_epi32(__m512i __A, _MM_PERM_ENUM __mask) { - return (__m512i)__builtin_ia32_pshufd512_mask( - (__v16si)__A, __mask, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_epi32(__m512i __W, __mmask16 __U, __m512i __A, - _MM_PERM_ENUM __mask) { - return (__m512i)__builtin_ia32_pshufd512_mask((__v16si)__A, __mask, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shuffle_epi32(__mmask16 __U, __m512i __A, _MM_PERM_ENUM __mask) { - return (__m512i)__builtin_ia32_pshufd512_mask( - (__v16si)__A, __mask, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_i64x2(__m512i __A, __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_shuf_i64x2_mask( - (__v8di)__A, (__v8di)__B, __imm, (__v8di)_mm512_undefined_epi32(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_i64x2(__m512i __W, __mmask8 __U, __m512i __A, - __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_shuf_i64x2_mask( - (__v8di)__A, (__v8di)__B, __imm, (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_i64x2(__mmask8 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_shuf_i64x2_mask( - (__v8di)__A, (__v8di)__B, __imm, (__v8di)_mm512_setzero_si512(), - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_i32x4(__m512i __A, __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_shuf_i32x4_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_i32x4(__m512i __W, __mmask16 __U, __m512i __A, - __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_shuf_i32x4_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_i32x4(__mmask16 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_shuf_i32x4_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_f64x2(__m512d __A, __m512d __B, const int __imm) { - return (__m512d)__builtin_ia32_shuf_f64x2_mask( - (__v8df)__A, (__v8df)__B, __imm, (__v8df)_mm512_undefined_pd(), - (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_f64x2(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __imm) { - return (__m512d)__builtin_ia32_shuf_f64x2_mask( - (__v8df)__A, (__v8df)__B, __imm, (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_f64x2(__mmask8 __U, __m512d __A, __m512d __B, - const int __imm) { - return (__m512d)__builtin_ia32_shuf_f64x2_mask( - (__v8df)__A, (__v8df)__B, __imm, (__v8df)_mm512_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_f32x4(__m512 __A, __m512 __B, const int __imm) { - return (__m512)__builtin_ia32_shuf_f32x4_mask( - (__v16sf)__A, (__v16sf)__B, __imm, (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_f32x4(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __imm) { - return (__m512)__builtin_ia32_shuf_f32x4_mask( - (__v16sf)__A, (__v16sf)__B, __imm, (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_f32x4(__mmask16 __U, __m512 __A, __m512 __B, - const int __imm) { - return (__m512)__builtin_ia32_shuf_f32x4_mask( - (__v16sf)__A, (__v16sf)__B, __imm, (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rolv_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rolv_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rolv_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rorv_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rorv_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rorv_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rolv_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rolv_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rolv_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rorv_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rorv_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rorv_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundpd_epi32(__m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundpd_epi32(__m256i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundpd_epi32(__mmask8 __U, __m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundpd_epu32(__m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundpd_epu32(__m256i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundpd_epu32(__mmask8 __U, __m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, __R); -} -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundpd_epi32(__m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundpd_epi32(__m256i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundpd_epi32(__mmask8 __U, __m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundpd_epu32(__m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundpd_epu32(__m256i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundpd_epu32(__mmask8 __U, __m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, __R); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundps_epi32(__m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundps_epi32(__m512i __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundps_epi32(__mmask16 __U, __m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundps_epu32(__m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundps_epu32(__m512i __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundps_epu32(__mmask16 __U, __m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, __R); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_epi32(__m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_epi32(__m512i __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_epi32(__mmask16 __U, __m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_epu32(__m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_epu32(__m512i __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_epu32(__mmask16 __U, __m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, __R); -} -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtu32_sd(__m128d __A, unsigned __B) { - return (__m128d)__builtin_ia32_cvtusi2sd32((__v2df)__A, __B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundu64_sd(__m128d __A, unsigned long long __B, const int __R) { - return (__m128d)__builtin_ia32_cvtusi2sd64((__v2df)__A, __B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundi64_sd(__m128d __A, long long __B, const int __R) { - return (__m128d)__builtin_ia32_cvtsi2sd64((__v2df)__A, __B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsi64_sd(__m128d __A, long long __B, const int __R) { - return (__m128d)__builtin_ia32_cvtsi2sd64((__v2df)__A, __B, __R); -} -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundu32_ss(__m128 __A, unsigned __B, const int __R) { - return (__m128)__builtin_ia32_cvtusi2ss32((__v4sf)__A, __B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsi32_ss(__m128 __A, int __B, const int __R) { - return (__m128)__builtin_ia32_cvtsi2ss32((__v4sf)__A, __B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundi32_ss(__m128 __A, int __B, const int __R) { - return (__m128)__builtin_ia32_cvtsi2ss32((__v4sf)__A, __B, __R); -} -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundu64_ss(__m128 __A, unsigned long long __B, const int __R) { - return (__m128)__builtin_ia32_cvtusi2ss64((__v4sf)__A, __B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsi64_ss(__m128 __A, long long __B, const int __R) { - return (__m128)__builtin_ia32_cvtsi2ss64((__v4sf)__A, __B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundi64_ss(__m128 __A, long long __B, const int __R) { - return (__m128)__builtin_ia32_cvtsi2ss64((__v4sf)__A, __B, __R); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi32_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovdb512_mask( - (__v16si)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_storeu_epi8(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovdb512mem_mask((__v16qi *)__P, (__v16si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_epi8(__m128i __O, __mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovdb512_mask((__v16si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi32_epi8(__mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovdb512_mask( - (__v16si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi32_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovsdb512_mask( - (__v16si)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi32_storeu_epi8(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovsdb512mem_mask((__v16qi *)__P, (__v16si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi32_epi8(__m128i __O, __mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsdb512_mask((__v16si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi32_epi8(__mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsdb512_mask( - (__v16si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi32_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovusdb512_mask( - (__v16si)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi32_storeu_epi8(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovusdb512mem_mask((__v16qi *)__P, (__v16si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi32_epi8(__m128i __O, __mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusdb512_mask((__v16si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi32_epi8(__mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusdb512_mask( - (__v16si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi32_epi16(__m512i __A) { - return (__m256i)__builtin_ia32_pmovdw512_mask( - (__v16si)__A, (__v16hi)_mm256_undefined_si256(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_storeu_epi16(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovdw512mem_mask((__v16hi *)__P, (__v16si)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_epi16(__m256i __O, __mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovdw512_mask((__v16si)__A, (__v16hi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi32_epi16(__mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovdw512_mask( - (__v16si)__A, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi32_epi16(__m512i __A) { - return (__m256i)__builtin_ia32_pmovsdw512_mask( - (__v16si)__A, (__v16hi)_mm256_undefined_si256(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi32_storeu_epi16(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovsdw512mem_mask((__v16hi *)__P, (__v16si)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi32_epi16(__m256i __O, __mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovsdw512_mask((__v16si)__A, (__v16hi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi32_epi16(__mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovsdw512_mask( - (__v16si)__A, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi32_epi16(__m512i __A) { - return (__m256i)__builtin_ia32_pmovusdw512_mask( - (__v16si)__A, (__v16hi)_mm256_undefined_si256(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi32_storeu_epi16(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovusdw512mem_mask((__v16hi *)__P, (__v16si)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi32_epi16(__m256i __O, __mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovusdw512_mask((__v16si)__A, (__v16hi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi32_epi16(__mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovusdw512_mask( - (__v16si)__A, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi64_epi32(__m512i __A) { - return (__m256i)__builtin_ia32_pmovqd512_mask( - (__v8di)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_storeu_epi32(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovqd512mem_mask((__v8si *)__P, (__v8di)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_epi32(__m256i __O, __mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovqd512_mask((__v8di)__A, (__v8si)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi64_epi32(__mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovqd512_mask( - (__v8di)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi64_epi32(__m512i __A) { - return (__m256i)__builtin_ia32_pmovsqd512_mask( - (__v8di)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_storeu_epi32(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovsqd512mem_mask((__v8si *)__P, (__v8di)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_epi32(__m256i __O, __mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovsqd512_mask((__v8di)__A, (__v8si)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi64_epi32(__mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovsqd512_mask( - (__v8di)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi64_epi32(__m512i __A) { - return (__m256i)__builtin_ia32_pmovusqd512_mask( - (__v8di)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_storeu_epi32(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovusqd512mem_mask((__v8si *)__P, (__v8di)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_epi32(__m256i __O, __mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovusqd512_mask((__v8di)__A, (__v8si)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi64_epi32(__mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovusqd512_mask( - (__v8di)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi64_epi16(__m512i __A) { - return (__m128i)__builtin_ia32_pmovqw512_mask( - (__v8di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_storeu_epi16(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovqw512mem_mask((__v8hi *)__P, (__v8di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_epi16(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovqw512_mask((__v8di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi64_epi16(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovqw512_mask( - (__v8di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi64_epi16(__m512i __A) { - return (__m128i)__builtin_ia32_pmovsqw512_mask( - (__v8di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_storeu_epi16(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovsqw512mem_mask((__v8hi *)__P, (__v8di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_epi16(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsqw512_mask((__v8di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi64_epi16(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsqw512_mask( - (__v8di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi64_epi16(__m512i __A) { - return (__m128i)__builtin_ia32_pmovusqw512_mask( - (__v8di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_storeu_epi16(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovusqw512mem_mask((__v8hi *)__P, (__v8di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_epi16(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusqw512_mask((__v8di)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi64_epi16(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusqw512_mask( - (__v8di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi64_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovqb512_mask( - (__v8di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_storeu_epi8(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovqb512mem_mask((unsigned long long *)__P, (__v8di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_epi8(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovqb512_mask((__v8di)__A, (__v16qi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi64_epi8(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovqb512_mask( - (__v8di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi64_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovsqb512_mask( - (__v8di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_storeu_epi8(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovsqb512mem_mask((unsigned long long *)__P, (__v8di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_epi8(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsqb512_mask((__v8di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi64_epi8(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsqb512_mask( - (__v8di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi64_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovusqb512_mask( - (__v8di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_storeu_epi8(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovusqb512mem_mask((unsigned long long *)__P, (__v8di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_epi8(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusqb512_mask((__v8di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi64_epi8(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusqb512_mask( - (__v8di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi32_pd(__m256i __A) { - return (__m512d)__builtin_ia32_cvtdq2pd512_mask( - (__v8si)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_pd(__m512d __W, __mmask8 __U, __m256i __A) { - return (__m512d)__builtin_ia32_cvtdq2pd512_mask((__v8si)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi32_pd(__mmask8 __U, __m256i __A) { - return (__m512d)__builtin_ia32_cvtdq2pd512_mask( - (__v8si)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu32_pd(__m256i __A) { - return (__m512d)__builtin_ia32_cvtudq2pd512_mask( - (__v8si)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu32_pd(__m512d __W, __mmask8 __U, __m256i __A) { - return (__m512d)__builtin_ia32_cvtudq2pd512_mask((__v8si)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu32_pd(__mmask8 __U, __m256i __A) { - return (__m512d)__builtin_ia32_cvtudq2pd512_mask( - (__v8si)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepi32_ps(__m512i __A, const int __R) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepi32_ps(__m512 __W, __mmask16 __U, __m512i __A, - const int __R) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask((__v16si)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepi32_ps(__mmask16 __U, __m512i __A, const int __R) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepu32_ps(__m512i __A, const int __R) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepu32_ps(__m512 __W, __mmask16 __U, __m512i __A, - const int __R) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask((__v16si)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepu32_ps(__mmask16 __U, __m512i __A, const int __R) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extractf64x4_pd(__m512d __A, const int __imm) { - return (__m256d)__builtin_ia32_extractf64x4_mask( - (__v8df)__A, __imm, (__v4df)_mm256_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extractf64x4_pd(__m256d __W, __mmask8 __U, __m512d __A, - const int __imm) { - return (__m256d)__builtin_ia32_extractf64x4_mask((__v8df)__A, __imm, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_extractf64x4_pd(__mmask8 __U, __m512d __A, const int __imm) { - return (__m256d)__builtin_ia32_extractf64x4_mask( - (__v8df)__A, __imm, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extractf32x4_ps(__m512 __A, const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_mask( - (__v16sf)__A, __imm, (__v4sf)_mm_undefined_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extractf32x4_ps(__m128 __W, __mmask8 __U, __m512 __A, - const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_mask((__v16sf)__A, __imm, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_extractf32x4_ps(__mmask8 __U, __m512 __A, const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_mask( - (__v16sf)__A, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extracti64x4_epi64(__m512i __A, const int __imm) { - return (__m256i)__builtin_ia32_extracti64x4_mask( - (__v8di)__A, __imm, (__v4di)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extracti64x4_epi64(__m256i __W, __mmask8 __U, __m512i __A, - const int __imm) { - return (__m256i)__builtin_ia32_extracti64x4_mask((__v8di)__A, __imm, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_extracti64x4_epi64(__mmask8 __U, __m512i __A, const int __imm) { - return (__m256i)__builtin_ia32_extracti64x4_mask( - (__v8di)__A, __imm, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extracti32x4_epi32(__m512i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_mask( - (__v16si)__A, __imm, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extracti32x4_epi32(__m128i __W, __mmask8 __U, __m512i __A, - const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_mask((__v16si)__A, __imm, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_extracti32x4_epi32(__mmask8 __U, __m512i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_mask( - (__v16si)__A, __imm, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_inserti32x4(__m512i __A, __m128i __B, const int __imm) { - return (__m512i)__builtin_ia32_inserti32x4_mask((__v16si)__A, (__v4si)__B, - __imm, (__v16si)__A, -1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_insertf32x4(__m512 __A, __m128 __B, const int __imm) { - return (__m512)__builtin_ia32_insertf32x4_mask((__v16sf)__A, (__v4sf)__B, - __imm, (__v16sf)__A, -1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_inserti64x4(__m512i __A, __m256i __B, const int __imm) { - return (__m512i)__builtin_ia32_inserti64x4_mask( - (__v8di)__A, (__v4di)__B, __imm, (__v8di)_mm512_undefined_epi32(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_inserti64x4(__m512i __W, __mmask8 __U, __m512i __A, __m256i __B, - const int __imm) { - return (__m512i)__builtin_ia32_inserti64x4_mask( - (__v8di)__A, (__v4di)__B, __imm, (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_inserti64x4(__mmask8 __U, __m512i __A, __m256i __B, - const int __imm) { - return (__m512i)__builtin_ia32_inserti64x4_mask( - (__v8di)__A, (__v4di)__B, __imm, (__v8di)_mm512_setzero_si512(), - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_insertf64x4(__m512d __A, __m256d __B, const int __imm) { - return (__m512d)__builtin_ia32_insertf64x4_mask( - (__v8df)__A, (__v4df)__B, __imm, (__v8df)_mm512_undefined_pd(), - (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_insertf64x4(__m512d __W, __mmask8 __U, __m512d __A, __m256d __B, - const int __imm) { - return (__m512d)__builtin_ia32_insertf64x4_mask( - (__v8df)__A, (__v4df)__B, __imm, (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_insertf64x4(__mmask8 __U, __m512d __A, __m256d __B, - const int __imm) { - return (__m512d)__builtin_ia32_insertf64x4_mask( - (__v8df)__A, (__v4df)__B, __imm, (__v8df)_mm512_setzero_pd(), - (__mmask8)__U); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_pd(void const *__P) { - return *(__m512d_u *)__P; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_pd(__m512d __W, __mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_loadupd512_mask((const double *)__P, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_pd(__mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_loadupd512_mask( - (const double *)__P, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_pd(void *__P, __m512d __A) { - *(__m512d_u *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_pd(void *__P, __mmask8 __U, __m512d __A) { - __builtin_ia32_storeupd512_mask((double *)__P, (__v8df)__A, (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_ps(void const *__P) { - return *(__m512_u *)__P; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_ps(__m512 __W, __mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_loadups512_mask((const float *)__P, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_ps(__mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_loadups512_mask( - (const float *)__P, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_ps(void *__P, __m512 __A) { - *(__m512_u *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_ps(void *__P, __mmask16 __U, __m512 __A) { - __builtin_ia32_storeups512_mask((float *)__P, (__v16sf)__A, (__mmask16)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_ss(__m128 __W, __mmask8 __U, const float *__P) { - return (__m128)__builtin_ia32_loadss_mask(__P, (__v4sf)__W, __U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_ss(__mmask8 __U, const float *__P) { - return (__m128)__builtin_ia32_loadss_mask(__P, (__v4sf)_mm_setzero_ps(), __U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_sd(__m128d __W, __mmask8 __U, const double *__P) { - return (__m128d)__builtin_ia32_loadsd_mask(__P, (__v2df)__W, __U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_sd(__mmask8 __U, const double *__P) { - return (__m128d)__builtin_ia32_loadsd_mask(__P, (__v2df)_mm_setzero_pd(), - __U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_move_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movess_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, __U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_move_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movess_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)_mm_setzero_ps(), __U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_move_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movesd_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, __U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_move_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movesd_mask((__v2df)__A, (__v2df)__B, - (__v2df)_mm_setzero_pd(), __U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_ss(float *__P, __mmask8 __U, __m128 __A) { - __builtin_ia32_storess_mask(__P, (__v4sf)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_sd(double *__P, __mmask8 __U, __m128d __A) { - __builtin_ia32_storesd_mask(__P, (__v2df)__A, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_epi64(void const *__P) { - return *(__m512i_u *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_epi64(__m512i __W, __mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddqudi512_mask((const long long *)__P, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_epi64(__mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddqudi512_mask( - (const long long *)__P, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_epi64(void *__P, __m512i __A) { - *(__m512i_u *)__P = (__m512i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_epi64(void *__P, __mmask8 __U, __m512i __A) { - __builtin_ia32_storedqudi512_mask((long long *)__P, (__v8di)__A, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_si512(void const *__P) { - return *(__m512i_u *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_epi32(void const *__P) { - return *(__m512i_u *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_epi32(__m512i __W, __mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddqusi512_mask( - (const int *)__P, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_epi32(__mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddqusi512_mask( - (const int *)__P, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_si512(void *__P, __m512i __A) { - *(__m512i_u *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_epi32(void *__P, __m512i __A) { - *(__m512i_u *)__P = (__m512i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_epi32(void *__P, __mmask16 __U, __m512i __A) { - __builtin_ia32_storedqusi512_mask((int *)__P, (__v16si)__A, (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutevar_pd(__m512d __A, __m512i __C) { - return (__m512d)__builtin_ia32_vpermilvarpd512_mask( - (__v8df)__A, (__v8di)__C, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permutevar_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512i __C) { - return (__m512d)__builtin_ia32_vpermilvarpd512_mask( - (__v8df)__A, (__v8di)__C, (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutevar_pd(__mmask8 __U, __m512d __A, __m512i __C) { - return (__m512d)__builtin_ia32_vpermilvarpd512_mask( - (__v8df)__A, (__v8di)__C, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutevar_ps(__m512 __A, __m512i __C) { - return (__m512)__builtin_ia32_vpermilvarps512_mask( - (__v16sf)__A, (__v16si)__C, (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permutevar_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512i __C) { - return (__m512)__builtin_ia32_vpermilvarps512_mask( - (__v16sf)__A, (__v16si)__C, (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutevar_ps(__mmask16 __U, __m512 __A, __m512i __C) { - return (__m512)__builtin_ia32_vpermilvarps512_mask( - (__v16sf)__A, (__v16si)__C, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_epi64(__m512i __A, __m512i __I, __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varq512_mask((__v8di)__I, (__v8di)__A, - (__v8di)__B, (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_epi64(__m512i __A, __mmask8 __U, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varq512_mask( - (__v8di)__I, (__v8di)__A, (__v8di)__B, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_epi64(__m512i __A, __m512i __I, __mmask8 __U, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermi2varq512_mask( - (__v8di)__A, (__v8di)__I, (__v8di)__B, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_epi64(__mmask8 __U, __m512i __A, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varq512_maskz( - (__v8di)__I, (__v8di)__A, (__v8di)__B, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_epi32(__m512i __A, __m512i __I, __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2vard512_mask( - (__v16si)__I, (__v16si)__A, (__v16si)__B, (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_epi32(__m512i __A, __mmask16 __U, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2vard512_mask( - (__v16si)__I, (__v16si)__A, (__v16si)__B, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_epi32(__m512i __A, __m512i __I, __mmask16 __U, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermi2vard512_mask( - (__v16si)__A, (__v16si)__I, (__v16si)__B, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_epi32(__mmask16 __U, __m512i __A, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2vard512_maskz( - (__v16si)__I, (__v16si)__A, (__v16si)__B, (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_pd(__m512d __A, __m512i __I, __m512d __B) { - return (__m512d)__builtin_ia32_vpermt2varpd512_mask( - (__v8di)__I, (__v8df)__A, (__v8df)__B, (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_pd(__m512d __A, __mmask8 __U, __m512i __I, - __m512d __B) { - return (__m512d)__builtin_ia32_vpermt2varpd512_mask( - (__v8di)__I, (__v8df)__A, (__v8df)__B, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_pd(__m512d __A, __m512i __I, __mmask8 __U, - __m512d __B) { - return (__m512d)__builtin_ia32_vpermi2varpd512_mask( - (__v8df)__A, (__v8di)__I, (__v8df)__B, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_pd(__mmask8 __U, __m512d __A, __m512i __I, - __m512d __B) { - return (__m512d)__builtin_ia32_vpermt2varpd512_maskz( - (__v8di)__I, (__v8df)__A, (__v8df)__B, (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_ps(__m512 __A, __m512i __I, __m512 __B) { - return (__m512)__builtin_ia32_vpermt2varps512_mask( - (__v16si)__I, (__v16sf)__A, (__v16sf)__B, (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_ps(__m512 __A, __mmask16 __U, __m512i __I, - __m512 __B) { - return (__m512)__builtin_ia32_vpermt2varps512_mask( - (__v16si)__I, (__v16sf)__A, (__v16sf)__B, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_ps(__m512 __A, __m512i __I, __mmask16 __U, - __m512 __B) { - return (__m512)__builtin_ia32_vpermi2varps512_mask( - (__v16sf)__A, (__v16si)__I, (__v16sf)__B, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_ps(__mmask16 __U, __m512 __A, __m512i __I, - __m512 __B) { - return (__m512)__builtin_ia32_vpermt2varps512_maskz( - (__v16si)__I, (__v16sf)__A, (__v16sf)__B, (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permute_pd(__m512d __X, const int __C) { - return (__m512d)__builtin_ia32_vpermilpd512_mask( - (__v8df)__X, __C, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permute_pd(__m512d __W, __mmask8 __U, __m512d __X, const int __C) { - return (__m512d)__builtin_ia32_vpermilpd512_mask((__v8df)__X, __C, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permute_pd(__mmask8 __U, __m512d __X, const int __C) { - return (__m512d)__builtin_ia32_vpermilpd512_mask( - (__v8df)__X, __C, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permute_ps(__m512 __X, const int __C) { - return (__m512)__builtin_ia32_vpermilps512_mask( - (__v16sf)__X, __C, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permute_ps(__m512 __W, __mmask16 __U, __m512 __X, const int __C) { - return (__m512)__builtin_ia32_vpermilps512_mask((__v16sf)__X, __C, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permute_ps(__mmask16 __U, __m512 __X, const int __C) { - return (__m512)__builtin_ia32_vpermilps512_mask( - (__v16sf)__X, __C, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex_epi64(__m512i __X, const int __I) { - return (__m512i)__builtin_ia32_permdi512_mask( - (__v8di)__X, __I, (__v8di)_mm512_undefined_epi32(), (__mmask8)(-1)); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex_epi64(__m512i __W, __mmask8 __M, __m512i __X, - const int __I) { - return (__m512i)__builtin_ia32_permdi512_mask((__v8di)__X, __I, (__v8di)__W, - (__mmask8)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex_epi64(__mmask8 __M, __m512i __X, const int __I) { - return (__m512i)__builtin_ia32_permdi512_mask( - (__v8di)__X, __I, (__v8di)_mm512_setzero_si512(), (__mmask8)__M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex_pd(__m512d __X, const int __M) { - return (__m512d)__builtin_ia32_permdf512_mask( - (__v8df)__X, __M, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permutex_pd(__m512d __W, __mmask8 __U, __m512d __X, const int __M) { - return (__m512d)__builtin_ia32_permdf512_mask((__v8df)__X, __M, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex_pd(__mmask8 __U, __m512d __X, const int __M) { - return (__m512d)__builtin_ia32_permdf512_mask( - (__v8df)__X, __M, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_epi64(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_permvardi512_mask( - (__v8di)__Y, (__v8di)__X, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_epi64(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_permvardi512_mask( - (__v8di)__Y, (__v8di)__X, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutexvar_epi64(__m512i __W, __mmask8 __M, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_permvardi512_mask((__v8di)__Y, (__v8di)__X, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_epi32(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_permvarsi512_mask( - (__v16si)__Y, (__v16si)__X, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_epi32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_permvarsi512_mask( - (__v16si)__Y, (__v16si)__X, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutexvar_epi32(__m512i __W, __mmask16 __M, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_permvarsi512_mask((__v16si)__Y, (__v16si)__X, - (__v16si)__W, __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_pd(__m512i __X, __m512d __Y) { - return (__m512d)__builtin_ia32_permvardf512_mask( - (__v8df)__Y, (__v8di)__X, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutexvar_pd(__m512d __W, __mmask8 __U, __m512i __X, - __m512d __Y) { - return (__m512d)__builtin_ia32_permvardf512_mask((__v8df)__Y, (__v8di)__X, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_pd(__mmask8 __U, __m512i __X, __m512d __Y) { - return (__m512d)__builtin_ia32_permvardf512_mask( - (__v8df)__Y, (__v8di)__X, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_ps(__m512i __X, __m512 __Y) { - return (__m512)__builtin_ia32_permvarsf512_mask( - (__v16sf)__Y, (__v16si)__X, (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permutexvar_ps(__m512 __W, __mmask16 __U, __m512i __X, __m512 __Y) { - return (__m512)__builtin_ia32_permvarsf512_mask((__v16sf)__Y, (__v16si)__X, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_ps(__mmask16 __U, __m512i __X, __m512 __Y) { - return (__m512)__builtin_ia32_permvarsf512_mask( - (__v16sf)__Y, (__v16si)__X, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_ps(__m512 __M, __m512 __V, const int __imm) { - return (__m512)__builtin_ia32_shufps512_mask( - (__v16sf)__M, (__v16sf)__V, __imm, (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_ps(__m512 __W, __mmask16 __U, __m512 __M, __m512 __V, - const int __imm) { - return (__m512)__builtin_ia32_shufps512_mask( - (__v16sf)__M, (__v16sf)__V, __imm, (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_ps(__mmask16 __U, __m512 __M, __m512 __V, - const int __imm) { - return (__m512)__builtin_ia32_shufps512_mask( - (__v16sf)__M, (__v16sf)__V, __imm, (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_pd(__m512d __M, __m512d __V, const int __imm) { - return (__m512d)__builtin_ia32_shufpd512_mask((__v8df)__M, (__v8df)__V, __imm, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_pd(__m512d __W, __mmask8 __U, __m512d __M, __m512d __V, - const int __imm) { - return (__m512d)__builtin_ia32_shufpd512_mask((__v8df)__M, (__v8df)__V, __imm, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_pd(__mmask8 __U, __m512d __M, __m512d __V, - const int __imm) { - return (__m512d)__builtin_ia32_shufpd512_mask((__v8df)__M, (__v8df)__V, __imm, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fixupimm_round_pd(__m512d __A, __m512d __B, __m512i __C, - const int __imm, const int __R) { - return (__m512d)__builtin_ia32_fixupimmpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fixupimm_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512i __C, const int __imm, const int __R) { - return (__m512d)__builtin_ia32_fixupimmpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fixupimm_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512i __C, const int __imm, - const int __R) { - return (__m512d)__builtin_ia32_fixupimmpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fixupimm_round_ps(__m512 __A, __m512 __B, __m512i __C, - const int __imm, const int __R) { - return (__m512)__builtin_ia32_fixupimmps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fixupimm_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512i __C, const int __imm, const int __R) { - return (__m512)__builtin_ia32_fixupimmps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fixupimm_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512i __C, const int __imm, - const int __R) { - return (__m512)__builtin_ia32_fixupimmps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_round_sd(__m128d __A, __m128d __B, __m128i __C, - const int __imm, const int __R) { - return (__m128d)__builtin_ia32_fixupimmsd_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)-1, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_round_sd(__m128d __A, __mmask8 __U, __m128d __B, - __m128i __C, const int __imm, const int __R) { - return (__m128d)__builtin_ia32_fixupimmsd_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_round_sd(__mmask8 __U, __m128d __A, __m128d __B, - __m128i __C, const int __imm, const int __R) { - return (__m128d)__builtin_ia32_fixupimmsd_maskz( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_round_ss(__m128 __A, __m128 __B, __m128i __C, const int __imm, - const int __R) { - return (__m128)__builtin_ia32_fixupimmss_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)-1, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_round_ss(__m128 __A, __mmask8 __U, __m128 __B, - __m128i __C, const int __imm, const int __R) { - return (__m128)__builtin_ia32_fixupimmss_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_round_ss(__mmask8 __U, __m128 __A, __m128 __B, - __m128i __C, const int __imm, const int __R) { - return (__m128)__builtin_ia32_fixupimmss_maskz( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U, __R); -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movehdup_ps(__m512 __A) { - return (__m512)__builtin_ia32_movshdup512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_movehdup_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movshdup512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_movehdup_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movshdup512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_moveldup_ps(__m512 __A) { - return (__m512)__builtin_ia32_movsldup512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_moveldup_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movsldup512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_moveldup_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movsldup512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_or_si512(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A | (__v16su)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_or_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A | (__v16su)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_or_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pord512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_or_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pord512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_or_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A | (__v8du)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_or_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_porq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_or_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_porq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_xor_si512(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A ^ (__v16su)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_xor_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A ^ (__v16su)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_xor_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pxord512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_xor_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pxord512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_xor_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A ^ (__v8du)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_xor_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pxorq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_xor_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pxorq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rol_epi32(__m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prold512_mask( - (__v16si)__A, __B, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rol_epi32(__m512i __W, __mmask16 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prold512_mask((__v16si)__A, __B, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rol_epi32(__mmask16 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prold512_mask( - (__v16si)__A, __B, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ror_epi32(__m512i __A, int __B) { - return (__m512i)__builtin_ia32_prord512_mask( - (__v16si)__A, __B, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ror_epi32(__m512i __W, __mmask16 __U, __m512i __A, int __B) { - return (__m512i)__builtin_ia32_prord512_mask((__v16si)__A, __B, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_ror_epi32(__mmask16 __U, __m512i __A, int __B) { - return (__m512i)__builtin_ia32_prord512_mask( - (__v16si)__A, __B, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rol_epi64(__m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prolq512_mask( - (__v8di)__A, __B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rol_epi64(__m512i __W, __mmask8 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prolq512_mask((__v8di)__A, __B, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rol_epi64(__mmask8 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prolq512_mask( - (__v8di)__A, __B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ror_epi64(__m512i __A, int __B) { - return (__m512i)__builtin_ia32_prorq512_mask( - (__v8di)__A, __B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ror_epi64(__m512i __W, __mmask8 __U, __m512i __A, int __B) { - return (__m512i)__builtin_ia32_prorq512_mask((__v8di)__A, __B, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_ror_epi64(__mmask8 __U, __m512i __A, int __B) { - return (__m512i)__builtin_ia32_prorq512_mask( - (__v8di)__A, __B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_and_si512(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A & (__v16su)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_and_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A & (__v16su)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_and_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_and_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_and_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A & (__v8du)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_and_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_and_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_pd(), __U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_andnot_si512(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_andnot_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_andnot_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_andnot_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_andnot_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_andnot_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_andnot_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_pd(), __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_test_epi32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ptestmd512((__v16si)__A, (__v16si)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_test_epi32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ptestmd512((__v16si)__A, (__v16si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_test_epi64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ptestmq512((__v8di)__A, (__v8di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_test_epi64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ptestmq512((__v8di)__A, (__v8di)__B, __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_testn_epi32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ptestnmd512((__v16si)__A, (__v16si)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_testn_epi32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ptestnmd512((__v16si)__A, (__v16si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_testn_epi64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ptestnmq512((__v8di)__A, (__v8di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_testn_epi64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ptestnmq512((__v8di)__A, (__v8di)__B, __U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_ps(__m512 __A) { - return (__m512)_mm512_and_epi32((__m512i)__A, _mm512_set1_epi32(0x7fffffff)); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)_mm512_mask_and_epi32((__m512i)__W, __U, (__m512i)__A, - _mm512_set1_epi32(0x7fffffff)); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_pd(__m512d __A) { - return (__m512d)_mm512_and_epi64((__m512i)__A, - _mm512_set1_epi64(0x7fffffffffffffffLL)); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)_mm512_mask_and_epi64( - (__m512i)__W, __U, (__m512i)__A, _mm512_set1_epi64(0x7fffffffffffffffLL)); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhdq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpackhi_epi32(__m512i __W, __mmask16 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpckhdq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhdq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhqdq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpackhi_epi64(__m512i __W, __mmask8 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpckhqdq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhqdq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckldq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpacklo_epi32(__m512i __W, __mmask16 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpckldq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckldq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklqdq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpacklo_epi64(__m512i __W, __mmask8 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpcklqdq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklqdq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_u64(__m128 __A, const int __R) { - return (unsigned long long)__builtin_ia32_vcvtss2usi64((__v4sf)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_si64(__m128 __A, const int __R) { - return (long long)__builtin_ia32_vcvtss2si64((__v4sf)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_i64(__m128 __A, const int __R) { - return (long long)__builtin_ia32_vcvtss2si64((__v4sf)__A, __R); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_u64(__m128 __A, const int __R) { - return (unsigned long long)__builtin_ia32_vcvttss2usi64((__v4sf)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_i64(__m128 __A, const int __R) { - return (long long)__builtin_ia32_vcvttss2si64((__v4sf)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_si64(__m128 __A, const int __R) { - return (long long)__builtin_ia32_vcvttss2si64((__v4sf)__A, __R); -} -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_u32(__m128 __A, const int __R) { - return (unsigned)__builtin_ia32_vcvtss2usi32((__v4sf)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_si32(__m128 __A, const int __R) { - return (int)__builtin_ia32_vcvtss2si32((__v4sf)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_i32(__m128 __A, const int __R) { - return (int)__builtin_ia32_vcvtss2si32((__v4sf)__A, __R); -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_u32(__m128 __A, const int __R) { - return (unsigned)__builtin_ia32_vcvttss2usi32((__v4sf)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_i32(__m128 __A, const int __R) { - return (int)__builtin_ia32_vcvttss2si32((__v4sf)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_si32(__m128 __A, const int __R) { - return (int)__builtin_ia32_vcvttss2si32((__v4sf)__A, __R); -} -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_u64(__m128d __A, const int __R) { - return (unsigned long long)__builtin_ia32_vcvtsd2usi64((__v2df)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_si64(__m128d __A, const int __R) { - return (long long)__builtin_ia32_vcvtsd2si64((__v2df)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_i64(__m128d __A, const int __R) { - return (long long)__builtin_ia32_vcvtsd2si64((__v2df)__A, __R); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_u64(__m128d __A, const int __R) { - return (unsigned long long)__builtin_ia32_vcvttsd2usi64((__v2df)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_si64(__m128d __A, const int __R) { - return (long long)__builtin_ia32_vcvttsd2si64((__v2df)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_i64(__m128d __A, const int __R) { - return (long long)__builtin_ia32_vcvttsd2si64((__v2df)__A, __R); -} -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_u32(__m128d __A, const int __R) { - return (unsigned)__builtin_ia32_vcvtsd2usi32((__v2df)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_si32(__m128d __A, const int __R) { - return (int)__builtin_ia32_vcvtsd2si32((__v2df)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_i32(__m128d __A, const int __R) { - return (int)__builtin_ia32_vcvtsd2si32((__v2df)__A, __R); -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_u32(__m128d __A, const int __R) { - return (unsigned)__builtin_ia32_vcvttsd2usi32((__v2df)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_i32(__m128d __A, const int __R) { - return (int)__builtin_ia32_vcvttsd2si32((__v2df)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_si32(__m128d __A, const int __R) { - return (int)__builtin_ia32_vcvttsd2si32((__v2df)__A, __R); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movedup_pd(__m512d __A) { - return (__m512d)__builtin_ia32_movddup512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_movedup_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_movddup512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_movedup_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_movddup512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpcklpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_unpacklo_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpcklpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpcklpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpckhpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_unpackhi_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpckhpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpckhpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpckhps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpackhi_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpckhps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpckhps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_pd(__m256 __A, const int __R) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask( - (__v8sf)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_pd(__m512d __W, __mmask8 __U, __m256 __A, - const int __R) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask((__v8sf)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_pd(__mmask8 __U, __m256 __A, const int __R) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask( - (__v8sf)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundph_ps(__m256i __A, const int __R) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask( - (__v16hi)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundph_ps(__m512 __W, __mmask16 __U, __m256i __A, - const int __R) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask((__v16hi)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundph_ps(__mmask16 __U, __m256i __A, const int __R) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask( - (__v16hi)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_ph(__m512 __A, const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)_mm256_undefined_si256(), -1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_ph(__m512 __A, const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)_mm256_undefined_si256(), -1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_ph(__m256i __U, __mmask16 __W, __m512 __A, - const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)__U, (__mmask16)__W); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_cvtps_ph(__m256i __U, __mmask16 __W, __m512 __A, const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)__U, (__mmask16)__W); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_ph(__mmask16 __W, __m512 __A, const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)_mm256_setzero_si256(), (__mmask16)__W); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_ph(__mmask16 __W, __m512 __A, const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)_mm256_setzero_si256(), (__mmask16)__W); -} -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundpd_ps(__m512d __A, const int __R) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask( - (__v8df)__A, (__v8sf)_mm256_undefined_ps(), (__mmask8)-1, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundpd_ps(__m256 __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask((__v8df)__A, (__v8sf)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundpd_ps(__mmask8 __U, __m512d __A, const int __R) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask( - (__v8df)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_ss(__m128 __A, __m128d __B, const int __R) { - return (__m128)__builtin_ia32_cvtsd2ss_round((__v4sf)__A, (__v2df)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvt_roundsd_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128d __B, - const int __R) { - return (__m128)__builtin_ia32_cvtsd2ss_mask_round((__v4sf)__A, (__v2df)__B, - (__v4sf)__W, __U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_cvt_roundsd_ss(__mmask8 __U, __m128 __A, __m128d __B, const int __R) { - return (__m128)__builtin_ia32_cvtsd2ss_mask_round((__v4sf)__A, (__v2df)__B, - _mm_setzero_ps(), __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_sd(__m128d __A, __m128 __B, const int __R) { - return (__m128d)__builtin_ia32_cvtss2sd_round((__v2df)__A, (__v4sf)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvt_roundss_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128 __B, - const int __R) { - return (__m128d)__builtin_ia32_cvtss2sd_mask_round((__v2df)__A, (__v4sf)__B, - (__v2df)__W, __U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_cvt_roundss_sd(__mmask8 __U, __m128d __A, __m128 __B, const int __R) { - return (__m128d)__builtin_ia32_cvtss2sd_mask_round( - (__v2df)__A, (__v4sf)__B, _mm_setzero_pd(), __U, __R); -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_stream_si512(__m512i *__P, __m512i __A) { - __builtin_ia32_movntdq512((__v8di *)__P, (__v8di)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_stream_ps(float *__P, __m512 __A) { - __builtin_ia32_movntps512(__P, (__v16sf)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_stream_pd(double *__P, __m512d __A) { - __builtin_ia32_movntpd512(__P, (__v8df)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_stream_load_si512(void *__P) { - return __builtin_ia32_movntdqa512((__v8di *)__P); -} - -typedef enum { - _MM_MANT_NORM_1_2, - _MM_MANT_NORM_p5_2, - _MM_MANT_NORM_p5_1, - _MM_MANT_NORM_p75_1p5 -} _MM_MANTISSA_NORM_ENUM; - -typedef enum { - _MM_MANT_SIGN_src, - _MM_MANT_SIGN_zero, - _MM_MANT_SIGN_nan -} _MM_MANTISSA_SIGN_ENUM; - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_getexpss128_round((__v4sf)__A, (__v4sf)__B, - __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_getexpss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_getexp_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_getexpss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_getexpsd128_round((__v2df)__A, (__v2df)__B, - __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_getexpsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getexp_round_sd(__mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_getexpsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getexp_round_ps(__m512 __A, const int __R) { - return (__m512)__builtin_ia32_getexpps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getexp_round_ps(__m512 __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512)__builtin_ia32_getexpps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getexp_round_ps(__mmask16 __U, __m512 __A, const int __R) { - return (__m512)__builtin_ia32_getexpps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getexp_round_pd(__m512d __A, const int __R) { - return (__m512d)__builtin_ia32_getexppd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getexp_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512d)__builtin_ia32_getexppd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getexp_round_pd(__mmask8 __U, __m512d __A, const int __R) { - return (__m512d)__builtin_ia32_getexppd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getmant_round_pd(__m512d __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, _mm512_undefined_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getmant_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, (__v8df)__W, __U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getmant_round_pd(__mmask8 __U, __m512d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, (__v8df)_mm512_setzero_pd(), __U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getmant_round_ps(__m512 __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, _mm512_undefined_ps(), (__mmask16)-1, - __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getmant_round_ps(__m512 __W, __mmask16 __U, __m512 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, (__v16sf)__W, __U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getmant_round_ps(__mmask16 __U, __m512 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, (__v16sf)_mm512_setzero_ps(), __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_round_sd(__m128d __A, __m128d __B, _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128d)__builtin_ia32_getmantsd_round((__v2df)__A, (__v2df)__B, - (__D << 2) | __C, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128d)__builtin_ia32_getmantsd_mask_round( - (__v2df)__A, (__v2df)__B, (__D << 2) | __C, (__v2df)__W, __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_round_sd(__mmask8 __U, __m128d __A, __m128d __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128d)__builtin_ia32_getmantsd_mask_round( - (__v2df)__A, (__v2df)__B, (__D << 2) | __C, (__v2df)_mm_setzero_pd(), __U, - __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_round_ss(__m128 __A, __m128 __B, _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128)__builtin_ia32_getmantss_round((__v4sf)__A, (__v4sf)__B, - (__D << 2) | __C, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128)__builtin_ia32_getmantss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__D << 2) | __C, (__v4sf)__W, __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_round_ss(__mmask8 __U, __m128 __A, __m128 __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128)__builtin_ia32_getmantss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__D << 2) | __C, (__v4sf)_mm_setzero_ps(), __U, - __R); -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_roundscale_round_ps(__m512 __A, const int __imm, const int __R) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__A, __imm, (__v16sf)_mm512_undefined_ps(), -1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_roundscale_round_ps(__m512 __A, __mmask16 __B, __m512 __C, - const int __imm, const int __R) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__C, __imm, (__v16sf)__A, (__mmask16)__B, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_roundscale_round_ps(__mmask16 __A, __m512 __B, const int __imm, - const int __R) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__B, __imm, (__v16sf)_mm512_setzero_ps(), (__mmask16)__A, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_roundscale_round_pd(__m512d __A, const int __imm, const int __R) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__A, __imm, (__v8df)_mm512_undefined_pd(), -1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_roundscale_round_pd(__m512d __A, __mmask8 __B, __m512d __C, - const int __imm, const int __R) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__C, __imm, (__v8df)__A, (__mmask8)__B, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_roundscale_round_pd(__mmask8 __A, __m512d __B, const int __imm, - const int __R) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__B, __imm, (__v8df)_mm512_setzero_pd(), (__mmask8)__A, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_round_ss(__m128 __A, __m128 __B, const int __imm, - const int __R) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__A, (__v4sf)__B, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, - __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_roundscale_round_ss(__m128 __A, __mmask8 __B, __m128 __C, - __m128 __D, const int __imm, const int __R) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__C, (__v4sf)__D, __imm, (__v4sf)__A, (__mmask8)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_roundscale_round_ss(__mmask8 __A, __m128 __B, __m128 __C, - const int __imm, const int __R) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__B, (__v4sf)__C, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__A, - __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_round_sd(__m128d __A, __m128d __B, const int __imm, - const int __R) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__A, (__v2df)__B, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)-1, - __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_roundscale_round_sd(__m128d __A, __mmask8 __B, __m128d __C, - __m128d __D, const int __imm, const int __R) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__C, (__v2df)__D, __imm, (__v2df)__A, (__mmask8)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_roundscale_round_sd(__mmask8 __A, __m128d __B, __m128d __C, - const int __imm, const int __R) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__B, (__v2df)__C, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__A, - __R); -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_floor_ps(__m512 __A) { - return (__m512)__builtin_ia32_rndscaleps_mask((__v16sf)__A, (0x01 | 0x00), - (__v16sf)__A, -1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_floor_pd(__m512d __A) { - return (__m512d)__builtin_ia32_rndscalepd_mask((__v8df)__A, (0x01 | 0x00), - (__v8df)__A, -1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ceil_ps(__m512 __A) { - return (__m512)__builtin_ia32_rndscaleps_mask((__v16sf)__A, (0x02 | 0x00), - (__v16sf)__A, -1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ceil_pd(__m512d __A) { - return (__m512d)__builtin_ia32_rndscalepd_mask((__v8df)__A, (0x02 | 0x00), - (__v8df)__A, -1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_floor_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rndscaleps_mask((__v16sf)__A, (0x01 | 0x00), - (__v16sf)__W, __U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_floor_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rndscalepd_mask((__v8df)__A, (0x01 | 0x00), - (__v8df)__W, __U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ceil_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rndscaleps_mask((__v16sf)__A, (0x02 | 0x00), - (__v16sf)__W, __U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ceil_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rndscalepd_mask((__v8df)__A, (0x02 | 0x00), - (__v8df)__W, __U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_alignr_epi32(__m512i __A, __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_alignd512_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_alignr_epi32(__m512i __W, __mmask16 __U, __m512i __A, - __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_alignd512_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_alignr_epi32(__mmask16 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_alignd512_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_alignr_epi64(__m512i __A, __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_alignq512_mask( - (__v8di)__A, (__v8di)__B, __imm, (__v8di)_mm512_undefined_epi32(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_alignr_epi64(__m512i __W, __mmask8 __U, __m512i __A, - __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_alignq512_mask((__v8di)__A, (__v8di)__B, __imm, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_alignr_epi64(__mmask8 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_alignq512_mask((__v8di)__A, (__v8di)__B, __imm, - (__v8di)_mm512_setzero_si512(), - (__mmask8)__U); -} -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epi32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_pcmpeqd512_mask((__v16si)__A, (__v16si)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epi32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_pcmpeqd512_mask((__v16si)__A, (__v16si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epi64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq512_mask((__v8di)__A, (__v8di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epi64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq512_mask((__v8di)__A, (__v8di)__B, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epi32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_pcmpgtd512_mask((__v16si)__A, (__v16si)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epi32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_pcmpgtd512_mask((__v16si)__A, (__v16si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epi64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq512_mask((__v8di)__A, (__v8di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epi64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq512_mask((__v8di)__A, (__v8di)__B, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epi32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epi32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epu32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epu32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epi64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epi64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epu64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epu64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epi32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 2, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epi32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 2, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epu32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 2, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epu32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 2, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epi64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epi64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epu64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epu64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epi32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epi32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epu32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epu32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epi64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epi64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epu64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epu64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epi32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epi32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epu32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epu32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epi64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epi64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epu64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epu64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 4, - (__mmask8)-1); -} -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftli_mask16(__mmask16 __A, unsigned int __B) { - return (__mmask16)__builtin_ia32_kshiftlihi((__mmask16)__A, (__mmask8)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftri_mask16(__mmask16 __A, unsigned int __B) { - return (__mmask16)__builtin_ia32_kshiftrihi((__mmask16)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epi64_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epi32_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, __P, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epu64_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epu32_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, - __P, (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_round_pd_mask(__m512d __X, __m512d __Y, const int __P, - const int __R) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, __P, - (__mmask8)-1, __R); -} - -extern __inline __mmask16 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_cmp_round_ps_mask(__m512 __X, __m512 __Y, const int __P, const int __R) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - __P, (__mmask16)-1, __R); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epi64_mask(__mmask8 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epi32_mask(__mmask16 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, __P, - (__mmask16)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epu64_mask(__mmask8 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epu32_mask(__mmask16 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, - __P, (__mmask16)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_round_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y, - const int __P, const int __R) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, __P, - (__mmask8)__U, __R); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_round_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y, - const int __P, const int __R) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - __P, (__mmask16)__U, __R); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_cmp_round_sd_mask(__m128d __X, __m128d __Y, const int __P, const int __R) { - return (__mmask8)__builtin_ia32_cmpsd_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)-1, __R); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmp_round_sd_mask(__mmask8 __M, __m128d __X, __m128d __Y, - const int __P, const int __R) { - return (__mmask8)__builtin_ia32_cmpsd_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)__M, __R); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_cmp_round_ss_mask(__m128 __X, __m128 __Y, const int __P, const int __R) { - return (__mmask8)__builtin_ia32_cmpss_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)-1, __R); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmp_round_ss_mask(__mmask8 __M, __m128 __X, __m128 __Y, - const int __P, const int __R) { - return (__mmask8)__builtin_ia32_cmpss_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)__M, __R); -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32gather_ps(__m512i __index, void const *__addr, int __scale) { - __m512 __v1_old = _mm512_undefined_ps(); - __mmask16 __mask = 0xFFFF; - - return (__m512)__builtin_ia32_gathersiv16sf( - (__v16sf)__v1_old, __addr, (__v16si)__index, __mask, __scale); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32gather_ps(__m512 __v1_old, __mmask16 __mask, __m512i __index, - void const *__addr, int __scale) { - return (__m512)__builtin_ia32_gathersiv16sf( - (__v16sf)__v1_old, __addr, (__v16si)__index, __mask, __scale); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32gather_pd(__m256i __index, void const *__addr, int __scale) { - __m512d __v1_old = _mm512_undefined_pd(); - __mmask8 __mask = 0xFF; - - return (__m512d)__builtin_ia32_gathersiv8df((__v8df)__v1_old, __addr, - (__v8si)__index, __mask, __scale); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32gather_pd(__m512d __v1_old, __mmask8 __mask, __m256i __index, - void const *__addr, int __scale) { - return (__m512d)__builtin_ia32_gathersiv8df((__v8df)__v1_old, __addr, - (__v8si)__index, __mask, __scale); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64gather_ps(__m512i __index, void const *__addr, int __scale) { - __m256 __v1_old = _mm256_undefined_ps(); - __mmask8 __mask = 0xFF; - - return (__m256)__builtin_ia32_gatherdiv16sf((__v8sf)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64gather_ps(__m256 __v1_old, __mmask8 __mask, __m512i __index, - void const *__addr, int __scale) { - return (__m256)__builtin_ia32_gatherdiv16sf((__v8sf)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64gather_pd(__m512i __index, void const *__addr, int __scale) { - __m512d __v1_old = _mm512_undefined_pd(); - __mmask8 __mask = 0xFF; - - return (__m512d)__builtin_ia32_gatherdiv8df((__v8df)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64gather_pd(__m512d __v1_old, __mmask8 __mask, __m512i __index, - void const *__addr, int __scale) { - return (__m512d)__builtin_ia32_gatherdiv8df((__v8df)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32gather_epi32(__m512i __index, void const *__addr, int __scale) { - __m512i __v1_old = _mm512_undefined_epi32(); - __mmask16 __mask = 0xFFFF; - - return (__m512i)__builtin_ia32_gathersiv16si( - (__v16si)__v1_old, __addr, (__v16si)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32gather_epi32(__m512i __v1_old, __mmask16 __mask, - __m512i __index, void const *__addr, - int __scale) { - return (__m512i)__builtin_ia32_gathersiv16si( - (__v16si)__v1_old, __addr, (__v16si)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32gather_epi64(__m256i __index, void const *__addr, int __scale) { - __m512i __v1_old = _mm512_undefined_epi32(); - __mmask8 __mask = 0xFF; - - return (__m512i)__builtin_ia32_gathersiv8di((__v8di)__v1_old, __addr, - (__v8si)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32gather_epi64(__m512i __v1_old, __mmask8 __mask, - __m256i __index, void const *__addr, - int __scale) { - return (__m512i)__builtin_ia32_gathersiv8di((__v8di)__v1_old, __addr, - (__v8si)__index, __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64gather_epi32(__m512i __index, void const *__addr, int __scale) { - __m256i __v1_old = _mm256_undefined_si256(); - __mmask8 __mask = 0xFF; - - return (__m256i)__builtin_ia32_gatherdiv16si( - (__v8si)__v1_old, __addr, (__v8di)__index, __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64gather_epi32(__m256i __v1_old, __mmask8 __mask, - __m512i __index, void const *__addr, - int __scale) { - return (__m256i)__builtin_ia32_gatherdiv16si( - (__v8si)__v1_old, __addr, (__v8di)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64gather_epi64(__m512i __index, void const *__addr, int __scale) { - __m512i __v1_old = _mm512_undefined_epi32(); - __mmask8 __mask = 0xFF; - - return (__m512i)__builtin_ia32_gatherdiv8di((__v8di)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64gather_epi64(__m512i __v1_old, __mmask8 __mask, - __m512i __index, void const *__addr, - int __scale) { - return (__m512i)__builtin_ia32_gatherdiv8di((__v8di)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_i32scatter_ps(void *__addr, __m512i __index, __m512 __v1, int __scale) { - __builtin_ia32_scattersiv16sf(__addr, (__mmask16)0xFFFF, (__v16si)__index, - (__v16sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32scatter_ps(void *__addr, __mmask16 __mask, __m512i __index, - __m512 __v1, int __scale) { - __builtin_ia32_scattersiv16sf(__addr, __mask, (__v16si)__index, (__v16sf)__v1, - __scale); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_i32scatter_pd(void *__addr, __m256i __index, __m512d __v1, int __scale) { - __builtin_ia32_scattersiv8df(__addr, (__mmask8)0xFF, (__v8si)__index, - (__v8df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32scatter_pd(void *__addr, __mmask8 __mask, __m256i __index, - __m512d __v1, int __scale) { - __builtin_ia32_scattersiv8df(__addr, __mask, (__v8si)__index, (__v8df)__v1, - __scale); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_i64scatter_ps(void *__addr, __m512i __index, __m256 __v1, int __scale) { - __builtin_ia32_scatterdiv16sf(__addr, (__mmask8)0xFF, (__v8di)__index, - (__v8sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64scatter_ps(void *__addr, __mmask8 __mask, __m512i __index, - __m256 __v1, int __scale) { - __builtin_ia32_scatterdiv16sf(__addr, __mask, (__v8di)__index, (__v8sf)__v1, - __scale); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_i64scatter_pd(void *__addr, __m512i __index, __m512d __v1, int __scale) { - __builtin_ia32_scatterdiv8df(__addr, (__mmask8)0xFF, (__v8di)__index, - (__v8df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64scatter_pd(void *__addr, __mmask8 __mask, __m512i __index, - __m512d __v1, int __scale) { - __builtin_ia32_scatterdiv8df(__addr, __mask, (__v8di)__index, (__v8df)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32scatter_epi32(void *__addr, __m512i __index, __m512i __v1, - int __scale) { - __builtin_ia32_scattersiv16si(__addr, (__mmask16)0xFFFF, (__v16si)__index, - (__v16si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32scatter_epi32(void *__addr, __mmask16 __mask, - __m512i __index, __m512i __v1, int __scale) { - __builtin_ia32_scattersiv16si(__addr, __mask, (__v16si)__index, (__v16si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32scatter_epi64(void *__addr, __m256i __index, __m512i __v1, - int __scale) { - __builtin_ia32_scattersiv8di(__addr, (__mmask8)0xFF, (__v8si)__index, - (__v8di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32scatter_epi64(void *__addr, __mmask8 __mask, __m256i __index, - __m512i __v1, int __scale) { - __builtin_ia32_scattersiv8di(__addr, __mask, (__v8si)__index, (__v8di)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64scatter_epi32(void *__addr, __m512i __index, __m256i __v1, - int __scale) { - __builtin_ia32_scatterdiv16si(__addr, (__mmask8)0xFF, (__v8di)__index, - (__v8si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64scatter_epi32(void *__addr, __mmask8 __mask, __m512i __index, - __m256i __v1, int __scale) { - __builtin_ia32_scatterdiv16si(__addr, __mask, (__v8di)__index, (__v8si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64scatter_epi64(void *__addr, __m512i __index, __m512i __v1, - int __scale) { - __builtin_ia32_scatterdiv8di(__addr, (__mmask8)0xFF, (__v8di)__index, - (__v8di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64scatter_epi64(void *__addr, __mmask8 __mask, __m512i __index, - __m512i __v1, int __scale) { - __builtin_ia32_scatterdiv8di(__addr, __mask, (__v8di)__index, (__v8di)__v1, - __scale); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_compressdf512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_compressdf512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_pd(void *__P, __mmask8 __U, __m512d __A) { - __builtin_ia32_compressstoredf512_mask((__v8df *)__P, (__v8df)__A, - (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_compresssf512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_compresssf512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_ps(void *__P, __mmask16 __U, __m512 __A) { - __builtin_ia32_compressstoresf512_mask((__v16sf *)__P, (__v16sf)__A, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_compressdi512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_compressdi512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_epi64(void *__P, __mmask8 __U, __m512i __A) { - __builtin_ia32_compressstoredi512_mask((__v8di *)__P, (__v8di)__A, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_compresssi512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_compresssi512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_epi32(void *__P, __mmask16 __U, __m512i __A) { - __builtin_ia32_compressstoresi512_mask((__v16si *)__P, (__v16si)__A, - (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_expanddf512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_expanddf512_maskz( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_pd(__m512d __W, __mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_expandloaddf512_mask( - (const __v8df *)__P, (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_pd(__mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_expandloaddf512_maskz( - (const __v8df *)__P, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_expandsf512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_expandsf512_maskz( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_ps(__m512 __W, __mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_expandloadsf512_mask( - (const __v16sf *)__P, (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_ps(__mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_expandloadsf512_maskz( - (const __v16sf *)__P, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_expanddi512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_expanddi512_maskz( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_epi64(__m512i __W, __mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_expandloaddi512_mask( - (const __v8di *)__P, (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_epi64(__mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_expandloaddi512_maskz( - (const __v8di *)__P, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_expandsi512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_expandsi512_maskz( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_epi32(__m512i __W, __mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_expandloadsi512_mask( - (const __v16si *)__P, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_epi32(__mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_expandloadsi512_maskz( - (const __v16si *)__P, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortest_mask16_u8(__mmask16 __A, __mmask16 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_kortestchi(__A, __B); - return (unsigned char)__builtin_ia32_kortestzhi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestz_mask16_u8(__mmask16 __A, __mmask16 __B) { - return (unsigned char)__builtin_ia32_kortestzhi((__mmask16)__A, - (__mmask16)__B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestc_mask16_u8(__mmask16 __A, __mmask16 __B) { - return (unsigned char)__builtin_ia32_kortestchi((__mmask16)__A, - (__mmask16)__B); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtmask16_u32(__mmask16 __A) { - return (unsigned int)__builtin_ia32_kmovw((__mmask16)__A); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtu32_mask16(unsigned int __A) { - return (__mmask16)__builtin_ia32_kmovw((__mmask16)__A); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _load_mask16(__mmask16 *__A) { - return (__mmask16)__builtin_ia32_kmovw(*(__mmask16 *)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _store_mask16(__mmask16 *__A, __mmask16 __B) { - *(__mmask16 *)__A = __builtin_ia32_kmovw(__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kand(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kandhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kandn(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kandnhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kor(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_korhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kortestz(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kortestzhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kortestc(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kortestchi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kxnor(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kxnorhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kxor(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kxorhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_knot(__mmask16 __A) { - return (__mmask16)__builtin_ia32_knothi((__mmask16)__A); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kunpackb(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kunpckhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kunpackb_mask16(__mmask8 __A, __mmask8 __B) { - return (__mmask16)__builtin_ia32_kunpckhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_inserti32x4(__mmask16 __B, __m512i __C, __m128i __D, - const int __imm) { - return (__m512i)__builtin_ia32_inserti32x4_mask( - (__v16si)__C, (__v4si)__D, __imm, (__v16si)_mm512_setzero_si512(), __B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_insertf32x4(__mmask16 __B, __m512 __C, __m128 __D, - const int __imm) { - return (__m512)__builtin_ia32_insertf32x4_mask( - (__v16sf)__C, (__v4sf)__D, __imm, (__v16sf)_mm512_setzero_ps(), __B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_inserti32x4(__m512i __A, __mmask16 __B, __m512i __C, - __m128i __D, const int __imm) { - return (__m512i)__builtin_ia32_inserti32x4_mask((__v16si)__C, (__v4si)__D, - __imm, (__v16si)__A, __B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_insertf32x4(__m512 __A, __mmask16 __B, __m512 __C, __m128 __D, - const int __imm) { - return (__m512)__builtin_ia32_insertf32x4_mask((__v16sf)__C, (__v4sf)__D, - __imm, (__v16sf)__A, __B); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epi64(__mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_epi64(__m512i __W, __mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_epi64(__m512i __W, __mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epi64(__mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epu64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epu64(__mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_epu64(__m512i __W, __mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epu64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_epu64(__m512i __W, __mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epu64(__mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epi32(__mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_max_epi32(__m512i __W, __mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epi32(__mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_min_epi32(__m512i __W, __mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epu32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxud512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epu32(__mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxud512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_max_epu32(__m512i __W, __mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxud512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epu32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminud512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epu32(__mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminud512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_min_epu32(__m512i __W, __mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminud512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpcklps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpacklo_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpcklps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpcklps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_maxsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_maxsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_max_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_maxsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_maxss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_maxss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_max_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_maxss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_minsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_minsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_min_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_minsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_minss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_minss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_min_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_minss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_pd(__mmask8 __U, __m512d __A, __m512d __W) { - return (__m512d)__builtin_ia32_blendmpd_512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_ps(__mmask16 __U, __m512 __A, __m512 __W) { - return (__m512)__builtin_ia32_blendmps_512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_epi64(__mmask8 __U, __m512i __A, __m512i __W) { - return (__m512i)__builtin_ia32_blendmq_512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_epi32(__mmask16 __U, __m512i __A, __m512i __W) { - return (__m512i)__builtin_ia32_blendmd_512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_round_sd(__m128d __W, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_round((__v2df)__W, (__v2df)__A, - (__v2df)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_round_ss(__m128 __W, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_round((__v4sf)__W, (__v4sf)__A, - (__v4sf)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_round_sd(__m128d __W, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_round((__v2df)__W, (__v2df)__A, - -(__v2df)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_round_ss(__m128 __W, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_round((__v4sf)__W, (__v4sf)__A, - -(__v4sf)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_round_sd(__m128d __W, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_round((__v2df)__W, -(__v2df)__A, - (__v2df)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_round_ss(__m128 __W, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_round((__v4sf)__W, -(__v4sf)__A, - (__v4sf)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_round_sd(__m128d __W, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_round((__v2df)__W, -(__v2df)__A, - -(__v2df)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_round_ss(__m128 __W, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_round((__v4sf)__W, -(__v4sf)__A, - -(__v4sf)__B, __R); -} -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_sd(__m128d __W, __m128d __A, __m128d __B, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask3( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmaddss3_mask3( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_sd(__mmask8 __U, __m128d __W, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, (__v2df)__A, -(__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, (__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_sd(__m128d __W, __m128d __A, __m128d __B, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmsubsd3_mask3( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmsubss3_mask3( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_sd(__mmask8 __U, __m128d __W, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, (__v2df)__A, -(__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, (__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_sd(__m128d __W, __m128d __A, __m128d __B, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask3( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmaddss3_mask3( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_sd(__mmask8 __U, __m128d __W, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, -(__v2df)__A, -(__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, -(__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_sd(__m128d __W, __m128d __A, __m128d __B, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmsubsd3_mask3( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmsubss3_mask3( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_sd(__mmask8 __U, __m128d __W, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, -(__v2df)__A, -(__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, -(__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask((__v4sf)__W, (__v4sf)__A, - (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_round_sd(__m128d __W, __m128d __A, __m128d __B, - __mmask8 __U, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask3( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_round_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask3( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_round_sd(__mmask8 __U, __m128d __W, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_round_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, (__v2df)__A, -(__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, (__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_round_sd(__m128d __W, __m128d __A, __m128d __B, - __mmask8 __U, const int __R) { - return (__m128d)__builtin_ia32_vfmsubsd3_mask3( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_round_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U, - const int __R) { - return (__m128)__builtin_ia32_vfmsubss3_mask3( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_round_sd(__mmask8 __U, __m128d __W, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, (__v2df)__A, -(__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_round_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, (__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask((__v4sf)__W, -(__v4sf)__A, - (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_round_sd(__m128d __W, __m128d __A, __m128d __B, - __mmask8 __U, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask3( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_round_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask3( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_round_sd(__mmask8 __U, __m128d __W, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_round_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, -(__v2df)__A, -(__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, -(__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_round_sd(__m128d __W, __m128d __A, __m128d __B, - __mmask8 __U, const int __R) { - return (__m128d)__builtin_ia32_vfmsubsd3_mask3( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_round_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U, - const int __R) { - return (__m128)__builtin_ia32_vfmsubss3_mask3( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_round_sd(__mmask8 __U, __m128d __W, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, -(__v2df)__A, -(__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_round_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, -(__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, __R); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comi_round_ss(__m128 __A, __m128 __B, const int __P, const int __R) { - return __builtin_ia32_vcomiss((__v4sf)__A, (__v4sf)__B, __P, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comi_round_sd(__m128d __A, __m128d __B, const int __P, const int __R) { - return __builtin_ia32_vcomisd((__v2df)__A, (__v2df)__B, __P, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sqrt_pd(__m512d __A) { - return (__m512d)__builtin_ia32_sqrtpd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sqrt_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_sqrtpd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sqrt_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_sqrtpd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sqrt_ps(__m512 __A) { - return (__m512)__builtin_ia32_sqrtps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sqrt_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_sqrtps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sqrt_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_sqrtps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_pd(__m512d __A, __m512d __B) { - return (__m512d)((__v8df)__A + (__v8df)__B); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_addpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_addpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_ps(__m512 __A, __m512 __B) { - return (__m512)((__v16sf)__A + (__v16sf)__B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_addps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_addps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_addsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_addsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_addss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_addss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_pd(__m512d __A, __m512d __B) { - return (__m512d)((__v8df)__A - (__v8df)__B); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_subpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_subpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_ps(__m512 __A, __m512 __B) { - return (__m512)((__v16sf)__A - (__v16sf)__B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_subps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_subps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_subsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_subsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_subss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_subss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_pd(__m512d __A, __m512d __B) { - return (__m512d)((__v8df)__A * (__v8df)__B); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_mulpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_mulpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_ps(__m512 __A, __m512 __B) { - return (__m512)((__v16sf)__A * (__v16sf)__B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_mulps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_mulps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_mulsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_mulsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_mulss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_mulss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_div_pd(__m512d __M, __m512d __V) { - return (__m512d)((__v8df)__M / (__v8df)__V); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_div_pd(__m512d __W, __mmask8 __U, __m512d __M, __m512d __V) { - return (__m512d)__builtin_ia32_divpd512_mask( - (__v8df)__M, (__v8df)__V, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_div_pd(__mmask8 __U, __m512d __M, __m512d __V) { - return (__m512d)__builtin_ia32_divpd512_mask((__v8df)__M, (__v8df)__V, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_div_ps(__m512 __A, __m512 __B) { - return (__m512)((__v16sf)__A / (__v16sf)__B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_div_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_divps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_div_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_divps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_divsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_div_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_divsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_divss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_div_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_divss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_maxpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_maxpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_maxpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_maxps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_maxps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_maxps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_minpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_minpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_minpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_minps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_minps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_minps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_scalef_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_scalefpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_scalef_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_scalefpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_scalef_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_scalefpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_scalef_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_scalefps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_scalef_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_scalefps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_scalef_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_scalefps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_scalefsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_scalefss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmadd_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmadd_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmadd_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmadd_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmadd_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmadd_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmadd_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfmaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmadd_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmsub_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsub_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsub_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsub_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmsub_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsub_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsub_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfmsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsub_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmaddsub_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_fmaddsub_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fmaddsub_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fmaddsub_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmaddsub_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmaddsub_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fmaddsub_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fmaddsub_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmsubadd_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_fmsubadd_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fmsubadd_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfmsubaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fmsubadd_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_maskz( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmsubadd_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsubadd_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fmsubadd_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfmsubaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fmsubadd_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmadd_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmadd_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fnmadd_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fnmadd_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmaddpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmadd_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmadd_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmadd_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfnmaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmadd_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmaddps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmsub_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmsub_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fnmsub_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fnmsub_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmsub_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmsub_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmsub_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfnmsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmsub_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttpd_epi32(__m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttpd_epi32(__m256i __W, __mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttpd_epi32(__mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttpd_epu32(__m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttpd_epu32(__m256i __W, __mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttpd_epu32(__mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtpd_epi32(__m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtpd_epi32(__m256i __W, __mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtpd_epi32(__mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtpd_epu32(__m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtpd_epu32(__m256i __W, __mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtpd_epu32(__mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttps_epi32(__m512 __A) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttps_epi32(__m512i __W, __mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttps_epi32(__mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttps_epu32(__m512 __A) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttps_epu32(__m512i __W, __mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttps_epu32(__mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_epi32(__m512 __A) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtps_epi32(__m512i __W, __mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_epi32(__mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_epu32(__m512 __A) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtps_epu32(__m512i __W, __mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_epu32(__mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, 0x04); -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsd_f64(__m512d __A) { - return __A[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtss_f32(__m512 __A) { - return __A[0]; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtu64_ss(__m128 __A, unsigned long long __B) { - return (__m128)__builtin_ia32_cvtusi2ss64((__v4sf)__A, __B, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtu64_sd(__m128d __A, unsigned long long __B) { - return (__m128d)__builtin_ia32_cvtusi2sd64((__v2df)__A, __B, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtu32_ss(__m128 __A, unsigned __B) { - return (__m128)__builtin_ia32_cvtusi2ss32((__v4sf)__A, __B, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi32_ps(__m512i __A) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_ps(__m512 __W, __mmask16 __U, __m512i __A) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask((__v16si)__A, (__v16sf)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi32_ps(__mmask16 __U, __m512i __A) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu32_ps(__m512i __A) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu32_ps(__m512 __W, __mmask16 __U, __m512i __A) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask((__v16si)__A, (__v16sf)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu32_ps(__mmask16 __U, __m512i __A) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fixupimm_pd(__m512d __A, __m512d __B, __m512i __C, const int __imm) { - return (__m512d)__builtin_ia32_fixupimmpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fixupimm_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512i __C, - const int __imm) { - return (__m512d)__builtin_ia32_fixupimmpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fixupimm_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512i __C, const int __imm) { - return (__m512d)__builtin_ia32_fixupimmpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fixupimm_ps(__m512 __A, __m512 __B, __m512i __C, const int __imm) { - return (__m512)__builtin_ia32_fixupimmps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fixupimm_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512i __C, - const int __imm) { - return (__m512)__builtin_ia32_fixupimmps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fixupimm_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512i __C, - const int __imm) { - return (__m512)__builtin_ia32_fixupimmps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_sd(__m128d __A, __m128d __B, __m128i __C, const int __imm) { - return (__m128d)__builtin_ia32_fixupimmsd_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)-1, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_sd(__m128d __A, __mmask8 __U, __m128d __B, __m128i __C, - const int __imm) { - return (__m128d)__builtin_ia32_fixupimmsd_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_sd(__mmask8 __U, __m128d __A, __m128d __B, __m128i __C, - const int __imm) { - return (__m128d)__builtin_ia32_fixupimmsd_maskz( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_ss(__m128 __A, __m128 __B, __m128i __C, const int __imm) { - return (__m128)__builtin_ia32_fixupimmss_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)-1, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_ss(__m128 __A, __mmask8 __U, __m128 __B, __m128i __C, - const int __imm) { - return (__m128)__builtin_ia32_fixupimmss_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_ss(__mmask8 __U, __m128 __A, __m128 __B, __m128i __C, - const int __imm) { - return (__m128)__builtin_ia32_fixupimmss_maskz( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U, 0x04); -} -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_u64(__m128 __A) { - return (unsigned long long)__builtin_ia32_vcvtss2usi64((__v4sf)__A, 0x04); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_u64(__m128 __A) { - return (unsigned long long)__builtin_ia32_vcvttss2usi64((__v4sf)__A, 0x04); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_i64(__m128 __A) { - return (long long)__builtin_ia32_vcvttss2si64((__v4sf)__A, 0x04); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsi512_si32(__m512i __A) { - __v16si __B = (__v16si)__A; - return __B[0]; -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_u32(__m128 __A) { - return (unsigned)__builtin_ia32_vcvtss2usi32((__v4sf)__A, 0x04); -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_u32(__m128 __A) { - return (unsigned)__builtin_ia32_vcvttss2usi32((__v4sf)__A, 0x04); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_i32(__m128 __A) { - return (int)__builtin_ia32_vcvttss2si32((__v4sf)__A, 0x04); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_i32(__m128d __A) { - return (int)__builtin_ia32_cvtsd2si((__v2df)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_i32(__m128 __A) { - return (int)__builtin_ia32_cvtss2si((__v4sf)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvti32_sd(__m128d __A, int __B) { - return (__m128d)__builtin_ia32_cvtsi2sd((__v2df)__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvti32_ss(__m128 __A, int __B) { - return (__m128)__builtin_ia32_cvtsi2ss((__v4sf)__A, __B); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_u64(__m128d __A) { - return (unsigned long long)__builtin_ia32_vcvtsd2usi64((__v2df)__A, 0x04); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_u64(__m128d __A) { - return (unsigned long long)__builtin_ia32_vcvttsd2usi64((__v2df)__A, 0x04); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_i64(__m128d __A) { - return (long long)__builtin_ia32_vcvttsd2si64((__v2df)__A, 0x04); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_i64(__m128d __A) { - return (long long)__builtin_ia32_cvtsd2si64((__v2df)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_i64(__m128 __A) { - return (long long)__builtin_ia32_cvtss2si64((__v4sf)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvti64_sd(__m128d __A, long long __B) { - return (__m128d)__builtin_ia32_cvtsi642sd((__v2df)__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvti64_ss(__m128 __A, long long __B) { - return (__m128)__builtin_ia32_cvtsi642ss((__v4sf)__A, __B); -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_u32(__m128d __A) { - return (unsigned)__builtin_ia32_vcvtsd2usi32((__v2df)__A, 0x04); -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_u32(__m128d __A) { - return (unsigned)__builtin_ia32_vcvttsd2usi32((__v2df)__A, 0x04); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_i32(__m128d __A) { - return (int)__builtin_ia32_vcvttsd2si32((__v2df)__A, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_pd(__m256 __A) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask( - (__v8sf)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtps_pd(__m512d __W, __mmask8 __U, __m256 __A) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask((__v8sf)__A, (__v8df)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_pd(__mmask8 __U, __m256 __A) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask( - (__v8sf)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtph_ps(__m256i __A) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask( - (__v16hi)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtph_ps(__m512 __W, __mmask16 __U, __m256i __A) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask((__v16hi)__A, (__v16sf)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtph_ps(__mmask16 __U, __m256i __A) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask( - (__v16hi)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtpd_ps(__m512d __A) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask( - (__v8df)__A, (__v8sf)_mm256_undefined_ps(), (__mmask8)-1, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtpd_ps(__m256 __W, __mmask8 __U, __m512d __A) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask((__v8df)__A, (__v8sf)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtpd_ps(__mmask8 __U, __m512d __A) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask( - (__v8df)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getexp_ps(__m512 __A) { - return (__m512)__builtin_ia32_getexpps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getexp_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_getexpps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getexp_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_getexpps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getexp_pd(__m512d __A) { - return (__m512d)__builtin_ia32_getexppd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getexp_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_getexppd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getexp_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_getexppd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_getexpss128_round((__v4sf)__A, (__v4sf)__B, - 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_getexpss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getexp_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_getexpss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_getexpsd128_round((__v2df)__A, (__v2df)__B, - 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_getexpsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getexp_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_getexpsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getmant_pd(__m512d __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, _mm512_undefined_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getmant_pd(__m512d __W, __mmask8 __U, __m512d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, (__v8df)__W, __U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getmant_pd(__mmask8 __U, __m512d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, (__v8df)_mm512_setzero_pd(), __U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getmant_ps(__m512 __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, _mm512_undefined_ps(), (__mmask16)-1, - 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getmant_ps(__m512 __W, __mmask16 __U, __m512 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, (__v16sf)__W, __U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getmant_ps(__mmask16 __U, __m512 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, (__v16sf)_mm512_setzero_ps(), __U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_sd(__m128d __A, __m128d __B, _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128d)__builtin_ia32_getmantsd_round((__v2df)__A, (__v2df)__B, - (__D << 2) | __C, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128d)__builtin_ia32_getmantsd_mask_round( - (__v2df)__A, (__v2df)__B, (__D << 2) | __C, (__v2df)__W, __U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_sd(__mmask8 __U, __m128d __A, __m128d __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128d)__builtin_ia32_getmantsd_mask_round( - (__v2df)__A, (__v2df)__B, (__D << 2) | __C, (__v2df)_mm_setzero_pd(), __U, - 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_ss(__m128 __A, __m128 __B, _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128)__builtin_ia32_getmantss_round((__v4sf)__A, (__v4sf)__B, - (__D << 2) | __C, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128)__builtin_ia32_getmantss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__D << 2) | __C, (__v4sf)__W, __U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_ss(__mmask8 __U, __m128 __A, __m128 __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128)__builtin_ia32_getmantss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__D << 2) | __C, (__v4sf)_mm_setzero_ps(), __U, - 0x04); -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_roundscale_ps(__m512 __A, const int __imm) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__A, __imm, (__v16sf)_mm512_undefined_ps(), -1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_roundscale_ps(__m512 __A, __mmask16 __B, __m512 __C, - const int __imm) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__C, __imm, (__v16sf)__A, (__mmask16)__B, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_roundscale_ps(__mmask16 __A, __m512 __B, const int __imm) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__B, __imm, (__v16sf)_mm512_setzero_ps(), (__mmask16)__A, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_roundscale_pd(__m512d __A, const int __imm) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__A, __imm, (__v8df)_mm512_undefined_pd(), -1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_roundscale_pd(__m512d __A, __mmask8 __B, __m512d __C, - const int __imm) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__C, __imm, (__v8df)__A, (__mmask8)__B, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_roundscale_pd(__mmask8 __A, __m512d __B, const int __imm) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__B, __imm, (__v8df)_mm512_setzero_pd(), (__mmask8)__A, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_ss(__m128 __A, __m128 __B, const int __imm) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__A, (__v4sf)__B, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, - 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_roundscale_ss(__m128 __A, __mmask8 __B, __m128 __C, __m128 __D, - const int __imm) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__C, (__v4sf)__D, __imm, (__v4sf)__A, (__mmask8)__B, 0x04); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_roundscale_ss(__mmask8 __A, __m128 __B, __m128 __C, const int __imm) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__B, (__v4sf)__C, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__A, - 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_sd(__m128d __A, __m128d __B, const int __imm) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__A, (__v2df)__B, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)-1, - 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_roundscale_sd(__m128d __A, __mmask8 __B, __m128d __C, __m128d __D, - const int __imm) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__C, (__v2df)__D, __imm, (__v2df)__A, (__mmask8)__B, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_roundscale_sd(__mmask8 __A, __m128d __B, __m128d __C, - const int __imm) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__B, (__v2df)__C, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__A, - 0x04); -} -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_pd_mask(__m512d __X, __m512d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, __P, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_ps_mask(__m512 __X, __m512 __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - __P, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_cmp_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - __P, (__mmask16)__U, 0x04); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_cmp_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, __P, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_sd_mask(__m128d __X, __m128d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpsd_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_sd_mask(__mmask8 __M, __m128d __X, __m128d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpsd_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)__M, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_ss_mask(__m128 __X, __m128 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpss_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmp_ss_mask(__mmask8 __M, __m128 __X, __m128 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpss_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)__M, 0x04); -} -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x00, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x00, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x01, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x01, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x02, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x02, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpunord_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x03, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpunord_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x03, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x04, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x04, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpnlt_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x05, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpnlt_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x05, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpnle_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x06, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpnle_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x06, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpord_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x07, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpord_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x07, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x00, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x00, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x01, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x01, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x02, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x02, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpunord_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x03, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpunord_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x03, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x04, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x04, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpnlt_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x05, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpnlt_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x05, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpnle_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x06, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpnle_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x06, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpord_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x07, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpord_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x07, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kmov(__mmask16 __A) { - return __builtin_ia32_kmovw(__A); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd_ps(__m512d __A) { - return (__m512)(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd_si512(__m512d __A) { - return (__m512i)(__A); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps_pd(__m512 __A) { - return (__m512d)(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps_si512(__m512 __A) { - return (__m512i)(__A); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi512_ps(__m512i __A) { - return (__m512)(__A); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi512_pd(__m512i __A) { - return (__m512d)(__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd512_pd128(__m512d __A) { - return (__m128d)_mm512_extractf32x4_ps((__m512)__A, 0); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps512_ps128(__m512 __A) { - return _mm512_extractf32x4_ps(__A, 0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi512_si128(__m512i __A) { - return (__m128i)_mm512_extracti32x4_epi32((__m512i)__A, 0); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd512_pd256(__m512d __A) { - return _mm512_extractf64x4_pd(__A, 0); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps512_ps256(__m512 __A) { - return (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi512_si256(__m512i __A) { - return (__m256i)_mm512_extractf64x4_pd((__m512d)__A, 0); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd128_pd512(__m128d __A) { - return (__m512d)__builtin_ia32_pd512_pd((__m128d)__A); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps128_ps512(__m128 __A) { - return (__m512)__builtin_ia32_ps512_ps((__m128)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi128_si512(__m128i __A) { - return (__m512i)__builtin_ia32_si512_si((__v4si)__A); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd256_pd512(__m256d __A) { - return __builtin_ia32_pd512_256pd(__A); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps256_ps512(__m256 __A) { - return __builtin_ia32_ps512_256ps(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi256_si512(__m256i __A) { - return (__m512i)__builtin_ia32_si512_256si((__v8si)__A); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextpd128_pd512(__m128d __A) { - return (__m512d)_mm512_insertf32x4(_mm512_setzero_ps(), (__m128)__A, 0); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextps128_ps512(__m128 __A) { - return _mm512_insertf32x4(_mm512_setzero_ps(), __A, 0); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextsi128_si512(__m128i __A) { - return _mm512_inserti32x4(_mm512_setzero_si512(), __A, 0); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextpd256_pd512(__m256d __A) { - return _mm512_insertf64x4(_mm512_setzero_pd(), __A, 0); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextps256_ps512(__m256 __A) { - return (__m512)_mm512_insertf64x4(_mm512_setzero_pd(), (__m256d)__A, 0); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextsi256_si512(__m256i __A) { - return _mm512_inserti64x4(_mm512_setzero_si512(), __A, 0); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epu32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__A, (__v16si)__B, 0, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epu32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__A, (__v16si)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epu64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__A, (__v8di)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epu64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__A, (__v8di)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epu32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__A, (__v16si)__B, 6, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epu32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__A, (__v16si)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epu64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__A, (__v8di)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epu64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__A, (__v8di)__B, 6, - (__mmask8)-1); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_add_epi32(__m512i __A) { - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 + __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 + __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 + __T7; - return __T8[0] + __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_mul_epi32(__m512i __A) { - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 * __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 * __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 * __T7; - return __T8[0] * __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_and_epi32(__m512i __A) { - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 & __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 & __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 & __T7; - return __T8[0] & __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_or_epi32(__m512i __A) { - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 | __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 | __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 | __T7; - return __T8[0] | __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_add_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi32(__U, __A); - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 + __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 + __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 + __T7; - return __T8[0] + __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_mul_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_mask_mov_epi32(_mm512_set1_epi32(1), __U, __A); - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 * __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 * __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 * __T7; - return __T8[0] * __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_and_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_mask_mov_epi32(_mm512_set1_epi32(~0), __U, __A); - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 & __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 & __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 & __T7; - return __T8[0] & __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_or_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi32(__U, __A); - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 | __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 | __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 | __T7; - return __T8[0] | __T8[1]; -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_epi32(__m512i __A) { - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_min_epi32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_min_epi32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_min_epi32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_min_epi32(__T8, __T9); - return __T10[0]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_epi32(__m512i __A) { - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_max_epi32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_max_epi32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_max_epi32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_max_epi32(__T8, __T9); - return __T10[0]; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_epu32(__m512i __A) { - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_min_epu32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_min_epu32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_min_epu32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_min_epu32(__T8, __T9); - return __T10[0]; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_epu32(__m512i __A) { - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_max_epu32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_max_epu32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_max_epu32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_max_epu32(__T8, __T9); - return __T10[0]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_mask_mov_epi32(_mm512_set1_epi32(0x7fffffff), __U, __A); - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_min_epi32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_min_epi32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_min_epi32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_min_epi32(__T8, __T9); - return __T10[0]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_mask_mov_epi32(_mm512_set1_epi32(-0x7fffffff - 1), __U, __A); - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_max_epi32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_max_epi32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_max_epi32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_max_epi32(__T8, __T9); - return __T10[0]; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_epu32(__mmask16 __U, __m512i __A) { - __A = _mm512_mask_mov_epi32(_mm512_set1_epi32(~0), __U, __A); - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_min_epu32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_min_epu32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_min_epu32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_min_epu32(__T8, __T9); - return __T10[0]; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_epu32(__mmask16 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi32(__U, __A); - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_max_epu32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_max_epu32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_max_epu32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_max_epu32(__T8, __T9); - return __T10[0]; -} -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_add_ps(__m512 __A) { - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = __T1 + __T2; - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = __T4 + __T5; - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = __T6 + __T7; - return __T8[0] + __T8[1]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_mul_ps(__m512 __A) { - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = __T1 * __T2; - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = __T4 * __T5; - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = __T6 * __T7; - return __T8[0] * __T8[1]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_add_ps(__mmask16 __U, __m512 __A) { - __A = _mm512_maskz_mov_ps(__U, __A); - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = __T1 + __T2; - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = __T4 + __T5; - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = __T6 + __T7; - return __T8[0] + __T8[1]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_mul_ps(__mmask16 __U, __m512 __A) { - __A = _mm512_mask_mov_ps(_mm512_set1_ps(1.0f), __U, __A); - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = __T1 * __T2; - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = __T4 * __T5; - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = __T6 * __T7; - return __T8[0] * __T8[1]; -} -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_ps(__m512 __A) { - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = _mm256_min_ps(__T1, __T2); - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = _mm_min_ps(__T4, __T5); - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = _mm_min_ps(__T6, __T7); - __m128 __T9 = __builtin_shuffle(__T8, (__v4si){1, 0, 1, 0}); - __m128 __T10 = _mm_min_ps(__T8, __T9); - return __T10[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_ps(__m512 __A) { - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = _mm256_max_ps(__T1, __T2); - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = _mm_max_ps(__T4, __T5); - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = _mm_max_ps(__T6, __T7); - __m128 __T9 = __builtin_shuffle(__T8, (__v4si){1, 0, 1, 0}); - __m128 __T10 = _mm_max_ps(__T8, __T9); - return __T10[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_ps(__mmask16 __U, __m512 __A) { - __A = _mm512_mask_mov_ps(_mm512_set1_ps(__builtin_inff()), __U, __A); - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = _mm256_min_ps(__T1, __T2); - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = _mm_min_ps(__T4, __T5); - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = _mm_min_ps(__T6, __T7); - __m128 __T9 = __builtin_shuffle(__T8, (__v4si){1, 0, 1, 0}); - __m128 __T10 = _mm_min_ps(__T8, __T9); - return __T10[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_ps(__mmask16 __U, __m512 __A) { - __A = _mm512_mask_mov_ps(_mm512_set1_ps(-__builtin_inff()), __U, __A); - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = _mm256_max_ps(__T1, __T2); - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = _mm_max_ps(__T4, __T5); - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = _mm_max_ps(__T6, __T7); - __m128 __T9 = __builtin_shuffle(__T8, (__v4si){1, 0, 1, 0}); - __m128 __T10 = _mm_max_ps(__T8, __T9); - return __T10[0]; -} -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_add_epi64(__m512i __A) { - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 + __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 + __T5; - return __T6[0] + __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_mul_epi64(__m512i __A) { - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 * __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 * __T5; - return __T6[0] * __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_and_epi64(__m512i __A) { - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 & __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 & __T5; - return __T6[0] & __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_or_epi64(__m512i __A) { - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 | __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 | __T5; - return __T6[0] | __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_add_epi64(__mmask8 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi64(__U, __A); - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 + __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 + __T5; - return __T6[0] + __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_mul_epi64(__mmask8 __U, __m512i __A) { - __A = _mm512_mask_mov_epi64(_mm512_set1_epi64(1LL), __U, __A); - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 * __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 * __T5; - return __T6[0] * __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_and_epi64(__mmask8 __U, __m512i __A) { - __A = _mm512_mask_mov_epi64(_mm512_set1_epi64(~0LL), __U, __A); - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 & __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 & __T5; - return __T6[0] & __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_or_epi64(__mmask8 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi64(__U, __A); - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 | __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 | __T5; - return __T6[0] | __T6[1]; -} -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_epi64(__m512i __A) { - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_min_epi64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_min_epi64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_min_epi64(__T4, __T5); - return __T6[0]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_epi64(__m512i __A) { - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_max_epi64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_max_epi64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_max_epi64(__T4, __T5); - return __T6[0]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_epi64(__mmask8 __U, __m512i __A) { - __A = - _mm512_mask_mov_epi64(_mm512_set1_epi64(0x7fffffffffffffffLL), __U, __A); - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_min_epi64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_min_epi64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_min_epi64(__T4, __T5); - return __T6[0]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_epi64(__mmask8 __U, __m512i __A) { - __A = _mm512_mask_mov_epi64(_mm512_set1_epi64(-0x7fffffffffffffffLL - 1), __U, - __A); - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_max_epi64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_max_epi64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_max_epi64(__T4, __T5); - return __T6[0]; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_epu64(__m512i __A) { - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_min_epu64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_min_epu64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_min_epu64(__T4, __T5); - return __T6[0]; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_epu64(__m512i __A) { - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_max_epu64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_max_epu64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_max_epu64(__T4, __T5); - return __T6[0]; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_epu64(__mmask8 __U, __m512i __A) { - __A = _mm512_mask_mov_epi64(_mm512_set1_epi64(~0LL), __U, __A); - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_min_epu64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_min_epu64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_min_epu64(__T4, __T5); - return __T6[0]; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_epu64(__mmask8 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi64(__U, __A); - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_max_epu64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_max_epu64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_max_epu64(__T4, __T5); - return __T6[0]; -} -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_add_pd(__m512d __A) { - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = __T1 + __T2; - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = __T4 + __T5; - return __T6[0] + __T6[1]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_mul_pd(__m512d __A) { - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = __T1 * __T2; - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = __T4 * __T5; - return __T6[0] * __T6[1]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_add_pd(__mmask8 __U, __m512d __A) { - __A = _mm512_maskz_mov_pd(__U, __A); - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = __T1 + __T2; - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = __T4 + __T5; - return __T6[0] + __T6[1]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_mul_pd(__mmask8 __U, __m512d __A) { - __A = _mm512_mask_mov_pd(_mm512_set1_pd(1.0), __U, __A); - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = __T1 * __T2; - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = __T4 * __T5; - return __T6[0] * __T6[1]; -} -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_pd(__m512d __A) { - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = _mm256_min_pd(__T1, __T2); - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = _mm_min_pd(__T4, __T5); - __m128d __T7 = (__m128d)__builtin_shuffle(__T6, (__v2di){1, 0}); - __m128d __T8 = _mm_min_pd(__T6, __T7); - return __T8[0]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_pd(__m512d __A) { - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = _mm256_max_pd(__T1, __T2); - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = _mm_max_pd(__T4, __T5); - __m128d __T7 = (__m128d)__builtin_shuffle(__T6, (__v2di){1, 0}); - __m128d __T8 = _mm_max_pd(__T6, __T7); - return __T8[0]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_pd(__mmask8 __U, __m512d __A) { - __A = _mm512_mask_mov_pd(_mm512_set1_pd(__builtin_inf()), __U, __A); - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = _mm256_min_pd(__T1, __T2); - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = _mm_min_pd(__T4, __T5); - __m128d __T7 = (__m128d)__builtin_shuffle(__T6, (__v2di){1, 0}); - __m128d __T8 = _mm_min_pd(__T6, __T7); - return __T8[0]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_pd(__mmask8 __U, __m512d __A) { - __A = _mm512_mask_mov_pd(_mm512_set1_pd(-__builtin_inf()), __U, __A); - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = _mm256_max_pd(__T1, __T2); - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = _mm_max_pd(__T4, __T5); - __m128d __T7 = (__m128d)__builtin_shuffle(__T6, (__v2di){1, 0}); - __m128d __T8 = _mm_max_pd(__T6, __T7); - return __T8[0]; -} - -typedef double __v8df __attribute__((__vector_size__(64))); -typedef float __v16sf __attribute__((__vector_size__(64))); - -typedef float __m512 __attribute__((__vector_size__(64), __may_alias__)); -typedef double __m512d __attribute__((__vector_size__(64), __may_alias__)); - -typedef unsigned char __mmask8; -typedef unsigned short __mmask16; - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_exp2a23_round_pd(__m512d __A, int __R) { - __m512d __W; - return (__m512d)__builtin_ia32_exp2pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)-1, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_exp2a23_round_pd(__m512d __W, __mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_exp2pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_exp2a23_round_pd(__mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_exp2pd_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_exp2a23_round_ps(__m512 __A, int __R) { - __m512 __W; - return (__m512)__builtin_ia32_exp2ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)-1, __R); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_exp2a23_round_ps(__m512 __W, __mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_exp2ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_exp2a23_round_ps(__mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_exp2ps_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rcp28_round_pd(__m512d __A, int __R) { - __m512d __W; - return (__m512d)__builtin_ia32_rcp28pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)-1, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rcp28_round_pd(__m512d __W, __mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_rcp28pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rcp28_round_pd(__mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_rcp28pd_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rcp28_round_ps(__m512 __A, int __R) { - __m512 __W; - return (__m512)__builtin_ia32_rcp28ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_rcp28_round_ps(__m512 __W, __mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_rcp28ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rcp28_round_ps(__mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_rcp28ps_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp28_round_sd(__m128d __A, __m128d __B, int __R) { - return (__m128d)__builtin_ia32_rcp28sd_round((__v2df)__B, (__v2df)__A, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp28_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - int __R) { - return (__m128d)__builtin_ia32_rcp28sd_mask_round((__v2df)__B, (__v2df)__A, - (__v2df)__W, __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp28_round_sd(__mmask8 __U, __m128d __A, __m128d __B, int __R) { - return (__m128d)__builtin_ia32_rcp28sd_mask_round( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_pd(), __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp28_round_ss(__m128 __A, __m128 __B, int __R) { - return (__m128)__builtin_ia32_rcp28ss_round((__v4sf)__B, (__v4sf)__A, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp28_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - int __R) { - return (__m128)__builtin_ia32_rcp28ss_mask_round((__v4sf)__B, (__v4sf)__A, - (__v4sf)__W, __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp28_round_ss(__mmask8 __U, __m128 __A, __m128 __B, int __R) { - return (__m128)__builtin_ia32_rcp28ss_mask_round( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), __U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rsqrt28_round_pd(__m512d __A, int __R) { - __m512d __W; - return (__m512d)__builtin_ia32_rsqrt28pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)-1, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rsqrt28_round_pd(__m512d __W, __mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_rsqrt28pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rsqrt28_round_pd(__mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_rsqrt28pd_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rsqrt28_round_ps(__m512 __A, int __R) { - __m512 __W; - return (__m512)__builtin_ia32_rsqrt28ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)-1, __R); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rsqrt28_round_ps(__m512 __W, __mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_rsqrt28ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rsqrt28_round_ps(__mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_rsqrt28ps_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt28_round_sd(__m128d __A, __m128d __B, int __R) { - return (__m128d)__builtin_ia32_rsqrt28sd_round((__v2df)__B, (__v2df)__A, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt28_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, int __R) { - return (__m128d)__builtin_ia32_rsqrt28sd_mask_round((__v2df)__B, (__v2df)__A, - (__v2df)__W, __U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_rsqrt28_round_sd(__mmask8 __U, __m128d __A, __m128d __B, int __R) { - return (__m128d)__builtin_ia32_rsqrt28sd_mask_round( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_pd(), __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt28_round_ss(__m128 __A, __m128 __B, int __R) { - return (__m128)__builtin_ia32_rsqrt28ss_round((__v4sf)__B, (__v4sf)__A, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt28_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - int __R) { - return (__m128)__builtin_ia32_rsqrt28ss_mask_round((__v4sf)__B, (__v4sf)__A, - (__v4sf)__W, __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rsqrt28_round_ss(__mmask8 __U, __m128 __A, __m128 __B, int __R) { - return (__m128)__builtin_ia32_rsqrt28ss_mask_round( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), __U, __R); -} - -typedef long long __v8di __attribute__((__vector_size__(64))); -typedef int __v16si __attribute__((__vector_size__(64))); - -typedef long long __m512i __attribute__((__vector_size__(64), __may_alias__)); - -typedef unsigned char __mmask8; -typedef unsigned short __mmask16; - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i32gather_pd(__m256i __index, void const *__addr, - int __scale, int __hint) { - __builtin_ia32_gatherpfdpd((__mmask8)0xFF, (__v8si)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i32gather_ps(__m512i __index, void const *__addr, - int __scale, int __hint) { - __builtin_ia32_gatherpfdps((__mmask16)0xFFFF, (__v16si)__index, __addr, - __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i32gather_pd(__m256i __index, __mmask8 __mask, - void const *__addr, int __scale, - int __hint) { - __builtin_ia32_gatherpfdpd(__mask, (__v8si)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i32gather_ps(__m512i __index, __mmask16 __mask, - void const *__addr, int __scale, - int __hint) { - __builtin_ia32_gatherpfdps(__mask, (__v16si)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i64gather_pd(__m512i __index, void const *__addr, - int __scale, int __hint) { - __builtin_ia32_gatherpfqpd((__mmask8)0xFF, (__v8di)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i64gather_ps(__m512i __index, void const *__addr, - int __scale, int __hint) { - __builtin_ia32_gatherpfqps((__mmask8)0xFF, (__v8di)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i64gather_pd(__m512i __index, __mmask8 __mask, - void const *__addr, int __scale, - int __hint) { - __builtin_ia32_gatherpfqpd(__mask, (__v8di)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i64gather_ps(__m512i __index, __mmask8 __mask, - void const *__addr, int __scale, - int __hint) { - __builtin_ia32_gatherpfqps(__mask, (__v8di)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i32scatter_pd(void *__addr, __m256i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfdpd((__mmask8)0xFF, (__v8si)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i32scatter_ps(void *__addr, __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfdps((__mmask16)0xFFFF, (__v16si)__index, __addr, - __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i32scatter_pd(void *__addr, __mmask8 __mask, - __m256i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfdpd(__mask, (__v8si)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i32scatter_ps(void *__addr, __mmask16 __mask, - __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfdps(__mask, (__v16si)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i64scatter_pd(void *__addr, __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfqpd((__mmask8)0xFF, (__v8di)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i64scatter_ps(void *__addr, __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfqps((__mmask8)0xFF, (__v8di)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i64scatter_pd(void *__addr, __mmask8 __mask, - __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfqpd(__mask, (__v8di)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i64scatter_ps(void *__addr, __mmask8 __mask, - __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfqps(__mask, (__v8di)__index, __addr, __scale, __hint); -} - -typedef long long __v8di __attribute__((__vector_size__(64))); -typedef int __v16si __attribute__((__vector_size__(64))); - -typedef long long __m512i __attribute__((__vector_size__(64), __may_alias__)); -typedef double __m512d __attribute__((__vector_size__(64), __may_alias__)); - -typedef unsigned char __mmask8; -typedef unsigned short __mmask16; - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_conflict_epi32(__m512i __A) { - return (__m512i)__builtin_ia32_vpconflictsi_512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_conflict_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpconflictsi_512_mask( - (__v16si)__A, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_conflict_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpconflictsi_512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_conflict_epi64(__m512i __A) { - return (__m512i)__builtin_ia32_vpconflictdi_512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_conflict_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpconflictdi_512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_conflict_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpconflictdi_512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_lzcnt_epi64(__m512i __A) { - return (__m512i)__builtin_ia32_vplzcntq_512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_lzcnt_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vplzcntq_512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_lzcnt_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vplzcntq_512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_lzcnt_epi32(__m512i __A) { - return (__m512i)__builtin_ia32_vplzcntd_512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_lzcnt_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vplzcntd_512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_lzcnt_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vplzcntd_512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastmb_epi64(__mmask8 __A) { - return (__m512i)__builtin_ia32_broadcastmb512(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastmw_epi32(__mmask16 __A) { - return (__m512i)__builtin_ia32_broadcastmw512(__A); -} - -typedef unsigned int __mmask32; -typedef int __v4si_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); -typedef int __v8si_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -typedef long long __v2di_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); -typedef long long __v4di_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_movapd256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_movapd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_movapd128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_movapd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_load_pd(__m256d __W, __mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_loadapd256_mask((__v4df *)__P, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_load_pd(__mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_loadapd256_mask( - (__v4df *)__P, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_pd(__m128d __W, __mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_loadapd128_mask((__v2df *)__P, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_pd(__mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_loadapd128_mask( - (__v2df *)__P, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_store_pd(void *__P, __mmask8 __U, __m256d __A) { - __builtin_ia32_storeapd256_mask((__v4df *)__P, (__v4df)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_pd(void *__P, __mmask8 __U, __m128d __A) { - __builtin_ia32_storeapd128_mask((__v2df *)__P, (__v2df)__A, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movaps256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movaps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movaps128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movaps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_load_ps(__m256 __W, __mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_loadaps256_mask((__v8sf *)__P, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_load_ps(__mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_loadaps256_mask( - (__v8sf *)__P, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_ps(__m128 __W, __mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_loadaps128_mask((__v4sf *)__P, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_ps(__mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_loadaps128_mask( - (__v4sf *)__P, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_store_ps(void *__P, __mmask8 __U, __m256 __A) { - __builtin_ia32_storeaps256_mask((__v8sf *)__P, (__v8sf)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_ps(void *__P, __mmask8 __U, __m128 __A) { - __builtin_ia32_storeaps128_mask((__v4sf *)__P, (__v4sf)__A, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdqa64_256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdqa64_256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdqa64_128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdqa64_128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_load_epi64(void const *__P) { - return (__m256i)(*(__v4di *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_load_epi64(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_movdqa64load256_mask( - (__v4di *)__P, (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_load_epi64(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_movdqa64load256_mask( - (__v4di *)__P, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_epi64(void const *__P) { - return (__m128i)(*(__v2di *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_epi64(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_movdqa64load128_mask( - (__v2di *)__P, (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_epi64(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_movdqa64load128_mask( - (__v2di *)__P, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_store_epi64(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_movdqa64store256_mask((__v4di *)__P, (__v4di)__A, - (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_epi64(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_movdqa64store128_mask((__v2di *)__P, (__v2di)__A, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdqa32_256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdqa32_256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdqa32_128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdqa32_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_load_epi32(void const *__P) { - return (__m256i)(*(__v8si *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_load_epi32(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_movdqa32load256_mask( - (__v8si *)__P, (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_load_epi32(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_movdqa32load256_mask( - (__v8si *)__P, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_epi32(void const *__P) { - return (__m128i)(*(__v4si *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_epi32(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_movdqa32load128_mask( - (__v4si *)__P, (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_epi32(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_movdqa32load128_mask( - (__v4si *)__P, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_store_epi32(void *__P, __m256i __A) { - *(__v8si *)__P = (__v8si)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_store_epi32(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_movdqa32store256_mask((__v8si *)__P, (__v8si)__A, - (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_epi32(void *__P, __m128i __A) { - *(__v4si *)__P = (__v4si)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_epi32(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_movdqa32store128_mask((__v4si *)__P, (__v4si)__A, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_addpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_addpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_add_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_addpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_addpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_addps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_addps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_add_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_addps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_addps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_subpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_subpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sub_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_subpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_subpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_subps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_subps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sub_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_subps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_subps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_store_epi64(void *__P, __m256i __A) { - *(__m256i *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_epi64(void *__P, __m128i __A) { - *(__m128i *)__P = __A; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_pd(__m256d __W, __mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_loadupd256_mask((const double *)__P, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_pd(__mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_loadupd256_mask( - (const double *)__P, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_pd(__m128d __W, __mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_loadupd128_mask((const double *)__P, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_pd(__mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_loadupd128_mask( - (const double *)__P, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_pd(void *__P, __mmask8 __U, __m256d __A) { - __builtin_ia32_storeupd256_mask((double *)__P, (__v4df)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_pd(void *__P, __mmask8 __U, __m128d __A) { - __builtin_ia32_storeupd128_mask((double *)__P, (__v2df)__A, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_ps(__m256 __W, __mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_loadups256_mask((const float *)__P, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_ps(__mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_loadups256_mask( - (const float *)__P, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_ps(__m128 __W, __mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_loadups128_mask((const float *)__P, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_ps(__mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_loadups128_mask( - (const float *)__P, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_ps(void *__P, __mmask8 __U, __m256 __A) { - __builtin_ia32_storeups256_mask((float *)__P, (__v8sf)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_ps(void *__P, __mmask8 __U, __m128 __A) { - __builtin_ia32_storeups128_mask((float *)__P, (__v4sf)__A, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_epi64(void const *__P) { - return (__m256i)(*(__v4di_u *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_epi64(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddqudi256_mask((const long long *)__P, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_epi64(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddqudi256_mask( - (const long long *)__P, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_epi64(void const *__P) { - return (__m128i)(*(__v2di_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_epi64(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddqudi128_mask((const long long *)__P, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_epi64(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddqudi128_mask( - (const long long *)__P, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_epi64(void *__P, __m256i __A) { - *(__m256i_u *)__P = (__m256i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_epi64(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_storedqudi256_mask((long long *)__P, (__v4di)__A, - (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_epi64(void *__P, __m128i __A) { - *(__m128i_u *)__P = (__m128i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_epi64(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_storedqudi128_mask((long long *)__P, (__v2di)__A, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_epi32(void const *__P) { - return (__m256i)(*(__v8si_u *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_epi32(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddqusi256_mask((const int *)__P, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_epi32(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddqusi256_mask( - (const int *)__P, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_epi32(void const *__P) { - return (__m128i)(*(__v4si_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_epi32(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddqusi128_mask((const int *)__P, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_epi32(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddqusi128_mask( - (const int *)__P, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_epi32(void *__P, __m256i __A) { - *(__m256i_u *)__P = (__m256i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_epi32(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_storedqusi256_mask((int *)__P, (__v8si)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_epi32(void *__P, __m128i __A) { - *(__m128i_u *)__P = (__m128i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_epi32(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_storedqusi128_mask((int *)__P, (__v4si)__A, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_abs_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsd256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_abs_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsd256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_abs_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsd128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_abs_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsd128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_abs_epi64(__m256i __A) { - return (__m256i)__builtin_ia32_pabsq256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_abs_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsq256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_abs_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsq256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_epi64(__m128i __A) { - return (__m128i)__builtin_ia32_pabsq128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_abs_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsq128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_abs_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsq128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtpd_epu32(__m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtpd_epu32(__m128i __W, __mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq256_mask((__v4df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtpd_epu32(__mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_epu32(__m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtpd_epu32(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq128_mask((__v2df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtpd_epu32(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttps_epi32(__m256i __W, __mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvttps2dq256_mask((__v8sf)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttps_epi32(__mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvttps2dq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttps_epi32(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2dq128_mask((__v4sf)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttps_epi32(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2dq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttps_epu32(__m256 __A) { - return (__m256i)__builtin_ia32_cvttps2udq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttps_epu32(__m256i __W, __mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvttps2udq256_mask((__v8sf)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttps_epu32(__mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvttps2udq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttps_epu32(__m128 __A) { - return (__m128i)__builtin_ia32_cvttps2udq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttps_epu32(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2udq128_mask((__v4sf)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttps_epu32(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2udq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttpd_epi32(__m128i __W, __mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq256_mask((__v4df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttpd_epi32(__mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttpd_epi32(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq128_mask((__v2df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttpd_epi32(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttpd_epu32(__m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttpd_epu32(__m128i __W, __mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq256_mask((__v4df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttpd_epu32(__mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttpd_epu32(__m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttpd_epu32(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq128_mask((__v2df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttpd_epu32(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtpd_epi32(__m128i __W, __mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq256_mask((__v4df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtpd_epi32(__mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtpd_epi32(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq128_mask((__v2df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtpd_epi32(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_pd(__m256d __W, __mmask8 __U, __m128i __A) { - return (__m256d)__builtin_ia32_cvtdq2pd256_mask((__v4si)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi32_pd(__mmask8 __U, __m128i __A) { - return (__m256d)__builtin_ia32_cvtdq2pd256_mask( - (__v4si)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_pd(__m128d __W, __mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtdq2pd128_mask((__v4si)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi32_pd(__mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtdq2pd128_mask( - (__v4si)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu32_pd(__m128i __A) { - return (__m256d)__builtin_ia32_cvtudq2pd256_mask( - (__v4si)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu32_pd(__m256d __W, __mmask8 __U, __m128i __A) { - return (__m256d)__builtin_ia32_cvtudq2pd256_mask((__v4si)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu32_pd(__mmask8 __U, __m128i __A) { - return (__m256d)__builtin_ia32_cvtudq2pd256_mask( - (__v4si)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu32_pd(__m128i __A) { - return (__m128d)__builtin_ia32_cvtudq2pd128_mask( - (__v4si)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu32_pd(__m128d __W, __mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtudq2pd128_mask((__v4si)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu32_pd(__mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtudq2pd128_mask( - (__v4si)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_ps(__m256 __W, __mmask8 __U, __m256i __A) { - return (__m256)__builtin_ia32_cvtdq2ps256_mask((__v8si)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi32_ps(__mmask8 __U, __m256i __A) { - return (__m256)__builtin_ia32_cvtdq2ps256_mask( - (__v8si)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_ps(__m128 __W, __mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtdq2ps128_mask((__v4si)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi32_ps(__mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtdq2ps128_mask( - (__v4si)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu32_ps(__m256i __A) { - return (__m256)__builtin_ia32_cvtudq2ps256_mask( - (__v8si)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu32_ps(__m256 __W, __mmask8 __U, __m256i __A) { - return (__m256)__builtin_ia32_cvtudq2ps256_mask((__v8si)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu32_ps(__mmask8 __U, __m256i __A) { - return (__m256)__builtin_ia32_cvtudq2ps256_mask( - (__v8si)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu32_ps(__m128i __A) { - return (__m128)__builtin_ia32_cvtudq2ps128_mask( - (__v4si)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu32_ps(__m128 __W, __mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtudq2ps128_mask((__v4si)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu32_ps(__mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtudq2ps128_mask( - (__v4si)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_pd(__m256d __W, __mmask8 __U, __m128 __A) { - return (__m256d)__builtin_ia32_cvtps2pd256_mask((__v4sf)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_pd(__mmask8 __U, __m128 __A) { - return (__m256d)__builtin_ia32_cvtps2pd256_mask( - (__v4sf)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_pd(__m128d __W, __mmask8 __U, __m128 __A) { - return (__m128d)__builtin_ia32_cvtps2pd128_mask((__v4sf)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_pd(__mmask8 __U, __m128 __A) { - return (__m128d)__builtin_ia32_cvtps2pd128_mask( - (__v4sf)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi32_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovdb128_mask( - (__v4si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovdb128mem_mask((unsigned int *)__P, (__v4si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovdb128_mask((__v4si)__A, (__v16qi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi32_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovdb128_mask( - (__v4si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi32_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovdb256_mask( - (__v8si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovdb256_mask((__v8si)__A, (__v16qi)__O, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovdb256mem_mask((unsigned long long *)__P, (__v8si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi32_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovdb256_mask( - (__v8si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi32_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovsdb128_mask( - (__v4si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi32_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovsdb128mem_mask((unsigned int *)__P, (__v4si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi32_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsdb128_mask((__v4si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi32_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsdb128_mask( - (__v4si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi32_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovsdb256_mask( - (__v8si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi32_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovsdb256mem_mask((unsigned long long *)__P, (__v8si)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi32_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsdb256_mask((__v8si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi32_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsdb256_mask( - (__v8si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi32_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovusdb128_mask( - (__v4si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi32_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovusdb128mem_mask((unsigned int *)__P, (__v4si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi32_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusdb128_mask((__v4si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi32_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusdb128_mask( - (__v4si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi32_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovusdb256_mask( - (__v8si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi32_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovusdb256mem_mask((unsigned long long *)__P, (__v8si)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi32_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusdb256_mask((__v8si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi32_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusdb256_mask( - (__v8si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi32_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovdw128_mask( - (__v4si)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovdw128mem_mask((unsigned long long *)__P, (__v4si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovdw128_mask((__v4si)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi32_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovdw128_mask( - (__v4si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi32_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovdw256_mask( - (__v8si)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovdw256mem_mask((__v8hi *)__P, (__v8si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovdw256_mask((__v8si)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi32_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovdw256_mask( - (__v8si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi32_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovsdw128_mask( - (__v4si)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi32_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovsdw128mem_mask((unsigned long long *)__P, (__v4si)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi32_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsdw128_mask((__v4si)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi32_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsdw128_mask( - (__v4si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi32_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovsdw256_mask( - (__v8si)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi32_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovsdw256mem_mask((__v8hi *)__P, (__v8si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi32_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsdw256_mask((__v8si)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi32_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsdw256_mask( - (__v8si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi32_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovusdw128_mask( - (__v4si)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi32_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovusdw128mem_mask((unsigned long long *)__P, (__v4si)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi32_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusdw128_mask((__v4si)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi32_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusdw128_mask( - (__v4si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi32_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovusdw256_mask( - (__v8si)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi32_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovusdw256mem_mask((__v8hi *)__P, (__v8si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi32_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusdw256_mask((__v8si)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi32_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusdw256_mask( - (__v8si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi64_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovqb128_mask( - (__v2di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovqb128mem_mask((unsigned short *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqb128_mask((__v2di)__A, (__v16qi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi64_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqb128_mask( - (__v2di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi64_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovqb256_mask( - (__v4di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovqb256mem_mask((unsigned int *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqb256_mask((__v4di)__A, (__v16qi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi64_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqb256_mask( - (__v4di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi64_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovsqb128_mask( - (__v2di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovsqb128mem_mask((unsigned short *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqb128_mask((__v2di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi64_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqb128_mask( - (__v2di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi64_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovsqb256_mask( - (__v4di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovsqb256mem_mask((unsigned int *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqb256_mask((__v4di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi64_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqb256_mask( - (__v4di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi64_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovusqb128_mask( - (__v2di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovusqb128mem_mask((unsigned short *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqb128_mask((__v2di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi64_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqb128_mask( - (__v2di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi64_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovusqb256_mask( - (__v4di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovusqb256mem_mask((unsigned int *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqb256_mask((__v4di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi64_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqb256_mask( - (__v4di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi64_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovqw128_mask( - (__v2di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovqw128mem_mask((unsigned int *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqw128_mask((__v2di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi64_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqw128_mask( - (__v2di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi64_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovqw256_mask( - (__v4di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovqw256mem_mask((unsigned long long *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqw256_mask((__v4di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi64_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqw256_mask( - (__v4di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi64_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovsqw128_mask( - (__v2di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovsqw128mem_mask((unsigned int *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqw128_mask((__v2di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi64_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqw128_mask( - (__v2di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi64_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovsqw256_mask( - (__v4di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovsqw256mem_mask((unsigned long long *)__P, (__v4di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqw256_mask((__v4di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi64_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqw256_mask( - (__v4di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi64_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovusqw128_mask( - (__v2di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovusqw128mem_mask((unsigned int *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqw128_mask((__v2di)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi64_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqw128_mask( - (__v2di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi64_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovusqw256_mask( - (__v4di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovusqw256mem_mask((unsigned long long *)__P, (__v4di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqw256_mask((__v4di)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi64_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqw256_mask( - (__v4di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi64_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_pmovqd128_mask( - (__v2di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_storeu_epi32(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovqd128mem_mask((unsigned long long *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_epi32(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqd128_mask((__v2di)__A, (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi64_epi32(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqd128_mask( - (__v2di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi64_epi32(__m256i __A) { - return (__m128i)__builtin_ia32_pmovqd256_mask( - (__v4di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_storeu_epi32(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovqd256mem_mask((__v4si *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_epi32(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqd256_mask((__v4di)__A, (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi64_epi32(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqd256_mask( - (__v4di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi64_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_pmovsqd128_mask( - (__v2di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_storeu_epi32(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovsqd128mem_mask((unsigned long long *)__P, (__v2di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_epi32(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqd128_mask((__v2di)__A, (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi64_epi32(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqd128_mask( - (__v2di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi64_epi32(__m256i __A) { - return (__m128i)__builtin_ia32_pmovsqd256_mask( - (__v4di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_storeu_epi32(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovsqd256mem_mask((__v4si *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_epi32(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqd256_mask((__v4di)__A, (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi64_epi32(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqd256_mask( - (__v4di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi64_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_pmovusqd128_mask( - (__v2di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_storeu_epi32(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovusqd128mem_mask((unsigned long long *)__P, (__v2di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_epi32(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqd128_mask((__v2di)__A, (__v4si)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi64_epi32(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqd128_mask( - (__v2di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi64_epi32(__m256i __A) { - return (__m128i)__builtin_ia32_pmovusqd256_mask( - (__v4di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_storeu_epi32(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovusqd256mem_mask((__v4si *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_epi32(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqd256_mask((__v4di)__A, (__v4si)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi64_epi32(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqd256_mask( - (__v4di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastss_ps(__m256 __O, __mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastss256_mask((__v4sf)__A, (__v8sf)__O, - __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastss_ps(__mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastss256_mask( - (__v4sf)__A, (__v8sf)_mm256_setzero_ps(), __M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcastss_ps(__m128 __O, __mmask8 __M, __m128 __A) { - return (__m128)__builtin_ia32_broadcastss128_mask((__v4sf)__A, (__v4sf)__O, - __M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcastss_ps(__mmask8 __M, __m128 __A) { - return (__m128)__builtin_ia32_broadcastss128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), __M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastsd_pd(__m256d __O, __mmask8 __M, __m128d __A) { - return (__m256d)__builtin_ia32_broadcastsd256_mask((__v2df)__A, (__v4df)__O, - __M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastsd_pd(__mmask8 __M, __m128d __A) { - return (__m256d)__builtin_ia32_broadcastsd256_mask( - (__v2df)__A, (__v4df)_mm256_setzero_pd(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastd_epi32(__m256i __O, __mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastd256_mask((__v4si)__A, (__v8si)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastd_epi32(__mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastd256_mask( - (__v4si)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_set1_epi32(__m256i __O, __mmask8 __M, int __A) { - return (__m256i)__builtin_ia32_pbroadcastd256_gpr_mask(__A, (__v8si)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_set1_epi32(__mmask8 __M, int __A) { - return (__m256i)__builtin_ia32_pbroadcastd256_gpr_mask( - __A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcastd_epi32(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastd128_mask((__v4si)__A, (__v4si)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcastd_epi32(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastd128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_set1_epi32(__m128i __O, __mmask8 __M, int __A) { - return (__m128i)__builtin_ia32_pbroadcastd128_gpr_mask(__A, (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_set1_epi32(__mmask8 __M, int __A) { - return (__m128i)__builtin_ia32_pbroadcastd128_gpr_mask( - __A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastq_epi64(__m256i __O, __mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastq256_mask((__v2di)__A, (__v4di)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastq_epi64(__mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastq256_mask( - (__v2di)__A, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_set1_epi64(__m256i __O, __mmask8 __M, long long __A) { - return (__m256i)__builtin_ia32_pbroadcastq256_gpr_mask(__A, (__v4di)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_set1_epi64(__mmask8 __M, long long __A) { - return (__m256i)__builtin_ia32_pbroadcastq256_gpr_mask( - __A, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcastq_epi64(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastq128_mask((__v2di)__A, (__v2di)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcastq_epi64(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastq128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_set1_epi64(__m128i __O, __mmask8 __M, long long __A) { - return (__m128i)__builtin_ia32_pbroadcastq128_gpr_mask(__A, (__v2di)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_set1_epi64(__mmask8 __M, long long __A) { - return (__m128i)__builtin_ia32_pbroadcastq128_gpr_mask( - __A, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_f32x4(__m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x4_256_mask( - (__v4sf)__A, (__v8sf)_mm256_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_f32x4(__m256 __O, __mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x4_256_mask((__v4sf)__A, - (__v8sf)__O, __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_f32x4(__mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x4_256_mask( - (__v4sf)__A, (__v8sf)_mm256_setzero_ps(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_i32x4(__m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x4_256_mask( - (__v4si)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_i32x4(__m256i __O, __mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x4_256_mask((__v4si)__A, - (__v8si)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_i32x4(__mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x4_256_mask( - (__v4si)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi8_epi32(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbd256_mask((__v16qi)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi8_epi32(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbd256_mask( - (__v16qi)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi8_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbd128_mask((__v16qi)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi8_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbd128_mask( - (__v16qi)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi8_epi64(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbq256_mask((__v16qi)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi8_epi64(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbq256_mask( - (__v16qi)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi8_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbq128_mask((__v16qi)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi8_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbq128_mask( - (__v16qi)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi16_epi32(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxwd256_mask((__v8hi)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi16_epi32(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxwd256_mask( - (__v8hi)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi16_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxwd128_mask((__v8hi)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi16_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxwd128_mask( - (__v8hi)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi16_epi64(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxwq256_mask((__v8hi)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi16_epi64(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxwq256_mask( - (__v8hi)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi16_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxwq128_mask((__v8hi)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi16_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxwq128_mask( - (__v8hi)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_epi64(__m256i __W, __mmask8 __U, __m128i __X) { - return (__m256i)__builtin_ia32_pmovsxdq256_mask((__v4si)__X, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi32_epi64(__mmask8 __U, __m128i __X) { - return (__m256i)__builtin_ia32_pmovsxdq256_mask( - (__v4si)__X, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_epi64(__m128i __W, __mmask8 __U, __m128i __X) { - return (__m128i)__builtin_ia32_pmovsxdq128_mask((__v4si)__X, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi32_epi64(__mmask8 __U, __m128i __X) { - return (__m128i)__builtin_ia32_pmovsxdq128_mask( - (__v4si)__X, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu8_epi32(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbd256_mask((__v16qi)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu8_epi32(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbd256_mask( - (__v16qi)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu8_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbd128_mask((__v16qi)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu8_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbd128_mask( - (__v16qi)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu8_epi64(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbq256_mask((__v16qi)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu8_epi64(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbq256_mask( - (__v16qi)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu8_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbq128_mask((__v16qi)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu8_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbq128_mask( - (__v16qi)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu16_epi32(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxwd256_mask((__v8hi)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu16_epi32(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxwd256_mask( - (__v8hi)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu16_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxwd128_mask((__v8hi)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu16_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxwd128_mask( - (__v8hi)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu16_epi64(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxwq256_mask((__v8hi)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu16_epi64(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxwq256_mask( - (__v8hi)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu16_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxwq128_mask((__v8hi)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu16_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxwq128_mask( - (__v8hi)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu32_epi64(__m256i __W, __mmask8 __U, __m128i __X) { - return (__m256i)__builtin_ia32_pmovzxdq256_mask((__v4si)__X, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu32_epi64(__mmask8 __U, __m128i __X) { - return (__m256i)__builtin_ia32_pmovzxdq256_mask( - (__v4si)__X, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu32_epi64(__m128i __W, __mmask8 __U, __m128i __X) { - return (__m128i)__builtin_ia32_pmovzxdq128_mask((__v4si)__X, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu32_epi64(__mmask8 __U, __m128i __X) { - return (__m128i)__builtin_ia32_pmovzxdq128_mask( - (__v4si)__X, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rcp14_pd(__m256d __A) { - return (__m256d)__builtin_ia32_rcp14pd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_rcp14_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_rcp14pd256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rcp14_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_rcp14pd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp14_pd(__m128d __A) { - return (__m128d)__builtin_ia32_rcp14pd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp14_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_rcp14pd128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp14_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_rcp14pd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rcp14_ps(__m256 __A) { - return (__m256)__builtin_ia32_rcp14ps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_rcp14_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_rcp14ps256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rcp14_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_rcp14ps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp14_ps(__m128 __A) { - return (__m128)__builtin_ia32_rcp14ps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp14_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_rcp14ps128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp14_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_rcp14ps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rsqrt14_pd(__m256d __A) { - return (__m256d)__builtin_ia32_rsqrt14pd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_rsqrt14_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_rsqrt14pd256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rsqrt14_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_rsqrt14pd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt14_pd(__m128d __A) { - return (__m128d)__builtin_ia32_rsqrt14pd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt14_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_rsqrt14pd128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rsqrt14_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_rsqrt14pd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rsqrt14_ps(__m256 __A) { - return (__m256)__builtin_ia32_rsqrt14ps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_rsqrt14_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_rsqrt14ps256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rsqrt14_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_rsqrt14ps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt14_ps(__m128 __A) { - return (__m128)__builtin_ia32_rsqrt14ps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt14_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_rsqrt14ps128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rsqrt14_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_rsqrt14ps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sqrt_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_sqrtpd256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sqrt_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_sqrtpd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sqrt_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_sqrtpd128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sqrt_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_sqrtpd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sqrt_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_sqrtps256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sqrt_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_sqrtps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sqrt_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_sqrtps128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sqrt_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_sqrtps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_add_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_add_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sub_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sub_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_getexp_ps(__m256 __A) { - return (__m256)__builtin_ia32_getexpps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_getexp_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_getexpps256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_getexp_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_getexpps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_getexp_pd(__m256d __A) { - return (__m256d)__builtin_ia32_getexppd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_getexp_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_getexppd256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_getexp_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_getexppd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_ps(__m128 __A) { - return (__m128)__builtin_ia32_getexpps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_getexpps128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getexp_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_getexpps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_pd(__m128d __A) { - return (__m128d)__builtin_ia32_getexppd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_getexppd128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getexp_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_getexppd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srl_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrld256_mask((__v8si)__A, (__v4si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srl_epi32(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrld256_mask( - (__v8si)__A, (__v4si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srl_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrld128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srl_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrld128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srl_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlq256_mask((__v4di)__A, (__v2di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srl_epi64(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlq256_mask( - (__v4di)__A, (__v2di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srl_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srl_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_and_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_and_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_scalef_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_scalefpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_scalef_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_scalefpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_scalef_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_scalefpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_scalef_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_scalefps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_scalef_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_scalefps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_scalef_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_scalefps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_scalefpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_scalef_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_scalefpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_scalef_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_scalefpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_scalefps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_scalef_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_scalefps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_scalef_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_scalefps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmadd_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmadd_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfmaddpd256_mask3((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmadd_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256_maskz((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmaddpd128_mask3((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd128_maskz((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmadd_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmadd_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfmaddps256_mask3((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmadd_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256_maskz((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmaddps128_mask3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps128_maskz((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmsub_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmsubpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmsub_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfmsubpd256_mask3((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmsub_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmsubpd256_maskz((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmsubpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmsubpd128_mask3((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmsubpd128_maskz((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmsub_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmsubps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmsub_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfmsubps256_mask3((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmsub_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmsubps256_maskz((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmsubps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmsubps128_mask3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmsubps128_maskz((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_fmaddsub_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask3_fmaddsub_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfmaddsubpd256_mask3( - (__v4df)__A, (__v4df)__B, (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_fmaddsub_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256_maskz( - (__v4df)__A, (__v4df)__B, (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmaddsub_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmaddsub_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmaddsubpd128_mask3( - (__v2df)__A, (__v2df)__B, (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmaddsub_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd128_maskz( - (__v2df)__A, (__v2df)__B, (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmaddsub_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmaddsub_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfmaddsubps256_mask3( - (__v8sf)__A, (__v8sf)__B, (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmaddsub_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256_maskz( - (__v8sf)__A, (__v8sf)__B, (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmaddsub_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmaddsub_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmaddsubps128_mask3( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmaddsub_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps128_maskz( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_fmsubadd_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256_mask( - (__v4df)__A, (__v4df)__B, -(__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask3_fmsubadd_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfmsubaddpd256_mask3( - (__v4df)__A, (__v4df)__B, (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_fmsubadd_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256_maskz( - (__v4df)__A, (__v4df)__B, -(__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsubadd_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd128_mask( - (__v2df)__A, (__v2df)__B, -(__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsubadd_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmsubaddpd128_mask3( - (__v2df)__A, (__v2df)__B, (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsubadd_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd128_maskz( - (__v2df)__A, (__v2df)__B, -(__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmsubadd_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256_mask( - (__v8sf)__A, (__v8sf)__B, -(__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmsubadd_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfmsubaddps256_mask3( - (__v8sf)__A, (__v8sf)__B, (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmsubadd_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256_maskz( - (__v8sf)__A, (__v8sf)__B, -(__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsubadd_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps128_mask( - (__v4sf)__A, (__v4sf)__B, -(__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsubadd_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmsubaddps128_mask3( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsubadd_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps128_maskz( - (__v4sf)__A, (__v4sf)__B, -(__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fnmadd_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmaddpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask3_fnmadd_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfnmaddpd256_mask3((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_fnmadd_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmaddpd256_maskz((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmaddpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfnmaddpd128_mask3((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmaddpd128_maskz((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fnmadd_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmaddps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fnmadd_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfnmaddps256_mask3((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fnmadd_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmaddps256_maskz((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmaddps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfnmaddps128_mask3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmaddps128_maskz((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fnmsub_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmsubpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask3_fnmsub_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfnmsubpd256_mask3((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_fnmsub_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmsubpd256_maskz((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmsubpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfnmsubpd128_mask3((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmsubpd128_maskz((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fnmsub_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmsubps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fnmsub_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfnmsubps256_mask3((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fnmsub_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmsubps256_maskz((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmsubps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfnmsubps128_mask3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmsubps128_maskz((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_and_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_and_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_andnot_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandnd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_andnot_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandnd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_andnot_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandnd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_andnot_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandnd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_or_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pord256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_or_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pord256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_or_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8su)__A | (__v8su)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_or_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pord128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_or_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pord128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4su)__A | (__v4su)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_xor_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pxord256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_xor_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pxord256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_xor_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8su)__A ^ (__v8su)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_xor_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pxord128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_xor_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pxord128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4su)__A ^ (__v4su)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtpd_ps(__m128 __W, __mmask8 __U, __m128d __A) { - return (__m128)__builtin_ia32_cvtpd2ps_mask((__v2df)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtpd_ps(__mmask8 __U, __m128d __A) { - return (__m128)__builtin_ia32_cvtpd2ps_mask( - (__v2df)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtpd_ps(__m128 __W, __mmask8 __U, __m256d __A) { - return (__m128)__builtin_ia32_cvtpd2ps256_mask((__v4df)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtpd_ps(__mmask8 __U, __m256d __A) { - return (__m128)__builtin_ia32_cvtpd2ps256_mask( - (__v4df)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_epi32(__m256i __W, __mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvtps2dq256_mask((__v8sf)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_epi32(__mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvtps2dq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_epi32(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2dq128_mask((__v4sf)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_epi32(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2dq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_epu32(__m256 __A) { - return (__m256i)__builtin_ia32_cvtps2udq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_epu32(__m256i __W, __mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvtps2udq256_mask((__v8sf)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_epu32(__mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvtps2udq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_epu32(__m128 __A) { - return (__m128i)__builtin_ia32_cvtps2udq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_epu32(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2udq128_mask((__v4sf)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_epu32(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2udq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_movedup_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_movddup256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_movedup_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_movddup256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_movedup_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_movddup128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_movedup_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_movddup128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_movehdup_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movshdup256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_movehdup_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movshdup256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_movehdup_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movshdup128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_movehdup_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movshdup128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_moveldup_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movsldup256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_moveldup_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movsldup256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_moveldup_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movsldup128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_moveldup_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movsldup128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpackhi_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhdq128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhdq128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpackhi_epi32(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpckhdq256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhdq256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpackhi_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhqdq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhqdq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpackhi_epi64(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpckhqdq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhqdq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpacklo_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckldq128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckldq128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpacklo_epi32(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpckldq256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckldq256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpacklo_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklqdq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklqdq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpacklo_epi64(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpcklqdq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklqdq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epu32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__A, (__v4si)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqd128_mask((__v4si)__A, (__v4si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epu32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__A, (__v4si)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epi32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqd128_mask((__v4si)__A, (__v4si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epu32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__A, (__v8si)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpeqd256_mask((__v8si)__A, (__v8si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epu32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__A, (__v8si)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epi32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpeqd256_mask((__v8si)__A, (__v8si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epu64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__A, (__v2di)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq128_mask((__v2di)__A, (__v2di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epu64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__A, (__v2di)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epi64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq128_mask((__v2di)__A, (__v2di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epu64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__A, (__v4di)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq256_mask((__v4di)__A, (__v4di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epu64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__A, (__v4di)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epi64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq256_mask((__v4di)__A, (__v4di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epu32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__A, (__v4si)__B, 6, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtd128_mask((__v4si)__A, (__v4si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epu32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__A, (__v4si)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epi32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtd128_mask((__v4si)__A, (__v4si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epu32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__A, (__v8si)__B, 6, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpgtd256_mask((__v8si)__A, (__v8si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epu32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__A, (__v8si)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epi32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpgtd256_mask((__v8si)__A, (__v8si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epu64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__A, (__v2di)__B, 6, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq128_mask((__v2di)__A, (__v2di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epu64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__A, (__v2di)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epi64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq128_mask((__v2di)__A, (__v2di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epu64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__A, (__v4di)__B, 6, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq256_mask((__v4di)__A, (__v4di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epu64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__A, (__v4di)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epi64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq256_mask((__v4di)__A, (__v4di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_test_epi32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmd128((__v4si)__A, (__v4si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_test_epi32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmd128((__v4si)__A, (__v4si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_test_epi32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestmd256((__v8si)__A, (__v8si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_test_epi32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestmd256((__v8si)__A, (__v8si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_test_epi64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmq128((__v2di)__A, (__v2di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_test_epi64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmq128((__v2di)__A, (__v2di)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_test_epi64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestmq256((__v4di)__A, (__v4di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_test_epi64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestmq256((__v4di)__A, (__v4di)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testn_epi32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmd128((__v4si)__A, (__v4si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_testn_epi32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmd128((__v4si)__A, (__v4si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testn_epi32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestnmd256((__v8si)__A, (__v8si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_testn_epi32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestnmd256((__v8si)__A, (__v8si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testn_epi64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmq128((__v2di)__A, (__v2di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_testn_epi64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmq128((__v2di)__A, (__v2di)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testn_epi64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestnmq256((__v4di)__A, (__v4di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_testn_epi64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestnmq256((__v4di)__A, (__v4di)__B, __U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_compressdf256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_compressdf256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_pd(void *__P, __mmask8 __U, __m256d __A) { - __builtin_ia32_compressstoredf256_mask((__v4df *)__P, (__v4df)__A, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_compressdf128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_compressdf128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_pd(void *__P, __mmask8 __U, __m128d __A) { - __builtin_ia32_compressstoredf128_mask((__v2df *)__P, (__v2df)__A, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_compresssf256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_compresssf256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_ps(void *__P, __mmask8 __U, __m256 __A) { - __builtin_ia32_compressstoresf256_mask((__v8sf *)__P, (__v8sf)__A, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_compresssf128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_compresssf128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_ps(void *__P, __mmask8 __U, __m128 __A) { - __builtin_ia32_compressstoresf128_mask((__v4sf *)__P, (__v4sf)__A, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_compressdi256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_compressdi256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_epi64(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_compressstoredi256_mask((__v4di *)__P, (__v4di)__A, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_compressdi128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_compressdi128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_epi64(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_compressstoredi128_mask((__v2di *)__P, (__v2di)__A, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_compresssi256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_compresssi256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_epi32(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_compressstoresi256_mask((__v8si *)__P, (__v8si)__A, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_compresssi128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_compresssi128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_epi32(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_compressstoresi128_mask((__v4si *)__P, (__v4si)__A, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_expanddf256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_expanddf256_maskz( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_pd(__m256d __W, __mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_expandloaddf256_mask( - (__v4df *)__P, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_pd(__mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_expandloaddf256_maskz( - (__v4df *)__P, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_expanddf128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_expanddf128_maskz( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_pd(__m128d __W, __mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_expandloaddf128_mask( - (__v2df *)__P, (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_pd(__mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_expandloaddf128_maskz( - (__v2df *)__P, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_expandsf256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_expandsf256_maskz( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_ps(__m256 __W, __mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_expandloadsf256_mask((__v8sf *)__P, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_ps(__mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_expandloadsf256_maskz( - (__v8sf *)__P, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_expandsf128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_expandsf128_maskz( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_ps(__m128 __W, __mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_expandloadsf128_mask((__v4sf *)__P, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_ps(__mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_expandloadsf128_maskz( - (__v4sf *)__P, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_expanddi256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_expanddi256_maskz( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_epi64(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_expandloaddi256_mask( - (__v4di *)__P, (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_epi64(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_expandloaddi256_maskz( - (__v4di *)__P, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_expanddi128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_expanddi128_maskz( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_epi64(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_expandloaddi128_mask( - (__v2di *)__P, (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_epi64(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_expandloaddi128_maskz( - (__v2di *)__P, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_expandsi256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_expandsi256_maskz( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_epi32(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_expandloadsi256_mask( - (__v8si *)__P, (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_epi32(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_expandloadsi256_maskz( - (__v8si *)__P, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_expandsi128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_expandsi128_maskz( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_epi32(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_expandloadsi128_mask( - (__v4si *)__P, (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_epi32(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_expandloadsi128_maskz( - (__v4si *)__P, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_pd(__m256d __A, __m256i __I, __m256d __B) { - return (__m256d)__builtin_ia32_vpermt2varpd256_mask( - (__v4di)__I, (__v4df)__A, (__v4df)__B, (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex2var_pd(__m256d __A, __mmask8 __U, __m256i __I, - __m256d __B) { - return (__m256d)__builtin_ia32_vpermt2varpd256_mask( - (__v4di)__I, (__v4df)__A, (__v4df)__B, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_pd(__m256d __A, __m256i __I, __mmask8 __U, - __m256d __B) { - return (__m256d)__builtin_ia32_vpermi2varpd256_mask( - (__v4df)__A, (__v4di)__I, (__v4df)__B, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_pd(__mmask8 __U, __m256d __A, __m256i __I, - __m256d __B) { - return (__m256d)__builtin_ia32_vpermt2varpd256_maskz( - (__v4di)__I, (__v4df)__A, (__v4df)__B, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_ps(__m256 __A, __m256i __I, __m256 __B) { - return (__m256)__builtin_ia32_vpermt2varps256_mask((__v8si)__I, (__v8sf)__A, - (__v8sf)__B, (__mmask8)-1); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permutex2var_ps(__m256 __A, __mmask8 __U, __m256i __I, __m256 __B) { - return (__m256)__builtin_ia32_vpermt2varps256_mask( - (__v8si)__I, (__v8sf)__A, (__v8sf)__B, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_ps(__m256 __A, __m256i __I, __mmask8 __U, - __m256 __B) { - return (__m256)__builtin_ia32_vpermi2varps256_mask( - (__v8sf)__A, (__v8si)__I, (__v8sf)__B, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_ps(__mmask8 __U, __m256 __A, __m256i __I, - __m256 __B) { - return (__m256)__builtin_ia32_vpermt2varps256_maskz( - (__v8si)__I, (__v8sf)__A, (__v8sf)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_epi64(__m128i __A, __m128i __I, __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varq128_mask((__v2di)__I, (__v2di)__A, - (__v2di)__B, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutex2var_epi64(__m128i __A, __mmask8 __U, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varq128_mask( - (__v2di)__I, (__v2di)__A, (__v2di)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask2_permutex2var_epi64(__m128i __A, __m128i __I, __mmask8 __U, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermi2varq128_mask( - (__v2di)__A, (__v2di)__I, (__v2di)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutex2var_epi64(__mmask8 __U, __m128i __A, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varq128_maskz( - (__v2di)__I, (__v2di)__A, (__v2di)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_epi32(__m128i __A, __m128i __I, __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2vard128_mask((__v4si)__I, (__v4si)__A, - (__v4si)__B, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutex2var_epi32(__m128i __A, __mmask8 __U, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2vard128_mask( - (__v4si)__I, (__v4si)__A, (__v4si)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask2_permutex2var_epi32(__m128i __A, __m128i __I, __mmask8 __U, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermi2vard128_mask( - (__v4si)__A, (__v4si)__I, (__v4si)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutex2var_epi32(__mmask8 __U, __m128i __A, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2vard128_maskz( - (__v4si)__I, (__v4si)__A, (__v4si)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_epi64(__m256i __A, __m256i __I, __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varq256_mask((__v4di)__I, (__v4di)__A, - (__v4di)__B, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex2var_epi64(__m256i __A, __mmask8 __U, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varq256_mask( - (__v4di)__I, (__v4di)__A, (__v4di)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_epi64(__m256i __A, __m256i __I, __mmask8 __U, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermi2varq256_mask( - (__v4di)__A, (__v4di)__I, (__v4di)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_epi64(__mmask8 __U, __m256i __A, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varq256_maskz( - (__v4di)__I, (__v4di)__A, (__v4di)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_epi32(__m256i __A, __m256i __I, __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2vard256_mask((__v8si)__I, (__v8si)__A, - (__v8si)__B, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex2var_epi32(__m256i __A, __mmask8 __U, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2vard256_mask( - (__v8si)__I, (__v8si)__A, (__v8si)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_epi32(__m256i __A, __m256i __I, __mmask8 __U, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermi2vard256_mask( - (__v8si)__A, (__v8si)__I, (__v8si)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_epi32(__mmask8 __U, __m256i __A, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2vard256_maskz( - (__v8si)__I, (__v8si)__A, (__v8si)__B, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_pd(__m128d __A, __m128i __I, __m128d __B) { - return (__m128d)__builtin_ia32_vpermt2varpd128_mask( - (__v2di)__I, (__v2df)__A, (__v2df)__B, (__mmask8)-1); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_permutex2var_pd(__m128d __A, __mmask8 __U, __m128i __I, __m128d __B) { - return (__m128d)__builtin_ia32_vpermt2varpd128_mask( - (__v2di)__I, (__v2df)__A, (__v2df)__B, (__mmask8)__U); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask2_permutex2var_pd(__m128d __A, __m128i __I, __mmask8 __U, __m128d __B) { - return (__m128d)__builtin_ia32_vpermi2varpd128_mask( - (__v2df)__A, (__v2di)__I, (__v2df)__B, (__mmask8)__U); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_permutex2var_pd(__mmask8 __U, __m128d __A, __m128i __I, __m128d __B) { - return (__m128d)__builtin_ia32_vpermt2varpd128_maskz( - (__v2di)__I, (__v2df)__A, (__v2df)__B, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_ps(__m128 __A, __m128i __I, __m128 __B) { - return (__m128)__builtin_ia32_vpermt2varps128_mask((__v4si)__I, (__v4sf)__A, - (__v4sf)__B, (__mmask8)-1); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_permutex2var_ps(__m128 __A, __mmask8 __U, __m128i __I, __m128 __B) { - return (__m128)__builtin_ia32_vpermt2varps128_mask( - (__v4si)__I, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask2_permutex2var_ps(__m128 __A, __m128i __I, __mmask8 __U, __m128 __B) { - return (__m128)__builtin_ia32_vpermi2varps128_mask( - (__v4sf)__A, (__v4si)__I, (__v4sf)__B, (__mmask8)__U); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_permutex2var_ps(__mmask8 __U, __m128 __A, __m128i __I, __m128 __B) { - return (__m128)__builtin_ia32_vpermt2varps128_maskz( - (__v4si)__I, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srav_epi64(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psravq128_mask( - (__v2di)__X, (__v2di)__Y, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srav_epi64(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psravq128_mask((__v2di)__X, (__v2di)__Y, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srav_epi64(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psravq128_mask( - (__v2di)__X, (__v2di)__Y, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sllv_epi32(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv8si_mask((__v8si)__X, (__v8si)__Y, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sllv_epi32(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv8si_mask( - (__v8si)__X, (__v8si)__Y, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sllv_epi32(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv4si_mask((__v4si)__X, (__v4si)__Y, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sllv_epi32(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv4si_mask( - (__v4si)__X, (__v4si)__Y, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sllv_epi64(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv4di_mask((__v4di)__X, (__v4di)__Y, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sllv_epi64(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv4di_mask( - (__v4di)__X, (__v4di)__Y, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sllv_epi64(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv2di_mask((__v2di)__X, (__v2di)__Y, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sllv_epi64(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv2di_mask( - (__v2di)__X, (__v2di)__Y, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srav_epi32(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrav8si_mask((__v8si)__X, (__v8si)__Y, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srav_epi32(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrav8si_mask( - (__v8si)__X, (__v8si)__Y, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srav_epi32(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrav4si_mask((__v4si)__X, (__v4si)__Y, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srav_epi32(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrav4si_mask( - (__v4si)__X, (__v4si)__Y, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srlv_epi32(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv8si_mask((__v8si)__X, (__v8si)__Y, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srlv_epi32(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv8si_mask( - (__v8si)__X, (__v8si)__Y, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srlv_epi32(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv4si_mask((__v4si)__X, (__v4si)__Y, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srlv_epi32(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv4si_mask( - (__v4si)__X, (__v4si)__Y, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srlv_epi64(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv4di_mask((__v4di)__X, (__v4di)__Y, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srlv_epi64(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv4di_mask( - (__v4di)__X, (__v4di)__Y, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srlv_epi64(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv2di_mask((__v2di)__X, (__v2di)__Y, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srlv_epi64(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv2di_mask( - (__v2di)__X, (__v2di)__Y, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rolv_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rolv_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rolv_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rolv_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rolv_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rolv_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rorv_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rorv_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rorv_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rorv_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rorv_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rorv_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rolv_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rolv_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rolv_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rolv_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rolv_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rolv_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rorv_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rorv_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rorv_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rorv_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rorv_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rorv_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srav_epi64(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psravq256_mask( - (__v4di)__X, (__v4di)__Y, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srav_epi64(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psravq256_mask((__v4di)__X, (__v4di)__Y, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srav_epi64(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psravq256_mask( - (__v4di)__X, (__v4di)__Y, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_and_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_and_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_pd(), __U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_and_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_and_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)_mm_setzero_pd(), __U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_andnot_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandnq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_andnot_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandnq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_pd(), __U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_andnot_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandnq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_andnot_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandnq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)_mm_setzero_pd(), __U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_or_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_porq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_or_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_porq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_or_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A | (__v4du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_or_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_porq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_or_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_porq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_epi64(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A | (__v2du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_xor_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pxorq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_xor_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pxorq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_xor_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A ^ (__v4du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_xor_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pxorq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_xor_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pxorq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_epi64(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A ^ (__v2du)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_maxpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_maxpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_maxps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_maxps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_divps_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_div_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_divps_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_divpd_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_div_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_divpd_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_minpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_div_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_divpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_minpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_minps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_div_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_divpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_div_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_divps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_minps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_div_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_divps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minps_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_mulps_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minps_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_mulps_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxps_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxps_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minpd_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minpd_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxpd_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxpd_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_mulpd_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_mulpd_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mul_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_mulps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mul_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_mulps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mul_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_mulpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mul_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_mulpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epi64(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epi64(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epi64(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epi64(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epu64(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epu64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epu64(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epu64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epu64(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epu64(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epi32(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epi32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epi32(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epi32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epu32(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxud256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epu32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxud256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epu32(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminud256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epu32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminud256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epi64(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epi64(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epi64(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epi64(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epu64(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxuq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxuq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epu64(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxuq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminuq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epu64(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminuq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epu64(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminuq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epi32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epi32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epu32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxud128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epu32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxud128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epu32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminud128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epu32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminud128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastmb_epi64(__mmask8 __A) { - return (__m128i)__builtin_ia32_broadcastmb128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastmb_epi64(__mmask8 __A) { - return (__m256i)__builtin_ia32_broadcastmb256(__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastmw_epi32(__mmask16 __A) { - return (__m128i)__builtin_ia32_broadcastmw128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastmw_epi32(__mmask16 __A) { - return (__m256i)__builtin_ia32_broadcastmw256(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_lzcnt_epi32(__m256i __A) { - return (__m256i)__builtin_ia32_vplzcntd_256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_lzcnt_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vplzcntd_256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_lzcnt_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vplzcntd_256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_lzcnt_epi64(__m256i __A) { - return (__m256i)__builtin_ia32_vplzcntq_256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_lzcnt_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vplzcntq_256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_lzcnt_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vplzcntq_256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_conflict_epi64(__m256i __A) { - return (__m256i)__builtin_ia32_vpconflictdi_256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_conflict_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpconflictdi_256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_conflict_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpconflictdi_256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_conflict_epi32(__m256i __A) { - return (__m256i)__builtin_ia32_vpconflictsi_256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_conflict_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpconflictsi_256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_conflict_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpconflictsi_256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_lzcnt_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_vplzcntd_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_lzcnt_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vplzcntd_128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_lzcnt_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vplzcntd_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_lzcnt_epi64(__m128i __A) { - return (__m128i)__builtin_ia32_vplzcntq_128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_lzcnt_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vplzcntq_128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_lzcnt_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vplzcntq_128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_conflict_epi64(__m128i __A) { - return (__m128i)__builtin_ia32_vpconflictdi_128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_conflict_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpconflictdi_128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_conflict_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpconflictdi_128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_conflict_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_vpconflictsi_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_conflict_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpconflictsi_128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_conflict_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpconflictsi_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_unpacklo_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpcklpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpcklpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_unpacklo_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpcklpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpcklpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpacklo_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpcklps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_unpackhi_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpckhpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpckhpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_unpackhi_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpckhpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpckhpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpackhi_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpckhps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpckhps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_unpackhi_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpckhps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpckhps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtph_ps(__m128 __W, __mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_vcvtph2ps_mask((__v8hi)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtph_ps(__mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_vcvtph2ps_mask( - (__v8hi)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpcklps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtph_ps(__m256 __W, __mmask8 __U, __m128i __A) { - return (__m256)__builtin_ia32_vcvtph2ps256_mask((__v8hi)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtph_ps(__mmask8 __U, __m128i __A) { - return (__m256)__builtin_ia32_vcvtph2ps256_mask( - (__v8hi)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_unpacklo_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpcklps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpcklps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sra_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrad256_mask((__v8si)__A, (__v4si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sra_epi32(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrad256_mask( - (__v8si)__A, (__v4si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sra_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrad128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sra_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrad128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sra_epi64(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraq256_mask( - (__v4di)__A, (__v2di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sra_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraq256_mask((__v4di)__A, (__v2di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sra_epi64(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraq256_mask( - (__v4di)__A, (__v2di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sra_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sra_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sra_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sll_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pslld128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sll_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pslld128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sll_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sll_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sll_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_pslld256_mask((__v8si)__A, (__v4si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sll_epi32(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_pslld256_mask( - (__v8si)__A, (__v4si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sll_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllq256_mask((__v4di)__A, (__v2di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sll_epi64(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllq256_mask( - (__v4di)__A, (__v2di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permutexvar_ps(__m256 __W, __mmask8 __U, __m256i __X, __m256 __Y) { - return (__m256)__builtin_ia32_permvarsf256_mask((__v8sf)__Y, (__v8si)__X, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_ps(__mmask8 __U, __m256i __X, __m256 __Y) { - return (__m256)__builtin_ia32_permvarsf256_mask( - (__v8sf)__Y, (__v8si)__X, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutexvar_pd(__m256i __X, __m256d __Y) { - return (__m256d)__builtin_ia32_permvardf256_mask( - (__v4df)__Y, (__v4di)__X, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutexvar_pd(__m256d __W, __mmask8 __U, __m256i __X, - __m256d __Y) { - return (__m256d)__builtin_ia32_permvardf256_mask((__v4df)__Y, (__v4di)__X, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_pd(__mmask8 __U, __m256i __X, __m256d __Y) { - return (__m256d)__builtin_ia32_permvardf256_mask( - (__v4df)__Y, (__v4di)__X, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permutevar_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256i __C) { - return (__m256d)__builtin_ia32_vpermilvarpd256_mask( - (__v4df)__A, (__v4di)__C, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutevar_pd(__mmask8 __U, __m256d __A, __m256i __C) { - return (__m256d)__builtin_ia32_vpermilvarpd256_mask( - (__v4df)__A, (__v4di)__C, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permutevar_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256i __C) { - return (__m256)__builtin_ia32_vpermilvarps256_mask( - (__v8sf)__A, (__v8si)__C, (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutevar_ps(__mmask8 __U, __m256 __A, __m256i __C) { - return (__m256)__builtin_ia32_vpermilvarps256_mask( - (__v8sf)__A, (__v8si)__C, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_permutevar_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128i __C) { - return (__m128d)__builtin_ia32_vpermilvarpd_mask((__v2df)__A, (__v2di)__C, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutevar_pd(__mmask8 __U, __m128d __A, __m128i __C) { - return (__m128d)__builtin_ia32_vpermilvarpd_mask( - (__v2df)__A, (__v2di)__C, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutevar_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128i __C) { - return (__m128)__builtin_ia32_vpermilvarps_mask((__v4sf)__A, (__v4si)__C, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutevar_ps(__mmask8 __U, __m128 __A, __m128i __C) { - return (__m128)__builtin_ia32_vpermilvarps_mask( - (__v4sf)__A, (__v4si)__C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mullo_epi32(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulld256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_epi64(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_permvardi256_mask( - (__v4di)__Y, (__v4di)__X, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mullo_epi32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulld256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mullo_epi32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulld128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mullo_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulld128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mul_epi32(__m256i __W, __mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmuldq256_mask((__v8si)__X, (__v8si)__Y, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mul_epi32(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmuldq256_mask( - (__v8si)__X, (__v8si)__Y, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_epi32(__m128i __W, __mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmuldq128_mask((__v4si)__X, (__v4si)__Y, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_epi32(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmuldq128_mask( - (__v4si)__X, (__v4si)__Y, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutexvar_epi64(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_permvardi256_mask( - (__v4di)__Y, (__v4di)__X, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutexvar_epi64(__m256i __W, __mmask8 __M, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_permvardi256_mask((__v4di)__Y, (__v4di)__X, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mul_epu32(__m256i __W, __mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmuludq256_mask((__v8si)__X, (__v8si)__Y, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_epi32(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_permvarsi256_mask( - (__v8si)__Y, (__v8si)__X, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mul_epu32(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmuludq256_mask( - (__v8si)__X, (__v8si)__Y, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_epu32(__m128i __W, __mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmuludq128_mask((__v4si)__X, (__v4si)__Y, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_epu32(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmuludq128_mask( - (__v4si)__X, (__v4si)__Y, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutexvar_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_permvarsi256_mask( - (__v8si)__Y, (__v8si)__X, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutexvar_epi32(__m256i __W, __mmask8 __M, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_permvarsi256_mask((__v8si)__Y, (__v8si)__X, - (__v8si)__W, __M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epu32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epu32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epu32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epu32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epu32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epu32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epu32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epu32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epu64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epu64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epu64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epu64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epu64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epu64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epu64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epu64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epi32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epi32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epi32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epi32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epi32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epi32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epi32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epi32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epi64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epi64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epi64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epi64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epi64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epi64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epi64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epi64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epu32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epu32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epu32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epu32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epu32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epu32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epu32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epu32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epu64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epu64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epu64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epu64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epu64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epu64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epu64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epu64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epi32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epi32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epi32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epi32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epi32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epi32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epi32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epi64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epi64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epi64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epi64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epi64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epi64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epi64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex_epi64(__m256i __X, const int __I) { - return (__m256i)__builtin_ia32_permdi256_mask( - (__v4di)__X, __I, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex_epi64(__m256i __W, __mmask8 __M, __m256i __X, - const int __I) { - return (__m256i)__builtin_ia32_permdi256_mask((__v4di)__X, __I, (__v4di)__W, - (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex_epi64(__mmask8 __M, __m256i __X, const int __I) { - return (__m256i)__builtin_ia32_permdi256_mask( - (__v4di)__X, __I, (__v4di)_mm256_setzero_si256(), (__mmask8)__M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B, - const int __imm) { - return (__m256d)__builtin_ia32_shufpd256_mask((__v4df)__A, (__v4df)__B, __imm, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_pd(__mmask8 __U, __m256d __A, __m256d __B, - const int __imm) { - return (__m256d)__builtin_ia32_shufpd256_mask((__v4df)__A, (__v4df)__B, __imm, - (__v4df)_mm256_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shuffle_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __imm) { - return (__m128d)__builtin_ia32_shufpd128_mask((__v2df)__A, (__v2df)__B, __imm, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_shuffle_pd(__mmask8 __U, __m128d __A, __m128d __B, const int __imm) { - return (__m128d)__builtin_ia32_shufpd128_mask( - (__v2df)__A, (__v2df)__B, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B, - const int __imm) { - return (__m256)__builtin_ia32_shufps256_mask((__v8sf)__A, (__v8sf)__B, __imm, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shuffle_ps(__mmask8 __U, __m256 __A, __m256 __B, const int __imm) { - return (__m256)__builtin_ia32_shufps256_mask((__v8sf)__A, (__v8sf)__B, __imm, - (__v8sf)_mm256_setzero_ps(), - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shuffle_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __imm) { - return (__m128)__builtin_ia32_shufps128_mask((__v4sf)__A, (__v4sf)__B, __imm, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_shuffle_ps(__mmask8 __U, __m128 __A, __m128 __B, const int __imm) { - return (__m128)__builtin_ia32_shufps128_mask( - (__v4sf)__A, (__v4sf)__B, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_inserti32x4(__m256i __A, __m128i __B, const int __imm) { - return (__m256i)__builtin_ia32_inserti32x4_256_mask( - (__v8si)__A, (__v4si)__B, __imm, (__v8si)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_inserti32x4(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B, - const int __imm) { - return (__m256i)__builtin_ia32_inserti32x4_256_mask( - (__v8si)__A, (__v4si)__B, __imm, (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_inserti32x4(__mmask8 __U, __m256i __A, __m128i __B, - const int __imm) { - return (__m256i)__builtin_ia32_inserti32x4_256_mask( - (__v8si)__A, (__v4si)__B, __imm, (__v8si)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insertf32x4(__m256 __A, __m128 __B, const int __imm) { - return (__m256)__builtin_ia32_insertf32x4_256_mask( - (__v8sf)__A, (__v4sf)__B, __imm, (__v8sf)_mm256_setzero_ps(), - (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_insertf32x4(__m256 __W, __mmask8 __U, __m256 __A, __m128 __B, - const int __imm) { - return (__m256)__builtin_ia32_insertf32x4_256_mask( - (__v8sf)__A, (__v4sf)__B, __imm, (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_insertf32x4(__mmask8 __U, __m256 __A, __m128 __B, - const int __imm) { - return (__m256)__builtin_ia32_insertf32x4_256_mask( - (__v8sf)__A, (__v4sf)__B, __imm, (__v8sf)_mm256_setzero_ps(), - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extracti32x4_epi32(__m256i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_256_mask( - (__v8si)__A, __imm, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_extracti32x4_epi32(__m128i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_256_mask( - (__v8si)__A, __imm, (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_extracti32x4_epi32(__mmask8 __U, __m256i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_256_mask( - (__v8si)__A, __imm, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extractf32x4_ps(__m256 __A, const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_256_mask( - (__v8sf)__A, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_extractf32x4_ps(__m128 __W, __mmask8 __U, __m256 __A, - const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_256_mask( - (__v8sf)__A, __imm, (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_extractf32x4_ps(__mmask8 __U, __m256 __A, const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_256_mask( - (__v8sf)__A, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_i64x2(__m256i __A, __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_shuf_i64x2_256_mask( - (__v4di)__A, (__v4di)__B, __imm, (__v4di)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_i64x2(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_shuf_i64x2_256_mask( - (__v4di)__A, (__v4di)__B, __imm, (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_i64x2(__mmask8 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_shuf_i64x2_256_mask( - (__v4di)__A, (__v4di)__B, __imm, (__v4di)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_i32x4(__m256i __A, __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_shuf_i32x4_256_mask( - (__v8si)__A, (__v8si)__B, __imm, (__v8si)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_i32x4(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_shuf_i32x4_256_mask( - (__v8si)__A, (__v8si)__B, __imm, (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_i32x4(__mmask8 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_shuf_i32x4_256_mask( - (__v8si)__A, (__v8si)__B, __imm, (__v8si)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_f64x2(__m256d __A, __m256d __B, const int __imm) { - return (__m256d)__builtin_ia32_shuf_f64x2_256_mask( - (__v4df)__A, (__v4df)__B, __imm, (__v4df)_mm256_setzero_pd(), - (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_f64x2(__m256d __W, __mmask8 __U, __m256d __A, - __m256d __B, const int __imm) { - return (__m256d)__builtin_ia32_shuf_f64x2_256_mask( - (__v4df)__A, (__v4df)__B, __imm, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_f64x2(__mmask8 __U, __m256d __A, __m256d __B, - const int __imm) { - return (__m256d)__builtin_ia32_shuf_f64x2_256_mask( - (__v4df)__A, (__v4df)__B, __imm, (__v4df)_mm256_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_f32x4(__m256 __A, __m256 __B, const int __imm) { - return (__m256)__builtin_ia32_shuf_f32x4_256_mask( - (__v8sf)__A, (__v8sf)__B, __imm, (__v8sf)_mm256_setzero_ps(), - (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_f32x4(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B, - const int __imm) { - return (__m256)__builtin_ia32_shuf_f32x4_256_mask( - (__v8sf)__A, (__v8sf)__B, __imm, (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_f32x4(__mmask8 __U, __m256 __A, __m256 __B, - const int __imm) { - return (__m256)__builtin_ia32_shuf_f32x4_256_mask( - (__v8sf)__A, (__v8sf)__B, __imm, (__v8sf)_mm256_setzero_ps(), - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fixupimm_pd(__m256d __A, __m256d __B, __m256i __C, const int __imm) { - return (__m256d)__builtin_ia32_fixupimmpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4di)__C, __imm, (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fixupimm_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256i __C, - const int __imm) { - return (__m256d)__builtin_ia32_fixupimmpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fixupimm_pd(__mmask8 __U, __m256d __A, __m256d __B, - __m256i __C, const int __imm) { - return (__m256d)__builtin_ia32_fixupimmpd256_maskz( - (__v4df)__A, (__v4df)__B, (__v4di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fixupimm_ps(__m256 __A, __m256 __B, __m256i __C, const int __imm) { - return (__m256)__builtin_ia32_fixupimmps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8si)__C, __imm, (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fixupimm_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256i __C, - const int __imm) { - return (__m256)__builtin_ia32_fixupimmps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fixupimm_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256i __C, - const int __imm) { - return (__m256)__builtin_ia32_fixupimmps256_maskz( - (__v8sf)__A, (__v8sf)__B, (__v8si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_pd(__m128d __A, __m128d __B, __m128i __C, const int __imm) { - return (__m128d)__builtin_ia32_fixupimmpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128i __C, - const int __imm) { - return (__m128d)__builtin_ia32_fixupimmpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128i __C, - const int __imm) { - return (__m128d)__builtin_ia32_fixupimmpd128_maskz( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_ps(__m128 __A, __m128 __B, __m128i __C, const int __imm) { - return (__m128)__builtin_ia32_fixupimmps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128i __C, - const int __imm) { - return (__m128)__builtin_ia32_fixupimmps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128i __C, - const int __imm) { - return (__m128)__builtin_ia32_fixupimmps128_maskz( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srli_epi32(__m256i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psrldi256_mask((__v8si)__A, __imm, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srli_epi32(__mmask8 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psrldi256_mask( - (__v8si)__A, __imm, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srli_epi32(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrldi128_mask((__v4si)__A, __imm, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srli_epi32(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrldi128_mask( - (__v4si)__A, __imm, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srli_epi64(__m256i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psrlqi256_mask((__v4di)__A, __imm, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srli_epi64(__mmask8 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psrlqi256_mask( - (__v4di)__A, __imm, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srli_epi64(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrlqi128_mask((__v2di)__A, __imm, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srli_epi64(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrlqi128_mask( - (__v2di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_ternarylogic_epi64(__m256i __A, __m256i __B, __m256i __C, - const int __imm) { - return (__m256i)__builtin_ia32_pternlogq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)__C, __imm, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_ternarylogic_epi64(__m256i __A, __mmask8 __U, __m256i __B, - __m256i __C, const int __imm) { - return (__m256i)__builtin_ia32_pternlogq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_ternarylogic_epi64(__mmask8 __U, __m256i __A, __m256i __B, - __m256i __C, const int __imm) { - return (__m256i)__builtin_ia32_pternlogq256_maskz( - (__v4di)__A, (__v4di)__B, (__v4di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_ternarylogic_epi32(__m256i __A, __m256i __B, __m256i __C, - const int __imm) { - return (__m256i)__builtin_ia32_pternlogd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)__C, __imm, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_ternarylogic_epi32(__m256i __A, __mmask8 __U, __m256i __B, - __m256i __C, const int __imm) { - return (__m256i)__builtin_ia32_pternlogd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_ternarylogic_epi32(__mmask8 __U, __m256i __A, __m256i __B, - __m256i __C, const int __imm) { - return (__m256i)__builtin_ia32_pternlogd256_maskz( - (__v8si)__A, (__v8si)__B, (__v8si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_ternarylogic_epi64(__m128i __A, __m128i __B, __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)__C, __imm, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_ternarylogic_epi64(__m128i __A, __mmask8 __U, __m128i __B, - __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_ternarylogic_epi64(__mmask8 __U, __m128i __A, __m128i __B, - __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogq128_maskz( - (__v2di)__A, (__v2di)__B, (__v2di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_ternarylogic_epi32(__m128i __A, __m128i __B, __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)__C, __imm, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_ternarylogic_epi32(__m128i __A, __mmask8 __U, __m128i __B, - __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_ternarylogic_epi32(__mmask8 __U, __m128i __A, __m128i __B, - __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogd128_maskz( - (__v4si)__A, (__v4si)__B, (__v4si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_roundscale_ps(__m256 __A, const int __imm) { - return (__m256)__builtin_ia32_rndscaleps_256_mask( - (__v8sf)__A, __imm, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_roundscale_ps(__m256 __W, __mmask8 __U, __m256 __A, - const int __imm) { - return (__m256)__builtin_ia32_rndscaleps_256_mask((__v8sf)__A, __imm, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_roundscale_ps(__mmask8 __U, __m256 __A, const int __imm) { - return (__m256)__builtin_ia32_rndscaleps_256_mask( - (__v8sf)__A, __imm, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_roundscale_pd(__m256d __A, const int __imm) { - return (__m256d)__builtin_ia32_rndscalepd_256_mask( - (__v4df)__A, __imm, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_roundscale_pd(__m256d __W, __mmask8 __U, __m256d __A, - const int __imm) { - return (__m256d)__builtin_ia32_rndscalepd_256_mask( - (__v4df)__A, __imm, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_roundscale_pd(__mmask8 __U, __m256d __A, const int __imm) { - return (__m256d)__builtin_ia32_rndscalepd_256_mask( - (__v4df)__A, __imm, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_ps(__m128 __A, const int __imm) { - return (__m128)__builtin_ia32_rndscaleps_128_mask( - (__v4sf)__A, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_roundscale_ps(__m128 __W, __mmask8 __U, __m128 __A, const int __imm) { - return (__m128)__builtin_ia32_rndscaleps_128_mask((__v4sf)__A, __imm, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_roundscale_ps(__mmask8 __U, __m128 __A, const int __imm) { - return (__m128)__builtin_ia32_rndscaleps_128_mask( - (__v4sf)__A, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_pd(__m128d __A, const int __imm) { - return (__m128d)__builtin_ia32_rndscalepd_128_mask( - (__v2df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_roundscale_pd(__m128d __W, __mmask8 __U, __m128d __A, - const int __imm) { - return (__m128d)__builtin_ia32_rndscalepd_128_mask( - (__v2df)__A, __imm, (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_roundscale_pd(__mmask8 __U, __m128d __A, const int __imm) { - return (__m128d)__builtin_ia32_rndscalepd_128_mask( - (__v2df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_getmant_ps(__m256 __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256)__builtin_ia32_getmantps256_mask( - (__v8sf)__A, (__C << 2) | __B, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_getmant_ps(__m256 __W, __mmask8 __U, __m256 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256)__builtin_ia32_getmantps256_mask((__v8sf)__A, (__C << 2) | __B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_getmant_ps(__mmask8 __U, __m256 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256)__builtin_ia32_getmantps256_mask((__v8sf)__A, (__C << 2) | __B, - (__v8sf)_mm256_setzero_ps(), - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_ps(__m128 __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128)__builtin_ia32_getmantps128_mask( - (__v4sf)__A, (__C << 2) | __B, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_ps(__m128 __W, __mmask8 __U, __m128 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128)__builtin_ia32_getmantps128_mask((__v4sf)__A, (__C << 2) | __B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_ps(__mmask8 __U, __m128 __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128)__builtin_ia32_getmantps128_mask( - (__v4sf)__A, (__C << 2) | __B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_getmant_pd(__m256d __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256d)__builtin_ia32_getmantpd256_mask( - (__v4df)__A, (__C << 2) | __B, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_getmant_pd(__m256d __W, __mmask8 __U, __m256d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256d)__builtin_ia32_getmantpd256_mask( - (__v4df)__A, (__C << 2) | __B, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_getmant_pd(__mmask8 __U, __m256d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256d)__builtin_ia32_getmantpd256_mask( - (__v4df)__A, (__C << 2) | __B, (__v4df)_mm256_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_pd(__m128d __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128d)__builtin_ia32_getmantpd128_mask( - (__v2df)__A, (__C << 2) | __B, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_pd(__m128d __W, __mmask8 __U, __m128d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128d)__builtin_ia32_getmantpd128_mask( - (__v2df)__A, (__C << 2) | __B, (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_pd(__mmask8 __U, __m128d __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128d)__builtin_ia32_getmantpd128_mask( - (__v2df)__A, (__C << 2) | __B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i32gather_ps(__m256 __v1_old, __mmask8 __mask, __m256i __index, - void const *__addr, int __scale) { - return (__m256)__builtin_ia32_gather3siv8sf((__v8sf)__v1_old, __addr, - (__v8si)__index, __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i32gather_ps(__m128 __v1_old, __mmask8 __mask, __m128i __index, - void const *__addr, int __scale) { - return (__m128)__builtin_ia32_gather3siv4sf((__v4sf)__v1_old, __addr, - (__v4si)__index, __mask, __scale); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i32gather_pd(__m256d __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m256d)__builtin_ia32_gather3siv4df( - (__v4df)__v1_old, __addr, (__v4si)__index, __mask, __scale); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i32gather_pd(__m128d __v1_old, __mmask8 __mask, __m128i __index, - void const *__addr, int __scale) { - return (__m128d)__builtin_ia32_gather3siv2df( - (__v2df)__v1_old, __addr, (__v4si)__index, __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i64gather_ps(__m128 __v1_old, __mmask8 __mask, __m256i __index, - void const *__addr, int __scale) { - return (__m128)__builtin_ia32_gather3div8sf((__v4sf)__v1_old, __addr, - (__v4di)__index, __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i64gather_ps(__m128 __v1_old, __mmask8 __mask, __m128i __index, - void const *__addr, int __scale) { - return (__m128)__builtin_ia32_gather3div4sf((__v4sf)__v1_old, __addr, - (__v2di)__index, __mask, __scale); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i64gather_pd(__m256d __v1_old, __mmask8 __mask, - __m256i __index, void const *__addr, - int __scale) { - return (__m256d)__builtin_ia32_gather3div4df( - (__v4df)__v1_old, __addr, (__v4di)__index, __mask, __scale); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i64gather_pd(__m128d __v1_old, __mmask8 __mask, __m128i __index, - void const *__addr, int __scale) { - return (__m128d)__builtin_ia32_gather3div2df( - (__v2df)__v1_old, __addr, (__v2di)__index, __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i32gather_epi32(__m256i __v1_old, __mmask8 __mask, - __m256i __index, void const *__addr, - int __scale) { - return (__m256i)__builtin_ia32_gather3siv8si( - (__v8si)__v1_old, __addr, (__v8si)__index, __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i32gather_epi32(__m128i __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m128i)__builtin_ia32_gather3siv4si( - (__v4si)__v1_old, __addr, (__v4si)__index, __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i32gather_epi64(__m256i __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m256i)__builtin_ia32_gather3siv4di( - (__v4di)__v1_old, __addr, (__v4si)__index, __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i32gather_epi64(__m128i __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m128i)__builtin_ia32_gather3siv2di( - (__v2di)__v1_old, __addr, (__v4si)__index, __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i64gather_epi32(__m128i __v1_old, __mmask8 __mask, - __m256i __index, void const *__addr, - int __scale) { - return (__m128i)__builtin_ia32_gather3div8si( - (__v4si)__v1_old, __addr, (__v4di)__index, __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i64gather_epi32(__m128i __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m128i)__builtin_ia32_gather3div4si( - (__v4si)__v1_old, __addr, (__v2di)__index, __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i64gather_epi64(__m256i __v1_old, __mmask8 __mask, - __m256i __index, void const *__addr, - int __scale) { - return (__m256i)__builtin_ia32_gather3div4di( - (__v4di)__v1_old, __addr, (__v4di)__index, __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i64gather_epi64(__m128i __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m128i)__builtin_ia32_gather3div2di( - (__v2di)__v1_old, __addr, (__v2di)__index, __mask, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i32scatter_ps(void *__addr, __m256i __index, __m256 __v1, - const int __scale) { - __builtin_ia32_scattersiv8sf(__addr, (__mmask8)0xFF, (__v8si)__index, - (__v8sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32scatter_ps(void *__addr, __mmask8 __mask, __m256i __index, - __m256 __v1, const int __scale) { - __builtin_ia32_scattersiv8sf(__addr, __mask, (__v8si)__index, (__v8sf)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32scatter_ps(void *__addr, __m128i __index, __m128 __v1, - const int __scale) { - __builtin_ia32_scattersiv4sf(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v4sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32scatter_ps(void *__addr, __mmask8 __mask, __m128i __index, - __m128 __v1, const int __scale) { - __builtin_ia32_scattersiv4sf(__addr, __mask, (__v4si)__index, (__v4sf)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i32scatter_pd(void *__addr, __m128i __index, __m256d __v1, - const int __scale) { - __builtin_ia32_scattersiv4df(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v4df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32scatter_pd(void *__addr, __mmask8 __mask, __m128i __index, - __m256d __v1, const int __scale) { - __builtin_ia32_scattersiv4df(__addr, __mask, (__v4si)__index, (__v4df)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32scatter_pd(void *__addr, __m128i __index, __m128d __v1, - const int __scale) { - __builtin_ia32_scattersiv2df(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v2df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32scatter_pd(void *__addr, __mmask8 __mask, __m128i __index, - __m128d __v1, const int __scale) { - __builtin_ia32_scattersiv2df(__addr, __mask, (__v4si)__index, (__v2df)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i64scatter_ps(void *__addr, __m256i __index, __m128 __v1, - const int __scale) { - __builtin_ia32_scatterdiv8sf(__addr, (__mmask8)0xFF, (__v4di)__index, - (__v4sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64scatter_ps(void *__addr, __mmask8 __mask, __m256i __index, - __m128 __v1, const int __scale) { - __builtin_ia32_scatterdiv8sf(__addr, __mask, (__v4di)__index, (__v4sf)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64scatter_ps(void *__addr, __m128i __index, __m128 __v1, - const int __scale) { - __builtin_ia32_scatterdiv4sf(__addr, (__mmask8)0xFF, (__v2di)__index, - (__v4sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64scatter_ps(void *__addr, __mmask8 __mask, __m128i __index, - __m128 __v1, const int __scale) { - __builtin_ia32_scatterdiv4sf(__addr, __mask, (__v2di)__index, (__v4sf)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i64scatter_pd(void *__addr, __m256i __index, __m256d __v1, - const int __scale) { - __builtin_ia32_scatterdiv4df(__addr, (__mmask8)0xFF, (__v4di)__index, - (__v4df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64scatter_pd(void *__addr, __mmask8 __mask, __m256i __index, - __m256d __v1, const int __scale) { - __builtin_ia32_scatterdiv4df(__addr, __mask, (__v4di)__index, (__v4df)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64scatter_pd(void *__addr, __m128i __index, __m128d __v1, - const int __scale) { - __builtin_ia32_scatterdiv2df(__addr, (__mmask8)0xFF, (__v2di)__index, - (__v2df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64scatter_pd(void *__addr, __mmask8 __mask, __m128i __index, - __m128d __v1, const int __scale) { - __builtin_ia32_scatterdiv2df(__addr, __mask, (__v2di)__index, (__v2df)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i32scatter_epi32(void *__addr, __m256i __index, __m256i __v1, - const int __scale) { - __builtin_ia32_scattersiv8si(__addr, (__mmask8)0xFF, (__v8si)__index, - (__v8si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32scatter_epi32(void *__addr, __mmask8 __mask, __m256i __index, - __m256i __v1, const int __scale) { - __builtin_ia32_scattersiv8si(__addr, __mask, (__v8si)__index, (__v8si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32scatter_epi32(void *__addr, __m128i __index, __m128i __v1, - const int __scale) { - __builtin_ia32_scattersiv4si(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v4si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32scatter_epi32(void *__addr, __mmask8 __mask, __m128i __index, - __m128i __v1, const int __scale) { - __builtin_ia32_scattersiv4si(__addr, __mask, (__v4si)__index, (__v4si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i32scatter_epi64(void *__addr, __m128i __index, __m256i __v1, - const int __scale) { - __builtin_ia32_scattersiv4di(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v4di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32scatter_epi64(void *__addr, __mmask8 __mask, __m128i __index, - __m256i __v1, const int __scale) { - __builtin_ia32_scattersiv4di(__addr, __mask, (__v4si)__index, (__v4di)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32scatter_epi64(void *__addr, __m128i __index, __m128i __v1, - const int __scale) { - __builtin_ia32_scattersiv2di(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v2di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32scatter_epi64(void *__addr, __mmask8 __mask, __m128i __index, - __m128i __v1, const int __scale) { - __builtin_ia32_scattersiv2di(__addr, __mask, (__v4si)__index, (__v2di)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i64scatter_epi32(void *__addr, __m256i __index, __m128i __v1, - const int __scale) { - __builtin_ia32_scatterdiv8si(__addr, (__mmask8)0xFF, (__v4di)__index, - (__v4si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64scatter_epi32(void *__addr, __mmask8 __mask, __m256i __index, - __m128i __v1, const int __scale) { - __builtin_ia32_scatterdiv8si(__addr, __mask, (__v4di)__index, (__v4si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64scatter_epi32(void *__addr, __m128i __index, __m128i __v1, - const int __scale) { - __builtin_ia32_scatterdiv4si(__addr, (__mmask8)0xFF, (__v2di)__index, - (__v4si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64scatter_epi32(void *__addr, __mmask8 __mask, __m128i __index, - __m128i __v1, const int __scale) { - __builtin_ia32_scatterdiv4si(__addr, __mask, (__v2di)__index, (__v4si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i64scatter_epi64(void *__addr, __m256i __index, __m256i __v1, - const int __scale) { - __builtin_ia32_scatterdiv4di(__addr, (__mmask8)0xFF, (__v4di)__index, - (__v4di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64scatter_epi64(void *__addr, __mmask8 __mask, __m256i __index, - __m256i __v1, const int __scale) { - __builtin_ia32_scatterdiv4di(__addr, __mask, (__v4di)__index, (__v4di)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64scatter_epi64(void *__addr, __m128i __index, __m128i __v1, - const int __scale) { - __builtin_ia32_scatterdiv2di(__addr, (__mmask8)0xFF, (__v2di)__index, - (__v2di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64scatter_epi64(void *__addr, __mmask8 __mask, __m128i __index, - __m128i __v1, const int __scale) { - __builtin_ia32_scatterdiv2di(__addr, __mask, (__v2di)__index, (__v2di)__v1, - __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_epi32(__m256i __W, __mmask8 __U, __m256i __A, - _MM_PERM_ENUM __mask) { - return (__m256i)__builtin_ia32_pshufd256_mask((__v8si)__A, __mask, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shuffle_epi32(__mmask8 __U, __m256i __A, _MM_PERM_ENUM __mask) { - return (__m256i)__builtin_ia32_pshufd256_mask( - (__v8si)__A, __mask, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shuffle_epi32(__m128i __W, __mmask8 __U, __m128i __A, - _MM_PERM_ENUM __mask) { - return (__m128i)__builtin_ia32_pshufd128_mask((__v4si)__A, __mask, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shuffle_epi32(__mmask8 __U, __m128i __A, _MM_PERM_ENUM __mask) { - return (__m128i)__builtin_ia32_pshufd128_mask( - (__v4si)__A, __mask, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rol_epi32(__m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prold256_mask( - (__v8si)__A, __B, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rol_epi32(__m256i __W, __mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prold256_mask((__v8si)__A, __B, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rol_epi32(__mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prold256_mask( - (__v8si)__A, __B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rol_epi32(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prold128_mask( - (__v4si)__A, __B, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rol_epi32(__m128i __W, __mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prold128_mask((__v4si)__A, __B, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rol_epi32(__mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prold128_mask( - (__v4si)__A, __B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_ror_epi32(__m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prord256_mask( - (__v8si)__A, __B, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_ror_epi32(__m256i __W, __mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prord256_mask((__v8si)__A, __B, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_ror_epi32(__mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prord256_mask( - (__v8si)__A, __B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ror_epi32(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prord128_mask( - (__v4si)__A, __B, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_ror_epi32(__m128i __W, __mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prord128_mask((__v4si)__A, __B, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_ror_epi32(__mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prord128_mask( - (__v4si)__A, __B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rol_epi64(__m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prolq256_mask( - (__v4di)__A, __B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rol_epi64(__m256i __W, __mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prolq256_mask((__v4di)__A, __B, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rol_epi64(__mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prolq256_mask( - (__v4di)__A, __B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rol_epi64(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prolq128_mask( - (__v2di)__A, __B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rol_epi64(__m128i __W, __mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prolq128_mask((__v2di)__A, __B, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rol_epi64(__mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prolq128_mask( - (__v2di)__A, __B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_ror_epi64(__m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prorq256_mask( - (__v4di)__A, __B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_ror_epi64(__m256i __W, __mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prorq256_mask((__v4di)__A, __B, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_ror_epi64(__mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prorq256_mask( - (__v4di)__A, __B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ror_epi64(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prorq128_mask( - (__v2di)__A, __B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_ror_epi64(__m128i __W, __mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prorq128_mask((__v2di)__A, __B, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_ror_epi64(__mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prorq128_mask( - (__v2di)__A, __B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_alignr_epi32(__m128i __A, __m128i __B, const int __imm) { - return (__m128i)__builtin_ia32_alignd128_mask((__v4si)__A, (__v4si)__B, __imm, - (__v4si)_mm_setzero_si128(), - (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_alignr_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B, - const int __imm) { - return (__m128i)__builtin_ia32_alignd128_mask((__v4si)__A, (__v4si)__B, __imm, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_alignr_epi32(__mmask8 __U, __m128i __A, __m128i __B, - const int __imm) { - return (__m128i)__builtin_ia32_alignd128_mask((__v4si)__A, (__v4si)__B, __imm, - (__v4si)_mm_setzero_si128(), - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_alignr_epi64(__m128i __A, __m128i __B, const int __imm) { - return (__m128i)__builtin_ia32_alignq128_mask((__v2di)__A, (__v2di)__B, __imm, - (__v2di)_mm_setzero_si128(), - (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_alignr_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B, - const int __imm) { - return (__m128i)__builtin_ia32_alignq128_mask((__v2di)__A, (__v2di)__B, __imm, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_alignr_epi64(__mmask8 __U, __m128i __A, __m128i __B, - const int __imm) { - return (__m128i)__builtin_ia32_alignq128_mask((__v2di)__A, (__v2di)__B, __imm, - (__v2di)_mm_setzero_si128(), - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_alignr_epi32(__m256i __A, __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_alignd256_mask((__v8si)__A, (__v8si)__B, __imm, - (__v8si)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_alignr_epi32(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_alignd256_mask((__v8si)__A, (__v8si)__B, __imm, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_alignr_epi32(__mmask8 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_alignd256_mask((__v8si)__A, (__v8si)__B, __imm, - (__v8si)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_alignr_epi64(__m256i __A, __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_alignq256_mask((__v4di)__A, (__v4di)__B, __imm, - (__v4di)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_alignr_epi64(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_alignq256_mask((__v4di)__A, (__v4di)__B, __imm, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_alignr_epi64(__mmask8 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_alignq256_mask((__v4di)__A, (__v4di)__B, __imm, - (__v4di)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_ph(__m128i __W, __mmask8 __U, __m128 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph_mask((__v4sf)__A, __I, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_ph(__mmask8 __U, __m128 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph_mask( - (__v4sf)__A, __I, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_ph(__m128i __W, __mmask8 __U, __m256 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph256_mask((__v8sf)__A, __I, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_ph(__mmask8 __U, __m256 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph256_mask( - (__v8sf)__A, __I, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srai_epi32(__m256i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psradi256_mask((__v8si)__A, __imm, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srai_epi32(__mmask8 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psradi256_mask( - (__v8si)__A, __imm, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srai_epi32(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psradi128_mask((__v4si)__A, __imm, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srai_epi32(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psradi128_mask( - (__v4si)__A, __imm, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srai_epi64(__m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psraqi256_mask( - (__v4di)__A, __imm, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srai_epi64(__m256i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psraqi256_mask((__v4di)__A, __imm, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srai_epi64(__mmask8 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psraqi256_mask( - (__v4di)__A, __imm, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srai_epi64(__m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psraqi128_mask( - (__v2di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srai_epi64(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psraqi128_mask((__v2di)__A, __imm, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srai_epi64(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psraqi128_mask( - (__v2di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_slli_epi32(__m128i __W, __mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_pslldi128_mask((__v4si)__A, __B, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_slli_epi32(__mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_pslldi128_mask( - (__v4si)__A, __B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_slli_epi64(__m128i __W, __mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllqi128_mask((__v2di)__A, __B, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_slli_epi64(__mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllqi128_mask( - (__v2di)__A, __B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_slli_epi32(__m256i __W, __mmask8 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_pslldi256_mask((__v8si)__A, __B, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_slli_epi32(__mmask8 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_pslldi256_mask( - (__v8si)__A, __B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_slli_epi64(__m256i __W, __mmask8 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllqi256_mask((__v4di)__A, __B, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_slli_epi64(__mmask8 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllqi256_mask( - (__v4di)__A, __B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex_pd(__m256d __W, __mmask8 __U, __m256d __X, - const int __imm) { - return (__m256d)__builtin_ia32_permdf256_mask((__v4df)__X, __imm, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex_pd(__mmask8 __U, __m256d __X, const int __imm) { - return (__m256d)__builtin_ia32_permdf256_mask( - (__v4df)__X, __imm, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permute_pd(__m256d __W, __mmask8 __U, __m256d __X, const int __C) { - return (__m256d)__builtin_ia32_vpermilpd256_mask((__v4df)__X, __C, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permute_pd(__mmask8 __U, __m256d __X, const int __C) { - return (__m256d)__builtin_ia32_vpermilpd256_mask( - (__v4df)__X, __C, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permute_pd(__m128d __W, __mmask8 __U, __m128d __X, const int __C) { - return (__m128d)__builtin_ia32_vpermilpd_mask((__v2df)__X, __C, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permute_pd(__mmask8 __U, __m128d __X, const int __C) { - return (__m128d)__builtin_ia32_vpermilpd_mask( - (__v2df)__X, __C, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permute_ps(__m256 __W, __mmask8 __U, __m256 __X, const int __C) { - return (__m256)__builtin_ia32_vpermilps256_mask((__v8sf)__X, __C, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permute_ps(__mmask8 __U, __m256 __X, const int __C) { - return (__m256)__builtin_ia32_vpermilps256_mask( - (__v8sf)__X, __C, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permute_ps(__m128 __W, __mmask8 __U, __m128 __X, const int __C) { - return (__m128)__builtin_ia32_vpermilps_mask((__v4sf)__X, __C, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permute_ps(__mmask8 __U, __m128 __X, const int __C) { - return (__m128)__builtin_ia32_vpermilps_mask( - (__v4sf)__X, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_pd(__mmask8 __U, __m256d __A, __m256d __W) { - return (__m256d)__builtin_ia32_blendmpd_256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_ps(__mmask8 __U, __m256 __A, __m256 __W) { - return (__m256)__builtin_ia32_blendmps_256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_epi64(__mmask8 __U, __m256i __A, __m256i __W) { - return (__m256i)__builtin_ia32_blendmq_256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_epi32(__mmask8 __U, __m256i __A, __m256i __W) { - return (__m256i)__builtin_ia32_blendmd_256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_pd(__mmask8 __U, __m128d __A, __m128d __W) { - return (__m128d)__builtin_ia32_blendmpd_128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_ps(__mmask8 __U, __m128 __A, __m128 __W) { - return (__m128)__builtin_ia32_blendmps_128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_epi64(__mmask8 __U, __m128i __A, __m128i __W) { - return (__m128i)__builtin_ia32_blendmq_128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_epi32(__mmask8 __U, __m128i __A, __m128i __W) { - return (__m128i)__builtin_ia32_blendmd_128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epi64_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epi32_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epu64_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epu32_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_pd_mask(__m256d __X, __m256d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd256_mask((__v4df)__X, (__v4df)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_ps_mask(__m256 __X, __m256 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpps256_mask((__v8sf)__X, (__v8sf)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epi64_mask(__mmask8 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epi32_mask(__mmask8 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epu64_mask(__mmask8 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epu32_mask(__mmask8 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_cmp_pd_mask(__mmask8 __U, __m256d __X, __m256d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd256_mask((__v4df)__X, (__v4df)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_cmp_ps_mask(__mmask8 __U, __m256 __X, __m256 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpps256_mask((__v8sf)__X, (__v8sf)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epi64_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epi32_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epu64_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epu32_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_pd_mask(__m128d __X, __m128d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd128_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_ps_mask(__m128 __X, __m128 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpps128_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epi64_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epi32_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epu64_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epu32_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_pd_mask(__mmask8 __U, __m128d __X, __m128d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd128_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmp_ps_mask(__mmask8 __U, __m128 __X, __m128 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpps128_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex_pd(__m256d __X, const int __M) { - return (__m256d)__builtin_ia32_permdf256_mask( - (__v4df)__X, __M, (__v4df)_mm256_undefined_pd(), (__mmask8)-1); -} - -typedef short __v32hi __attribute__((__vector_size__(64))); -typedef short __v32hi_u - __attribute__((__vector_size__(64), __may_alias__, __aligned__(1))); -typedef char __v64qi __attribute__((__vector_size__(64))); -typedef char __v64qi_u - __attribute__((__vector_size__(64), __may_alias__, __aligned__(1))); - -typedef unsigned long long __mmask64; - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktest_mask32_u8(__mmask32 __A, __mmask32 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_ktestcsi(__A, __B); - return (unsigned char)__builtin_ia32_ktestzsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktest_mask64_u8(__mmask64 __A, __mmask64 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_ktestcdi(__A, __B); - return (unsigned char)__builtin_ia32_ktestzdi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestz_mask32_u8(__mmask32 __A, __mmask32 __B) { - return (unsigned char)__builtin_ia32_ktestzsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestz_mask64_u8(__mmask64 __A, __mmask64 __B) { - return (unsigned char)__builtin_ia32_ktestzdi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestc_mask32_u8(__mmask32 __A, __mmask32 __B) { - return (unsigned char)__builtin_ia32_ktestcsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestc_mask64_u8(__mmask64 __A, __mmask64 __B) { - return (unsigned char)__builtin_ia32_ktestcdi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortest_mask32_u8(__mmask32 __A, __mmask32 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_kortestcsi(__A, __B); - return (unsigned char)__builtin_ia32_kortestzsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortest_mask64_u8(__mmask64 __A, __mmask64 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_kortestcdi(__A, __B); - return (unsigned char)__builtin_ia32_kortestzdi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestz_mask32_u8(__mmask32 __A, __mmask32 __B) { - return (unsigned char)__builtin_ia32_kortestzsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestz_mask64_u8(__mmask64 __A, __mmask64 __B) { - return (unsigned char)__builtin_ia32_kortestzdi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestc_mask32_u8(__mmask32 __A, __mmask32 __B) { - return (unsigned char)__builtin_ia32_kortestcsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestc_mask64_u8(__mmask64 __A, __mmask64 __B) { - return (unsigned char)__builtin_ia32_kortestcdi(__A, __B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kadd_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kaddsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kadd_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kadddi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtmask32_u32(__mmask32 __A) { - return (unsigned int)__builtin_ia32_kmovd((__mmask32)__A); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtmask64_u64(__mmask64 __A) { - return (unsigned long long)__builtin_ia32_kmovq((__mmask64)__A); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtu32_mask32(unsigned int __A) { - return (__mmask32)__builtin_ia32_kmovd((__mmask32)__A); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtu64_mask64(unsigned long long __A) { - return (__mmask64)__builtin_ia32_kmovq((__mmask64)__A); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _load_mask32(__mmask32 *__A) { - return (__mmask32)__builtin_ia32_kmovd(*__A); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _load_mask64(__mmask64 *__A) { - return (__mmask64)__builtin_ia32_kmovq(*(__mmask64 *)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _store_mask32(__mmask32 *__A, __mmask32 __B) { - *(__mmask32 *)__A = __builtin_ia32_kmovd(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _store_mask64(__mmask64 *__A, __mmask64 __B) { - *(__mmask64 *)__A = __builtin_ia32_kmovq(__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _knot_mask32(__mmask32 __A) { - return (__mmask32)__builtin_ia32_knotsi((__mmask32)__A); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _knot_mask64(__mmask64 __A) { - return (__mmask64)__builtin_ia32_knotdi((__mmask64)__A); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kor_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_korsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kor_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kordi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxnor_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kxnorsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxnor_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kxnordi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxor_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kxorsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxor_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kxordi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kand_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kandsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kand_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kanddi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kandn_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kandnsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kandn_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kandndi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_epi16(__m512i __W, __mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdquhi512_mask((__v32hi)__A, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_epi16(__mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdquhi512_mask( - (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_epi16(void const *__P) { - return (__m512i)(*(__v32hi_u *)__P); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_epi16(__m512i __W, __mmask32 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddquhi512_mask( - (const short *)__P, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_epi16(__mmask32 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddquhi512_mask( - (const short *)__P, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_epi16(void *__P, __m512i __A) { - *(__v32hi_u *)__P = (__v32hi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_epi16(void *__P, __mmask32 __U, __m512i __A) { - __builtin_ia32_storedquhi512_mask((short *)__P, (__v32hi)__A, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_epi8(__m512i __W, __mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdquqi512_mask((__v64qi)__A, (__v64qi)__W, - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_epi8(__mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdquqi512_mask( - (__v64qi)__A, (__v64qi)_mm512_setzero_si512(), (__mmask64)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kunpackw(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kunpcksi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kunpackw_mask32(__mmask16 __A, __mmask16 __B) { - return (__mmask32)__builtin_ia32_kunpcksi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kunpackd(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kunpckdi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kunpackd_mask64(__mmask32 __A, __mmask32 __B) { - return (__mmask64)__builtin_ia32_kunpckdi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_epi8(void const *__P) { - return (__m512i)(*(__v64qi_u *)__P); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_epi8(__m512i __W, __mmask64 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddquqi512_mask( - (const char *)__P, (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_epi8(__mmask64 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddquqi512_mask( - (const char *)__P, (__v64qi)_mm512_setzero_si512(), (__mmask64)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_epi8(void *__P, __m512i __A) { - *(__v64qi_u *)__P = (__v64qi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_epi8(void *__P, __mmask64 __U, __m512i __A) { - __builtin_ia32_storedquqi512_mask((char *)__P, (__v64qi)__A, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sad_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psadbw512((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi16_epi8(__m512i __A) { - return (__m256i)__builtin_ia32_pmovwb512_mask( - (__v32hi)__A, (__v32qi)_mm256_undefined_si256(), (__mmask32)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi16_storeu_epi8(void *__P, __mmask32 __M, __m512i __A) { - __builtin_ia32_pmovwb512mem_mask((__v32qi *)__P, (__v32hi)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi16_epi8(__m256i __O, __mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovwb512_mask((__v32hi)__A, (__v32qi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi16_epi8(__mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovwb512_mask( - (__v32hi)__A, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi16_epi8(__m512i __A) { - return (__m256i)__builtin_ia32_pmovswb512_mask( - (__v32hi)__A, (__v32qi)_mm256_undefined_si256(), (__mmask32)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi16_storeu_epi8(void *__P, __mmask32 __M, __m512i __A) { - __builtin_ia32_pmovswb512mem_mask((__v32qi *)__P, (__v32hi)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi16_epi8(__m256i __O, __mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovswb512_mask((__v32hi)__A, (__v32qi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi16_epi8(__mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovswb512_mask( - (__v32hi)__A, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi16_epi8(__m512i __A) { - return (__m256i)__builtin_ia32_pmovuswb512_mask( - (__v32hi)__A, (__v32qi)_mm256_undefined_si256(), (__mmask32)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi16_epi8(__m256i __O, __mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovuswb512_mask((__v32hi)__A, (__v32qi)__O, - __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi16_storeu_epi8(void *__P, __mmask32 __M, __m512i __A) { - __builtin_ia32_pmovuswb512mem_mask((__v32qi *)__P, (__v32hi)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi16_epi8(__mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovuswb512_mask( - (__v32hi)__A, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastb_epi8(__m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastb512_mask( - (__v16qi)__A, (__v64qi)_mm512_undefined_epi32(), (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastb_epi8(__m512i __O, __mmask64 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastb512_mask((__v16qi)__A, (__v64qi)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastb_epi8(__mmask64 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastb512_mask( - (__v16qi)__A, (__v64qi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_set1_epi8(__m512i __O, __mmask64 __M, char __A) { - return (__m512i)__builtin_ia32_pbroadcastb512_gpr_mask(__A, (__v64qi)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_set1_epi8(__mmask64 __M, char __A) { - return (__m512i)__builtin_ia32_pbroadcastb512_gpr_mask( - __A, (__v64qi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastw_epi16(__m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastw512_mask( - (__v8hi)__A, (__v32hi)_mm512_undefined_epi32(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastw_epi16(__m512i __O, __mmask32 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastw512_mask((__v8hi)__A, (__v32hi)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastw_epi16(__mmask32 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastw512_mask( - (__v8hi)__A, (__v32hi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_set1_epi16(__m512i __O, __mmask32 __M, short __A) { - return (__m512i)__builtin_ia32_pbroadcastw512_gpr_mask(__A, (__v32hi)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_set1_epi16(__mmask32 __M, short __A) { - return (__m512i)__builtin_ia32_pbroadcastw512_gpr_mask( - __A, (__v32hi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mulhrs_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhrsw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mulhrs_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhrsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mulhrs_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhrsw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mulhi_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mulhi_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mulhi_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mulhi_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhuw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mulhi_epu16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mulhi_epu16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhuw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mullo_epi16(__m512i __A, __m512i __B) { - return (__m512i)((__v32hu)__A * (__v32hu)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mullo_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmullw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mullo_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmullw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi8_epi16(__m256i __A) { - return (__m512i)__builtin_ia32_pmovsxbw512_mask( - (__v32qi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi8_epi16(__m512i __W, __mmask32 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovsxbw512_mask((__v32qi)__A, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi8_epi16(__mmask32 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovsxbw512_mask( - (__v32qi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu8_epi16(__m256i __A) { - return (__m512i)__builtin_ia32_pmovzxbw512_mask( - (__v32qi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu8_epi16(__m512i __W, __mmask32 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovzxbw512_mask((__v32qi)__A, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu8_epi16(__mmask32 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovzxbw512_mask( - (__v32qi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_permvarhi512_mask( - (__v32hi)__B, (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_epi16(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_permvarhi512_mask( - (__v32hi)__B, (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutexvar_epi16(__m512i __W, __mmask32 __M, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_permvarhi512_mask( - (__v32hi)__B, (__v32hi)__A, (__v32hi)__W, (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_epi16(__m512i __A, __m512i __I, __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varhi512_mask( - (__v32hi)__I, (__v32hi)__A, (__v32hi)__B, (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_epi16(__m512i __A, __mmask32 __U, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varhi512_mask( - (__v32hi)__I, (__v32hi)__A, (__v32hi)__B, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_epi16(__m512i __A, __m512i __I, __mmask32 __U, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermi2varhi512_mask( - (__v32hi)__A, (__v32hi)__I, (__v32hi)__B, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_epi16(__mmask32 __U, __m512i __A, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varhi512_maskz( - (__v32hi)__I, (__v32hi)__A, (__v32hi)__B, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_avg_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_avg_epu8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_avg_epu8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_epi8(__m512i __A, __m512i __B) { - return (__m512i)((__v64qu)__A + (__v64qu)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_epi8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_epi8(__m512i __A, __m512i __B) { - return (__m512i)((__v64qu)__A - (__v64qu)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_epi8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_avg_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_avg_epu16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_avg_epu16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_subs_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_subs_epi8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_subs_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_subs_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusb512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_subs_epu8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_subs_epu8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusb512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_adds_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_adds_epi8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_adds_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_adds_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusb512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_adds_epu8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_adds_epu8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusb512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_epi16(__m512i __A, __m512i __B) { - return (__m512i)((__v32hu)__A - (__v32hu)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sub_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_subs_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_subs_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_subs_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_subs_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_subs_epu16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_subs_epu16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_epi16(__m512i __A, __m512i __B) { - return (__m512i)((__v32hu)__A + (__v32hu)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_add_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_adds_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_adds_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_adds_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_adds_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_adds_epu16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_adds_epu16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srl_epi16(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srl_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srl_epi16(__mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_packs_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packsswb512_mask( - (__v32hi)__A, (__v32hi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sll_epi16(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sll_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sll_epi16(__mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maddubs_epi16(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmaddubsw512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_maddubs_epi16(__m512i __W, __mmask32 __U, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_pmaddubsw512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_maddubs_epi16(__mmask32 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmaddubsw512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_madd_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaddwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v16si)_mm512_setzero_si512(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_madd_epi16(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaddwd512_mask((__v32hi)__A, (__v32hi)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_madd_epi16(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaddwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpackhi_epi8(__m512i __W, __mmask64 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpckhbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpackhi_epi16(__m512i __W, __mmask32 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpckhwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpacklo_epi8(__m512i __W, __mmask64 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpcklbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpacklo_epi16(__m512i __W, __mmask32 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpcklwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epu8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__A, (__v64qi)__B, 0, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epi8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_pcmpeqb512_mask((__v64qi)__A, (__v64qi)__B, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epu8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__A, (__v64qi)__B, 0, - __U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epi8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_pcmpeqb512_mask((__v64qi)__A, (__v64qi)__B, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epu16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__A, (__v32hi)__B, 0, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epi16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_pcmpeqw512_mask((__v32hi)__A, (__v32hi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epu16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__A, (__v32hi)__B, 0, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epi16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_pcmpeqw512_mask((__v32hi)__A, (__v32hi)__B, - __U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epu8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__A, (__v64qi)__B, 6, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epi8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_pcmpgtb512_mask((__v64qi)__A, (__v64qi)__B, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epu8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__A, (__v64qi)__B, 6, - __U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epi8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_pcmpgtb512_mask((__v64qi)__A, (__v64qi)__B, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epu16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__A, (__v32hi)__B, 6, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epi16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_pcmpgtw512_mask((__v32hi)__A, (__v32hi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epu16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__A, (__v32hi)__B, 6, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epi16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_pcmpgtw512_mask((__v32hi)__A, (__v32hi)__B, - __U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movepi8_mask(__m512i __A) { - return (__mmask64)__builtin_ia32_cvtb2mask512((__v64qi)__A); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movepi16_mask(__m512i __A) { - return (__mmask32)__builtin_ia32_cvtw2mask512((__v32hi)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movm_epi8(__mmask64 __A) { - return (__m512i)__builtin_ia32_cvtmask2b512(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movm_epi16(__mmask32 __A) { - return (__m512i)__builtin_ia32_cvtmask2w512(__A); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_test_epi8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ptestmb512((__v64qi)__A, (__v64qi)__B, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_test_epi8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ptestmb512((__v64qi)__A, (__v64qi)__B, __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_test_epi16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ptestmw512((__v32hi)__A, (__v32hi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_test_epi16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ptestmw512((__v32hi)__A, (__v32hi)__B, __U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_testn_epi8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ptestnmb512((__v64qi)__A, (__v64qi)__B, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_testn_epi8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ptestnmb512((__v64qi)__A, (__v64qi)__B, __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_testn_epi16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ptestnmw512((__v32hi)__A, (__v32hi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_testn_epi16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ptestnmw512((__v32hi)__A, (__v32hi)__B, __U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pshufb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shuffle_epi8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pshufb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pshufb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epu16(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_min_epu16(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epi16(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_min_epi16(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epu8(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_epu8(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epi8(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_epi8(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epu8(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_epu8(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epi8(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_epi8(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epi16(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_max_epi16(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epu16(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_max_epu16(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sra_epi16(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sra_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sra_epi16(__mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srav_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrav32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srav_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrav32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srav_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrav32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srlv_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrlv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srlv_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrlv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srlv_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrlv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sllv_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psllv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sllv_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psllv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sllv_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psllv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_packs_epi16(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packsswb512_mask((__v32hi)__A, (__v32hi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_packs_epi16(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packsswb512_mask( - (__v32hi)__A, (__v32hi)__B, (__v64qi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_packus_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packuswb512_mask( - (__v32hi)__A, (__v32hi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_packus_epi16(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packuswb512_mask((__v32hi)__A, (__v32hi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_packus_epi16(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packuswb512_mask( - (__v32hi)__A, (__v32hi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_epi8(__m512i __A) { - return (__m512i)__builtin_ia32_pabsb512_mask( - (__v64qi)__A, (__v64qi)_mm512_setzero_si512(), (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_epi8(__m512i __W, __mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsb512_mask((__v64qi)__A, (__v64qi)__W, - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_abs_epi8(__mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsb512_mask( - (__v64qi)__A, (__v64qi)_mm512_setzero_si512(), (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_epi16(__m512i __A) { - return (__m512i)__builtin_ia32_pabsw512_mask( - (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_epi16(__m512i __W, __mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsw512_mask((__v32hi)__A, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_abs_epi16(__mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsw512_mask( - (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epu8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 4, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epu8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 1, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epu8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 5, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epu8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 2, - (__mmask64)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epu16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 4, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epu16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 1, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epu16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 5, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epu16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 2, - (__mmask32)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epi8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 4, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epi8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 1, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epi8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 5, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epi8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 2, - (__mmask64)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epi16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 4, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epi16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 1, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epi16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 5, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epi16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 2, - (__mmask32)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epu8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 4, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epu8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 1, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epu8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 5, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epu8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 2, - (__mmask64)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epu16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 4, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epu16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 1, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epu16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 5, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epu16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 2, - (__mmask32)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epi8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 4, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epi8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 1, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epi8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 5, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epi8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 2, - (__mmask64)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epi16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 4, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epi16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 1, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epi16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 5, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epi16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 2, - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_packs_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packssdw512_mask( - (__v16si)__A, (__v16si)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_packs_epi32(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packssdw512_mask( - (__v16si)__A, (__v16si)__B, (__v32hi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_packs_epi32(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packssdw512_mask((__v16si)__A, (__v16si)__B, - (__v32hi)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_packus_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packusdw512_mask( - (__v16si)__A, (__v16si)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_packus_epi32(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packusdw512_mask( - (__v16si)__A, (__v16si)__B, (__v32hi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_packus_epi32(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packusdw512_mask((__v16si)__A, (__v16si)__B, - (__v32hi)__W, __M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftli_mask32(__mmask32 __A, unsigned int __B) { - return (__mmask32)__builtin_ia32_kshiftlisi((__mmask32)__A, (__mmask8)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftli_mask64(__mmask64 __A, unsigned int __B) { - return (__mmask64)__builtin_ia32_kshiftlidi((__mmask64)__A, (__mmask8)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftri_mask32(__mmask32 __A, unsigned int __B) { - return (__mmask32)__builtin_ia32_kshiftrisi((__mmask32)__A, (__mmask8)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftri_mask64(__mmask64 __A, unsigned int __B) { - return (__mmask64)__builtin_ia32_kshiftridi((__mmask64)__A, (__mmask8)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_alignr_epi8(__m512i __A, __m512i __B, const int __N) { - return (__m512i)__builtin_ia32_palignr512((__v8di)__A, (__v8di)__B, __N * 8); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_alignr_epi8(__m512i __W, __mmask64 __U, __m512i __A, - __m512i __B, const int __N) { - return (__m512i)__builtin_ia32_palignr512_mask( - (__v8di)__A, (__v8di)__B, __N * 8, (__v8di)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_alignr_epi8(__mmask64 __U, __m512i __A, __m512i __B, - const int __N) { - return (__m512i)__builtin_ia32_palignr512_mask( - (__v8di)__A, (__v8di)__B, __N * 8, (__v8di)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dbsad_epu8(__m512i __A, __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_dbpsadbw512_mask( - (__v64qi)__A, (__v64qi)__B, __imm, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_dbsad_epu8(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_dbpsadbw512_mask( - (__v64qi)__A, (__v64qi)__B, __imm, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_dbsad_epu8(__mmask32 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_dbpsadbw512_mask( - (__v64qi)__A, (__v64qi)__B, __imm, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srli_epi16(__m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_psrlwi512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srli_epi16(__m512i __W, __mmask32 __U, __m512i __A, - const int __imm) { - return (__m512i)__builtin_ia32_psrlwi512_mask((__v32hi)__A, __imm, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srli_epi16(__mmask32 __U, __m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_psrlwi512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_slli_epi16(__m512i __A, const int __B) { - return (__m512i)__builtin_ia32_psllwi512_mask( - (__v32hi)__A, __B, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_slli_epi16(__m512i __W, __mmask32 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_psllwi512_mask((__v32hi)__A, __B, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_slli_epi16(__mmask32 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_psllwi512_mask( - (__v32hi)__A, __B, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shufflehi_epi16(__m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_pshufhw512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shufflehi_epi16(__m512i __W, __mmask32 __U, __m512i __A, - const int __imm) { - return (__m512i)__builtin_ia32_pshufhw512_mask((__v32hi)__A, __imm, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shufflehi_epi16(__mmask32 __U, __m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_pshufhw512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shufflelo_epi16(__m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_pshuflw512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shufflelo_epi16(__m512i __W, __mmask32 __U, __m512i __A, - const int __imm) { - return (__m512i)__builtin_ia32_pshuflw512_mask((__v32hi)__A, __imm, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shufflelo_epi16(__mmask32 __U, __m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_pshuflw512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srai_epi16(__m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_psrawi512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srai_epi16(__m512i __W, __mmask32 __U, __m512i __A, - const int __imm) { - return (__m512i)__builtin_ia32_psrawi512_mask((__v32hi)__A, __imm, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srai_epi16(__mmask32 __U, __m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_psrawi512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_epi16(__mmask32 __U, __m512i __A, __m512i __W) { - return (__m512i)__builtin_ia32_blendmw_512_mask((__v32hi)__A, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_epi8(__mmask64 __U, __m512i __A, __m512i __W) { - return (__m512i)__builtin_ia32_blendmb_512_mask((__v64qi)__A, (__v64qi)__W, - (__mmask64)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epi16_mask(__mmask32 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, __P, - (__mmask32)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epi16_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, __P, - (__mmask32)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epi8_mask(__mmask64 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, __P, - (__mmask64)__U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epi8_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, __P, - (__mmask64)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epu16_mask(__mmask32 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, - __P, (__mmask32)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epu16_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, - __P, (__mmask32)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epu8_mask(__mmask64 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, - __P, (__mmask64)__U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epu8_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, - __P, (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_bslli_epi128(__m512i __A, const int __N) { - return (__m512i)__builtin_ia32_pslldq512(__A, __N * 8); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_bsrli_epi128(__m512i __A, const int __N) { - return (__m512i)__builtin_ia32_psrldq512(__A, __N * 8); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktest_mask8_u8(__mmask8 __A, __mmask8 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_ktestcqi(__A, __B); - return (unsigned char)__builtin_ia32_ktestzqi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestz_mask8_u8(__mmask8 __A, __mmask8 __B) { - return (unsigned char)__builtin_ia32_ktestzqi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestc_mask8_u8(__mmask8 __A, __mmask8 __B) { - return (unsigned char)__builtin_ia32_ktestcqi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktest_mask16_u8(__mmask16 __A, __mmask16 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_ktestchi(__A, __B); - return (unsigned char)__builtin_ia32_ktestzhi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestz_mask16_u8(__mmask16 __A, __mmask16 __B) { - return (unsigned char)__builtin_ia32_ktestzhi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestc_mask16_u8(__mmask16 __A, __mmask16 __B) { - return (unsigned char)__builtin_ia32_ktestchi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortest_mask8_u8(__mmask8 __A, __mmask8 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_kortestcqi(__A, __B); - return (unsigned char)__builtin_ia32_kortestzqi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestz_mask8_u8(__mmask8 __A, __mmask8 __B) { - return (unsigned char)__builtin_ia32_kortestzqi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestc_mask8_u8(__mmask8 __A, __mmask8 __B) { - return (unsigned char)__builtin_ia32_kortestcqi(__A, __B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kadd_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_kaddqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kadd_mask16(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kaddhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtmask8_u32(__mmask8 __A) { - return (unsigned int)__builtin_ia32_kmovb((__mmask8)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtu32_mask8(unsigned int __A) { - return (__mmask8)__builtin_ia32_kmovb((__mmask8)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _load_mask8(__mmask8 *__A) { - return (__mmask8)__builtin_ia32_kmovb(*(__mmask8 *)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _store_mask8(__mmask8 *__A, __mmask8 __B) { - *(__mmask8 *)__A = __builtin_ia32_kmovb(__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _knot_mask8(__mmask8 __A) { - return (__mmask8)__builtin_ia32_knotqi((__mmask8)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kor_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_korqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxnor_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_kxnorqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxor_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_kxorqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kand_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_kandqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kandn_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_kandnqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_f64x2(__m128d __A) { - return (__m512d)__builtin_ia32_broadcastf64x2_512_mask( - (__v2df)__A, _mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_f64x2(__m512d __O, __mmask8 __M, __m128d __A) { - return (__m512d)__builtin_ia32_broadcastf64x2_512_mask((__v2df)__A, - (__v8df)__O, __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_f64x2(__mmask8 __M, __m128d __A) { - return (__m512d)__builtin_ia32_broadcastf64x2_512_mask( - (__v2df)__A, (__v8df)_mm512_setzero_ps(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_i64x2(__m128i __A) { - return (__m512i)__builtin_ia32_broadcasti64x2_512_mask( - (__v2di)__A, _mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_i64x2(__m512i __O, __mmask8 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti64x2_512_mask((__v2di)__A, - (__v8di)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_i64x2(__mmask8 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti64x2_512_mask( - (__v2di)__A, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_f32x2(__m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x2_512_mask( - (__v4sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_f32x2(__m512 __O, __mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x2_512_mask((__v4sf)__A, - (__v16sf)__O, __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_f32x2(__mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x2_512_mask( - (__v4sf)__A, (__v16sf)_mm512_setzero_ps(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_i32x2(__m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x2_512_mask( - (__v4si)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_i32x2(__m512i __O, __mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x2_512_mask((__v4si)__A, - (__v16si)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_i32x2(__mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x2_512_mask( - (__v4si)__A, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_f32x8(__m256 __A) { - return (__m512)__builtin_ia32_broadcastf32x8_512_mask( - (__v8sf)__A, _mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_f32x8(__m512 __O, __mmask16 __M, __m256 __A) { - return (__m512)__builtin_ia32_broadcastf32x8_512_mask((__v8sf)__A, - (__v16sf)__O, __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_f32x8(__mmask16 __M, __m256 __A) { - return (__m512)__builtin_ia32_broadcastf32x8_512_mask( - (__v8sf)__A, (__v16sf)_mm512_setzero_ps(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_i32x8(__m256i __A) { - return (__m512i)__builtin_ia32_broadcasti32x8_512_mask( - (__v8si)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_i32x8(__m512i __O, __mmask16 __M, __m256i __A) { - return (__m512i)__builtin_ia32_broadcasti32x8_512_mask((__v8si)__A, - (__v16si)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_i32x8(__mmask16 __M, __m256i __A) { - return (__m512i)__builtin_ia32_broadcasti32x8_512_mask( - (__v8si)__A, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mullo_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A * (__v8du)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mullo_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmullq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mullo_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmullq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_xor_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_xorpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_xor_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_xorpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_xor_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_xorpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_xor_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_xorps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_xor_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_xorps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_xor_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_xorps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_or_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_orpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_or_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_orpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_or_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_orpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_or_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_orps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_or_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_orps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_or_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_orps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_and_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_and_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_and_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_and_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_and_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_and_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_andnot_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andnpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_andnot_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andnpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_andnot_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andnpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_andnot_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andnps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_andnot_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andnps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_andnot_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andnps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movepi32_mask(__m512i __A) { - return (__mmask16)__builtin_ia32_cvtd2mask512((__v16si)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movepi64_mask(__m512i __A) { - return (__mmask8)__builtin_ia32_cvtq2mask512((__v8di)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movm_epi32(__mmask16 __A) { - return (__m512i)__builtin_ia32_cvtmask2d512(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movm_epi64(__mmask8 __A) { - return (__m512i)__builtin_ia32_cvtmask2q512(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttpd_epi64(__m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttpd_epi64(__m512i __W, __mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttpd_epi64(__mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttpd_epu64(__m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttpd_epu64(__m512i __W, __mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttpd_epu64(__mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttps_epi64(__m256 __A) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttps_epi64(__m512i __W, __mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttps_epi64(__mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttps_epu64(__m256 __A) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttps_epu64(__m512i __W, __mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttps_epu64(__mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtpd_epi64(__m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtpd_epi64(__m512i __W, __mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtpd_epi64(__mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtpd_epu64(__m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtpd_epu64(__m512i __W, __mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtpd_epu64(__mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_epi64(__m256 __A) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtps_epi64(__m512i __W, __mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_epi64(__mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_epu64(__m256 __A) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtps_epu64(__m512i __W, __mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_epu64(__mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi64_ps(__m512i __A) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_ps(__m256 __W, __mmask8 __U, __m512i __A) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask((__v8di)__A, (__v8sf)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi64_ps(__mmask8 __U, __m512i __A) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu64_ps(__m512i __A) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu64_ps(__m256 __W, __mmask8 __U, __m512i __A) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask((__v8di)__A, (__v8sf)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu64_ps(__mmask8 __U, __m512i __A) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi64_pd(__m512i __A) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_pd(__m512d __W, __mmask8 __U, __m512i __A) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask((__v8di)__A, (__v8df)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi64_pd(__mmask8 __U, __m512i __A) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu64_pd(__m512i __A) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu64_pd(__m512d __W, __mmask8 __U, __m512i __A) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask((__v8di)__A, (__v8df)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu64_pd(__mmask8 __U, __m512i __A) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftli_mask8(__mmask8 __A, unsigned int __B) { - return (__mmask8)__builtin_ia32_kshiftliqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftri_mask8(__mmask8 __A, unsigned int __B) { - return (__mmask8)__builtin_ia32_kshiftriqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_range_pd(__m512d __A, __m512d __B, int __C) { - return (__m512d)__builtin_ia32_rangepd512_mask((__v8df)__A, (__v8df)__B, __C, - (__v8df)_mm512_setzero_pd(), - (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_range_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B, - int __C) { - return (__m512d)__builtin_ia32_rangepd512_mask( - (__v8df)__A, (__v8df)__B, __C, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_range_pd(__mmask8 __U, __m512d __A, __m512d __B, int __C) { - return (__m512d)__builtin_ia32_rangepd512_mask((__v8df)__A, (__v8df)__B, __C, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_range_ps(__m512 __A, __m512 __B, int __C) { - return (__m512)__builtin_ia32_rangeps512_mask((__v16sf)__A, (__v16sf)__B, __C, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_range_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - int __C) { - return (__m512)__builtin_ia32_rangeps512_mask( - (__v16sf)__A, (__v16sf)__B, __C, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_range_ps(__mmask16 __U, __m512 __A, __m512 __B, int __C) { - return (__m512)__builtin_ia32_rangeps512_mask((__v16sf)__A, (__v16sf)__B, __C, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_sd(__m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_reducesd_mask( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_round_sd(__m128d __A, __m128d __B, int __C, const int __R) { - return (__m128d)__builtin_ia32_reducesd_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)-1, - __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_reduce_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - int __C) { - return (__m128d)__builtin_ia32_reducesd_mask((__v2df)__A, (__v2df)__B, __C, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_reduce_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, int __C, const int __R) { - return (__m128d)__builtin_ia32_reducesd_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)__W, __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_sd(__mmask8 __U, __m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_reducesd_mask( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_round_sd(__mmask8 __U, __m128d __A, __m128d __B, int __C, - const int __R) { - return (__m128d)__builtin_ia32_reducesd_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_ss(__m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_reducess_mask( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_round_ss(__m128 __A, __m128 __B, int __C, const int __R) { - return (__m128)__builtin_ia32_reducess_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, - __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_reduce_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_reducess_mask((__v4sf)__A, (__v4sf)__B, __C, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_reduce_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - int __C, const int __R) { - return (__m128)__builtin_ia32_reducess_mask_round((__v4sf)__A, (__v4sf)__B, - __C, (__v4sf)__W, __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_ss(__mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_reducess_mask( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_round_ss(__mmask8 __U, __m128 __A, __m128 __B, int __C, - const int __R) { - return (__m128)__builtin_ia32_reducess_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_sd(__m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)-1, - 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_range_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - int __C) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_sd(__mmask8 __U, __m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)__U, - 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_ss(__m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, - 0x04); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_range_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_ss(__mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, - 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_round_sd(__m128d __A, __m128d __B, int __C, const int __R) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)-1, - __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_range_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - int __C, const int __R) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_round_sd(__mmask8 __U, __m128d __A, __m128d __B, int __C, - const int __R) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)__U, - __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_round_ss(__m128 __A, __m128 __B, int __C, const int __R) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, - __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_range_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - int __C, const int __R) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_round_ss(__mmask8 __U, __m128 __A, __m128 __B, int __C, - const int __R) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, - __R); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fpclass_ss_mask(__m128 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassss_mask((__v4sf)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fpclass_sd_mask(__m128d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasssd_mask((__v2df)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fpclass_ss_mask(__mmask8 __U, __m128 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassss_mask((__v4sf)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fpclass_sd_mask(__mmask8 __U, __m128d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasssd_mask((__v2df)__A, __imm, __U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundpd_epi64(__m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundpd_epi64(__m512i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundpd_epi64(__mmask8 __U, __m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundpd_epu64(__m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundpd_epu64(__m512i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundpd_epu64(__mmask8 __U, __m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundps_epi64(__m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundps_epi64(__m512i __W, __mmask8 __U, __m256 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundps_epi64(__mmask8 __U, __m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundps_epu64(__m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundps_epu64(__m512i __W, __mmask8 __U, __m256 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundps_epu64(__mmask8 __U, __m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundpd_epi64(__m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundpd_epi64(__m512i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundpd_epi64(__mmask8 __U, __m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundpd_epu64(__m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundpd_epu64(__m512i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundpd_epu64(__mmask8 __U, __m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_epi64(__m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_epi64(__m512i __W, __mmask8 __U, __m256 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_epi64(__mmask8 __U, __m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_epu64(__m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_epu64(__m512i __W, __mmask8 __U, __m256 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_epu64(__mmask8 __U, __m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepi64_ps(__m512i __A, const int __R) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepi64_ps(__m256 __W, __mmask8 __U, __m512i __A, - const int __R) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask((__v8di)__A, (__v8sf)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepi64_ps(__mmask8 __U, __m512i __A, const int __R) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepu64_ps(__m512i __A, const int __R) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepu64_ps(__m256 __W, __mmask8 __U, __m512i __A, - const int __R) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask((__v8di)__A, (__v8sf)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepu64_ps(__mmask8 __U, __m512i __A, const int __R) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepi64_pd(__m512i __A, const int __R) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepi64_pd(__m512d __W, __mmask8 __U, __m512i __A, - const int __R) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask((__v8di)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepi64_pd(__mmask8 __U, __m512i __A, const int __R) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepu64_pd(__m512i __A, const int __R) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepu64_pd(__m512d __W, __mmask8 __U, __m512i __A, - const int __R) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask((__v8di)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepu64_pd(__mmask8 __U, __m512i __A, const int __R) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_pd(__m512d __A, int __B) { - return (__m512d)__builtin_ia32_reducepd512_mask( - (__v8df)__A, __B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_round_pd(__m512d __A, int __B, const int __R) { - return (__m512d)__builtin_ia32_reducepd512_mask_round( - (__v8df)__A, __B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_pd(__m512d __W, __mmask8 __U, __m512d __A, int __B) { - return (__m512d)__builtin_ia32_reducepd512_mask((__v8df)__A, __B, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_round_pd(__m512d __W, __mmask8 __U, __m512d __A, int __B, - const int __R) { - return (__m512d)__builtin_ia32_reducepd512_mask_round((__v8df)__A, __B, - (__v8df)__W, __U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_reduce_pd(__mmask8 __U, __m512d __A, int __B) { - return (__m512d)__builtin_ia32_reducepd512_mask( - (__v8df)__A, __B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_reduce_round_pd(__mmask8 __U, __m512d __A, int __B, - const int __R) { - return (__m512d)__builtin_ia32_reducepd512_mask_round( - (__v8df)__A, __B, (__v8df)_mm512_setzero_pd(), __U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_ps(__m512 __A, int __B) { - return (__m512)__builtin_ia32_reduceps512_mask( - (__v16sf)__A, __B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_round_ps(__m512 __A, int __B, const int __R) { - return (__m512)__builtin_ia32_reduceps512_mask_round( - (__v16sf)__A, __B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_ps(__m512 __W, __mmask16 __U, __m512 __A, int __B) { - return (__m512)__builtin_ia32_reduceps512_mask((__v16sf)__A, __B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_round_ps(__m512 __W, __mmask16 __U, __m512 __A, int __B, - const int __R) { - return (__m512)__builtin_ia32_reduceps512_mask_round((__v16sf)__A, __B, - (__v16sf)__W, __U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_reduce_ps(__mmask16 __U, __m512 __A, int __B) { - return (__m512)__builtin_ia32_reduceps512_mask( - (__v16sf)__A, __B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_reduce_round_ps(__mmask16 __U, __m512 __A, int __B, - const int __R) { - return (__m512)__builtin_ia32_reduceps512_mask_round( - (__v16sf)__A, __B, (__v16sf)_mm512_setzero_ps(), __U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extractf32x8_ps(__m512 __A, const int __imm) { - return (__m256)__builtin_ia32_extractf32x8_mask( - (__v16sf)__A, __imm, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extractf32x8_ps(__m256 __W, __mmask8 __U, __m512 __A, - const int __imm) { - return (__m256)__builtin_ia32_extractf32x8_mask((__v16sf)__A, __imm, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_extractf32x8_ps(__mmask8 __U, __m512 __A, const int __imm) { - return (__m256)__builtin_ia32_extractf32x8_mask( - (__v16sf)__A, __imm, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extractf64x2_pd(__m512d __A, const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_512_mask( - (__v8df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extractf64x2_pd(__m128d __W, __mmask8 __U, __m512d __A, - const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_512_mask( - (__v8df)__A, __imm, (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_extractf64x2_pd(__mmask8 __U, __m512d __A, const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_512_mask( - (__v8df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extracti32x8_epi32(__m512i __A, const int __imm) { - return (__m256i)__builtin_ia32_extracti32x8_mask( - (__v16si)__A, __imm, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extracti32x8_epi32(__m256i __W, __mmask8 __U, __m512i __A, - const int __imm) { - return (__m256i)__builtin_ia32_extracti32x8_mask((__v16si)__A, __imm, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_extracti32x8_epi32(__mmask8 __U, __m512i __A, const int __imm) { - return (__m256i)__builtin_ia32_extracti32x8_mask( - (__v16si)__A, __imm, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extracti64x2_epi64(__m512i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_512_mask( - (__v8di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extracti64x2_epi64(__m128i __W, __mmask8 __U, __m512i __A, - const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_512_mask( - (__v8di)__A, __imm, (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_extracti64x2_epi64(__mmask8 __U, __m512i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_512_mask( - (__v8di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_range_round_pd(__m512d __A, __m512d __B, int __C, const int __R) { - return (__m512d)__builtin_ia32_rangepd512_mask((__v8df)__A, (__v8df)__B, __C, - (__v8df)_mm512_setzero_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_range_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, int __C, const int __R) { - return (__m512d)__builtin_ia32_rangepd512_mask( - (__v8df)__A, (__v8df)__B, __C, (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_range_round_pd(__mmask8 __U, __m512d __A, __m512d __B, int __C, - const int __R) { - return (__m512d)__builtin_ia32_rangepd512_mask((__v8df)__A, (__v8df)__B, __C, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_range_round_ps(__m512 __A, __m512 __B, int __C, const int __R) { - return (__m512)__builtin_ia32_rangeps512_mask((__v16sf)__A, (__v16sf)__B, __C, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_range_round_ps(__m512 __W, __mmask16 __U, __m512 __A, - __m512 __B, int __C, const int __R) { - return (__m512)__builtin_ia32_rangeps512_mask( - (__v16sf)__A, (__v16sf)__B, __C, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_range_round_ps(__mmask16 __U, __m512 __A, __m512 __B, int __C, - const int __R) { - return (__m512)__builtin_ia32_rangeps512_mask((__v16sf)__A, (__v16sf)__B, __C, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_inserti32x8(__m512i __A, __m256i __B, const int __imm) { - return (__m512i)__builtin_ia32_inserti32x8_mask( - (__v16si)__A, (__v8si)__B, __imm, (__v16si)_mm512_setzero_si512(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_inserti32x8(__m512i __W, __mmask16 __U, __m512i __A, - __m256i __B, const int __imm) { - return (__m512i)__builtin_ia32_inserti32x8_mask( - (__v16si)__A, (__v8si)__B, __imm, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_inserti32x8(__mmask16 __U, __m512i __A, __m256i __B, - const int __imm) { - return (__m512i)__builtin_ia32_inserti32x8_mask( - (__v16si)__A, (__v8si)__B, __imm, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_insertf32x8(__m512 __A, __m256 __B, const int __imm) { - return (__m512)__builtin_ia32_insertf32x8_mask( - (__v16sf)__A, (__v8sf)__B, __imm, (__v16sf)_mm512_setzero_ps(), - (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_insertf32x8(__m512 __W, __mmask16 __U, __m512 __A, __m256 __B, - const int __imm) { - return (__m512)__builtin_ia32_insertf32x8_mask( - (__v16sf)__A, (__v8sf)__B, __imm, (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_insertf32x8(__mmask16 __U, __m512 __A, __m256 __B, - const int __imm) { - return (__m512)__builtin_ia32_insertf32x8_mask( - (__v16sf)__A, (__v8sf)__B, __imm, (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_inserti64x2(__m512i __A, __m128i __B, const int __imm) { - return (__m512i)__builtin_ia32_inserti64x2_512_mask( - (__v8di)__A, (__v2di)__B, __imm, (__v8di)_mm512_setzero_si512(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_inserti64x2(__m512i __W, __mmask8 __U, __m512i __A, __m128i __B, - const int __imm) { - return (__m512i)__builtin_ia32_inserti64x2_512_mask( - (__v8di)__A, (__v2di)__B, __imm, (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_inserti64x2(__mmask8 __U, __m512i __A, __m128i __B, - const int __imm) { - return (__m512i)__builtin_ia32_inserti64x2_512_mask( - (__v8di)__A, (__v2di)__B, __imm, (__v8di)_mm512_setzero_si512(), - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_insertf64x2(__m512d __A, __m128d __B, const int __imm) { - return (__m512d)__builtin_ia32_insertf64x2_512_mask( - (__v8df)__A, (__v2df)__B, __imm, (__v8df)_mm512_setzero_pd(), - (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_insertf64x2(__m512d __W, __mmask8 __U, __m512d __A, __m128d __B, - const int __imm) { - return (__m512d)__builtin_ia32_insertf64x2_512_mask( - (__v8df)__A, (__v2df)__B, __imm, (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_insertf64x2(__mmask8 __U, __m512d __A, __m128d __B, - const int __imm) { - return (__m512d)__builtin_ia32_insertf64x2_512_mask( - (__v8df)__A, (__v2df)__B, __imm, (__v8df)_mm512_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fpclass_pd_mask(__mmask8 __U, __m512d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd512_mask((__v8df)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fpclass_pd_mask(__m512d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd512_mask((__v8df)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fpclass_ps_mask(__mmask16 __U, __m512 __A, const int __imm) { - return (__mmask16)__builtin_ia32_fpclassps512_mask((__v16sf)__A, __imm, __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fpclass_ps_mask(__m512 __A, const int __imm) { - return (__mmask16)__builtin_ia32_fpclassps512_mask((__v16sf)__A, __imm, - (__mmask16)-1); -} - -typedef short __v16hi_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -typedef short __v8hi_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); -typedef char __v32qi_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -typedef char __v16qi_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_epi8(__m256i __W, __mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdquqi256_mask((__v32qi)__A, (__v32qi)__W, - (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_epi8(__mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdquqi256_mask( - (__v32qi)__A, (__v32qi)_mm256_setzero_si256(), (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_epi8(__m128i __W, __mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdquqi128_mask((__v16qi)__A, (__v16qi)__W, - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_epi8(__mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdquqi128_mask( - (__v16qi)__A, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_epi8(void *__P, __m256i __A) { - *(__v32qi_u *)__P = (__v32qi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_epi8(void *__P, __mmask32 __U, __m256i __A) { - __builtin_ia32_storedquqi256_mask((char *)__P, (__v32qi)__A, (__mmask32)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_epi8(void *__P, __m128i __A) { - *(__v16qi_u *)__P = (__v16qi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_epi8(void *__P, __mmask16 __U, __m128i __A) { - __builtin_ia32_storedquqi128_mask((char *)__P, (__v16qi)__A, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_epi16(void const *__P) { - return (__m256i)(*(__v16hi_u *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_epi16(__m256i __W, __mmask16 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddquhi256_mask( - (const short *)__P, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_epi16(__mmask16 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddquhi256_mask( - (const short *)__P, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_epi16(void const *__P) { - return (__m128i)(*(__v8hi_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_epi16(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddquhi128_mask((const short *)__P, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_epi16(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddquhi128_mask( - (const short *)__P, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_epi16(__m256i __W, __mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdquhi256_mask((__v16hi)__A, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_epi16(__mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdquhi256_mask( - (__v16hi)__A, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_epi16(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdquhi128_mask((__v8hi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_epi16(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdquhi128_mask( - (__v8hi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_epi8(void const *__P) { - return (__m256i)(*(__v32qi_u *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_epi8(__m256i __W, __mmask32 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddquqi256_mask( - (const char *)__P, (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_epi8(__mmask32 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddquqi256_mask( - (const char *)__P, (__v32qi)_mm256_setzero_si256(), (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_epi8(void const *__P) { - return (__m128i)(*(__v16qi_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_epi8(__m128i __W, __mmask16 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddquqi128_mask( - (const char *)__P, (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_epi8(__mmask16 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddquqi128_mask( - (const char *)__P, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi16_epi8(__m256i __A) { - - return (__m128i)__builtin_ia32_pmovwb256_mask( - (__v16hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi16_storeu_epi8(void *__P, __mmask16 __M, __m256i __A) { - __builtin_ia32_pmovwb256mem_mask((__v16qi *)__P, (__v16hi)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi16_epi8(__m128i __O, __mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovwb256_mask((__v16hi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi16_epi8(__mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovwb256_mask( - (__v16hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi16_epi8(__m128i __A) { - - return (__m128i)__builtin_ia32_pmovswb128_mask( - (__v8hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi16_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovswb128mem_mask((unsigned long long *)__P, (__v8hi)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi16_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovswb128_mask((__v8hi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi16_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovswb128_mask( - (__v8hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi16_epi8(__m256i __A) { - - return (__m128i)__builtin_ia32_pmovswb256_mask( - (__v16hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi16_storeu_epi8(void *__P, __mmask16 __M, __m256i __A) { - __builtin_ia32_pmovswb256mem_mask((__v16qi *)__P, (__v16hi)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi16_epi8(__m128i __O, __mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovswb256_mask((__v16hi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi16_epi8(__mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovswb256_mask( - (__v16hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi16_epi8(__m128i __A) { - - return (__m128i)__builtin_ia32_pmovuswb128_mask( - (__v8hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi16_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovuswb128mem_mask((unsigned long long *)__P, (__v8hi)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi16_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovuswb128_mask((__v8hi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi16_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovuswb128_mask( - (__v8hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi16_epi8(__m256i __A) { - - return (__m128i)__builtin_ia32_pmovuswb256_mask( - (__v16hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi16_storeu_epi8(void *__P, __mmask16 __M, __m256i __A) { - __builtin_ia32_pmovuswb256mem_mask((__v16qi *)__P, (__v16hi)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi16_epi8(__m128i __O, __mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovuswb256_mask((__v16hi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi16_epi8(__mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovuswb256_mask( - (__v16hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastb_epi8(__m256i __O, __mmask32 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastb256_mask((__v16qi)__A, (__v32qi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastb_epi8(__mmask32 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastb256_mask( - (__v16qi)__A, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_set1_epi8(__m256i __O, __mmask32 __M, char __A) { - return (__m256i)__builtin_ia32_pbroadcastb256_gpr_mask(__A, (__v32qi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_set1_epi8(__mmask32 __M, char __A) { - return (__m256i)__builtin_ia32_pbroadcastb256_gpr_mask( - __A, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcastb_epi8(__m128i __O, __mmask16 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastb128_mask((__v16qi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcastb_epi8(__mmask16 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastb128_mask( - (__v16qi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_set1_epi8(__m128i __O, __mmask16 __M, char __A) { - return (__m128i)__builtin_ia32_pbroadcastb128_gpr_mask(__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_set1_epi8(__mmask16 __M, char __A) { - return (__m128i)__builtin_ia32_pbroadcastb128_gpr_mask( - __A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastw_epi16(__m256i __O, __mmask16 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastw256_mask((__v8hi)__A, (__v16hi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastw_epi16(__mmask16 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastw256_mask( - (__v8hi)__A, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_set1_epi16(__m256i __O, __mmask16 __M, short __A) { - return (__m256i)__builtin_ia32_pbroadcastw256_gpr_mask(__A, (__v16hi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_set1_epi16(__mmask16 __M, short __A) { - return (__m256i)__builtin_ia32_pbroadcastw256_gpr_mask( - __A, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcastw_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastw128_mask((__v8hi)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcastw_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastw128_mask( - (__v8hi)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_set1_epi16(__m128i __O, __mmask8 __M, short __A) { - return (__m128i)__builtin_ia32_pbroadcastw128_gpr_mask(__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_set1_epi16(__mmask8 __M, short __A) { - return (__m128i)__builtin_ia32_pbroadcastw128_gpr_mask( - __A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutexvar_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_permvarhi256_mask( - (__v16hi)__B, (__v16hi)__A, (__v16hi)_mm256_setzero_si256(), - (__mmask16)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_epi16(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_permvarhi256_mask( - (__v16hi)__B, (__v16hi)__A, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutexvar_epi16(__m256i __W, __mmask16 __M, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_permvarhi256_mask( - (__v16hi)__B, (__v16hi)__A, (__v16hi)__W, (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutexvar_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_permvarhi128_mask( - (__v8hi)__B, (__v8hi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutexvar_epi16(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_permvarhi128_mask( - (__v8hi)__B, (__v8hi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutexvar_epi16(__m128i __W, __mmask8 __M, __m128i __A, - __m128i __B) { - return (__m128i)__builtin_ia32_permvarhi128_mask((__v8hi)__B, (__v8hi)__A, - (__v8hi)__W, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_epi16(__m256i __A, __m256i __I, __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varhi256_mask( - (__v16hi)__I, (__v16hi)__A, (__v16hi)__B, (__mmask16)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex2var_epi16(__m256i __A, __mmask16 __U, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varhi256_mask( - (__v16hi)__I, (__v16hi)__A, (__v16hi)__B, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_epi16(__m256i __A, __m256i __I, __mmask16 __U, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermi2varhi256_mask( - (__v16hi)__A, (__v16hi)__I, (__v16hi)__B, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_epi16(__mmask16 __U, __m256i __A, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varhi256_maskz( - (__v16hi)__I, (__v16hi)__A, (__v16hi)__B, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_epi16(__m128i __A, __m128i __I, __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varhi128_mask( - (__v8hi)__I, (__v8hi)__A, (__v8hi)__B, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutex2var_epi16(__m128i __A, __mmask8 __U, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varhi128_mask( - (__v8hi)__I, (__v8hi)__A, (__v8hi)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask2_permutex2var_epi16(__m128i __A, __m128i __I, __mmask8 __U, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermi2varhi128_mask( - (__v8hi)__A, (__v8hi)__I, (__v8hi)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutex2var_epi16(__mmask8 __U, __m128i __A, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varhi128_maskz( - (__v8hi)__I, (__v8hi)__A, (__v8hi)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_maddubs_epi16(__m256i __W, __mmask16 __U, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_pmaddubsw256_mask( - (__v32qi)__X, (__v32qi)__Y, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_maddubs_epi16(__mmask16 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmaddubsw256_mask( - (__v32qi)__X, (__v32qi)__Y, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_maddubs_epi16(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaddubsw128_mask((__v16qi)__X, (__v16qi)__Y, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_maddubs_epi16(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaddubsw128_mask( - (__v16qi)__X, (__v16qi)__Y, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_madd_epi16(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaddwd256_mask((__v16hi)__A, (__v16hi)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_madd_epi16(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaddwd256_mask((__v16hi)__A, (__v16hi)__B, - (__v8si)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_madd_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaddwd128_mask((__v8hi)__A, (__v8hi)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_madd_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaddwd128_mask( - (__v8hi)__A, (__v8hi)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movepi8_mask(__m128i __A) { - return (__mmask16)__builtin_ia32_cvtb2mask128((__v16qi)__A); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movepi8_mask(__m256i __A) { - return (__mmask32)__builtin_ia32_cvtb2mask256((__v32qi)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movepi16_mask(__m128i __A) { - return (__mmask8)__builtin_ia32_cvtw2mask128((__v8hi)__A); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movepi16_mask(__m256i __A) { - return (__mmask16)__builtin_ia32_cvtw2mask256((__v16hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movm_epi8(__mmask16 __A) { - return (__m128i)__builtin_ia32_cvtmask2b128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movm_epi8(__mmask32 __A) { - return (__m256i)__builtin_ia32_cvtmask2b256(__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movm_epi16(__mmask8 __A) { - return (__m128i)__builtin_ia32_cvtmask2w128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movm_epi16(__mmask16 __A) { - return (__m256i)__builtin_ia32_cvtmask2w256(__A); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_test_epi8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ptestmb128((__v16qi)__A, (__v16qi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_test_epi8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ptestmb128((__v16qi)__A, (__v16qi)__B, __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_test_epi8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ptestmb256((__v32qi)__A, (__v32qi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_test_epi8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ptestmb256((__v32qi)__A, (__v32qi)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_test_epi16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmw128((__v8hi)__A, (__v8hi)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_test_epi16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmw128((__v8hi)__A, (__v8hi)__B, __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_test_epi16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ptestmw256((__v16hi)__A, (__v16hi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_test_epi16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ptestmw256((__v16hi)__A, (__v16hi)__B, __U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epu16(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_min_epu16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epu16(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminuw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epu16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminuw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epi16(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_min_epi16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epu8(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxub256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epu8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxub256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epu8(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxub128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epu8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxub128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epi8(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epi8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epi8(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epi8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epu8(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminub256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epu8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminub256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epu8(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminub128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epu8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminub128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epi8(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epi8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epi8(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epi8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epi16(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_max_epi16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epi16(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epi16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epu16(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_max_epu16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epu16(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxuw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epu16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxuw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epi16(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epi16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_alignr_epi8(__m256i __W, __mmask32 __U, __m256i __A, - __m256i __B, const int __N) { - return (__m256i)__builtin_ia32_palignr256_mask( - (__v4di)__A, (__v4di)__B, __N * 8, (__v4di)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_alignr_epi8(__mmask32 __U, __m256i __A, __m256i __B, - const int __N) { - return (__m256i)__builtin_ia32_palignr256_mask( - (__v4di)__A, (__v4di)__B, __N * 8, (__v4di)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_alignr_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B, - const int __N) { - return (__m128i)__builtin_ia32_palignr128_mask( - (__v2di)__A, (__v2di)__B, __N * 8, (__v2di)__W, (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_alignr_epi8(__mmask16 __U, __m128i __A, __m128i __B, const int __N) { - return (__m128i)__builtin_ia32_palignr128_mask( - (__v2di)__A, (__v2di)__B, __N * 8, (__v2di)_mm_setzero_si128(), - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dbsad_epu8(__m256i __A, __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_dbpsadbw256_mask( - (__v32qi)__A, (__v32qi)__B, __imm, (__v16hi)_mm256_setzero_si256(), - (__mmask16)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_dbsad_epu8(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_dbpsadbw256_mask( - (__v32qi)__A, (__v32qi)__B, __imm, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_dbsad_epu8(__mmask16 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_dbpsadbw256_mask( - (__v32qi)__A, (__v32qi)__B, __imm, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dbsad_epu8(__m128i __A, __m128i __B, const int __imm) { - return (__m128i)__builtin_ia32_dbpsadbw128_mask( - (__v16qi)__A, (__v16qi)__B, __imm, (__v8hi)_mm_setzero_si128(), - (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_dbsad_epu8(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B, - const int __imm) { - return (__m128i)__builtin_ia32_dbpsadbw128_mask( - (__v16qi)__A, (__v16qi)__B, __imm, (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_dbsad_epu8(__mmask8 __U, __m128i __A, __m128i __B, const int __imm) { - return (__m128i)__builtin_ia32_dbpsadbw128_mask( - (__v16qi)__A, (__v16qi)__B, __imm, (__v8hi)_mm_setzero_si128(), - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_epi16(__mmask8 __U, __m128i __A, __m128i __W) { - return (__m128i)__builtin_ia32_blendmw_128_mask((__v8hi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_epi8(__mmask16 __U, __m128i __A, __m128i __W) { - return (__m128i)__builtin_ia32_blendmb_128_mask((__v16qi)__A, (__v16qi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_epi16(__mmask16 __U, __m256i __A, __m256i __W) { - return (__m256i)__builtin_ia32_blendmw_256_mask((__v16hi)__A, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_epi8(__mmask32 __U, __m256i __A, __m256i __W) { - return (__m256i)__builtin_ia32_blendmb_256_mask((__v32qi)__A, (__v32qi)__W, - (__mmask32)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epi16_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epi16_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epi16_mask(__mmask16 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, __P, - (__mmask16)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epi16_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, __P, - (__mmask16)-1); -} - -extern __inline __mmask16 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epi8_mask(__mmask16 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, __P, - (__mmask16)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epi8_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, __P, - (__mmask16)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epi8_mask(__mmask32 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, __P, - (__mmask32)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epi8_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, __P, - (__mmask32)-1); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epu16_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epu16_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epu16_mask(__mmask16 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, - __P, (__mmask16)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epu16_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, - __P, (__mmask16)-1); -} - -extern __inline __mmask16 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epu8_mask(__mmask16 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, - __P, (__mmask16)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epu8_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, - __P, (__mmask16)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epu8_mask(__mmask32 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, - __P, (__mmask32)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epu8_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, - __P, (__mmask32)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srli_epi16(__m256i __W, __mmask16 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psrlwi256_mask((__v16hi)__A, __imm, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srli_epi16(__mmask16 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psrlwi256_mask( - (__v16hi)__A, __imm, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srli_epi16(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrlwi128_mask((__v8hi)__A, __imm, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srli_epi16(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrlwi128_mask( - (__v8hi)__A, __imm, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shufflehi_epi16(__m256i __W, __mmask16 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_pshufhw256_mask((__v16hi)__A, __imm, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shufflehi_epi16(__mmask16 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_pshufhw256_mask( - (__v16hi)__A, __imm, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shufflehi_epi16(__m128i __W, __mmask8 __U, __m128i __A, - const int __imm) { - return (__m128i)__builtin_ia32_pshufhw128_mask((__v8hi)__A, __imm, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shufflehi_epi16(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_pshufhw128_mask( - (__v8hi)__A, __imm, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shufflelo_epi16(__m256i __W, __mmask16 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_pshuflw256_mask((__v16hi)__A, __imm, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shufflelo_epi16(__mmask16 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_pshuflw256_mask( - (__v16hi)__A, __imm, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shufflelo_epi16(__m128i __W, __mmask8 __U, __m128i __A, - const int __imm) { - return (__m128i)__builtin_ia32_pshuflw128_mask((__v8hi)__A, __imm, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shufflelo_epi16(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_pshuflw128_mask( - (__v8hi)__A, __imm, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srai_epi16(__m256i __W, __mmask16 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psrawi256_mask((__v16hi)__A, __imm, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srai_epi16(__mmask16 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psrawi256_mask( - (__v16hi)__A, __imm, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srai_epi16(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrawi128_mask((__v8hi)__A, __imm, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srai_epi16(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrawi128_mask( - (__v8hi)__A, __imm, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_slli_epi16(__m256i __W, __mmask16 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllwi256_mask((__v16hi)__A, __B, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_slli_epi16(__mmask16 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllwi256_mask( - (__v16hi)__A, __B, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_slli_epi16(__m128i __W, __mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllwi128_mask((__v8hi)__A, __B, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_slli_epi16(__mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllwi128_mask( - (__v8hi)__A, __B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epi8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 4, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epi8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 1, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epi8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 5, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epi8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 2, - (__mmask32)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epi16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epi16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epi16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epi16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 2, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epu8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epu8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epu8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epu8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 2, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epu16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epu16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epu16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epu16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epi8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epi8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epi8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 2, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epi16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epi16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epi16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 2, - (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mulhrs_epi16(__m256i __W, __mmask16 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmulhrsw256_mask((__v16hi)__X, (__v16hi)__Y, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mulhrs_epi16(__mmask16 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmulhrsw256_mask( - (__v16hi)__X, (__v16hi)__Y, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mulhi_epu16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhuw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mulhi_epu16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhuw256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mulhi_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mulhi_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mulhi_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mulhi_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mulhi_epu16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhuw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mulhi_epu16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhuw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mulhrs_epi16(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmulhrsw128_mask((__v8hi)__X, (__v8hi)__Y, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mulhrs_epi16(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmulhrsw128_mask( - (__v8hi)__X, (__v8hi)__Y, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mullo_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmullw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mullo_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmullw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mullo_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmullw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mullo_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmullw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi8_epi16(__m256i __W, __mmask16 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbw256_mask((__v16qi)__A, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi8_epi16(__mmask16 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbw256_mask( - (__v16qi)__A, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi8_epi16(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbw128_mask((__v16qi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi8_epi16(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbw128_mask( - (__v16qi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu8_epi16(__m256i __W, __mmask16 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbw256_mask((__v16qi)__A, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu8_epi16(__mmask16 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbw256_mask( - (__v16qi)__A, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu8_epi16(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbw128_mask((__v16qi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu8_epi16(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbw128_mask( - (__v16qi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_avg_epu8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_avg_epu8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_avg_epu8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_avg_epu8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_avg_epu16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_avg_epu16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_avg_epu16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_avg_epu16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_add_epi8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_add_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_adds_epi8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_adds_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_adds_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_adds_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_adds_epu8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_adds_epu8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusb256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_adds_epu16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_adds_epu16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusw256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sub_epi8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sub_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_subs_epi8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_subs_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_subs_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_subs_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_subs_epu8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_subs_epu8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusb256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_subs_epu16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_subs_epu16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusw256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpackhi_epi8(__m256i __W, __mmask32 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpckhbw256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhbw256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpackhi_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhbw128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhbw128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpackhi_epi16(__m256i __W, __mmask16 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpckhwd256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhwd256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpackhi_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhwd128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhwd128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpacklo_epi8(__m256i __W, __mmask32 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpcklbw256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklbw256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpacklo_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklbw128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklbw128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpacklo_epi16(__m256i __W, __mmask16 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpcklwd256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklwd256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpacklo_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklwd128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklwd128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_pcmpeqb128_mask((__v16qi)__A, (__v16qi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epu8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__A, (__v16qi)__B, 0, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epu8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__A, (__v16qi)__B, 0, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epi8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_pcmpeqb128_mask((__v16qi)__A, (__v16qi)__B, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epu8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__A, (__v32qi)__B, 0, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_pcmpeqb256_mask((__v32qi)__A, (__v32qi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epu8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__A, (__v32qi)__B, 0, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epi8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_pcmpeqb256_mask((__v32qi)__A, (__v32qi)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epu16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__A, (__v8hi)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqw128_mask((__v8hi)__A, (__v8hi)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epu16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__A, (__v8hi)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epi16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqw128_mask((__v8hi)__A, (__v8hi)__B, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epu16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__A, (__v16hi)__B, 0, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_pcmpeqw256_mask((__v16hi)__A, (__v16hi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epu16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__A, (__v16hi)__B, 0, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epi16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_pcmpeqw256_mask((__v16hi)__A, (__v16hi)__B, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epu8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__A, (__v16qi)__B, 6, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_pcmpgtb128_mask((__v16qi)__A, (__v16qi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epu8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__A, (__v16qi)__B, 6, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epi8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_pcmpgtb128_mask((__v16qi)__A, (__v16qi)__B, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epu8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__A, (__v32qi)__B, 6, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_pcmpgtb256_mask((__v32qi)__A, (__v32qi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epu8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__A, (__v32qi)__B, 6, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epi8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_pcmpgtb256_mask((__v32qi)__A, (__v32qi)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epu16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__A, (__v8hi)__B, 6, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtw128_mask((__v8hi)__A, (__v8hi)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epu16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__A, (__v8hi)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epi16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtw128_mask((__v8hi)__A, (__v8hi)__B, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epu16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__A, (__v16hi)__B, 6, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_pcmpgtw256_mask((__v16hi)__A, (__v16hi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epu16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__A, (__v16hi)__B, 6, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epi16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_pcmpgtw256_mask((__v16hi)__A, (__v16hi)__B, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testn_epi8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ptestnmb128((__v16qi)__A, (__v16qi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_testn_epi8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ptestnmb128((__v16qi)__A, (__v16qi)__B, __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testn_epi8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ptestnmb256((__v32qi)__A, (__v32qi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_testn_epi8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ptestnmb256((__v32qi)__A, (__v32qi)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testn_epi16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmw128((__v8hi)__A, (__v8hi)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_testn_epi16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmw128((__v8hi)__A, (__v8hi)__B, __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testn_epi16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ptestnmw256((__v16hi)__A, (__v16hi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_testn_epi16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ptestnmw256((__v16hi)__A, (__v16hi)__B, __U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shuffle_epi8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pshufb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pshufb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_shuffle_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pshufb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shuffle_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pshufb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_packs_epi16(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packsswb256_mask( - (__v16hi)__A, (__v16hi)__B, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_packs_epi16(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packsswb256_mask((__v16hi)__A, (__v16hi)__B, - (__v32qi)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_packs_epi16(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packsswb128_mask( - (__v8hi)__A, (__v8hi)__B, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_packs_epi16(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packsswb128_mask((__v8hi)__A, (__v8hi)__B, - (__v16qi)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_packus_epi16(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packuswb256_mask( - (__v16hi)__A, (__v16hi)__B, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_packus_epi16(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packuswb256_mask((__v16hi)__A, (__v16hi)__B, - (__v32qi)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_packus_epi16(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packuswb128_mask( - (__v8hi)__A, (__v8hi)__B, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_packus_epi16(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packuswb128_mask((__v8hi)__A, (__v8hi)__B, - (__v16qi)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_abs_epi8(__m256i __W, __mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsb256_mask((__v32qi)__A, (__v32qi)__W, - (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_abs_epi8(__mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsb256_mask( - (__v32qi)__A, (__v32qi)_mm256_setzero_si256(), (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_abs_epi8(__m128i __W, __mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsb128_mask((__v16qi)__A, (__v16qi)__W, - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_abs_epi8(__mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsb128_mask( - (__v16qi)__A, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_abs_epi16(__m256i __W, __mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsw256_mask((__v16hi)__A, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_abs_epi16(__mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsw256_mask( - (__v16hi)__A, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_abs_epi16(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsw128_mask((__v8hi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_abs_epi16(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsw128_mask( - (__v8hi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epu8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 4, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epu8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 1, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epu8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 5, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epu8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 2, - (__mmask32)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epu16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epu16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epu16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epu16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 2, - (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_epi16(void *__P, __m256i __A) { - *(__v16hi_u *)__P = (__v16hi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_epi16(void *__P, __mmask16 __U, __m256i __A) { - __builtin_ia32_storedquhi256_mask((short *)__P, (__v16hi)__A, (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_epi16(void *__P, __m128i __A) { - *(__v8hi_u *)__P = (__v8hi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_epi16(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_storedquhi128_mask((short *)__P, (__v8hi)__A, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_adds_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_subs_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_subs_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_subs_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_subs_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_subs_epu8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_subs_epu8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_subs_epu16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_subs_epu16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srl_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srl_epi16(__mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srl_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srl_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sra_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sra_epi16(__mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sra_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sra_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_adds_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_adds_epu8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_adds_epu8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_adds_epu16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_adds_epu16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_adds_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_adds_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi16_epi8(__m128i __A) { - - return (__m128i)__builtin_ia32_pmovwb128_mask( - (__v8hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi16_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovwb128mem_mask((unsigned long long *)__P, (__v8hi)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi16_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovwb128_mask((__v8hi)__A, (__v16qi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi16_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovwb128_mask( - (__v8hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srav_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrav16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srav_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrav16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srav_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrav16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srav_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrav8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srav_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrav8hi_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srav_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrav8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srlv_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrlv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srlv_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrlv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srlv_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrlv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srlv_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlv8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srlv_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlv8hi_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srlv_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlv8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sllv_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psllv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sllv_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psllv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sllv_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psllv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sllv_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllv8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sllv_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllv8hi_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sllv_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllv8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sll_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sll_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sll_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sll_epi16(__mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_packus_epi32(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packusdw256_mask( - (__v8si)__A, (__v8si)__B, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_packus_epi32(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packusdw256_mask((__v8si)__A, (__v8si)__B, - (__v16hi)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_packus_epi32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packusdw128_mask( - (__v4si)__A, (__v4si)__B, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_packus_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packusdw128_mask((__v4si)__A, (__v4si)__B, - (__v8hi)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_packs_epi32(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packssdw256_mask( - (__v8si)__A, (__v8si)__B, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_packs_epi32(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packssdw256_mask((__v8si)__A, (__v8si)__B, - (__v16hi)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_packs_epi32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packssdw128_mask( - (__v4si)__A, (__v4si)__B, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_packs_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packssdw128_mask((__v4si)__A, (__v4si)__B, - (__v8hi)__W, __M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epu8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epu8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epu8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epu8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 2, - (__mmask16)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epu16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epu16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epu16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epu16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epi8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epi8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epi8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epi8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 2, - (__mmask16)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epi16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epi16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epi16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epi16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epu8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 4, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epu8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 1, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epu8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 5, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epu8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 2, - (__mmask32)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epu16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epu16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epu16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epu16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 2, - (__mmask16)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epi8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 4, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epi8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 1, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epi8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 5, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epi8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 2, - (__mmask32)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epi16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epi16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epi16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epi16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 2, - (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttpd_epi64(__m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2qq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttpd_epi64(__m256i __W, __mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2qq256_mask((__v4df)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttpd_epi64(__mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2qq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttpd_epi64(__m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2qq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttpd_epi64(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2qq128_mask((__v2df)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttpd_epi64(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2qq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttpd_epu64(__m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2uqq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttpd_epu64(__m256i __W, __mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2uqq256_mask((__v4df)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttpd_epu64(__mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2uqq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttpd_epu64(__m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2uqq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttpd_epu64(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2uqq128_mask((__v2df)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttpd_epu64(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2uqq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtpd_epi64(__m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2qq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtpd_epi64(__m256i __W, __mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2qq256_mask((__v4df)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtpd_epi64(__mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2qq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_epi64(__m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2qq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtpd_epi64(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2qq128_mask((__v2df)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtpd_epi64(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2qq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtpd_epu64(__m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2uqq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtpd_epu64(__m256i __W, __mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2uqq256_mask((__v4df)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtpd_epu64(__mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2uqq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_epu64(__m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2uqq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtpd_epu64(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2uqq128_mask((__v2df)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtpd_epu64(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2uqq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttps_epi64(__m128 __A) { - return (__m256i)__builtin_ia32_cvttps2qq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttps_epi64(__m256i __W, __mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvttps2qq256_mask((__v4sf)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttps_epi64(__mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvttps2qq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttps_epi64(__m128 __A) { - return (__m128i)__builtin_ia32_cvttps2qq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttps_epi64(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2qq128_mask((__v4sf)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttps_epi64(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2qq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttps_epu64(__m128 __A) { - return (__m256i)__builtin_ia32_cvttps2uqq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttps_epu64(__m256i __W, __mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvttps2uqq256_mask((__v4sf)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttps_epu64(__mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvttps2uqq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttps_epu64(__m128 __A) { - return (__m128i)__builtin_ia32_cvttps2uqq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttps_epu64(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2uqq128_mask((__v4sf)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttps_epu64(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2uqq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_f64x2(__m128d __A) { - return (__m256d)__builtin_ia32_broadcastf64x2_256_mask( - (__v2df)__A, (__v4df)_mm256_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_f64x2(__m256d __O, __mmask8 __M, __m128d __A) { - return (__m256d)__builtin_ia32_broadcastf64x2_256_mask((__v2df)__A, - (__v4df)__O, __M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_f64x2(__mmask8 __M, __m128d __A) { - return (__m256d)__builtin_ia32_broadcastf64x2_256_mask( - (__v2df)__A, (__v4df)_mm256_setzero_ps(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_i64x2(__m128i __A) { - return (__m256i)__builtin_ia32_broadcasti64x2_256_mask( - (__v2di)__A, (__v4di)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_i64x2(__m256i __O, __mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti64x2_256_mask((__v2di)__A, - (__v4di)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_i64x2(__mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti64x2_256_mask( - (__v2di)__A, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_f32x2(__m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x2_256_mask( - (__v4sf)__A, (__v8sf)_mm256_undefined_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_f32x2(__m256 __O, __mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x2_256_mask((__v4sf)__A, - (__v8sf)__O, __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_f32x2(__mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x2_256_mask( - (__v4sf)__A, (__v8sf)_mm256_setzero_ps(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_i32x2(__m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x2_256_mask( - (__v4si)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_i32x2(__m256i __O, __mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x2_256_mask((__v4si)__A, - (__v8si)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_i32x2(__mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x2_256_mask( - (__v4si)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcast_i32x2(__m128i __A) { - return (__m128i)__builtin_ia32_broadcasti32x2_128_mask( - (__v4si)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcast_i32x2(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_broadcasti32x2_128_mask((__v4si)__A, - (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcast_i32x2(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_broadcasti32x2_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mullo_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A * (__v4du)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mullo_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmullq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mullo_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmullq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mullo_epi64(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A * (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mullo_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmullq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mullo_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmullq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_andnot_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andnpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_andnot_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andnpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_andnot_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andnpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_andnot_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andnpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_andnot_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andnps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_andnot_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andnps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_andnot_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_andnps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_andnot_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_andnps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_epi64(__m128 __A) { - return (__m256i)__builtin_ia32_cvtps2qq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_epi64(__m256i __W, __mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvtps2qq256_mask((__v4sf)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_epi64(__mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvtps2qq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_epi64(__m128 __A) { - return (__m128i)__builtin_ia32_cvtps2qq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_epi64(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2qq128_mask((__v4sf)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_epi64(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2qq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_epu64(__m128 __A) { - return (__m256i)__builtin_ia32_cvtps2uqq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_epu64(__m256i __W, __mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvtps2uqq256_mask((__v4sf)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_epu64(__mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvtps2uqq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_epu64(__m128 __A) { - return (__m128i)__builtin_ia32_cvtps2uqq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_epu64(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2uqq128_mask((__v4sf)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_epu64(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2uqq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi64_ps(__m256i __A) { - return (__m128)__builtin_ia32_cvtqq2ps256_mask( - (__v4di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_ps(__m128 __W, __mmask8 __U, __m256i __A) { - return (__m128)__builtin_ia32_cvtqq2ps256_mask((__v4di)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi64_ps(__mmask8 __U, __m256i __A) { - return (__m128)__builtin_ia32_cvtqq2ps256_mask( - (__v4di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi64_ps(__m128i __A) { - return (__m128)__builtin_ia32_cvtqq2ps128_mask( - (__v2di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_ps(__m128 __W, __mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtqq2ps128_mask((__v2di)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi64_ps(__mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtqq2ps128_mask( - (__v2di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu64_ps(__m256i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps256_mask( - (__v4di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu64_ps(__m128 __W, __mmask8 __U, __m256i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps256_mask((__v4di)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu64_ps(__mmask8 __U, __m256i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps256_mask( - (__v4di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu64_ps(__m128i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps128_mask( - (__v2di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu64_ps(__m128 __W, __mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps128_mask((__v2di)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu64_ps(__mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps128_mask( - (__v2di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi64_pd(__m256i __A) { - return (__m256d)__builtin_ia32_cvtqq2pd256_mask( - (__v4di)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_pd(__m256d __W, __mmask8 __U, __m256i __A) { - return (__m256d)__builtin_ia32_cvtqq2pd256_mask((__v4di)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi64_pd(__mmask8 __U, __m256i __A) { - return (__m256d)__builtin_ia32_cvtqq2pd256_mask( - (__v4di)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi64_pd(__m128i __A) { - return (__m128d)__builtin_ia32_cvtqq2pd128_mask( - (__v2di)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_pd(__m128d __W, __mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtqq2pd128_mask((__v2di)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi64_pd(__mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtqq2pd128_mask( - (__v2di)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu64_pd(__m256i __A) { - return (__m256d)__builtin_ia32_cvtuqq2pd256_mask( - (__v4di)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu64_pd(__m256d __W, __mmask8 __U, __m256i __A) { - return (__m256d)__builtin_ia32_cvtuqq2pd256_mask((__v4di)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu64_pd(__mmask8 __U, __m256i __A) { - return (__m256d)__builtin_ia32_cvtuqq2pd256_mask( - (__v4di)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_and_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_and_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_and_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_and_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_and_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_and_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_and_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_andps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_and_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_andps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu64_pd(__m128i __A) { - return (__m128d)__builtin_ia32_cvtuqq2pd128_mask( - (__v2di)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu64_pd(__m128d __W, __mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtuqq2pd128_mask((__v2di)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu64_pd(__mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtuqq2pd128_mask( - (__v2di)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_xor_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_xorpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_xor_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_xorpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_xor_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_xorpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_xor_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_xorpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_xor_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_xorps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_xor_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_xorps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_xor_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_xorps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_xor_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_xorps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_or_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_orpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_or_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_orpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_or_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_orpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_or_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_orpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_or_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_orps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_or_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_orps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_or_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_orps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_or_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_orps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movm_epi32(__mmask8 __A) { - return (__m128i)__builtin_ia32_cvtmask2d128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movm_epi32(__mmask8 __A) { - return (__m256i)__builtin_ia32_cvtmask2d256(__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movm_epi64(__mmask8 __A) { - return (__m128i)__builtin_ia32_cvtmask2q128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movm_epi64(__mmask8 __A) { - return (__m256i)__builtin_ia32_cvtmask2q256(__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movepi32_mask(__m128i __A) { - return (__mmask8)__builtin_ia32_cvtd2mask128((__v4si)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movepi32_mask(__m256i __A) { - return (__mmask8)__builtin_ia32_cvtd2mask256((__v8si)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movepi64_mask(__m128i __A) { - return (__mmask8)__builtin_ia32_cvtq2mask128((__v2di)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movepi64_mask(__m256i __A) { - return (__mmask8)__builtin_ia32_cvtq2mask256((__v4di)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extractf64x2_pd(__m256d __A, const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_256_mask( - (__v4df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_extractf64x2_pd(__m128d __W, __mmask8 __U, __m256d __A, - const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_256_mask( - (__v4df)__A, __imm, (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_extractf64x2_pd(__mmask8 __U, __m256d __A, const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_256_mask( - (__v4df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extracti64x2_epi64(__m256i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_256_mask( - (__v4di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_extracti64x2_epi64(__m128i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_256_mask( - (__v4di)__A, __imm, (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_extracti64x2_epi64(__mmask8 __U, __m256i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_256_mask( - (__v4di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_reduce_pd(__m256d __A, int __B) { - return (__m256d)__builtin_ia32_reducepd256_mask( - (__v4df)__A, __B, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_reduce_pd(__m256d __W, __mmask8 __U, __m256d __A, int __B) { - return (__m256d)__builtin_ia32_reducepd256_mask((__v4df)__A, __B, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_reduce_pd(__mmask8 __U, __m256d __A, int __B) { - return (__m256d)__builtin_ia32_reducepd256_mask( - (__v4df)__A, __B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_pd(__m128d __A, int __B) { - return (__m128d)__builtin_ia32_reducepd128_mask( - (__v2df)__A, __B, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_reduce_pd(__m128d __W, __mmask8 __U, __m128d __A, int __B) { - return (__m128d)__builtin_ia32_reducepd128_mask((__v2df)__A, __B, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_pd(__mmask8 __U, __m128d __A, int __B) { - return (__m128d)__builtin_ia32_reducepd128_mask( - (__v2df)__A, __B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_reduce_ps(__m256 __A, int __B) { - return (__m256)__builtin_ia32_reduceps256_mask( - (__v8sf)__A, __B, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_reduce_ps(__m256 __W, __mmask8 __U, __m256 __A, int __B) { - return (__m256)__builtin_ia32_reduceps256_mask((__v8sf)__A, __B, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_reduce_ps(__mmask8 __U, __m256 __A, int __B) { - return (__m256)__builtin_ia32_reduceps256_mask( - (__v8sf)__A, __B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_ps(__m128 __A, int __B) { - return (__m128)__builtin_ia32_reduceps128_mask( - (__v4sf)__A, __B, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_reduce_ps(__m128 __W, __mmask8 __U, __m128 __A, int __B) { - return (__m128)__builtin_ia32_reduceps128_mask((__v4sf)__A, __B, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_ps(__mmask8 __U, __m128 __A, int __B) { - return (__m128)__builtin_ia32_reduceps128_mask( - (__v4sf)__A, __B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_range_pd(__m256d __A, __m256d __B, int __C) { - return (__m256d)__builtin_ia32_rangepd256_mask( - (__v4df)__A, (__v4df)__B, __C, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_range_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B, - int __C) { - return (__m256d)__builtin_ia32_rangepd256_mask((__v4df)__A, (__v4df)__B, __C, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_range_pd(__mmask8 __U, __m256d __A, __m256d __B, int __C) { - return (__m256d)__builtin_ia32_rangepd256_mask((__v4df)__A, (__v4df)__B, __C, - (__v4df)_mm256_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_pd(__m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_rangepd128_mask( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_range_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - int __C) { - return (__m128d)__builtin_ia32_rangepd128_mask((__v2df)__A, (__v2df)__B, __C, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_pd(__mmask8 __U, __m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_rangepd128_mask( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_range_ps(__m256 __A, __m256 __B, int __C) { - return (__m256)__builtin_ia32_rangeps256_mask( - (__v8sf)__A, (__v8sf)__B, __C, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_range_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B, - int __C) { - return (__m256)__builtin_ia32_rangeps256_mask((__v8sf)__A, (__v8sf)__B, __C, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_range_ps(__mmask8 __U, __m256 __A, __m256 __B, int __C) { - return (__m256)__builtin_ia32_rangeps256_mask((__v8sf)__A, (__v8sf)__B, __C, - (__v8sf)_mm256_setzero_ps(), - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_ps(__m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangeps128_mask( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_range_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangeps128_mask((__v4sf)__A, (__v4sf)__B, __C, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_ps(__mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangeps128_mask( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fpclass_pd_mask(__mmask8 __U, __m256d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd256_mask((__v4df)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fpclass_pd_mask(__m256d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd256_mask((__v4df)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fpclass_ps_mask(__mmask8 __U, __m256 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassps256_mask((__v8sf)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fpclass_ps_mask(__m256 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassps256_mask((__v8sf)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fpclass_pd_mask(__mmask8 __U, __m128d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd128_mask((__v2df)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fpclass_pd_mask(__m128d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd128_mask((__v2df)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fpclass_ps_mask(__mmask8 __U, __m128 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassps128_mask((__v4sf)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fpclass_ps_mask(__m128 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassps128_mask((__v4sf)__A, __imm, - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_inserti64x2(__m256i __A, __m128i __B, const int __imm) { - return (__m256i)__builtin_ia32_inserti64x2_256_mask( - (__v4di)__A, (__v2di)__B, __imm, (__v4di)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_inserti64x2(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B, - const int __imm) { - return (__m256i)__builtin_ia32_inserti64x2_256_mask( - (__v4di)__A, (__v2di)__B, __imm, (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_inserti64x2(__mmask8 __U, __m256i __A, __m128i __B, - const int __imm) { - return (__m256i)__builtin_ia32_inserti64x2_256_mask( - (__v4di)__A, (__v2di)__B, __imm, (__v4di)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insertf64x2(__m256d __A, __m128d __B, const int __imm) { - return (__m256d)__builtin_ia32_insertf64x2_256_mask( - (__v4df)__A, (__v2df)__B, __imm, (__v4df)_mm256_setzero_pd(), - (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_insertf64x2(__m256d __W, __mmask8 __U, __m256d __A, __m128d __B, - const int __imm) { - return (__m256d)__builtin_ia32_insertf64x2_256_mask( - (__v4df)__A, (__v2df)__B, __imm, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_insertf64x2(__mmask8 __U, __m256d __A, __m128d __B, - const int __imm) { - return (__m256d)__builtin_ia32_insertf64x2_256_mask( - (__v4df)__A, (__v2df)__B, __imm, (__v4df)_mm256_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_madd52lo_epu64(__m512i __X, __m512i __Y, __m512i __Z) { - return (__m512i)__builtin_ia32_vpmadd52luq512_mask((__v8di)__X, (__v8di)__Y, - (__v8di)__Z, (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_madd52hi_epu64(__m512i __X, __m512i __Y, __m512i __Z) { - return (__m512i)__builtin_ia32_vpmadd52huq512_mask((__v8di)__X, (__v8di)__Y, - (__v8di)__Z, (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_madd52lo_epu64(__m512i __W, __mmask8 __M, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_vpmadd52luq512_mask( - (__v8di)__W, (__v8di)__X, (__v8di)__Y, (__mmask8)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_madd52hi_epu64(__m512i __W, __mmask8 __M, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_vpmadd52huq512_mask( - (__v8di)__W, (__v8di)__X, (__v8di)__Y, (__mmask8)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_madd52lo_epu64(__mmask8 __M, __m512i __X, __m512i __Y, - __m512i __Z) { - return (__m512i)__builtin_ia32_vpmadd52luq512_maskz( - (__v8di)__X, (__v8di)__Y, (__v8di)__Z, (__mmask8)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_madd52hi_epu64(__mmask8 __M, __m512i __X, __m512i __Y, - __m512i __Z) { - return (__m512i)__builtin_ia32_vpmadd52huq512_maskz( - (__v8di)__X, (__v8di)__Y, (__v8di)__Z, (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_madd52lo_epu64(__m128i __X, __m128i __Y, __m128i __Z) { - return (__m128i)__builtin_ia32_vpmadd52luq128_mask((__v2di)__X, (__v2di)__Y, - (__v2di)__Z, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_madd52hi_epu64(__m128i __X, __m128i __Y, __m128i __Z) { - return (__m128i)__builtin_ia32_vpmadd52huq128_mask((__v2di)__X, (__v2di)__Y, - (__v2di)__Z, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_madd52lo_epu64(__m256i __X, __m256i __Y, __m256i __Z) { - return (__m256i)__builtin_ia32_vpmadd52luq256_mask((__v4di)__X, (__v4di)__Y, - (__v4di)__Z, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_madd52hi_epu64(__m256i __X, __m256i __Y, __m256i __Z) { - return (__m256i)__builtin_ia32_vpmadd52huq256_mask((__v4di)__X, (__v4di)__Y, - (__v4di)__Z, (__mmask8)-1); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_madd52lo_epu64(__m128i __W, __mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_vpmadd52luq128_mask( - (__v2di)__W, (__v2di)__X, (__v2di)__Y, (__mmask8)__M); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_madd52hi_epu64(__m128i __W, __mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_vpmadd52huq128_mask( - (__v2di)__W, (__v2di)__X, (__v2di)__Y, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_madd52lo_epu64(__m256i __W, __mmask8 __M, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_vpmadd52luq256_mask( - (__v4di)__W, (__v4di)__X, (__v4di)__Y, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_madd52hi_epu64(__m256i __W, __mmask8 __M, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_vpmadd52huq256_mask( - (__v4di)__W, (__v4di)__X, (__v4di)__Y, (__mmask8)__M); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_madd52lo_epu64(__mmask8 __M, __m128i __X, __m128i __Y, __m128i __Z) { - return (__m128i)__builtin_ia32_vpmadd52luq128_maskz( - (__v2di)__X, (__v2di)__Y, (__v2di)__Z, (__mmask8)__M); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_madd52hi_epu64(__mmask8 __M, __m128i __X, __m128i __Y, __m128i __Z) { - return (__m128i)__builtin_ia32_vpmadd52huq128_maskz( - (__v2di)__X, (__v2di)__Y, (__v2di)__Z, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_madd52lo_epu64(__mmask8 __M, __m256i __X, __m256i __Y, - __m256i __Z) { - return (__m256i)__builtin_ia32_vpmadd52luq256_maskz( - (__v4di)__X, (__v4di)__Y, (__v4di)__Z, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_madd52hi_epu64(__mmask8 __M, __m256i __X, __m256i __Y, - __m256i __Z) { - return (__m256i)__builtin_ia32_vpmadd52huq256_maskz( - (__v4di)__X, (__v4di)__Y, (__v4di)__Z, (__mmask8)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_multishift_epi64_epi8(__m512i __W, __mmask64 __M, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_vpmultishiftqb512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_multishift_epi64_epi8(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_vpmultishiftqb512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_multishift_epi64_epi8(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_vpmultishiftqb512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v64qi)_mm512_undefined_epi32(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_permvarqi512_mask( - (__v64qi)__B, (__v64qi)__A, (__v64qi)_mm512_undefined_epi32(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_epi8(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_permvarqi512_mask( - (__v64qi)__B, (__v64qi)__A, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutexvar_epi8(__m512i __W, __mmask64 __M, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_permvarqi512_mask( - (__v64qi)__B, (__v64qi)__A, (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_epi8(__m512i __A, __m512i __I, __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varqi512_mask( - (__v64qi)__I, (__v64qi)__A, (__v64qi)__B, (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_epi8(__m512i __A, __mmask64 __U, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varqi512_mask( - (__v64qi)__I, (__v64qi)__A, (__v64qi)__B, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_epi8(__m512i __A, __m512i __I, __mmask64 __U, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermi2varqi512_mask( - (__v64qi)__A, (__v64qi)__I, (__v64qi)__B, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_epi8(__mmask64 __U, __m512i __A, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varqi512_maskz( - (__v64qi)__I, (__v64qi)__A, (__v64qi)__B, (__mmask64)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_multishift_epi64_epi8(__m256i __W, __mmask32 __M, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_vpmultishiftqb256_mask( - (__v32qi)__X, (__v32qi)__Y, (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_multishift_epi64_epi8(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_vpmultishiftqb256_mask( - (__v32qi)__X, (__v32qi)__Y, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_multishift_epi64_epi8(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_vpmultishiftqb256_mask( - (__v32qi)__X, (__v32qi)__Y, (__v32qi)_mm256_undefined_si256(), - (__mmask32)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_multishift_epi64_epi8(__m128i __W, __mmask16 __M, __m128i __X, - __m128i __Y) { - return (__m128i)__builtin_ia32_vpmultishiftqb128_mask( - (__v16qi)__X, (__v16qi)__Y, (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_multishift_epi64_epi8(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_vpmultishiftqb128_mask( - (__v16qi)__X, (__v16qi)__Y, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_multishift_epi64_epi8(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_vpmultishiftqb128_mask( - (__v16qi)__X, (__v16qi)__Y, (__v16qi)_mm_undefined_si128(), - (__mmask16)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutexvar_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_permvarqi256_mask( - (__v32qi)__B, (__v32qi)__A, (__v32qi)_mm256_undefined_si256(), - (__mmask32)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_epi8(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_permvarqi256_mask( - (__v32qi)__B, (__v32qi)__A, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutexvar_epi8(__m256i __W, __mmask32 __M, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_permvarqi256_mask( - (__v32qi)__B, (__v32qi)__A, (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutexvar_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_permvarqi128_mask( - (__v16qi)__B, (__v16qi)__A, (__v16qi)_mm_undefined_si128(), - (__mmask16)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutexvar_epi8(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_permvarqi128_mask( - (__v16qi)__B, (__v16qi)__A, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutexvar_epi8(__m128i __W, __mmask16 __M, __m128i __A, - __m128i __B) { - return (__m128i)__builtin_ia32_permvarqi128_mask( - (__v16qi)__B, (__v16qi)__A, (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_epi8(__m256i __A, __m256i __I, __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varqi256_mask( - (__v32qi)__I, (__v32qi)__A, (__v32qi)__B, (__mmask32)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex2var_epi8(__m256i __A, __mmask32 __U, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varqi256_mask( - (__v32qi)__I, (__v32qi)__A, (__v32qi)__B, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_epi8(__m256i __A, __m256i __I, __mmask32 __U, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermi2varqi256_mask( - (__v32qi)__A, (__v32qi)__I, (__v32qi)__B, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_epi8(__mmask32 __U, __m256i __A, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varqi256_maskz( - (__v32qi)__I, (__v32qi)__A, (__v32qi)__B, (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_epi8(__m128i __A, __m128i __I, __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varqi128_mask( - (__v16qi)__I, (__v16qi)__A, (__v16qi)__B, (__mmask16)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutex2var_epi8(__m128i __A, __mmask16 __U, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varqi128_mask( - (__v16qi)__I, (__v16qi)__A, (__v16qi)__B, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask2_permutex2var_epi8(__m128i __A, __m128i __I, __mmask16 __U, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermi2varqi128_mask( - (__v16qi)__A, (__v16qi)__I, (__v16qi)__B, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutex2var_epi8(__mmask16 __U, __m128i __A, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varqi128_maskz( - (__v16qi)__I, (__v16qi)__A, (__v16qi)__B, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_4fmadd_ps(__m512 __A, __m512 __B, __m512 __C, __m512 __D, __m512 __E, - __m128 *__F) { - return (__m512)__builtin_ia32_4fmaddps((__v16sf)__B, (__v16sf)__C, - (__v16sf)__D, (__v16sf)__E, - (__v16sf)__A, (const __v4sf *)__F); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_4fmadd_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C, - __m512 __D, __m512 __E, __m128 *__F) { - return (__m512)__builtin_ia32_4fmaddps_mask( - (__v16sf)__B, (__v16sf)__C, (__v16sf)__D, (__v16sf)__E, (__v16sf)__A, - (const __v4sf *)__F, (__v16sf)__A, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_4fmadd_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C, - __m512 __D, __m512 __E, __m128 *__F) { - return (__m512)__builtin_ia32_4fmaddps_mask( - (__v16sf)__B, (__v16sf)__C, (__v16sf)__D, (__v16sf)__E, (__v16sf)__A, - (const __v4sf *)__F, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_4fmadd_ss(__m128 __A, __m128 __B, __m128 __C, __m128 __D, __m128 __E, - __m128 *__F) { - return (__m128)__builtin_ia32_4fmaddss((__v4sf)__B, (__v4sf)__C, (__v4sf)__D, - (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_4fmadd_ss(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C, - __m128 __D, __m128 __E, __m128 *__F) { - return (__m128)__builtin_ia32_4fmaddss_mask( - (__v4sf)__B, (__v4sf)__C, (__v4sf)__D, (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F, (__v4sf)__A, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_4fmadd_ss(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C, - __m128 __D, __m128 __E, __m128 *__F) { - return (__m128)__builtin_ia32_4fmaddss_mask( - (__v4sf)__B, (__v4sf)__C, (__v4sf)__D, (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_4fnmadd_ps(__m512 __A, __m512 __B, __m512 __C, __m512 __D, - __m512 __E, __m128 *__F) { - return (__m512)__builtin_ia32_4fnmaddps((__v16sf)__B, (__v16sf)__C, - (__v16sf)__D, (__v16sf)__E, - (__v16sf)__A, (const __v4sf *)__F); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_4fnmadd_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C, - __m512 __D, __m512 __E, __m128 *__F) { - return (__m512)__builtin_ia32_4fnmaddps_mask( - (__v16sf)__B, (__v16sf)__C, (__v16sf)__D, (__v16sf)__E, (__v16sf)__A, - (const __v4sf *)__F, (__v16sf)__A, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_4fnmadd_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C, - __m512 __D, __m512 __E, __m128 *__F) { - return (__m512)__builtin_ia32_4fnmaddps_mask( - (__v16sf)__B, (__v16sf)__C, (__v16sf)__D, (__v16sf)__E, (__v16sf)__A, - (const __v4sf *)__F, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_4fnmadd_ss(__m128 __A, __m128 __B, __m128 __C, __m128 __D, __m128 __E, - __m128 *__F) { - return (__m128)__builtin_ia32_4fnmaddss((__v4sf)__B, (__v4sf)__C, (__v4sf)__D, - (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_4fnmadd_ss(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C, - __m128 __D, __m128 __E, __m128 *__F) { - return (__m128)__builtin_ia32_4fnmaddss_mask( - (__v4sf)__B, (__v4sf)__C, (__v4sf)__D, (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F, (__v4sf)__A, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_4fnmadd_ss(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C, - __m128 __D, __m128 __E, __m128 *__F) { - return (__m128)__builtin_ia32_4fnmaddss_mask( - (__v4sf)__B, (__v4sf)__C, (__v4sf)__D, (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_4dpwssd_epi32(__m512i __A, __m512i __B, __m512i __C, __m512i __D, - __m512i __E, __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssd((__v16si)__B, (__v16si)__C, - (__v16si)__D, (__v16si)__E, - (__v16si)__A, (const __v4si *)__F); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_4dpwssd_epi32(__m512i __A, __mmask16 __U, __m512i __B, - __m512i __C, __m512i __D, __m512i __E, - __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssd_mask( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__v16si)__E, (__v16si)__A, - (const __v4si *)__F, (__v16si)__A, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_4dpwssd_epi32(__mmask16 __U, __m512i __A, __m512i __B, - __m512i __C, __m512i __D, __m512i __E, - __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssd_mask( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__v16si)__E, (__v16si)__A, - (const __v4si *)__F, (__v16si)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_4dpwssds_epi32(__m512i __A, __m512i __B, __m512i __C, __m512i __D, - __m512i __E, __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssds((__v16si)__B, (__v16si)__C, - (__v16si)__D, (__v16si)__E, - (__v16si)__A, (const __v4si *)__F); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_4dpwssds_epi32(__m512i __A, __mmask16 __U, __m512i __B, - __m512i __C, __m512i __D, __m512i __E, - __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssds_mask( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__v16si)__E, (__v16si)__A, - (const __v4si *)__F, (__v16si)__A, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_4dpwssds_epi32(__mmask16 __U, __m512i __A, __m512i __B, - __m512i __C, __m512i __D, __m512i __E, - __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssds_mask( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__v16si)__E, (__v16si)__A, - (const __v4si *)__F, (__v16si)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_popcnt_epi32(__m512i __A) { - return (__m512i)__builtin_ia32_vpopcountd_v16si((__v16si)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_popcnt_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountd_v16si_mask( - (__v16si)__A, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_popcnt_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountd_v16si_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_popcnt_epi64(__m512i __A) { - return (__m512i)__builtin_ia32_vpopcountq_v8di((__v8di)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_popcnt_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountq_v8di_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_popcnt_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountq_v8di_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdi_epi16(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshrd_v32hi((__v32hi)__A, (__v32hi)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdi_epi32(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshrd_v16si((__v16si)__A, (__v16si)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shrdi_epi32(__m512i __A, __mmask16 __B, __m512i __C, - __m512i __D, int __E) { - return (__m512i)__builtin_ia32_vpshrd_v16si_mask( - (__v16si)__C, (__v16si)__D, __E, (__v16si)__A, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shrdi_epi32(__mmask16 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshrd_v16si_mask( - (__v16si)__B, (__v16si)__C, __D, (__v16si)_mm512_setzero_si512(), - (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdi_epi64(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshrd_v8di((__v8di)__A, (__v8di)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shrdi_epi64(__m512i __A, __mmask8 __B, __m512i __C, __m512i __D, - int __E) { - return (__m512i)__builtin_ia32_vpshrd_v8di_mask((__v8di)__C, (__v8di)__D, __E, - (__v8di)__A, (__mmask8)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shrdi_epi64(__mmask8 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshrd_v8di_mask( - (__v8di)__B, (__v8di)__C, __D, (__v8di)_mm512_setzero_si512(), - (__mmask8)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldi_epi16(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshld_v32hi((__v32hi)__A, (__v32hi)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldi_epi32(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshld_v16si((__v16si)__A, (__v16si)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shldi_epi32(__m512i __A, __mmask16 __B, __m512i __C, - __m512i __D, int __E) { - return (__m512i)__builtin_ia32_vpshld_v16si_mask( - (__v16si)__C, (__v16si)__D, __E, (__v16si)__A, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shldi_epi32(__mmask16 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshld_v16si_mask( - (__v16si)__B, (__v16si)__C, __D, (__v16si)_mm512_setzero_si512(), - (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldi_epi64(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshld_v8di((__v8di)__A, (__v8di)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shldi_epi64(__m512i __A, __mmask8 __B, __m512i __C, __m512i __D, - int __E) { - return (__m512i)__builtin_ia32_vpshld_v8di_mask((__v8di)__C, (__v8di)__D, __E, - (__v8di)__A, (__mmask8)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shldi_epi64(__mmask8 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshld_v8di_mask( - (__v8di)__B, (__v8di)__C, __D, (__v8di)_mm512_setzero_si512(), - (__mmask8)__A); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdv_epi16(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshrdv_v32hi((__v32hi)__A, (__v32hi)__B, - (__v32hi)__C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdv_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshrdv_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shrdv_epi32(__m512i __A, __mmask16 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shrdv_epi32(__mmask16 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdv_epi64(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshrdv_v8di((__v8di)__A, (__v8di)__B, - (__v8di)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shrdv_epi64(__m512i __A, __mmask8 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v8di_mask((__v8di)__A, (__v8di)__C, - (__v8di)__D, (__mmask8)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shrdv_epi64(__mmask8 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v8di_maskz((__v8di)__B, (__v8di)__C, - (__v8di)__D, (__mmask8)__A); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldv_epi16(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshldv_v32hi((__v32hi)__A, (__v32hi)__B, - (__v32hi)__C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldv_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshldv_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shldv_epi32(__m512i __A, __mmask16 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shldv_epi32(__mmask16 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldv_epi64(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshldv_v8di((__v8di)__A, (__v8di)__B, - (__v8di)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shldv_epi64(__m512i __A, __mmask8 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v8di_mask((__v8di)__A, (__v8di)__C, - (__v8di)__D, (__mmask8)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shldv_epi64(__mmask8 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v8di_maskz((__v8di)__B, (__v8di)__C, - (__v8di)__D, (__mmask8)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_epi8(__m512i __A, __mmask64 __B, __m512i __C) { - return (__m512i)__builtin_ia32_compressqi512_mask((__v64qi)__C, (__v64qi)__A, - (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_epi8(__mmask64 __A, __m512i __B) { - return (__m512i)__builtin_ia32_compressqi512_mask( - (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), (__mmask64)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_epi8(void *__A, __mmask64 __B, __m512i __C) { - __builtin_ia32_compressstoreuqi512_mask((__v64qi *)__A, (__v64qi)__C, - (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_epi16(__m512i __A, __mmask32 __B, __m512i __C) { - return (__m512i)__builtin_ia32_compresshi512_mask((__v32hi)__C, (__v32hi)__A, - (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_epi16(__mmask32 __A, __m512i __B) { - return (__m512i)__builtin_ia32_compresshi512_mask( - (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), (__mmask32)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_epi16(void *__A, __mmask32 __B, __m512i __C) { - __builtin_ia32_compressstoreuhi512_mask((__v32hi *)__A, (__v32hi)__C, - (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_epi8(__m512i __A, __mmask64 __B, __m512i __C) { - return (__m512i)__builtin_ia32_expandqi512_mask((__v64qi)__C, (__v64qi)__A, - (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_epi8(__mmask64 __A, __m512i __B) { - return (__m512i)__builtin_ia32_expandqi512_maskz( - (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), (__mmask64)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_epi8(__m512i __A, __mmask64 __B, const void *__C) { - return (__m512i)__builtin_ia32_expandloadqi512_mask( - (const __v64qi *)__C, (__v64qi)__A, (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_epi8(__mmask64 __A, const void *__B) { - return (__m512i)__builtin_ia32_expandloadqi512_maskz( - (const __v64qi *)__B, (__v64qi)_mm512_setzero_si512(), (__mmask64)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_epi16(__m512i __A, __mmask32 __B, __m512i __C) { - return (__m512i)__builtin_ia32_expandhi512_mask((__v32hi)__C, (__v32hi)__A, - (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_epi16(__mmask32 __A, __m512i __B) { - return (__m512i)__builtin_ia32_expandhi512_maskz( - (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), (__mmask32)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_epi16(__m512i __A, __mmask32 __B, const void *__C) { - return (__m512i)__builtin_ia32_expandloadhi512_mask( - (const __v32hi *)__C, (__v32hi)__A, (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_epi16(__mmask32 __A, const void *__B) { - return (__m512i)__builtin_ia32_expandloadhi512_maskz( - (const __v32hi *)__B, (__v32hi)_mm512_setzero_si512(), (__mmask32)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shrdi_epi16(__m512i __A, __mmask32 __B, __m512i __C, - __m512i __D, int __E) { - return (__m512i)__builtin_ia32_vpshrd_v32hi_mask( - (__v32hi)__C, (__v32hi)__D, __E, (__v32hi)__A, (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shrdi_epi16(__mmask32 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshrd_v32hi_mask( - (__v32hi)__B, (__v32hi)__C, __D, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shldi_epi16(__m512i __A, __mmask32 __B, __m512i __C, - __m512i __D, int __E) { - return (__m512i)__builtin_ia32_vpshld_v32hi_mask( - (__v32hi)__C, (__v32hi)__D, __E, (__v32hi)__A, (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shldi_epi16(__mmask32 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshld_v32hi_mask( - (__v32hi)__B, (__v32hi)__C, __D, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__A); -} -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shrdv_epi16(__m512i __A, __mmask32 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v32hi_mask( - (__v32hi)__A, (__v32hi)__C, (__v32hi)__D, (__mmask32)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shrdv_epi16(__mmask32 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v32hi_maskz( - (__v32hi)__B, (__v32hi)__C, (__v32hi)__D, (__mmask32)__A); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shldv_epi16(__m512i __A, __mmask32 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v32hi_mask( - (__v32hi)__A, (__v32hi)__C, (__v32hi)__D, (__mmask32)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shldv_epi16(__mmask32 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v32hi_maskz( - (__v32hi)__B, (__v32hi)__C, (__v32hi)__D, (__mmask32)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_epi8(__m128i __A, __mmask16 __B, __m128i __C) { - return (__m128i)__builtin_ia32_compressqi128_mask((__v16qi)__C, (__v16qi)__A, - (__mmask16)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_epi8(__mmask16 __A, __m128i __B) { - return (__m128i)__builtin_ia32_compressqi128_mask( - (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_epi16(void *__A, __mmask16 __B, __m256i __C) { - __builtin_ia32_compressstoreuhi256_mask((__v16hi *)__A, (__v16hi)__C, - (__mmask16)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_epi16(__m128i __A, __mmask8 __B, __m128i __C) { - return (__m128i)__builtin_ia32_compresshi128_mask((__v8hi)__C, (__v8hi)__A, - (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_epi16(__mmask8 __A, __m128i __B) { - return (__m128i)__builtin_ia32_compresshi128_mask( - (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_epi16(__m256i __A, __mmask16 __B, __m256i __C) { - return (__m256i)__builtin_ia32_compresshi256_mask((__v16hi)__C, (__v16hi)__A, - (__mmask16)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_epi16(__mmask16 __A, __m256i __B) { - return (__m256i)__builtin_ia32_compresshi256_mask( - (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), (__mmask16)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_epi8(void *__A, __mmask16 __B, __m128i __C) { - __builtin_ia32_compressstoreuqi128_mask((__v16qi *)__A, (__v16qi)__C, - (__mmask16)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_epi16(void *__A, __mmask8 __B, __m128i __C) { - __builtin_ia32_compressstoreuhi128_mask((__v8hi *)__A, (__v8hi)__C, - (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_epi8(__m128i __A, __mmask16 __B, __m128i __C) { - return (__m128i)__builtin_ia32_expandqi128_mask((__v16qi)__C, (__v16qi)__A, - (__mmask16)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_epi8(__mmask16 __A, __m128i __B) { - return (__m128i)__builtin_ia32_expandqi128_maskz( - (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_epi8(__m128i __A, __mmask16 __B, const void *__C) { - return (__m128i)__builtin_ia32_expandloadqi128_mask( - (const __v16qi *)__C, (__v16qi)__A, (__mmask16)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_epi8(__mmask16 __A, const void *__B) { - return (__m128i)__builtin_ia32_expandloadqi128_maskz( - (const __v16qi *)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_epi16(__m128i __A, __mmask8 __B, __m128i __C) { - return (__m128i)__builtin_ia32_expandhi128_mask((__v8hi)__C, (__v8hi)__A, - (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_epi16(__mmask8 __A, __m128i __B) { - return (__m128i)__builtin_ia32_expandhi128_maskz( - (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_epi16(__m128i __A, __mmask8 __B, const void *__C) { - return (__m128i)__builtin_ia32_expandloadhi128_mask( - (const __v8hi *)__C, (__v8hi)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_epi16(__mmask8 __A, const void *__B) { - return (__m128i)__builtin_ia32_expandloadhi128_maskz( - (const __v8hi *)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__A); -} -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_epi16(__m256i __A, __mmask16 __B, __m256i __C) { - return (__m256i)__builtin_ia32_expandhi256_mask((__v16hi)__C, (__v16hi)__A, - (__mmask16)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_epi16(__mmask16 __A, __m256i __B) { - return (__m256i)__builtin_ia32_expandhi256_maskz( - (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_epi16(__m256i __A, __mmask16 __B, const void *__C) { - return (__m256i)__builtin_ia32_expandloadhi256_mask( - (const __v16hi *)__C, (__v16hi)__A, (__mmask16)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_epi16(__mmask16 __A, const void *__B) { - return (__m256i)__builtin_ia32_expandloadhi256_maskz( - (const __v16hi *)__B, (__v16hi)_mm256_setzero_si256(), (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdi_epi16(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshrd_v16hi((__v16hi)__A, (__v16hi)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shrdi_epi16(__m256i __A, __mmask16 __B, __m256i __C, - __m256i __D, int __E) { - return (__m256i)__builtin_ia32_vpshrd_v16hi_mask( - (__v16hi)__C, (__v16hi)__D, __E, (__v16hi)__A, (__mmask16)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shrdi_epi16(__mmask16 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshrd_v16hi_mask( - (__v16hi)__B, (__v16hi)__C, __D, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shrdi_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D, - int __E) { - return (__m256i)__builtin_ia32_vpshrd_v8si_mask((__v8si)__C, (__v8si)__D, __E, - (__v8si)__A, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shrdi_epi32(__mmask8 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshrd_v8si_mask( - (__v8si)__B, (__v8si)__C, __D, (__v8si)_mm256_setzero_si256(), - (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdi_epi32(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshrd_v8si((__v8si)__A, (__v8si)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shrdi_epi64(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D, - int __E) { - return (__m256i)__builtin_ia32_vpshrd_v4di_mask((__v4di)__C, (__v4di)__D, __E, - (__v4di)__A, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shrdi_epi64(__mmask8 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshrd_v4di_mask( - (__v4di)__B, (__v4di)__C, __D, (__v4di)_mm256_setzero_si256(), - (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdi_epi64(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshrd_v4di((__v4di)__A, (__v4di)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdi_epi16(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshrd_v8hi_mask((__v8hi)__C, (__v8hi)__D, __E, - (__v8hi)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdi_epi16(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshrd_v8hi_mask((__v8hi)__B, (__v8hi)__C, __D, - (__v8hi)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdi_epi16(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshrd_v8hi((__v8hi)__A, (__v8hi)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdi_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshrd_v4si_mask((__v4si)__C, (__v4si)__D, __E, - (__v4si)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdi_epi32(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshrd_v4si_mask((__v4si)__B, (__v4si)__C, __D, - (__v4si)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdi_epi32(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshrd_v4si((__v4si)__A, (__v4si)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdi_epi64(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshrd_v2di_mask((__v2di)__C, (__v2di)__D, __E, - (__v2di)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdi_epi64(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshrd_v2di_mask((__v2di)__B, (__v2di)__C, __D, - (__v2di)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdi_epi64(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshrd_v2di((__v2di)__A, (__v2di)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldi_epi16(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshld_v16hi((__v16hi)__A, (__v16hi)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shldi_epi16(__m256i __A, __mmask16 __B, __m256i __C, - __m256i __D, int __E) { - return (__m256i)__builtin_ia32_vpshld_v16hi_mask( - (__v16hi)__C, (__v16hi)__D, __E, (__v16hi)__A, (__mmask16)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shldi_epi16(__mmask16 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshld_v16hi_mask( - (__v16hi)__B, (__v16hi)__C, __D, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shldi_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D, - int __E) { - return (__m256i)__builtin_ia32_vpshld_v8si_mask((__v8si)__C, (__v8si)__D, __E, - (__v8si)__A, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shldi_epi32(__mmask8 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshld_v8si_mask( - (__v8si)__B, (__v8si)__C, __D, (__v8si)_mm256_setzero_si256(), - (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldi_epi32(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshld_v8si((__v8si)__A, (__v8si)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shldi_epi64(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D, - int __E) { - return (__m256i)__builtin_ia32_vpshld_v4di_mask((__v4di)__C, (__v4di)__D, __E, - (__v4di)__A, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shldi_epi64(__mmask8 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshld_v4di_mask( - (__v4di)__B, (__v4di)__C, __D, (__v4di)_mm256_setzero_si256(), - (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldi_epi64(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshld_v4di((__v4di)__A, (__v4di)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldi_epi16(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshld_v8hi_mask((__v8hi)__C, (__v8hi)__D, __E, - (__v8hi)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldi_epi16(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshld_v8hi_mask((__v8hi)__B, (__v8hi)__C, __D, - (__v8hi)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldi_epi16(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshld_v8hi((__v8hi)__A, (__v8hi)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldi_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshld_v4si_mask((__v4si)__C, (__v4si)__D, __E, - (__v4si)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldi_epi32(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshld_v4si_mask((__v4si)__B, (__v4si)__C, __D, - (__v4si)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldi_epi32(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshld_v4si((__v4si)__A, (__v4si)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldi_epi64(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshld_v2di_mask((__v2di)__C, (__v2di)__D, __E, - (__v2di)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldi_epi64(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshld_v2di_mask((__v2di)__B, (__v2di)__C, __D, - (__v2di)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldi_epi64(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshld_v2di((__v2di)__A, (__v2di)__B, __C); -} -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdv_epi16(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshrdv_v16hi((__v16hi)__A, (__v16hi)__B, - (__v16hi)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shrdv_epi16(__m256i __A, __mmask16 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v16hi_mask( - (__v16hi)__A, (__v16hi)__C, (__v16hi)__D, (__mmask16)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shrdv_epi16(__mmask16 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v16hi_maskz( - (__v16hi)__B, (__v16hi)__C, (__v16hi)__D, (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdv_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshrdv_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shrdv_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v8si_mask((__v8si)__A, (__v8si)__C, - (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shrdv_epi32(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v8si_maskz((__v8si)__B, (__v8si)__C, - (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdv_epi64(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshrdv_v4di((__v4di)__A, (__v4di)__B, - (__v4di)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shrdv_epi64(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v4di_mask((__v4di)__A, (__v4di)__C, - (__v4di)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shrdv_epi64(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v4di_maskz((__v4di)__B, (__v4di)__C, - (__v4di)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdv_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshrdv_v8hi((__v8hi)__A, (__v8hi)__B, - (__v8hi)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdv_epi16(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v8hi_mask((__v8hi)__A, (__v8hi)__C, - (__v8hi)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdv_epi16(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v8hi_maskz((__v8hi)__B, (__v8hi)__C, - (__v8hi)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdv_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshrdv_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdv_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v4si_mask((__v4si)__A, (__v4si)__C, - (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdv_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v4si_maskz((__v4si)__B, (__v4si)__C, - (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdv_epi64(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshrdv_v2di((__v2di)__A, (__v2di)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdv_epi64(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v2di_mask((__v2di)__A, (__v2di)__C, - (__v2di)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdv_epi64(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v2di_maskz((__v2di)__B, (__v2di)__C, - (__v2di)__D, (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldv_epi16(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshldv_v16hi((__v16hi)__A, (__v16hi)__B, - (__v16hi)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shldv_epi16(__m256i __A, __mmask16 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v16hi_mask( - (__v16hi)__A, (__v16hi)__C, (__v16hi)__D, (__mmask16)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shldv_epi16(__mmask16 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v16hi_maskz( - (__v16hi)__B, (__v16hi)__C, (__v16hi)__D, (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldv_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshldv_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shldv_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v8si_mask((__v8si)__A, (__v8si)__C, - (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shldv_epi32(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v8si_maskz((__v8si)__B, (__v8si)__C, - (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldv_epi64(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshldv_v4di((__v4di)__A, (__v4di)__B, - (__v4di)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shldv_epi64(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v4di_mask((__v4di)__A, (__v4di)__C, - (__v4di)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shldv_epi64(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v4di_maskz((__v4di)__B, (__v4di)__C, - (__v4di)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldv_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshldv_v8hi((__v8hi)__A, (__v8hi)__B, - (__v8hi)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldv_epi16(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v8hi_mask((__v8hi)__A, (__v8hi)__C, - (__v8hi)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldv_epi16(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v8hi_maskz((__v8hi)__B, (__v8hi)__C, - (__v8hi)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldv_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshldv_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldv_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v4si_mask((__v4si)__A, (__v4si)__C, - (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldv_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v4si_maskz((__v4si)__B, (__v4si)__C, - (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldv_epi64(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshldv_v2di((__v2di)__A, (__v2di)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldv_epi64(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v2di_mask((__v2di)__A, (__v2di)__C, - (__v2di)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldv_epi64(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v2di_maskz((__v2di)__B, (__v2di)__C, - (__v2di)__D, (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_epi8(__m256i __A, __mmask32 __B, __m256i __C) { - return (__m256i)__builtin_ia32_compressqi256_mask((__v32qi)__C, (__v32qi)__A, - (__mmask32)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_epi8(__mmask32 __A, __m256i __B) { - return (__m256i)__builtin_ia32_compressqi256_mask( - (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), (__mmask32)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_epi8(void *__A, __mmask32 __B, __m256i __C) { - __builtin_ia32_compressstoreuqi256_mask((__v32qi *)__A, (__v32qi)__C, - (__mmask32)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_epi8(__m256i __A, __mmask32 __B, __m256i __C) { - return (__m256i)__builtin_ia32_expandqi256_mask((__v32qi)__C, (__v32qi)__A, - (__mmask32)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_epi8(__mmask32 __A, __m256i __B) { - return (__m256i)__builtin_ia32_expandqi256_maskz( - (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), (__mmask32)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_epi8(__m256i __A, __mmask32 __B, const void *__C) { - return (__m256i)__builtin_ia32_expandloadqi256_mask( - (const __v32qi *)__C, (__v32qi)__A, (__mmask32)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_epi8(__mmask32 __A, const void *__B) { - return (__m256i)__builtin_ia32_expandloadqi256_maskz( - (const __v32qi *)__B, (__v32qi)_mm256_setzero_si256(), (__mmask32)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dpbusd_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpdpbusd_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_dpbusd_epi32(__m512i __A, __mmask16 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpdpbusd_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_dpbusd_epi32(__mmask16 __A, __m512i __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpbusd_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dpbusds_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpdpbusds_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_dpbusds_epi32(__m512i __A, __mmask16 __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpbusds_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_dpbusds_epi32(__mmask16 __A, __m512i __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpbusds_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dpwssd_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpdpwssd_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_dpwssd_epi32(__m512i __A, __mmask16 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpdpwssd_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_dpwssd_epi32(__mmask16 __A, __m512i __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpwssd_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dpwssds_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpdpwssds_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_dpwssds_epi32(__m512i __A, __mmask16 __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpwssds_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_dpwssds_epi32(__mmask16 __A, __m512i __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpwssds_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_dpbusd_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpbusd_v8si_mask((__v8si)__A, (__v8si)__C, - (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_dpbusd_epi32(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpbusd_v8si_maskz( - (__v8si)__B, (__v8si)__C, (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_dpbusd_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpbusd_v4si_mask((__v4si)__A, (__v4si)__C, - (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_dpbusd_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpbusd_v4si_maskz( - (__v4si)__B, (__v4si)__C, (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_dpbusds_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpbusds_v8si_mask( - (__v8si)__A, (__v8si)__C, (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_dpbusds_epi32(__mmask8 __A, __m256i __B, __m256i __C, - __m256i __D) { - return (__m256i)__builtin_ia32_vpdpbusds_v8si_maskz( - (__v8si)__B, (__v8si)__C, (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_dpbusds_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpbusds_v4si_mask( - (__v4si)__A, (__v4si)__C, (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_dpbusds_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpbusds_v4si_maskz( - (__v4si)__B, (__v4si)__C, (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_dpwssd_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpwssd_v8si_mask((__v8si)__A, (__v8si)__C, - (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_dpwssd_epi32(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpwssd_v8si_maskz( - (__v8si)__B, (__v8si)__C, (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_dpwssd_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpwssd_v4si_mask((__v4si)__A, (__v4si)__C, - (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_dpwssd_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpwssd_v4si_maskz( - (__v4si)__B, (__v4si)__C, (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_dpwssds_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpwssds_v8si_mask( - (__v8si)__A, (__v8si)__C, (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_dpwssds_epi32(__mmask8 __A, __m256i __B, __m256i __C, - __m256i __D) { - return (__m256i)__builtin_ia32_vpdpwssds_v8si_maskz( - (__v8si)__B, (__v8si)__C, (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_dpwssds_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpwssds_v4si_mask( - (__v4si)__A, (__v4si)__C, (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_dpwssds_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpwssds_v4si_maskz( - (__v4si)__B, (__v4si)__C, (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_vpopcountd_v4si((__v4si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_popcnt_epi32(__m128i __W, __mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountd_v4si_mask((__v4si)__A, (__v4si)__W, - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_popcnt_epi32(__mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountd_v4si_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_popcnt_epi32(__m256i __A) { - return (__m256i)__builtin_ia32_vpopcountd_v8si((__v8si)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_popcnt_epi32(__m256i __W, __mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountd_v8si_mask((__v8si)__A, (__v8si)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_popcnt_epi32(__mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountd_v8si_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_epi64(__m128i __A) { - return (__m128i)__builtin_ia32_vpopcountq_v2di((__v2di)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_popcnt_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountq_v2di_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_popcnt_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountq_v2di_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_popcnt_epi64(__m256i __A) { - return (__m256i)__builtin_ia32_vpopcountq_v4di((__v4di)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_popcnt_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountq_v4di_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_popcnt_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountq_v4di_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_popcnt_epi8(__m512i __A) { - return (__m512i)__builtin_ia32_vpopcountb_v64qi((__v64qi)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_popcnt_epi16(__m512i __A) { - return (__m512i)__builtin_ia32_vpopcountw_v32hi((__v32hi)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_popcnt_epi8(__m512i __W, __mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountb_v64qi_mask( - (__v64qi)__A, (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_popcnt_epi8(__mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountb_v64qi_mask( - (__v64qi)__A, (__v64qi)_mm512_setzero_si512(), (__mmask64)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_popcnt_epi16(__m512i __W, __mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountw_v32hi_mask( - (__v32hi)__A, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_popcnt_epi16(__mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountw_v32hi_mask( - (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_bitshuffle_epi64_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_vpshufbitqmb512_mask( - (__v64qi)__A, (__v64qi)__B, (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_bitshuffle_epi64_mask(__mmask64 __M, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_vpshufbitqmb512_mask( - (__v64qi)__A, (__v64qi)__B, (__mmask64)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_popcnt_epi8(__m256i __W, __mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountb_v32qi_mask( - (__v32qi)__A, (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_popcnt_epi8(__mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountb_v32qi_mask( - (__v32qi)__A, (__v32qi)_mm256_setzero_si256(), (__mmask32)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_bitshuffle_epi64_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_vpshufbitqmb256_mask( - (__v32qi)__A, (__v32qi)__B, (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_bitshuffle_epi64_mask(__mmask32 __M, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_vpshufbitqmb256_mask( - (__v32qi)__A, (__v32qi)__B, (__mmask32)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_bitshuffle_epi64_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_vpshufbitqmb128_mask( - (__v16qi)__A, (__v16qi)__B, (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_bitshuffle_epi64_mask(__mmask16 __M, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_vpshufbitqmb128_mask( - (__v16qi)__A, (__v16qi)__B, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_popcnt_epi8(__m256i __A) { - return (__m256i)__builtin_ia32_vpopcountb_v32qi((__v32qi)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_popcnt_epi16(__m256i __A) { - return (__m256i)__builtin_ia32_vpopcountw_v16hi((__v16hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_vpopcountb_v16qi((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_vpopcountw_v8hi((__v8hi)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_popcnt_epi16(__m256i __W, __mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountw_v16hi_mask( - (__v16hi)__A, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_popcnt_epi16(__mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountw_v16hi_mask( - (__v16hi)__A, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_popcnt_epi8(__m128i __W, __mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountb_v16qi_mask( - (__v16qi)__A, (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_popcnt_epi8(__mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountb_v16qi_mask( - (__v16qi)__A, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_popcnt_epi16(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountw_v8hi_mask((__v8hi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_popcnt_epi16(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountw_v8hi_mask( - (__v8hi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_2intersect_epi32(__m512i __A, __m512i __B, __mmask16 *__U, - __mmask16 *__M) { - __builtin_ia32_2intersectd512(__U, __M, (__v16si)__A, (__v16si)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_2intersect_epi64(__m512i __A, __m512i __B, __mmask8 *__U, - __mmask8 *__M) { - __builtin_ia32_2intersectq512(__U, __M, (__v8di)__A, (__v8di)__B); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_2intersect_epi32(__m128i __A, __m128i __B, __mmask8 *__U, __mmask8 *__M) { - __builtin_ia32_2intersectd128(__U, __M, (__v4si)__A, (__v4si)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_2intersect_epi32(__m256i __A, __m256i __B, __mmask8 *__U, - __mmask8 *__M) { - __builtin_ia32_2intersectd256(__U, __M, (__v8si)__A, (__v8si)__B); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_2intersect_epi64(__m128i __A, __m128i __B, __mmask8 *__U, __mmask8 *__M) { - __builtin_ia32_2intersectq128(__U, __M, (__v2di)__A, (__v2di)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_2intersect_epi64(__m256i __A, __m256i __B, __mmask8 *__U, - __mmask8 *__M) { - __builtin_ia32_2intersectq256(__U, __M, (__v4di)__A, (__v4di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha1msg1_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_sha1msg1((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha1msg2_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_sha1msg2((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha1nexte_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_sha1nexte((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha1rnds4_epu32(__m128i __A, __m128i __B, const int __I) { - return (__m128i)__builtin_ia32_sha1rnds4((__v4si)__A, (__v4si)__B, __I); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha256msg1_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_sha256msg1((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha256msg2_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_sha256msg2((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha256rnds2_epu32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_sha256rnds2((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmadd_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps((__v4sf)__A, (__v4sf)__B, (__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmadd_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsd3((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddss3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmsubpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmsub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmsubpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmsubps((__v4sf)__A, (__v4sf)__B, (__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmsub_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmsubps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmsubsd3((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmsubss3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmaddpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fnmadd_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmaddpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmaddps((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fnmadd_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmaddps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmaddsd3((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmaddss3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmsubpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fnmsub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmsubpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmsubps((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fnmsub_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmsubps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmsubsd3((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmsubss3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmaddsub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmaddsub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmaddsub_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmaddsub_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsubadd_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd((__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmsubadd_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256((__v4df)__A, (__v4df)__B, - -(__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsubadd_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps((__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmsubadd_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256((__v8sf)__A, (__v8sf)__B, - -(__v8sf)__C); -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtsh_ss(unsigned short __S) { - __v8hi __H = __extension__(__v8hi){(short)__S, 0, 0, 0, 0, 0, 0, 0}; - __v4sf __A = __builtin_ia32_vcvtph2ps(__H); - return __builtin_ia32_vec_ext_v4sf(__A, 0); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtph_ps(__m128i __A) { - return (__m128)__builtin_ia32_vcvtph2ps((__v8hi)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtph_ps(__m128i __A) { - return (__m256)__builtin_ia32_vcvtph2ps256((__v8hi)__A); -} - -extern __inline unsigned short - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtss_sh(float __F, const int __I) { - __v4sf __A = __extension__(__v4sf){__F, 0, 0, 0}; - __v8hi __H = __builtin_ia32_vcvtps2ph(__A, __I); - return (unsigned short)__builtin_ia32_vec_ext_v8hi(__H, 0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_ph(__m128 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph((__v4sf)__A, __I); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_ph(__m256 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph256((__v8sf)__A, __I); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_gf2p8mul_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vgf2p8mulb_v16qi((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_gf2p8affineinv_epi64_epi8(__m128i __A, __m128i __B, const int __C) { - return (__m128i)__builtin_ia32_vgf2p8affineinvqb_v16qi((__v16qi)__A, - (__v16qi)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_gf2p8affine_epi64_epi8(__m128i __A, __m128i __B, const int __C) { - return (__m128i)__builtin_ia32_vgf2p8affineqb_v16qi((__v16qi)__A, - (__v16qi)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_gf2p8mul_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_vgf2p8mulb_v32qi((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_gf2p8affineinv_epi64_epi8(__m256i __A, __m256i __B, const int __C) { - return (__m256i)__builtin_ia32_vgf2p8affineinvqb_v32qi((__v32qi)__A, - (__v32qi)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_gf2p8affine_epi64_epi8(__m256i __A, __m256i __B, const int __C) { - return (__m256i)__builtin_ia32_vgf2p8affineqb_v32qi((__v32qi)__A, - (__v32qi)__B, __C); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_gf2p8mul_epi8(__m128i __A, __mmask16 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vgf2p8mulb_v16qi_mask( - (__v16qi)__C, (__v16qi)__D, (__v16qi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_gf2p8mul_epi8(__mmask16 __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vgf2p8mulb_v16qi_mask( - (__v16qi)__B, (__v16qi)__C, (__v16qi)_mm_setzero_si128(), __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_gf2p8affineinv_epi64_epi8(__m128i __A, __mmask16 __B, __m128i __C, - __m128i __D, const int __E) { - return (__m128i)__builtin_ia32_vgf2p8affineinvqb_v16qi_mask( - (__v16qi)__C, (__v16qi)__D, __E, (__v16qi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_gf2p8affineinv_epi64_epi8(__mmask16 __A, __m128i __B, __m128i __C, - const int __D) { - return (__m128i)__builtin_ia32_vgf2p8affineinvqb_v16qi_mask( - (__v16qi)__B, (__v16qi)__C, __D, (__v16qi)_mm_setzero_si128(), __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_gf2p8affine_epi64_epi8(__m128i __A, __mmask16 __B, __m128i __C, - __m128i __D, const int __E) { - return (__m128i)__builtin_ia32_vgf2p8affineqb_v16qi_mask( - (__v16qi)__C, (__v16qi)__D, __E, (__v16qi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_gf2p8affine_epi64_epi8(__mmask16 __A, __m128i __B, __m128i __C, - const int __D) { - return (__m128i)__builtin_ia32_vgf2p8affineqb_v16qi_mask( - (__v16qi)__B, (__v16qi)__C, __D, (__v16qi)_mm_setzero_si128(), __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_gf2p8mul_epi8(__m256i __A, __mmask32 __B, __m256i __C, - __m256i __D) { - return (__m256i)__builtin_ia32_vgf2p8mulb_v32qi_mask( - (__v32qi)__C, (__v32qi)__D, (__v32qi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_gf2p8mul_epi8(__mmask32 __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vgf2p8mulb_v32qi_mask( - (__v32qi)__B, (__v32qi)__C, (__v32qi)_mm256_setzero_si256(), __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_gf2p8affineinv_epi64_epi8(__m256i __A, __mmask32 __B, - __m256i __C, __m256i __D, - const int __E) { - return (__m256i)__builtin_ia32_vgf2p8affineinvqb_v32qi_mask( - (__v32qi)__C, (__v32qi)__D, __E, (__v32qi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_gf2p8affineinv_epi64_epi8(__mmask32 __A, __m256i __B, - __m256i __C, const int __D) { - return (__m256i)__builtin_ia32_vgf2p8affineinvqb_v32qi_mask( - (__v32qi)__B, (__v32qi)__C, __D, (__v32qi)_mm256_setzero_si256(), __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_gf2p8affine_epi64_epi8(__m256i __A, __mmask32 __B, __m256i __C, - __m256i __D, const int __E) { - return (__m256i)__builtin_ia32_vgf2p8affineqb_v32qi_mask( - (__v32qi)__C, (__v32qi)__D, __E, (__v32qi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_gf2p8affine_epi64_epi8(__mmask32 __A, __m256i __B, __m256i __C, - const int __D) { - return (__m256i)__builtin_ia32_vgf2p8affineqb_v32qi_mask( - (__v32qi)__B, (__v32qi)__C, __D, (__v32qi)_mm256_setzero_si256(), __A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_gf2p8mul_epi8(__m512i __A, __mmask64 __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vgf2p8mulb_v64qi_mask( - (__v64qi)__C, (__v64qi)__D, (__v64qi)__A, __B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_gf2p8mul_epi8(__mmask64 __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vgf2p8mulb_v64qi_mask( - (__v64qi)__B, (__v64qi)__C, (__v64qi)_mm512_setzero_si512(), __A); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_gf2p8mul_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_vgf2p8mulb_v64qi((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_gf2p8affineinv_epi64_epi8(__m512i __A, __mmask64 __B, - __m512i __C, __m512i __D, - const int __E) { - return (__m512i)__builtin_ia32_vgf2p8affineinvqb_v64qi_mask( - (__v64qi)__C, (__v64qi)__D, __E, (__v64qi)__A, __B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_gf2p8affineinv_epi64_epi8(__mmask64 __A, __m512i __B, - __m512i __C, const int __D) { - return (__m512i)__builtin_ia32_vgf2p8affineinvqb_v64qi_mask( - (__v64qi)__B, (__v64qi)__C, __D, (__v64qi)_mm512_setzero_si512(), __A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_gf2p8affineinv_epi64_epi8(__m512i __A, __m512i __B, const int __C) { - return (__m512i)__builtin_ia32_vgf2p8affineinvqb_v64qi((__v64qi)__A, - (__v64qi)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_gf2p8affine_epi64_epi8(__m512i __A, __mmask64 __B, __m512i __C, - __m512i __D, const int __E) { - return (__m512i)__builtin_ia32_vgf2p8affineqb_v64qi_mask( - (__v64qi)__C, (__v64qi)__D, __E, (__v64qi)__A, __B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_gf2p8affine_epi64_epi8(__mmask64 __A, __m512i __B, __m512i __C, - const int __D) { - return (__m512i)__builtin_ia32_vgf2p8affineqb_v64qi_mask( - (__v64qi)__B, (__v64qi)__C, __D, (__v64qi)_mm512_setzero_si512(), __A); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_gf2p8affine_epi64_epi8(__m512i __A, __m512i __B, const int __C) { - return (__m512i)__builtin_ia32_vgf2p8affineqb_v64qi((__v64qi)__A, - (__v64qi)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_aesdec_epi128(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_vaesdec_v32qi((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_aesdeclast_epi128(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_vaesdeclast_v32qi((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_aesenc_epi128(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_vaesenc_v32qi((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_aesenclast_epi128(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_vaesenclast_v32qi((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_aesdec_epi128(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_vaesdec_v64qi((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_aesdeclast_epi128(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_vaesdeclast_v64qi((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_aesenc_epi128(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_vaesenc_v64qi((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_aesenclast_epi128(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_vaesenclast_v64qi((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_clmulepi64_epi128(__m512i __A, __m512i __B, const int __C) { - return (__m512i)__builtin_ia32_vpclmulqdq_v8di((__v8di)__A, (__v8di)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_clmulepi64_epi128(__m256i __A, __m256i __B, const int __C) { - return (__m256i)__builtin_ia32_vpclmulqdq_v4di((__v4di)__A, (__v4di)__B, __C); -} - -typedef short __v16bh __attribute__((__vector_size__(32))); -typedef short __v8bh __attribute__((__vector_size__(16))); - -typedef short __m256bh __attribute__((__vector_size__(32), __may_alias__)); -typedef short __m128bh __attribute__((__vector_size__(16), __may_alias__)); - -extern __inline __m256bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtne2ps_pbh(__m256 __A, __m256 __B) { - return (__m256bh)__builtin_ia32_cvtne2ps2bf16_v16hi(__A, __B); -} - -extern __inline __m256bh __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_cvtne2ps_pbh(__m256bh __A, __mmask16 __B, __m256 __C, __m256 __D) { - return (__m256bh)__builtin_ia32_cvtne2ps2bf16_v16hi_mask(__C, __D, __A, __B); -} - -extern __inline __m256bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtne2ps_pbh(__mmask16 __A, __m256 __B, __m256 __C) { - return (__m256bh)__builtin_ia32_cvtne2ps2bf16_v16hi_maskz(__B, __C, __A); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtne2ps_pbh(__m128 __A, __m128 __B) { - return (__m128bh)__builtin_ia32_cvtne2ps2bf16_v8hi(__A, __B); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtne2ps_pbh(__m128bh __A, __mmask8 __B, __m128 __C, __m128 __D) { - return (__m128bh)__builtin_ia32_cvtne2ps2bf16_v8hi_mask(__C, __D, __A, __B); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtne2ps_pbh(__mmask8 __A, __m128 __B, __m128 __C) { - return (__m128bh)__builtin_ia32_cvtne2ps2bf16_v8hi_maskz(__B, __C, __A); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtneps_pbh(__m256 __A) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v8sf(__A); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtneps_pbh(__m128bh __A, __mmask8 __B, __m256 __C) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v8sf_mask(__C, __A, __B); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtneps_pbh(__mmask8 __A, __m256 __B) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v8sf_maskz(__B, __A); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtneps_pbh(__m128 __A) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v4sf(__A); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtneps_pbh(__m128bh __A, __mmask8 __B, __m128 __C) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v4sf_mask(__C, __A, __B); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtneps_pbh(__mmask8 __A, __m128 __B) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v4sf_maskz(__B, __A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dpbf16_ps(__m256 __A, __m256bh __B, __m256bh __C) { - return (__m256)__builtin_ia32_dpbf16ps_v8sf(__A, __B, __C); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_dpbf16_ps(__m256 __A, __mmask8 __B, __m256bh __C, __m256bh __D) { - return (__m256)__builtin_ia32_dpbf16ps_v8sf_mask(__A, __C, __D, __B); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_dpbf16_ps(__mmask8 __A, __m256 __B, __m256bh __C, __m256bh __D) { - return (__m256)__builtin_ia32_dpbf16ps_v8sf_maskz(__B, __C, __D, __A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dpbf16_ps(__m128 __A, __m128bh __B, __m128bh __C) { - return (__m128)__builtin_ia32_dpbf16ps_v4sf(__A, __B, __C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_dpbf16_ps(__m128 __A, __mmask8 __B, __m128bh __C, __m128bh __D) { - return (__m128)__builtin_ia32_dpbf16ps_v4sf_mask(__A, __C, __D, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_dpbf16_ps(__mmask8 __A, __m128 __B, __m128bh __C, __m128bh __D) { - return (__m128)__builtin_ia32_dpbf16ps_v4sf_maskz(__B, __C, __D, __A); -} - -typedef short __v32bh __attribute__((__vector_size__(64))); - -typedef short __m512bh __attribute__((__vector_size__(64), __may_alias__)); - -extern __inline __m512bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtne2ps_pbh(__m512 __A, __m512 __B) { - return (__m512bh)__builtin_ia32_cvtne2ps2bf16_v32hi(__A, __B); -} - -extern __inline __m512bh __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_cvtne2ps_pbh(__m512bh __A, __mmask32 __B, __m512 __C, __m512 __D) { - return (__m512bh)__builtin_ia32_cvtne2ps2bf16_v32hi_mask(__C, __D, __A, __B); -} - -extern __inline __m512bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtne2ps_pbh(__mmask32 __A, __m512 __B, __m512 __C) { - return (__m512bh)__builtin_ia32_cvtne2ps2bf16_v32hi_maskz(__B, __C, __A); -} - -extern __inline __m256bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtneps_pbh(__m512 __A) { - return (__m256bh)__builtin_ia32_cvtneps2bf16_v16sf(__A); -} - -extern __inline __m256bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtneps_pbh(__m256bh __A, __mmask16 __B, __m512 __C) { - return (__m256bh)__builtin_ia32_cvtneps2bf16_v16sf_mask(__C, __A, __B); -} - -extern __inline __m256bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtneps_pbh(__mmask16 __A, __m512 __B) { - return (__m256bh)__builtin_ia32_cvtneps2bf16_v16sf_maskz(__B, __A); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dpbf16_ps(__m512 __A, __m512bh __B, __m512bh __C) { - return (__m512)__builtin_ia32_dpbf16ps_v16sf(__A, __B, __C); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_dpbf16_ps(__m512 __A, __mmask16 __B, __m512bh __C, __m512bh __D) { - return (__m512)__builtin_ia32_dpbf16ps_v16sf_mask(__A, __C, __D, __B); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_dpbf16_ps(__mmask16 __A, __m512 __B, __m512bh __C, __m512bh __D) { - return (__m512)__builtin_ia32_dpbf16ps_v16sf_maskz(__B, __C, __D, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tile_loadconfig(const void *__config) { - __asm__ volatile("ldtilecfg\t%X0" ::"m"(*((const void **)__config))); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tile_storeconfig(void *__config) { - __asm__ volatile("sttilecfg\t%X0" : "=m"(*((void **)__config))); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tile_release(void) { - __asm__ volatile("tilerelease" ::); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_prefetchw(void *__P) { - __builtin_prefetch(__P, 1, 3); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadiwkey(unsigned int __I, __m128i __A, __m128i __B, __m128i __C) { - __builtin_ia32_loadiwkey((__v2di)__B, (__v2di)__C, (__v2di)__A, __I); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_encodekey128_u32(unsigned int __I, __m128i __A, void *__P) { - return __builtin_ia32_encodekey128_u32(__I, (__v2di)__A, __P); -} - -extern __inline unsigned int __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_encodekey256_u32(unsigned int __I, __m128i __A, __m128i __B, void *__P) { - return __builtin_ia32_encodekey256_u32(__I, (__v2di)__A, (__v2di)__B, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesdec128kl_u8(__m128i *__A, __m128i __B, const void *__P) { - return __builtin_ia32_aesdec128kl_u8((__v2di *)__A, (__v2di)__B, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesdec256kl_u8(__m128i *__A, __m128i __B, const void *__P) { - return __builtin_ia32_aesdec256kl_u8((__v2di *)__A, (__v2di)__B, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesenc128kl_u8(__m128i *__A, __m128i __B, const void *__P) { - return __builtin_ia32_aesenc128kl_u8((__v2di *)__A, (__v2di)__B, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesenc256kl_u8(__m128i *__A, __m128i __B, const void *__P) { - return __builtin_ia32_aesenc256kl_u8((__v2di *)__A, (__v2di)__B, __P); -} - -extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_aesdecwide128kl_u8(__m128i __A[8], const __m128i __B[8], const void *__P) { - return __builtin_ia32_aesdecwide128kl_u8((__v2di *)__A, (__v2di *)__B, __P); -} - -extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_aesdecwide256kl_u8(__m128i __A[8], const __m128i __B[8], const void *__P) { - return __builtin_ia32_aesdecwide256kl_u8((__v2di *)__A, (__v2di *)__B, __P); -} - -extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_aesencwide128kl_u8(__m128i __A[8], const __m128i __B[8], const void *__P) { - return __builtin_ia32_aesencwide128kl_u8((__v2di *)__A, (__v2di *)__B, __P); -} - -extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_aesencwide256kl_u8(__m128i __A[8], const __m128i __B[8], const void *__P) { - return __builtin_ia32_aesencwide256kl_u8((__v2di *)__A, (__v2di *)__B, __P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_femms(void) { - __builtin_ia32_femms(); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pavgusb(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pavgusb((__v8qi)__A, (__v8qi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pf2id(__m64 __A) { - return (__m64)__builtin_ia32_pf2id((__v2sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfacc(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfacc((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfadd(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfadd((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfcmpeq(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfcmpeq((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfcmpge(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfcmpge((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfcmpgt(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfcmpgt((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfmax(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfmax((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfmin(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfmin((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfmul(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfmul((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfrcp(__m64 __A) { - return (__m64)__builtin_ia32_pfrcp((__v2sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfrcpit1(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfrcpit1((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfrcpit2(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfrcpit2((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfrsqrt(__m64 __A) { - return (__m64)__builtin_ia32_pfrsqrt((__v2sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfrsqit1(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfrsqit1((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfsub(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfsub((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfsubr(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfsubr((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pi2fd(__m64 __A) { - return (__m64)__builtin_ia32_pi2fd((__v2si)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmulhrw(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pmulhrw((__v4hi)__A, (__v4hi)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_prefetch(void *__P) { - __builtin_prefetch(__P, 0, 3); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_from_float(float __A) { - return __extension__(__m64)(__v2sf){__A, 0.0f}; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_to_float(__m64 __A) { - union { - __v2sf v; - float a[2]; - } __tmp; - __tmp.v = (__v2sf)__A; - return __tmp.a[0]; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pf2iw(__m64 __A) { - return (__m64)__builtin_ia32_pf2iw((__v2sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfnacc(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfnacc((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfpnacc(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfpnacc((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pi2fw(__m64 __A) { - return (__m64)__builtin_ia32_pi2fw((__v2si)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pswapd(__m64 __A) { - return (__m64)__builtin_ia32_pswapdsf((__v2sf)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_sd(double *__P, __m128d __Y) { - __builtin_ia32_movntsd(__P, (__v2df)__Y); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_ss(float *__P, __m128 __Y) { - __builtin_ia32_movntss(__P, (__v4sf)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_si64(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_extrq((__v2di)__X, (__v16qi)__Y); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_extracti_si64(__m128i __X, unsigned const int __I, unsigned const int __L) { - return (__m128i)__builtin_ia32_extrqi((__v2di)__X, __I, __L); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_si64(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_insertq((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_inserti_si64(__m128i __X, __m128i __Y, unsigned const int __I, - unsigned const int __L) { - return (__m128i)__builtin_ia32_insertqi((__v2di)__X, (__v2di)__Y, __I, __L); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps((__v4sf)__A, (__v4sf)__B, (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddss((__v4sf)__A, (__v4sf)__B, (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msub_ps(__m128 __A, __m128 __B, __m128 __C) - -{ - return (__m128)__builtin_ia32_vfmaddps((__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd((__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msub_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddss((__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msub_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsd((__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmacc_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps(-(__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmacc_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd(-(__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmacc_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddss(-(__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmacc_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsd(-(__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmsub_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps(-(__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmsub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd(-(__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmsub_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddss(-(__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmsub_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsd(-(__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddsub_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddsub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msubadd_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps((__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msubadd_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd((__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_macc_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_macc_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_msub_ps(__m256 __A, __m256 __B, __m256 __C) - -{ - return (__m256)__builtin_ia32_vfmaddps256((__v8sf)__A, (__v8sf)__B, - -(__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_msub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256((__v4df)__A, (__v4df)__B, - -(__v4df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_nmacc_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256(-(__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_nmacc_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256(-(__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_nmsub_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256(-(__v8sf)__A, (__v8sf)__B, - -(__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_nmsub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256(-(__v4df)__A, (__v4df)__B, - -(__v4df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maddsub_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maddsub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_msubadd_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256((__v8sf)__A, (__v8sf)__B, - -(__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_msubadd_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256((__v4df)__A, (__v4df)__B, - -(__v4df)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccs_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacssww((__v8hi)__A, (__v8hi)__B, - (__v8hi)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacsww((__v8hi)__A, (__v8hi)__B, - (__v8hi)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccsd_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacsswd((__v8hi)__A, (__v8hi)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccd_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacswd((__v8hi)__A, (__v8hi)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccs_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacssdd((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacsdd((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccslo_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacssdql((__v4si)__A, (__v4si)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macclo_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacsdql((__v4si)__A, (__v4si)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccshi_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacssdqh((__v4si)__A, (__v4si)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macchi_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacsdqh((__v4si)__A, (__v4si)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddsd_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmadcsswd((__v8hi)__A, (__v8hi)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddd_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmadcswd((__v8hi)__A, (__v8hi)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddw_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddbw((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddd_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddbd((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddbq((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddd_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddwd((__v8hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddwq((__v8hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_vphadddq((__v4si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddw_epu8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddubw((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddd_epu8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddubd((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epu8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddubq((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddd_epu16(__m128i __A) { - return (__m128i)__builtin_ia32_vphadduwd((__v8hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epu16(__m128i __A) { - return (__m128i)__builtin_ia32_vphadduwq((__v8hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epu32(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddudq((__v4si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsubw_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_vphsubbw((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsubd_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_vphsubwd((__v8hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsubq_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_vphsubdq((__v4si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmov_si128(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpcmov(__A, __B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmov_si256(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpcmov256(__A, __B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_perm_epi8(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpperm((__v16qi)__A, (__v16qi)__B, - (__v16qi)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rot_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vprotb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rot_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vprotw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rot_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vprotd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rot_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vprotq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roti_epi8(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_vprotbi((__v16qi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roti_epi16(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_vprotwi((__v8hi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roti_epi32(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_vprotdi((__v4si)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roti_epi64(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_vprotqi((__v2di)__A, __B); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shl_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshlb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shl_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshlw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shl_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshld((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shl_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshlq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshab((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshaw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshad((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshaq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomequb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomnequb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomequw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomnequw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomequd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomnequd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomequq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomnequq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomeqb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomneqb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomlew((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgew((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomeqw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomneqw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalsew((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtruew((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomled((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomged((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomeqd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomneqd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalsed((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrued((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomeqq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomneqq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_frcz_ps(__m128 __A) { - return (__m128)__builtin_ia32_vfrczps((__v4sf)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_frcz_pd(__m128d __A) { - return (__m128d)__builtin_ia32_vfrczpd((__v2df)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_frcz_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movss( - (__v4sf)__A, (__v4sf)__builtin_ia32_vfrczss((__v4sf)__B)); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_frcz_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movsd( - (__v2df)__A, (__v2df)__builtin_ia32_vfrczsd((__v2df)__B)); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_frcz_ps(__m256 __A) { - return (__m256)__builtin_ia32_vfrczps256((__v8sf)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_frcz_pd(__m256d __A) { - return (__m256d)__builtin_ia32_vfrczpd256((__v4df)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permute2_pd(__m128d __X, __m128d __Y, __m128i __C, const int __I) { - return (__m128d)__builtin_ia32_vpermil2pd((__v2df)__X, (__v2df)__Y, - (__v2di)__C, __I); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2_pd(__m256d __X, __m256d __Y, __m256i __C, const int __I) { - return (__m256d)__builtin_ia32_vpermil2pd256((__v4df)__X, (__v4df)__Y, - (__v4di)__C, __I); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permute2_ps(__m128 __X, __m128 __Y, __m128i __C, const int __I) { - return (__m128)__builtin_ia32_vpermil2ps((__v4sf)__X, (__v4sf)__Y, - (__v4si)__C, __I); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2_ps(__m256 __X, __m256 __Y, __m256i __C, const int __I) { - return (__m256)__builtin_ia32_vpermil2ps256((__v8sf)__X, (__v8sf)__Y, - (__v8si)__C, __I); -} - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern uint_fast32_t const crctab[8][256]; - -extern _Bool - -cksum_pclmul(FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out); - -_Bool - -cksum_pclmul (FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out) -{ - __m128i buf[(1 << 16) / sizeof(__m128i)]; - uint_fast32_t crc = 0; - uintmax_t length = 0; - size_t bytes_read; - __m128i single_mult_constant; - __m128i four_mult_constant; - __m128i shuffle_constant; - - if (!fp || !crc_out || !length_out) - return 0; - - single_mult_constant = _mm_set_epi64x(0xC5B9CD4C, 0xE8A45605); - four_mult_constant = _mm_set_epi64x(0x8833794C, 0xE6228B11); - - shuffle_constant = - _mm_set_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15); - - while ((bytes_read = fread_unlocked(buf, 1, (1 << 16), fp)) > 0) { - __m128i *datap; - __m128i data; - __m128i data2; - __m128i data3; - __m128i data4; - __m128i data5; - __m128i data6; - __m128i data7; - __m128i data8; - __m128i fold_data; - __m128i xor_crc; - - if (length + bytes_read < length) { - - (*__errno_location()) = 75; - return 0; - } - length += bytes_read; - - if (bytes_read == 0) { - if (ferror_unlocked(fp)) - return 0; - } - - datap = (__m128i *)buf; - - if (bytes_read >= 16 * 8) { - data = _mm_loadu_si128(datap); - data = _mm_shuffle_epi8(data, shuffle_constant); - - xor_crc = _mm_set_epi32(crc, 0, 0, 0); - crc = 0; - data = _mm_xor_si128(data, xor_crc); - data3 = _mm_loadu_si128(datap + 1); - data3 = _mm_shuffle_epi8(data3, shuffle_constant); - data5 = _mm_loadu_si128(datap + 2); - data5 = _mm_shuffle_epi8(data5, shuffle_constant); - data7 = _mm_loadu_si128(datap + 3); - data7 = _mm_shuffle_epi8(data7, shuffle_constant); - - while (bytes_read >= 16 * 8) { - datap += 4; - - data2 = _mm_clmulepi64_si128(data, four_mult_constant, 0x00); - data = _mm_clmulepi64_si128(data, four_mult_constant, 0x11); - data4 = _mm_clmulepi64_si128(data3, four_mult_constant, 0x00); - data3 = _mm_clmulepi64_si128(data3, four_mult_constant, 0x11); - data6 = _mm_clmulepi64_si128(data5, four_mult_constant, 0x00); - data5 = _mm_clmulepi64_si128(data5, four_mult_constant, 0x11); - data8 = _mm_clmulepi64_si128(data7, four_mult_constant, 0x00); - data7 = _mm_clmulepi64_si128(data7, four_mult_constant, 0x11); - - data = _mm_xor_si128(data, data2); - data2 = _mm_loadu_si128(datap); - data2 = _mm_shuffle_epi8(data2, shuffle_constant); - data = _mm_xor_si128(data, data2); - - data3 = _mm_xor_si128(data3, data4); - data4 = _mm_loadu_si128(datap + 1); - data4 = _mm_shuffle_epi8(data4, shuffle_constant); - data3 = _mm_xor_si128(data3, data4); - - data5 = _mm_xor_si128(data5, data6); - data6 = _mm_loadu_si128(datap + 2); - data6 = _mm_shuffle_epi8(data6, shuffle_constant); - data5 = _mm_xor_si128(data5, data6); - - data7 = _mm_xor_si128(data7, data8); - data8 = _mm_loadu_si128(datap + 3); - data8 = _mm_shuffle_epi8(data8, shuffle_constant); - data7 = _mm_xor_si128(data7, data8); - - bytes_read -= (16 * 4); - } - - data = _mm_shuffle_epi8(data, shuffle_constant); - _mm_storeu_si128(datap, data); - data3 = _mm_shuffle_epi8(data3, shuffle_constant); - _mm_storeu_si128(datap + 1, data3); - data5 = _mm_shuffle_epi8(data5, shuffle_constant); - _mm_storeu_si128(datap + 2, data5); - data7 = _mm_shuffle_epi8(data7, shuffle_constant); - _mm_storeu_si128(datap + 3, data7); - } - - if (bytes_read >= 32) { - data = _mm_loadu_si128(datap); - data = _mm_shuffle_epi8(data, shuffle_constant); - xor_crc = _mm_set_epi32(crc, 0, 0, 0); - crc = 0; - data = _mm_xor_si128(data, xor_crc); - while (bytes_read >= 32) { - datap++; - - data2 = _mm_clmulepi64_si128(data, single_mult_constant, 0x00); - data = _mm_clmulepi64_si128(data, single_mult_constant, 0x11); - fold_data = _mm_loadu_si128(datap); - fold_data = _mm_shuffle_epi8(fold_data, shuffle_constant); - data = _mm_xor_si128(data, data2); - data = _mm_xor_si128(data, fold_data); - bytes_read -= 16; - } - data = _mm_shuffle_epi8(data, shuffle_constant); - _mm_storeu_si128(datap, data); - } - - unsigned char *cp = (unsigned char *)datap; - while (bytes_read--) - crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ *cp++) & 0xFF]; - if (feof_unlocked(fp)) - break; - } - - *crc_out = crc; - *length_out = length; - - return 1; -} diff --git a/tests/source/coreutils/libstdbuf_so-libstdbuf.c b/tests/source/coreutils/libstdbuf_so-libstdbuf.c deleted file mode 100644 index a138dc0..0000000 --- a/tests/source/coreutils/libstdbuf_so-libstdbuf.c +++ /dev/null @@ -1,6809 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -static char const *fileno_to_name(const int fd) { - char const *ret = ((void *)0); - - switch (fd) { - case 0: - ret = "stdin"; - break; - case 1: - ret = "stdout"; - break; - case 2: - ret = "stderr"; - break; - default: - ret = "unknown"; - break; - } - - return ret; -} - -static void apply_mode(FILE *stream, char const *mode) { - char *buf = ((void *)0); - int setvbuf_mode; - uintmax_t size = 0; - - if (*mode == '0') - setvbuf_mode = 2; - else if (*mode == 'L') - setvbuf_mode = 1; - else { - setvbuf_mode = 0; - char *mode_end; - size = strtoumax(mode, &mode_end, 10); - if (size == 0 || *mode_end) { - fprintf(stderr, - dcgettext(((void *)0), "invalid buffering mode %s for %s\n", 5), - mode, fileno_to_name(fileno(stream))); - return; - } - - buf = size <= (18446744073709551615UL) ? malloc(size) : ((void *)0); - if (!buf) { - - fprintf(stderr, - - dcgettext(((void *)0), - "failed to allocate a %" - "l" - "u" - " byte stdio buffer\n", - 5) - - , - size); - return; - } - } - - if (setvbuf(stream, buf, setvbuf_mode, size) != 0) { - fprintf( - stderr, - dcgettext(((void *)0), "could not set buffering of %s to mode %s\n", 5), - fileno_to_name(fileno(stream)), mode); - free(buf); - } -} - -static void __attribute((constructor)) stdbuf(void) { - char *e_mode = getenv("_STDBUF_E"); - char *i_mode = getenv("_STDBUF_I"); - char *o_mode = getenv("_STDBUF_O"); - if (e_mode) - apply_mode(stderr, e_mode); - if (i_mode) - apply_mode(stdin, i_mode); - if (o_mode) - apply_mode(stdout, o_mode); -} diff --git a/tests/source/coreutils/libwc_avx2_a-wc_avx2.c b/tests/source/coreutils/libwc_avx2_a-wc_avx2.c deleted file mode 100644 index 49fff06..0000000 --- a/tests/source/coreutils/libwc_avx2_a-wc_avx2.c +++ /dev/null @@ -1,46903 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; -extern size_t safe_read(int fd, void *buf, size_t count); - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bsfd(int __X) { - return __builtin_ctz(__X); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bsrd(int __X) { - return __builtin_ia32_bsrsi(__X); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bswapd(int __X) { - return __builtin_bswap32(__X); -} -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __crc32b(unsigned int __C, unsigned char __V) { - return __builtin_ia32_crc32qi(__C, __V); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __crc32w(unsigned int __C, unsigned short __V) { - return __builtin_ia32_crc32hi(__C, __V); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __crc32d(unsigned int __C, unsigned int __V) { - return __builtin_ia32_crc32si(__C, __V); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __popcntd(unsigned int __X) { - return __builtin_popcount(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rdpmc(int __S) { - return __builtin_ia32_rdpmc(__S); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rdtsc(void) { - return __builtin_ia32_rdtsc(); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rdtscp(unsigned int *__A) { - return __builtin_ia32_rdtscp(__A); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rolb(unsigned char __X, int __C) { - return __builtin_ia32_rolqi(__X, __C); -} - -extern __inline unsigned short - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rolw(unsigned short __X, int __C) { - return __builtin_ia32_rolhi(__X, __C); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rold(unsigned int __X, int __C) { - __C &= 31; - return (__X << __C) | (__X >> (-__C & 31)); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rorb(unsigned char __X, int __C) { - return __builtin_ia32_rorqi(__X, __C); -} - -extern __inline unsigned short - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rorw(unsigned short __X, int __C) { - return __builtin_ia32_rorhi(__X, __C); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rord(unsigned int __X, int __C) { - __C &= 31; - return (__X >> __C) | (__X << (-__C & 31)); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __pause(void) { - __builtin_ia32_pause(); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bsfq(long long __X) { - return __builtin_ctzll(__X); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bsrq(long long __X) { - return __builtin_ia32_bsrdi(__X); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bswapq(long long __X) { - return __builtin_bswap64(__X); -} -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __crc32q(unsigned long long __C, unsigned long long __V) { - return __builtin_ia32_crc32di(__C, __V); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __popcntq(unsigned long long __X) { - return __builtin_popcountll(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rolq(unsigned long long __X, int __C) { - __C &= 63; - return (__X << __C) | (__X >> (-__C & 63)); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __rorq(unsigned long long __X, int __C) { - __C &= 63; - return (__X >> __C) | (__X << (-__C & 63)); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __readeflags(void) { - return __builtin_ia32_readeflags_u64(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __writeeflags(unsigned long long __X) { - __builtin_ia32_writeeflags_u64(__X); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _subborrow_u32(unsigned char __CF, unsigned int __X, unsigned int __Y, - unsigned int *__P) { - return __builtin_ia32_sbb_u32(__CF, __X, __Y, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _addcarry_u32(unsigned char __CF, unsigned int __X, unsigned int __Y, - unsigned int *__P) { - return __builtin_ia32_addcarryx_u32(__CF, __X, __Y, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _addcarryx_u32(unsigned char __CF, unsigned int __X, unsigned int __Y, - unsigned int *__P) { - return __builtin_ia32_addcarryx_u32(__CF, __X, __Y, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _subborrow_u64(unsigned char __CF, unsigned long long __X, - unsigned long long __Y, unsigned long long *__P) { - return __builtin_ia32_sbb_u64(__CF, __X, __Y, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _addcarry_u64(unsigned char __CF, unsigned long long __X, - unsigned long long __Y, unsigned long long *__P) { - return __builtin_ia32_addcarryx_u64(__CF, __X, __Y, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _addcarryx_u64(unsigned char __CF, unsigned long long __X, - unsigned long long __Y, unsigned long long *__P) { - return __builtin_ia32_addcarryx_u64(__CF, __X, __Y, __P); -} - -extern __inline unsigned short - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __tzcnt_u16(unsigned short __X) { - return __builtin_ia32_tzcnt_u16(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __andn_u32(unsigned int __X, unsigned int __Y) { - return ~__X & __Y; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bextr_u32(unsigned int __X, unsigned int __Y) { - return __builtin_ia32_bextr_u32(__X, __Y); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _bextr_u32(unsigned int __X, unsigned int __Y, unsigned __Z) { - return __builtin_ia32_bextr_u32(__X, ((__Y & 0xff) | ((__Z & 0xff) << 8))); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsi_u32(unsigned int __X) { - return __X & -__X; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsi_u32(unsigned int __X) { - return __blsi_u32(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsmsk_u32(unsigned int __X) { - return __X ^ (__X - 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsmsk_u32(unsigned int __X) { - return __blsmsk_u32(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsr_u32(unsigned int __X) { - return __X & (__X - 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsr_u32(unsigned int __X) { - return __blsr_u32(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __tzcnt_u32(unsigned int __X) { - return __builtin_ia32_tzcnt_u32(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tzcnt_u32(unsigned int __X) { - return __builtin_ia32_tzcnt_u32(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __andn_u64(unsigned long long __X, unsigned long long __Y) { - return ~__X & __Y; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bextr_u64(unsigned long long __X, unsigned long long __Y) { - return __builtin_ia32_bextr_u64(__X, __Y); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _bextr_u64(unsigned long long __X, unsigned int __Y, unsigned int __Z) { - return __builtin_ia32_bextr_u64(__X, ((__Y & 0xff) | ((__Z & 0xff) << 8))); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsi_u64(unsigned long long __X) { - return __X & -__X; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsi_u64(unsigned long long __X) { - return __blsi_u64(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsmsk_u64(unsigned long long __X) { - return __X ^ (__X - 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsmsk_u64(unsigned long long __X) { - return __blsmsk_u64(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsr_u64(unsigned long long __X) { - return __X & (__X - 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _blsr_u64(unsigned long long __X) { - return __blsr_u64(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __tzcnt_u64(unsigned long long __X) { - return __builtin_ia32_tzcnt_u64(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tzcnt_u64(unsigned long long __X) { - return __builtin_ia32_tzcnt_u64(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _bzhi_u32(unsigned int __X, unsigned int __Y) { - return __builtin_ia32_bzhi_si(__X, __Y); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _pdep_u32(unsigned int __X, unsigned int __Y) { - return __builtin_ia32_pdep_si(__X, __Y); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _pext_u32(unsigned int __X, unsigned int __Y) { - return __builtin_ia32_pext_si(__X, __Y); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _bzhi_u64(unsigned long long __X, unsigned long long __Y) { - return __builtin_ia32_bzhi_di(__X, __Y); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _pdep_u64(unsigned long long __X, unsigned long long __Y) { - return __builtin_ia32_pdep_di(__X, __Y); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _pext_u64(unsigned long long __X, unsigned long long __Y) { - return __builtin_ia32_pext_di(__X, __Y); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mulx_u64(unsigned long long __X, unsigned long long __Y, - unsigned long long *__P) { - unsigned __int128 __res = (unsigned __int128)__X * __Y; - *__P = (unsigned long long)(__res >> 64); - return (unsigned long long)__res; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _get_ssp(void) { - return __builtin_ia32_rdsspq(); -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _inc_ssp(unsigned int __B) { - - __builtin_ia32_incsspq((unsigned long long)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _saveprevssp(void) { - __builtin_ia32_saveprevssp(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rstorssp(void *__B) { - __builtin_ia32_rstorssp(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wrssd(unsigned int __B, void *__C) { - __builtin_ia32_wrssd(__B, __C); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wrssq(unsigned long long __B, void *__C) { - __builtin_ia32_wrssq(__B, __C); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wrussd(unsigned int __B, void *__C) { - __builtin_ia32_wrussd(__B, __C); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wrussq(unsigned long long __B, void *__C) { - __builtin_ia32_wrussq(__B, __C); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _setssbsy(void) { - __builtin_ia32_setssbsy(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _clrssbsy(void *__B) { - __builtin_ia32_clrssbsy(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cldemote(void *__A) { - __builtin_ia32_cldemote(__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_clflushopt(void *__A) { - __builtin_ia32_clflushopt(__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_clwb(void *__A) { - __builtin_ia32_clwb(__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_clzero(void *__I) { - __builtin_ia32_clzero(__I); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _enqcmd(void *__P, const void *__Q) { - return __builtin_ia32_enqcmd(__P, __Q); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _enqcmds(void *__P, const void *__Q) { - return __builtin_ia32_enqcmds(__P, __Q); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _fxsave(void *__P) { - __builtin_ia32_fxsave(__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _fxrstor(void *__P) { - __builtin_ia32_fxrstor(__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _fxsave64(void *__P) { - __builtin_ia32_fxsave64(__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _fxrstor64(void *__P) { - __builtin_ia32_fxrstor64(__P); -} - -extern __inline unsigned short - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __lzcnt16(unsigned short __X) { - return __builtin_ia32_lzcnt_u16(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __lzcnt32(unsigned int __X) { - return __builtin_ia32_lzcnt_u32(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _lzcnt_u32(unsigned int __X) { - return __builtin_ia32_lzcnt_u32(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __lzcnt64(unsigned long long __X) { - return __builtin_ia32_lzcnt_u64(__X); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _lzcnt_u64(unsigned long long __X) { - return __builtin_ia32_lzcnt_u64(__X); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __llwpcb(void *__pcbAddress) { - __builtin_ia32_llwpcb(__pcbAddress); -} - -extern __inline void *__attribute__((__gnu_inline__, __always_inline__, - __artificial__)) __slwpcb(void) { - return __builtin_ia32_slwpcb(); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -__lwpval32(unsigned int __data2, unsigned int __data1, unsigned int __flags) { - __builtin_ia32_lwpval32(__data2, __data1, __flags); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __lwpval64(unsigned long long __data2, unsigned int __data1, - unsigned int __flags) { - __builtin_ia32_lwpval64(__data2, __data1, __flags); -} -extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -__lwpins32(unsigned int __data2, unsigned int __data1, unsigned int __flags) { - return __builtin_ia32_lwpins32(__data2, __data1, __flags); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __lwpins64(unsigned long long __data2, unsigned int __data1, - unsigned int __flags) { - return __builtin_ia32_lwpins64(__data2, __data1, __flags); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _directstoreu_u32(void *__P, unsigned int __A) { - __builtin_ia32_directstoreu_u32((unsigned int *)__P, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _directstoreu_u64(void *__P, unsigned long long __A) { - __builtin_ia32_directstoreu_u64((unsigned long long *)__P, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _movdir64b(void *__P, const void *__Q) { - __builtin_ia32_movdir64b(__P, __Q); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_monitor(void const *__P, unsigned int __E, unsigned int __H) { - __builtin_ia32_monitor(__P, __E, __H); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mwait(unsigned int __E, unsigned int __H) { - __builtin_ia32_mwait(__E, __H); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_monitorx(void const *__P, unsigned int __E, unsigned int __H) { - __builtin_ia32_monitorx(__P, __E, __H); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mwaitx(unsigned int __E, unsigned int __H, unsigned int __C) { - __builtin_ia32_mwaitx(__E, __H, __C); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _pconfig_u32(const unsigned int __L, size_t __D[]) { - enum __pconfig_type { - __PCONFIG_KEY_PROGRAM = 0x01, - }; - - unsigned int __R = 0; - - if (!__builtin_constant_p(__L)) - __asm__ __volatile__("pconfig\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - else - switch (__L) { - case __PCONFIG_KEY_PROGRAM: - __asm__ __volatile__("pconfig\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]) - : "cc"); - break; - default: - __asm__ __volatile__("pconfig\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - } - return __R; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_u32(unsigned int __X) { - return __builtin_popcount(__X); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_u64(unsigned long long __X) { - return __builtin_popcountll(__X); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdpkru_u32(void) { - return __builtin_ia32_rdpkru(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wrpkru(unsigned int __key) { - __builtin_ia32_wrpkru(__key); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdseed16_step(unsigned short *__p) { - return __builtin_ia32_rdseed_hi_step(__p); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdseed32_step(unsigned int *__p) { - return __builtin_ia32_rdseed_si_step(__p); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdseed64_step(unsigned long long *__p) { - return __builtin_ia32_rdseed_di_step(__p); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xbegin(void) { - return __builtin_ia32_xbegin(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xend(void) { - __builtin_ia32_xend(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xabort(const unsigned int __imm) { - __builtin_ia32_xabort(__imm); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _serialize(void) { - __builtin_ia32_serialize(); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _encls_u32(const unsigned int __L, size_t __D[]) { - enum __encls_type { - __SGX_ECREATE = 0x00, - __SGX_EADD = 0x01, - __SGX_EINIT = 0x02, - __SGX_EREMOVE = 0x03, - __SGX_EDBGRD = 0x04, - __SGX_EDBGWR = 0x05, - __SGX_EEXTEND = 0x06, - __SGX_ELDB = 0x07, - __SGX_ELDU = 0x08, - __SGX_EBLOCK = 0x09, - __SGX_EPA = 0x0A, - __SGX_EWB = 0x0B, - __SGX_ETRACK = 0x0C, - __SGX_EAUG = 0x0D, - __SGX_EMODPR = 0x0E, - __SGX_EMODT = 0x0F, - __SGX_ERDINFO = 0x10, - __SGX_ETRACKC = 0x11, - __SGX_ELDBC = 0x12, - __SGX_ELDUC = 0x13 - }; - enum __encls_type __T = (enum __encls_type)__L; - unsigned int __R = 0; - if (!__builtin_constant_p(__T)) - __asm__ __volatile__("encls\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - else - switch (__T) { - case __SGX_ECREATE: - case __SGX_EADD: - case __SGX_EDBGWR: - case __SGX_EEXTEND: - case __SGX_EPA: - case __SGX_EMODPR: - case __SGX_EMODT: - case __SGX_EAUG: - case __SGX_ERDINFO: - __asm__ __volatile__("encls\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]), "c"(__D[1]) - : "cc"); - break; - case __SGX_EINIT: - case __SGX_ELDB: - case __SGX_ELDU: - case __SGX_EWB: - case __SGX_ELDBC: - case __SGX_ELDUC: - __asm__ __volatile__("encls\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - break; - case __SGX_EREMOVE: - case __SGX_EBLOCK: - case __SGX_ETRACK: - case __SGX_ETRACKC: - __asm__ __volatile__("encls\n\t" - : "=a"(__R) - : "a"(__L), "c"(__D[1]) - : "cc"); - break; - case __SGX_EDBGRD: - __asm__ __volatile__("encls\n\t" - : "=a"(__R), "=b"(__D[0]) - : "a"(__L), "c"(__D[1])); - break; - default: - __asm__ __volatile__("encls\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - } - return __R; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _enclu_u32(const unsigned int __L, size_t __D[]) { - enum __enclu_type { - __SGX_EREPORT = 0x00, - __SGX_EGETKEY = 0x01, - __SGX_EENTER = 0x02, - __SGX_ERESUME = 0x03, - __SGX_EEXIT = 0x04, - __SGX_EACCEPT = 0x05, - __SGX_EMODPE = 0x06, - __SGX_EACCEPTCOPY = 0x07 - }; - enum __enclu_type __T = (enum __enclu_type)__L; - unsigned int __R = 0; - if (!__builtin_constant_p(__T)) - __asm__ __volatile__("enclu\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - else - switch (__T) { - case __SGX_EREPORT: - case __SGX_EACCEPTCOPY: - __asm__ __volatile__("enclu\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - break; - case __SGX_EGETKEY: - case __SGX_ERESUME: - case __SGX_EACCEPT: - case __SGX_EMODPE: - __asm__ __volatile__("enclu\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]), "c"(__D[1]) - : "cc"); - break; - case __SGX_EENTER: - __asm__ __volatile__("enclu\n\t" - : "=a"(__R), "=c"(__D[1]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]) - : "cc"); - break; - case __SGX_EEXIT: - __asm__ __volatile__("enclu\n\t" - : "=a"(__R), "=c"(__D[1]) - : "a"(__L), "b"(__D[0]) - : "cc"); - break; - default: - __asm__ __volatile__("enclu\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[1]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - } - return __R; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _enclv_u32(const unsigned int __L, size_t __D[]) { - enum __enclv_type { - __SGX_EDECVIRTCHILD = 0x00, - __SGX_EINCVIRTCHILD = 0x01, - __SGX_ESETCONTEXT = 0x02 - }; - unsigned int __R = 0; - if (!__builtin_constant_p(__L)) - __asm__ __volatile__("enclv\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[0]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - else - switch (__L) { - case __SGX_EDECVIRTCHILD: - case __SGX_EINCVIRTCHILD: - __asm__ __volatile__("enclv\n\t" - : "=a"(__R) - : "a"(__L), "b"(__D[0]), "c"(__D[1]) - : "cc"); - break; - case __SGX_ESETCONTEXT: - __asm__ __volatile__("enclv\n\t" - : "=a"(__R) - : "a"(__L), "c"(__D[1]), "d"(__D[2]) - : "cc"); - break; - default: - __asm__ __volatile__("enclv\n\t" - : "=a"(__R), "=b"(__D[0]), "=c"(__D[0]), "=d"(__D[2]) - : "a"(__L), "b"(__D[0]), "c"(__D[1]), "d"(__D[2]) - : "cc"); - } - return __R; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bextri_u32(unsigned int __X, const unsigned int __I) { - return __builtin_ia32_bextri_u32(__X, __I); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcfill_u32(unsigned int __X) { - return __X & (__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blci_u32(unsigned int __X) { - return __X | ~(__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcic_u32(unsigned int __X) { - return ~__X & (__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcmsk_u32(unsigned int __X) { - return __X ^ (__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcs_u32(unsigned int __X) { - return __X | (__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsfill_u32(unsigned int __X) { - return __X | (__X - 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsic_u32(unsigned int __X) { - return ~__X | (__X - 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __t1mskc_u32(unsigned int __X) { - return ~__X | (__X + 1); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __tzmsk_u32(unsigned int __X) { - return ~__X & (__X - 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __bextri_u64(unsigned long long __X, const unsigned int __I) { - return __builtin_ia32_bextri_u64(__X, __I); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcfill_u64(unsigned long long __X) { - return __X & (__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blci_u64(unsigned long long __X) { - return __X | ~(__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcic_u64(unsigned long long __X) { - return ~__X & (__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcmsk_u64(unsigned long long __X) { - return __X ^ (__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blcs_u64(unsigned long long __X) { - return __X | (__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsfill_u64(unsigned long long __X) { - return __X | (__X - 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __blsic_u64(unsigned long long __X) { - return ~__X | (__X - 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __t1mskc_u64(unsigned long long __X) { - return ~__X | (__X + 1); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - __tzmsk_u64(unsigned long long __X) { - return ~__X & (__X - 1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsusldtrk(void) { - __builtin_ia32_xsusldtrk(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xresldtrk(void) { - __builtin_ia32_xresldtrk(); -} - -struct __uintr_frame { - - unsigned long long rip; - - unsigned long long rflags; - - unsigned long long rsp; -}; - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _clui(void) { - __builtin_ia32_clui(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _stui(void) { - __builtin_ia32_stui(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _senduipi(unsigned long long __R) { - __builtin_ia32_senduipi(__R); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _testui(void) { - return __builtin_ia32_testui(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _umonitor(void *__A) { - __builtin_ia32_umonitor(__A); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _umwait(unsigned int __A, unsigned long long __B) { - return __builtin_ia32_umwait(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tpause(unsigned int __A, unsigned long long __B) { - return __builtin_ia32_tpause(__A, __B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wbnoinvd(void) { - __builtin_ia32_wbnoinvd(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsave(void *__P, long long __M) { - __builtin_ia32_xsave(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xrstor(void *__P, long long __M) { - __builtin_ia32_xrstor(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsetbv(unsigned int __A, long long __V) { - __builtin_ia32_xsetbv(__A, __V); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xgetbv(unsigned int __A) { - return __builtin_ia32_xgetbv(__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsave64(void *__P, long long __M) { - __builtin_ia32_xsave64(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xrstor64(void *__P, long long __M) { - __builtin_ia32_xrstor64(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsavec(void *__P, long long __M) { - __builtin_ia32_xsavec(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsavec64(void *__P, long long __M) { - __builtin_ia32_xsavec64(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsaveopt(void *__P, long long __M) { - __builtin_ia32_xsaveopt(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsaveopt64(void *__P, long long __M) { - __builtin_ia32_xsaveopt64(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsaves(void *__P, long long __M) { - __builtin_ia32_xsaves(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xrstors(void *__P, long long __M) { - __builtin_ia32_xrstors(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xrstors64(void *__P, long long __M) { - __builtin_ia32_xrstors64(__P, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xsaves64(void *__P, long long __M) { - __builtin_ia32_xsaves64(__P, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _xtest(void) { - return __builtin_ia32_xtest(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _hreset(unsigned int __EAX) { - __builtin_ia32_hreset(__EAX); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _wbinvd(void) { - __builtin_ia32_wbinvd(); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdrand16_step(unsigned short *__P) { - return __builtin_ia32_rdrand16_step(__P); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdrand32_step(unsigned int *__P) { - return __builtin_ia32_rdrand32_step(__P); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdpid_u32(void) { - return __builtin_ia32_rdpid(); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _readfsbase_u32(void) { - return __builtin_ia32_rdfsbase32(); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _readfsbase_u64(void) { - return __builtin_ia32_rdfsbase64(); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _readgsbase_u32(void) { - return __builtin_ia32_rdgsbase32(); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _readgsbase_u64(void) { - return __builtin_ia32_rdgsbase64(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _writefsbase_u32(unsigned int __B) { - __builtin_ia32_wrfsbase32(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _writefsbase_u64(unsigned long long __B) { - __builtin_ia32_wrfsbase64(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _writegsbase_u32(unsigned int __B) { - __builtin_ia32_wrgsbase32(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _writegsbase_u64(unsigned long long __B) { - __builtin_ia32_wrgsbase64(__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _rdrand64_step(unsigned long long *__P) { - return __builtin_ia32_rdrand64_step(__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ptwrite64(unsigned long long __B) { - __builtin_ia32_ptwrite64(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ptwrite32(unsigned __B) { - __builtin_ia32_ptwrite32(__B); -} - -typedef int __m64 __attribute__((__vector_size__(8), __may_alias__)); -typedef int __m32 __attribute__((__vector_size__(4), __may_alias__)); -typedef short __m16 __attribute__((__vector_size__(2), __may_alias__)); - -typedef int __m64_u - __attribute__((__vector_size__(8), __may_alias__, __aligned__(1))); -typedef int __m32_u - __attribute__((__vector_size__(4), __may_alias__, __aligned__(1))); -typedef short __m16_u - __attribute__((__vector_size__(2), __may_alias__, __aligned__(1))); - -typedef int __v2si __attribute__((__vector_size__(8))); -typedef short __v4hi __attribute__((__vector_size__(8))); -typedef char __v8qi __attribute__((__vector_size__(8))); -typedef long long __v1di __attribute__((__vector_size__(8))); -typedef float __v2sf __attribute__((__vector_size__(8))); - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_empty(void) { - __builtin_ia32_emms(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_empty(void) { - _mm_empty(); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi32_si64(int __i) { - return (__m64)__builtin_ia32_vec_init_v2si(__i, 0); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_from_int(int __i) { - return _mm_cvtsi32_si64(__i); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_from_int64(long long __i) { - return (__m64)__i; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_m64(long long __i) { - return (__m64)__i; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64x_si64(long long __i) { - return (__m64)__i; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pi64x(long long __i) { - return (__m64)__i; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_si32(__m64 __i) { - return __builtin_ia32_vec_ext_v2si((__v2si)__i, 0); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_to_int(__m64 __i) { - return _mm_cvtsi64_si32(__i); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_to_int64(__m64 __i) { - return (long long)__i; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtm64_si64(__m64 __i) { - return (long long)__i; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_si64x(__m64 __i) { - return (long long)__i; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packs_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_packsswb(__m64 __m1, __m64 __m2) { - return _mm_packs_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packs_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_packssdw(__m64 __m1, __m64 __m2) { - return _mm_packs_pi32(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packs_pu16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_packuswb(__m64 __m1, __m64 __m2) { - return _mm_packs_pu16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpckhbw(__m64 __m1, __m64 __m2) { - return _mm_unpackhi_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpckhwd(__m64 __m1, __m64 __m2) { - return _mm_unpackhi_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpckhdq(__m64 __m1, __m64 __m2) { - return _mm_unpackhi_pi32(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpcklbw(__m64 __m1, __m64 __m2) { - return _mm_unpacklo_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpcklwd(__m64 __m1, __m64 __m2) { - return _mm_unpacklo_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_punpckldq(__m64 __m1, __m64 __m2) { - return _mm_unpacklo_pi32(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddb(__m64 __m1, __m64 __m2) { - return _mm_add_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddw(__m64 __m1, __m64 __m2) { - return _mm_add_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddd(__m64 __m1, __m64 __m2) { - return _mm_add_pi32(__m1, __m2); -} -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_si64(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddq((__v1di)__m1, (__v1di)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddsb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddsb(__m64 __m1, __m64 __m2) { - return _mm_adds_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddsw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddsw(__m64 __m1, __m64 __m2) { - return _mm_adds_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_pu8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddusb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddusb(__m64 __m1, __m64 __m2) { - return _mm_adds_pu8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_pu16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_paddusw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_paddusw(__m64 __m1, __m64 __m2) { - return _mm_adds_pu16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubb(__m64 __m1, __m64 __m2) { - return _mm_sub_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubw(__m64 __m1, __m64 __m2) { - return _mm_sub_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubd((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubd(__m64 __m1, __m64 __m2) { - return _mm_sub_pi32(__m1, __m2); -} -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_si64(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubq((__v1di)__m1, (__v1di)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubsb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubsb(__m64 __m1, __m64 __m2) { - return _mm_subs_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubsw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubsw(__m64 __m1, __m64 __m2) { - return _mm_subs_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_pu8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubusb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubusb(__m64 __m1, __m64 __m2) { - return _mm_subs_pu8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_pu16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_psubusw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psubusw(__m64 __m1, __m64 __m2) { - return _mm_subs_pu16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_madd_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pmaddwd((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmaddwd(__m64 __m1, __m64 __m2) { - return _mm_madd_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhi_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pmulhw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmulhw(__m64 __m1, __m64 __m2) { - return _mm_mulhi_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mullo_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pmullw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmullw(__m64 __m1, __m64 __m2) { - return _mm_mullo_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_pi16(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psllw((__v4hi)__m, (__v4hi)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psllw(__m64 __m, __m64 __count) { - return _mm_sll_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_pi16(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psllwi((__v4hi)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psllwi(__m64 __m, int __count) { - return _mm_slli_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_pi32(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_pslld((__v2si)__m, (__v2si)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pslld(__m64 __m, __m64 __count) { - return _mm_sll_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_pi32(__m64 __m, int __count) { - return (__m64)__builtin_ia32_pslldi((__v2si)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pslldi(__m64 __m, int __count) { - return _mm_slli_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_si64(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psllq((__v1di)__m, (__v1di)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psllq(__m64 __m, __m64 __count) { - return _mm_sll_si64(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_si64(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psllqi((__v1di)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psllqi(__m64 __m, int __count) { - return _mm_slli_si64(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sra_pi16(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psraw((__v4hi)__m, (__v4hi)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psraw(__m64 __m, __m64 __count) { - return _mm_sra_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srai_pi16(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psrawi((__v4hi)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrawi(__m64 __m, int __count) { - return _mm_srai_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sra_pi32(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psrad((__v2si)__m, (__v2si)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrad(__m64 __m, __m64 __count) { - return _mm_sra_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srai_pi32(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psradi((__v2si)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psradi(__m64 __m, int __count) { - return _mm_srai_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_pi16(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psrlw((__v4hi)__m, (__v4hi)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrlw(__m64 __m, __m64 __count) { - return _mm_srl_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_pi16(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psrlwi((__v4hi)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrlwi(__m64 __m, int __count) { - return _mm_srli_pi16(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_pi32(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psrld((__v2si)__m, (__v2si)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrld(__m64 __m, __m64 __count) { - return _mm_srl_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_pi32(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psrldi((__v2si)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrldi(__m64 __m, int __count) { - return _mm_srli_pi32(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_si64(__m64 __m, __m64 __count) { - return (__m64)__builtin_ia32_psrlq((__v1di)__m, (__v1di)__count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrlq(__m64 __m, __m64 __count) { - return _mm_srl_si64(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_si64(__m64 __m, int __count) { - return (__m64)__builtin_ia32_psrlqi((__v1di)__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psrlqi(__m64 __m, int __count) { - return _mm_srli_si64(__m, __count); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_and_si64(__m64 __m1, __m64 __m2) { - return __builtin_ia32_pand(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pand(__m64 __m1, __m64 __m2) { - return _mm_and_si64(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_andnot_si64(__m64 __m1, __m64 __m2) { - return __builtin_ia32_pandn(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pandn(__m64 __m1, __m64 __m2) { - return _mm_andnot_si64(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_si64(__m64 __m1, __m64 __m2) { - return __builtin_ia32_por(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_por(__m64 __m1, __m64 __m2) { - return _mm_or_si64(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_si64(__m64 __m1, __m64 __m2) { - return __builtin_ia32_pxor(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pxor(__m64 __m1, __m64 __m2) { - return _mm_xor_si64(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpeqb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpeqb(__m64 __m1, __m64 __m2) { - return _mm_cmpeq_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_pi8(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpgtb((__v8qi)__m1, (__v8qi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpgtb(__m64 __m1, __m64 __m2) { - return _mm_cmpgt_pi8(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpeqw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpeqw(__m64 __m1, __m64 __m2) { - return _mm_cmpeq_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_pi16(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpgtw((__v4hi)__m1, (__v4hi)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpgtw(__m64 __m1, __m64 __m2) { - return _mm_cmpgt_pi16(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpeqd((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpeqd(__m64 __m1, __m64 __m2) { - return _mm_cmpeq_pi32(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_pi32(__m64 __m1, __m64 __m2) { - return (__m64)__builtin_ia32_pcmpgtd((__v2si)__m1, (__v2si)__m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pcmpgtd(__m64 __m1, __m64 __m2) { - return _mm_cmpgt_pi32(__m1, __m2); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setzero_si64(void) { - return (__m64)0LL; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pi32(int __i1, int __i0) { - return (__m64)__builtin_ia32_vec_init_v2si(__i0, __i1); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pi16(short __w3, short __w2, short __w1, short __w0) { - return (__m64)__builtin_ia32_vec_init_v4hi(__w0, __w1, __w2, __w3); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pi8(char __b7, char __b6, char __b5, char __b4, char __b3, - char __b2, char __b1, char __b0) { - return (__m64)__builtin_ia32_vec_init_v8qi(__b0, __b1, __b2, __b3, __b4, __b5, - __b6, __b7); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_pi32(int __i0, int __i1) { - return _mm_set_pi32(__i1, __i0); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_pi16(short __w0, short __w1, short __w2, short __w3) { - return _mm_set_pi16(__w3, __w2, __w1, __w0); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_pi8(char __b0, char __b1, char __b2, char __b3, char __b4, - char __b5, char __b6, char __b7) { - return _mm_set_pi8(__b7, __b6, __b5, __b4, __b3, __b2, __b1, __b0); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_pi32(int __i) { - return _mm_set_pi32(__i, __i); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_pi16(short __w) { - return _mm_set_pi16(__w, __w, __w, __w); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_pi8(char __b) { - return _mm_set_pi8(__b, __b, __b, __b, __b, __b, __b, __b); -} - -extern int posix_memalign(void **, size_t, size_t); - -static __inline void *_mm_malloc(size_t __size, size_t __alignment) { - void *__ptr; - if (__alignment == 1) - return malloc(__size); - if (__alignment == 2 || (sizeof(void *) == 8 && __alignment == 4)) - __alignment = sizeof(void *); - if (posix_memalign(&__ptr, __alignment, __size) == 0) - return __ptr; - else - return ((void *)0); -} - -static __inline void _mm_free(void *__ptr) { free(__ptr); } - -enum _mm_hint { - - _MM_HINT_ET0 = 7, - _MM_HINT_ET1 = 6, - _MM_HINT_T0 = 3, - _MM_HINT_T1 = 2, - _MM_HINT_T2 = 1, - _MM_HINT_NTA = 0 -}; - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_prefetch(const void *__P, enum _mm_hint __I) { - __builtin_prefetch(__P, (__I & 0x4) >> 2, __I & 0x3); -} -typedef float __m128 __attribute__((__vector_size__(16), __may_alias__)); - -typedef float __m128_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); - -typedef float __v4sf __attribute__((__vector_size__(16))); -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_undefined_ps(void) { - __m128 __Y = __Y; - return __Y; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setzero_ps(void) { - return __extension__(__m128){0.0f, 0.0f, 0.0f, 0.0f}; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_addss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_subss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_mulss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_divss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_ss(__m128 __A) { - return (__m128)__builtin_ia32_sqrtss((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp_ss(__m128 __A) { - return (__m128)__builtin_ia32_rcpss((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt_ss(__m128 __A) { - return (__m128)__builtin_ia32_rsqrtss((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_ps(__m128 __A, __m128 __B) { - return (__m128)((__v4sf)__A + (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_ps(__m128 __A, __m128 __B) { - return (__m128)((__v4sf)__A - (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_ps(__m128 __A, __m128 __B) { - return (__m128)((__v4sf)__A * (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_ps(__m128 __A, __m128 __B) { - return (__m128)((__v4sf)__A / (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_ps(__m128 __A) { - return (__m128)__builtin_ia32_sqrtps((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp_ps(__m128 __A) { - return (__m128)__builtin_ia32_rcpps((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt_ps(__m128 __A) { - return (__m128)__builtin_ia32_rsqrtps((__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_and_ps(__m128 __A, __m128 __B) { - return __builtin_ia32_andps(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_andnot_ps(__m128 __A, __m128 __B) { - return __builtin_ia32_andnps(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_ps(__m128 __A, __m128 __B) { - return __builtin_ia32_orps(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_ps(__m128 __A, __m128 __B) { - return __builtin_ia32_xorps(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpeqss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpltss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpless((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movss( - (__v4sf)__A, (__v4sf)__builtin_ia32_cmpltss((__v4sf)__B, (__v4sf)__A)); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movss( - (__v4sf)__A, (__v4sf)__builtin_ia32_cmpless((__v4sf)__B, (__v4sf)__A)); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpneqss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnlt_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpnltss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnle_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpnless((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpngt_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movss( - (__v4sf)__A, (__v4sf)__builtin_ia32_cmpnltss((__v4sf)__B, (__v4sf)__A)); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnge_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movss( - (__v4sf)__A, (__v4sf)__builtin_ia32_cmpnless((__v4sf)__B, (__v4sf)__A)); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpord_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpordss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpunord_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpunordss((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpeqps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpltps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpleps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpgtps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpgeps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpneqps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnlt_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpnltps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnle_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpnleps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpngt_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpngtps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnge_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpngeps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpord_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpordps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpunord_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_cmpunordps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comieq_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comieq((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comilt_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comilt((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comile_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comile((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comigt_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comigt((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comige_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comige((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comineq_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_comineq((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomieq_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomieq((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomilt_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomilt((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomile_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomile((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomigt_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomigt((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomige_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomige((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomineq_ss(__m128 __A, __m128 __B) { - return __builtin_ia32_ucomineq((__v4sf)__A, (__v4sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_si32(__m128 __A) { - return __builtin_ia32_cvtss2si((__v4sf)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_ss2si(__m128 __A) { - return _mm_cvtss_si32(__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_si64(__m128 __A) { - return __builtin_ia32_cvtss2si64((__v4sf)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_si64x(__m128 __A) { - return __builtin_ia32_cvtss2si64((__v4sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_pi32(__m128 __A) { - return (__m64)__builtin_ia32_cvtps2pi((__v4sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_ps2pi(__m128 __A) { - return _mm_cvtps_pi32(__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_si32(__m128 __A) { - return __builtin_ia32_cvttss2si((__v4sf)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_ss2si(__m128 __A) { - return _mm_cvttss_si32(__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_si64(__m128 __A) { - return __builtin_ia32_cvttss2si64((__v4sf)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_si64x(__m128 __A) { - return __builtin_ia32_cvttss2si64((__v4sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttps_pi32(__m128 __A) { - return (__m64)__builtin_ia32_cvttps2pi((__v4sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_ps2pi(__m128 __A) { - return _mm_cvttps_pi32(__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi32_ss(__m128 __A, int __B) { - return (__m128)__builtin_ia32_cvtsi2ss((__v4sf)__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_si2ss(__m128 __A, int __B) { - return _mm_cvtsi32_ss(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_ss(__m128 __A, long long __B) { - return (__m128)__builtin_ia32_cvtsi642ss((__v4sf)__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64x_ss(__m128 __A, long long __B) { - return (__m128)__builtin_ia32_cvtsi642ss((__v4sf)__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpi32_ps(__m128 __A, __m64 __B) { - return (__m128)__builtin_ia32_cvtpi2ps((__v4sf)__A, (__v2si)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_pi2ps(__m128 __A, __m64 __B) { - return _mm_cvtpi32_ps(__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpi16_ps(__m64 __A) { - __v4hi __sign; - __v2si __hisi, __losi; - __v4sf __zero, __ra, __rb; - - __sign = __builtin_ia32_pcmpgtw((__v4hi)0LL, (__v4hi)__A); - - __losi = (__v2si)__builtin_ia32_punpcklwd((__v4hi)__A, __sign); - __hisi = (__v2si)__builtin_ia32_punpckhwd((__v4hi)__A, __sign); - - __zero = (__v4sf)_mm_setzero_ps(); - __ra = __builtin_ia32_cvtpi2ps(__zero, __losi); - __rb = __builtin_ia32_cvtpi2ps(__ra, __hisi); - - return (__m128)__builtin_ia32_movlhps(__ra, __rb); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpu16_ps(__m64 __A) { - __v2si __hisi, __losi; - __v4sf __zero, __ra, __rb; - - __losi = (__v2si)__builtin_ia32_punpcklwd((__v4hi)__A, (__v4hi)0LL); - __hisi = (__v2si)__builtin_ia32_punpckhwd((__v4hi)__A, (__v4hi)0LL); - - __zero = (__v4sf)_mm_setzero_ps(); - __ra = __builtin_ia32_cvtpi2ps(__zero, __losi); - __rb = __builtin_ia32_cvtpi2ps(__ra, __hisi); - - return (__m128)__builtin_ia32_movlhps(__ra, __rb); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpi8_ps(__m64 __A) { - __v8qi __sign; - - __sign = __builtin_ia32_pcmpgtb((__v8qi)0LL, (__v8qi)__A); - - __A = (__m64)__builtin_ia32_punpcklbw((__v8qi)__A, __sign); - - return _mm_cvtpi16_ps(__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpu8_ps(__m64 __A) { - __A = (__m64)__builtin_ia32_punpcklbw((__v8qi)__A, (__v8qi)0LL); - return _mm_cvtpu16_ps(__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpi32x2_ps(__m64 __A, __m64 __B) { - __v4sf __zero = (__v4sf)_mm_setzero_ps(); - __v4sf __sfa = __builtin_ia32_cvtpi2ps(__zero, (__v2si)__A); - __v4sf __sfb = __builtin_ia32_cvtpi2ps(__sfa, (__v2si)__B); - return (__m128)__builtin_ia32_movlhps(__sfa, __sfb); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_pi16(__m128 __A) { - __v4sf __hisf = (__v4sf)__A; - __v4sf __losf = __builtin_ia32_movhlps(__hisf, __hisf); - __v2si __hisi = __builtin_ia32_cvtps2pi(__hisf); - __v2si __losi = __builtin_ia32_cvtps2pi(__losf); - return (__m64)__builtin_ia32_packssdw(__hisi, __losi); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_pi8(__m128 __A) { - __v4hi __tmp = (__v4hi)_mm_cvtps_pi16(__A); - return (__m64)__builtin_ia32_packsswb(__tmp, (__v4hi)0LL); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_ps(__m128 __A, __m128 __B, int const __mask) { - return (__m128)__builtin_ia32_shufps((__v4sf)__A, (__v4sf)__B, __mask); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpckhps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpcklps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadh_pi(__m128 __A, __m64 const *__P) { - return (__m128)__builtin_ia32_loadhps((__v4sf)__A, (const __v2sf *)__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeh_pi(__m64 *__P, __m128 __A) { - __builtin_ia32_storehps((__v2sf *)__P, (__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movehl_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movhlps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movelh_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movlhps((__v4sf)__A, (__v4sf)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadl_pi(__m128 __A, __m64 const *__P) { - return (__m128)__builtin_ia32_loadlps((__v4sf)__A, (const __v2sf *)__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storel_pi(__m64 *__P, __m128 __A) { - __builtin_ia32_storelps((__v2sf *)__P, (__v4sf)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movemask_ps(__m128 __A) { - return __builtin_ia32_movmskps((__v4sf)__A); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getcsr(void) { - return __builtin_ia32_stmxcsr(); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_GET_EXCEPTION_STATE(void) { - return _mm_getcsr() & 0x003f; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_GET_EXCEPTION_MASK(void) { - return _mm_getcsr() & 0x1f80; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_GET_ROUNDING_MODE(void) { - return _mm_getcsr() & 0x6000; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_GET_FLUSH_ZERO_MODE(void) { - return _mm_getcsr() & 0x8000; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setcsr(unsigned int __I) { - __builtin_ia32_ldmxcsr(__I); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_SET_EXCEPTION_STATE(unsigned int __mask) { - _mm_setcsr((_mm_getcsr() & ~0x003f) | __mask); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_SET_EXCEPTION_MASK(unsigned int __mask) { - _mm_setcsr((_mm_getcsr() & ~0x1f80) | __mask); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_SET_ROUNDING_MODE(unsigned int __mode) { - _mm_setcsr((_mm_getcsr() & ~0x6000) | __mode); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _MM_SET_FLUSH_ZERO_MODE(unsigned int __mode) { - _mm_setcsr((_mm_getcsr() & ~0x8000) | __mode); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_ss(float __F) { - return __extension__(__m128)(__v4sf){__F, 0.0f, 0.0f, 0.0f}; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_ps(float __F) { - return __extension__(__m128)(__v4sf){__F, __F, __F, __F}; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_ps1(float __F) { - return _mm_set1_ps(__F); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_ss(float const *__P) { - return _mm_set_ss(*__P); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load1_ps(float const *__P) { - return _mm_set1_ps(*__P); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_ps1(float const *__P) { - return _mm_load1_ps(__P); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_ps(float const *__P) { - return *(__m128 *)__P; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_ps(float const *__P) { - return *(__m128_u *)__P; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadr_ps(float const *__P) { - __v4sf __tmp = *(__v4sf *)__P; - return (__m128)__builtin_ia32_shufps( - __tmp, __tmp, (((0) << 6) | ((1) << 4) | ((2) << 2) | (3))); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_set_ps(const float __Z, const float __Y, const float __X, const float __W) { - return __extension__(__m128)(__v4sf){__W, __X, __Y, __Z}; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_ps(float __Z, float __Y, float __X, float __W) { - return __extension__(__m128)(__v4sf){__Z, __Y, __X, __W}; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_ss(float *__P, __m128 __A) { - *__P = ((__v4sf)__A)[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_f32(__m128 __A) { - return ((__v4sf)__A)[0]; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_ps(float *__P, __m128 __A) { - *(__m128 *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_ps(float *__P, __m128 __A) { - *(__m128_u *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store1_ps(float *__P, __m128 __A) { - __v4sf __va = (__v4sf)__A; - __v4sf __tmp = __builtin_ia32_shufps( - __va, __va, (((0) << 6) | ((0) << 4) | ((0) << 2) | (0))); - _mm_storeu_ps(__P, __tmp); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_ps1(float *__P, __m128 __A) { - _mm_store1_ps(__P, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storer_ps(float *__P, __m128 __A) { - __v4sf __va = (__v4sf)__A; - __v4sf __tmp = __builtin_ia32_shufps( - __va, __va, (((0) << 6) | ((1) << 4) | ((2) << 2) | (3))); - _mm_store_ps(__P, __tmp); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_move_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_shuffle( - (__v4sf)__A, (__v4sf)__B, - __extension__(__attribute__((__vector_size__(16))) int){4, 1, 2, 3}); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_pi16(__m64 const __A, int const __N) { - return (unsigned short)__builtin_ia32_vec_ext_v4hi((__v4hi)__A, __N); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pextrw(__m64 const __A, int const __N) { - return _mm_extract_pi16(__A, __N); -} -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_pi16(__m64 const __A, int const __D, int const __N) { - return (__m64)__builtin_ia32_vec_set_v4hi((__v4hi)__A, __D, __N); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pinsrw(__m64 const __A, int const __D, int const __N) { - return _mm_insert_pi16(__A, __D, __N); -} -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_pi16(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pmaxsw((__v4hi)__A, (__v4hi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmaxsw(__m64 __A, __m64 __B) { - return _mm_max_pi16(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_pu8(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pmaxub((__v8qi)__A, (__v8qi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmaxub(__m64 __A, __m64 __B) { - return _mm_max_pu8(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_pi16(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pminsw((__v4hi)__A, (__v4hi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pminsw(__m64 __A, __m64 __B) { - return _mm_min_pi16(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_pu8(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pminub((__v8qi)__A, (__v8qi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pminub(__m64 __A, __m64 __B) { - return _mm_min_pu8(__A, __B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movemask_pi8(__m64 __A) { - return __builtin_ia32_pmovmskb((__v8qi)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmovmskb(__m64 __A) { - return _mm_movemask_pi8(__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhi_pu16(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pmulhuw((__v4hi)__A, (__v4hi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmulhuw(__m64 __A, __m64 __B) { - return _mm_mulhi_pu16(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_pi16(__m64 __A, int const __N) { - return (__m64)__builtin_ia32_pshufw((__v4hi)__A, __N); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pshufw(__m64 __A, int const __N) { - return _mm_shuffle_pi16(__A, __N); -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskmove_si64(__m64 __A, __m64 __N, char *__P) { - - typedef long long __v2di __attribute__((__vector_size__(16))); - typedef char __v16qi __attribute__((__vector_size__(16))); - - __v2di __A128 = __extension__(__v2di){((__v1di)__A)[0], 0}; - __v2di __N128 = __extension__(__v2di){((__v1di)__N)[0], 0}; - - long unsigned int offset = ((long unsigned int)__P) & 0xf; - if (offset) { - - if (offset > 8) - offset = 8; - __P = (char *)(((long unsigned int)__P) - offset); - - switch (offset) { - case 1: - __A128 = __builtin_ia32_pslldqi128(__A128, 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 8); - break; - case 2: - __A128 = __builtin_ia32_pslldqi128(__A128, 2 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 2 * 8); - break; - case 3: - __A128 = __builtin_ia32_pslldqi128(__A128, 3 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 3 * 8); - break; - case 4: - __A128 = __builtin_ia32_pslldqi128(__A128, 4 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 4 * 8); - break; - case 5: - __A128 = __builtin_ia32_pslldqi128(__A128, 5 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 5 * 8); - break; - case 6: - __A128 = __builtin_ia32_pslldqi128(__A128, 6 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 6 * 8); - break; - case 7: - __A128 = __builtin_ia32_pslldqi128(__A128, 7 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 7 * 8); - break; - case 8: - __A128 = __builtin_ia32_pslldqi128(__A128, 8 * 8); - __N128 = __builtin_ia32_pslldqi128(__N128, 8 * 8); - break; - default: - break; - } - } - __builtin_ia32_maskmovdqu((__v16qi)__A128, (__v16qi)__N128, __P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_maskmovq(__m64 __A, __m64 __N, char *__P) { - _mm_maskmove_si64(__A, __N, __P); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_avg_pu8(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pavgb((__v8qi)__A, (__v8qi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pavgb(__m64 __A, __m64 __B) { - return _mm_avg_pu8(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_avg_pu16(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pavgw((__v4hi)__A, (__v4hi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pavgw(__m64 __A, __m64 __B) { - return _mm_avg_pu16(__A, __B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sad_pu8(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_psadbw((__v8qi)__A, (__v8qi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_psadbw(__m64 __A, __m64 __B) { - return _mm_sad_pu8(__A, __B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_pi(__m64 *__P, __m64 __A) { - __builtin_ia32_movntq((unsigned long long *)__P, (unsigned long long)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_ps(float *__P, __m128 __A) { - __builtin_ia32_movntps(__P, (__v4sf)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sfence(void) { - __builtin_ia32_sfence(); -} -typedef double __v2df __attribute__((__vector_size__(16))); -typedef long long __v2di __attribute__((__vector_size__(16))); -typedef unsigned long long __v2du __attribute__((__vector_size__(16))); -typedef int __v4si __attribute__((__vector_size__(16))); -typedef unsigned int __v4su __attribute__((__vector_size__(16))); -typedef short __v8hi __attribute__((__vector_size__(16))); -typedef unsigned short __v8hu __attribute__((__vector_size__(16))); -typedef char __v16qi __attribute__((__vector_size__(16))); -typedef signed char __v16qs __attribute__((__vector_size__(16))); -typedef unsigned char __v16qu __attribute__((__vector_size__(16))); - -typedef long long __m128i __attribute__((__vector_size__(16), __may_alias__)); -typedef double __m128d __attribute__((__vector_size__(16), __may_alias__)); - -typedef long long __m128i_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); -typedef double __m128d_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_sd(double __F) { - return __extension__(__m128d){__F, 0.0}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_pd(double __F) { - return __extension__(__m128d){__F, __F}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pd1(double __F) { - return _mm_set1_pd(__F); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_pd(double __W, double __X) { - return __extension__(__m128d){__X, __W}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_pd(double __W, double __X) { - return __extension__(__m128d){__W, __X}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_undefined_pd(void) { - __m128d __Y = __Y; - return __Y; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setzero_pd(void) { - return __extension__(__m128d){0.0, 0.0}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_move_sd(__m128d __A, __m128d __B) { - return __extension__(__m128d) - __builtin_shuffle((__v2df)__A, (__v2df)__B, (__v2di){2, 1}); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_pd(double const *__P) { - return *(__m128d *)__P; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_pd(double const *__P) { - return *(__m128d_u *)__P; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load1_pd(double const *__P) { - return _mm_set1_pd(*__P); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_sd(double const *__P) { - return _mm_set_sd(*__P); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_pd1(double const *__P) { - return _mm_load1_pd(__P); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadr_pd(double const *__P) { - __m128d __tmp = _mm_load_pd(__P); - return __builtin_ia32_shufpd(__tmp, __tmp, (((0) << 1) | (1))); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_pd(double *__P, __m128d __A) { - *(__m128d *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_pd(double *__P, __m128d __A) { - *(__m128d_u *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_sd(double *__P, __m128d __A) { - *__P = ((__v2df)__A)[0]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_f64(__m128d __A) { - return ((__v2df)__A)[0]; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storel_pd(double *__P, __m128d __A) { - _mm_store_sd(__P, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeh_pd(double *__P, __m128d __A) { - *__P = ((__v2df)__A)[1]; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store1_pd(double *__P, __m128d __A) { - _mm_store_pd(__P, __builtin_ia32_shufpd(__A, __A, (((0) << 1) | (0)))); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_pd1(double *__P, __m128d __A) { - _mm_store1_pd(__P, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storer_pd(double *__P, __m128d __A) { - _mm_store_pd(__P, __builtin_ia32_shufpd(__A, __A, (((0) << 1) | (1)))); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi128_si32(__m128i __A) { - return __builtin_ia32_vec_ext_v4si((__v4si)__A, 0); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi128_si64(__m128i __A) { - return ((__v2di)__A)[0]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi128_si64x(__m128i __A) { - return ((__v2di)__A)[0]; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_pd(__m128d __A, __m128d __B) { - return (__m128d)((__v2df)__A + (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_addsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_pd(__m128d __A, __m128d __B) { - return (__m128d)((__v2df)__A - (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_subsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_pd(__m128d __A, __m128d __B) { - return (__m128d)((__v2df)__A * (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_mulsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_pd(__m128d __A, __m128d __B) { - return (__m128d)((__v2df)__A / (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_divsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_pd(__m128d __A) { - return (__m128d)__builtin_ia32_sqrtpd((__v2df)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_sd(__m128d __A, __m128d __B) { - __v2df __tmp = __builtin_ia32_movsd((__v2df)__A, (__v2df)__B); - return (__m128d)__builtin_ia32_sqrtsd((__v2df)__tmp); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_and_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_andnot_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andnpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_orpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_xorpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpeqpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpltpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmplepd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpgtpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpgepd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpneqpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnlt_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpnltpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnle_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpnlepd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpngt_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpngtpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnge_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpngepd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpord_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpordpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpunord_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpunordpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpeqsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpltsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmplesd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movsd( - (__v2df)__A, (__v2df)__builtin_ia32_cmpltsd((__v2df)__B, (__v2df)__A)); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movsd( - (__v2df)__A, (__v2df)__builtin_ia32_cmplesd((__v2df)__B, (__v2df)__A)); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpneqsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnlt_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpnltsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnle_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpnlesd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpngt_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movsd( - (__v2df)__A, (__v2df)__builtin_ia32_cmpnltsd((__v2df)__B, (__v2df)__A)); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpnge_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movsd( - (__v2df)__A, (__v2df)__builtin_ia32_cmpnlesd((__v2df)__B, (__v2df)__A)); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpord_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpordsd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpunord_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_cmpunordsd((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comieq_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdeq((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comilt_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdlt((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comile_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdle((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comigt_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdgt((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comige_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdge((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comineq_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_comisdneq((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomieq_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdeq((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomilt_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdlt((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomile_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdle((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomigt_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdgt((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomige_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdge((__v2df)__A, (__v2df)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ucomineq_sd(__m128d __A, __m128d __B) { - return __builtin_ia32_ucomisdneq((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_epi64x(long long __q1, long long __q0) { - return __extension__(__m128i)(__v2di){__q0, __q1}; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_epi64(__m64 __q1, __m64 __q0) { - return _mm_set_epi64x((long long)__q1, (long long)__q0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_epi32(int __q3, int __q2, int __q1, int __q0) { - return __extension__(__m128i)(__v4si){__q0, __q1, __q2, __q3}; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_epi16(short __q7, short __q6, short __q5, short __q4, short __q3, - short __q2, short __q1, short __q0) { - return __extension__(__m128i)(__v8hi){__q0, __q1, __q2, __q3, - __q4, __q5, __q6, __q7}; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set_epi8(char __q15, char __q14, char __q13, char __q12, char __q11, - char __q10, char __q09, char __q08, char __q07, char __q06, - char __q05, char __q04, char __q03, char __q02, char __q01, - char __q00) { - return __extension__(__m128i)(__v16qi){ - __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, - __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15}; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_epi64x(long long __A) { - return _mm_set_epi64x(__A, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_epi64(__m64 __A) { - return _mm_set_epi64(__A, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_epi32(int __A) { - return _mm_set_epi32(__A, __A, __A, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_epi16(short __A) { - return _mm_set_epi16(__A, __A, __A, __A, __A, __A, __A, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_set1_epi8(char __A) { - return _mm_set_epi8(__A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_epi64(__m64 __q0, __m64 __q1) { - return _mm_set_epi64(__q1, __q0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_epi32(int __q0, int __q1, int __q2, int __q3) { - return _mm_set_epi32(__q3, __q2, __q1, __q0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_epi16(short __q0, short __q1, short __q2, short __q3, short __q4, - short __q5, short __q6, short __q7) { - return _mm_set_epi16(__q7, __q6, __q5, __q4, __q3, __q2, __q1, __q0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setr_epi8(char __q00, char __q01, char __q02, char __q03, char __q04, - char __q05, char __q06, char __q07, char __q08, char __q09, - char __q10, char __q11, char __q12, char __q13, char __q14, - char __q15) { - return _mm_set_epi8(__q15, __q14, __q13, __q12, __q11, __q10, __q09, __q08, - __q07, __q06, __q05, __q04, __q03, __q02, __q01, __q00); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_si128(__m128i const *__P) { - return *__P; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_si128(__m128i_u const *__P) { - return *__P; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadl_epi64(__m128i_u const *__P) { - return _mm_set_epi64((__m64)0LL, *(__m64_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_si64(void const *__P) { - return _mm_loadl_epi64((__m128i_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_si32(void const *__P) { - return _mm_set_epi32(0, 0, 0, (*(__m32_u *)__P)[0]); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_si16(void const *__P) { - return _mm_set_epi16(0, 0, 0, 0, 0, 0, 0, (*(__m16_u *)__P)[0]); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_si128(__m128i *__P, __m128i __B) { - *__P = __B; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_si128(__m128i_u *__P, __m128i __B) { - *__P = __B; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storel_epi64(__m128i_u *__P, __m128i __B) { - *(__m64_u *)__P = (__m64)((__v2di)__B)[0]; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_si64(void *__P, __m128i __B) { - _mm_storel_epi64((__m128i_u *)__P, __B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_si32(void *__P, __m128i __B) { - *(__m32_u *)__P = (__m32)((__v4si)__B)[0]; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_si16(void *__P, __m128i __B) { - *(__m16_u *)__P = (__m16)((__v8hi)__B)[0]; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movepi64_pi64(__m128i __B) { - return (__m64)((__v2di)__B)[0]; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movpi64_epi64(__m64 __A) { - return _mm_set_epi64((__m64)0LL, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_move_epi64(__m128i __A) { - return (__m128i)__builtin_ia32_movq128((__v2di)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_undefined_si128(void) { - __m128i __Y = __Y; - return __Y; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_setzero_si128(void) { - return __extension__(__m128i)(__v4si){0, 0, 0, 0}; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi32_pd(__m128i __A) { - return (__m128d)__builtin_ia32_cvtdq2pd((__v4si)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi32_ps(__m128i __A) { - return (__m128)__builtin_ia32_cvtdq2ps((__v4si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_epi32(__m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq((__v2df)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_pi32(__m128d __A) { - return (__m64)__builtin_ia32_cvtpd2pi((__v2df)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_ps(__m128d __A) { - return (__m128)__builtin_ia32_cvtpd2ps((__v2df)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttpd_epi32(__m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq((__v2df)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttpd_pi32(__m128d __A) { - return (__m64)__builtin_ia32_cvttpd2pi((__v2df)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpi32_pd(__m64 __A) { - return (__m128d)__builtin_ia32_cvtpi2pd((__v2si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_epi32(__m128 __A) { - return (__m128i)__builtin_ia32_cvtps2dq((__v4sf)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttps_epi32(__m128 __A) { - return (__m128i)__builtin_ia32_cvttps2dq((__v4sf)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_pd(__m128 __A) { - return (__m128d)__builtin_ia32_cvtps2pd((__v4sf)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_si32(__m128d __A) { - return __builtin_ia32_cvtsd2si((__v2df)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_si64(__m128d __A) { - return __builtin_ia32_cvtsd2si64((__v2df)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_si64x(__m128d __A) { - return __builtin_ia32_cvtsd2si64((__v2df)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_si32(__m128d __A) { - return __builtin_ia32_cvttsd2si((__v2df)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_si64(__m128d __A) { - return __builtin_ia32_cvttsd2si64((__v2df)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_si64x(__m128d __A) { - return __builtin_ia32_cvttsd2si64((__v2df)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_ss(__m128 __A, __m128d __B) { - return (__m128)__builtin_ia32_cvtsd2ss((__v4sf)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi32_sd(__m128d __A, int __B) { - return (__m128d)__builtin_ia32_cvtsi2sd((__v2df)__A, __B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_sd(__m128d __A, long long __B) { - return (__m128d)__builtin_ia32_cvtsi642sd((__v2df)__A, __B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64x_sd(__m128d __A, long long __B) { - return (__m128d)__builtin_ia32_cvtsi642sd((__v2df)__A, __B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_sd(__m128d __A, __m128 __B) { - return (__m128d)__builtin_ia32_cvtss2sd((__v2df)__A, (__v4sf)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_pd(__m128d __A, __m128d __B, const int __mask) { - return (__m128d)__builtin_ia32_shufpd((__v2df)__A, (__v2df)__B, __mask); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpckhpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpcklpd((__v2df)__A, (__v2df)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadh_pd(__m128d __A, double const *__B) { - return (__m128d)__builtin_ia32_loadhpd((__v2df)__A, __B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadl_pd(__m128d __A, double const *__B) { - return (__m128d)__builtin_ia32_loadlpd((__v2df)__A, __B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movemask_pd(__m128d __A) { - return __builtin_ia32_movmskpd((__v2df)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packs_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packsswb128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packs_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packssdw128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packus_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packuswb128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhbw128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhwd128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhdq128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpackhi_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhqdq128((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklbw128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklwd128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckldq128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_unpacklo_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklqdq128((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_epi8(__m128i __A, __m128i __B) { - return (__m128i)((__v16qu)__A + (__v16qu)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hu)__A + (__v8hu)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4su)__A + (__v4su)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_epi64(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A + (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsb128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusb128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_adds_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_epi8(__m128i __A, __m128i __B) { - return (__m128i)((__v16qu)__A - (__v16qu)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hu)__A - (__v8hu)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4su)__A - (__v4su)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_epi64(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A - (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsb128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusb128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_subs_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_madd_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaddwd128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhi_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mullo_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hu)__A * (__v8hu)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_su32(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pmuludq((__v2si)__A, (__v2si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmuludq128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_epi16(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllwi128((__v8hi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_epi32(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_pslldi128((__v4si)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_epi64(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllqi128((__v2di)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srai_epi16(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psrawi128((__v8hi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srai_epi32(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psradi128((__v4si)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_bsrli_si128(__m128i __A, const int __N) { - return (__m128i)__builtin_ia32_psrldqi128(__A, __N * 8); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_bslli_si128(__m128i __A, const int __N) { - return (__m128i)__builtin_ia32_pslldqi128(__A, __N * 8); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_si128(__m128i __A, const int __N) { - return (__m128i)__builtin_ia32_psrldqi128(__A, __N * 8); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_slli_si128(__m128i __A, const int __N) { - return (__m128i)__builtin_ia32_pslldqi128(__A, __N * 8); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_epi16(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psrlwi128((__v8hi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_epi32(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psrldi128((__v4si)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srli_epi64(__m128i __A, int __B) { - return (__m128i)__builtin_ia32_psrlqi128((__v2di)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pslld128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sll_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllq128((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sra_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sra_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrad128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrld128((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srl_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlq128((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_and_si128(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A & (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_andnot_si128(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandn128((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_si128(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A | (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_si128(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A ^ (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi8(__m128i __A, __m128i __B) { - return (__m128i)((__v16qi)__A == (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hi)__A == (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4si)__A == (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi8(__m128i __A, __m128i __B) { - return (__m128i)((__v16qs)__A < (__v16qs)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hi)__A < (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4si)__A < (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi8(__m128i __A, __m128i __B) { - return (__m128i)((__v16qs)__A > (__v16qs)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi16(__m128i __A, __m128i __B) { - return (__m128i)((__v8hi)__A > (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4si)__A > (__v4si)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_epi16(__m128i const __A, int const __N) { - return (unsigned short)__builtin_ia32_vec_ext_v8hi((__v8hi)__A, __N); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_epi16(__m128i const __A, int const __D, int const __N) { - return (__m128i)__builtin_ia32_vec_set_v8hi((__v8hi)__A, __D, __N); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxub128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminub128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movemask_epi8(__m128i __A) { - return __builtin_ia32_pmovmskb128((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhi_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhuw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shufflehi_epi16(__m128i __A, const int __mask) { - return (__m128i)__builtin_ia32_pshufhw((__v8hi)__A, __mask); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shufflelo_epi16(__m128i __A, const int __mask) { - return (__m128i)__builtin_ia32_pshuflw((__v8hi)__A, __mask); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_epi32(__m128i __A, const int __mask) { - return (__m128i)__builtin_ia32_pshufd((__v4si)__A, __mask); -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskmoveu_si128(__m128i __A, __m128i __B, char *__C) { - __builtin_ia32_maskmovdqu((__v16qi)__A, (__v16qi)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_avg_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgb128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_avg_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgw128((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sad_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psadbw128((__v16qi)__A, (__v16qi)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_si32(int *__A, int __B) { - __builtin_ia32_movnti(__A, __B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_si64(long long int *__A, long long int __B) { - __builtin_ia32_movnti64(__A, __B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_si128(__m128i *__A, __m128i __B) { - __builtin_ia32_movntdq((__v2di *)__A, (__v2di)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_pd(double *__A, __m128d __B) { - __builtin_ia32_movntpd(__A, (__v2df)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_clflush(void const *__A) { - __builtin_ia32_clflush(__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_lfence(void) { - __builtin_ia32_lfence(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mfence(void) { - __builtin_ia32_mfence(); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi32_si128(int __A) { - return _mm_set_epi32(0, 0, 0, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64_si128(long long __A) { - return _mm_set_epi64x(0, __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsi64x_si128(long long __A) { - return _mm_set_epi64x(0, __A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castpd_ps(__m128d __A) { - return (__m128)__A; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castpd_si128(__m128d __A) { - return (__m128i)__A; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castps_pd(__m128 __A) { - return (__m128d)__A; -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castps_si128(__m128 __A) { - return (__m128i)__A; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castsi128_ps(__m128i __A) { - return (__m128)__A; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_castsi128_pd(__m128i __A) { - return (__m128d)__A; -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_pause(void) { - __builtin_ia32_pause(); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_addsub_ps(__m128 __X, __m128 __Y) { - return (__m128)__builtin_ia32_addsubps((__v4sf)__X, (__v4sf)__Y); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_ps(__m128 __X, __m128 __Y) { - return (__m128)__builtin_ia32_haddps((__v4sf)__X, (__v4sf)__Y); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_ps(__m128 __X, __m128 __Y) { - return (__m128)__builtin_ia32_hsubps((__v4sf)__X, (__v4sf)__Y); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movehdup_ps(__m128 __X) { - return (__m128)__builtin_ia32_movshdup((__v4sf)__X); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_moveldup_ps(__m128 __X) { - return (__m128)__builtin_ia32_movsldup((__v4sf)__X); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_addsub_pd(__m128d __X, __m128d __Y) { - return (__m128d)__builtin_ia32_addsubpd((__v2df)__X, (__v2df)__Y); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_pd(__m128d __X, __m128d __Y) { - return (__m128d)__builtin_ia32_haddpd((__v2df)__X, (__v2df)__Y); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_pd(__m128d __X, __m128d __Y) { - return (__m128d)__builtin_ia32_hsubpd((__v2df)__X, (__v2df)__Y); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loaddup_pd(double const *__P) { - return _mm_load1_pd(__P); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movedup_pd(__m128d __X) { - return _mm_shuffle_pd(__X, __X, (((0) << 1) | (0))); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_lddqu_si128(__m128i const *__P) { - return (__m128i)__builtin_ia32_lddqu((char const *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phaddw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phaddd128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadds_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phaddsw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phaddw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadd_pi32(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phaddd((__v2si)__X, (__v2si)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hadds_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phaddsw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phsubw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phsubd128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsubs_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_phsubsw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phsubw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsub_pi32(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phsubd((__v2si)__X, (__v2si)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsubs_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_phsubsw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddubs_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaddubsw128((__v16qi)__X, (__v16qi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddubs_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_pmaddubsw((__v8qi)__X, (__v8qi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhrs_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmulhrsw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mulhrs_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_pmulhrsw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_epi8(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pshufb128((__v16qi)__X, (__v16qi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shuffle_pi8(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_pshufb((__v8qi)__X, (__v8qi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_epi8(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psignb128((__v16qi)__X, (__v16qi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_epi16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psignw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psignd128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_pi8(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_psignb((__v8qi)__X, (__v8qi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_pi16(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_psignw((__v4hi)__X, (__v4hi)__Y); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sign_pi32(__m64 __X, __m64 __Y) { - return (__m64)__builtin_ia32_psignd((__v2si)__X, (__v2si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_alignr_epi8(__m128i __X, __m128i __Y, const int __N) { - return (__m128i)__builtin_ia32_palignr128((__v2di)__X, (__v2di)__Y, __N * 8); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_alignr_pi8(__m64 __X, __m64 __Y, const int __N) { - return (__m64)__builtin_ia32_palignr((__v1di)__X, (__v1di)__Y, __N * 8); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_epi8(__m128i __X) { - return (__m128i)__builtin_ia32_pabsb128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_epi16(__m128i __X) { - return (__m128i)__builtin_ia32_pabsw128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pabsd128((__v4si)__X); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_pi8(__m64 __X) { - return (__m64)__builtin_ia32_pabsb((__v8qi)__X); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_pi16(__m64 __X) { - return (__m64)__builtin_ia32_pabsw((__v4hi)__X); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_pi32(__m64 __X) { - return (__m64)__builtin_ia32_pabsd((__v2si)__X); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testz_si128(__m128i __M, __m128i __V) { - return __builtin_ia32_ptestz128((__v2di)__M, (__v2di)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testc_si128(__m128i __M, __m128i __V) { - return __builtin_ia32_ptestc128((__v2di)__M, (__v2di)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testnzc_si128(__m128i __M, __m128i __V) { - return __builtin_ia32_ptestnzc128((__v2di)__M, (__v2di)__V); -} -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_round_pd(__m128d __V, const int __M) { - return (__m128d)__builtin_ia32_roundpd((__v2df)__V, __M); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_round_sd(__m128d __D, __m128d __V, const int __M) { - return (__m128d)__builtin_ia32_roundsd((__v2df)__D, (__v2df)__V, __M); -} -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_round_ps(__m128 __V, const int __M) { - return (__m128)__builtin_ia32_roundps((__v4sf)__V, __M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_round_ss(__m128 __D, __m128 __V, const int __M) { - return (__m128)__builtin_ia32_roundss((__v4sf)__D, (__v4sf)__V, __M); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blend_epi16(__m128i __X, __m128i __Y, const int __M) { - return (__m128i)__builtin_ia32_pblendw128((__v8hi)__X, (__v8hi)__Y, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blendv_epi8(__m128i __X, __m128i __Y, __m128i __M) { - return (__m128i)__builtin_ia32_pblendvb128((__v16qi)__X, (__v16qi)__Y, - (__v16qi)__M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blend_ps(__m128 __X, __m128 __Y, const int __M) { - return (__m128)__builtin_ia32_blendps((__v4sf)__X, (__v4sf)__Y, __M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blendv_ps(__m128 __X, __m128 __Y, __m128 __M) { - return (__m128)__builtin_ia32_blendvps((__v4sf)__X, (__v4sf)__Y, (__v4sf)__M); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blend_pd(__m128d __X, __m128d __Y, const int __M) { - return (__m128d)__builtin_ia32_blendpd((__v2df)__X, (__v2df)__Y, __M); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blendv_pd(__m128d __X, __m128d __Y, __m128d __M) { - return (__m128d)__builtin_ia32_blendvpd((__v2df)__X, (__v2df)__Y, - (__v2df)__M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dp_ps(__m128 __X, __m128 __Y, const int __M) { - return (__m128)__builtin_ia32_dpps((__v4sf)__X, (__v4sf)__Y, __M); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dp_pd(__m128d __X, __m128d __Y, const int __M) { - return (__m128d)__builtin_ia32_dppd((__v2df)__X, (__v2df)__Y, __M); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi64(__m128i __X, __m128i __Y) { - return (__m128i)((__v2di)__X == (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epi8(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pminsb128((__v16qi)__X, (__v16qi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epi8(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaxsb128((__v16qi)__X, (__v16qi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epu16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pminuw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epu16(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaxuw128((__v8hi)__X, (__v8hi)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pminsd128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaxsd128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epu32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pminud128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epu32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaxud128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mullo_epi32(__m128i __X, __m128i __Y) { - return (__m128i)((__v4su)__X * (__v4su)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmuldq128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_ps(__m128 __D, __m128 __S, const int __N) { - return (__m128)__builtin_ia32_insertps128((__v4sf)__D, (__v4sf)__S, __N); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_ps(__m128 __X, const int __N) { - union { - int i; - float f; - } __tmp; - __tmp.f = __builtin_ia32_vec_ext_v4sf((__v4sf)__X, __N); - return __tmp.i; -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_epi8(__m128i __D, int __S, const int __N) { - return (__m128i)__builtin_ia32_vec_set_v16qi((__v16qi)__D, __S, __N); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_epi32(__m128i __D, int __S, const int __N) { - return (__m128i)__builtin_ia32_vec_set_v4si((__v4si)__D, __S, __N); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_epi64(__m128i __D, long long __S, const int __N) { - return (__m128i)__builtin_ia32_vec_set_v2di((__v2di)__D, __S, __N); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_epi8(__m128i __X, const int __N) { - return (unsigned char)__builtin_ia32_vec_ext_v16qi((__v16qi)__X, __N); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_epi32(__m128i __X, const int __N) { - return __builtin_ia32_vec_ext_v4si((__v4si)__X, __N); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_epi64(__m128i __X, const int __N) { - return __builtin_ia32_vec_ext_v2di((__v2di)__X, __N); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_minpos_epu16(__m128i __X) { - return (__m128i)__builtin_ia32_phminposuw128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi8_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxbd128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi16_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxwd128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi8_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxbq128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi32_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxdq128((__v4si)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi16_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxwq128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi8_epi16(__m128i __X) { - return (__m128i)__builtin_ia32_pmovsxbw128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu8_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxbd128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu16_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxwd128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu8_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxbq128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu32_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxdq128((__v4si)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu16_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxwq128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu8_epi16(__m128i __X) { - return (__m128i)__builtin_ia32_pmovzxbw128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_packus_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_packusdw128((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mpsadbw_epu8(__m128i __X, __m128i __Y, const int __M) { - return (__m128i)__builtin_ia32_mpsadbw128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_load_si128(__m128i *__X) { - return (__m128i)__builtin_ia32_movntdqa((__v2di *)__X); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistrm(__m128i __X, __m128i __Y, const int __M) { - return (__m128i)__builtin_ia32_pcmpistrm128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistri(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistri128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestrm(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return (__m128i)__builtin_ia32_pcmpestrm128((__v16qi)__X, __LX, (__v16qi)__Y, - __LY, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestri(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestri128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistra(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistria128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistrc(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistric128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistro(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistrio128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistrs(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistris128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpistrz(__m128i __X, __m128i __Y, const int __M) { - return __builtin_ia32_pcmpistriz128((__v16qi)__X, (__v16qi)__Y, __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestra(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestria128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestrc(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestric128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestro(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestrio128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestrs(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestris128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpestrz(__m128i __X, int __LX, __m128i __Y, int __LY, const int __M) { - return __builtin_ia32_pcmpestriz128((__v16qi)__X, __LX, (__v16qi)__Y, __LY, - __M); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi64(__m128i __X, __m128i __Y) { - return (__m128i)((__v2di)__X > (__v2di)__Y); -} -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_crc32_u8(unsigned int __C, unsigned char __V) { - return __builtin_ia32_crc32qi(__C, __V); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_crc32_u16(unsigned int __C, unsigned short __V) { - return __builtin_ia32_crc32hi(__C, __V); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_crc32_u32(unsigned int __C, unsigned int __V) { - return __builtin_ia32_crc32si(__C, __V); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_crc32_u64(unsigned long long __C, unsigned long long __V) { - return __builtin_ia32_crc32di(__C, __V); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesdec_si128(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_aesdec128((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesdeclast_si128(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_aesdeclast128((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesenc_si128(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_aesenc128((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesenclast_si128(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_aesenclast128((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesimc_si128(__m128i __X) { - return (__m128i)__builtin_ia32_aesimc128((__v2di)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aeskeygenassist_si128(__m128i __X, const int __C) { - return (__m128i)__builtin_ia32_aeskeygenassist128((__v2di)__X, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_clmulepi64_si128(__m128i __X, __m128i __Y, const int __I) { - return (__m128i)__builtin_ia32_pclmulqdq128((__v2di)__X, (__v2di)__Y, __I); -} - -typedef double __v4df __attribute__((__vector_size__(32))); -typedef float __v8sf __attribute__((__vector_size__(32))); -typedef long long __v4di __attribute__((__vector_size__(32))); -typedef unsigned long long __v4du __attribute__((__vector_size__(32))); -typedef int __v8si __attribute__((__vector_size__(32))); -typedef unsigned int __v8su __attribute__((__vector_size__(32))); -typedef short __v16hi __attribute__((__vector_size__(32))); -typedef unsigned short __v16hu __attribute__((__vector_size__(32))); -typedef char __v32qi __attribute__((__vector_size__(32))); -typedef signed char __v32qs __attribute__((__vector_size__(32))); -typedef unsigned char __v32qu __attribute__((__vector_size__(32))); - -typedef float __m256 __attribute__((__vector_size__(32), __may_alias__)); -typedef long long __m256i __attribute__((__vector_size__(32), __may_alias__)); -typedef double __m256d __attribute__((__vector_size__(32), __may_alias__)); - -typedef float __m256_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -typedef long long __m256i_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -typedef double __m256d_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_pd(__m256d __A, __m256d __B) { - return (__m256d)((__v4df)__A + (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_ps(__m256 __A, __m256 __B) { - return (__m256)((__v8sf)__A + (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_addsub_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_addsubpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_addsub_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_addsubps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_and_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_and_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_andnot_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andnpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_andnot_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andnps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blend_pd(__m256d __X, __m256d __Y, const int __M) { - return (__m256d)__builtin_ia32_blendpd256((__v4df)__X, (__v4df)__Y, __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blend_ps(__m256 __X, __m256 __Y, const int __M) { - return (__m256)__builtin_ia32_blendps256((__v8sf)__X, (__v8sf)__Y, __M); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blendv_pd(__m256d __X, __m256d __Y, __m256d __M) { - return (__m256d)__builtin_ia32_blendvpd256((__v4df)__X, (__v4df)__Y, - (__v4df)__M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blendv_ps(__m256 __X, __m256 __Y, __m256 __M) { - return (__m256)__builtin_ia32_blendvps256((__v8sf)__X, (__v8sf)__Y, - (__v8sf)__M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_div_pd(__m256d __A, __m256d __B) { - return (__m256d)((__v4df)__A / (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_div_ps(__m256 __A, __m256 __B) { - return (__m256)((__v8sf)__A / (__v8sf)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dp_ps(__m256 __X, __m256 __Y, const int __M) { - return (__m256)__builtin_ia32_dpps256((__v8sf)__X, (__v8sf)__Y, __M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hadd_pd(__m256d __X, __m256d __Y) { - return (__m256d)__builtin_ia32_haddpd256((__v4df)__X, (__v4df)__Y); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hadd_ps(__m256 __X, __m256 __Y) { - return (__m256)__builtin_ia32_haddps256((__v8sf)__X, (__v8sf)__Y); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hsub_pd(__m256d __X, __m256d __Y) { - return (__m256d)__builtin_ia32_hsubpd256((__v4df)__X, (__v4df)__Y); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hsub_ps(__m256 __X, __m256 __Y) { - return (__m256)__builtin_ia32_hsubps256((__v8sf)__X, (__v8sf)__Y); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_maxpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_maxps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_minpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_minps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mul_pd(__m256d __A, __m256d __B) { - return (__m256d)((__v4df)__A * (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mul_ps(__m256 __A, __m256 __B) { - return (__m256)((__v8sf)__A * (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_or_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_orpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_or_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_orps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_pd(__m256d __A, __m256d __B, const int __mask) { - return (__m256d)__builtin_ia32_shufpd256((__v4df)__A, (__v4df)__B, __mask); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_ps(__m256 __A, __m256 __B, const int __mask) { - return (__m256)__builtin_ia32_shufps256((__v8sf)__A, (__v8sf)__B, __mask); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_pd(__m256d __A, __m256d __B) { - return (__m256d)((__v4df)__A - (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_ps(__m256 __A, __m256 __B) { - return (__m256)((__v8sf)__A - (__v8sf)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_xor_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_xorpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_xor_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_xorps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_pd(__m128d __X, __m128d __Y, const int __P) { - return (__m128d)__builtin_ia32_cmppd((__v2df)__X, (__v2df)__Y, __P); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_ps(__m128 __X, __m128 __Y, const int __P) { - return (__m128)__builtin_ia32_cmpps((__v4sf)__X, (__v4sf)__Y, __P); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_pd(__m256d __X, __m256d __Y, const int __P) { - return (__m256d)__builtin_ia32_cmppd256((__v4df)__X, (__v4df)__Y, __P); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_ps(__m256 __X, __m256 __Y, const int __P) { - return (__m256)__builtin_ia32_cmpps256((__v8sf)__X, (__v8sf)__Y, __P); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_sd(__m128d __X, __m128d __Y, const int __P) { - return (__m128d)__builtin_ia32_cmpsd((__v2df)__X, (__v2df)__Y, __P); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_ss(__m128 __X, __m128 __Y, const int __P) { - return (__m128)__builtin_ia32_cmpss((__v4sf)__X, (__v4sf)__Y, __P); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsi256_si32(__m256i __A) { - __v8si __B = (__v8si)__A; - return __B[0]; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi32_pd(__m128i __A) { - return (__m256d)__builtin_ia32_cvtdq2pd256((__v4si)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi32_ps(__m256i __A) { - return (__m256)__builtin_ia32_cvtdq2ps256((__v8si)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtpd_ps(__m256d __A) { - return (__m128)__builtin_ia32_cvtpd2ps256((__v4df)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_epi32(__m256 __A) { - return (__m256i)__builtin_ia32_cvtps2dq256((__v8sf)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_pd(__m128 __A) { - return (__m256d)__builtin_ia32_cvtps2pd256((__v4sf)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttpd_epi32(__m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq256((__v4df)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtpd_epi32(__m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq256((__v4df)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttps_epi32(__m256 __A) { - return (__m256i)__builtin_ia32_cvttps2dq256((__v8sf)__A); -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsd_f64(__m256d __A) { - return __A[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtss_f32(__m256 __A) { - return __A[0]; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extractf128_pd(__m256d __X, const int __N) { - return (__m128d)__builtin_ia32_vextractf128_pd256((__v4df)__X, __N); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extractf128_ps(__m256 __X, const int __N) { - return (__m128)__builtin_ia32_vextractf128_ps256((__v8sf)__X, __N); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extractf128_si256(__m256i __X, const int __N) { - return (__m128i)__builtin_ia32_vextractf128_si256((__v8si)__X, __N); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extract_epi32(__m256i __X, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 2); - return _mm_extract_epi32(__Y, __N % 4); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extract_epi16(__m256i __X, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 3); - return _mm_extract_epi16(__Y, __N % 8); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extract_epi8(__m256i __X, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 4); - return _mm_extract_epi8(__Y, __N % 16); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extract_epi64(__m256i __X, const int __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 1); - return _mm_extract_epi64(__Y, __N % 2); -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_zeroall(void) { - __builtin_ia32_vzeroall(); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_zeroupper(void) { - __builtin_ia32_vzeroupper(); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutevar_pd(__m128d __A, __m128i __C) { - return (__m128d)__builtin_ia32_vpermilvarpd((__v2df)__A, (__v2di)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutevar_pd(__m256d __A, __m256i __C) { - return (__m256d)__builtin_ia32_vpermilvarpd256((__v4df)__A, (__v4di)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutevar_ps(__m128 __A, __m128i __C) { - return (__m128)__builtin_ia32_vpermilvarps((__v4sf)__A, (__v4si)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutevar_ps(__m256 __A, __m256i __C) { - return (__m256)__builtin_ia32_vpermilvarps256((__v8sf)__A, (__v8si)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permute_pd(__m128d __X, const int __C) { - return (__m128d)__builtin_ia32_vpermilpd((__v2df)__X, __C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute_pd(__m256d __X, const int __C) { - return (__m256d)__builtin_ia32_vpermilpd256((__v4df)__X, __C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permute_ps(__m128 __X, const int __C) { - return (__m128)__builtin_ia32_vpermilps((__v4sf)__X, __C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute_ps(__m256 __X, const int __C) { - return (__m256)__builtin_ia32_vpermilps256((__v8sf)__X, __C); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2f128_pd(__m256d __X, __m256d __Y, const int __C) { - return (__m256d)__builtin_ia32_vperm2f128_pd256((__v4df)__X, (__v4df)__Y, - __C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2f128_ps(__m256 __X, __m256 __Y, const int __C) { - return (__m256)__builtin_ia32_vperm2f128_ps256((__v8sf)__X, (__v8sf)__Y, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2f128_si256(__m256i __X, __m256i __Y, const int __C) { - return (__m256i)__builtin_ia32_vperm2f128_si256((__v8si)__X, (__v8si)__Y, - __C); -} -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcast_ss(float const *__X) { - return (__m128)__builtin_ia32_vbroadcastss(__X); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_sd(double const *__X) { - return (__m256d)__builtin_ia32_vbroadcastsd256(__X); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_ss(float const *__X) { - return (__m256)__builtin_ia32_vbroadcastss256(__X); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_pd(__m128d const *__X) { - return (__m256d)__builtin_ia32_vbroadcastf128_pd256(__X); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_ps(__m128 const *__X) { - return (__m256)__builtin_ia32_vbroadcastf128_ps256(__X); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insertf128_pd(__m256d __X, __m128d __Y, const int __O) { - return (__m256d)__builtin_ia32_vinsertf128_pd256((__v4df)__X, (__v2df)__Y, - __O); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insertf128_ps(__m256 __X, __m128 __Y, const int __O) { - return (__m256)__builtin_ia32_vinsertf128_ps256((__v8sf)__X, (__v4sf)__Y, - __O); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insertf128_si256(__m256i __X, __m128i __Y, const int __O) { - return (__m256i)__builtin_ia32_vinsertf128_si256((__v8si)__X, (__v4si)__Y, - __O); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insert_epi32(__m256i __X, int __D, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 2); - __Y = _mm_insert_epi32(__Y, __D, __N % 4); - return _mm256_insertf128_si256(__X, __Y, __N >> 2); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insert_epi16(__m256i __X, int __D, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 3); - __Y = _mm_insert_epi16(__Y, __D, __N % 8); - return _mm256_insertf128_si256(__X, __Y, __N >> 3); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insert_epi8(__m256i __X, int __D, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 4); - __Y = _mm_insert_epi8(__Y, __D, __N % 16); - return _mm256_insertf128_si256(__X, __Y, __N >> 4); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insert_epi64(__m256i __X, long long __D, int const __N) { - __m128i __Y = _mm256_extractf128_si256(__X, __N >> 1); - __Y = _mm_insert_epi64(__Y, __D, __N % 2); - return _mm256_insertf128_si256(__X, __Y, __N >> 1); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_load_pd(double const *__P) { - return *(__m256d *)__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_store_pd(double *__P, __m256d __A) { - *(__m256d *)__P = __A; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_load_ps(float const *__P) { - return *(__m256 *)__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_store_ps(float *__P, __m256 __A) { - *(__m256 *)__P = __A; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_pd(double const *__P) { - return *(__m256d_u *)__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_pd(double *__P, __m256d __A) { - *(__m256d_u *)__P = __A; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_ps(float const *__P) { - return *(__m256_u *)__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_ps(float *__P, __m256 __A) { - *(__m256_u *)__P = __A; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_load_si256(__m256i const *__P) { - return *__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_store_si256(__m256i *__P, __m256i __A) { - *__P = __A; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_si256(__m256i_u const *__P) { - return *__P; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_si256(__m256i_u *__P, __m256i __A) { - *__P = __A; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskload_pd(double const *__P, __m128i __M) { - return (__m128d)__builtin_ia32_maskloadpd((const __v2df *)__P, (__v2di)__M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskstore_pd(double *__P, __m128i __M, __m128d __A) { - __builtin_ia32_maskstorepd((__v2df *)__P, (__v2di)__M, (__v2df)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskload_pd(double const *__P, __m256i __M) { - return (__m256d)__builtin_ia32_maskloadpd256((const __v4df *)__P, - (__v4di)__M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskstore_pd(double *__P, __m256i __M, __m256d __A) { - __builtin_ia32_maskstorepd256((__v4df *)__P, (__v4di)__M, (__v4df)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskload_ps(float const *__P, __m128i __M) { - return (__m128)__builtin_ia32_maskloadps((const __v4sf *)__P, (__v4si)__M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskstore_ps(float *__P, __m128i __M, __m128 __A) { - __builtin_ia32_maskstoreps((__v4sf *)__P, (__v4si)__M, (__v4sf)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskload_ps(float const *__P, __m256i __M) { - return (__m256)__builtin_ia32_maskloadps256((const __v8sf *)__P, (__v8si)__M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskstore_ps(float *__P, __m256i __M, __m256 __A) { - __builtin_ia32_maskstoreps256((__v8sf *)__P, (__v8si)__M, (__v8sf)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movehdup_ps(__m256 __X) { - return (__m256)__builtin_ia32_movshdup256((__v8sf)__X); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_moveldup_ps(__m256 __X) { - return (__m256)__builtin_ia32_movsldup256((__v8sf)__X); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movedup_pd(__m256d __X) { - return (__m256d)__builtin_ia32_movddup256((__v4df)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_lddqu_si256(__m256i const *__P) { - return (__m256i)__builtin_ia32_lddqu256((char const *)__P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_stream_si256(__m256i *__A, __m256i __B) { - __builtin_ia32_movntdq256((__v4di *)__A, (__v4di)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_stream_pd(double *__A, __m256d __B) { - __builtin_ia32_movntpd256(__A, (__v4df)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_stream_ps(float *__P, __m256 __A) { - __builtin_ia32_movntps256(__P, (__v8sf)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rcp_ps(__m256 __A) { - return (__m256)__builtin_ia32_rcpps256((__v8sf)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rsqrt_ps(__m256 __A) { - return (__m256)__builtin_ia32_rsqrtps256((__v8sf)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sqrt_pd(__m256d __A) { - return (__m256d)__builtin_ia32_sqrtpd256((__v4df)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sqrt_ps(__m256 __A) { - return (__m256)__builtin_ia32_sqrtps256((__v8sf)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_round_pd(__m256d __V, const int __M) { - return (__m256d)__builtin_ia32_roundpd256((__v4df)__V, __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_round_ps(__m256 __V, const int __M) { - return (__m256)__builtin_ia32_roundps256((__v8sf)__V, __M); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpckhpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpcklpd256((__v4df)__A, (__v4df)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpckhps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpcklps256((__v8sf)__A, (__v8sf)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testz_pd(__m128d __M, __m128d __V) { - return __builtin_ia32_vtestzpd((__v2df)__M, (__v2df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testc_pd(__m128d __M, __m128d __V) { - return __builtin_ia32_vtestcpd((__v2df)__M, (__v2df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testnzc_pd(__m128d __M, __m128d __V) { - return __builtin_ia32_vtestnzcpd((__v2df)__M, (__v2df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testz_ps(__m128 __M, __m128 __V) { - return __builtin_ia32_vtestzps((__v4sf)__M, (__v4sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testc_ps(__m128 __M, __m128 __V) { - return __builtin_ia32_vtestcps((__v4sf)__M, (__v4sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testnzc_ps(__m128 __M, __m128 __V) { - return __builtin_ia32_vtestnzcps((__v4sf)__M, (__v4sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testz_pd(__m256d __M, __m256d __V) { - return __builtin_ia32_vtestzpd256((__v4df)__M, (__v4df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testc_pd(__m256d __M, __m256d __V) { - return __builtin_ia32_vtestcpd256((__v4df)__M, (__v4df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testnzc_pd(__m256d __M, __m256d __V) { - return __builtin_ia32_vtestnzcpd256((__v4df)__M, (__v4df)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testz_ps(__m256 __M, __m256 __V) { - return __builtin_ia32_vtestzps256((__v8sf)__M, (__v8sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testc_ps(__m256 __M, __m256 __V) { - return __builtin_ia32_vtestcps256((__v8sf)__M, (__v8sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testnzc_ps(__m256 __M, __m256 __V) { - return __builtin_ia32_vtestnzcps256((__v8sf)__M, (__v8sf)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testz_si256(__m256i __M, __m256i __V) { - return __builtin_ia32_ptestz256((__v4di)__M, (__v4di)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testc_si256(__m256i __M, __m256i __V) { - return __builtin_ia32_ptestc256((__v4di)__M, (__v4di)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testnzc_si256(__m256i __M, __m256i __V) { - return __builtin_ia32_ptestnzc256((__v4di)__M, (__v4di)__V); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movemask_pd(__m256d __A) { - return __builtin_ia32_movmskpd256((__v4df)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movemask_ps(__m256 __A) { - return __builtin_ia32_movmskps256((__v8sf)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_undefined_pd(void) { - __m256d __Y = __Y; - return __Y; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_undefined_ps(void) { - __m256 __Y = __Y; - return __Y; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_undefined_si256(void) { - __m256i __Y = __Y; - return __Y; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setzero_pd(void) { - return __extension__(__m256d){0.0, 0.0, 0.0, 0.0}; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setzero_ps(void) { - return __extension__(__m256){0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setzero_si256(void) { - return __extension__(__m256i)(__v4di){0, 0, 0, 0}; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_pd(double __A, double __B, double __C, double __D) { - return __extension__(__m256d){__D, __C, __B, __A}; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_ps(float __A, float __B, float __C, float __D, float __E, - float __F, float __G, float __H) { - return __extension__(__m256){__H, __G, __F, __E, __D, __C, __B, __A}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_epi32(int __A, int __B, int __C, int __D, int __E, int __F, - int __G, int __H) { - return __extension__(__m256i)(__v8si){__H, __G, __F, __E, __D, __C, __B, __A}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_epi16(short __q15, short __q14, short __q13, short __q12, - short __q11, short __q10, short __q09, short __q08, - short __q07, short __q06, short __q05, short __q04, - short __q03, short __q02, short __q01, short __q00) { - return __extension__(__m256i)(__v16hi){ - __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, - __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_epi8(char __q31, char __q30, char __q29, char __q28, char __q27, - char __q26, char __q25, char __q24, char __q23, char __q22, - char __q21, char __q20, char __q19, char __q18, char __q17, - char __q16, char __q15, char __q14, char __q13, char __q12, - char __q11, char __q10, char __q09, char __q08, char __q07, - char __q06, char __q05, char __q04, char __q03, char __q02, - char __q01, char __q00) { - return __extension__(__m256i)(__v32qi){ - __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, - __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15, - __q16, __q17, __q18, __q19, __q20, __q21, __q22, __q23, - __q24, __q25, __q26, __q27, __q28, __q29, __q30, __q31}; -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_set_epi64x(long long __A, long long __B, long long __C, long long __D) { - return __extension__(__m256i)(__v4di){__D, __C, __B, __A}; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_pd(double __A) { - return __extension__(__m256d){__A, __A, __A, __A}; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_ps(float __A) { - return __extension__(__m256){__A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_epi32(int __A) { - return __extension__(__m256i)(__v8si){__A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_epi16(short __A) { - return _mm256_set_epi16(__A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_epi8(char __A) { - return _mm256_set_epi8(__A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set1_epi64x(long long __A) { - return __extension__(__m256i)(__v4di){__A, __A, __A, __A}; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_pd(double __A, double __B, double __C, double __D) { - return _mm256_set_pd(__D, __C, __B, __A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_ps(float __A, float __B, float __C, float __D, float __E, - float __F, float __G, float __H) { - return _mm256_set_ps(__H, __G, __F, __E, __D, __C, __B, __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_epi32(int __A, int __B, int __C, int __D, int __E, int __F, - int __G, int __H) { - return _mm256_set_epi32(__H, __G, __F, __E, __D, __C, __B, __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_epi16(short __q15, short __q14, short __q13, short __q12, - short __q11, short __q10, short __q09, short __q08, - short __q07, short __q06, short __q05, short __q04, - short __q03, short __q02, short __q01, short __q00) { - return _mm256_set_epi16(__q00, __q01, __q02, __q03, __q04, __q05, __q06, - __q07, __q08, __q09, __q10, __q11, __q12, __q13, - __q14, __q15); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_epi8(char __q31, char __q30, char __q29, char __q28, char __q27, - char __q26, char __q25, char __q24, char __q23, char __q22, - char __q21, char __q20, char __q19, char __q18, char __q17, - char __q16, char __q15, char __q14, char __q13, char __q12, - char __q11, char __q10, char __q09, char __q08, char __q07, - char __q06, char __q05, char __q04, char __q03, char __q02, - char __q01, char __q00) { - return _mm256_set_epi8(__q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, - __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15, - __q16, __q17, __q18, __q19, __q20, __q21, __q22, __q23, - __q24, __q25, __q26, __q27, __q28, __q29, __q30, - __q31); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_setr_epi64x(long long __A, long long __B, long long __C, long long __D) { - return _mm256_set_epi64x(__D, __C, __B, __A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castpd_ps(__m256d __A) { - return (__m256)__A; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castpd_si256(__m256d __A) { - return (__m256i)__A; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castps_pd(__m256 __A) { - return (__m256d)__A; -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castps_si256(__m256 __A) { - return (__m256i)__A; -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castsi256_ps(__m256i __A) { - return (__m256)__A; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castsi256_pd(__m256i __A) { - return (__m256d)__A; -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castpd256_pd128(__m256d __A) { - return (__m128d)__builtin_ia32_pd_pd256((__v4df)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castps256_ps128(__m256 __A) { - return (__m128)__builtin_ia32_ps_ps256((__v8sf)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castsi256_si128(__m256i __A) { - return (__m128i)__builtin_ia32_si_si256((__v8si)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castpd128_pd256(__m128d __A) { - return (__m256d)__builtin_ia32_pd256_pd((__v2df)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castps128_ps256(__m128 __A) { - return (__m256)__builtin_ia32_ps256_ps((__v4sf)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_castsi128_si256(__m128i __A) { - return (__m256i)__builtin_ia32_si256_si((__v4si)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_zextpd128_pd256(__m128d __A) { - return _mm256_insertf128_pd(_mm256_setzero_pd(), __A, 0); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_zextps128_ps256(__m128 __A) { - return _mm256_insertf128_ps(_mm256_setzero_ps(), __A, 0); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_zextsi128_si256(__m128i __A) { - return _mm256_insertf128_si256(_mm256_setzero_si256(), __A, 0); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_m128(__m128 __H, __m128 __L) { - return _mm256_insertf128_ps(_mm256_castps128_ps256(__L), __H, 1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_m128d(__m128d __H, __m128d __L) { - return _mm256_insertf128_pd(_mm256_castpd128_pd256(__L), __H, 1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_set_m128i(__m128i __H, __m128i __L) { - return _mm256_insertf128_si256(_mm256_castsi128_si256(__L), __H, 1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_m128(__m128 __L, __m128 __H) { - return _mm256_set_m128(__H, __L); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_m128d(__m128d __L, __m128d __H) { - return _mm256_set_m128d(__H, __L); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_setr_m128i(__m128i __L, __m128i __H) { - return _mm256_set_m128i(__H, __L); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu2_m128(float const *__PH, float const *__PL) { - return _mm256_insertf128_ps(_mm256_castps128_ps256(_mm_loadu_ps(__PL)), - _mm_loadu_ps(__PH), 1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu2_m128(float *__PH, float *__PL, __m256 __A) { - _mm_storeu_ps(__PL, _mm256_castps256_ps128(__A)); - _mm_storeu_ps(__PH, _mm256_extractf128_ps(__A, 1)); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu2_m128d(double const *__PH, double const *__PL) { - return _mm256_insertf128_pd(_mm256_castpd128_pd256(_mm_loadu_pd(__PL)), - _mm_loadu_pd(__PH), 1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu2_m128d(double *__PH, double *__PL, __m256d __A) { - _mm_storeu_pd(__PL, _mm256_castpd256_pd128(__A)); - _mm_storeu_pd(__PH, _mm256_extractf128_pd(__A, 1)); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu2_m128i(__m128i_u const *__PH, __m128i_u const *__PL) { - return _mm256_insertf128_si256(_mm256_castsi128_si256(_mm_loadu_si128(__PL)), - _mm_loadu_si128(__PH), 1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu2_m128i(__m128i_u *__PH, __m128i_u *__PL, __m256i __A) { - _mm_storeu_si128(__PL, _mm256_castsi256_si128(__A)); - _mm_storeu_si128(__PH, _mm256_extractf128_si256(__A, 1)); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dpbusd_avx_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpdpbusd_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dpbusd_avx_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpdpbusd_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dpbusds_avx_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpdpbusds_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dpbusds_avx_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpdpbusds_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dpwssd_avx_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpdpwssd_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dpwssd_avx_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpdpwssd_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dpwssds_avx_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpdpwssds_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dpwssds_avx_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpdpwssds_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mpsadbw_epu8(__m256i __X, __m256i __Y, const int __M) { - return (__m256i)__builtin_ia32_mpsadbw256((__v32qi)__X, (__v32qi)__Y, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_abs_epi8(__m256i __A) { - return (__m256i)__builtin_ia32_pabsb256((__v32qi)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_abs_epi16(__m256i __A) { - return (__m256i)__builtin_ia32_pabsw256((__v16hi)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_abs_epi32(__m256i __A) { - return (__m256i)__builtin_ia32_pabsd256((__v8si)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_packs_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packssdw256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_packs_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packsswb256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_packus_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packusdw256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_packus_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packuswb256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_epi8(__m256i __A, __m256i __B) { - return (__m256i)((__v32qu)__A + (__v32qu)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_epi16(__m256i __A, __m256i __B) { - return (__m256i)((__v16hu)__A + (__v16hu)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8su)__A + (__v8su)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_add_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A + (__v4du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_adds_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_adds_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_adds_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_adds_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_alignr_epi8(__m256i __A, __m256i __B, const int __N) { - return (__m256i)__builtin_ia32_palignr256((__v4di)__A, (__v4di)__B, __N * 8); -} -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_and_si256(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A & (__v4du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_andnot_si256(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_andnotsi256((__v4di)__A, (__v4di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_avg_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_avg_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blendv_epi8(__m256i __X, __m256i __Y, __m256i __M) { - return (__m256i)__builtin_ia32_pblendvb256((__v32qi)__X, (__v32qi)__Y, - (__v32qi)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blend_epi16(__m256i __X, __m256i __Y, const int __M) { - return (__m256i)__builtin_ia32_pblendw256((__v16hi)__X, (__v16hi)__Y, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi8(__m256i __A, __m256i __B) { - return (__m256i)((__v32qi)__A == (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi16(__m256i __A, __m256i __B) { - return (__m256i)((__v16hi)__A == (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8si)__A == (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4di)__A == (__v4di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi8(__m256i __A, __m256i __B) { - return (__m256i)((__v32qs)__A > (__v32qs)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi16(__m256i __A, __m256i __B) { - return (__m256i)((__v16hi)__A > (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8si)__A > (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4di)__A > (__v4di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hadd_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phaddw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hadd_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phaddd256((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hadds_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phaddsw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hsub_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phsubw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hsub_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phsubd256((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_hsubs_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_phsubsw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maddubs_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmaddubsw256((__v32qi)__X, (__v32qi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_madd_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaddwd256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsd256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxub256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epu32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxud256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsd256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminub256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epu32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminud256((__v8si)__A, (__v8si)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movemask_epi8(__m256i __A) { - return __builtin_ia32_pmovmskb256((__v32qi)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi8_epi16(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxbw256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi8_epi32(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxbd256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi8_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxbq256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi16_epi32(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxwd256((__v8hi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi16_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxwq256((__v8hi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi32_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovsxdq256((__v4si)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu8_epi16(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxbw256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu8_epi32(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxbd256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu8_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxbq256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu16_epi32(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxwd256((__v8hi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu16_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxwq256((__v8hi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu32_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pmovzxdq256((__v4si)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mul_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmuldq256((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mulhrs_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmulhrsw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mulhi_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhuw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mulhi_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mullo_epi16(__m256i __A, __m256i __B) { - return (__m256i)((__v16hu)__A * (__v16hu)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mullo_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8su)__A * (__v8su)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mul_epu32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmuludq256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_or_si256(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A | (__v4du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sad_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psadbw256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_epi8(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pshufb256((__v32qi)__X, (__v32qi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_epi32(__m256i __A, const int __mask) { - return (__m256i)__builtin_ia32_pshufd256((__v8si)__A, __mask); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shufflehi_epi16(__m256i __A, const int __mask) { - return (__m256i)__builtin_ia32_pshufhw256((__v16hi)__A, __mask); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shufflelo_epi16(__m256i __A, const int __mask) { - return (__m256i)__builtin_ia32_pshuflw256((__v16hi)__A, __mask); -} -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sign_epi8(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psignb256((__v32qi)__X, (__v32qi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sign_epi16(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psignw256((__v16hi)__X, (__v16hi)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sign_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psignd256((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_bslli_epi128(__m256i __A, const int __N) { - return (__m256i)__builtin_ia32_pslldqi256(__A, __N * 8); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_slli_si256(__m256i __A, const int __N) { - return (__m256i)__builtin_ia32_pslldqi256(__A, __N * 8); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_slli_epi16(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllwi256((__v16hi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sll_epi16(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllw256((__v16hi)__A, (__v8hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_slli_epi32(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_pslldi256((__v8si)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sll_epi32(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_pslld256((__v8si)__A, (__v4si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_slli_epi64(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllqi256((__v4di)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sll_epi64(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllq256((__v4di)__A, (__v2di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srai_epi16(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psrawi256((__v16hi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sra_epi16(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraw256((__v16hi)__A, (__v8hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srai_epi32(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psradi256((__v8si)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sra_epi32(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrad256((__v8si)__A, (__v4si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_bsrli_epi128(__m256i __A, const int __N) { - return (__m256i)__builtin_ia32_psrldqi256(__A, __N * 8); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srli_si256(__m256i __A, const int __N) { - return (__m256i)__builtin_ia32_psrldqi256(__A, __N * 8); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srli_epi16(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psrlwi256((__v16hi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srl_epi16(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlw256((__v16hi)__A, (__v8hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srli_epi32(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psrldi256((__v8si)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srl_epi32(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrld256((__v8si)__A, (__v4si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srli_epi64(__m256i __A, int __B) { - return (__m256i)__builtin_ia32_psrlqi256((__v4di)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srl_epi64(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlq256((__v4di)__A, (__v2di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_epi8(__m256i __A, __m256i __B) { - return (__m256i)((__v32qu)__A - (__v32qu)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_epi16(__m256i __A, __m256i __B) { - return (__m256i)((__v16hu)__A - (__v16hu)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8su)__A - (__v8su)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sub_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A - (__v4du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_subs_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_subs_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_subs_epu8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusb256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_subs_epu16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusw256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhbw256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhwd256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhdq256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpackhi_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhqdq256((__v4di)__A, (__v4di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklbw256((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklwd256((__v16hi)__A, (__v16hi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckldq256((__v8si)__A, (__v8si)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_unpacklo_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklqdq256((__v4di)__A, (__v4di)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_xor_si256(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A ^ (__v4du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_stream_load_si256(__m256i const *__X) { - return (__m256i)__builtin_ia32_movntdqa256((__v4di *)__X); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastss_ps(__m128 __X) { - return (__m128)__builtin_ia32_vbroadcastss_ps((__v4sf)__X); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastss_ps(__m128 __X) { - return (__m256)__builtin_ia32_vbroadcastss_ps256((__v4sf)__X); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastsd_pd(__m128d __X) { - return (__m256d)__builtin_ia32_vbroadcastsd_pd256((__v2df)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastsi128_si256(__m128i __X) { - return (__m256i)__builtin_ia32_vbroadcastsi256((__v2di)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_blend_epi32(__m128i __X, __m128i __Y, const int __M) { - return (__m128i)__builtin_ia32_pblendd128((__v4si)__X, (__v4si)__Y, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_blend_epi32(__m256i __X, __m256i __Y, const int __M) { - return (__m256i)__builtin_ia32_pblendd256((__v8si)__X, (__v8si)__Y, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastb_epi8(__m128i __X) { - return (__m256i)__builtin_ia32_pbroadcastb256((__v16qi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastw_epi16(__m128i __X) { - return (__m256i)__builtin_ia32_pbroadcastw256((__v8hi)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastd_epi32(__m128i __X) { - return (__m256i)__builtin_ia32_pbroadcastd256((__v4si)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastq_epi64(__m128i __X) { - return (__m256i)__builtin_ia32_pbroadcastq256((__v2di)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastb_epi8(__m128i __X) { - return (__m128i)__builtin_ia32_pbroadcastb128((__v16qi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastw_epi16(__m128i __X) { - return (__m128i)__builtin_ia32_pbroadcastw128((__v8hi)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastd_epi32(__m128i __X) { - return (__m128i)__builtin_ia32_pbroadcastd128((__v4si)__X); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastq_epi64(__m128i __X) { - return (__m128i)__builtin_ia32_pbroadcastq128((__v2di)__X); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutevar8x32_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_permvarsi256((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute4x64_pd(__m256d __X, const int __M) { - return (__m256d)__builtin_ia32_permdf256((__v4df)__X, __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutevar8x32_ps(__m256 __X, __m256i __Y) { - return (__m256)__builtin_ia32_permvarsf256((__v8sf)__X, (__v8si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute4x64_epi64(__m256i __X, const int __M) { - return (__m256i)__builtin_ia32_permdi256((__v4di)__X, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2x128_si256(__m256i __X, __m256i __Y, const int __M) { - return (__m256i)__builtin_ia32_permti256((__v4di)__X, (__v4di)__Y, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extracti128_si256(__m256i __X, const int __M) { - return (__m128i)__builtin_ia32_extract128i256((__v4di)__X, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_inserti128_si256(__m256i __X, __m128i __Y, const int __M) { - return (__m256i)__builtin_ia32_insert128i256((__v4di)__X, (__v2di)__Y, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskload_epi32(int const *__X, __m256i __M) { - return (__m256i)__builtin_ia32_maskloadd256((const __v8si *)__X, (__v8si)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskload_epi64(long long const *__X, __m256i __M) { - return (__m256i)__builtin_ia32_maskloadq256((const __v4di *)__X, (__v4di)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskload_epi32(int const *__X, __m128i __M) { - return (__m128i)__builtin_ia32_maskloadd((const __v4si *)__X, (__v4si)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskload_epi64(long long const *__X, __m128i __M) { - return (__m128i)__builtin_ia32_maskloadq((const __v2di *)__X, (__v2di)__M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskstore_epi32(int *__X, __m256i __M, __m256i __Y) { - __builtin_ia32_maskstored256((__v8si *)__X, (__v8si)__M, (__v8si)__Y); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskstore_epi64(long long *__X, __m256i __M, __m256i __Y) { - __builtin_ia32_maskstoreq256((__v4di *)__X, (__v4di)__M, (__v4di)__Y); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskstore_epi32(int *__X, __m128i __M, __m128i __Y) { - __builtin_ia32_maskstored((__v4si *)__X, (__v4si)__M, (__v4si)__Y); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskstore_epi64(long long *__X, __m128i __M, __m128i __Y) { - __builtin_ia32_maskstoreq((__v2di *)__X, (__v2di)__M, (__v2di)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sllv_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv8si((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sllv_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv4si((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sllv_epi64(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv4di((__v4di)__X, (__v4di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sllv_epi64(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv2di((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srav_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrav8si((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srav_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrav4si((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srlv_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv8si((__v8si)__X, (__v8si)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srlv_epi32(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv4si((__v4si)__X, (__v4si)__Y); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srlv_epi64(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv4di((__v4di)__X, (__v4di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srlv_epi64(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv2di((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32gather_pd(double const *__base, __m128i __index, const int __scale) { - __v2df __zero = _mm_setzero_pd(); - __v2df __mask = _mm_cmpeq_pd(__zero, __zero); - - return (__m128d)__builtin_ia32_gathersiv2df(_mm_undefined_pd(), __base, - (__v4si)__index, __mask, __scale); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32gather_pd(__m128d __src, double const *__base, __m128i __index, - __m128d __mask, const int __scale) { - return (__m128d)__builtin_ia32_gathersiv2df( - (__v2df)__src, __base, (__v4si)__index, (__v2df)__mask, __scale); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i32gather_pd(double const *__base, __m128i __index, const int __scale) { - __v4df __zero = _mm256_setzero_pd(); - __v4df __mask = _mm256_cmp_pd(__zero, __zero, 0x00); - - return (__m256d)__builtin_ia32_gathersiv4df(_mm256_undefined_pd(), __base, - (__v4si)__index, __mask, __scale); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32gather_pd(__m256d __src, double const *__base, - __m128i __index, __m256d __mask, - const int __scale) { - return (__m256d)__builtin_ia32_gathersiv4df( - (__v4df)__src, __base, (__v4si)__index, (__v4df)__mask, __scale); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64gather_pd(double const *__base, __m128i __index, const int __scale) { - __v2df __src = _mm_setzero_pd(); - __v2df __mask = _mm_cmpeq_pd(__src, __src); - - return (__m128d)__builtin_ia32_gatherdiv2df(__src, __base, (__v2di)__index, - __mask, __scale); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64gather_pd(__m128d __src, double const *__base, __m128i __index, - __m128d __mask, const int __scale) { - return (__m128d)__builtin_ia32_gatherdiv2df( - (__v2df)__src, __base, (__v2di)__index, (__v2df)__mask, __scale); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i64gather_pd(double const *__base, __m256i __index, const int __scale) { - __v4df __src = _mm256_setzero_pd(); - __v4df __mask = _mm256_cmp_pd(__src, __src, 0x00); - - return (__m256d)__builtin_ia32_gatherdiv4df(__src, __base, (__v4di)__index, - __mask, __scale); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64gather_pd(__m256d __src, double const *__base, - __m256i __index, __m256d __mask, - const int __scale) { - return (__m256d)__builtin_ia32_gatherdiv4df( - (__v4df)__src, __base, (__v4di)__index, (__v4df)__mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32gather_ps(float const *__base, __m128i __index, const int __scale) { - __v4sf __src = _mm_setzero_ps(); - __v4sf __mask = _mm_cmpeq_ps(__src, __src); - - return (__m128)__builtin_ia32_gathersiv4sf(__src, __base, (__v4si)__index, - __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32gather_ps(__m128 __src, float const *__base, __m128i __index, - __m128 __mask, const int __scale) { - return (__m128)__builtin_ia32_gathersiv4sf( - (__v4sf)__src, __base, (__v4si)__index, (__v4sf)__mask, __scale); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i32gather_ps(float const *__base, __m256i __index, const int __scale) { - __v8sf __src = _mm256_setzero_ps(); - __v8sf __mask = _mm256_cmp_ps(__src, __src, 0x00); - - return (__m256)__builtin_ia32_gathersiv8sf(__src, __base, (__v8si)__index, - __mask, __scale); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32gather_ps(__m256 __src, float const *__base, __m256i __index, - __m256 __mask, const int __scale) { - return (__m256)__builtin_ia32_gathersiv8sf( - (__v8sf)__src, __base, (__v8si)__index, (__v8sf)__mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64gather_ps(float const *__base, __m128i __index, const int __scale) { - __v4sf __src = _mm_setzero_ps(); - __v4sf __mask = _mm_cmpeq_ps(__src, __src); - - return (__m128)__builtin_ia32_gatherdiv4sf(__src, __base, (__v2di)__index, - __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64gather_ps(__m128 __src, float const *__base, __m128i __index, - __m128 __mask, const int __scale) { - return (__m128)__builtin_ia32_gatherdiv4sf( - (__v4sf)__src, __base, (__v2di)__index, (__v4sf)__mask, __scale); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i64gather_ps(float const *__base, __m256i __index, const int __scale) { - __v4sf __src = _mm_setzero_ps(); - __v4sf __mask = _mm_cmpeq_ps(__src, __src); - - return (__m128)__builtin_ia32_gatherdiv4sf256(__src, __base, (__v4di)__index, - __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64gather_ps(__m128 __src, float const *__base, __m256i __index, - __m128 __mask, const int __scale) { - return (__m128)__builtin_ia32_gatherdiv4sf256( - (__v4sf)__src, __base, (__v4di)__index, (__v4sf)__mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32gather_epi64(long long int const *__base, __m128i __index, - const int __scale) { - __v2di __src = __extension__(__v2di){0, 0}; - __v2di __mask = __extension__(__v2di){~0, ~0}; - - return (__m128i)__builtin_ia32_gathersiv2di(__src, __base, (__v4si)__index, - __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32gather_epi64(__m128i __src, long long int const *__base, - __m128i __index, __m128i __mask, - const int __scale) { - return (__m128i)__builtin_ia32_gathersiv2di( - (__v2di)__src, __base, (__v4si)__index, (__v2di)__mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i32gather_epi64(long long int const *__base, __m128i __index, - const int __scale) { - __v4di __src = __extension__(__v4di){0, 0, 0, 0}; - __v4di __mask = __extension__(__v4di){~0, ~0, ~0, ~0}; - - return (__m256i)__builtin_ia32_gathersiv4di(__src, __base, (__v4si)__index, - __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32gather_epi64(__m256i __src, long long int const *__base, - __m128i __index, __m256i __mask, - const int __scale) { - return (__m256i)__builtin_ia32_gathersiv4di( - (__v4di)__src, __base, (__v4si)__index, (__v4di)__mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64gather_epi64(long long int const *__base, __m128i __index, - const int __scale) { - __v2di __src = __extension__(__v2di){0, 0}; - __v2di __mask = __extension__(__v2di){~0, ~0}; - - return (__m128i)__builtin_ia32_gatherdiv2di(__src, __base, (__v2di)__index, - __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64gather_epi64(__m128i __src, long long int const *__base, - __m128i __index, __m128i __mask, - const int __scale) { - return (__m128i)__builtin_ia32_gatherdiv2di( - (__v2di)__src, __base, (__v2di)__index, (__v2di)__mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i64gather_epi64(long long int const *__base, __m256i __index, - const int __scale) { - __v4di __src = __extension__(__v4di){0, 0, 0, 0}; - __v4di __mask = __extension__(__v4di){~0, ~0, ~0, ~0}; - - return (__m256i)__builtin_ia32_gatherdiv4di(__src, __base, (__v4di)__index, - __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64gather_epi64(__m256i __src, long long int const *__base, - __m256i __index, __m256i __mask, - const int __scale) { - return (__m256i)__builtin_ia32_gatherdiv4di( - (__v4di)__src, __base, (__v4di)__index, (__v4di)__mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32gather_epi32(int const *__base, __m128i __index, const int __scale) { - __v4si __src = __extension__(__v4si){0, 0, 0, 0}; - __v4si __mask = __extension__(__v4si){~0, ~0, ~0, ~0}; - - return (__m128i)__builtin_ia32_gathersiv4si(__src, __base, (__v4si)__index, - __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32gather_epi32(__m128i __src, int const *__base, __m128i __index, - __m128i __mask, const int __scale) { - return (__m128i)__builtin_ia32_gathersiv4si( - (__v4si)__src, __base, (__v4si)__index, (__v4si)__mask, __scale); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i32gather_epi32(int const *__base, __m256i __index, const int __scale) { - __v8si __src = __extension__(__v8si){0, 0, 0, 0, 0, 0, 0, 0}; - __v8si __mask = __extension__(__v8si){~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0}; - - return (__m256i)__builtin_ia32_gathersiv8si(__src, __base, (__v8si)__index, - __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32gather_epi32(__m256i __src, int const *__base, - __m256i __index, __m256i __mask, - const int __scale) { - return (__m256i)__builtin_ia32_gathersiv8si( - (__v8si)__src, __base, (__v8si)__index, (__v8si)__mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64gather_epi32(int const *__base, __m128i __index, const int __scale) { - __v4si __src = __extension__(__v4si){0, 0, 0, 0}; - __v4si __mask = __extension__(__v4si){~0, ~0, ~0, ~0}; - - return (__m128i)__builtin_ia32_gatherdiv4si(__src, __base, (__v2di)__index, - __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64gather_epi32(__m128i __src, int const *__base, __m128i __index, - __m128i __mask, const int __scale) { - return (__m128i)__builtin_ia32_gatherdiv4si( - (__v4si)__src, __base, (__v2di)__index, (__v4si)__mask, __scale); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_i64gather_epi32(int const *__base, __m256i __index, const int __scale) { - __v4si __src = __extension__(__v4si){0, 0, 0, 0}; - __v4si __mask = __extension__(__v4si){~0, ~0, ~0, ~0}; - - return (__m128i)__builtin_ia32_gatherdiv4si256(__src, __base, (__v4di)__index, - __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64gather_epi32(__m128i __src, int const *__base, - __m256i __index, __m128i __mask, - const int __scale) { - return (__m128i)__builtin_ia32_gatherdiv4si256( - (__v4si)__src, __base, (__v4di)__index, (__v4si)__mask, __scale); -} - -typedef double __v8df __attribute__((__vector_size__(64))); -typedef float __v16sf __attribute__((__vector_size__(64))); -typedef long long __v8di __attribute__((__vector_size__(64))); -typedef unsigned long long __v8du __attribute__((__vector_size__(64))); -typedef int __v16si __attribute__((__vector_size__(64))); -typedef unsigned int __v16su __attribute__((__vector_size__(64))); -typedef short __v32hi __attribute__((__vector_size__(64))); -typedef unsigned short __v32hu __attribute__((__vector_size__(64))); -typedef char __v64qi __attribute__((__vector_size__(64))); -typedef unsigned char __v64qu __attribute__((__vector_size__(64))); - -typedef float __m512 __attribute__((__vector_size__(64), __may_alias__)); -typedef long long __m512i __attribute__((__vector_size__(64), __may_alias__)); -typedef double __m512d __attribute__((__vector_size__(64), __may_alias__)); - -typedef float __m512_u - __attribute__((__vector_size__(64), __may_alias__, __aligned__(1))); -typedef long long __m512i_u - __attribute__((__vector_size__(64), __may_alias__, __aligned__(1))); -typedef double __m512d_u - __attribute__((__vector_size__(64), __may_alias__, __aligned__(1))); - -typedef unsigned char __mmask8; -typedef unsigned short __mmask16; - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_int2mask(int __M) { - return (__mmask16)__M; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2int(__mmask16 __M) { - return (int)__M; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_epi64(long long __A, long long __B, long long __C, long long __D, - long long __E, long long __F, long long __G, - long long __H) { - return __extension__(__m512i)(__v8di){__H, __G, __F, __E, __D, __C, __B, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_epi32(int __A, int __B, int __C, int __D, int __E, int __F, - int __G, int __H, int __I, int __J, int __K, int __L, - int __M, int __N, int __O, int __P) { - return __extension__(__m512i)(__v16si){__P, __O, __N, __M, __L, __K, - __J, __I, __H, __G, __F, __E, - __D, __C, __B, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_epi16(short __q31, short __q30, short __q29, short __q28, - short __q27, short __q26, short __q25, short __q24, - short __q23, short __q22, short __q21, short __q20, - short __q19, short __q18, short __q17, short __q16, - short __q15, short __q14, short __q13, short __q12, - short __q11, short __q10, short __q09, short __q08, - short __q07, short __q06, short __q05, short __q04, - short __q03, short __q02, short __q01, short __q00) { - return __extension__(__m512i)(__v32hi){ - __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, - __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15, - __q16, __q17, __q18, __q19, __q20, __q21, __q22, __q23, - __q24, __q25, __q26, __q27, __q28, __q29, __q30, __q31}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_epi8(char __q63, char __q62, char __q61, char __q60, char __q59, - char __q58, char __q57, char __q56, char __q55, char __q54, - char __q53, char __q52, char __q51, char __q50, char __q49, - char __q48, char __q47, char __q46, char __q45, char __q44, - char __q43, char __q42, char __q41, char __q40, char __q39, - char __q38, char __q37, char __q36, char __q35, char __q34, - char __q33, char __q32, char __q31, char __q30, char __q29, - char __q28, char __q27, char __q26, char __q25, char __q24, - char __q23, char __q22, char __q21, char __q20, char __q19, - char __q18, char __q17, char __q16, char __q15, char __q14, - char __q13, char __q12, char __q11, char __q10, char __q09, - char __q08, char __q07, char __q06, char __q05, char __q04, - char __q03, char __q02, char __q01, char __q00) { - return __extension__(__m512i)(__v64qi){ - __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, __q08, __q09, - __q10, __q11, __q12, __q13, __q14, __q15, __q16, __q17, __q18, __q19, - __q20, __q21, __q22, __q23, __q24, __q25, __q26, __q27, __q28, __q29, - __q30, __q31, __q32, __q33, __q34, __q35, __q36, __q37, __q38, __q39, - __q40, __q41, __q42, __q43, __q44, __q45, __q46, __q47, __q48, __q49, - __q50, __q51, __q52, __q53, __q54, __q55, __q56, __q57, __q58, __q59, - __q60, __q61, __q62, __q63}; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_pd(double __A, double __B, double __C, double __D, double __E, - double __F, double __G, double __H) { - return __extension__(__m512d){__H, __G, __F, __E, __D, __C, __B, __A}; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set_ps(float __A, float __B, float __C, float __D, float __E, - float __F, float __G, float __H, float __I, float __J, - float __K, float __L, float __M, float __N, float __O, - float __P) { - return __extension__(__m512){__P, __O, __N, __M, __L, __K, __J, __I, - __H, __G, __F, __E, __D, __C, __B, __A}; -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_undefined_ps(void) { - __m512 __Y = __Y; - return __Y; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_undefined_pd(void) { - __m512d __Y = __Y; - return __Y; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_undefined_epi32(void) { - __m512i __Y = __Y; - return __Y; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_epi8(char __A) { - return __extension__(__m512i)(__v64qi){ - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_epi16(short __A) { - return __extension__(__m512i)(__v32hi){ - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_pd(double __A) { - return __extension__(__m512d)(__v8df){__A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_ps(float __A) { - return __extension__(__m512)(__v16sf){__A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set4_epi32(int __A, int __B, int __C, int __D) { - return __extension__(__m512i)(__v16si){__D, __C, __B, __A, __D, __C, - __B, __A, __D, __C, __B, __A, - __D, __C, __B, __A}; -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_set4_epi64(long long __A, long long __B, long long __C, long long __D) { - return __extension__(__m512i)(__v8di){__D, __C, __B, __A, __D, __C, __B, __A}; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set4_pd(double __A, double __B, double __C, double __D) { - return __extension__(__m512d){__D, __C, __B, __A, __D, __C, __B, __A}; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set4_ps(float __A, float __B, float __C, float __D) { - return __extension__(__m512){__D, __C, __B, __A, __D, __C, __B, __A, - __D, __C, __B, __A, __D, __C, __B, __A}; -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_setzero_ps(void) { - return __extension__(__m512){0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, - 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_setzero(void) { - return _mm512_setzero_ps(); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_setzero_pd(void) { - return __extension__(__m512d){0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_setzero_epi32(void) { - return __extension__(__m512i)(__v8di){0, 0, 0, 0, 0, 0, 0, 0}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_setzero_si512(void) { - return __extension__(__m512i)(__v8di){0, 0, 0, 0, 0, 0, 0, 0}; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_movapd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_movapd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movaps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movaps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_load_pd(void const *__P) { - return *(__m512d *)__P; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_load_pd(__m512d __W, __mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_loadapd512_mask((const __v8df *)__P, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_load_pd(__mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_loadapd512_mask( - (const __v8df *)__P, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_store_pd(void *__P, __m512d __A) { - *(__m512d *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_store_pd(void *__P, __mmask8 __U, __m512d __A) { - __builtin_ia32_storeapd512_mask((__v8df *)__P, (__v8df)__A, (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_load_ps(void const *__P) { - return *(__m512 *)__P; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_load_ps(__m512 __W, __mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_loadaps512_mask((const __v16sf *)__P, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_load_ps(__mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_loadaps512_mask( - (const __v16sf *)__P, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_store_ps(void *__P, __m512 __A) { - *(__m512 *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_store_ps(void *__P, __mmask16 __U, __m512 __A) { - __builtin_ia32_storeaps512_mask((__v16sf *)__P, (__v16sf)__A, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdqa64_512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdqa64_512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_load_epi64(void const *__P) { - return *(__m512i *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_load_epi64(__m512i __W, __mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_movdqa64load512_mask( - (const __v8di *)__P, (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_load_epi64(__mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_movdqa64load512_mask( - (const __v8di *)__P, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_store_epi64(void *__P, __m512i __A) { - *(__m512i *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_store_epi64(void *__P, __mmask8 __U, __m512i __A) { - __builtin_ia32_movdqa64store512_mask((__v8di *)__P, (__v8di)__A, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdqa32_512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdqa32_512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_load_si512(void const *__P) { - return *(__m512i *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_load_epi32(void const *__P) { - return *(__m512i *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_load_epi32(__m512i __W, __mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_movdqa32load512_mask( - (const __v16si *)__P, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_load_epi32(__mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_movdqa32load512_mask( - (const __v16si *)__P, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_store_si512(void *__P, __m512i __A) { - *(__m512i *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_store_epi32(void *__P, __m512i __A) { - *(__m512i *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_store_epi32(void *__P, __mmask16 __U, __m512i __A) { - __builtin_ia32_movdqa32store512_mask((__v16si *)__P, (__v16si)__A, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mullo_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A * (__v16su)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mullo_epi32(__mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulld512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mullo_epi32(__m512i __W, __mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulld512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mullox_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A * (__v8du)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mullox_epi64(__m512i __W, __mmask8 __M, __m512i __A, __m512i __B) { - return _mm512_mask_mov_epi64(__W, __M, _mm512_mullox_epi64(__A, __B)); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sllv_epi32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv16si_mask( - (__v16si)__X, (__v16si)__Y, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sllv_epi32(__m512i __W, __mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sllv_epi32(__mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srav_epi32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav16si_mask( - (__v16si)__X, (__v16si)__Y, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srav_epi32(__m512i __W, __mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srav_epi32(__mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srlv_epi32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv16si_mask( - (__v16si)__X, (__v16si)__Y, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srlv_epi32(__m512i __W, __mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srlv_epi32(__mmask16 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv16si_mask((__v16si)__X, (__v16si)__Y, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A + (__v8du)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A - (__v8du)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sllv_epi64(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sllv_epi64(__m512i __W, __mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv8di_mask((__v8di)__X, (__v8di)__Y, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sllv_epi64(__mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psllv8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srav_epi64(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srav_epi64(__m512i __W, __mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav8di_mask((__v8di)__X, (__v8di)__Y, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srav_epi64(__mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrav8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srlv_epi64(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srlv_epi64(__m512i __W, __mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv8di_mask((__v8di)__X, (__v8di)__Y, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srlv_epi64(__mmask8 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_psrlv8di_mask( - (__v8di)__X, (__v8di)__Y, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A + (__v16su)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_add_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_epi32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuldq512_mask( - (__v16si)__X, (__v16si)__Y, (__v8di)_mm512_undefined_epi32(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_epi32(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuldq512_mask((__v16si)__X, (__v16si)__Y, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_epi32(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuldq512_mask( - (__v16si)__X, (__v16si)__Y, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A - (__v16su)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sub_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_epu32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuludq512_mask( - (__v16si)__X, (__v16si)__Y, (__v8di)_mm512_undefined_epi32(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_epu32(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuludq512_mask((__v16si)__X, (__v16si)__Y, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_epu32(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmuludq512_mask( - (__v16si)__X, (__v16si)__Y, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_slli_epi64(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psllqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_slli_epi64(__m512i __W, __mmask8 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_psllqi512_mask((__v8di)__A, __B, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_slli_epi64(__mmask8 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psllqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sll_epi64(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sll_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllq512_mask((__v8di)__A, (__v2di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sll_epi64(__mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srli_epi64(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psrlqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srli_epi64(__m512i __W, __mmask8 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_psrlqi512_mask((__v8di)__A, __B, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srli_epi64(__mmask8 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psrlqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srl_epi64(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srl_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlq512_mask((__v8di)__A, (__v2di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srl_epi64(__mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srai_epi64(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psraqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srai_epi64(__m512i __W, __mmask8 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_psraqi512_mask((__v8di)__A, __B, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srai_epi64(__mmask8 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psraqi512_mask( - (__v8di)__A, __B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sra_epi64(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sra_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraq512_mask((__v8di)__A, (__v2di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sra_epi64(__mmask8 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraq512_mask( - (__v8di)__A, (__v2di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_slli_epi32(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_pslldi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_slli_epi32(__m512i __W, __mmask16 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_pslldi512_mask((__v16si)__A, __B, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_slli_epi32(__mmask16 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_pslldi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sll_epi32(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_pslld512_mask( - (__v16si)__A, (__v4si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sll_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_pslld512_mask((__v16si)__A, (__v4si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sll_epi32(__mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_pslld512_mask((__v16si)__A, (__v4si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srli_epi32(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psrldi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srli_epi32(__m512i __W, __mmask16 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_psrldi512_mask((__v16si)__A, __B, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srli_epi32(__mmask16 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psrldi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srl_epi32(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrld512_mask( - (__v16si)__A, (__v4si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srl_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrld512_mask((__v16si)__A, (__v4si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srl_epi32(__mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrld512_mask((__v16si)__A, (__v4si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srai_epi32(__m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psradi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srai_epi32(__m512i __W, __mmask16 __U, __m512i __A, - unsigned int __B) { - return (__m512i)__builtin_ia32_psradi512_mask((__v16si)__A, __B, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srai_epi32(__mmask16 __U, __m512i __A, unsigned int __B) { - return (__m512i)__builtin_ia32_psradi512_mask( - (__v16si)__A, __B, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sra_epi32(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrad512_mask( - (__v16si)__A, (__v4si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sra_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrad512_mask((__v16si)__A, (__v4si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sra_epi32(__mmask16 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrad512_mask((__v16si)__A, (__v4si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_addsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_addsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_add_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_addsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_add_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_addss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_addss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_add_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_addss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_subsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_subsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_sub_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_subsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sub_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_subss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_subss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_sub_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_subss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ternarylogic_epi64(__m512i __A, __m512i __B, __m512i __C, - const int __imm) { - return (__m512i)__builtin_ia32_pternlogq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)__C, __imm, (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ternarylogic_epi64(__m512i __A, __mmask8 __U, __m512i __B, - __m512i __C, const int __imm) { - return (__m512i)__builtin_ia32_pternlogq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_ternarylogic_epi64(__mmask8 __U, __m512i __A, __m512i __B, - __m512i __C, const int __imm) { - return (__m512i)__builtin_ia32_pternlogq512_maskz( - (__v8di)__A, (__v8di)__B, (__v8di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ternarylogic_epi32(__m512i __A, __m512i __B, __m512i __C, - const int __imm) { - return (__m512i)__builtin_ia32_pternlogd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)__C, __imm, (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ternarylogic_epi32(__m512i __A, __mmask16 __U, __m512i __B, - __m512i __C, const int __imm) { - return (__m512i)__builtin_ia32_pternlogd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)__C, __imm, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_ternarylogic_epi32(__mmask16 __U, __m512i __A, __m512i __B, - __m512i __C, const int __imm) { - return (__m512i)__builtin_ia32_pternlogd512_maskz( - (__v16si)__A, (__v16si)__B, (__v16si)__C, __imm, (__mmask16)__U); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rcp14_pd(__m512d __A) { - return (__m512d)__builtin_ia32_rcp14pd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_rcp14_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rcp14pd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rcp14_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rcp14pd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rcp14_ps(__m512 __A) { - return (__m512)__builtin_ia32_rcp14ps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_rcp14_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rcp14ps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rcp14_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rcp14ps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp14_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rcp14sd((__v2df)__B, (__v2df)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp14_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rcp14sd_mask((__v2df)__B, (__v2df)__A, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp14_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rcp14sd_mask( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp14_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rcp14ss((__v4sf)__B, (__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp14_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rcp14ss_mask((__v4sf)__B, (__v4sf)__A, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp14_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rcp14ss_mask( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rsqrt14_pd(__m512d __A) { - return (__m512d)__builtin_ia32_rsqrt14pd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_rsqrt14_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rsqrt14pd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rsqrt14_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rsqrt14pd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rsqrt14_ps(__m512 __A) { - return (__m512)__builtin_ia32_rsqrt14ps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_rsqrt14_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rsqrt14ps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rsqrt14_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rsqrt14ps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt14_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rsqrt14sd((__v2df)__B, (__v2df)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt14_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rsqrt14sd_mask((__v2df)__B, (__v2df)__A, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rsqrt14_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_rsqrt14sd_mask( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt14_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rsqrt14ss((__v4sf)__B, (__v4sf)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt14_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rsqrt14ss_mask((__v4sf)__B, (__v4sf)__A, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rsqrt14_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_rsqrt14ss_mask( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sqrt_round_pd(__m512d __A, const int __R) { - return (__m512d)__builtin_ia32_sqrtpd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sqrt_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512d)__builtin_ia32_sqrtpd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sqrt_round_pd(__mmask8 __U, __m512d __A, const int __R) { - return (__m512d)__builtin_ia32_sqrtpd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sqrt_round_ps(__m512 __A, const int __R) { - return (__m512)__builtin_ia32_sqrtps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sqrt_round_ps(__m512 __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512)__builtin_ia32_sqrtps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sqrt_round_ps(__mmask16 __U, __m512 __A, const int __R) { - return (__m512)__builtin_ia32_sqrtps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_sqrtsd_mask_round( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sqrt_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_sqrtsd_mask_round( - (__v2df)__B, (__v2df)__A, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_sqrt_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_sqrtsd_mask_round( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sqrt_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_sqrtss_mask_round( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sqrt_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_sqrtss_mask_round( - (__v4sf)__B, (__v4sf)__A, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_sqrt_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_sqrtss_mask_round( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi8_epi32(__m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbd512_mask( - (__v16qi)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi8_epi32(__m512i __W, __mmask16 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbd512_mask((__v16qi)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi8_epi32(__mmask16 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbd512_mask( - (__v16qi)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi8_epi64(__m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbq512_mask( - (__v16qi)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi8_epi64(__m512i __W, __mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbq512_mask((__v16qi)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi8_epi64(__mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxbq512_mask( - (__v16qi)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi16_epi32(__m256i __A) { - return (__m512i)__builtin_ia32_pmovsxwd512_mask( - (__v16hi)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi16_epi32(__m512i __W, __mmask16 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovsxwd512_mask((__v16hi)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi16_epi32(__mmask16 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovsxwd512_mask( - (__v16hi)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi16_epi64(__m128i __A) { - return (__m512i)__builtin_ia32_pmovsxwq512_mask( - (__v8hi)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi16_epi64(__m512i __W, __mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxwq512_mask((__v8hi)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi16_epi64(__mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovsxwq512_mask( - (__v8hi)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi32_epi64(__m256i __X) { - return (__m512i)__builtin_ia32_pmovsxdq512_mask( - (__v8si)__X, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_epi64(__m512i __W, __mmask8 __U, __m256i __X) { - return (__m512i)__builtin_ia32_pmovsxdq512_mask((__v8si)__X, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi32_epi64(__mmask8 __U, __m256i __X) { - return (__m512i)__builtin_ia32_pmovsxdq512_mask( - (__v8si)__X, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu8_epi32(__m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbd512_mask( - (__v16qi)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu8_epi32(__m512i __W, __mmask16 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbd512_mask((__v16qi)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu8_epi32(__mmask16 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbd512_mask( - (__v16qi)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu8_epi64(__m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbq512_mask( - (__v16qi)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu8_epi64(__m512i __W, __mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbq512_mask((__v16qi)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu8_epi64(__mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxbq512_mask( - (__v16qi)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu16_epi32(__m256i __A) { - return (__m512i)__builtin_ia32_pmovzxwd512_mask( - (__v16hi)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu16_epi32(__m512i __W, __mmask16 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovzxwd512_mask((__v16hi)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu16_epi32(__mmask16 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovzxwd512_mask( - (__v16hi)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu16_epi64(__m128i __A) { - return (__m512i)__builtin_ia32_pmovzxwq512_mask( - (__v8hi)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu16_epi64(__m512i __W, __mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxwq512_mask((__v8hi)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu16_epi64(__mmask8 __U, __m128i __A) { - return (__m512i)__builtin_ia32_pmovzxwq512_mask( - (__v8hi)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu32_epi64(__m256i __X) { - return (__m512i)__builtin_ia32_pmovzxdq512_mask( - (__v8si)__X, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu32_epi64(__m512i __W, __mmask8 __U, __m256i __X) { - return (__m512i)__builtin_ia32_pmovzxdq512_mask((__v8si)__X, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu32_epi64(__mmask8 __U, __m256i __X) { - return (__m512i)__builtin_ia32_pmovzxdq512_mask( - (__v8si)__X, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_addpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_addpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_addpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_addps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_addps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_addps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_subpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_subpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_subpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_subps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_subps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_subps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_mulpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_mulpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_mulpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_mulps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_mulps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_mulps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_div_round_pd(__m512d __M, __m512d __V, const int __R) { - return (__m512d)__builtin_ia32_divpd512_mask((__v8df)__M, (__v8df)__V, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_div_round_pd(__m512d __W, __mmask8 __U, __m512d __M, - __m512d __V, const int __R) { - return (__m512d)__builtin_ia32_divpd512_mask((__v8df)__M, (__v8df)__V, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_div_round_pd(__mmask8 __U, __m512d __M, __m512d __V, - const int __R) { - return (__m512d)__builtin_ia32_divpd512_mask((__v8df)__M, (__v8df)__V, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_div_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_divps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_div_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_divps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_div_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_divps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_mulsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_mulsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_mul_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_mulsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mul_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_mulss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_mulss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_mul_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_mulss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_divsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_divsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_div_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_divsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_div_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_divss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_divss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_div_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_divss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_maxpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_maxpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_maxpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_maxps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_maxps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_maxps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_minpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_minpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_minpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_minps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_round_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_minps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_minps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_scalef_round_pd(__m512d __A, __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_scalefpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_scalef_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __R) { - return (__m512d)__builtin_ia32_scalefpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_scalef_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - const int __R) { - return (__m512d)__builtin_ia32_scalefpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_scalef_round_ps(__m512 __A, __m512 __B, const int __R) { - return (__m512)__builtin_ia32_scalefps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_scalef_round_ps(__m512 __W, __mmask16 __U, __m512 __A, - __m512 __B, const int __R) { - return (__m512)__builtin_ia32_scalefps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_scalef_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - const int __R) { - return (__m512)__builtin_ia32_scalefps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_scalefsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)-1, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_scalef_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_scalefsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_scalef_round_sd(__mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_scalefsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_scalefss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_scalef_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_scalefss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_scalef_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_scalefss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmadd_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmadd_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmadd_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmadd_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmadd_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmadd_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmadd_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfmaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmadd_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmsub_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsub_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsub_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsub_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmsub_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsub_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsub_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfmsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsub_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmaddsub_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmaddsub_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmaddsub_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmaddsub_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmaddsub_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmaddsub_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmaddsub_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmaddsub_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmsubadd_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsubadd_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsubadd_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfmsubaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsubadd_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_maskz( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fmsubadd_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsubadd_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsubadd_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfmsubaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsubadd_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfmaddsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fnmadd_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmadd_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmadd_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmadd_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmaddpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmadd_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmadd_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmadd_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfnmaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmadd_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmaddps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_fnmsub_round_pd(__m512d __A, __m512d __B, __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmsub_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmsub_round_pd(__m512d __A, __m512d __B, __m512d __C, - __mmask8 __U, const int __R) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmsub_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512d __C, const int __R) { - return (__m512d)__builtin_ia32_vfnmsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmsub_round_ps(__m512 __A, __m512 __B, __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmsub_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmsub_round_ps(__m512 __A, __m512 __B, __m512 __C, - __mmask16 __U, const int __R) { - return (__m512)__builtin_ia32_vfnmsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmsub_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512 __C, const int __R) { - return (__m512)__builtin_ia32_vfnmsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, __R); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_epi64(__m512i __A) { - return (__m512i)__builtin_ia32_pabsq512_mask( - (__v8di)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsq512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_abs_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsq512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_epi32(__m512i __A) { - return (__m512i)__builtin_ia32_pabsd512_mask( - (__v16si)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsd512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_abs_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsd512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastss_ps(__m128 __A) { - return (__m512)__builtin_ia32_broadcastss512( - (__v4sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastss_ps(__m512 __O, __mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastss512((__v4sf)__A, (__v16sf)__O, __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastss_ps(__mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastss512( - (__v4sf)__A, (__v16sf)_mm512_setzero_ps(), __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastsd_pd(__m128d __A) { - return (__m512d)__builtin_ia32_broadcastsd512( - (__v2df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastsd_pd(__m512d __O, __mmask8 __M, __m128d __A) { - return (__m512d)__builtin_ia32_broadcastsd512((__v2df)__A, (__v8df)__O, __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastsd_pd(__mmask8 __M, __m128d __A) { - return (__m512d)__builtin_ia32_broadcastsd512( - (__v2df)__A, (__v8df)_mm512_setzero_pd(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastd_epi32(__m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastd512( - (__v4si)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastd_epi32(__m512i __O, __mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastd512((__v4si)__A, (__v16si)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastd_epi32(__mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastd512( - (__v4si)__A, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_epi32(int __A) { - return (__m512i)(__v16si){__A, __A, __A, __A, __A, __A, __A, __A, - __A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_set1_epi32(__m512i __O, __mmask16 __M, int __A) { - return (__m512i)__builtin_ia32_pbroadcastd512_gpr_mask(__A, (__v16si)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_set1_epi32(__mmask16 __M, int __A) { - return (__m512i)__builtin_ia32_pbroadcastd512_gpr_mask( - __A, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastq_epi64(__m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastq512( - (__v2di)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastq_epi64(__m512i __O, __mmask8 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastq512((__v2di)__A, (__v8di)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastq_epi64(__mmask8 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastq512( - (__v2di)__A, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_set1_epi64(long long __A) { - return (__m512i)(__v8di){__A, __A, __A, __A, __A, __A, __A, __A}; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_set1_epi64(__m512i __O, __mmask8 __M, long long __A) { - return (__m512i)__builtin_ia32_pbroadcastq512_gpr_mask(__A, (__v8di)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_set1_epi64(__mmask8 __M, long long __A) { - return (__m512i)__builtin_ia32_pbroadcastq512_gpr_mask( - __A, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_f32x4(__m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x4_512( - (__v4sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_f32x4(__m512 __O, __mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x4_512((__v4sf)__A, (__v16sf)__O, - __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_f32x4(__mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x4_512( - (__v4sf)__A, (__v16sf)_mm512_setzero_ps(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_i32x4(__m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x4_512( - (__v4si)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_i32x4(__m512i __O, __mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x4_512((__v4si)__A, (__v16si)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_i32x4(__mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x4_512( - (__v4si)__A, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_f64x4(__m256d __A) { - return (__m512d)__builtin_ia32_broadcastf64x4_512( - (__v4df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_f64x4(__m512d __O, __mmask8 __M, __m256d __A) { - return (__m512d)__builtin_ia32_broadcastf64x4_512((__v4df)__A, (__v8df)__O, - __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_f64x4(__mmask8 __M, __m256d __A) { - return (__m512d)__builtin_ia32_broadcastf64x4_512( - (__v4df)__A, (__v8df)_mm512_setzero_pd(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_i64x4(__m256i __A) { - return (__m512i)__builtin_ia32_broadcasti64x4_512( - (__v4di)__A, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_i64x4(__m512i __O, __mmask8 __M, __m256i __A) { - return (__m512i)__builtin_ia32_broadcasti64x4_512((__v4di)__A, (__v8di)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_i64x4(__mmask8 __M, __m256i __A) { - return (__m512i)__builtin_ia32_broadcasti64x4_512( - (__v4di)__A, (__v8di)_mm512_setzero_si512(), __M); -} - -typedef enum { - _MM_PERM_AAAA = 0x00, - _MM_PERM_AAAB = 0x01, - _MM_PERM_AAAC = 0x02, - _MM_PERM_AAAD = 0x03, - _MM_PERM_AABA = 0x04, - _MM_PERM_AABB = 0x05, - _MM_PERM_AABC = 0x06, - _MM_PERM_AABD = 0x07, - _MM_PERM_AACA = 0x08, - _MM_PERM_AACB = 0x09, - _MM_PERM_AACC = 0x0A, - _MM_PERM_AACD = 0x0B, - _MM_PERM_AADA = 0x0C, - _MM_PERM_AADB = 0x0D, - _MM_PERM_AADC = 0x0E, - _MM_PERM_AADD = 0x0F, - _MM_PERM_ABAA = 0x10, - _MM_PERM_ABAB = 0x11, - _MM_PERM_ABAC = 0x12, - _MM_PERM_ABAD = 0x13, - _MM_PERM_ABBA = 0x14, - _MM_PERM_ABBB = 0x15, - _MM_PERM_ABBC = 0x16, - _MM_PERM_ABBD = 0x17, - _MM_PERM_ABCA = 0x18, - _MM_PERM_ABCB = 0x19, - _MM_PERM_ABCC = 0x1A, - _MM_PERM_ABCD = 0x1B, - _MM_PERM_ABDA = 0x1C, - _MM_PERM_ABDB = 0x1D, - _MM_PERM_ABDC = 0x1E, - _MM_PERM_ABDD = 0x1F, - _MM_PERM_ACAA = 0x20, - _MM_PERM_ACAB = 0x21, - _MM_PERM_ACAC = 0x22, - _MM_PERM_ACAD = 0x23, - _MM_PERM_ACBA = 0x24, - _MM_PERM_ACBB = 0x25, - _MM_PERM_ACBC = 0x26, - _MM_PERM_ACBD = 0x27, - _MM_PERM_ACCA = 0x28, - _MM_PERM_ACCB = 0x29, - _MM_PERM_ACCC = 0x2A, - _MM_PERM_ACCD = 0x2B, - _MM_PERM_ACDA = 0x2C, - _MM_PERM_ACDB = 0x2D, - _MM_PERM_ACDC = 0x2E, - _MM_PERM_ACDD = 0x2F, - _MM_PERM_ADAA = 0x30, - _MM_PERM_ADAB = 0x31, - _MM_PERM_ADAC = 0x32, - _MM_PERM_ADAD = 0x33, - _MM_PERM_ADBA = 0x34, - _MM_PERM_ADBB = 0x35, - _MM_PERM_ADBC = 0x36, - _MM_PERM_ADBD = 0x37, - _MM_PERM_ADCA = 0x38, - _MM_PERM_ADCB = 0x39, - _MM_PERM_ADCC = 0x3A, - _MM_PERM_ADCD = 0x3B, - _MM_PERM_ADDA = 0x3C, - _MM_PERM_ADDB = 0x3D, - _MM_PERM_ADDC = 0x3E, - _MM_PERM_ADDD = 0x3F, - _MM_PERM_BAAA = 0x40, - _MM_PERM_BAAB = 0x41, - _MM_PERM_BAAC = 0x42, - _MM_PERM_BAAD = 0x43, - _MM_PERM_BABA = 0x44, - _MM_PERM_BABB = 0x45, - _MM_PERM_BABC = 0x46, - _MM_PERM_BABD = 0x47, - _MM_PERM_BACA = 0x48, - _MM_PERM_BACB = 0x49, - _MM_PERM_BACC = 0x4A, - _MM_PERM_BACD = 0x4B, - _MM_PERM_BADA = 0x4C, - _MM_PERM_BADB = 0x4D, - _MM_PERM_BADC = 0x4E, - _MM_PERM_BADD = 0x4F, - _MM_PERM_BBAA = 0x50, - _MM_PERM_BBAB = 0x51, - _MM_PERM_BBAC = 0x52, - _MM_PERM_BBAD = 0x53, - _MM_PERM_BBBA = 0x54, - _MM_PERM_BBBB = 0x55, - _MM_PERM_BBBC = 0x56, - _MM_PERM_BBBD = 0x57, - _MM_PERM_BBCA = 0x58, - _MM_PERM_BBCB = 0x59, - _MM_PERM_BBCC = 0x5A, - _MM_PERM_BBCD = 0x5B, - _MM_PERM_BBDA = 0x5C, - _MM_PERM_BBDB = 0x5D, - _MM_PERM_BBDC = 0x5E, - _MM_PERM_BBDD = 0x5F, - _MM_PERM_BCAA = 0x60, - _MM_PERM_BCAB = 0x61, - _MM_PERM_BCAC = 0x62, - _MM_PERM_BCAD = 0x63, - _MM_PERM_BCBA = 0x64, - _MM_PERM_BCBB = 0x65, - _MM_PERM_BCBC = 0x66, - _MM_PERM_BCBD = 0x67, - _MM_PERM_BCCA = 0x68, - _MM_PERM_BCCB = 0x69, - _MM_PERM_BCCC = 0x6A, - _MM_PERM_BCCD = 0x6B, - _MM_PERM_BCDA = 0x6C, - _MM_PERM_BCDB = 0x6D, - _MM_PERM_BCDC = 0x6E, - _MM_PERM_BCDD = 0x6F, - _MM_PERM_BDAA = 0x70, - _MM_PERM_BDAB = 0x71, - _MM_PERM_BDAC = 0x72, - _MM_PERM_BDAD = 0x73, - _MM_PERM_BDBA = 0x74, - _MM_PERM_BDBB = 0x75, - _MM_PERM_BDBC = 0x76, - _MM_PERM_BDBD = 0x77, - _MM_PERM_BDCA = 0x78, - _MM_PERM_BDCB = 0x79, - _MM_PERM_BDCC = 0x7A, - _MM_PERM_BDCD = 0x7B, - _MM_PERM_BDDA = 0x7C, - _MM_PERM_BDDB = 0x7D, - _MM_PERM_BDDC = 0x7E, - _MM_PERM_BDDD = 0x7F, - _MM_PERM_CAAA = 0x80, - _MM_PERM_CAAB = 0x81, - _MM_PERM_CAAC = 0x82, - _MM_PERM_CAAD = 0x83, - _MM_PERM_CABA = 0x84, - _MM_PERM_CABB = 0x85, - _MM_PERM_CABC = 0x86, - _MM_PERM_CABD = 0x87, - _MM_PERM_CACA = 0x88, - _MM_PERM_CACB = 0x89, - _MM_PERM_CACC = 0x8A, - _MM_PERM_CACD = 0x8B, - _MM_PERM_CADA = 0x8C, - _MM_PERM_CADB = 0x8D, - _MM_PERM_CADC = 0x8E, - _MM_PERM_CADD = 0x8F, - _MM_PERM_CBAA = 0x90, - _MM_PERM_CBAB = 0x91, - _MM_PERM_CBAC = 0x92, - _MM_PERM_CBAD = 0x93, - _MM_PERM_CBBA = 0x94, - _MM_PERM_CBBB = 0x95, - _MM_PERM_CBBC = 0x96, - _MM_PERM_CBBD = 0x97, - _MM_PERM_CBCA = 0x98, - _MM_PERM_CBCB = 0x99, - _MM_PERM_CBCC = 0x9A, - _MM_PERM_CBCD = 0x9B, - _MM_PERM_CBDA = 0x9C, - _MM_PERM_CBDB = 0x9D, - _MM_PERM_CBDC = 0x9E, - _MM_PERM_CBDD = 0x9F, - _MM_PERM_CCAA = 0xA0, - _MM_PERM_CCAB = 0xA1, - _MM_PERM_CCAC = 0xA2, - _MM_PERM_CCAD = 0xA3, - _MM_PERM_CCBA = 0xA4, - _MM_PERM_CCBB = 0xA5, - _MM_PERM_CCBC = 0xA6, - _MM_PERM_CCBD = 0xA7, - _MM_PERM_CCCA = 0xA8, - _MM_PERM_CCCB = 0xA9, - _MM_PERM_CCCC = 0xAA, - _MM_PERM_CCCD = 0xAB, - _MM_PERM_CCDA = 0xAC, - _MM_PERM_CCDB = 0xAD, - _MM_PERM_CCDC = 0xAE, - _MM_PERM_CCDD = 0xAF, - _MM_PERM_CDAA = 0xB0, - _MM_PERM_CDAB = 0xB1, - _MM_PERM_CDAC = 0xB2, - _MM_PERM_CDAD = 0xB3, - _MM_PERM_CDBA = 0xB4, - _MM_PERM_CDBB = 0xB5, - _MM_PERM_CDBC = 0xB6, - _MM_PERM_CDBD = 0xB7, - _MM_PERM_CDCA = 0xB8, - _MM_PERM_CDCB = 0xB9, - _MM_PERM_CDCC = 0xBA, - _MM_PERM_CDCD = 0xBB, - _MM_PERM_CDDA = 0xBC, - _MM_PERM_CDDB = 0xBD, - _MM_PERM_CDDC = 0xBE, - _MM_PERM_CDDD = 0xBF, - _MM_PERM_DAAA = 0xC0, - _MM_PERM_DAAB = 0xC1, - _MM_PERM_DAAC = 0xC2, - _MM_PERM_DAAD = 0xC3, - _MM_PERM_DABA = 0xC4, - _MM_PERM_DABB = 0xC5, - _MM_PERM_DABC = 0xC6, - _MM_PERM_DABD = 0xC7, - _MM_PERM_DACA = 0xC8, - _MM_PERM_DACB = 0xC9, - _MM_PERM_DACC = 0xCA, - _MM_PERM_DACD = 0xCB, - _MM_PERM_DADA = 0xCC, - _MM_PERM_DADB = 0xCD, - _MM_PERM_DADC = 0xCE, - _MM_PERM_DADD = 0xCF, - _MM_PERM_DBAA = 0xD0, - _MM_PERM_DBAB = 0xD1, - _MM_PERM_DBAC = 0xD2, - _MM_PERM_DBAD = 0xD3, - _MM_PERM_DBBA = 0xD4, - _MM_PERM_DBBB = 0xD5, - _MM_PERM_DBBC = 0xD6, - _MM_PERM_DBBD = 0xD7, - _MM_PERM_DBCA = 0xD8, - _MM_PERM_DBCB = 0xD9, - _MM_PERM_DBCC = 0xDA, - _MM_PERM_DBCD = 0xDB, - _MM_PERM_DBDA = 0xDC, - _MM_PERM_DBDB = 0xDD, - _MM_PERM_DBDC = 0xDE, - _MM_PERM_DBDD = 0xDF, - _MM_PERM_DCAA = 0xE0, - _MM_PERM_DCAB = 0xE1, - _MM_PERM_DCAC = 0xE2, - _MM_PERM_DCAD = 0xE3, - _MM_PERM_DCBA = 0xE4, - _MM_PERM_DCBB = 0xE5, - _MM_PERM_DCBC = 0xE6, - _MM_PERM_DCBD = 0xE7, - _MM_PERM_DCCA = 0xE8, - _MM_PERM_DCCB = 0xE9, - _MM_PERM_DCCC = 0xEA, - _MM_PERM_DCCD = 0xEB, - _MM_PERM_DCDA = 0xEC, - _MM_PERM_DCDB = 0xED, - _MM_PERM_DCDC = 0xEE, - _MM_PERM_DCDD = 0xEF, - _MM_PERM_DDAA = 0xF0, - _MM_PERM_DDAB = 0xF1, - _MM_PERM_DDAC = 0xF2, - _MM_PERM_DDAD = 0xF3, - _MM_PERM_DDBA = 0xF4, - _MM_PERM_DDBB = 0xF5, - _MM_PERM_DDBC = 0xF6, - _MM_PERM_DDBD = 0xF7, - _MM_PERM_DDCA = 0xF8, - _MM_PERM_DDCB = 0xF9, - _MM_PERM_DDCC = 0xFA, - _MM_PERM_DDCD = 0xFB, - _MM_PERM_DDDA = 0xFC, - _MM_PERM_DDDB = 0xFD, - _MM_PERM_DDDC = 0xFE, - _MM_PERM_DDDD = 0xFF -} _MM_PERM_ENUM; - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_epi32(__m512i __A, _MM_PERM_ENUM __mask) { - return (__m512i)__builtin_ia32_pshufd512_mask( - (__v16si)__A, __mask, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_epi32(__m512i __W, __mmask16 __U, __m512i __A, - _MM_PERM_ENUM __mask) { - return (__m512i)__builtin_ia32_pshufd512_mask((__v16si)__A, __mask, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shuffle_epi32(__mmask16 __U, __m512i __A, _MM_PERM_ENUM __mask) { - return (__m512i)__builtin_ia32_pshufd512_mask( - (__v16si)__A, __mask, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_i64x2(__m512i __A, __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_shuf_i64x2_mask( - (__v8di)__A, (__v8di)__B, __imm, (__v8di)_mm512_undefined_epi32(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_i64x2(__m512i __W, __mmask8 __U, __m512i __A, - __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_shuf_i64x2_mask( - (__v8di)__A, (__v8di)__B, __imm, (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_i64x2(__mmask8 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_shuf_i64x2_mask( - (__v8di)__A, (__v8di)__B, __imm, (__v8di)_mm512_setzero_si512(), - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_i32x4(__m512i __A, __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_shuf_i32x4_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_i32x4(__m512i __W, __mmask16 __U, __m512i __A, - __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_shuf_i32x4_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_i32x4(__mmask16 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_shuf_i32x4_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_f64x2(__m512d __A, __m512d __B, const int __imm) { - return (__m512d)__builtin_ia32_shuf_f64x2_mask( - (__v8df)__A, (__v8df)__B, __imm, (__v8df)_mm512_undefined_pd(), - (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_f64x2(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, const int __imm) { - return (__m512d)__builtin_ia32_shuf_f64x2_mask( - (__v8df)__A, (__v8df)__B, __imm, (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_f64x2(__mmask8 __U, __m512d __A, __m512d __B, - const int __imm) { - return (__m512d)__builtin_ia32_shuf_f64x2_mask( - (__v8df)__A, (__v8df)__B, __imm, (__v8df)_mm512_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_f32x4(__m512 __A, __m512 __B, const int __imm) { - return (__m512)__builtin_ia32_shuf_f32x4_mask( - (__v16sf)__A, (__v16sf)__B, __imm, (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_f32x4(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - const int __imm) { - return (__m512)__builtin_ia32_shuf_f32x4_mask( - (__v16sf)__A, (__v16sf)__B, __imm, (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_f32x4(__mmask16 __U, __m512 __A, __m512 __B, - const int __imm) { - return (__m512)__builtin_ia32_shuf_f32x4_mask( - (__v16sf)__A, (__v16sf)__B, __imm, (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rolv_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rolv_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rolv_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rorv_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rorv_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rorv_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rolv_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rolv_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rolv_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prolvq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rorv_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rorv_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rorv_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_prorvq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundpd_epi32(__m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundpd_epi32(__m256i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundpd_epi32(__mmask8 __U, __m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundpd_epu32(__m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundpd_epu32(__m256i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundpd_epu32(__mmask8 __U, __m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, __R); -} -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundpd_epi32(__m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundpd_epi32(__m256i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundpd_epi32(__mmask8 __U, __m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundpd_epu32(__m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundpd_epu32(__m256i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundpd_epu32(__mmask8 __U, __m512d __A, const int __R) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, __R); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundps_epi32(__m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundps_epi32(__m512i __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundps_epi32(__mmask16 __U, __m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundps_epu32(__m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundps_epu32(__m512i __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundps_epu32(__mmask16 __U, __m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, __R); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_epi32(__m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_epi32(__m512i __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_epi32(__mmask16 __U, __m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_epu32(__m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_epu32(__m512i __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_epu32(__mmask16 __U, __m512 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, __R); -} -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtu32_sd(__m128d __A, unsigned __B) { - return (__m128d)__builtin_ia32_cvtusi2sd32((__v2df)__A, __B); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundu64_sd(__m128d __A, unsigned long long __B, const int __R) { - return (__m128d)__builtin_ia32_cvtusi2sd64((__v2df)__A, __B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundi64_sd(__m128d __A, long long __B, const int __R) { - return (__m128d)__builtin_ia32_cvtsi2sd64((__v2df)__A, __B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsi64_sd(__m128d __A, long long __B, const int __R) { - return (__m128d)__builtin_ia32_cvtsi2sd64((__v2df)__A, __B, __R); -} -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundu32_ss(__m128 __A, unsigned __B, const int __R) { - return (__m128)__builtin_ia32_cvtusi2ss32((__v4sf)__A, __B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsi32_ss(__m128 __A, int __B, const int __R) { - return (__m128)__builtin_ia32_cvtsi2ss32((__v4sf)__A, __B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundi32_ss(__m128 __A, int __B, const int __R) { - return (__m128)__builtin_ia32_cvtsi2ss32((__v4sf)__A, __B, __R); -} -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundu64_ss(__m128 __A, unsigned long long __B, const int __R) { - return (__m128)__builtin_ia32_cvtusi2ss64((__v4sf)__A, __B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsi64_ss(__m128 __A, long long __B, const int __R) { - return (__m128)__builtin_ia32_cvtsi2ss64((__v4sf)__A, __B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundi64_ss(__m128 __A, long long __B, const int __R) { - return (__m128)__builtin_ia32_cvtsi2ss64((__v4sf)__A, __B, __R); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi32_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovdb512_mask( - (__v16si)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_storeu_epi8(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovdb512mem_mask((__v16qi *)__P, (__v16si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_epi8(__m128i __O, __mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovdb512_mask((__v16si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi32_epi8(__mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovdb512_mask( - (__v16si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi32_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovsdb512_mask( - (__v16si)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi32_storeu_epi8(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovsdb512mem_mask((__v16qi *)__P, (__v16si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi32_epi8(__m128i __O, __mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsdb512_mask((__v16si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi32_epi8(__mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsdb512_mask( - (__v16si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi32_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovusdb512_mask( - (__v16si)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi32_storeu_epi8(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovusdb512mem_mask((__v16qi *)__P, (__v16si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi32_epi8(__m128i __O, __mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusdb512_mask((__v16si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi32_epi8(__mmask16 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusdb512_mask( - (__v16si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi32_epi16(__m512i __A) { - return (__m256i)__builtin_ia32_pmovdw512_mask( - (__v16si)__A, (__v16hi)_mm256_undefined_si256(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_storeu_epi16(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovdw512mem_mask((__v16hi *)__P, (__v16si)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_epi16(__m256i __O, __mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovdw512_mask((__v16si)__A, (__v16hi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi32_epi16(__mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovdw512_mask( - (__v16si)__A, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi32_epi16(__m512i __A) { - return (__m256i)__builtin_ia32_pmovsdw512_mask( - (__v16si)__A, (__v16hi)_mm256_undefined_si256(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi32_storeu_epi16(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovsdw512mem_mask((__v16hi *)__P, (__v16si)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi32_epi16(__m256i __O, __mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovsdw512_mask((__v16si)__A, (__v16hi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi32_epi16(__mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovsdw512_mask( - (__v16si)__A, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi32_epi16(__m512i __A) { - return (__m256i)__builtin_ia32_pmovusdw512_mask( - (__v16si)__A, (__v16hi)_mm256_undefined_si256(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi32_storeu_epi16(void *__P, __mmask16 __M, __m512i __A) { - __builtin_ia32_pmovusdw512mem_mask((__v16hi *)__P, (__v16si)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi32_epi16(__m256i __O, __mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovusdw512_mask((__v16si)__A, (__v16hi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi32_epi16(__mmask16 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovusdw512_mask( - (__v16si)__A, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi64_epi32(__m512i __A) { - return (__m256i)__builtin_ia32_pmovqd512_mask( - (__v8di)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_storeu_epi32(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovqd512mem_mask((__v8si *)__P, (__v8di)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_epi32(__m256i __O, __mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovqd512_mask((__v8di)__A, (__v8si)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi64_epi32(__mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovqd512_mask( - (__v8di)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi64_epi32(__m512i __A) { - return (__m256i)__builtin_ia32_pmovsqd512_mask( - (__v8di)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_storeu_epi32(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovsqd512mem_mask((__v8si *)__P, (__v8di)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_epi32(__m256i __O, __mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovsqd512_mask((__v8di)__A, (__v8si)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi64_epi32(__mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovsqd512_mask( - (__v8di)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi64_epi32(__m512i __A) { - return (__m256i)__builtin_ia32_pmovusqd512_mask( - (__v8di)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_storeu_epi32(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovusqd512mem_mask((__v8si *)__P, (__v8di)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_epi32(__m256i __O, __mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovusqd512_mask((__v8di)__A, (__v8si)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi64_epi32(__mmask8 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovusqd512_mask( - (__v8di)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi64_epi16(__m512i __A) { - return (__m128i)__builtin_ia32_pmovqw512_mask( - (__v8di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_storeu_epi16(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovqw512mem_mask((__v8hi *)__P, (__v8di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_epi16(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovqw512_mask((__v8di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi64_epi16(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovqw512_mask( - (__v8di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi64_epi16(__m512i __A) { - return (__m128i)__builtin_ia32_pmovsqw512_mask( - (__v8di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_storeu_epi16(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovsqw512mem_mask((__v8hi *)__P, (__v8di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_epi16(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsqw512_mask((__v8di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi64_epi16(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsqw512_mask( - (__v8di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi64_epi16(__m512i __A) { - return (__m128i)__builtin_ia32_pmovusqw512_mask( - (__v8di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_storeu_epi16(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovusqw512mem_mask((__v8hi *)__P, (__v8di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_epi16(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusqw512_mask((__v8di)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi64_epi16(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusqw512_mask( - (__v8di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi64_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovqb512_mask( - (__v8di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_storeu_epi8(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovqb512mem_mask((unsigned long long *)__P, (__v8di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_epi8(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovqb512_mask((__v8di)__A, (__v16qi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi64_epi8(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovqb512_mask( - (__v8di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi64_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovsqb512_mask( - (__v8di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_storeu_epi8(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovsqb512mem_mask((unsigned long long *)__P, (__v8di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi64_epi8(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsqb512_mask((__v8di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi64_epi8(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovsqb512_mask( - (__v8di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi64_epi8(__m512i __A) { - return (__m128i)__builtin_ia32_pmovusqb512_mask( - (__v8di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_storeu_epi8(void *__P, __mmask8 __M, __m512i __A) { - __builtin_ia32_pmovusqb512mem_mask((unsigned long long *)__P, (__v8di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi64_epi8(__m128i __O, __mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusqb512_mask((__v8di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi64_epi8(__mmask8 __M, __m512i __A) { - return (__m128i)__builtin_ia32_pmovusqb512_mask( - (__v8di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi32_pd(__m256i __A) { - return (__m512d)__builtin_ia32_cvtdq2pd512_mask( - (__v8si)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_pd(__m512d __W, __mmask8 __U, __m256i __A) { - return (__m512d)__builtin_ia32_cvtdq2pd512_mask((__v8si)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi32_pd(__mmask8 __U, __m256i __A) { - return (__m512d)__builtin_ia32_cvtdq2pd512_mask( - (__v8si)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu32_pd(__m256i __A) { - return (__m512d)__builtin_ia32_cvtudq2pd512_mask( - (__v8si)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu32_pd(__m512d __W, __mmask8 __U, __m256i __A) { - return (__m512d)__builtin_ia32_cvtudq2pd512_mask((__v8si)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu32_pd(__mmask8 __U, __m256i __A) { - return (__m512d)__builtin_ia32_cvtudq2pd512_mask( - (__v8si)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepi32_ps(__m512i __A, const int __R) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepi32_ps(__m512 __W, __mmask16 __U, __m512i __A, - const int __R) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask((__v16si)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepi32_ps(__mmask16 __U, __m512i __A, const int __R) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepu32_ps(__m512i __A, const int __R) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepu32_ps(__m512 __W, __mmask16 __U, __m512i __A, - const int __R) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask((__v16si)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepu32_ps(__mmask16 __U, __m512i __A, const int __R) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extractf64x4_pd(__m512d __A, const int __imm) { - return (__m256d)__builtin_ia32_extractf64x4_mask( - (__v8df)__A, __imm, (__v4df)_mm256_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extractf64x4_pd(__m256d __W, __mmask8 __U, __m512d __A, - const int __imm) { - return (__m256d)__builtin_ia32_extractf64x4_mask((__v8df)__A, __imm, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_extractf64x4_pd(__mmask8 __U, __m512d __A, const int __imm) { - return (__m256d)__builtin_ia32_extractf64x4_mask( - (__v8df)__A, __imm, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extractf32x4_ps(__m512 __A, const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_mask( - (__v16sf)__A, __imm, (__v4sf)_mm_undefined_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extractf32x4_ps(__m128 __W, __mmask8 __U, __m512 __A, - const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_mask((__v16sf)__A, __imm, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_extractf32x4_ps(__mmask8 __U, __m512 __A, const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_mask( - (__v16sf)__A, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extracti64x4_epi64(__m512i __A, const int __imm) { - return (__m256i)__builtin_ia32_extracti64x4_mask( - (__v8di)__A, __imm, (__v4di)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extracti64x4_epi64(__m256i __W, __mmask8 __U, __m512i __A, - const int __imm) { - return (__m256i)__builtin_ia32_extracti64x4_mask((__v8di)__A, __imm, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_extracti64x4_epi64(__mmask8 __U, __m512i __A, const int __imm) { - return (__m256i)__builtin_ia32_extracti64x4_mask( - (__v8di)__A, __imm, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extracti32x4_epi32(__m512i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_mask( - (__v16si)__A, __imm, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extracti32x4_epi32(__m128i __W, __mmask8 __U, __m512i __A, - const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_mask((__v16si)__A, __imm, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_extracti32x4_epi32(__mmask8 __U, __m512i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_mask( - (__v16si)__A, __imm, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_inserti32x4(__m512i __A, __m128i __B, const int __imm) { - return (__m512i)__builtin_ia32_inserti32x4_mask((__v16si)__A, (__v4si)__B, - __imm, (__v16si)__A, -1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_insertf32x4(__m512 __A, __m128 __B, const int __imm) { - return (__m512)__builtin_ia32_insertf32x4_mask((__v16sf)__A, (__v4sf)__B, - __imm, (__v16sf)__A, -1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_inserti64x4(__m512i __A, __m256i __B, const int __imm) { - return (__m512i)__builtin_ia32_inserti64x4_mask( - (__v8di)__A, (__v4di)__B, __imm, (__v8di)_mm512_undefined_epi32(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_inserti64x4(__m512i __W, __mmask8 __U, __m512i __A, __m256i __B, - const int __imm) { - return (__m512i)__builtin_ia32_inserti64x4_mask( - (__v8di)__A, (__v4di)__B, __imm, (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_inserti64x4(__mmask8 __U, __m512i __A, __m256i __B, - const int __imm) { - return (__m512i)__builtin_ia32_inserti64x4_mask( - (__v8di)__A, (__v4di)__B, __imm, (__v8di)_mm512_setzero_si512(), - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_insertf64x4(__m512d __A, __m256d __B, const int __imm) { - return (__m512d)__builtin_ia32_insertf64x4_mask( - (__v8df)__A, (__v4df)__B, __imm, (__v8df)_mm512_undefined_pd(), - (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_insertf64x4(__m512d __W, __mmask8 __U, __m512d __A, __m256d __B, - const int __imm) { - return (__m512d)__builtin_ia32_insertf64x4_mask( - (__v8df)__A, (__v4df)__B, __imm, (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_insertf64x4(__mmask8 __U, __m512d __A, __m256d __B, - const int __imm) { - return (__m512d)__builtin_ia32_insertf64x4_mask( - (__v8df)__A, (__v4df)__B, __imm, (__v8df)_mm512_setzero_pd(), - (__mmask8)__U); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_pd(void const *__P) { - return *(__m512d_u *)__P; -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_pd(__m512d __W, __mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_loadupd512_mask((const double *)__P, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_pd(__mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_loadupd512_mask( - (const double *)__P, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_pd(void *__P, __m512d __A) { - *(__m512d_u *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_pd(void *__P, __mmask8 __U, __m512d __A) { - __builtin_ia32_storeupd512_mask((double *)__P, (__v8df)__A, (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_ps(void const *__P) { - return *(__m512_u *)__P; -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_ps(__m512 __W, __mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_loadups512_mask((const float *)__P, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_ps(__mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_loadups512_mask( - (const float *)__P, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_ps(void *__P, __m512 __A) { - *(__m512_u *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_ps(void *__P, __mmask16 __U, __m512 __A) { - __builtin_ia32_storeups512_mask((float *)__P, (__v16sf)__A, (__mmask16)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_ss(__m128 __W, __mmask8 __U, const float *__P) { - return (__m128)__builtin_ia32_loadss_mask(__P, (__v4sf)__W, __U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_ss(__mmask8 __U, const float *__P) { - return (__m128)__builtin_ia32_loadss_mask(__P, (__v4sf)_mm_setzero_ps(), __U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_sd(__m128d __W, __mmask8 __U, const double *__P) { - return (__m128d)__builtin_ia32_loadsd_mask(__P, (__v2df)__W, __U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_sd(__mmask8 __U, const double *__P) { - return (__m128d)__builtin_ia32_loadsd_mask(__P, (__v2df)_mm_setzero_pd(), - __U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_move_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movess_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, __U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_move_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movess_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)_mm_setzero_ps(), __U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_move_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movesd_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, __U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_move_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movesd_mask((__v2df)__A, (__v2df)__B, - (__v2df)_mm_setzero_pd(), __U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_ss(float *__P, __mmask8 __U, __m128 __A) { - __builtin_ia32_storess_mask(__P, (__v4sf)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_sd(double *__P, __mmask8 __U, __m128d __A) { - __builtin_ia32_storesd_mask(__P, (__v2df)__A, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_epi64(void const *__P) { - return *(__m512i_u *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_epi64(__m512i __W, __mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddqudi512_mask((const long long *)__P, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_epi64(__mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddqudi512_mask( - (const long long *)__P, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_epi64(void *__P, __m512i __A) { - *(__m512i_u *)__P = (__m512i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_epi64(void *__P, __mmask8 __U, __m512i __A) { - __builtin_ia32_storedqudi512_mask((long long *)__P, (__v8di)__A, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_si512(void const *__P) { - return *(__m512i_u *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_epi32(void const *__P) { - return *(__m512i_u *)__P; -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_epi32(__m512i __W, __mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddqusi512_mask( - (const int *)__P, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_epi32(__mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddqusi512_mask( - (const int *)__P, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_si512(void *__P, __m512i __A) { - *(__m512i_u *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_epi32(void *__P, __m512i __A) { - *(__m512i_u *)__P = (__m512i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_epi32(void *__P, __mmask16 __U, __m512i __A) { - __builtin_ia32_storedqusi512_mask((int *)__P, (__v16si)__A, (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutevar_pd(__m512d __A, __m512i __C) { - return (__m512d)__builtin_ia32_vpermilvarpd512_mask( - (__v8df)__A, (__v8di)__C, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permutevar_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512i __C) { - return (__m512d)__builtin_ia32_vpermilvarpd512_mask( - (__v8df)__A, (__v8di)__C, (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutevar_pd(__mmask8 __U, __m512d __A, __m512i __C) { - return (__m512d)__builtin_ia32_vpermilvarpd512_mask( - (__v8df)__A, (__v8di)__C, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutevar_ps(__m512 __A, __m512i __C) { - return (__m512)__builtin_ia32_vpermilvarps512_mask( - (__v16sf)__A, (__v16si)__C, (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permutevar_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512i __C) { - return (__m512)__builtin_ia32_vpermilvarps512_mask( - (__v16sf)__A, (__v16si)__C, (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutevar_ps(__mmask16 __U, __m512 __A, __m512i __C) { - return (__m512)__builtin_ia32_vpermilvarps512_mask( - (__v16sf)__A, (__v16si)__C, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_epi64(__m512i __A, __m512i __I, __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varq512_mask((__v8di)__I, (__v8di)__A, - (__v8di)__B, (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_epi64(__m512i __A, __mmask8 __U, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varq512_mask( - (__v8di)__I, (__v8di)__A, (__v8di)__B, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_epi64(__m512i __A, __m512i __I, __mmask8 __U, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermi2varq512_mask( - (__v8di)__A, (__v8di)__I, (__v8di)__B, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_epi64(__mmask8 __U, __m512i __A, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varq512_maskz( - (__v8di)__I, (__v8di)__A, (__v8di)__B, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_epi32(__m512i __A, __m512i __I, __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2vard512_mask( - (__v16si)__I, (__v16si)__A, (__v16si)__B, (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_epi32(__m512i __A, __mmask16 __U, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2vard512_mask( - (__v16si)__I, (__v16si)__A, (__v16si)__B, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_epi32(__m512i __A, __m512i __I, __mmask16 __U, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermi2vard512_mask( - (__v16si)__A, (__v16si)__I, (__v16si)__B, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_epi32(__mmask16 __U, __m512i __A, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2vard512_maskz( - (__v16si)__I, (__v16si)__A, (__v16si)__B, (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_pd(__m512d __A, __m512i __I, __m512d __B) { - return (__m512d)__builtin_ia32_vpermt2varpd512_mask( - (__v8di)__I, (__v8df)__A, (__v8df)__B, (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_pd(__m512d __A, __mmask8 __U, __m512i __I, - __m512d __B) { - return (__m512d)__builtin_ia32_vpermt2varpd512_mask( - (__v8di)__I, (__v8df)__A, (__v8df)__B, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_pd(__m512d __A, __m512i __I, __mmask8 __U, - __m512d __B) { - return (__m512d)__builtin_ia32_vpermi2varpd512_mask( - (__v8df)__A, (__v8di)__I, (__v8df)__B, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_pd(__mmask8 __U, __m512d __A, __m512i __I, - __m512d __B) { - return (__m512d)__builtin_ia32_vpermt2varpd512_maskz( - (__v8di)__I, (__v8df)__A, (__v8df)__B, (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_ps(__m512 __A, __m512i __I, __m512 __B) { - return (__m512)__builtin_ia32_vpermt2varps512_mask( - (__v16si)__I, (__v16sf)__A, (__v16sf)__B, (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_ps(__m512 __A, __mmask16 __U, __m512i __I, - __m512 __B) { - return (__m512)__builtin_ia32_vpermt2varps512_mask( - (__v16si)__I, (__v16sf)__A, (__v16sf)__B, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_ps(__m512 __A, __m512i __I, __mmask16 __U, - __m512 __B) { - return (__m512)__builtin_ia32_vpermi2varps512_mask( - (__v16sf)__A, (__v16si)__I, (__v16sf)__B, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_ps(__mmask16 __U, __m512 __A, __m512i __I, - __m512 __B) { - return (__m512)__builtin_ia32_vpermt2varps512_maskz( - (__v16si)__I, (__v16sf)__A, (__v16sf)__B, (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permute_pd(__m512d __X, const int __C) { - return (__m512d)__builtin_ia32_vpermilpd512_mask( - (__v8df)__X, __C, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permute_pd(__m512d __W, __mmask8 __U, __m512d __X, const int __C) { - return (__m512d)__builtin_ia32_vpermilpd512_mask((__v8df)__X, __C, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permute_pd(__mmask8 __U, __m512d __X, const int __C) { - return (__m512d)__builtin_ia32_vpermilpd512_mask( - (__v8df)__X, __C, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permute_ps(__m512 __X, const int __C) { - return (__m512)__builtin_ia32_vpermilps512_mask( - (__v16sf)__X, __C, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permute_ps(__m512 __W, __mmask16 __U, __m512 __X, const int __C) { - return (__m512)__builtin_ia32_vpermilps512_mask((__v16sf)__X, __C, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permute_ps(__mmask16 __U, __m512 __X, const int __C) { - return (__m512)__builtin_ia32_vpermilps512_mask( - (__v16sf)__X, __C, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex_epi64(__m512i __X, const int __I) { - return (__m512i)__builtin_ia32_permdi512_mask( - (__v8di)__X, __I, (__v8di)_mm512_undefined_epi32(), (__mmask8)(-1)); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex_epi64(__m512i __W, __mmask8 __M, __m512i __X, - const int __I) { - return (__m512i)__builtin_ia32_permdi512_mask((__v8di)__X, __I, (__v8di)__W, - (__mmask8)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex_epi64(__mmask8 __M, __m512i __X, const int __I) { - return (__m512i)__builtin_ia32_permdi512_mask( - (__v8di)__X, __I, (__v8di)_mm512_setzero_si512(), (__mmask8)__M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex_pd(__m512d __X, const int __M) { - return (__m512d)__builtin_ia32_permdf512_mask( - (__v8df)__X, __M, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permutex_pd(__m512d __W, __mmask8 __U, __m512d __X, const int __M) { - return (__m512d)__builtin_ia32_permdf512_mask((__v8df)__X, __M, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex_pd(__mmask8 __U, __m512d __X, const int __M) { - return (__m512d)__builtin_ia32_permdf512_mask( - (__v8df)__X, __M, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_epi64(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_permvardi512_mask( - (__v8di)__Y, (__v8di)__X, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_epi64(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_permvardi512_mask( - (__v8di)__Y, (__v8di)__X, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutexvar_epi64(__m512i __W, __mmask8 __M, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_permvardi512_mask((__v8di)__Y, (__v8di)__X, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_epi32(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_permvarsi512_mask( - (__v16si)__Y, (__v16si)__X, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_epi32(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_permvarsi512_mask( - (__v16si)__Y, (__v16si)__X, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutexvar_epi32(__m512i __W, __mmask16 __M, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_permvarsi512_mask((__v16si)__Y, (__v16si)__X, - (__v16si)__W, __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_pd(__m512i __X, __m512d __Y) { - return (__m512d)__builtin_ia32_permvardf512_mask( - (__v8df)__Y, (__v8di)__X, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutexvar_pd(__m512d __W, __mmask8 __U, __m512i __X, - __m512d __Y) { - return (__m512d)__builtin_ia32_permvardf512_mask((__v8df)__Y, (__v8di)__X, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_pd(__mmask8 __U, __m512i __X, __m512d __Y) { - return (__m512d)__builtin_ia32_permvardf512_mask( - (__v8df)__Y, (__v8di)__X, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_ps(__m512i __X, __m512 __Y) { - return (__m512)__builtin_ia32_permvarsf512_mask( - (__v16sf)__Y, (__v16si)__X, (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_permutexvar_ps(__m512 __W, __mmask16 __U, __m512i __X, __m512 __Y) { - return (__m512)__builtin_ia32_permvarsf512_mask((__v16sf)__Y, (__v16si)__X, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_ps(__mmask16 __U, __m512i __X, __m512 __Y) { - return (__m512)__builtin_ia32_permvarsf512_mask( - (__v16sf)__Y, (__v16si)__X, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_ps(__m512 __M, __m512 __V, const int __imm) { - return (__m512)__builtin_ia32_shufps512_mask( - (__v16sf)__M, (__v16sf)__V, __imm, (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_ps(__m512 __W, __mmask16 __U, __m512 __M, __m512 __V, - const int __imm) { - return (__m512)__builtin_ia32_shufps512_mask( - (__v16sf)__M, (__v16sf)__V, __imm, (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_ps(__mmask16 __U, __m512 __M, __m512 __V, - const int __imm) { - return (__m512)__builtin_ia32_shufps512_mask( - (__v16sf)__M, (__v16sf)__V, __imm, (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_pd(__m512d __M, __m512d __V, const int __imm) { - return (__m512d)__builtin_ia32_shufpd512_mask((__v8df)__M, (__v8df)__V, __imm, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shuffle_pd(__m512d __W, __mmask8 __U, __m512d __M, __m512d __V, - const int __imm) { - return (__m512d)__builtin_ia32_shufpd512_mask((__v8df)__M, (__v8df)__V, __imm, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_pd(__mmask8 __U, __m512d __M, __m512d __V, - const int __imm) { - return (__m512d)__builtin_ia32_shufpd512_mask((__v8df)__M, (__v8df)__V, __imm, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fixupimm_round_pd(__m512d __A, __m512d __B, __m512i __C, - const int __imm, const int __R) { - return (__m512d)__builtin_ia32_fixupimmpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fixupimm_round_pd(__m512d __A, __mmask8 __U, __m512d __B, - __m512i __C, const int __imm, const int __R) { - return (__m512d)__builtin_ia32_fixupimmpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fixupimm_round_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512i __C, const int __imm, - const int __R) { - return (__m512d)__builtin_ia32_fixupimmpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fixupimm_round_ps(__m512 __A, __m512 __B, __m512i __C, - const int __imm, const int __R) { - return (__m512)__builtin_ia32_fixupimmps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fixupimm_round_ps(__m512 __A, __mmask16 __U, __m512 __B, - __m512i __C, const int __imm, const int __R) { - return (__m512)__builtin_ia32_fixupimmps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fixupimm_round_ps(__mmask16 __U, __m512 __A, __m512 __B, - __m512i __C, const int __imm, - const int __R) { - return (__m512)__builtin_ia32_fixupimmps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_round_sd(__m128d __A, __m128d __B, __m128i __C, - const int __imm, const int __R) { - return (__m128d)__builtin_ia32_fixupimmsd_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)-1, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_round_sd(__m128d __A, __mmask8 __U, __m128d __B, - __m128i __C, const int __imm, const int __R) { - return (__m128d)__builtin_ia32_fixupimmsd_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_round_sd(__mmask8 __U, __m128d __A, __m128d __B, - __m128i __C, const int __imm, const int __R) { - return (__m128d)__builtin_ia32_fixupimmsd_maskz( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_round_ss(__m128 __A, __m128 __B, __m128i __C, const int __imm, - const int __R) { - return (__m128)__builtin_ia32_fixupimmss_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)-1, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_round_ss(__m128 __A, __mmask8 __U, __m128 __B, - __m128i __C, const int __imm, const int __R) { - return (__m128)__builtin_ia32_fixupimmss_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_round_ss(__mmask8 __U, __m128 __A, __m128 __B, - __m128i __C, const int __imm, const int __R) { - return (__m128)__builtin_ia32_fixupimmss_maskz( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U, __R); -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movehdup_ps(__m512 __A) { - return (__m512)__builtin_ia32_movshdup512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_movehdup_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movshdup512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_movehdup_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movshdup512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_moveldup_ps(__m512 __A) { - return (__m512)__builtin_ia32_movsldup512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_moveldup_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movsldup512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_moveldup_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_movsldup512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_or_si512(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A | (__v16su)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_or_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A | (__v16su)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_or_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pord512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_or_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pord512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_or_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A | (__v8du)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_or_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_porq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_or_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_porq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_xor_si512(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A ^ (__v16su)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_xor_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A ^ (__v16su)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_xor_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pxord512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_xor_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pxord512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_xor_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A ^ (__v8du)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_xor_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pxorq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_xor_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pxorq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rol_epi32(__m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prold512_mask( - (__v16si)__A, __B, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rol_epi32(__m512i __W, __mmask16 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prold512_mask((__v16si)__A, __B, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rol_epi32(__mmask16 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prold512_mask( - (__v16si)__A, __B, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ror_epi32(__m512i __A, int __B) { - return (__m512i)__builtin_ia32_prord512_mask( - (__v16si)__A, __B, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ror_epi32(__m512i __W, __mmask16 __U, __m512i __A, int __B) { - return (__m512i)__builtin_ia32_prord512_mask((__v16si)__A, __B, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_ror_epi32(__mmask16 __U, __m512i __A, int __B) { - return (__m512i)__builtin_ia32_prord512_mask( - (__v16si)__A, __B, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rol_epi64(__m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prolq512_mask( - (__v8di)__A, __B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rol_epi64(__m512i __W, __mmask8 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prolq512_mask((__v8di)__A, __B, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rol_epi64(__mmask8 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_prolq512_mask( - (__v8di)__A, __B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ror_epi64(__m512i __A, int __B) { - return (__m512i)__builtin_ia32_prorq512_mask( - (__v8di)__A, __B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ror_epi64(__m512i __W, __mmask8 __U, __m512i __A, int __B) { - return (__m512i)__builtin_ia32_prorq512_mask((__v8di)__A, __B, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_ror_epi64(__mmask8 __U, __m512i __A, int __B) { - return (__m512i)__builtin_ia32_prorq512_mask( - (__v8di)__A, __B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_and_si512(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A & (__v16su)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_and_epi32(__m512i __A, __m512i __B) { - return (__m512i)((__v16su)__A & (__v16su)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_and_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_and_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_and_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A & (__v8du)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_and_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_and_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_pd(), __U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_andnot_si512(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_andnot_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_andnot_epi32(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_andnot_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_andnot_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_andnot_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_andnot_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pandnq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_pd(), __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_test_epi32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ptestmd512((__v16si)__A, (__v16si)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_test_epi32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ptestmd512((__v16si)__A, (__v16si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_test_epi64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ptestmq512((__v8di)__A, (__v8di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_test_epi64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ptestmq512((__v8di)__A, (__v8di)__B, __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_testn_epi32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ptestnmd512((__v16si)__A, (__v16si)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_testn_epi32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ptestnmd512((__v16si)__A, (__v16si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_testn_epi64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ptestnmq512((__v8di)__A, (__v8di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_testn_epi64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ptestnmq512((__v8di)__A, (__v8di)__B, __U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_ps(__m512 __A) { - return (__m512)_mm512_and_epi32((__m512i)__A, _mm512_set1_epi32(0x7fffffff)); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)_mm512_mask_and_epi32((__m512i)__W, __U, (__m512i)__A, - _mm512_set1_epi32(0x7fffffff)); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_pd(__m512d __A) { - return (__m512d)_mm512_and_epi64((__m512i)__A, - _mm512_set1_epi64(0x7fffffffffffffffLL)); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)_mm512_mask_and_epi64( - (__m512i)__W, __U, (__m512i)__A, _mm512_set1_epi64(0x7fffffffffffffffLL)); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhdq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpackhi_epi32(__m512i __W, __mmask16 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpckhdq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhdq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhqdq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpackhi_epi64(__m512i __W, __mmask8 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpckhqdq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhqdq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckldq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpacklo_epi32(__m512i __W, __mmask16 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpckldq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_epi32(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckldq512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklqdq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpacklo_epi64(__m512i __W, __mmask8 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpcklqdq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklqdq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_u64(__m128 __A, const int __R) { - return (unsigned long long)__builtin_ia32_vcvtss2usi64((__v4sf)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_si64(__m128 __A, const int __R) { - return (long long)__builtin_ia32_vcvtss2si64((__v4sf)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_i64(__m128 __A, const int __R) { - return (long long)__builtin_ia32_vcvtss2si64((__v4sf)__A, __R); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_u64(__m128 __A, const int __R) { - return (unsigned long long)__builtin_ia32_vcvttss2usi64((__v4sf)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_i64(__m128 __A, const int __R) { - return (long long)__builtin_ia32_vcvttss2si64((__v4sf)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_si64(__m128 __A, const int __R) { - return (long long)__builtin_ia32_vcvttss2si64((__v4sf)__A, __R); -} -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_u32(__m128 __A, const int __R) { - return (unsigned)__builtin_ia32_vcvtss2usi32((__v4sf)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_si32(__m128 __A, const int __R) { - return (int)__builtin_ia32_vcvtss2si32((__v4sf)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_i32(__m128 __A, const int __R) { - return (int)__builtin_ia32_vcvtss2si32((__v4sf)__A, __R); -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_u32(__m128 __A, const int __R) { - return (unsigned)__builtin_ia32_vcvttss2usi32((__v4sf)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_i32(__m128 __A, const int __R) { - return (int)__builtin_ia32_vcvttss2si32((__v4sf)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundss_si32(__m128 __A, const int __R) { - return (int)__builtin_ia32_vcvttss2si32((__v4sf)__A, __R); -} -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_u64(__m128d __A, const int __R) { - return (unsigned long long)__builtin_ia32_vcvtsd2usi64((__v2df)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_si64(__m128d __A, const int __R) { - return (long long)__builtin_ia32_vcvtsd2si64((__v2df)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_i64(__m128d __A, const int __R) { - return (long long)__builtin_ia32_vcvtsd2si64((__v2df)__A, __R); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_u64(__m128d __A, const int __R) { - return (unsigned long long)__builtin_ia32_vcvttsd2usi64((__v2df)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_si64(__m128d __A, const int __R) { - return (long long)__builtin_ia32_vcvttsd2si64((__v2df)__A, __R); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_i64(__m128d __A, const int __R) { - return (long long)__builtin_ia32_vcvttsd2si64((__v2df)__A, __R); -} -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_u32(__m128d __A, const int __R) { - return (unsigned)__builtin_ia32_vcvtsd2usi32((__v2df)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_si32(__m128d __A, const int __R) { - return (int)__builtin_ia32_vcvtsd2si32((__v2df)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_i32(__m128d __A, const int __R) { - return (int)__builtin_ia32_vcvtsd2si32((__v2df)__A, __R); -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_u32(__m128d __A, const int __R) { - return (unsigned)__builtin_ia32_vcvttsd2usi32((__v2df)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_i32(__m128d __A, const int __R) { - return (int)__builtin_ia32_vcvttsd2si32((__v2df)__A, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtt_roundsd_si32(__m128d __A, const int __R) { - return (int)__builtin_ia32_vcvttsd2si32((__v2df)__A, __R); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movedup_pd(__m512d __A) { - return (__m512d)__builtin_ia32_movddup512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_movedup_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_movddup512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_movedup_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_movddup512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpcklpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_unpacklo_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpcklpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpcklpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpckhpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_unpackhi_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpckhpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_unpckhpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpckhps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpackhi_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpckhps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpckhps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_pd(__m256 __A, const int __R) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask( - (__v8sf)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_pd(__m512d __W, __mmask8 __U, __m256 __A, - const int __R) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask((__v8sf)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_pd(__mmask8 __U, __m256 __A, const int __R) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask( - (__v8sf)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundph_ps(__m256i __A, const int __R) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask( - (__v16hi)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundph_ps(__m512 __W, __mmask16 __U, __m256i __A, - const int __R) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask((__v16hi)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundph_ps(__mmask16 __U, __m256i __A, const int __R) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask( - (__v16hi)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_ph(__m512 __A, const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)_mm256_undefined_si256(), -1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_ph(__m512 __A, const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)_mm256_undefined_si256(), -1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_ph(__m256i __U, __mmask16 __W, __m512 __A, - const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)__U, (__mmask16)__W); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_cvtps_ph(__m256i __U, __mmask16 __W, __m512 __A, const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)__U, (__mmask16)__W); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_ph(__mmask16 __W, __m512 __A, const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)_mm256_setzero_si256(), (__mmask16)__W); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_ph(__mmask16 __W, __m512 __A, const int __I) { - return (__m256i)__builtin_ia32_vcvtps2ph512_mask( - (__v16sf)__A, __I, (__v16hi)_mm256_setzero_si256(), (__mmask16)__W); -} -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundpd_ps(__m512d __A, const int __R) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask( - (__v8df)__A, (__v8sf)_mm256_undefined_ps(), (__mmask8)-1, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundpd_ps(__m256 __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask((__v8df)__A, (__v8sf)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundpd_ps(__mmask8 __U, __m512d __A, const int __R) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask( - (__v8df)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundsd_ss(__m128 __A, __m128d __B, const int __R) { - return (__m128)__builtin_ia32_cvtsd2ss_round((__v4sf)__A, (__v2df)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvt_roundsd_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128d __B, - const int __R) { - return (__m128)__builtin_ia32_cvtsd2ss_mask_round((__v4sf)__A, (__v2df)__B, - (__v4sf)__W, __U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_cvt_roundsd_ss(__mmask8 __U, __m128 __A, __m128d __B, const int __R) { - return (__m128)__builtin_ia32_cvtsd2ss_mask_round((__v4sf)__A, (__v2df)__B, - _mm_setzero_ps(), __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvt_roundss_sd(__m128d __A, __m128 __B, const int __R) { - return (__m128d)__builtin_ia32_cvtss2sd_round((__v2df)__A, (__v4sf)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvt_roundss_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128 __B, - const int __R) { - return (__m128d)__builtin_ia32_cvtss2sd_mask_round((__v2df)__A, (__v4sf)__B, - (__v2df)__W, __U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_cvt_roundss_sd(__mmask8 __U, __m128d __A, __m128 __B, const int __R) { - return (__m128d)__builtin_ia32_cvtss2sd_mask_round( - (__v2df)__A, (__v4sf)__B, _mm_setzero_pd(), __U, __R); -} -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_stream_si512(__m512i *__P, __m512i __A) { - __builtin_ia32_movntdq512((__v8di *)__P, (__v8di)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_stream_ps(float *__P, __m512 __A) { - __builtin_ia32_movntps512(__P, (__v16sf)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_stream_pd(double *__P, __m512d __A) { - __builtin_ia32_movntpd512(__P, (__v8df)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_stream_load_si512(void *__P) { - return __builtin_ia32_movntdqa512((__v8di *)__P); -} - -typedef enum { - _MM_MANT_NORM_1_2, - _MM_MANT_NORM_p5_2, - _MM_MANT_NORM_p5_1, - _MM_MANT_NORM_p75_1p5 -} _MM_MANTISSA_NORM_ENUM; - -typedef enum { - _MM_MANT_SIGN_src, - _MM_MANT_SIGN_zero, - _MM_MANT_SIGN_nan -} _MM_MANTISSA_SIGN_ENUM; - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_getexpss128_round((__v4sf)__A, (__v4sf)__B, - __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_getexpss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_getexp_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_getexpss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_getexpsd128_round((__v2df)__A, (__v2df)__B, - __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_getexpsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getexp_round_sd(__mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_getexpsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getexp_round_ps(__m512 __A, const int __R) { - return (__m512)__builtin_ia32_getexpps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getexp_round_ps(__m512 __W, __mmask16 __U, __m512 __A, - const int __R) { - return (__m512)__builtin_ia32_getexpps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getexp_round_ps(__mmask16 __U, __m512 __A, const int __R) { - return (__m512)__builtin_ia32_getexpps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getexp_round_pd(__m512d __A, const int __R) { - return (__m512d)__builtin_ia32_getexppd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getexp_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512d)__builtin_ia32_getexppd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getexp_round_pd(__mmask8 __U, __m512d __A, const int __R) { - return (__m512d)__builtin_ia32_getexppd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getmant_round_pd(__m512d __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, _mm512_undefined_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getmant_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, (__v8df)__W, __U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getmant_round_pd(__mmask8 __U, __m512d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, (__v8df)_mm512_setzero_pd(), __U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getmant_round_ps(__m512 __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, _mm512_undefined_ps(), (__mmask16)-1, - __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getmant_round_ps(__m512 __W, __mmask16 __U, __m512 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, (__v16sf)__W, __U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getmant_round_ps(__mmask16 __U, __m512 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C, const int __R) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, (__v16sf)_mm512_setzero_ps(), __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_round_sd(__m128d __A, __m128d __B, _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128d)__builtin_ia32_getmantsd_round((__v2df)__A, (__v2df)__B, - (__D << 2) | __C, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128d)__builtin_ia32_getmantsd_mask_round( - (__v2df)__A, (__v2df)__B, (__D << 2) | __C, (__v2df)__W, __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_round_sd(__mmask8 __U, __m128d __A, __m128d __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128d)__builtin_ia32_getmantsd_mask_round( - (__v2df)__A, (__v2df)__B, (__D << 2) | __C, (__v2df)_mm_setzero_pd(), __U, - __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_round_ss(__m128 __A, __m128 __B, _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128)__builtin_ia32_getmantss_round((__v4sf)__A, (__v4sf)__B, - (__D << 2) | __C, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128)__builtin_ia32_getmantss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__D << 2) | __C, (__v4sf)__W, __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_round_ss(__mmask8 __U, __m128 __A, __m128 __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D, const int __R) { - return (__m128)__builtin_ia32_getmantss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__D << 2) | __C, (__v4sf)_mm_setzero_ps(), __U, - __R); -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_roundscale_round_ps(__m512 __A, const int __imm, const int __R) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__A, __imm, (__v16sf)_mm512_undefined_ps(), -1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_roundscale_round_ps(__m512 __A, __mmask16 __B, __m512 __C, - const int __imm, const int __R) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__C, __imm, (__v16sf)__A, (__mmask16)__B, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_roundscale_round_ps(__mmask16 __A, __m512 __B, const int __imm, - const int __R) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__B, __imm, (__v16sf)_mm512_setzero_ps(), (__mmask16)__A, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_roundscale_round_pd(__m512d __A, const int __imm, const int __R) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__A, __imm, (__v8df)_mm512_undefined_pd(), -1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_roundscale_round_pd(__m512d __A, __mmask8 __B, __m512d __C, - const int __imm, const int __R) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__C, __imm, (__v8df)__A, (__mmask8)__B, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_roundscale_round_pd(__mmask8 __A, __m512d __B, const int __imm, - const int __R) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__B, __imm, (__v8df)_mm512_setzero_pd(), (__mmask8)__A, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_round_ss(__m128 __A, __m128 __B, const int __imm, - const int __R) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__A, (__v4sf)__B, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, - __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_roundscale_round_ss(__m128 __A, __mmask8 __B, __m128 __C, - __m128 __D, const int __imm, const int __R) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__C, (__v4sf)__D, __imm, (__v4sf)__A, (__mmask8)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_roundscale_round_ss(__mmask8 __A, __m128 __B, __m128 __C, - const int __imm, const int __R) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__B, (__v4sf)__C, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__A, - __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_round_sd(__m128d __A, __m128d __B, const int __imm, - const int __R) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__A, (__v2df)__B, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)-1, - __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_roundscale_round_sd(__m128d __A, __mmask8 __B, __m128d __C, - __m128d __D, const int __imm, const int __R) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__C, (__v2df)__D, __imm, (__v2df)__A, (__mmask8)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_roundscale_round_sd(__mmask8 __A, __m128d __B, __m128d __C, - const int __imm, const int __R) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__B, (__v2df)__C, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__A, - __R); -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_floor_ps(__m512 __A) { - return (__m512)__builtin_ia32_rndscaleps_mask((__v16sf)__A, (0x01 | 0x00), - (__v16sf)__A, -1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_floor_pd(__m512d __A) { - return (__m512d)__builtin_ia32_rndscalepd_mask((__v8df)__A, (0x01 | 0x00), - (__v8df)__A, -1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ceil_ps(__m512 __A) { - return (__m512)__builtin_ia32_rndscaleps_mask((__v16sf)__A, (0x02 | 0x00), - (__v16sf)__A, -1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_ceil_pd(__m512d __A) { - return (__m512d)__builtin_ia32_rndscalepd_mask((__v8df)__A, (0x02 | 0x00), - (__v8df)__A, -1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_floor_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rndscaleps_mask((__v16sf)__A, (0x01 | 0x00), - (__v16sf)__W, __U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_floor_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rndscalepd_mask((__v8df)__A, (0x01 | 0x00), - (__v8df)__W, __U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ceil_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_rndscaleps_mask((__v16sf)__A, (0x02 | 0x00), - (__v16sf)__W, __U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_ceil_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_rndscalepd_mask((__v8df)__A, (0x02 | 0x00), - (__v8df)__W, __U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_alignr_epi32(__m512i __A, __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_alignd512_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_alignr_epi32(__m512i __W, __mmask16 __U, __m512i __A, - __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_alignd512_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_alignr_epi32(__mmask16 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_alignd512_mask( - (__v16si)__A, (__v16si)__B, __imm, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_alignr_epi64(__m512i __A, __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_alignq512_mask( - (__v8di)__A, (__v8di)__B, __imm, (__v8di)_mm512_undefined_epi32(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_alignr_epi64(__m512i __W, __mmask8 __U, __m512i __A, - __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_alignq512_mask((__v8di)__A, (__v8di)__B, __imm, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_alignr_epi64(__mmask8 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_alignq512_mask((__v8di)__A, (__v8di)__B, __imm, - (__v8di)_mm512_setzero_si512(), - (__mmask8)__U); -} -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epi32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_pcmpeqd512_mask((__v16si)__A, (__v16si)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epi32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_pcmpeqd512_mask((__v16si)__A, (__v16si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epi64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq512_mask((__v8di)__A, (__v8di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epi64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq512_mask((__v8di)__A, (__v8di)__B, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epi32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_pcmpgtd512_mask((__v16si)__A, (__v16si)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epi32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_pcmpgtd512_mask((__v16si)__A, (__v16si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epi64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq512_mask((__v8di)__A, (__v8di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epi64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq512_mask((__v8di)__A, (__v8di)__B, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epi32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epi32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epu32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epu32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epi64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epi64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epu64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epu64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epi32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 2, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epi32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 2, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epu32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 2, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epu32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 2, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epi64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epi64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epu64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epu64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epi32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epi32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epu32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epu32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epi64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epi64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epu64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epu64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epi32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epi32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epu32_mask(__mmask16 __M, __m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epu32_mask(__m512i __X, __m512i __Y) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epi64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epi64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epu64_mask(__mmask8 __M, __m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epu64_mask(__m512i __X, __m512i __Y) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, 4, - (__mmask8)-1); -} -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftli_mask16(__mmask16 __A, unsigned int __B) { - return (__mmask16)__builtin_ia32_kshiftlihi((__mmask16)__A, (__mmask8)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftri_mask16(__mmask16 __A, unsigned int __B) { - return (__mmask16)__builtin_ia32_kshiftrihi((__mmask16)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epi64_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epi32_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, __P, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epu64_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epu32_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, - __P, (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_round_pd_mask(__m512d __X, __m512d __Y, const int __P, - const int __R) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, __P, - (__mmask8)-1, __R); -} - -extern __inline __mmask16 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_cmp_round_ps_mask(__m512 __X, __m512 __Y, const int __P, const int __R) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - __P, (__mmask16)-1, __R); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epi64_mask(__mmask8 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_cmpq512_mask((__v8di)__X, (__v8di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epi32_mask(__mmask16 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask16)__builtin_ia32_cmpd512_mask((__v16si)__X, (__v16si)__Y, __P, - (__mmask16)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epu64_mask(__mmask8 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__X, (__v8di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epu32_mask(__mmask16 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__X, (__v16si)__Y, - __P, (__mmask16)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_round_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y, - const int __P, const int __R) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, __P, - (__mmask8)__U, __R); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_round_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y, - const int __P, const int __R) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - __P, (__mmask16)__U, __R); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_cmp_round_sd_mask(__m128d __X, __m128d __Y, const int __P, const int __R) { - return (__mmask8)__builtin_ia32_cmpsd_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)-1, __R); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmp_round_sd_mask(__mmask8 __M, __m128d __X, __m128d __Y, - const int __P, const int __R) { - return (__mmask8)__builtin_ia32_cmpsd_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)__M, __R); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_cmp_round_ss_mask(__m128 __X, __m128 __Y, const int __P, const int __R) { - return (__mmask8)__builtin_ia32_cmpss_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)-1, __R); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmp_round_ss_mask(__mmask8 __M, __m128 __X, __m128 __Y, - const int __P, const int __R) { - return (__mmask8)__builtin_ia32_cmpss_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)__M, __R); -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32gather_ps(__m512i __index, void const *__addr, int __scale) { - __m512 __v1_old = _mm512_undefined_ps(); - __mmask16 __mask = 0xFFFF; - - return (__m512)__builtin_ia32_gathersiv16sf( - (__v16sf)__v1_old, __addr, (__v16si)__index, __mask, __scale); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32gather_ps(__m512 __v1_old, __mmask16 __mask, __m512i __index, - void const *__addr, int __scale) { - return (__m512)__builtin_ia32_gathersiv16sf( - (__v16sf)__v1_old, __addr, (__v16si)__index, __mask, __scale); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32gather_pd(__m256i __index, void const *__addr, int __scale) { - __m512d __v1_old = _mm512_undefined_pd(); - __mmask8 __mask = 0xFF; - - return (__m512d)__builtin_ia32_gathersiv8df((__v8df)__v1_old, __addr, - (__v8si)__index, __mask, __scale); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32gather_pd(__m512d __v1_old, __mmask8 __mask, __m256i __index, - void const *__addr, int __scale) { - return (__m512d)__builtin_ia32_gathersiv8df((__v8df)__v1_old, __addr, - (__v8si)__index, __mask, __scale); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64gather_ps(__m512i __index, void const *__addr, int __scale) { - __m256 __v1_old = _mm256_undefined_ps(); - __mmask8 __mask = 0xFF; - - return (__m256)__builtin_ia32_gatherdiv16sf((__v8sf)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64gather_ps(__m256 __v1_old, __mmask8 __mask, __m512i __index, - void const *__addr, int __scale) { - return (__m256)__builtin_ia32_gatherdiv16sf((__v8sf)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64gather_pd(__m512i __index, void const *__addr, int __scale) { - __m512d __v1_old = _mm512_undefined_pd(); - __mmask8 __mask = 0xFF; - - return (__m512d)__builtin_ia32_gatherdiv8df((__v8df)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64gather_pd(__m512d __v1_old, __mmask8 __mask, __m512i __index, - void const *__addr, int __scale) { - return (__m512d)__builtin_ia32_gatherdiv8df((__v8df)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32gather_epi32(__m512i __index, void const *__addr, int __scale) { - __m512i __v1_old = _mm512_undefined_epi32(); - __mmask16 __mask = 0xFFFF; - - return (__m512i)__builtin_ia32_gathersiv16si( - (__v16si)__v1_old, __addr, (__v16si)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32gather_epi32(__m512i __v1_old, __mmask16 __mask, - __m512i __index, void const *__addr, - int __scale) { - return (__m512i)__builtin_ia32_gathersiv16si( - (__v16si)__v1_old, __addr, (__v16si)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32gather_epi64(__m256i __index, void const *__addr, int __scale) { - __m512i __v1_old = _mm512_undefined_epi32(); - __mmask8 __mask = 0xFF; - - return (__m512i)__builtin_ia32_gathersiv8di((__v8di)__v1_old, __addr, - (__v8si)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32gather_epi64(__m512i __v1_old, __mmask8 __mask, - __m256i __index, void const *__addr, - int __scale) { - return (__m512i)__builtin_ia32_gathersiv8di((__v8di)__v1_old, __addr, - (__v8si)__index, __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64gather_epi32(__m512i __index, void const *__addr, int __scale) { - __m256i __v1_old = _mm256_undefined_si256(); - __mmask8 __mask = 0xFF; - - return (__m256i)__builtin_ia32_gatherdiv16si( - (__v8si)__v1_old, __addr, (__v8di)__index, __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64gather_epi32(__m256i __v1_old, __mmask8 __mask, - __m512i __index, void const *__addr, - int __scale) { - return (__m256i)__builtin_ia32_gatherdiv16si( - (__v8si)__v1_old, __addr, (__v8di)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64gather_epi64(__m512i __index, void const *__addr, int __scale) { - __m512i __v1_old = _mm512_undefined_epi32(); - __mmask8 __mask = 0xFF; - - return (__m512i)__builtin_ia32_gatherdiv8di((__v8di)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64gather_epi64(__m512i __v1_old, __mmask8 __mask, - __m512i __index, void const *__addr, - int __scale) { - return (__m512i)__builtin_ia32_gatherdiv8di((__v8di)__v1_old, __addr, - (__v8di)__index, __mask, __scale); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_i32scatter_ps(void *__addr, __m512i __index, __m512 __v1, int __scale) { - __builtin_ia32_scattersiv16sf(__addr, (__mmask16)0xFFFF, (__v16si)__index, - (__v16sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32scatter_ps(void *__addr, __mmask16 __mask, __m512i __index, - __m512 __v1, int __scale) { - __builtin_ia32_scattersiv16sf(__addr, __mask, (__v16si)__index, (__v16sf)__v1, - __scale); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_i32scatter_pd(void *__addr, __m256i __index, __m512d __v1, int __scale) { - __builtin_ia32_scattersiv8df(__addr, (__mmask8)0xFF, (__v8si)__index, - (__v8df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32scatter_pd(void *__addr, __mmask8 __mask, __m256i __index, - __m512d __v1, int __scale) { - __builtin_ia32_scattersiv8df(__addr, __mask, (__v8si)__index, (__v8df)__v1, - __scale); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_i64scatter_ps(void *__addr, __m512i __index, __m256 __v1, int __scale) { - __builtin_ia32_scatterdiv16sf(__addr, (__mmask8)0xFF, (__v8di)__index, - (__v8sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64scatter_ps(void *__addr, __mmask8 __mask, __m512i __index, - __m256 __v1, int __scale) { - __builtin_ia32_scatterdiv16sf(__addr, __mask, (__v8di)__index, (__v8sf)__v1, - __scale); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_i64scatter_pd(void *__addr, __m512i __index, __m512d __v1, int __scale) { - __builtin_ia32_scatterdiv8df(__addr, (__mmask8)0xFF, (__v8di)__index, - (__v8df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64scatter_pd(void *__addr, __mmask8 __mask, __m512i __index, - __m512d __v1, int __scale) { - __builtin_ia32_scatterdiv8df(__addr, __mask, (__v8di)__index, (__v8df)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32scatter_epi32(void *__addr, __m512i __index, __m512i __v1, - int __scale) { - __builtin_ia32_scattersiv16si(__addr, (__mmask16)0xFFFF, (__v16si)__index, - (__v16si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32scatter_epi32(void *__addr, __mmask16 __mask, - __m512i __index, __m512i __v1, int __scale) { - __builtin_ia32_scattersiv16si(__addr, __mask, (__v16si)__index, (__v16si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i32scatter_epi64(void *__addr, __m256i __index, __m512i __v1, - int __scale) { - __builtin_ia32_scattersiv8di(__addr, (__mmask8)0xFF, (__v8si)__index, - (__v8di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i32scatter_epi64(void *__addr, __mmask8 __mask, __m256i __index, - __m512i __v1, int __scale) { - __builtin_ia32_scattersiv8di(__addr, __mask, (__v8si)__index, (__v8di)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64scatter_epi32(void *__addr, __m512i __index, __m256i __v1, - int __scale) { - __builtin_ia32_scatterdiv16si(__addr, (__mmask8)0xFF, (__v8di)__index, - (__v8si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64scatter_epi32(void *__addr, __mmask8 __mask, __m512i __index, - __m256i __v1, int __scale) { - __builtin_ia32_scatterdiv16si(__addr, __mask, (__v8di)__index, (__v8si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_i64scatter_epi64(void *__addr, __m512i __index, __m512i __v1, - int __scale) { - __builtin_ia32_scatterdiv8di(__addr, (__mmask8)0xFF, (__v8di)__index, - (__v8di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_i64scatter_epi64(void *__addr, __mmask8 __mask, __m512i __index, - __m512i __v1, int __scale) { - __builtin_ia32_scatterdiv8di(__addr, __mask, (__v8di)__index, (__v8di)__v1, - __scale); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_compressdf512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_compressdf512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_pd(void *__P, __mmask8 __U, __m512d __A) { - __builtin_ia32_compressstoredf512_mask((__v8df *)__P, (__v8df)__A, - (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_compresssf512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_compresssf512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_ps(void *__P, __mmask16 __U, __m512 __A) { - __builtin_ia32_compressstoresf512_mask((__v16sf *)__P, (__v16sf)__A, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_compressdi512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_compressdi512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_epi64(void *__P, __mmask8 __U, __m512i __A) { - __builtin_ia32_compressstoredi512_mask((__v8di *)__P, (__v8di)__A, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_compresssi512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_compresssi512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_epi32(void *__P, __mmask16 __U, __m512i __A) { - __builtin_ia32_compressstoresi512_mask((__v16si *)__P, (__v16si)__A, - (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_expanddf512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_expanddf512_maskz( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_pd(__m512d __W, __mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_expandloaddf512_mask( - (const __v8df *)__P, (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_pd(__mmask8 __U, void const *__P) { - return (__m512d)__builtin_ia32_expandloaddf512_maskz( - (const __v8df *)__P, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_expandsf512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_expandsf512_maskz( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_ps(__m512 __W, __mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_expandloadsf512_mask( - (const __v16sf *)__P, (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_ps(__mmask16 __U, void const *__P) { - return (__m512)__builtin_ia32_expandloadsf512_maskz( - (const __v16sf *)__P, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_expanddi512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_expanddi512_maskz( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_epi64(__m512i __W, __mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_expandloaddi512_mask( - (const __v8di *)__P, (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_epi64(__mmask8 __U, void const *__P) { - return (__m512i)__builtin_ia32_expandloaddi512_maskz( - (const __v8di *)__P, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_expandsi512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_expandsi512_maskz( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_epi32(__m512i __W, __mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_expandloadsi512_mask( - (const __v16si *)__P, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_epi32(__mmask16 __U, void const *__P) { - return (__m512i)__builtin_ia32_expandloadsi512_maskz( - (const __v16si *)__P, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortest_mask16_u8(__mmask16 __A, __mmask16 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_kortestchi(__A, __B); - return (unsigned char)__builtin_ia32_kortestzhi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestz_mask16_u8(__mmask16 __A, __mmask16 __B) { - return (unsigned char)__builtin_ia32_kortestzhi((__mmask16)__A, - (__mmask16)__B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestc_mask16_u8(__mmask16 __A, __mmask16 __B) { - return (unsigned char)__builtin_ia32_kortestchi((__mmask16)__A, - (__mmask16)__B); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtmask16_u32(__mmask16 __A) { - return (unsigned int)__builtin_ia32_kmovw((__mmask16)__A); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtu32_mask16(unsigned int __A) { - return (__mmask16)__builtin_ia32_kmovw((__mmask16)__A); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _load_mask16(__mmask16 *__A) { - return (__mmask16)__builtin_ia32_kmovw(*(__mmask16 *)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _store_mask16(__mmask16 *__A, __mmask16 __B) { - *(__mmask16 *)__A = __builtin_ia32_kmovw(__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kand(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kandhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kandn(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kandnhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kor(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_korhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kortestz(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kortestzhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kortestc(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kortestchi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kxnor(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kxnorhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kxor(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kxorhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_knot(__mmask16 __A) { - return (__mmask16)__builtin_ia32_knothi((__mmask16)__A); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kunpackb(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kunpckhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kunpackb_mask16(__mmask8 __A, __mmask8 __B) { - return (__mmask16)__builtin_ia32_kunpckhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_inserti32x4(__mmask16 __B, __m512i __C, __m128i __D, - const int __imm) { - return (__m512i)__builtin_ia32_inserti32x4_mask( - (__v16si)__C, (__v4si)__D, __imm, (__v16si)_mm512_setzero_si512(), __B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_insertf32x4(__mmask16 __B, __m512 __C, __m128 __D, - const int __imm) { - return (__m512)__builtin_ia32_insertf32x4_mask( - (__v16sf)__C, (__v4sf)__D, __imm, (__v16sf)_mm512_setzero_ps(), __B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_inserti32x4(__m512i __A, __mmask16 __B, __m512i __C, - __m128i __D, const int __imm) { - return (__m512i)__builtin_ia32_inserti32x4_mask((__v16si)__C, (__v4si)__D, - __imm, (__v16si)__A, __B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_insertf32x4(__m512 __A, __mmask16 __B, __m512 __C, __m128 __D, - const int __imm) { - return (__m512)__builtin_ia32_insertf32x4_mask((__v16sf)__C, (__v4sf)__D, - __imm, (__v16sf)__A, __B); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epi64(__mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_epi64(__m512i __W, __mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epi64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_epi64(__m512i __W, __mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epi64(__mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epu64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epu64(__mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_epu64(__m512i __W, __mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epu64(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_epu64(__m512i __W, __mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epu64(__mmask8 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epi32(__mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_max_epi32(__m512i __W, __mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epi32(__mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsd512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_min_epi32(__m512i __W, __mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsd512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epu32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxud512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epu32(__mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxud512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_max_epu32(__m512i __W, __mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxud512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epu32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminud512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_undefined_epi32(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epu32(__mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminud512_mask( - (__v16si)__A, (__v16si)__B, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_min_epu32(__m512i __W, __mmask16 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminud512_mask((__v16si)__A, (__v16si)__B, - (__v16si)__W, __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpcklps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpacklo_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpcklps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_unpcklps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_maxsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_maxsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_max_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_maxsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_maxss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_maxss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_max_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_maxss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_round_sd(__m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_minsd_round((__v2df)__A, (__v2df)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_minsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_min_round_sd(__mmask8 __U, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_minsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_round_ss(__m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_minss_round((__v4sf)__A, (__v4sf)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_minss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_min_round_ss(__mmask8 __U, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_minss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, __R); -} -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_pd(__mmask8 __U, __m512d __A, __m512d __W) { - return (__m512d)__builtin_ia32_blendmpd_512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_ps(__mmask16 __U, __m512 __A, __m512 __W) { - return (__m512)__builtin_ia32_blendmps_512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_epi64(__mmask8 __U, __m512i __A, __m512i __W) { - return (__m512i)__builtin_ia32_blendmq_512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_epi32(__mmask16 __U, __m512i __A, __m512i __W) { - return (__m512i)__builtin_ia32_blendmd_512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_round_sd(__m128d __W, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_round((__v2df)__W, (__v2df)__A, - (__v2df)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_round_ss(__m128 __W, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_round((__v4sf)__W, (__v4sf)__A, - (__v4sf)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_round_sd(__m128d __W, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_round((__v2df)__W, (__v2df)__A, - -(__v2df)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_round_ss(__m128 __W, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_round((__v4sf)__W, (__v4sf)__A, - -(__v4sf)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_round_sd(__m128d __W, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_round((__v2df)__W, -(__v2df)__A, - (__v2df)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_round_ss(__m128 __W, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_round((__v4sf)__W, -(__v4sf)__A, - (__v4sf)__B, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_round_sd(__m128d __W, __m128d __A, __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_round((__v2df)__W, -(__v2df)__A, - -(__v2df)__B, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_round_ss(__m128 __W, __m128 __A, __m128 __B, const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_round((__v4sf)__W, -(__v4sf)__A, - -(__v4sf)__B, __R); -} -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_sd(__m128d __W, __m128d __A, __m128d __B, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask3( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmaddss3_mask3( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_sd(__mmask8 __U, __m128d __W, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, (__v2df)__A, -(__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, (__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_sd(__m128d __W, __m128d __A, __m128d __B, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmsubsd3_mask3( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmsubss3_mask3( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_sd(__mmask8 __U, __m128d __W, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, (__v2df)__A, -(__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, (__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_sd(__m128d __W, __m128d __A, __m128d __B, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask3( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmaddss3_mask3( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_sd(__mmask8 __U, __m128d __W, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, -(__v2df)__A, -(__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, -(__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_sd(__m128d __W, __m128d __A, __m128d __B, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmsubsd3_mask3( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmsubss3_mask3( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_sd(__mmask8 __U, __m128d __W, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, -(__v2df)__A, -(__v2df)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, -(__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask((__v4sf)__W, (__v4sf)__A, - (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_round_sd(__m128d __W, __m128d __A, __m128d __B, - __mmask8 __U, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask3( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_round_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask3( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_round_sd(__mmask8 __U, __m128d __W, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_round_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, (__v2df)__A, -(__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, (__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_round_sd(__m128d __W, __m128d __A, __m128d __B, - __mmask8 __U, const int __R) { - return (__m128d)__builtin_ia32_vfmsubsd3_mask3( - (__v2df)__W, (__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_round_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U, - const int __R) { - return (__m128)__builtin_ia32_vfmsubss3_mask3( - (__v4sf)__W, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_round_sd(__mmask8 __U, __m128d __W, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, (__v2df)__A, -(__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_round_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, (__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask((__v4sf)__W, -(__v4sf)__A, - (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_round_sd(__m128d __W, __m128d __A, __m128d __B, - __mmask8 __U, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask3( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_round_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask3( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_round_sd(__mmask8 __U, __m128d __W, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_round_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_mask( - (__v2df)__W, -(__v2df)__A, -(__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_mask( - (__v4sf)__W, -(__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_round_sd(__m128d __W, __m128d __A, __m128d __B, - __mmask8 __U, const int __R) { - return (__m128d)__builtin_ia32_vfmsubsd3_mask3( - (__v2df)__W, -(__v2df)__A, (__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_round_ss(__m128 __W, __m128 __A, __m128 __B, __mmask8 __U, - const int __R) { - return (__m128)__builtin_ia32_vfmsubss3_mask3( - (__v4sf)__W, -(__v4sf)__A, (__v4sf)__B, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_round_sd(__mmask8 __U, __m128d __W, __m128d __A, - __m128d __B, const int __R) { - return (__m128d)__builtin_ia32_vfmaddsd3_maskz( - (__v2df)__W, -(__v2df)__A, -(__v2df)__B, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_round_ss(__mmask8 __U, __m128 __W, __m128 __A, __m128 __B, - const int __R) { - return (__m128)__builtin_ia32_vfmaddss3_maskz( - (__v4sf)__W, -(__v4sf)__A, -(__v4sf)__B, (__mmask8)__U, __R); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comi_round_ss(__m128 __A, __m128 __B, const int __P, const int __R) { - return __builtin_ia32_vcomiss((__v4sf)__A, (__v4sf)__B, __P, __R); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comi_round_sd(__m128d __A, __m128d __B, const int __P, const int __R) { - return __builtin_ia32_vcomisd((__v2df)__A, (__v2df)__B, __P, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sqrt_pd(__m512d __A) { - return (__m512d)__builtin_ia32_sqrtpd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sqrt_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_sqrtpd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sqrt_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_sqrtpd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sqrt_ps(__m512 __A) { - return (__m512)__builtin_ia32_sqrtps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sqrt_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_sqrtps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sqrt_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_sqrtps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_pd(__m512d __A, __m512d __B) { - return (__m512d)((__v8df)__A + (__v8df)__B); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_addpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_addpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_ps(__m512 __A, __m512 __B) { - return (__m512)((__v16sf)__A + (__v16sf)__B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_addps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_addps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_addsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_addsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_addss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_addss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_pd(__m512d __A, __m512d __B) { - return (__m512d)((__v8df)__A - (__v8df)__B); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_subpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_subpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_ps(__m512 __A, __m512 __B) { - return (__m512)((__v16sf)__A - (__v16sf)__B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_subps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_subps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_subsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_subsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_subss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_subss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_pd(__m512d __A, __m512d __B) { - return (__m512d)((__v8df)__A * (__v8df)__B); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_mulpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_mulpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mul_ps(__m512 __A, __m512 __B) { - return (__m512)((__v16sf)__A * (__v16sf)__B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mul_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_mulps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mul_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_mulps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_mulsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_mulsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_mulss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_mulss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_div_pd(__m512d __M, __m512d __V) { - return (__m512d)((__v8df)__M / (__v8df)__V); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_div_pd(__m512d __W, __mmask8 __U, __m512d __M, __m512d __V) { - return (__m512d)__builtin_ia32_divpd512_mask( - (__v8df)__M, (__v8df)__V, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_div_pd(__mmask8 __U, __m512d __M, __m512d __V) { - return (__m512d)__builtin_ia32_divpd512_mask((__v8df)__M, (__v8df)__V, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_div_ps(__m512 __A, __m512 __B) { - return (__m512)((__v16sf)__A / (__v16sf)__B); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_div_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_divps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_div_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_divps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_divsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_div_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_divsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_divss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_div_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_divss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_maxpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_maxpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_maxpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_maxps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_maxps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_maxps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_minpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_minpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_minpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_minps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_minps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_minps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_scalef_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_scalefpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_undefined_pd(), - (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_scalef_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_scalefpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_scalef_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_scalefpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_scalef_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_scalefps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_undefined_ps(), - (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_scalef_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_scalefps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_scalef_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_scalefps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_scalefsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_scalefss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmadd_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmadd_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmadd_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfmaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmadd_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmadd_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmadd_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmadd_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfmaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmadd_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmsub_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsub_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsub_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfmsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsub_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmsub_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsub_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fmsub_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfmsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fmsub_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmaddsub_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_fmaddsub_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fmaddsub_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fmaddsub_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmaddsub_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmaddsub_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fmaddsub_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fmaddsub_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmsubadd_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_fmsubadd_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_mask( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fmsubadd_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfmsubaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fmsubadd_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfmaddsubpd512_maskz( - (__v8df)__A, (__v8df)__B, -(__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fmsubadd_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fmsubadd_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_mask( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fmsubadd_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfmsubaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fmsubadd_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfmaddsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, -(__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmadd_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmadd_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fnmadd_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfnmaddpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fnmadd_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmaddpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmadd_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmadd_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmaddps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmadd_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfnmaddps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmadd_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmaddps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmsub_pd(__m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmsub_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask3_fnmsub_pd(__m512d __A, __m512d __B, __m512d __C, __mmask8 __U) { - return (__m512d)__builtin_ia32_vfnmsubpd512_mask3( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_fnmsub_pd(__mmask8 __U, __m512d __A, __m512d __B, __m512d __C) { - return (__m512d)__builtin_ia32_vfnmsubpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8df)__C, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fnmsub_ps(__m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fnmsub_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmsubps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask3_fnmsub_ps(__m512 __A, __m512 __B, __m512 __C, __mmask16 __U) { - return (__m512)__builtin_ia32_vfnmsubps512_mask3( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fnmsub_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C) { - return (__m512)__builtin_ia32_vfnmsubps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16sf)__C, (__mmask16)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttpd_epi32(__m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttpd_epi32(__m256i __W, __mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttpd_epi32(__mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttpd_epu32(__m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttpd_epu32(__m256i __W, __mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttpd_epu32(__mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvttpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtpd_epi32(__m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtpd_epi32(__m256i __W, __mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtpd_epi32(__mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2dq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtpd_epu32(__m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtpd_epu32(__m256i __W, __mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask((__v8df)__A, (__v8si)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtpd_epu32(__mmask8 __U, __m512d __A) { - return (__m256i)__builtin_ia32_cvtpd2udq512_mask( - (__v8df)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttps_epi32(__m512 __A) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttps_epi32(__m512i __W, __mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttps_epi32(__mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvttps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttps_epu32(__m512 __A) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttps_epu32(__m512i __W, __mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttps_epu32(__mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvttps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_epi32(__m512 __A) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtps_epi32(__m512i __W, __mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_epi32(__mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvtps2dq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_epu32(__m512 __A) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtps_epu32(__m512i __W, __mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask((__v16sf)__A, (__v16si)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_epu32(__mmask16 __U, __m512 __A) { - return (__m512i)__builtin_ia32_cvtps2udq512_mask( - (__v16sf)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U, 0x04); -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsd_f64(__m512d __A) { - return __A[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtss_f32(__m512 __A) { - return __A[0]; -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtu64_ss(__m128 __A, unsigned long long __B) { - return (__m128)__builtin_ia32_cvtusi2ss64((__v4sf)__A, __B, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtu64_sd(__m128d __A, unsigned long long __B) { - return (__m128d)__builtin_ia32_cvtusi2sd64((__v2df)__A, __B, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtu32_ss(__m128 __A, unsigned __B) { - return (__m128)__builtin_ia32_cvtusi2ss32((__v4sf)__A, __B, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi32_ps(__m512i __A) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi32_ps(__m512 __W, __mmask16 __U, __m512i __A) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask((__v16si)__A, (__v16sf)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi32_ps(__mmask16 __U, __m512i __A) { - return (__m512)__builtin_ia32_cvtdq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu32_ps(__m512i __A) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu32_ps(__m512 __W, __mmask16 __U, __m512i __A) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask((__v16si)__A, (__v16sf)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu32_ps(__mmask16 __U, __m512i __A) { - return (__m512)__builtin_ia32_cvtudq2ps512_mask( - (__v16si)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fixupimm_pd(__m512d __A, __m512d __B, __m512i __C, const int __imm) { - return (__m512d)__builtin_ia32_fixupimmpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fixupimm_pd(__m512d __A, __mmask8 __U, __m512d __B, __m512i __C, - const int __imm) { - return (__m512d)__builtin_ia32_fixupimmpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fixupimm_pd(__mmask8 __U, __m512d __A, __m512d __B, - __m512i __C, const int __imm) { - return (__m512d)__builtin_ia32_fixupimmpd512_maskz( - (__v8df)__A, (__v8df)__B, (__v8di)__C, __imm, (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fixupimm_ps(__m512 __A, __m512 __B, __m512i __C, const int __imm) { - return (__m512)__builtin_ia32_fixupimmps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fixupimm_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512i __C, - const int __imm) { - return (__m512)__builtin_ia32_fixupimmps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_fixupimm_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512i __C, - const int __imm) { - return (__m512)__builtin_ia32_fixupimmps512_maskz( - (__v16sf)__A, (__v16sf)__B, (__v16si)__C, __imm, (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_sd(__m128d __A, __m128d __B, __m128i __C, const int __imm) { - return (__m128d)__builtin_ia32_fixupimmsd_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)-1, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_sd(__m128d __A, __mmask8 __U, __m128d __B, __m128i __C, - const int __imm) { - return (__m128d)__builtin_ia32_fixupimmsd_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_sd(__mmask8 __U, __m128d __A, __m128d __B, __m128i __C, - const int __imm) { - return (__m128d)__builtin_ia32_fixupimmsd_maskz( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_ss(__m128 __A, __m128 __B, __m128i __C, const int __imm) { - return (__m128)__builtin_ia32_fixupimmss_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)-1, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_ss(__m128 __A, __mmask8 __U, __m128 __B, __m128i __C, - const int __imm) { - return (__m128)__builtin_ia32_fixupimmss_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_ss(__mmask8 __U, __m128 __A, __m128 __B, __m128i __C, - const int __imm) { - return (__m128)__builtin_ia32_fixupimmss_maskz( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U, 0x04); -} -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_u64(__m128 __A) { - return (unsigned long long)__builtin_ia32_vcvtss2usi64((__v4sf)__A, 0x04); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_u64(__m128 __A) { - return (unsigned long long)__builtin_ia32_vcvttss2usi64((__v4sf)__A, 0x04); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_i64(__m128 __A) { - return (long long)__builtin_ia32_vcvttss2si64((__v4sf)__A, 0x04); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsi512_si32(__m512i __A) { - __v16si __B = (__v16si)__A; - return __B[0]; -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_u32(__m128 __A) { - return (unsigned)__builtin_ia32_vcvtss2usi32((__v4sf)__A, 0x04); -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_u32(__m128 __A) { - return (unsigned)__builtin_ia32_vcvttss2usi32((__v4sf)__A, 0x04); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttss_i32(__m128 __A) { - return (int)__builtin_ia32_vcvttss2si32((__v4sf)__A, 0x04); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_i32(__m128d __A) { - return (int)__builtin_ia32_cvtsd2si((__v2df)__A); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_i32(__m128 __A) { - return (int)__builtin_ia32_cvtss2si((__v4sf)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvti32_sd(__m128d __A, int __B) { - return (__m128d)__builtin_ia32_cvtsi2sd((__v2df)__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvti32_ss(__m128 __A, int __B) { - return (__m128)__builtin_ia32_cvtsi2ss((__v4sf)__A, __B); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_u64(__m128d __A) { - return (unsigned long long)__builtin_ia32_vcvtsd2usi64((__v2df)__A, 0x04); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_u64(__m128d __A) { - return (unsigned long long)__builtin_ia32_vcvttsd2usi64((__v2df)__A, 0x04); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_i64(__m128d __A) { - return (long long)__builtin_ia32_vcvttsd2si64((__v2df)__A, 0x04); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_i64(__m128d __A) { - return (long long)__builtin_ia32_cvtsd2si64((__v2df)__A); -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtss_i64(__m128 __A) { - return (long long)__builtin_ia32_cvtss2si64((__v4sf)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvti64_sd(__m128d __A, long long __B) { - return (__m128d)__builtin_ia32_cvtsi642sd((__v2df)__A, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvti64_ss(__m128 __A, long long __B) { - return (__m128)__builtin_ia32_cvtsi642ss((__v4sf)__A, __B); -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsd_u32(__m128d __A) { - return (unsigned)__builtin_ia32_vcvtsd2usi32((__v2df)__A, 0x04); -} - -extern __inline unsigned - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_u32(__m128d __A) { - return (unsigned)__builtin_ia32_vcvttsd2usi32((__v2df)__A, 0x04); -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttsd_i32(__m128d __A) { - return (int)__builtin_ia32_vcvttsd2si32((__v2df)__A, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_pd(__m256 __A) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask( - (__v8sf)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtps_pd(__m512d __W, __mmask8 __U, __m256 __A) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask((__v8sf)__A, (__v8df)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_pd(__mmask8 __U, __m256 __A) { - return (__m512d)__builtin_ia32_cvtps2pd512_mask( - (__v8sf)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtph_ps(__m256i __A) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask( - (__v16hi)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtph_ps(__m512 __W, __mmask16 __U, __m256i __A) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask((__v16hi)__A, (__v16sf)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtph_ps(__mmask16 __U, __m256i __A) { - return (__m512)__builtin_ia32_vcvtph2ps512_mask( - (__v16hi)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtpd_ps(__m512d __A) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask( - (__v8df)__A, (__v8sf)_mm256_undefined_ps(), (__mmask8)-1, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtpd_ps(__m256 __W, __mmask8 __U, __m512d __A) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask((__v8df)__A, (__v8sf)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtpd_ps(__mmask8 __U, __m512d __A) { - return (__m256)__builtin_ia32_cvtpd2ps512_mask( - (__v8df)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getexp_ps(__m512 __A) { - return (__m512)__builtin_ia32_getexpps512_mask( - (__v16sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getexp_ps(__m512 __W, __mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_getexpps512_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getexp_ps(__mmask16 __U, __m512 __A) { - return (__m512)__builtin_ia32_getexpps512_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getexp_pd(__m512d __A) { - return (__m512d)__builtin_ia32_getexppd512_mask( - (__v8df)__A, (__v8df)_mm512_undefined_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getexp_pd(__m512d __W, __mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_getexppd512_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getexp_pd(__mmask8 __U, __m512d __A) { - return (__m512d)__builtin_ia32_getexppd512_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_getexpss128_round((__v4sf)__A, (__v4sf)__B, - 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_getexpss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getexp_ss(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_getexpss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_getexpsd128_round((__v2df)__A, (__v2df)__B, - 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_getexpsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getexp_sd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_getexpsd_mask_round( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getmant_pd(__m512d __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, _mm512_undefined_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getmant_pd(__m512d __W, __mmask8 __U, __m512d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, (__v8df)__W, __U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getmant_pd(__mmask8 __U, __m512d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512d)__builtin_ia32_getmantpd512_mask( - (__v8df)__A, (__C << 2) | __B, (__v8df)_mm512_setzero_pd(), __U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_getmant_ps(__m512 __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, _mm512_undefined_ps(), (__mmask16)-1, - 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_getmant_ps(__m512 __W, __mmask16 __U, __m512 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, (__v16sf)__W, __U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_getmant_ps(__mmask16 __U, __m512 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m512)__builtin_ia32_getmantps512_mask( - (__v16sf)__A, (__C << 2) | __B, (__v16sf)_mm512_setzero_ps(), __U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_sd(__m128d __A, __m128d __B, _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128d)__builtin_ia32_getmantsd_round((__v2df)__A, (__v2df)__B, - (__D << 2) | __C, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128d)__builtin_ia32_getmantsd_mask_round( - (__v2df)__A, (__v2df)__B, (__D << 2) | __C, (__v2df)__W, __U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_sd(__mmask8 __U, __m128d __A, __m128d __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128d)__builtin_ia32_getmantsd_mask_round( - (__v2df)__A, (__v2df)__B, (__D << 2) | __C, (__v2df)_mm_setzero_pd(), __U, - 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_ss(__m128 __A, __m128 __B, _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128)__builtin_ia32_getmantss_round((__v4sf)__A, (__v4sf)__B, - (__D << 2) | __C, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128)__builtin_ia32_getmantss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__D << 2) | __C, (__v4sf)__W, __U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_ss(__mmask8 __U, __m128 __A, __m128 __B, - _MM_MANTISSA_NORM_ENUM __C, - _MM_MANTISSA_SIGN_ENUM __D) { - return (__m128)__builtin_ia32_getmantss_mask_round( - (__v4sf)__A, (__v4sf)__B, (__D << 2) | __C, (__v4sf)_mm_setzero_ps(), __U, - 0x04); -} -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_roundscale_ps(__m512 __A, const int __imm) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__A, __imm, (__v16sf)_mm512_undefined_ps(), -1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_roundscale_ps(__m512 __A, __mmask16 __B, __m512 __C, - const int __imm) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__C, __imm, (__v16sf)__A, (__mmask16)__B, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_roundscale_ps(__mmask16 __A, __m512 __B, const int __imm) { - return (__m512)__builtin_ia32_rndscaleps_mask( - (__v16sf)__B, __imm, (__v16sf)_mm512_setzero_ps(), (__mmask16)__A, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_roundscale_pd(__m512d __A, const int __imm) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__A, __imm, (__v8df)_mm512_undefined_pd(), -1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_roundscale_pd(__m512d __A, __mmask8 __B, __m512d __C, - const int __imm) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__C, __imm, (__v8df)__A, (__mmask8)__B, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_roundscale_pd(__mmask8 __A, __m512d __B, const int __imm) { - return (__m512d)__builtin_ia32_rndscalepd_mask( - (__v8df)__B, __imm, (__v8df)_mm512_setzero_pd(), (__mmask8)__A, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_ss(__m128 __A, __m128 __B, const int __imm) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__A, (__v4sf)__B, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, - 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_roundscale_ss(__m128 __A, __mmask8 __B, __m128 __C, __m128 __D, - const int __imm) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__C, (__v4sf)__D, __imm, (__v4sf)__A, (__mmask8)__B, 0x04); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_roundscale_ss(__mmask8 __A, __m128 __B, __m128 __C, const int __imm) { - return (__m128)__builtin_ia32_rndscaless_mask_round( - (__v4sf)__B, (__v4sf)__C, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__A, - 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_sd(__m128d __A, __m128d __B, const int __imm) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__A, (__v2df)__B, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)-1, - 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_roundscale_sd(__m128d __A, __mmask8 __B, __m128d __C, __m128d __D, - const int __imm) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__C, (__v2df)__D, __imm, (__v2df)__A, (__mmask8)__B, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_roundscale_sd(__mmask8 __A, __m128d __B, __m128d __C, - const int __imm) { - return (__m128d)__builtin_ia32_rndscalesd_mask_round( - (__v2df)__B, (__v2df)__C, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__A, - 0x04); -} -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_pd_mask(__m512d __X, __m512d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, __P, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_ps_mask(__m512 __X, __m512 __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - __P, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_cmp_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - __P, (__mmask16)__U, 0x04); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_cmp_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, __P, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_sd_mask(__m128d __X, __m128d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpsd_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_sd_mask(__mmask8 __M, __m128d __X, __m128d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpsd_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)__M, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_ss_mask(__m128 __X, __m128 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpss_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmp_ss_mask(__mmask8 __M, __m128 __X, __m128 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpss_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)__M, 0x04); -} -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x00, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x00, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x01, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x01, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x02, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x02, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpunord_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x03, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpunord_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x03, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x04, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x04, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpnlt_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x05, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpnlt_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x05, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpnle_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x06, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpnle_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x06, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpord_pd_mask(__m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x07, - (__mmask8)-1, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpord_pd_mask(__mmask8 __U, __m512d __X, __m512d __Y) { - return (__mmask8)__builtin_ia32_cmppd512_mask((__v8df)__X, (__v8df)__Y, 0x07, - (__mmask8)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x00, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x00, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x01, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x01, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x02, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x02, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpunord_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x03, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpunord_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x03, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x04, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x04, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpnlt_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x05, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpnlt_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x05, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpnle_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x06, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpnle_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x06, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpord_ps_mask(__m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x07, (__mmask16)-1, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpord_ps_mask(__mmask16 __U, __m512 __X, __m512 __Y) { - return (__mmask16)__builtin_ia32_cmpps512_mask((__v16sf)__X, (__v16sf)__Y, - 0x07, (__mmask16)__U, 0x04); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kmov(__mmask16 __A) { - return __builtin_ia32_kmovw(__A); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd_ps(__m512d __A) { - return (__m512)(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd_si512(__m512d __A) { - return (__m512i)(__A); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps_pd(__m512 __A) { - return (__m512d)(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps_si512(__m512 __A) { - return (__m512i)(__A); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi512_ps(__m512i __A) { - return (__m512)(__A); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi512_pd(__m512i __A) { - return (__m512d)(__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd512_pd128(__m512d __A) { - return (__m128d)_mm512_extractf32x4_ps((__m512)__A, 0); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps512_ps128(__m512 __A) { - return _mm512_extractf32x4_ps(__A, 0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi512_si128(__m512i __A) { - return (__m128i)_mm512_extracti32x4_epi32((__m512i)__A, 0); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd512_pd256(__m512d __A) { - return _mm512_extractf64x4_pd(__A, 0); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps512_ps256(__m512 __A) { - return (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi512_si256(__m512i __A) { - return (__m256i)_mm512_extractf64x4_pd((__m512d)__A, 0); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd128_pd512(__m128d __A) { - return (__m512d)__builtin_ia32_pd512_pd((__m128d)__A); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps128_ps512(__m128 __A) { - return (__m512)__builtin_ia32_ps512_ps((__m128)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi128_si512(__m128i __A) { - return (__m512i)__builtin_ia32_si512_si((__v4si)__A); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castpd256_pd512(__m256d __A) { - return __builtin_ia32_pd512_256pd(__A); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castps256_ps512(__m256 __A) { - return __builtin_ia32_ps512_256ps(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_castsi256_si512(__m256i __A) { - return (__m512i)__builtin_ia32_si512_256si((__v8si)__A); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextpd128_pd512(__m128d __A) { - return (__m512d)_mm512_insertf32x4(_mm512_setzero_ps(), (__m128)__A, 0); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextps128_ps512(__m128 __A) { - return _mm512_insertf32x4(_mm512_setzero_ps(), __A, 0); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextsi128_si512(__m128i __A) { - return _mm512_inserti32x4(_mm512_setzero_si512(), __A, 0); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextpd256_pd512(__m256d __A) { - return _mm512_insertf64x4(_mm512_setzero_pd(), __A, 0); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextps256_ps512(__m256 __A) { - return (__m512)_mm512_insertf64x4(_mm512_setzero_pd(), (__m256d)__A, 0); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_zextsi256_si512(__m256i __A) { - return _mm512_inserti64x4(_mm512_setzero_si512(), __A, 0); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epu32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__A, (__v16si)__B, 0, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epu32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__A, (__v16si)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epu64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__A, (__v8di)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epu64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__A, (__v8di)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epu32_mask(__m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__A, (__v16si)__B, 6, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epu32_mask(__mmask16 __U, __m512i __A, __m512i __B) { - return (__mmask16)__builtin_ia32_ucmpd512_mask((__v16si)__A, (__v16si)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epu64_mask(__mmask8 __U, __m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__A, (__v8di)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epu64_mask(__m512i __A, __m512i __B) { - return (__mmask8)__builtin_ia32_ucmpq512_mask((__v8di)__A, (__v8di)__B, 6, - (__mmask8)-1); -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_add_epi32(__m512i __A) { - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 + __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 + __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 + __T7; - return __T8[0] + __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_mul_epi32(__m512i __A) { - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 * __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 * __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 * __T7; - return __T8[0] * __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_and_epi32(__m512i __A) { - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 & __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 & __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 & __T7; - return __T8[0] & __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_or_epi32(__m512i __A) { - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 | __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 | __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 | __T7; - return __T8[0] | __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_add_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi32(__U, __A); - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 + __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 + __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 + __T7; - return __T8[0] + __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_mul_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_mask_mov_epi32(_mm512_set1_epi32(1), __U, __A); - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 * __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 * __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 * __T7; - return __T8[0] * __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_and_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_mask_mov_epi32(_mm512_set1_epi32(~0), __U, __A); - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 & __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 & __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 & __T7; - return __T8[0] & __T8[1]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_or_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi32(__U, __A); - __v8si __T1 = (__v8si)_mm512_extracti64x4_epi64(__A, 1); - __v8si __T2 = (__v8si)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 | __T2); - __v4si __T4 = (__v4si)_mm256_extracti128_si256(__T3, 1); - __v4si __T5 = (__v4si)_mm256_extracti128_si256(__T3, 0); - __v4si __T6 = __T4 | __T5; - __v4si __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __v4si __T8 = __T6 | __T7; - return __T8[0] | __T8[1]; -} -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_epi32(__m512i __A) { - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_min_epi32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_min_epi32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_min_epi32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_min_epi32(__T8, __T9); - return __T10[0]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_epi32(__m512i __A) { - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_max_epi32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_max_epi32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_max_epi32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_max_epi32(__T8, __T9); - return __T10[0]; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_epu32(__m512i __A) { - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_min_epu32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_min_epu32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_min_epu32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_min_epu32(__T8, __T9); - return __T10[0]; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_epu32(__m512i __A) { - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_max_epu32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_max_epu32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_max_epu32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_max_epu32(__T8, __T9); - return __T10[0]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_mask_mov_epi32(_mm512_set1_epi32(0x7fffffff), __U, __A); - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_min_epi32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_min_epi32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_min_epi32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_min_epi32(__T8, __T9); - return __T10[0]; -} - -extern __inline int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_epi32(__mmask16 __U, __m512i __A) { - __A = _mm512_mask_mov_epi32(_mm512_set1_epi32(-0x7fffffff - 1), __U, __A); - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_max_epi32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_max_epi32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_max_epi32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_max_epi32(__T8, __T9); - return __T10[0]; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_epu32(__mmask16 __U, __m512i __A) { - __A = _mm512_mask_mov_epi32(_mm512_set1_epi32(~0), __U, __A); - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_min_epu32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_min_epu32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_min_epu32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_min_epu32(__T8, __T9); - return __T10[0]; -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_epu32(__mmask16 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi32(__U, __A); - __m256i __T1 = (__m256i)_mm512_extracti64x4_epi64(__A, 1); - __m256i __T2 = (__m256i)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = _mm256_max_epu32(__T1, __T2); - __m128i __T4 = (__m128i)_mm256_extracti128_si256(__T3, 1); - __m128i __T5 = (__m128i)_mm256_extracti128_si256(__T3, 0); - __m128i __T6 = _mm_max_epu32(__T4, __T5); - __m128i __T7 = (__m128i)__builtin_shuffle((__v4si)__T6, (__v4si){2, 3, 0, 1}); - __m128i __T8 = _mm_max_epu32(__T6, __T7); - __m128i __T9 = (__m128i)__builtin_shuffle((__v4si)__T8, (__v4si){1, 0, 1, 0}); - __v4si __T10 = (__v4si)_mm_max_epu32(__T8, __T9); - return __T10[0]; -} -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_add_ps(__m512 __A) { - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = __T1 + __T2; - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = __T4 + __T5; - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = __T6 + __T7; - return __T8[0] + __T8[1]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_mul_ps(__m512 __A) { - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = __T1 * __T2; - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = __T4 * __T5; - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = __T6 * __T7; - return __T8[0] * __T8[1]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_add_ps(__mmask16 __U, __m512 __A) { - __A = _mm512_maskz_mov_ps(__U, __A); - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = __T1 + __T2; - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = __T4 + __T5; - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = __T6 + __T7; - return __T8[0] + __T8[1]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_mul_ps(__mmask16 __U, __m512 __A) { - __A = _mm512_mask_mov_ps(_mm512_set1_ps(1.0f), __U, __A); - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = __T1 * __T2; - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = __T4 * __T5; - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = __T6 * __T7; - return __T8[0] * __T8[1]; -} -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_ps(__m512 __A) { - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = _mm256_min_ps(__T1, __T2); - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = _mm_min_ps(__T4, __T5); - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = _mm_min_ps(__T6, __T7); - __m128 __T9 = __builtin_shuffle(__T8, (__v4si){1, 0, 1, 0}); - __m128 __T10 = _mm_min_ps(__T8, __T9); - return __T10[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_ps(__m512 __A) { - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = _mm256_max_ps(__T1, __T2); - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = _mm_max_ps(__T4, __T5); - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = _mm_max_ps(__T6, __T7); - __m128 __T9 = __builtin_shuffle(__T8, (__v4si){1, 0, 1, 0}); - __m128 __T10 = _mm_max_ps(__T8, __T9); - return __T10[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_ps(__mmask16 __U, __m512 __A) { - __A = _mm512_mask_mov_ps(_mm512_set1_ps(__builtin_inff()), __U, __A); - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = _mm256_min_ps(__T1, __T2); - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = _mm_min_ps(__T4, __T5); - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = _mm_min_ps(__T6, __T7); - __m128 __T9 = __builtin_shuffle(__T8, (__v4si){1, 0, 1, 0}); - __m128 __T10 = _mm_min_ps(__T8, __T9); - return __T10[0]; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_ps(__mmask16 __U, __m512 __A) { - __A = _mm512_mask_mov_ps(_mm512_set1_ps(-__builtin_inff()), __U, __A); - __m256 __T1 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 1); - __m256 __T2 = (__m256)_mm512_extractf64x4_pd((__m512d)__A, 0); - __m256 __T3 = _mm256_max_ps(__T1, __T2); - __m128 __T4 = _mm256_extractf128_ps(__T3, 1); - __m128 __T5 = _mm256_extractf128_ps(__T3, 0); - __m128 __T6 = _mm_max_ps(__T4, __T5); - __m128 __T7 = __builtin_shuffle(__T6, (__v4si){2, 3, 0, 1}); - __m128 __T8 = _mm_max_ps(__T6, __T7); - __m128 __T9 = __builtin_shuffle(__T8, (__v4si){1, 0, 1, 0}); - __m128 __T10 = _mm_max_ps(__T8, __T9); - return __T10[0]; -} -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_add_epi64(__m512i __A) { - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 + __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 + __T5; - return __T6[0] + __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_mul_epi64(__m512i __A) { - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 * __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 * __T5; - return __T6[0] * __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_and_epi64(__m512i __A) { - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 & __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 & __T5; - return __T6[0] & __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_or_epi64(__m512i __A) { - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 | __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 | __T5; - return __T6[0] | __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_add_epi64(__mmask8 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi64(__U, __A); - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 + __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 + __T5; - return __T6[0] + __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_mul_epi64(__mmask8 __U, __m512i __A) { - __A = _mm512_mask_mov_epi64(_mm512_set1_epi64(1LL), __U, __A); - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 * __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 * __T5; - return __T6[0] * __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_and_epi64(__mmask8 __U, __m512i __A) { - __A = _mm512_mask_mov_epi64(_mm512_set1_epi64(~0LL), __U, __A); - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 & __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 & __T5; - return __T6[0] & __T6[1]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_or_epi64(__mmask8 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi64(__U, __A); - __v4di __T1 = (__v4di)_mm512_extracti64x4_epi64(__A, 1); - __v4di __T2 = (__v4di)_mm512_extracti64x4_epi64(__A, 0); - __m256i __T3 = (__m256i)(__T1 | __T2); - __v2di __T4 = (__v2di)_mm256_extracti128_si256(__T3, 1); - __v2di __T5 = (__v2di)_mm256_extracti128_si256(__T3, 0); - __v2di __T6 = __T4 | __T5; - return __T6[0] | __T6[1]; -} -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_epi64(__m512i __A) { - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_min_epi64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_min_epi64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_min_epi64(__T4, __T5); - return __T6[0]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_epi64(__m512i __A) { - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_max_epi64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_max_epi64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_max_epi64(__T4, __T5); - return __T6[0]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_epi64(__mmask8 __U, __m512i __A) { - __A = - _mm512_mask_mov_epi64(_mm512_set1_epi64(0x7fffffffffffffffLL), __U, __A); - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_min_epi64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_min_epi64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_min_epi64(__T4, __T5); - return __T6[0]; -} - -extern __inline long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_epi64(__mmask8 __U, __m512i __A) { - __A = _mm512_mask_mov_epi64(_mm512_set1_epi64(-0x7fffffffffffffffLL - 1), __U, - __A); - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_max_epi64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_max_epi64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_max_epi64(__T4, __T5); - return __T6[0]; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_epu64(__m512i __A) { - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_min_epu64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_min_epu64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_min_epu64(__T4, __T5); - return __T6[0]; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_epu64(__m512i __A) { - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_max_epu64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_max_epu64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_max_epu64(__T4, __T5); - return __T6[0]; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_epu64(__mmask8 __U, __m512i __A) { - __A = _mm512_mask_mov_epi64(_mm512_set1_epi64(~0LL), __U, __A); - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_min_epu64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_min_epu64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_min_epu64(__T4, __T5); - return __T6[0]; -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_epu64(__mmask8 __U, __m512i __A) { - __A = _mm512_maskz_mov_epi64(__U, __A); - __m512i __T1 = _mm512_shuffle_i64x2(__A, __A, 0x4e); - __m512i __T2 = _mm512_max_epu64(__A, __T1); - __m512i __T3 = (__m512i)__builtin_shuffle((__v8di)__T2, - (__v8di){2, 3, 0, 1, 6, 7, 4, 5}); - __m512i __T4 = _mm512_max_epu64(__T2, __T3); - __m512i __T5 = (__m512i)__builtin_shuffle((__v8di)__T4, - (__v8di){1, 0, 3, 2, 5, 4, 7, 6}); - __v8di __T6 = (__v8di)_mm512_max_epu64(__T4, __T5); - return __T6[0]; -} -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_add_pd(__m512d __A) { - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = __T1 + __T2; - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = __T4 + __T5; - return __T6[0] + __T6[1]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_mul_pd(__m512d __A) { - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = __T1 * __T2; - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = __T4 * __T5; - return __T6[0] * __T6[1]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_add_pd(__mmask8 __U, __m512d __A) { - __A = _mm512_maskz_mov_pd(__U, __A); - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = __T1 + __T2; - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = __T4 + __T5; - return __T6[0] + __T6[1]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_mul_pd(__mmask8 __U, __m512d __A) { - __A = _mm512_mask_mov_pd(_mm512_set1_pd(1.0), __U, __A); - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = __T1 * __T2; - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = __T4 * __T5; - return __T6[0] * __T6[1]; -} -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_min_pd(__m512d __A) { - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = _mm256_min_pd(__T1, __T2); - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = _mm_min_pd(__T4, __T5); - __m128d __T7 = (__m128d)__builtin_shuffle(__T6, (__v2di){1, 0}); - __m128d __T8 = _mm_min_pd(__T6, __T7); - return __T8[0]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_max_pd(__m512d __A) { - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = _mm256_max_pd(__T1, __T2); - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = _mm_max_pd(__T4, __T5); - __m128d __T7 = (__m128d)__builtin_shuffle(__T6, (__v2di){1, 0}); - __m128d __T8 = _mm_max_pd(__T6, __T7); - return __T8[0]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_min_pd(__mmask8 __U, __m512d __A) { - __A = _mm512_mask_mov_pd(_mm512_set1_pd(__builtin_inf()), __U, __A); - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = _mm256_min_pd(__T1, __T2); - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = _mm_min_pd(__T4, __T5); - __m128d __T7 = (__m128d)__builtin_shuffle(__T6, (__v2di){1, 0}); - __m128d __T8 = _mm_min_pd(__T6, __T7); - return __T8[0]; -} - -extern __inline double - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_max_pd(__mmask8 __U, __m512d __A) { - __A = _mm512_mask_mov_pd(_mm512_set1_pd(-__builtin_inf()), __U, __A); - __m256d __T1 = (__m256d)_mm512_extractf64x4_pd(__A, 1); - __m256d __T2 = (__m256d)_mm512_extractf64x4_pd(__A, 0); - __m256d __T3 = _mm256_max_pd(__T1, __T2); - __m128d __T4 = _mm256_extractf128_pd(__T3, 1); - __m128d __T5 = _mm256_extractf128_pd(__T3, 0); - __m128d __T6 = _mm_max_pd(__T4, __T5); - __m128d __T7 = (__m128d)__builtin_shuffle(__T6, (__v2di){1, 0}); - __m128d __T8 = _mm_max_pd(__T6, __T7); - return __T8[0]; -} - -typedef double __v8df __attribute__((__vector_size__(64))); -typedef float __v16sf __attribute__((__vector_size__(64))); - -typedef float __m512 __attribute__((__vector_size__(64), __may_alias__)); -typedef double __m512d __attribute__((__vector_size__(64), __may_alias__)); - -typedef unsigned char __mmask8; -typedef unsigned short __mmask16; - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_exp2a23_round_pd(__m512d __A, int __R) { - __m512d __W; - return (__m512d)__builtin_ia32_exp2pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)-1, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_exp2a23_round_pd(__m512d __W, __mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_exp2pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_exp2a23_round_pd(__mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_exp2pd_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_exp2a23_round_ps(__m512 __A, int __R) { - __m512 __W; - return (__m512)__builtin_ia32_exp2ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)-1, __R); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_exp2a23_round_ps(__m512 __W, __mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_exp2ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_exp2a23_round_ps(__mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_exp2ps_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rcp28_round_pd(__m512d __A, int __R) { - __m512d __W; - return (__m512d)__builtin_ia32_rcp28pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)-1, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rcp28_round_pd(__m512d __W, __mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_rcp28pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rcp28_round_pd(__mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_rcp28pd_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rcp28_round_ps(__m512 __A, int __R) { - __m512 __W; - return (__m512)__builtin_ia32_rcp28ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_rcp28_round_ps(__m512 __W, __mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_rcp28ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rcp28_round_ps(__mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_rcp28ps_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp28_round_sd(__m128d __A, __m128d __B, int __R) { - return (__m128d)__builtin_ia32_rcp28sd_round((__v2df)__B, (__v2df)__A, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp28_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - int __R) { - return (__m128d)__builtin_ia32_rcp28sd_mask_round((__v2df)__B, (__v2df)__A, - (__v2df)__W, __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp28_round_sd(__mmask8 __U, __m128d __A, __m128d __B, int __R) { - return (__m128d)__builtin_ia32_rcp28sd_mask_round( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_pd(), __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp28_round_ss(__m128 __A, __m128 __B, int __R) { - return (__m128)__builtin_ia32_rcp28ss_round((__v4sf)__B, (__v4sf)__A, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp28_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - int __R) { - return (__m128)__builtin_ia32_rcp28ss_mask_round((__v4sf)__B, (__v4sf)__A, - (__v4sf)__W, __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp28_round_ss(__mmask8 __U, __m128 __A, __m128 __B, int __R) { - return (__m128)__builtin_ia32_rcp28ss_mask_round( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), __U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rsqrt28_round_pd(__m512d __A, int __R) { - __m512d __W; - return (__m512d)__builtin_ia32_rsqrt28pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)-1, __R); -} - -extern __inline __m512d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rsqrt28_round_pd(__m512d __W, __mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_rsqrt28pd_mask((__v8df)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rsqrt28_round_pd(__mmask8 __U, __m512d __A, int __R) { - return (__m512d)__builtin_ia32_rsqrt28pd_mask( - (__v8df)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_rsqrt28_round_ps(__m512 __A, int __R) { - __m512 __W; - return (__m512)__builtin_ia32_rsqrt28ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)-1, __R); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_rsqrt28_round_ps(__m512 __W, __mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_rsqrt28ps_mask((__v16sf)__A, (__v16sf)__W, - (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_rsqrt28_round_ps(__mmask16 __U, __m512 __A, int __R) { - return (__m512)__builtin_ia32_rsqrt28ps_mask( - (__v16sf)__A, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt28_round_sd(__m128d __A, __m128d __B, int __R) { - return (__m128d)__builtin_ia32_rsqrt28sd_round((__v2df)__B, (__v2df)__A, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt28_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, int __R) { - return (__m128d)__builtin_ia32_rsqrt28sd_mask_round((__v2df)__B, (__v2df)__A, - (__v2df)__W, __U, __R); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_rsqrt28_round_sd(__mmask8 __U, __m128d __A, __m128d __B, int __R) { - return (__m128d)__builtin_ia32_rsqrt28sd_mask_round( - (__v2df)__B, (__v2df)__A, (__v2df)_mm_setzero_pd(), __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt28_round_ss(__m128 __A, __m128 __B, int __R) { - return (__m128)__builtin_ia32_rsqrt28ss_round((__v4sf)__B, (__v4sf)__A, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt28_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - int __R) { - return (__m128)__builtin_ia32_rsqrt28ss_mask_round((__v4sf)__B, (__v4sf)__A, - (__v4sf)__W, __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rsqrt28_round_ss(__mmask8 __U, __m128 __A, __m128 __B, int __R) { - return (__m128)__builtin_ia32_rsqrt28ss_mask_round( - (__v4sf)__B, (__v4sf)__A, (__v4sf)_mm_setzero_ps(), __U, __R); -} - -typedef long long __v8di __attribute__((__vector_size__(64))); -typedef int __v16si __attribute__((__vector_size__(64))); - -typedef long long __m512i __attribute__((__vector_size__(64), __may_alias__)); - -typedef unsigned char __mmask8; -typedef unsigned short __mmask16; - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i32gather_pd(__m256i __index, void const *__addr, - int __scale, int __hint) { - __builtin_ia32_gatherpfdpd((__mmask8)0xFF, (__v8si)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i32gather_ps(__m512i __index, void const *__addr, - int __scale, int __hint) { - __builtin_ia32_gatherpfdps((__mmask16)0xFFFF, (__v16si)__index, __addr, - __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i32gather_pd(__m256i __index, __mmask8 __mask, - void const *__addr, int __scale, - int __hint) { - __builtin_ia32_gatherpfdpd(__mask, (__v8si)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i32gather_ps(__m512i __index, __mmask16 __mask, - void const *__addr, int __scale, - int __hint) { - __builtin_ia32_gatherpfdps(__mask, (__v16si)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i64gather_pd(__m512i __index, void const *__addr, - int __scale, int __hint) { - __builtin_ia32_gatherpfqpd((__mmask8)0xFF, (__v8di)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i64gather_ps(__m512i __index, void const *__addr, - int __scale, int __hint) { - __builtin_ia32_gatherpfqps((__mmask8)0xFF, (__v8di)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i64gather_pd(__m512i __index, __mmask8 __mask, - void const *__addr, int __scale, - int __hint) { - __builtin_ia32_gatherpfqpd(__mask, (__v8di)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i64gather_ps(__m512i __index, __mmask8 __mask, - void const *__addr, int __scale, - int __hint) { - __builtin_ia32_gatherpfqps(__mask, (__v8di)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i32scatter_pd(void *__addr, __m256i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfdpd((__mmask8)0xFF, (__v8si)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i32scatter_ps(void *__addr, __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfdps((__mmask16)0xFFFF, (__v16si)__index, __addr, - __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i32scatter_pd(void *__addr, __mmask8 __mask, - __m256i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfdpd(__mask, (__v8si)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i32scatter_ps(void *__addr, __mmask16 __mask, - __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfdps(__mask, (__v16si)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i64scatter_pd(void *__addr, __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfqpd((__mmask8)0xFF, (__v8di)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_prefetch_i64scatter_ps(void *__addr, __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfqps((__mmask8)0xFF, (__v8di)__index, __addr, __scale, - __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i64scatter_pd(void *__addr, __mmask8 __mask, - __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfqpd(__mask, (__v8di)__index, __addr, __scale, __hint); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_prefetch_i64scatter_ps(void *__addr, __mmask8 __mask, - __m512i __index, int __scale, - int __hint) { - __builtin_ia32_scatterpfqps(__mask, (__v8di)__index, __addr, __scale, __hint); -} - -typedef long long __v8di __attribute__((__vector_size__(64))); -typedef int __v16si __attribute__((__vector_size__(64))); - -typedef long long __m512i __attribute__((__vector_size__(64), __may_alias__)); -typedef double __m512d __attribute__((__vector_size__(64), __may_alias__)); - -typedef unsigned char __mmask8; -typedef unsigned short __mmask16; - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_conflict_epi32(__m512i __A) { - return (__m512i)__builtin_ia32_vpconflictsi_512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_conflict_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpconflictsi_512_mask( - (__v16si)__A, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_conflict_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpconflictsi_512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_conflict_epi64(__m512i __A) { - return (__m512i)__builtin_ia32_vpconflictdi_512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_conflict_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpconflictdi_512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_conflict_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpconflictdi_512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_lzcnt_epi64(__m512i __A) { - return (__m512i)__builtin_ia32_vplzcntq_512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_lzcnt_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vplzcntq_512_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_lzcnt_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vplzcntq_512_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_lzcnt_epi32(__m512i __A) { - return (__m512i)__builtin_ia32_vplzcntd_512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_lzcnt_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vplzcntd_512_mask((__v16si)__A, (__v16si)__W, - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_lzcnt_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vplzcntd_512_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastmb_epi64(__mmask8 __A) { - return (__m512i)__builtin_ia32_broadcastmb512(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastmw_epi32(__mmask16 __A) { - return (__m512i)__builtin_ia32_broadcastmw512(__A); -} - -typedef unsigned int __mmask32; -typedef int __v4si_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); -typedef int __v8si_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -typedef long long __v2di_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); -typedef long long __v4di_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_movapd256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_movapd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_movapd128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_movapd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_load_pd(__m256d __W, __mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_loadapd256_mask((__v4df *)__P, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_load_pd(__mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_loadapd256_mask( - (__v4df *)__P, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_pd(__m128d __W, __mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_loadapd128_mask((__v2df *)__P, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_pd(__mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_loadapd128_mask( - (__v2df *)__P, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_store_pd(void *__P, __mmask8 __U, __m256d __A) { - __builtin_ia32_storeapd256_mask((__v4df *)__P, (__v4df)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_pd(void *__P, __mmask8 __U, __m128d __A) { - __builtin_ia32_storeapd128_mask((__v2df *)__P, (__v2df)__A, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movaps256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movaps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movaps128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movaps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_load_ps(__m256 __W, __mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_loadaps256_mask((__v8sf *)__P, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_load_ps(__mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_loadaps256_mask( - (__v8sf *)__P, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_ps(__m128 __W, __mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_loadaps128_mask((__v4sf *)__P, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_ps(__mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_loadaps128_mask( - (__v4sf *)__P, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_store_ps(void *__P, __mmask8 __U, __m256 __A) { - __builtin_ia32_storeaps256_mask((__v8sf *)__P, (__v8sf)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_ps(void *__P, __mmask8 __U, __m128 __A) { - __builtin_ia32_storeaps128_mask((__v4sf *)__P, (__v4sf)__A, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdqa64_256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdqa64_256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdqa64_128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdqa64_128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_load_epi64(void const *__P) { - return (__m256i)(*(__v4di *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_load_epi64(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_movdqa64load256_mask( - (__v4di *)__P, (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_load_epi64(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_movdqa64load256_mask( - (__v4di *)__P, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_epi64(void const *__P) { - return (__m128i)(*(__v2di *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_epi64(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_movdqa64load128_mask( - (__v2di *)__P, (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_epi64(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_movdqa64load128_mask( - (__v2di *)__P, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_store_epi64(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_movdqa64store256_mask((__v4di *)__P, (__v4di)__A, - (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_epi64(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_movdqa64store128_mask((__v2di *)__P, (__v2di)__A, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdqa32_256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdqa32_256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdqa32_128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdqa32_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_load_epi32(void const *__P) { - return (__m256i)(*(__v8si *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_load_epi32(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_movdqa32load256_mask( - (__v8si *)__P, (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_load_epi32(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_movdqa32load256_mask( - (__v8si *)__P, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_load_epi32(void const *__P) { - return (__m128i)(*(__v4si *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_load_epi32(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_movdqa32load128_mask( - (__v4si *)__P, (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_load_epi32(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_movdqa32load128_mask( - (__v4si *)__P, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_store_epi32(void *__P, __m256i __A) { - *(__v8si *)__P = (__v8si)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_store_epi32(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_movdqa32store256_mask((__v8si *)__P, (__v8si)__A, - (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_epi32(void *__P, __m128i __A) { - *(__v4si *)__P = (__v4si)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_store_epi32(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_movdqa32store128_mask((__v4si *)__P, (__v4si)__A, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_addpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_addpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_add_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_addpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_addpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_addps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_addps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_add_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_addps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_addps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_subpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_subpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sub_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_subpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_subpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_subps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_subps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sub_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_subps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_subps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_store_epi64(void *__P, __m256i __A) { - *(__m256i *)__P = __A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_store_epi64(void *__P, __m128i __A) { - *(__m128i *)__P = __A; -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_pd(__m256d __W, __mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_loadupd256_mask((const double *)__P, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_pd(__mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_loadupd256_mask( - (const double *)__P, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_pd(__m128d __W, __mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_loadupd128_mask((const double *)__P, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_pd(__mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_loadupd128_mask( - (const double *)__P, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_pd(void *__P, __mmask8 __U, __m256d __A) { - __builtin_ia32_storeupd256_mask((double *)__P, (__v4df)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_pd(void *__P, __mmask8 __U, __m128d __A) { - __builtin_ia32_storeupd128_mask((double *)__P, (__v2df)__A, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_ps(__m256 __W, __mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_loadups256_mask((const float *)__P, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_ps(__mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_loadups256_mask( - (const float *)__P, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_ps(__m128 __W, __mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_loadups128_mask((const float *)__P, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_ps(__mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_loadups128_mask( - (const float *)__P, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_ps(void *__P, __mmask8 __U, __m256 __A) { - __builtin_ia32_storeups256_mask((float *)__P, (__v8sf)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_ps(void *__P, __mmask8 __U, __m128 __A) { - __builtin_ia32_storeups128_mask((float *)__P, (__v4sf)__A, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_epi64(void const *__P) { - return (__m256i)(*(__v4di_u *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_epi64(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddqudi256_mask((const long long *)__P, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_epi64(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddqudi256_mask( - (const long long *)__P, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_epi64(void const *__P) { - return (__m128i)(*(__v2di_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_epi64(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddqudi128_mask((const long long *)__P, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_epi64(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddqudi128_mask( - (const long long *)__P, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_epi64(void *__P, __m256i __A) { - *(__m256i_u *)__P = (__m256i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_epi64(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_storedqudi256_mask((long long *)__P, (__v4di)__A, - (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_epi64(void *__P, __m128i __A) { - *(__m128i_u *)__P = (__m128i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_epi64(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_storedqudi128_mask((long long *)__P, (__v2di)__A, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_epi32(void const *__P) { - return (__m256i)(*(__v8si_u *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_epi32(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddqusi256_mask((const int *)__P, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_epi32(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddqusi256_mask( - (const int *)__P, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_epi32(void const *__P) { - return (__m128i)(*(__v4si_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_epi32(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddqusi128_mask((const int *)__P, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_epi32(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddqusi128_mask( - (const int *)__P, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_epi32(void *__P, __m256i __A) { - *(__m256i_u *)__P = (__m256i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_epi32(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_storedqusi256_mask((int *)__P, (__v8si)__A, (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_epi32(void *__P, __m128i __A) { - *(__m128i_u *)__P = (__m128i_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_epi32(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_storedqusi128_mask((int *)__P, (__v4si)__A, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_abs_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsd256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_abs_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsd256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_abs_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsd128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_abs_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsd128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_abs_epi64(__m256i __A) { - return (__m256i)__builtin_ia32_pabsq256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_abs_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsq256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_abs_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsq256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_abs_epi64(__m128i __A) { - return (__m128i)__builtin_ia32_pabsq128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_abs_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsq128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_abs_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsq128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtpd_epu32(__m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtpd_epu32(__m128i __W, __mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq256_mask((__v4df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtpd_epu32(__mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_epu32(__m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtpd_epu32(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq128_mask((__v2df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtpd_epu32(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2udq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttps_epi32(__m256i __W, __mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvttps2dq256_mask((__v8sf)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttps_epi32(__mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvttps2dq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttps_epi32(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2dq128_mask((__v4sf)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttps_epi32(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2dq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttps_epu32(__m256 __A) { - return (__m256i)__builtin_ia32_cvttps2udq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttps_epu32(__m256i __W, __mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvttps2udq256_mask((__v8sf)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttps_epu32(__mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvttps2udq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttps_epu32(__m128 __A) { - return (__m128i)__builtin_ia32_cvttps2udq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttps_epu32(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2udq128_mask((__v4sf)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttps_epu32(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2udq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttpd_epi32(__m128i __W, __mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq256_mask((__v4df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttpd_epi32(__mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttpd_epi32(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq128_mask((__v2df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttpd_epi32(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2dq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttpd_epu32(__m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttpd_epu32(__m128i __W, __mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq256_mask((__v4df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttpd_epu32(__mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttpd_epu32(__m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttpd_epu32(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq128_mask((__v2df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttpd_epu32(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2udq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtpd_epi32(__m128i __W, __mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq256_mask((__v4df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtpd_epi32(__mmask8 __U, __m256d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq256_mask( - (__v4df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtpd_epi32(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq128_mask((__v2df)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtpd_epi32(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2dq128_mask( - (__v2df)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_pd(__m256d __W, __mmask8 __U, __m128i __A) { - return (__m256d)__builtin_ia32_cvtdq2pd256_mask((__v4si)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi32_pd(__mmask8 __U, __m128i __A) { - return (__m256d)__builtin_ia32_cvtdq2pd256_mask( - (__v4si)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_pd(__m128d __W, __mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtdq2pd128_mask((__v4si)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi32_pd(__mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtdq2pd128_mask( - (__v4si)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu32_pd(__m128i __A) { - return (__m256d)__builtin_ia32_cvtudq2pd256_mask( - (__v4si)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu32_pd(__m256d __W, __mmask8 __U, __m128i __A) { - return (__m256d)__builtin_ia32_cvtudq2pd256_mask((__v4si)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu32_pd(__mmask8 __U, __m128i __A) { - return (__m256d)__builtin_ia32_cvtudq2pd256_mask( - (__v4si)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu32_pd(__m128i __A) { - return (__m128d)__builtin_ia32_cvtudq2pd128_mask( - (__v4si)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu32_pd(__m128d __W, __mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtudq2pd128_mask((__v4si)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu32_pd(__mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtudq2pd128_mask( - (__v4si)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_ps(__m256 __W, __mmask8 __U, __m256i __A) { - return (__m256)__builtin_ia32_cvtdq2ps256_mask((__v8si)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi32_ps(__mmask8 __U, __m256i __A) { - return (__m256)__builtin_ia32_cvtdq2ps256_mask( - (__v8si)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_ps(__m128 __W, __mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtdq2ps128_mask((__v4si)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi32_ps(__mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtdq2ps128_mask( - (__v4si)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu32_ps(__m256i __A) { - return (__m256)__builtin_ia32_cvtudq2ps256_mask( - (__v8si)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu32_ps(__m256 __W, __mmask8 __U, __m256i __A) { - return (__m256)__builtin_ia32_cvtudq2ps256_mask((__v8si)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu32_ps(__mmask8 __U, __m256i __A) { - return (__m256)__builtin_ia32_cvtudq2ps256_mask( - (__v8si)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu32_ps(__m128i __A) { - return (__m128)__builtin_ia32_cvtudq2ps128_mask( - (__v4si)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu32_ps(__m128 __W, __mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtudq2ps128_mask((__v4si)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu32_ps(__mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtudq2ps128_mask( - (__v4si)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_pd(__m256d __W, __mmask8 __U, __m128 __A) { - return (__m256d)__builtin_ia32_cvtps2pd256_mask((__v4sf)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_pd(__mmask8 __U, __m128 __A) { - return (__m256d)__builtin_ia32_cvtps2pd256_mask( - (__v4sf)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_pd(__m128d __W, __mmask8 __U, __m128 __A) { - return (__m128d)__builtin_ia32_cvtps2pd128_mask((__v4sf)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_pd(__mmask8 __U, __m128 __A) { - return (__m128d)__builtin_ia32_cvtps2pd128_mask( - (__v4sf)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi32_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovdb128_mask( - (__v4si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovdb128mem_mask((unsigned int *)__P, (__v4si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovdb128_mask((__v4si)__A, (__v16qi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi32_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovdb128_mask( - (__v4si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi32_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovdb256_mask( - (__v8si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovdb256_mask((__v8si)__A, (__v16qi)__O, __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovdb256mem_mask((unsigned long long *)__P, (__v8si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi32_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovdb256_mask( - (__v8si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi32_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovsdb128_mask( - (__v4si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi32_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovsdb128mem_mask((unsigned int *)__P, (__v4si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi32_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsdb128_mask((__v4si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi32_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsdb128_mask( - (__v4si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi32_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovsdb256_mask( - (__v8si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi32_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovsdb256mem_mask((unsigned long long *)__P, (__v8si)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi32_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsdb256_mask((__v8si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi32_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsdb256_mask( - (__v8si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi32_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovusdb128_mask( - (__v4si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi32_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovusdb128mem_mask((unsigned int *)__P, (__v4si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi32_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusdb128_mask((__v4si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi32_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusdb128_mask( - (__v4si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi32_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovusdb256_mask( - (__v8si)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi32_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovusdb256mem_mask((unsigned long long *)__P, (__v8si)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi32_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusdb256_mask((__v8si)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi32_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusdb256_mask( - (__v8si)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi32_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovdw128_mask( - (__v4si)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovdw128mem_mask((unsigned long long *)__P, (__v4si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovdw128_mask((__v4si)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi32_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovdw128_mask( - (__v4si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi32_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovdw256_mask( - (__v8si)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovdw256mem_mask((__v8hi *)__P, (__v8si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovdw256_mask((__v8si)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi32_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovdw256_mask( - (__v8si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi32_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovsdw128_mask( - (__v4si)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi32_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovsdw128mem_mask((unsigned long long *)__P, (__v4si)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi32_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsdw128_mask((__v4si)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi32_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsdw128_mask( - (__v4si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi32_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovsdw256_mask( - (__v8si)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi32_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovsdw256mem_mask((__v8hi *)__P, (__v8si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi32_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsdw256_mask((__v8si)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi32_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsdw256_mask( - (__v8si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi32_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovusdw128_mask( - (__v4si)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi32_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovusdw128mem_mask((unsigned long long *)__P, (__v4si)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi32_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusdw128_mask((__v4si)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi32_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusdw128_mask( - (__v4si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi32_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovusdw256_mask( - (__v8si)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi32_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovusdw256mem_mask((__v8hi *)__P, (__v8si)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi32_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusdw256_mask((__v8si)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi32_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusdw256_mask( - (__v8si)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi64_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovqb128_mask( - (__v2di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovqb128mem_mask((unsigned short *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqb128_mask((__v2di)__A, (__v16qi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi64_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqb128_mask( - (__v2di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi64_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovqb256_mask( - (__v4di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovqb256mem_mask((unsigned int *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqb256_mask((__v4di)__A, (__v16qi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi64_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqb256_mask( - (__v4di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi64_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovsqb128_mask( - (__v2di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovsqb128mem_mask((unsigned short *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqb128_mask((__v2di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi64_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqb128_mask( - (__v2di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi64_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovsqb256_mask( - (__v4di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovsqb256mem_mask((unsigned int *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqb256_mask((__v4di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi64_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqb256_mask( - (__v4di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi64_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_pmovusqb128_mask( - (__v2di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovusqb128mem_mask((unsigned short *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqb128_mask((__v2di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi64_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqb128_mask( - (__v2di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi64_epi8(__m256i __A) { - return (__m128i)__builtin_ia32_pmovusqb256_mask( - (__v4di)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_storeu_epi8(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovusqb256mem_mask((unsigned int *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_epi8(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqb256_mask((__v4di)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi64_epi8(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqb256_mask( - (__v4di)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi64_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovqw128_mask( - (__v2di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovqw128mem_mask((unsigned int *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqw128_mask((__v2di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi64_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqw128_mask( - (__v2di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi64_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovqw256_mask( - (__v4di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovqw256mem_mask((unsigned long long *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqw256_mask((__v4di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi64_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqw256_mask( - (__v4di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi64_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovsqw128_mask( - (__v2di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovsqw128mem_mask((unsigned int *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqw128_mask((__v2di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi64_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqw128_mask( - (__v2di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi64_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovsqw256_mask( - (__v4di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovsqw256mem_mask((unsigned long long *)__P, (__v4di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqw256_mask((__v4di)__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi64_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqw256_mask( - (__v4di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi64_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_pmovusqw128_mask( - (__v2di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_storeu_epi16(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovusqw128mem_mask((unsigned int *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqw128_mask((__v2di)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi64_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqw128_mask( - (__v2di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi64_epi16(__m256i __A) { - return (__m128i)__builtin_ia32_pmovusqw256_mask( - (__v4di)__A, (__v8hi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_storeu_epi16(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovusqw256mem_mask((unsigned long long *)__P, (__v4di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_epi16(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqw256_mask((__v4di)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi64_epi16(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqw256_mask( - (__v4di)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi64_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_pmovqd128_mask( - (__v2di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_storeu_epi32(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovqd128mem_mask((unsigned long long *)__P, (__v2di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_epi32(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqd128_mask((__v2di)__A, (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi64_epi32(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovqd128_mask( - (__v2di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi64_epi32(__m256i __A) { - return (__m128i)__builtin_ia32_pmovqd256_mask( - (__v4di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_storeu_epi32(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovqd256mem_mask((__v4si *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_epi32(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqd256_mask((__v4di)__A, (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi64_epi32(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovqd256_mask( - (__v4di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi64_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_pmovsqd128_mask( - (__v2di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_storeu_epi32(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovsqd128mem_mask((unsigned long long *)__P, (__v2di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi64_epi32(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqd128_mask((__v2di)__A, (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi64_epi32(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsqd128_mask( - (__v2di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi64_epi32(__m256i __A) { - return (__m128i)__builtin_ia32_pmovsqd256_mask( - (__v4di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_storeu_epi32(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovsqd256mem_mask((__v4si *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi64_epi32(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqd256_mask((__v4di)__A, (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi64_epi32(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovsqd256_mask( - (__v4di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi64_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_pmovusqd128_mask( - (__v2di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_storeu_epi32(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovusqd128mem_mask((unsigned long long *)__P, (__v2di)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi64_epi32(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqd128_mask((__v2di)__A, (__v4si)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi64_epi32(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovusqd128_mask( - (__v2di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi64_epi32(__m256i __A) { - return (__m128i)__builtin_ia32_pmovusqd256_mask( - (__v4di)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_storeu_epi32(void *__P, __mmask8 __M, __m256i __A) { - __builtin_ia32_pmovusqd256mem_mask((__v4si *)__P, (__v4di)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi64_epi32(__m128i __O, __mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqd256_mask((__v4di)__A, (__v4si)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi64_epi32(__mmask8 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovusqd256_mask( - (__v4di)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastss_ps(__m256 __O, __mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastss256_mask((__v4sf)__A, (__v8sf)__O, - __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastss_ps(__mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastss256_mask( - (__v4sf)__A, (__v8sf)_mm256_setzero_ps(), __M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcastss_ps(__m128 __O, __mmask8 __M, __m128 __A) { - return (__m128)__builtin_ia32_broadcastss128_mask((__v4sf)__A, (__v4sf)__O, - __M); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcastss_ps(__mmask8 __M, __m128 __A) { - return (__m128)__builtin_ia32_broadcastss128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), __M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastsd_pd(__m256d __O, __mmask8 __M, __m128d __A) { - return (__m256d)__builtin_ia32_broadcastsd256_mask((__v2df)__A, (__v4df)__O, - __M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastsd_pd(__mmask8 __M, __m128d __A) { - return (__m256d)__builtin_ia32_broadcastsd256_mask( - (__v2df)__A, (__v4df)_mm256_setzero_pd(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastd_epi32(__m256i __O, __mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastd256_mask((__v4si)__A, (__v8si)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastd_epi32(__mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastd256_mask( - (__v4si)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_set1_epi32(__m256i __O, __mmask8 __M, int __A) { - return (__m256i)__builtin_ia32_pbroadcastd256_gpr_mask(__A, (__v8si)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_set1_epi32(__mmask8 __M, int __A) { - return (__m256i)__builtin_ia32_pbroadcastd256_gpr_mask( - __A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcastd_epi32(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastd128_mask((__v4si)__A, (__v4si)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcastd_epi32(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastd128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_set1_epi32(__m128i __O, __mmask8 __M, int __A) { - return (__m128i)__builtin_ia32_pbroadcastd128_gpr_mask(__A, (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_set1_epi32(__mmask8 __M, int __A) { - return (__m128i)__builtin_ia32_pbroadcastd128_gpr_mask( - __A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastq_epi64(__m256i __O, __mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastq256_mask((__v2di)__A, (__v4di)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastq_epi64(__mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastq256_mask( - (__v2di)__A, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_set1_epi64(__m256i __O, __mmask8 __M, long long __A) { - return (__m256i)__builtin_ia32_pbroadcastq256_gpr_mask(__A, (__v4di)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_set1_epi64(__mmask8 __M, long long __A) { - return (__m256i)__builtin_ia32_pbroadcastq256_gpr_mask( - __A, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcastq_epi64(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastq128_mask((__v2di)__A, (__v2di)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcastq_epi64(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastq128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_set1_epi64(__m128i __O, __mmask8 __M, long long __A) { - return (__m128i)__builtin_ia32_pbroadcastq128_gpr_mask(__A, (__v2di)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_set1_epi64(__mmask8 __M, long long __A) { - return (__m128i)__builtin_ia32_pbroadcastq128_gpr_mask( - __A, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_f32x4(__m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x4_256_mask( - (__v4sf)__A, (__v8sf)_mm256_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_f32x4(__m256 __O, __mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x4_256_mask((__v4sf)__A, - (__v8sf)__O, __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_f32x4(__mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x4_256_mask( - (__v4sf)__A, (__v8sf)_mm256_setzero_ps(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_i32x4(__m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x4_256_mask( - (__v4si)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_i32x4(__m256i __O, __mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x4_256_mask((__v4si)__A, - (__v8si)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_i32x4(__mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x4_256_mask( - (__v4si)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi8_epi32(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbd256_mask((__v16qi)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi8_epi32(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbd256_mask( - (__v16qi)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi8_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbd128_mask((__v16qi)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi8_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbd128_mask( - (__v16qi)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi8_epi64(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbq256_mask((__v16qi)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi8_epi64(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbq256_mask( - (__v16qi)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi8_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbq128_mask((__v16qi)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi8_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbq128_mask( - (__v16qi)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi16_epi32(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxwd256_mask((__v8hi)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi16_epi32(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxwd256_mask( - (__v8hi)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi16_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxwd128_mask((__v8hi)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi16_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxwd128_mask( - (__v8hi)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi16_epi64(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxwq256_mask((__v8hi)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi16_epi64(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxwq256_mask( - (__v8hi)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi16_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxwq128_mask((__v8hi)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi16_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxwq128_mask( - (__v8hi)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi32_epi64(__m256i __W, __mmask8 __U, __m128i __X) { - return (__m256i)__builtin_ia32_pmovsxdq256_mask((__v4si)__X, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi32_epi64(__mmask8 __U, __m128i __X) { - return (__m256i)__builtin_ia32_pmovsxdq256_mask( - (__v4si)__X, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi32_epi64(__m128i __W, __mmask8 __U, __m128i __X) { - return (__m128i)__builtin_ia32_pmovsxdq128_mask((__v4si)__X, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi32_epi64(__mmask8 __U, __m128i __X) { - return (__m128i)__builtin_ia32_pmovsxdq128_mask( - (__v4si)__X, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu8_epi32(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbd256_mask((__v16qi)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu8_epi32(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbd256_mask( - (__v16qi)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu8_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbd128_mask((__v16qi)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu8_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbd128_mask( - (__v16qi)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu8_epi64(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbq256_mask((__v16qi)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu8_epi64(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbq256_mask( - (__v16qi)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu8_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbq128_mask((__v16qi)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu8_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbq128_mask( - (__v16qi)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu16_epi32(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxwd256_mask((__v8hi)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu16_epi32(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxwd256_mask( - (__v8hi)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu16_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxwd128_mask((__v8hi)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu16_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxwd128_mask( - (__v8hi)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu16_epi64(__m256i __W, __mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxwq256_mask((__v8hi)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu16_epi64(__mmask8 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxwq256_mask( - (__v8hi)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu16_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxwq128_mask((__v8hi)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu16_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxwq128_mask( - (__v8hi)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu32_epi64(__m256i __W, __mmask8 __U, __m128i __X) { - return (__m256i)__builtin_ia32_pmovzxdq256_mask((__v4si)__X, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu32_epi64(__mmask8 __U, __m128i __X) { - return (__m256i)__builtin_ia32_pmovzxdq256_mask( - (__v4si)__X, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu32_epi64(__m128i __W, __mmask8 __U, __m128i __X) { - return (__m128i)__builtin_ia32_pmovzxdq128_mask((__v4si)__X, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu32_epi64(__mmask8 __U, __m128i __X) { - return (__m128i)__builtin_ia32_pmovzxdq128_mask( - (__v4si)__X, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rcp14_pd(__m256d __A) { - return (__m256d)__builtin_ia32_rcp14pd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_rcp14_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_rcp14pd256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rcp14_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_rcp14pd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp14_pd(__m128d __A) { - return (__m128d)__builtin_ia32_rcp14pd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp14_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_rcp14pd128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp14_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_rcp14pd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rcp14_ps(__m256 __A) { - return (__m256)__builtin_ia32_rcp14ps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_rcp14_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_rcp14ps256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rcp14_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_rcp14ps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rcp14_ps(__m128 __A) { - return (__m128)__builtin_ia32_rcp14ps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rcp14_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_rcp14ps128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rcp14_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_rcp14ps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rsqrt14_pd(__m256d __A) { - return (__m256d)__builtin_ia32_rsqrt14pd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_rsqrt14_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_rsqrt14pd256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rsqrt14_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_rsqrt14pd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt14_pd(__m128d __A) { - return (__m128d)__builtin_ia32_rsqrt14pd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt14_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_rsqrt14pd128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rsqrt14_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_rsqrt14pd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rsqrt14_ps(__m256 __A) { - return (__m256)__builtin_ia32_rsqrt14ps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_rsqrt14_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_rsqrt14ps256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rsqrt14_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_rsqrt14ps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rsqrt14_ps(__m128 __A) { - return (__m128)__builtin_ia32_rsqrt14ps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rsqrt14_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_rsqrt14ps128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rsqrt14_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_rsqrt14ps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sqrt_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_sqrtpd256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sqrt_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_sqrtpd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sqrt_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_sqrtpd128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sqrt_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_sqrtpd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sqrt_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_sqrtps256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sqrt_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_sqrtps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sqrt_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_sqrtps128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sqrt_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_sqrtps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_add_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_add_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sub_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sub_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_getexp_ps(__m256 __A) { - return (__m256)__builtin_ia32_getexpps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_getexp_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_getexpps256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_getexp_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_getexpps256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_getexp_pd(__m256d __A) { - return (__m256d)__builtin_ia32_getexppd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_getexp_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_getexppd256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_getexp_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_getexppd256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_ps(__m128 __A) { - return (__m128)__builtin_ia32_getexpps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_getexpps128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getexp_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_getexpps128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getexp_pd(__m128d __A) { - return (__m128d)__builtin_ia32_getexppd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getexp_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_getexppd128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getexp_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_getexppd128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srl_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrld256_mask((__v8si)__A, (__v4si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srl_epi32(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrld256_mask( - (__v8si)__A, (__v4si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srl_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrld128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srl_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrld128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srl_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlq256_mask((__v4di)__A, (__v2di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srl_epi64(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlq256_mask( - (__v4di)__A, (__v2di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srl_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srl_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_and_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_and_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_scalef_pd(__m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_scalefpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_scalef_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_scalefpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_scalef_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_scalefpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_scalef_ps(__m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_scalefps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_scalef_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_scalefps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_scalef_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_scalefps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_pd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_scalefpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_scalef_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_scalefpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_scalef_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_scalefpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_scalef_ps(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_scalefps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_scalef_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_scalefps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_scalef_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_scalefps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmadd_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmadd_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfmaddpd256_mask3((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmadd_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256_maskz((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmaddpd128_mask3((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd128_maskz((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmadd_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmadd_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfmaddps256_mask3((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmadd_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256_maskz((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmadd_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmadd_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmaddps128_mask3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmadd_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps128_maskz((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmsub_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmsubpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmsub_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfmsubpd256_mask3((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmsub_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmsubpd256_maskz((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmsubpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmsubpd128_mask3((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmsubpd128_maskz((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmsub_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmsubps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmsub_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfmsubps256_mask3((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmsub_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmsubps256_maskz((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsub_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmsubps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsub_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmsubps128_mask3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsub_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmsubps128_maskz((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_fmaddsub_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask3_fmaddsub_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfmaddsubpd256_mask3( - (__v4df)__A, (__v4df)__B, (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_fmaddsub_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256_maskz( - (__v4df)__A, (__v4df)__B, (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmaddsub_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmaddsub_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmaddsubpd128_mask3( - (__v2df)__A, (__v2df)__B, (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmaddsub_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd128_maskz( - (__v2df)__A, (__v2df)__B, (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmaddsub_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmaddsub_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfmaddsubps256_mask3( - (__v8sf)__A, (__v8sf)__B, (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmaddsub_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256_maskz( - (__v8sf)__A, (__v8sf)__B, (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmaddsub_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmaddsub_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmaddsubps128_mask3( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmaddsub_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps128_maskz( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_fmsubadd_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256_mask( - (__v4df)__A, (__v4df)__B, -(__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask3_fmsubadd_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfmsubaddpd256_mask3( - (__v4df)__A, (__v4df)__B, (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_fmsubadd_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256_maskz( - (__v4df)__A, (__v4df)__B, -(__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsubadd_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd128_mask( - (__v2df)__A, (__v2df)__B, -(__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsubadd_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfmsubaddpd128_mask3( - (__v2df)__A, (__v2df)__B, (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsubadd_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd128_maskz( - (__v2df)__A, (__v2df)__B, -(__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fmsubadd_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256_mask( - (__v8sf)__A, (__v8sf)__B, -(__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fmsubadd_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfmsubaddps256_mask3( - (__v8sf)__A, (__v8sf)__B, (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fmsubadd_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256_maskz( - (__v8sf)__A, (__v8sf)__B, -(__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fmsubadd_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps128_mask( - (__v4sf)__A, (__v4sf)__B, -(__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fmsubadd_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfmsubaddps128_mask3( - (__v4sf)__A, (__v4sf)__B, (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fmsubadd_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps128_maskz( - (__v4sf)__A, (__v4sf)__B, -(__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fnmadd_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmaddpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask3_fnmadd_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfnmaddpd256_mask3((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_fnmadd_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmaddpd256_maskz((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmaddpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfnmaddpd128_mask3((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmaddpd128_maskz((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fnmadd_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmaddps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fnmadd_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfnmaddps256_mask3((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fnmadd_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmaddps256_maskz((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmadd_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmaddps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmadd_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfnmaddps128_mask3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmadd_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmaddps128_maskz((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fnmsub_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmsubpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask3_fnmsub_pd(__m256d __A, __m256d __B, __m256d __C, __mmask8 __U) { - return (__m256d)__builtin_ia32_vfnmsubpd256_mask3((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_fnmsub_pd(__mmask8 __U, __m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmsubpd256_maskz((__v4df)__A, (__v4df)__B, - (__v4df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmsubpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_pd(__m128d __A, __m128d __B, __m128d __C, __mmask8 __U) { - return (__m128d)__builtin_ia32_vfnmsubpd128_mask3((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmsubpd128_maskz((__v2df)__A, (__v2df)__B, - (__v2df)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fnmsub_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmsubps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask3_fnmsub_ps(__m256 __A, __m256 __B, __m256 __C, __mmask8 __U) { - return (__m256)__builtin_ia32_vfnmsubps256_mask3((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fnmsub_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmsubps256_maskz((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fnmsub_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmsubps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask3_fnmsub_ps(__m128 __A, __m128 __B, __m128 __C, __mmask8 __U) { - return (__m128)__builtin_ia32_vfnmsubps128_mask3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fnmsub_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmsubps128_maskz((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_and_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_and_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_andnot_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandnd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_andnot_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandnd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_andnot_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandnd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_andnot_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandnd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_or_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pord256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_or_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pord256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_or_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8su)__A | (__v8su)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_or_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pord128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_or_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pord128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4su)__A | (__v4su)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_xor_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pxord256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_xor_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pxord256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_xor_epi32(__m256i __A, __m256i __B) { - return (__m256i)((__v8su)__A ^ (__v8su)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_xor_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pxord128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_xor_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pxord128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_epi32(__m128i __A, __m128i __B) { - return (__m128i)((__v4su)__A ^ (__v4su)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtpd_ps(__m128 __W, __mmask8 __U, __m128d __A) { - return (__m128)__builtin_ia32_cvtpd2ps_mask((__v2df)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtpd_ps(__mmask8 __U, __m128d __A) { - return (__m128)__builtin_ia32_cvtpd2ps_mask( - (__v2df)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtpd_ps(__m128 __W, __mmask8 __U, __m256d __A) { - return (__m128)__builtin_ia32_cvtpd2ps256_mask((__v4df)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtpd_ps(__mmask8 __U, __m256d __A) { - return (__m128)__builtin_ia32_cvtpd2ps256_mask( - (__v4df)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_epi32(__m256i __W, __mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvtps2dq256_mask((__v8sf)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_epi32(__mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvtps2dq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_epi32(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2dq128_mask((__v4sf)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_epi32(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2dq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_epu32(__m256 __A) { - return (__m256i)__builtin_ia32_cvtps2udq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_epu32(__m256i __W, __mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvtps2udq256_mask((__v8sf)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_epu32(__mmask8 __U, __m256 __A) { - return (__m256i)__builtin_ia32_cvtps2udq256_mask( - (__v8sf)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_epu32(__m128 __A) { - return (__m128i)__builtin_ia32_cvtps2udq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_epu32(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2udq128_mask((__v4sf)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_epu32(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2udq128_mask( - (__v4sf)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_movedup_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_movddup256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_movedup_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_movddup256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_movedup_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_movddup128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_movedup_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_movddup128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_movehdup_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movshdup256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_movehdup_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movshdup256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_movehdup_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movshdup128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_movehdup_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movshdup128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_moveldup_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movsldup256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_moveldup_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_movsldup256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_moveldup_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movsldup128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_moveldup_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_movsldup128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpackhi_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhdq128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhdq128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpackhi_epi32(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpckhdq256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhdq256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpackhi_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhqdq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhqdq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpackhi_epi64(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpckhqdq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhqdq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpacklo_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckldq128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckldq128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpacklo_epi32(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpckldq256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckldq256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpacklo_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklqdq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklqdq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpacklo_epi64(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpcklqdq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklqdq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epu32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__A, (__v4si)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqd128_mask((__v4si)__A, (__v4si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epu32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__A, (__v4si)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epi32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqd128_mask((__v4si)__A, (__v4si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epu32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__A, (__v8si)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpeqd256_mask((__v8si)__A, (__v8si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epu32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__A, (__v8si)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epi32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpeqd256_mask((__v8si)__A, (__v8si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epu64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__A, (__v2di)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq128_mask((__v2di)__A, (__v2di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epu64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__A, (__v2di)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epi64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq128_mask((__v2di)__A, (__v2di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epu64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__A, (__v4di)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq256_mask((__v4di)__A, (__v4di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epu64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__A, (__v4di)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epi64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpeqq256_mask((__v4di)__A, (__v4di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epu32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__A, (__v4si)__B, 6, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtd128_mask((__v4si)__A, (__v4si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epu32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__A, (__v4si)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epi32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtd128_mask((__v4si)__A, (__v4si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epu32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__A, (__v8si)__B, 6, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpgtd256_mask((__v8si)__A, (__v8si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epu32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__A, (__v8si)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epi32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpgtd256_mask((__v8si)__A, (__v8si)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epu64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__A, (__v2di)__B, 6, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq128_mask((__v2di)__A, (__v2di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epu64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__A, (__v2di)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epi64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq128_mask((__v2di)__A, (__v2di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epu64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__A, (__v4di)__B, 6, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq256_mask((__v4di)__A, (__v4di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epu64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__A, (__v4di)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epi64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_pcmpgtq256_mask((__v4di)__A, (__v4di)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_test_epi32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmd128((__v4si)__A, (__v4si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_test_epi32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmd128((__v4si)__A, (__v4si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_test_epi32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestmd256((__v8si)__A, (__v8si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_test_epi32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestmd256((__v8si)__A, (__v8si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_test_epi64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmq128((__v2di)__A, (__v2di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_test_epi64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmq128((__v2di)__A, (__v2di)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_test_epi64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestmq256((__v4di)__A, (__v4di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_test_epi64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestmq256((__v4di)__A, (__v4di)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testn_epi32_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmd128((__v4si)__A, (__v4si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_testn_epi32_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmd128((__v4si)__A, (__v4si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testn_epi32_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestnmd256((__v8si)__A, (__v8si)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_testn_epi32_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestnmd256((__v8si)__A, (__v8si)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testn_epi64_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmq128((__v2di)__A, (__v2di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_testn_epi64_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmq128((__v2di)__A, (__v2di)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testn_epi64_mask(__m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestnmq256((__v4di)__A, (__v4di)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_testn_epi64_mask(__mmask8 __U, __m256i __A, __m256i __B) { - return (__mmask8)__builtin_ia32_ptestnmq256((__v4di)__A, (__v4di)__B, __U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_compressdf256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_compressdf256_mask( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_pd(void *__P, __mmask8 __U, __m256d __A) { - __builtin_ia32_compressstoredf256_mask((__v4df *)__P, (__v4df)__A, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_compressdf128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_compressdf128_mask( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_pd(void *__P, __mmask8 __U, __m128d __A) { - __builtin_ia32_compressstoredf128_mask((__v2df *)__P, (__v2df)__A, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_compresssf256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_compresssf256_mask( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_ps(void *__P, __mmask8 __U, __m256 __A) { - __builtin_ia32_compressstoresf256_mask((__v8sf *)__P, (__v8sf)__A, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_compresssf128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_compresssf128_mask( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_ps(void *__P, __mmask8 __U, __m128 __A) { - __builtin_ia32_compressstoresf128_mask((__v4sf *)__P, (__v4sf)__A, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_compressdi256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_compressdi256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_epi64(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_compressstoredi256_mask((__v4di *)__P, (__v4di)__A, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_compressdi128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_compressdi128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_epi64(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_compressstoredi128_mask((__v2di *)__P, (__v2di)__A, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_compresssi256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_compresssi256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_epi32(void *__P, __mmask8 __U, __m256i __A) { - __builtin_ia32_compressstoresi256_mask((__v8si *)__P, (__v8si)__A, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_compresssi128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_compresssi128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_epi32(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_compressstoresi128_mask((__v4si *)__P, (__v4si)__A, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_pd(__m256d __W, __mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_expanddf256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_pd(__mmask8 __U, __m256d __A) { - return (__m256d)__builtin_ia32_expanddf256_maskz( - (__v4df)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_pd(__m256d __W, __mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_expandloaddf256_mask( - (__v4df *)__P, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_pd(__mmask8 __U, void const *__P) { - return (__m256d)__builtin_ia32_expandloaddf256_maskz( - (__v4df *)__P, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_pd(__m128d __W, __mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_expanddf128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_pd(__mmask8 __U, __m128d __A) { - return (__m128d)__builtin_ia32_expanddf128_maskz( - (__v2df)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_pd(__m128d __W, __mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_expandloaddf128_mask( - (__v2df *)__P, (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_pd(__mmask8 __U, void const *__P) { - return (__m128d)__builtin_ia32_expandloaddf128_maskz( - (__v2df *)__P, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_ps(__m256 __W, __mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_expandsf256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_ps(__mmask8 __U, __m256 __A) { - return (__m256)__builtin_ia32_expandsf256_maskz( - (__v8sf)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_ps(__m256 __W, __mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_expandloadsf256_mask((__v8sf *)__P, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_ps(__mmask8 __U, void const *__P) { - return (__m256)__builtin_ia32_expandloadsf256_maskz( - (__v8sf *)__P, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_ps(__m128 __W, __mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_expandsf128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_ps(__mmask8 __U, __m128 __A) { - return (__m128)__builtin_ia32_expandsf128_maskz( - (__v4sf)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_ps(__m128 __W, __mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_expandloadsf128_mask((__v4sf *)__P, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_ps(__mmask8 __U, void const *__P) { - return (__m128)__builtin_ia32_expandloadsf128_maskz( - (__v4sf *)__P, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_expanddi256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_expanddi256_maskz( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_epi64(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_expandloaddi256_mask( - (__v4di *)__P, (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_epi64(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_expandloaddi256_maskz( - (__v4di *)__P, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_expanddi128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_expanddi128_maskz( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_epi64(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_expandloaddi128_mask( - (__v2di *)__P, (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_epi64(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_expandloaddi128_maskz( - (__v2di *)__P, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_expandsi256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_expandsi256_maskz( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_epi32(__m256i __W, __mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_expandloadsi256_mask( - (__v8si *)__P, (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_epi32(__mmask8 __U, void const *__P) { - return (__m256i)__builtin_ia32_expandloadsi256_maskz( - (__v8si *)__P, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_expandsi128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_expandsi128_maskz( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_epi32(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_expandloadsi128_mask( - (__v4si *)__P, (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_epi32(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_expandloadsi128_maskz( - (__v4si *)__P, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_pd(__m256d __A, __m256i __I, __m256d __B) { - return (__m256d)__builtin_ia32_vpermt2varpd256_mask( - (__v4di)__I, (__v4df)__A, (__v4df)__B, (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex2var_pd(__m256d __A, __mmask8 __U, __m256i __I, - __m256d __B) { - return (__m256d)__builtin_ia32_vpermt2varpd256_mask( - (__v4di)__I, (__v4df)__A, (__v4df)__B, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_pd(__m256d __A, __m256i __I, __mmask8 __U, - __m256d __B) { - return (__m256d)__builtin_ia32_vpermi2varpd256_mask( - (__v4df)__A, (__v4di)__I, (__v4df)__B, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_pd(__mmask8 __U, __m256d __A, __m256i __I, - __m256d __B) { - return (__m256d)__builtin_ia32_vpermt2varpd256_maskz( - (__v4di)__I, (__v4df)__A, (__v4df)__B, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_ps(__m256 __A, __m256i __I, __m256 __B) { - return (__m256)__builtin_ia32_vpermt2varps256_mask((__v8si)__I, (__v8sf)__A, - (__v8sf)__B, (__mmask8)-1); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permutex2var_ps(__m256 __A, __mmask8 __U, __m256i __I, __m256 __B) { - return (__m256)__builtin_ia32_vpermt2varps256_mask( - (__v8si)__I, (__v8sf)__A, (__v8sf)__B, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_ps(__m256 __A, __m256i __I, __mmask8 __U, - __m256 __B) { - return (__m256)__builtin_ia32_vpermi2varps256_mask( - (__v8sf)__A, (__v8si)__I, (__v8sf)__B, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_ps(__mmask8 __U, __m256 __A, __m256i __I, - __m256 __B) { - return (__m256)__builtin_ia32_vpermt2varps256_maskz( - (__v8si)__I, (__v8sf)__A, (__v8sf)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_epi64(__m128i __A, __m128i __I, __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varq128_mask((__v2di)__I, (__v2di)__A, - (__v2di)__B, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutex2var_epi64(__m128i __A, __mmask8 __U, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varq128_mask( - (__v2di)__I, (__v2di)__A, (__v2di)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask2_permutex2var_epi64(__m128i __A, __m128i __I, __mmask8 __U, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermi2varq128_mask( - (__v2di)__A, (__v2di)__I, (__v2di)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutex2var_epi64(__mmask8 __U, __m128i __A, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varq128_maskz( - (__v2di)__I, (__v2di)__A, (__v2di)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_epi32(__m128i __A, __m128i __I, __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2vard128_mask((__v4si)__I, (__v4si)__A, - (__v4si)__B, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutex2var_epi32(__m128i __A, __mmask8 __U, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2vard128_mask( - (__v4si)__I, (__v4si)__A, (__v4si)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask2_permutex2var_epi32(__m128i __A, __m128i __I, __mmask8 __U, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermi2vard128_mask( - (__v4si)__A, (__v4si)__I, (__v4si)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutex2var_epi32(__mmask8 __U, __m128i __A, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2vard128_maskz( - (__v4si)__I, (__v4si)__A, (__v4si)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_epi64(__m256i __A, __m256i __I, __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varq256_mask((__v4di)__I, (__v4di)__A, - (__v4di)__B, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex2var_epi64(__m256i __A, __mmask8 __U, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varq256_mask( - (__v4di)__I, (__v4di)__A, (__v4di)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_epi64(__m256i __A, __m256i __I, __mmask8 __U, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermi2varq256_mask( - (__v4di)__A, (__v4di)__I, (__v4di)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_epi64(__mmask8 __U, __m256i __A, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varq256_maskz( - (__v4di)__I, (__v4di)__A, (__v4di)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_epi32(__m256i __A, __m256i __I, __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2vard256_mask((__v8si)__I, (__v8si)__A, - (__v8si)__B, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex2var_epi32(__m256i __A, __mmask8 __U, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2vard256_mask( - (__v8si)__I, (__v8si)__A, (__v8si)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_epi32(__m256i __A, __m256i __I, __mmask8 __U, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermi2vard256_mask( - (__v8si)__A, (__v8si)__I, (__v8si)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_epi32(__mmask8 __U, __m256i __A, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2vard256_maskz( - (__v8si)__I, (__v8si)__A, (__v8si)__B, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_pd(__m128d __A, __m128i __I, __m128d __B) { - return (__m128d)__builtin_ia32_vpermt2varpd128_mask( - (__v2di)__I, (__v2df)__A, (__v2df)__B, (__mmask8)-1); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_permutex2var_pd(__m128d __A, __mmask8 __U, __m128i __I, __m128d __B) { - return (__m128d)__builtin_ia32_vpermt2varpd128_mask( - (__v2di)__I, (__v2df)__A, (__v2df)__B, (__mmask8)__U); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask2_permutex2var_pd(__m128d __A, __m128i __I, __mmask8 __U, __m128d __B) { - return (__m128d)__builtin_ia32_vpermi2varpd128_mask( - (__v2df)__A, (__v2di)__I, (__v2df)__B, (__mmask8)__U); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_permutex2var_pd(__mmask8 __U, __m128d __A, __m128i __I, __m128d __B) { - return (__m128d)__builtin_ia32_vpermt2varpd128_maskz( - (__v2di)__I, (__v2df)__A, (__v2df)__B, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_ps(__m128 __A, __m128i __I, __m128 __B) { - return (__m128)__builtin_ia32_vpermt2varps128_mask((__v4si)__I, (__v4sf)__A, - (__v4sf)__B, (__mmask8)-1); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_permutex2var_ps(__m128 __A, __mmask8 __U, __m128i __I, __m128 __B) { - return (__m128)__builtin_ia32_vpermt2varps128_mask( - (__v4si)__I, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask2_permutex2var_ps(__m128 __A, __m128i __I, __mmask8 __U, __m128 __B) { - return (__m128)__builtin_ia32_vpermi2varps128_mask( - (__v4sf)__A, (__v4si)__I, (__v4sf)__B, (__mmask8)__U); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_permutex2var_ps(__mmask8 __U, __m128 __A, __m128i __I, __m128 __B) { - return (__m128)__builtin_ia32_vpermt2varps128_maskz( - (__v4si)__I, (__v4sf)__A, (__v4sf)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srav_epi64(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psravq128_mask( - (__v2di)__X, (__v2di)__Y, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srav_epi64(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psravq128_mask((__v2di)__X, (__v2di)__Y, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srav_epi64(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psravq128_mask( - (__v2di)__X, (__v2di)__Y, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sllv_epi32(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv8si_mask((__v8si)__X, (__v8si)__Y, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sllv_epi32(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv8si_mask( - (__v8si)__X, (__v8si)__Y, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sllv_epi32(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv4si_mask((__v4si)__X, (__v4si)__Y, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sllv_epi32(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv4si_mask( - (__v4si)__X, (__v4si)__Y, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sllv_epi64(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv4di_mask((__v4di)__X, (__v4di)__Y, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sllv_epi64(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psllv4di_mask( - (__v4di)__X, (__v4di)__Y, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sllv_epi64(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv2di_mask((__v2di)__X, (__v2di)__Y, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sllv_epi64(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psllv2di_mask( - (__v2di)__X, (__v2di)__Y, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srav_epi32(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrav8si_mask((__v8si)__X, (__v8si)__Y, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srav_epi32(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrav8si_mask( - (__v8si)__X, (__v8si)__Y, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srav_epi32(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrav4si_mask((__v4si)__X, (__v4si)__Y, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srav_epi32(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrav4si_mask( - (__v4si)__X, (__v4si)__Y, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srlv_epi32(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv8si_mask((__v8si)__X, (__v8si)__Y, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srlv_epi32(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv8si_mask( - (__v8si)__X, (__v8si)__Y, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srlv_epi32(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv4si_mask((__v4si)__X, (__v4si)__Y, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srlv_epi32(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv4si_mask( - (__v4si)__X, (__v4si)__Y, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srlv_epi64(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv4di_mask((__v4di)__X, (__v4di)__Y, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srlv_epi64(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psrlv4di_mask( - (__v4di)__X, (__v4di)__Y, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srlv_epi64(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv2di_mask((__v2di)__X, (__v2di)__Y, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srlv_epi64(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_psrlv2di_mask( - (__v2di)__X, (__v2di)__Y, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rolv_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rolv_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rolv_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rolv_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rolv_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rolv_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rorv_epi32(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rorv_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rorv_epi32(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rorv_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rorv_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rorv_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rolv_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rolv_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rolv_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prolvq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rolv_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rolv_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rolv_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prolvq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rorv_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rorv_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rorv_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_prorvq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rorv_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rorv_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rorv_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_prorvq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srav_epi64(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psravq256_mask( - (__v4di)__X, (__v4di)__Y, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srav_epi64(__m256i __W, __mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psravq256_mask((__v4di)__X, (__v4di)__Y, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srav_epi64(__mmask8 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_psravq256_mask( - (__v4di)__X, (__v4di)__Y, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_and_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_and_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_pd(), __U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_and_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_and_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)_mm_setzero_pd(), __U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_andnot_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandnq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_andnot_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pandnq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_pd(), __U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_andnot_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandnq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_andnot_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pandnq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)_mm_setzero_pd(), __U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_or_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_porq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_or_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_porq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_or_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A | (__v4du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_or_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_porq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_or_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_porq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_or_epi64(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A | (__v2du)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_xor_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pxorq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_xor_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pxorq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_xor_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A ^ (__v4du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_xor_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pxorq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_xor_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pxorq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_xor_epi64(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A ^ (__v2du)__B); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_maxpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_maxpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_maxps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_maxps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_divps_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_div_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_divps_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_div_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_divpd_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_div_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_divpd_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_minpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_div_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_divpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_minpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_minps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_div_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_divpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_div_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_divps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_minps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_div_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_divps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minps_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_mulps_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_minps_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_mulps_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxps_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_maxps_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minpd_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_minpd_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxpd_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_maxpd_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_mulpd_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_mulpd_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mul_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_mulps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mul_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_mulps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mul_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_mulpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mul_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_mulpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epi64(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epi64(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epi64(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epi64(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epu64(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epi64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_max_epu64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epu64(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_min_epu64(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epu64(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epu64(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epi32(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epi32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epi32(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epi32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsd256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epu32(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxud256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epu32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxud256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epu32(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminud256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epu32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminud256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epi64(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epi64(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epi64(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epi64(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epu64(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxuq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_max_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxuq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epu64(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxuq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_min_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminuq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epu64(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminuq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epu64(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminuq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epi32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epi32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsd128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epu32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxud128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epu32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxud128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epu32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminud128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epu32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminud128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastmb_epi64(__mmask8 __A) { - return (__m128i)__builtin_ia32_broadcastmb128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastmb_epi64(__mmask8 __A) { - return (__m256i)__builtin_ia32_broadcastmb256(__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcastmw_epi32(__mmask16 __A) { - return (__m128i)__builtin_ia32_broadcastmw128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcastmw_epi32(__mmask16 __A) { - return (__m256i)__builtin_ia32_broadcastmw256(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_lzcnt_epi32(__m256i __A) { - return (__m256i)__builtin_ia32_vplzcntd_256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_lzcnt_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vplzcntd_256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_lzcnt_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vplzcntd_256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_lzcnt_epi64(__m256i __A) { - return (__m256i)__builtin_ia32_vplzcntq_256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_lzcnt_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vplzcntq_256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_lzcnt_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vplzcntq_256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_conflict_epi64(__m256i __A) { - return (__m256i)__builtin_ia32_vpconflictdi_256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_conflict_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpconflictdi_256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_conflict_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpconflictdi_256_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_conflict_epi32(__m256i __A) { - return (__m256i)__builtin_ia32_vpconflictsi_256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_conflict_epi32(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpconflictsi_256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_conflict_epi32(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpconflictsi_256_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_lzcnt_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_vplzcntd_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_lzcnt_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vplzcntd_128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_lzcnt_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vplzcntd_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_lzcnt_epi64(__m128i __A) { - return (__m128i)__builtin_ia32_vplzcntq_128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_lzcnt_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vplzcntq_128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_lzcnt_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vplzcntq_128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_conflict_epi64(__m128i __A) { - return (__m128i)__builtin_ia32_vpconflictdi_128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_conflict_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpconflictdi_128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_conflict_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpconflictdi_128_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_conflict_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_vpconflictsi_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_conflict_epi32(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpconflictsi_128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_conflict_epi32(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpconflictsi_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_unpacklo_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpcklpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpcklpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_unpacklo_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpcklpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpcklpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpacklo_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpcklps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_unpackhi_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpckhpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_unpckhpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_unpackhi_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpckhpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_unpckhpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpackhi_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpckhps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpckhps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_unpackhi_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpckhps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpckhps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtph_ps(__m128 __W, __mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_vcvtph2ps_mask((__v8hi)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtph_ps(__mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_vcvtph2ps_mask( - (__v8hi)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_unpcklps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtph_ps(__m256 __W, __mmask8 __U, __m128i __A) { - return (__m256)__builtin_ia32_vcvtph2ps256_mask((__v8hi)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtph_ps(__mmask8 __U, __m128i __A) { - return (__m256)__builtin_ia32_vcvtph2ps256_mask( - (__v8hi)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_unpacklo_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpcklps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_unpcklps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sra_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrad256_mask((__v8si)__A, (__v4si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sra_epi32(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrad256_mask( - (__v8si)__A, (__v4si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sra_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrad128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sra_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrad128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sra_epi64(__m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraq256_mask( - (__v4di)__A, (__v2di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sra_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraq256_mask((__v4di)__A, (__v2di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sra_epi64(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraq256_mask( - (__v4di)__A, (__v2di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sra_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sra_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sra_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sll_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pslld128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sll_epi32(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pslld128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sll_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sll_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sll_epi32(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_pslld256_mask((__v8si)__A, (__v4si)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sll_epi32(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_pslld256_mask( - (__v8si)__A, (__v4si)__B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sll_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllq256_mask((__v4di)__A, (__v2di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sll_epi64(__mmask8 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllq256_mask( - (__v4di)__A, (__v2di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permutexvar_ps(__m256 __W, __mmask8 __U, __m256i __X, __m256 __Y) { - return (__m256)__builtin_ia32_permvarsf256_mask((__v8sf)__Y, (__v8si)__X, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_ps(__mmask8 __U, __m256i __X, __m256 __Y) { - return (__m256)__builtin_ia32_permvarsf256_mask( - (__v8sf)__Y, (__v8si)__X, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutexvar_pd(__m256i __X, __m256d __Y) { - return (__m256d)__builtin_ia32_permvardf256_mask( - (__v4df)__Y, (__v4di)__X, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutexvar_pd(__m256d __W, __mmask8 __U, __m256i __X, - __m256d __Y) { - return (__m256d)__builtin_ia32_permvardf256_mask((__v4df)__Y, (__v4di)__X, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_pd(__mmask8 __U, __m256i __X, __m256d __Y) { - return (__m256d)__builtin_ia32_permvardf256_mask( - (__v4df)__Y, (__v4di)__X, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permutevar_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256i __C) { - return (__m256d)__builtin_ia32_vpermilvarpd256_mask( - (__v4df)__A, (__v4di)__C, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutevar_pd(__mmask8 __U, __m256d __A, __m256i __C) { - return (__m256d)__builtin_ia32_vpermilvarpd256_mask( - (__v4df)__A, (__v4di)__C, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permutevar_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256i __C) { - return (__m256)__builtin_ia32_vpermilvarps256_mask( - (__v8sf)__A, (__v8si)__C, (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutevar_ps(__mmask8 __U, __m256 __A, __m256i __C) { - return (__m256)__builtin_ia32_vpermilvarps256_mask( - (__v8sf)__A, (__v8si)__C, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_permutevar_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128i __C) { - return (__m128d)__builtin_ia32_vpermilvarpd_mask((__v2df)__A, (__v2di)__C, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutevar_pd(__mmask8 __U, __m128d __A, __m128i __C) { - return (__m128d)__builtin_ia32_vpermilvarpd_mask( - (__v2df)__A, (__v2di)__C, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutevar_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128i __C) { - return (__m128)__builtin_ia32_vpermilvarps_mask((__v4sf)__A, (__v4si)__C, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutevar_ps(__mmask8 __U, __m128 __A, __m128i __C) { - return (__m128)__builtin_ia32_vpermilvarps_mask( - (__v4sf)__A, (__v4si)__C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mullo_epi32(__mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulld256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_epi64(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_permvardi256_mask( - (__v4di)__Y, (__v4di)__X, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mullo_epi32(__m256i __W, __mmask8 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulld256_mask((__v8si)__A, (__v8si)__B, - (__v8si)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mullo_epi32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulld128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mullo_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulld128_mask((__v4si)__A, (__v4si)__B, - (__v4si)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mul_epi32(__m256i __W, __mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmuldq256_mask((__v8si)__X, (__v8si)__Y, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mul_epi32(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmuldq256_mask( - (__v8si)__X, (__v8si)__Y, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_epi32(__m128i __W, __mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmuldq128_mask((__v4si)__X, (__v4si)__Y, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_epi32(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmuldq128_mask( - (__v4si)__X, (__v4si)__Y, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutexvar_epi64(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_permvardi256_mask( - (__v4di)__Y, (__v4di)__X, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutexvar_epi64(__m256i __W, __mmask8 __M, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_permvardi256_mask((__v4di)__Y, (__v4di)__X, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mul_epu32(__m256i __W, __mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmuludq256_mask((__v8si)__X, (__v8si)__Y, - (__v4di)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_epi32(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_permvarsi256_mask( - (__v8si)__Y, (__v8si)__X, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mul_epu32(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmuludq256_mask( - (__v8si)__X, (__v8si)__Y, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mul_epu32(__m128i __W, __mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmuludq128_mask((__v4si)__X, (__v4si)__Y, - (__v2di)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mul_epu32(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmuludq128_mask( - (__v4si)__X, (__v4si)__Y, (__v2di)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutexvar_epi32(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_permvarsi256_mask( - (__v8si)__Y, (__v8si)__X, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutexvar_epi32(__m256i __W, __mmask8 __M, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_permvarsi256_mask((__v8si)__Y, (__v8si)__X, - (__v8si)__W, __M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epu32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epu32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epu32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epu32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epu32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epu32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epu32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epu32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epu64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epu64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epu64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epu64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epu64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epu64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epu64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epu64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epi32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epi32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epi32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epi32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epi32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epi32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epi32_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epi32_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epi64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epi64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epi64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epi64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epi64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epi64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epi64_mask(__mmask8 __M, __m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epi64_mask(__m256i __X, __m256i __Y) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epu32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epu32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epu32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epu32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epu32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epu32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epu32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epu32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epu64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epu64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epu64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epu64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epu64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epu64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epu64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epu64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epi32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epi32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epi32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epi32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epi32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epi32_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epi32_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epi64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epi64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epi64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epi64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epi64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epi64_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epi64_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, 2, - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex_epi64(__m256i __X, const int __I) { - return (__m256i)__builtin_ia32_permdi256_mask( - (__v4di)__X, __I, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex_epi64(__m256i __W, __mmask8 __M, __m256i __X, - const int __I) { - return (__m256i)__builtin_ia32_permdi256_mask((__v4di)__X, __I, (__v4di)__W, - (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex_epi64(__mmask8 __M, __m256i __X, const int __I) { - return (__m256i)__builtin_ia32_permdi256_mask( - (__v4di)__X, __I, (__v4di)_mm256_setzero_si256(), (__mmask8)__M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B, - const int __imm) { - return (__m256d)__builtin_ia32_shufpd256_mask((__v4df)__A, (__v4df)__B, __imm, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_pd(__mmask8 __U, __m256d __A, __m256d __B, - const int __imm) { - return (__m256d)__builtin_ia32_shufpd256_mask((__v4df)__A, (__v4df)__B, __imm, - (__v4df)_mm256_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shuffle_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - const int __imm) { - return (__m128d)__builtin_ia32_shufpd128_mask((__v2df)__A, (__v2df)__B, __imm, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_shuffle_pd(__mmask8 __U, __m128d __A, __m128d __B, const int __imm) { - return (__m128d)__builtin_ia32_shufpd128_mask( - (__v2df)__A, (__v2df)__B, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B, - const int __imm) { - return (__m256)__builtin_ia32_shufps256_mask((__v8sf)__A, (__v8sf)__B, __imm, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shuffle_ps(__mmask8 __U, __m256 __A, __m256 __B, const int __imm) { - return (__m256)__builtin_ia32_shufps256_mask((__v8sf)__A, (__v8sf)__B, __imm, - (__v8sf)_mm256_setzero_ps(), - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shuffle_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - const int __imm) { - return (__m128)__builtin_ia32_shufps128_mask((__v4sf)__A, (__v4sf)__B, __imm, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_shuffle_ps(__mmask8 __U, __m128 __A, __m128 __B, const int __imm) { - return (__m128)__builtin_ia32_shufps128_mask( - (__v4sf)__A, (__v4sf)__B, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_inserti32x4(__m256i __A, __m128i __B, const int __imm) { - return (__m256i)__builtin_ia32_inserti32x4_256_mask( - (__v8si)__A, (__v4si)__B, __imm, (__v8si)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_inserti32x4(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B, - const int __imm) { - return (__m256i)__builtin_ia32_inserti32x4_256_mask( - (__v8si)__A, (__v4si)__B, __imm, (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_inserti32x4(__mmask8 __U, __m256i __A, __m128i __B, - const int __imm) { - return (__m256i)__builtin_ia32_inserti32x4_256_mask( - (__v8si)__A, (__v4si)__B, __imm, (__v8si)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insertf32x4(__m256 __A, __m128 __B, const int __imm) { - return (__m256)__builtin_ia32_insertf32x4_256_mask( - (__v8sf)__A, (__v4sf)__B, __imm, (__v8sf)_mm256_setzero_ps(), - (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_insertf32x4(__m256 __W, __mmask8 __U, __m256 __A, __m128 __B, - const int __imm) { - return (__m256)__builtin_ia32_insertf32x4_256_mask( - (__v8sf)__A, (__v4sf)__B, __imm, (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_insertf32x4(__mmask8 __U, __m256 __A, __m128 __B, - const int __imm) { - return (__m256)__builtin_ia32_insertf32x4_256_mask( - (__v8sf)__A, (__v4sf)__B, __imm, (__v8sf)_mm256_setzero_ps(), - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extracti32x4_epi32(__m256i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_256_mask( - (__v8si)__A, __imm, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_extracti32x4_epi32(__m128i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_256_mask( - (__v8si)__A, __imm, (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_extracti32x4_epi32(__mmask8 __U, __m256i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti32x4_256_mask( - (__v8si)__A, __imm, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extractf32x4_ps(__m256 __A, const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_256_mask( - (__v8sf)__A, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_extractf32x4_ps(__m128 __W, __mmask8 __U, __m256 __A, - const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_256_mask( - (__v8sf)__A, __imm, (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_extractf32x4_ps(__mmask8 __U, __m256 __A, const int __imm) { - return (__m128)__builtin_ia32_extractf32x4_256_mask( - (__v8sf)__A, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_i64x2(__m256i __A, __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_shuf_i64x2_256_mask( - (__v4di)__A, (__v4di)__B, __imm, (__v4di)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_i64x2(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_shuf_i64x2_256_mask( - (__v4di)__A, (__v4di)__B, __imm, (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_i64x2(__mmask8 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_shuf_i64x2_256_mask( - (__v4di)__A, (__v4di)__B, __imm, (__v4di)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_i32x4(__m256i __A, __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_shuf_i32x4_256_mask( - (__v8si)__A, (__v8si)__B, __imm, (__v8si)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_i32x4(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_shuf_i32x4_256_mask( - (__v8si)__A, (__v8si)__B, __imm, (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_i32x4(__mmask8 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_shuf_i32x4_256_mask( - (__v8si)__A, (__v8si)__B, __imm, (__v8si)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_f64x2(__m256d __A, __m256d __B, const int __imm) { - return (__m256d)__builtin_ia32_shuf_f64x2_256_mask( - (__v4df)__A, (__v4df)__B, __imm, (__v4df)_mm256_setzero_pd(), - (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_f64x2(__m256d __W, __mmask8 __U, __m256d __A, - __m256d __B, const int __imm) { - return (__m256d)__builtin_ia32_shuf_f64x2_256_mask( - (__v4df)__A, (__v4df)__B, __imm, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_f64x2(__mmask8 __U, __m256d __A, __m256d __B, - const int __imm) { - return (__m256d)__builtin_ia32_shuf_f64x2_256_mask( - (__v4df)__A, (__v4df)__B, __imm, (__v4df)_mm256_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shuffle_f32x4(__m256 __A, __m256 __B, const int __imm) { - return (__m256)__builtin_ia32_shuf_f32x4_256_mask( - (__v8sf)__A, (__v8sf)__B, __imm, (__v8sf)_mm256_setzero_ps(), - (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_f32x4(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B, - const int __imm) { - return (__m256)__builtin_ia32_shuf_f32x4_256_mask( - (__v8sf)__A, (__v8sf)__B, __imm, (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_f32x4(__mmask8 __U, __m256 __A, __m256 __B, - const int __imm) { - return (__m256)__builtin_ia32_shuf_f32x4_256_mask( - (__v8sf)__A, (__v8sf)__B, __imm, (__v8sf)_mm256_setzero_ps(), - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fixupimm_pd(__m256d __A, __m256d __B, __m256i __C, const int __imm) { - return (__m256d)__builtin_ia32_fixupimmpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4di)__C, __imm, (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fixupimm_pd(__m256d __A, __mmask8 __U, __m256d __B, __m256i __C, - const int __imm) { - return (__m256d)__builtin_ia32_fixupimmpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fixupimm_pd(__mmask8 __U, __m256d __A, __m256d __B, - __m256i __C, const int __imm) { - return (__m256d)__builtin_ia32_fixupimmpd256_maskz( - (__v4df)__A, (__v4df)__B, (__v4di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fixupimm_ps(__m256 __A, __m256 __B, __m256i __C, const int __imm) { - return (__m256)__builtin_ia32_fixupimmps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8si)__C, __imm, (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fixupimm_ps(__m256 __A, __mmask8 __U, __m256 __B, __m256i __C, - const int __imm) { - return (__m256)__builtin_ia32_fixupimmps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_fixupimm_ps(__mmask8 __U, __m256 __A, __m256 __B, __m256i __C, - const int __imm) { - return (__m256)__builtin_ia32_fixupimmps256_maskz( - (__v8sf)__A, (__v8sf)__B, (__v8si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_pd(__m128d __A, __m128d __B, __m128i __C, const int __imm) { - return (__m128d)__builtin_ia32_fixupimmpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_pd(__m128d __A, __mmask8 __U, __m128d __B, __m128i __C, - const int __imm) { - return (__m128d)__builtin_ia32_fixupimmpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_pd(__mmask8 __U, __m128d __A, __m128d __B, __m128i __C, - const int __imm) { - return (__m128d)__builtin_ia32_fixupimmpd128_maskz( - (__v2df)__A, (__v2df)__B, (__v2di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fixupimm_ps(__m128 __A, __m128 __B, __m128i __C, const int __imm) { - return (__m128)__builtin_ia32_fixupimmps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fixupimm_ps(__m128 __A, __mmask8 __U, __m128 __B, __m128i __C, - const int __imm) { - return (__m128)__builtin_ia32_fixupimmps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_fixupimm_ps(__mmask8 __U, __m128 __A, __m128 __B, __m128i __C, - const int __imm) { - return (__m128)__builtin_ia32_fixupimmps128_maskz( - (__v4sf)__A, (__v4sf)__B, (__v4si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srli_epi32(__m256i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psrldi256_mask((__v8si)__A, __imm, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srli_epi32(__mmask8 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psrldi256_mask( - (__v8si)__A, __imm, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srli_epi32(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrldi128_mask((__v4si)__A, __imm, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srli_epi32(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrldi128_mask( - (__v4si)__A, __imm, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srli_epi64(__m256i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psrlqi256_mask((__v4di)__A, __imm, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srli_epi64(__mmask8 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psrlqi256_mask( - (__v4di)__A, __imm, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srli_epi64(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrlqi128_mask((__v2di)__A, __imm, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srli_epi64(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrlqi128_mask( - (__v2di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_ternarylogic_epi64(__m256i __A, __m256i __B, __m256i __C, - const int __imm) { - return (__m256i)__builtin_ia32_pternlogq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)__C, __imm, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_ternarylogic_epi64(__m256i __A, __mmask8 __U, __m256i __B, - __m256i __C, const int __imm) { - return (__m256i)__builtin_ia32_pternlogq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_ternarylogic_epi64(__mmask8 __U, __m256i __A, __m256i __B, - __m256i __C, const int __imm) { - return (__m256i)__builtin_ia32_pternlogq256_maskz( - (__v4di)__A, (__v4di)__B, (__v4di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_ternarylogic_epi32(__m256i __A, __m256i __B, __m256i __C, - const int __imm) { - return (__m256i)__builtin_ia32_pternlogd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)__C, __imm, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_ternarylogic_epi32(__m256i __A, __mmask8 __U, __m256i __B, - __m256i __C, const int __imm) { - return (__m256i)__builtin_ia32_pternlogd256_mask( - (__v8si)__A, (__v8si)__B, (__v8si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_ternarylogic_epi32(__mmask8 __U, __m256i __A, __m256i __B, - __m256i __C, const int __imm) { - return (__m256i)__builtin_ia32_pternlogd256_maskz( - (__v8si)__A, (__v8si)__B, (__v8si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_ternarylogic_epi64(__m128i __A, __m128i __B, __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)__C, __imm, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_ternarylogic_epi64(__m128i __A, __mmask8 __U, __m128i __B, - __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_ternarylogic_epi64(__mmask8 __U, __m128i __A, __m128i __B, - __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogq128_maskz( - (__v2di)__A, (__v2di)__B, (__v2di)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_ternarylogic_epi32(__m128i __A, __m128i __B, __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)__C, __imm, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_ternarylogic_epi32(__m128i __A, __mmask8 __U, __m128i __B, - __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogd128_mask( - (__v4si)__A, (__v4si)__B, (__v4si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_ternarylogic_epi32(__mmask8 __U, __m128i __A, __m128i __B, - __m128i __C, const int __imm) { - return (__m128i)__builtin_ia32_pternlogd128_maskz( - (__v4si)__A, (__v4si)__B, (__v4si)__C, __imm, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_roundscale_ps(__m256 __A, const int __imm) { - return (__m256)__builtin_ia32_rndscaleps_256_mask( - (__v8sf)__A, __imm, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_roundscale_ps(__m256 __W, __mmask8 __U, __m256 __A, - const int __imm) { - return (__m256)__builtin_ia32_rndscaleps_256_mask((__v8sf)__A, __imm, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_roundscale_ps(__mmask8 __U, __m256 __A, const int __imm) { - return (__m256)__builtin_ia32_rndscaleps_256_mask( - (__v8sf)__A, __imm, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_roundscale_pd(__m256d __A, const int __imm) { - return (__m256d)__builtin_ia32_rndscalepd_256_mask( - (__v4df)__A, __imm, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_roundscale_pd(__m256d __W, __mmask8 __U, __m256d __A, - const int __imm) { - return (__m256d)__builtin_ia32_rndscalepd_256_mask( - (__v4df)__A, __imm, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_roundscale_pd(__mmask8 __U, __m256d __A, const int __imm) { - return (__m256d)__builtin_ia32_rndscalepd_256_mask( - (__v4df)__A, __imm, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_ps(__m128 __A, const int __imm) { - return (__m128)__builtin_ia32_rndscaleps_128_mask( - (__v4sf)__A, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_roundscale_ps(__m128 __W, __mmask8 __U, __m128 __A, const int __imm) { - return (__m128)__builtin_ia32_rndscaleps_128_mask((__v4sf)__A, __imm, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_roundscale_ps(__mmask8 __U, __m128 __A, const int __imm) { - return (__m128)__builtin_ia32_rndscaleps_128_mask( - (__v4sf)__A, __imm, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roundscale_pd(__m128d __A, const int __imm) { - return (__m128d)__builtin_ia32_rndscalepd_128_mask( - (__v2df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_roundscale_pd(__m128d __W, __mmask8 __U, __m128d __A, - const int __imm) { - return (__m128d)__builtin_ia32_rndscalepd_128_mask( - (__v2df)__A, __imm, (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_roundscale_pd(__mmask8 __U, __m128d __A, const int __imm) { - return (__m128d)__builtin_ia32_rndscalepd_128_mask( - (__v2df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_getmant_ps(__m256 __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256)__builtin_ia32_getmantps256_mask( - (__v8sf)__A, (__C << 2) | __B, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_getmant_ps(__m256 __W, __mmask8 __U, __m256 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256)__builtin_ia32_getmantps256_mask((__v8sf)__A, (__C << 2) | __B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_getmant_ps(__mmask8 __U, __m256 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256)__builtin_ia32_getmantps256_mask((__v8sf)__A, (__C << 2) | __B, - (__v8sf)_mm256_setzero_ps(), - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_ps(__m128 __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128)__builtin_ia32_getmantps128_mask( - (__v4sf)__A, (__C << 2) | __B, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_ps(__m128 __W, __mmask8 __U, __m128 __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128)__builtin_ia32_getmantps128_mask((__v4sf)__A, (__C << 2) | __B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_ps(__mmask8 __U, __m128 __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128)__builtin_ia32_getmantps128_mask( - (__v4sf)__A, (__C << 2) | __B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_getmant_pd(__m256d __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256d)__builtin_ia32_getmantpd256_mask( - (__v4df)__A, (__C << 2) | __B, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_getmant_pd(__m256d __W, __mmask8 __U, __m256d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256d)__builtin_ia32_getmantpd256_mask( - (__v4df)__A, (__C << 2) | __B, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_getmant_pd(__mmask8 __U, __m256d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m256d)__builtin_ia32_getmantpd256_mask( - (__v4df)__A, (__C << 2) | __B, (__v4df)_mm256_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_getmant_pd(__m128d __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128d)__builtin_ia32_getmantpd128_mask( - (__v2df)__A, (__C << 2) | __B, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_getmant_pd(__m128d __W, __mmask8 __U, __m128d __A, - _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128d)__builtin_ia32_getmantpd128_mask( - (__v2df)__A, (__C << 2) | __B, (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_getmant_pd(__mmask8 __U, __m128d __A, _MM_MANTISSA_NORM_ENUM __B, - _MM_MANTISSA_SIGN_ENUM __C) { - return (__m128d)__builtin_ia32_getmantpd128_mask( - (__v2df)__A, (__C << 2) | __B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i32gather_ps(__m256 __v1_old, __mmask8 __mask, __m256i __index, - void const *__addr, int __scale) { - return (__m256)__builtin_ia32_gather3siv8sf((__v8sf)__v1_old, __addr, - (__v8si)__index, __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i32gather_ps(__m128 __v1_old, __mmask8 __mask, __m128i __index, - void const *__addr, int __scale) { - return (__m128)__builtin_ia32_gather3siv4sf((__v4sf)__v1_old, __addr, - (__v4si)__index, __mask, __scale); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i32gather_pd(__m256d __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m256d)__builtin_ia32_gather3siv4df( - (__v4df)__v1_old, __addr, (__v4si)__index, __mask, __scale); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i32gather_pd(__m128d __v1_old, __mmask8 __mask, __m128i __index, - void const *__addr, int __scale) { - return (__m128d)__builtin_ia32_gather3siv2df( - (__v2df)__v1_old, __addr, (__v4si)__index, __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i64gather_ps(__m128 __v1_old, __mmask8 __mask, __m256i __index, - void const *__addr, int __scale) { - return (__m128)__builtin_ia32_gather3div8sf((__v4sf)__v1_old, __addr, - (__v4di)__index, __mask, __scale); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i64gather_ps(__m128 __v1_old, __mmask8 __mask, __m128i __index, - void const *__addr, int __scale) { - return (__m128)__builtin_ia32_gather3div4sf((__v4sf)__v1_old, __addr, - (__v2di)__index, __mask, __scale); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i64gather_pd(__m256d __v1_old, __mmask8 __mask, - __m256i __index, void const *__addr, - int __scale) { - return (__m256d)__builtin_ia32_gather3div4df( - (__v4df)__v1_old, __addr, (__v4di)__index, __mask, __scale); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i64gather_pd(__m128d __v1_old, __mmask8 __mask, __m128i __index, - void const *__addr, int __scale) { - return (__m128d)__builtin_ia32_gather3div2df( - (__v2df)__v1_old, __addr, (__v2di)__index, __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i32gather_epi32(__m256i __v1_old, __mmask8 __mask, - __m256i __index, void const *__addr, - int __scale) { - return (__m256i)__builtin_ia32_gather3siv8si( - (__v8si)__v1_old, __addr, (__v8si)__index, __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i32gather_epi32(__m128i __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m128i)__builtin_ia32_gather3siv4si( - (__v4si)__v1_old, __addr, (__v4si)__index, __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i32gather_epi64(__m256i __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m256i)__builtin_ia32_gather3siv4di( - (__v4di)__v1_old, __addr, (__v4si)__index, __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i32gather_epi64(__m128i __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m128i)__builtin_ia32_gather3siv2di( - (__v2di)__v1_old, __addr, (__v4si)__index, __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i64gather_epi32(__m128i __v1_old, __mmask8 __mask, - __m256i __index, void const *__addr, - int __scale) { - return (__m128i)__builtin_ia32_gather3div8si( - (__v4si)__v1_old, __addr, (__v4di)__index, __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i64gather_epi32(__m128i __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m128i)__builtin_ia32_gather3div4si( - (__v4si)__v1_old, __addr, (__v2di)__index, __mask, __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mmask_i64gather_epi64(__m256i __v1_old, __mmask8 __mask, - __m256i __index, void const *__addr, - int __scale) { - return (__m256i)__builtin_ia32_gather3div4di( - (__v4di)__v1_old, __addr, (__v4di)__index, __mask, __scale); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mmask_i64gather_epi64(__m128i __v1_old, __mmask8 __mask, - __m128i __index, void const *__addr, - int __scale) { - return (__m128i)__builtin_ia32_gather3div2di( - (__v2di)__v1_old, __addr, (__v2di)__index, __mask, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i32scatter_ps(void *__addr, __m256i __index, __m256 __v1, - const int __scale) { - __builtin_ia32_scattersiv8sf(__addr, (__mmask8)0xFF, (__v8si)__index, - (__v8sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32scatter_ps(void *__addr, __mmask8 __mask, __m256i __index, - __m256 __v1, const int __scale) { - __builtin_ia32_scattersiv8sf(__addr, __mask, (__v8si)__index, (__v8sf)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32scatter_ps(void *__addr, __m128i __index, __m128 __v1, - const int __scale) { - __builtin_ia32_scattersiv4sf(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v4sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32scatter_ps(void *__addr, __mmask8 __mask, __m128i __index, - __m128 __v1, const int __scale) { - __builtin_ia32_scattersiv4sf(__addr, __mask, (__v4si)__index, (__v4sf)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i32scatter_pd(void *__addr, __m128i __index, __m256d __v1, - const int __scale) { - __builtin_ia32_scattersiv4df(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v4df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32scatter_pd(void *__addr, __mmask8 __mask, __m128i __index, - __m256d __v1, const int __scale) { - __builtin_ia32_scattersiv4df(__addr, __mask, (__v4si)__index, (__v4df)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32scatter_pd(void *__addr, __m128i __index, __m128d __v1, - const int __scale) { - __builtin_ia32_scattersiv2df(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v2df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32scatter_pd(void *__addr, __mmask8 __mask, __m128i __index, - __m128d __v1, const int __scale) { - __builtin_ia32_scattersiv2df(__addr, __mask, (__v4si)__index, (__v2df)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i64scatter_ps(void *__addr, __m256i __index, __m128 __v1, - const int __scale) { - __builtin_ia32_scatterdiv8sf(__addr, (__mmask8)0xFF, (__v4di)__index, - (__v4sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64scatter_ps(void *__addr, __mmask8 __mask, __m256i __index, - __m128 __v1, const int __scale) { - __builtin_ia32_scatterdiv8sf(__addr, __mask, (__v4di)__index, (__v4sf)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64scatter_ps(void *__addr, __m128i __index, __m128 __v1, - const int __scale) { - __builtin_ia32_scatterdiv4sf(__addr, (__mmask8)0xFF, (__v2di)__index, - (__v4sf)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64scatter_ps(void *__addr, __mmask8 __mask, __m128i __index, - __m128 __v1, const int __scale) { - __builtin_ia32_scatterdiv4sf(__addr, __mask, (__v2di)__index, (__v4sf)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i64scatter_pd(void *__addr, __m256i __index, __m256d __v1, - const int __scale) { - __builtin_ia32_scatterdiv4df(__addr, (__mmask8)0xFF, (__v4di)__index, - (__v4df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64scatter_pd(void *__addr, __mmask8 __mask, __m256i __index, - __m256d __v1, const int __scale) { - __builtin_ia32_scatterdiv4df(__addr, __mask, (__v4di)__index, (__v4df)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64scatter_pd(void *__addr, __m128i __index, __m128d __v1, - const int __scale) { - __builtin_ia32_scatterdiv2df(__addr, (__mmask8)0xFF, (__v2di)__index, - (__v2df)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64scatter_pd(void *__addr, __mmask8 __mask, __m128i __index, - __m128d __v1, const int __scale) { - __builtin_ia32_scatterdiv2df(__addr, __mask, (__v2di)__index, (__v2df)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i32scatter_epi32(void *__addr, __m256i __index, __m256i __v1, - const int __scale) { - __builtin_ia32_scattersiv8si(__addr, (__mmask8)0xFF, (__v8si)__index, - (__v8si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32scatter_epi32(void *__addr, __mmask8 __mask, __m256i __index, - __m256i __v1, const int __scale) { - __builtin_ia32_scattersiv8si(__addr, __mask, (__v8si)__index, (__v8si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32scatter_epi32(void *__addr, __m128i __index, __m128i __v1, - const int __scale) { - __builtin_ia32_scattersiv4si(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v4si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32scatter_epi32(void *__addr, __mmask8 __mask, __m128i __index, - __m128i __v1, const int __scale) { - __builtin_ia32_scattersiv4si(__addr, __mask, (__v4si)__index, (__v4si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i32scatter_epi64(void *__addr, __m128i __index, __m256i __v1, - const int __scale) { - __builtin_ia32_scattersiv4di(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v4di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i32scatter_epi64(void *__addr, __mmask8 __mask, __m128i __index, - __m256i __v1, const int __scale) { - __builtin_ia32_scattersiv4di(__addr, __mask, (__v4si)__index, (__v4di)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i32scatter_epi64(void *__addr, __m128i __index, __m128i __v1, - const int __scale) { - __builtin_ia32_scattersiv2di(__addr, (__mmask8)0xFF, (__v4si)__index, - (__v2di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i32scatter_epi64(void *__addr, __mmask8 __mask, __m128i __index, - __m128i __v1, const int __scale) { - __builtin_ia32_scattersiv2di(__addr, __mask, (__v4si)__index, (__v2di)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i64scatter_epi32(void *__addr, __m256i __index, __m128i __v1, - const int __scale) { - __builtin_ia32_scatterdiv8si(__addr, (__mmask8)0xFF, (__v4di)__index, - (__v4si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64scatter_epi32(void *__addr, __mmask8 __mask, __m256i __index, - __m128i __v1, const int __scale) { - __builtin_ia32_scatterdiv8si(__addr, __mask, (__v4di)__index, (__v4si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64scatter_epi32(void *__addr, __m128i __index, __m128i __v1, - const int __scale) { - __builtin_ia32_scatterdiv4si(__addr, (__mmask8)0xFF, (__v2di)__index, - (__v4si)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64scatter_epi32(void *__addr, __mmask8 __mask, __m128i __index, - __m128i __v1, const int __scale) { - __builtin_ia32_scatterdiv4si(__addr, __mask, (__v2di)__index, (__v4si)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_i64scatter_epi64(void *__addr, __m256i __index, __m256i __v1, - const int __scale) { - __builtin_ia32_scatterdiv4di(__addr, (__mmask8)0xFF, (__v4di)__index, - (__v4di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_i64scatter_epi64(void *__addr, __mmask8 __mask, __m256i __index, - __m256i __v1, const int __scale) { - __builtin_ia32_scatterdiv4di(__addr, __mask, (__v4di)__index, (__v4di)__v1, - __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_i64scatter_epi64(void *__addr, __m128i __index, __m128i __v1, - const int __scale) { - __builtin_ia32_scatterdiv2di(__addr, (__mmask8)0xFF, (__v2di)__index, - (__v2di)__v1, __scale); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_i64scatter_epi64(void *__addr, __mmask8 __mask, __m128i __index, - __m128i __v1, const int __scale) { - __builtin_ia32_scatterdiv2di(__addr, __mask, (__v2di)__index, (__v2di)__v1, - __scale); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shuffle_epi32(__m256i __W, __mmask8 __U, __m256i __A, - _MM_PERM_ENUM __mask) { - return (__m256i)__builtin_ia32_pshufd256_mask((__v8si)__A, __mask, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shuffle_epi32(__mmask8 __U, __m256i __A, _MM_PERM_ENUM __mask) { - return (__m256i)__builtin_ia32_pshufd256_mask( - (__v8si)__A, __mask, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shuffle_epi32(__m128i __W, __mmask8 __U, __m128i __A, - _MM_PERM_ENUM __mask) { - return (__m128i)__builtin_ia32_pshufd128_mask((__v4si)__A, __mask, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shuffle_epi32(__mmask8 __U, __m128i __A, _MM_PERM_ENUM __mask) { - return (__m128i)__builtin_ia32_pshufd128_mask( - (__v4si)__A, __mask, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rol_epi32(__m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prold256_mask( - (__v8si)__A, __B, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rol_epi32(__m256i __W, __mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prold256_mask((__v8si)__A, __B, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rol_epi32(__mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prold256_mask( - (__v8si)__A, __B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rol_epi32(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prold128_mask( - (__v4si)__A, __B, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rol_epi32(__m128i __W, __mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prold128_mask((__v4si)__A, __B, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rol_epi32(__mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prold128_mask( - (__v4si)__A, __B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_ror_epi32(__m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prord256_mask( - (__v8si)__A, __B, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_ror_epi32(__m256i __W, __mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prord256_mask((__v8si)__A, __B, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_ror_epi32(__mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prord256_mask( - (__v8si)__A, __B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ror_epi32(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prord128_mask( - (__v4si)__A, __B, (__v4si)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_ror_epi32(__m128i __W, __mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prord128_mask((__v4si)__A, __B, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_ror_epi32(__mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prord128_mask( - (__v4si)__A, __B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_rol_epi64(__m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prolq256_mask( - (__v4di)__A, __B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_rol_epi64(__m256i __W, __mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prolq256_mask((__v4di)__A, __B, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_rol_epi64(__mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prolq256_mask( - (__v4di)__A, __B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rol_epi64(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prolq128_mask( - (__v2di)__A, __B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_rol_epi64(__m128i __W, __mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prolq128_mask((__v2di)__A, __B, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_rol_epi64(__mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prolq128_mask( - (__v2di)__A, __B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_ror_epi64(__m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prorq256_mask( - (__v4di)__A, __B, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_ror_epi64(__m256i __W, __mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prorq256_mask((__v4di)__A, __B, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_ror_epi64(__mmask8 __U, __m256i __A, const int __B) { - return (__m256i)__builtin_ia32_prorq256_mask( - (__v4di)__A, __B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_ror_epi64(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prorq128_mask( - (__v2di)__A, __B, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_ror_epi64(__m128i __W, __mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prorq128_mask((__v2di)__A, __B, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_ror_epi64(__mmask8 __U, __m128i __A, const int __B) { - return (__m128i)__builtin_ia32_prorq128_mask( - (__v2di)__A, __B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_alignr_epi32(__m128i __A, __m128i __B, const int __imm) { - return (__m128i)__builtin_ia32_alignd128_mask((__v4si)__A, (__v4si)__B, __imm, - (__v4si)_mm_setzero_si128(), - (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_alignr_epi32(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B, - const int __imm) { - return (__m128i)__builtin_ia32_alignd128_mask((__v4si)__A, (__v4si)__B, __imm, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_alignr_epi32(__mmask8 __U, __m128i __A, __m128i __B, - const int __imm) { - return (__m128i)__builtin_ia32_alignd128_mask((__v4si)__A, (__v4si)__B, __imm, - (__v4si)_mm_setzero_si128(), - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_alignr_epi64(__m128i __A, __m128i __B, const int __imm) { - return (__m128i)__builtin_ia32_alignq128_mask((__v2di)__A, (__v2di)__B, __imm, - (__v2di)_mm_setzero_si128(), - (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_alignr_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B, - const int __imm) { - return (__m128i)__builtin_ia32_alignq128_mask((__v2di)__A, (__v2di)__B, __imm, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_alignr_epi64(__mmask8 __U, __m128i __A, __m128i __B, - const int __imm) { - return (__m128i)__builtin_ia32_alignq128_mask((__v2di)__A, (__v2di)__B, __imm, - (__v2di)_mm_setzero_si128(), - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_alignr_epi32(__m256i __A, __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_alignd256_mask((__v8si)__A, (__v8si)__B, __imm, - (__v8si)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_alignr_epi32(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_alignd256_mask((__v8si)__A, (__v8si)__B, __imm, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_alignr_epi32(__mmask8 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_alignd256_mask((__v8si)__A, (__v8si)__B, __imm, - (__v8si)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_alignr_epi64(__m256i __A, __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_alignq256_mask((__v4di)__A, (__v4di)__B, __imm, - (__v4di)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_alignr_epi64(__m256i __W, __mmask8 __U, __m256i __A, - __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_alignq256_mask((__v4di)__A, (__v4di)__B, __imm, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_alignr_epi64(__mmask8 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_alignq256_mask((__v4di)__A, (__v4di)__B, __imm, - (__v4di)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_ph(__m128i __W, __mmask8 __U, __m128 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph_mask((__v4sf)__A, __I, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_ph(__mmask8 __U, __m128 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph_mask( - (__v4sf)__A, __I, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_ph(__m128i __W, __mmask8 __U, __m256 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph256_mask((__v8sf)__A, __I, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_ph(__mmask8 __U, __m256 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph256_mask( - (__v8sf)__A, __I, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srai_epi32(__m256i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psradi256_mask((__v8si)__A, __imm, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srai_epi32(__mmask8 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psradi256_mask( - (__v8si)__A, __imm, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srai_epi32(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psradi128_mask((__v4si)__A, __imm, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srai_epi32(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psradi128_mask( - (__v4si)__A, __imm, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srai_epi64(__m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psraqi256_mask( - (__v4di)__A, __imm, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srai_epi64(__m256i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psraqi256_mask((__v4di)__A, __imm, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srai_epi64(__mmask8 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psraqi256_mask( - (__v4di)__A, __imm, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srai_epi64(__m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psraqi128_mask( - (__v2di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srai_epi64(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psraqi128_mask((__v2di)__A, __imm, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srai_epi64(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psraqi128_mask( - (__v2di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_slli_epi32(__m128i __W, __mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_pslldi128_mask((__v4si)__A, __B, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_slli_epi32(__mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_pslldi128_mask( - (__v4si)__A, __B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_slli_epi64(__m128i __W, __mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllqi128_mask((__v2di)__A, __B, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_slli_epi64(__mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllqi128_mask( - (__v2di)__A, __B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_slli_epi32(__m256i __W, __mmask8 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_pslldi256_mask((__v8si)__A, __B, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_slli_epi32(__mmask8 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_pslldi256_mask( - (__v8si)__A, __B, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_slli_epi64(__m256i __W, __mmask8 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllqi256_mask((__v4di)__A, __B, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_slli_epi64(__mmask8 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllqi256_mask( - (__v4di)__A, __B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex_pd(__m256d __W, __mmask8 __U, __m256d __X, - const int __imm) { - return (__m256d)__builtin_ia32_permdf256_mask((__v4df)__X, __imm, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex_pd(__mmask8 __U, __m256d __X, const int __imm) { - return (__m256d)__builtin_ia32_permdf256_mask( - (__v4df)__X, __imm, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permute_pd(__m256d __W, __mmask8 __U, __m256d __X, const int __C) { - return (__m256d)__builtin_ia32_vpermilpd256_mask((__v4df)__X, __C, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permute_pd(__mmask8 __U, __m256d __X, const int __C) { - return (__m256d)__builtin_ia32_vpermilpd256_mask( - (__v4df)__X, __C, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permute_pd(__m128d __W, __mmask8 __U, __m128d __X, const int __C) { - return (__m128d)__builtin_ia32_vpermilpd_mask((__v2df)__X, __C, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permute_pd(__mmask8 __U, __m128d __X, const int __C) { - return (__m128d)__builtin_ia32_vpermilpd_mask( - (__v2df)__X, __C, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_permute_ps(__m256 __W, __mmask8 __U, __m256 __X, const int __C) { - return (__m256)__builtin_ia32_vpermilps256_mask((__v8sf)__X, __C, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permute_ps(__mmask8 __U, __m256 __X, const int __C) { - return (__m256)__builtin_ia32_vpermilps256_mask( - (__v8sf)__X, __C, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permute_ps(__m128 __W, __mmask8 __U, __m128 __X, const int __C) { - return (__m128)__builtin_ia32_vpermilps_mask((__v4sf)__X, __C, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permute_ps(__mmask8 __U, __m128 __X, const int __C) { - return (__m128)__builtin_ia32_vpermilps_mask( - (__v4sf)__X, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_pd(__mmask8 __U, __m256d __A, __m256d __W) { - return (__m256d)__builtin_ia32_blendmpd_256_mask((__v4df)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_ps(__mmask8 __U, __m256 __A, __m256 __W) { - return (__m256)__builtin_ia32_blendmps_256_mask((__v8sf)__A, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_epi64(__mmask8 __U, __m256i __A, __m256i __W) { - return (__m256i)__builtin_ia32_blendmq_256_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_epi32(__mmask8 __U, __m256i __A, __m256i __W) { - return (__m256i)__builtin_ia32_blendmd_256_mask((__v8si)__A, (__v8si)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_pd(__mmask8 __U, __m128d __A, __m128d __W) { - return (__m128d)__builtin_ia32_blendmpd_128_mask((__v2df)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_ps(__mmask8 __U, __m128 __A, __m128 __W) { - return (__m128)__builtin_ia32_blendmps_128_mask((__v4sf)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_epi64(__mmask8 __U, __m128i __A, __m128i __W) { - return (__m128i)__builtin_ia32_blendmq_128_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_epi32(__mmask8 __U, __m128i __A, __m128i __W) { - return (__m128i)__builtin_ia32_blendmd_128_mask((__v4si)__A, (__v4si)__W, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epi64_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epi32_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epu64_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epu32_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_pd_mask(__m256d __X, __m256d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd256_mask((__v4df)__X, (__v4df)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_ps_mask(__m256 __X, __m256 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpps256_mask((__v8sf)__X, (__v8sf)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epi64_mask(__mmask8 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_cmpq256_mask((__v4di)__X, (__v4di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epi32_mask(__mmask8 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_cmpd256_mask((__v8si)__X, (__v8si)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epu64_mask(__mmask8 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_ucmpq256_mask((__v4di)__X, (__v4di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epu32_mask(__mmask8 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask8)__builtin_ia32_ucmpd256_mask((__v8si)__X, (__v8si)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_cmp_pd_mask(__mmask8 __U, __m256d __X, __m256d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd256_mask((__v4df)__X, (__v4df)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_cmp_ps_mask(__mmask8 __U, __m256 __X, __m256 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpps256_mask((__v8sf)__X, (__v8sf)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epi64_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epi32_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epu64_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epu32_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_pd_mask(__m128d __X, __m128d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd128_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_ps_mask(__m128 __X, __m128 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpps128_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epi64_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpq128_mask((__v2di)__X, (__v2di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epi32_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpd128_mask((__v4si)__X, (__v4si)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epu64_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpq128_mask((__v2di)__X, (__v2di)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epu32_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpd128_mask((__v4si)__X, (__v4si)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_pd_mask(__mmask8 __U, __m128d __X, __m128d __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmppd128_mask((__v2df)__X, (__v2df)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmp_ps_mask(__mmask8 __U, __m128 __X, __m128 __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpps128_mask((__v4sf)__X, (__v4sf)__Y, __P, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex_pd(__m256d __X, const int __M) { - return (__m256d)__builtin_ia32_permdf256_mask( - (__v4df)__X, __M, (__v4df)_mm256_undefined_pd(), (__mmask8)-1); -} - -typedef short __v32hi __attribute__((__vector_size__(64))); -typedef short __v32hi_u - __attribute__((__vector_size__(64), __may_alias__, __aligned__(1))); -typedef char __v64qi __attribute__((__vector_size__(64))); -typedef char __v64qi_u - __attribute__((__vector_size__(64), __may_alias__, __aligned__(1))); - -typedef unsigned long long __mmask64; - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktest_mask32_u8(__mmask32 __A, __mmask32 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_ktestcsi(__A, __B); - return (unsigned char)__builtin_ia32_ktestzsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktest_mask64_u8(__mmask64 __A, __mmask64 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_ktestcdi(__A, __B); - return (unsigned char)__builtin_ia32_ktestzdi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestz_mask32_u8(__mmask32 __A, __mmask32 __B) { - return (unsigned char)__builtin_ia32_ktestzsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestz_mask64_u8(__mmask64 __A, __mmask64 __B) { - return (unsigned char)__builtin_ia32_ktestzdi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestc_mask32_u8(__mmask32 __A, __mmask32 __B) { - return (unsigned char)__builtin_ia32_ktestcsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestc_mask64_u8(__mmask64 __A, __mmask64 __B) { - return (unsigned char)__builtin_ia32_ktestcdi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortest_mask32_u8(__mmask32 __A, __mmask32 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_kortestcsi(__A, __B); - return (unsigned char)__builtin_ia32_kortestzsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortest_mask64_u8(__mmask64 __A, __mmask64 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_kortestcdi(__A, __B); - return (unsigned char)__builtin_ia32_kortestzdi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestz_mask32_u8(__mmask32 __A, __mmask32 __B) { - return (unsigned char)__builtin_ia32_kortestzsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestz_mask64_u8(__mmask64 __A, __mmask64 __B) { - return (unsigned char)__builtin_ia32_kortestzdi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestc_mask32_u8(__mmask32 __A, __mmask32 __B) { - return (unsigned char)__builtin_ia32_kortestcsi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestc_mask64_u8(__mmask64 __A, __mmask64 __B) { - return (unsigned char)__builtin_ia32_kortestcdi(__A, __B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kadd_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kaddsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kadd_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kadddi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtmask32_u32(__mmask32 __A) { - return (unsigned int)__builtin_ia32_kmovd((__mmask32)__A); -} - -extern __inline unsigned long long - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtmask64_u64(__mmask64 __A) { - return (unsigned long long)__builtin_ia32_kmovq((__mmask64)__A); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtu32_mask32(unsigned int __A) { - return (__mmask32)__builtin_ia32_kmovd((__mmask32)__A); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtu64_mask64(unsigned long long __A) { - return (__mmask64)__builtin_ia32_kmovq((__mmask64)__A); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _load_mask32(__mmask32 *__A) { - return (__mmask32)__builtin_ia32_kmovd(*__A); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _load_mask64(__mmask64 *__A) { - return (__mmask64)__builtin_ia32_kmovq(*(__mmask64 *)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _store_mask32(__mmask32 *__A, __mmask32 __B) { - *(__mmask32 *)__A = __builtin_ia32_kmovd(__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _store_mask64(__mmask64 *__A, __mmask64 __B) { - *(__mmask64 *)__A = __builtin_ia32_kmovq(__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _knot_mask32(__mmask32 __A) { - return (__mmask32)__builtin_ia32_knotsi((__mmask32)__A); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _knot_mask64(__mmask64 __A) { - return (__mmask64)__builtin_ia32_knotdi((__mmask64)__A); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kor_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_korsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kor_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kordi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxnor_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kxnorsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxnor_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kxnordi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxor_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kxorsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxor_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kxordi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kand_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kandsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kand_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kanddi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kandn_mask32(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kandnsi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kandn_mask64(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kandndi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_epi16(__m512i __W, __mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdquhi512_mask((__v32hi)__A, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_epi16(__mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdquhi512_mask( - (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_epi16(void const *__P) { - return (__m512i)(*(__v32hi_u *)__P); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_epi16(__m512i __W, __mmask32 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddquhi512_mask( - (const short *)__P, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_epi16(__mmask32 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddquhi512_mask( - (const short *)__P, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_epi16(void *__P, __m512i __A) { - *(__v32hi_u *)__P = (__v32hi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_epi16(void *__P, __mmask32 __U, __m512i __A) { - __builtin_ia32_storedquhi512_mask((short *)__P, (__v32hi)__A, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_mov_epi8(__m512i __W, __mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdquqi512_mask((__v64qi)__A, (__v64qi)__W, - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mov_epi8(__mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_movdquqi512_mask( - (__v64qi)__A, (__v64qi)_mm512_setzero_si512(), (__mmask64)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kunpackw(__mmask32 __A, __mmask32 __B) { - return (__mmask32)__builtin_ia32_kunpcksi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kunpackw_mask32(__mmask16 __A, __mmask16 __B) { - return (__mmask32)__builtin_ia32_kunpcksi((__mmask32)__A, (__mmask32)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_kunpackd(__mmask64 __A, __mmask64 __B) { - return (__mmask64)__builtin_ia32_kunpckdi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kunpackd_mask64(__mmask32 __A, __mmask32 __B) { - return (__mmask64)__builtin_ia32_kunpckdi((__mmask64)__A, (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_loadu_epi8(void const *__P) { - return (__m512i)(*(__v64qi_u *)__P); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_loadu_epi8(__m512i __W, __mmask64 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddquqi512_mask( - (const char *)__P, (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_loadu_epi8(__mmask64 __U, void const *__P) { - return (__m512i)__builtin_ia32_loaddquqi512_mask( - (const char *)__P, (__v64qi)_mm512_setzero_si512(), (__mmask64)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_storeu_epi8(void *__P, __m512i __A) { - *(__v64qi_u *)__P = (__v64qi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_storeu_epi8(void *__P, __mmask64 __U, __m512i __A) { - __builtin_ia32_storedquqi512_mask((char *)__P, (__v64qi)__A, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sad_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psadbw512((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi16_epi8(__m512i __A) { - return (__m256i)__builtin_ia32_pmovwb512_mask( - (__v32hi)__A, (__v32qi)_mm256_undefined_si256(), (__mmask32)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi16_storeu_epi8(void *__P, __mmask32 __M, __m512i __A) { - __builtin_ia32_pmovwb512mem_mask((__v32qi *)__P, (__v32hi)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi16_epi8(__m256i __O, __mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovwb512_mask((__v32hi)__A, (__v32qi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi16_epi8(__mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovwb512_mask( - (__v32hi)__A, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtsepi16_epi8(__m512i __A) { - return (__m256i)__builtin_ia32_pmovswb512_mask( - (__v32hi)__A, (__v32qi)_mm256_undefined_si256(), (__mmask32)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi16_storeu_epi8(void *__P, __mmask32 __M, __m512i __A) { - __builtin_ia32_pmovswb512mem_mask((__v32qi *)__P, (__v32hi)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtsepi16_epi8(__m256i __O, __mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovswb512_mask((__v32hi)__A, (__v32qi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtsepi16_epi8(__mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovswb512_mask( - (__v32hi)__A, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtusepi16_epi8(__m512i __A) { - return (__m256i)__builtin_ia32_pmovuswb512_mask( - (__v32hi)__A, (__v32qi)_mm256_undefined_si256(), (__mmask32)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi16_epi8(__m256i __O, __mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovuswb512_mask((__v32hi)__A, (__v32qi)__O, - __M); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtusepi16_storeu_epi8(void *__P, __mmask32 __M, __m512i __A) { - __builtin_ia32_pmovuswb512mem_mask((__v32qi *)__P, (__v32hi)__A, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtusepi16_epi8(__mmask32 __M, __m512i __A) { - return (__m256i)__builtin_ia32_pmovuswb512_mask( - (__v32hi)__A, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastb_epi8(__m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastb512_mask( - (__v16qi)__A, (__v64qi)_mm512_undefined_epi32(), (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastb_epi8(__m512i __O, __mmask64 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastb512_mask((__v16qi)__A, (__v64qi)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastb_epi8(__mmask64 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastb512_mask( - (__v16qi)__A, (__v64qi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_set1_epi8(__m512i __O, __mmask64 __M, char __A) { - return (__m512i)__builtin_ia32_pbroadcastb512_gpr_mask(__A, (__v64qi)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_set1_epi8(__mmask64 __M, char __A) { - return (__m512i)__builtin_ia32_pbroadcastb512_gpr_mask( - __A, (__v64qi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcastw_epi16(__m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastw512_mask( - (__v8hi)__A, (__v32hi)_mm512_undefined_epi32(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcastw_epi16(__m512i __O, __mmask32 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastw512_mask((__v8hi)__A, (__v32hi)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcastw_epi16(__mmask32 __M, __m128i __A) { - return (__m512i)__builtin_ia32_pbroadcastw512_mask( - (__v8hi)__A, (__v32hi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_set1_epi16(__m512i __O, __mmask32 __M, short __A) { - return (__m512i)__builtin_ia32_pbroadcastw512_gpr_mask(__A, (__v32hi)__O, - __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_set1_epi16(__mmask32 __M, short __A) { - return (__m512i)__builtin_ia32_pbroadcastw512_gpr_mask( - __A, (__v32hi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mulhrs_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhrsw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mulhrs_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhrsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mulhrs_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhrsw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mulhi_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mulhi_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mulhi_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mulhi_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhuw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mulhi_epu16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mulhi_epu16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmulhuw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mullo_epi16(__m512i __A, __m512i __B) { - return (__m512i)((__v32hu)__A * (__v32hu)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mullo_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmullw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mullo_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmullw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi8_epi16(__m256i __A) { - return (__m512i)__builtin_ia32_pmovsxbw512_mask( - (__v32qi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi8_epi16(__m512i __W, __mmask32 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovsxbw512_mask((__v32qi)__A, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi8_epi16(__mmask32 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovsxbw512_mask( - (__v32qi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu8_epi16(__m256i __A) { - return (__m512i)__builtin_ia32_pmovzxbw512_mask( - (__v32qi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu8_epi16(__m512i __W, __mmask32 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovzxbw512_mask((__v32qi)__A, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu8_epi16(__mmask32 __U, __m256i __A) { - return (__m512i)__builtin_ia32_pmovzxbw512_mask( - (__v32qi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_permvarhi512_mask( - (__v32hi)__B, (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_epi16(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_permvarhi512_mask( - (__v32hi)__B, (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutexvar_epi16(__m512i __W, __mmask32 __M, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_permvarhi512_mask( - (__v32hi)__B, (__v32hi)__A, (__v32hi)__W, (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_epi16(__m512i __A, __m512i __I, __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varhi512_mask( - (__v32hi)__I, (__v32hi)__A, (__v32hi)__B, (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_epi16(__m512i __A, __mmask32 __U, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varhi512_mask( - (__v32hi)__I, (__v32hi)__A, (__v32hi)__B, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_epi16(__m512i __A, __m512i __I, __mmask32 __U, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermi2varhi512_mask( - (__v32hi)__A, (__v32hi)__I, (__v32hi)__B, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_epi16(__mmask32 __U, __m512i __A, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varhi512_maskz( - (__v32hi)__I, (__v32hi)__A, (__v32hi)__B, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_avg_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_avg_epu8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_avg_epu8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_epi8(__m512i __A, __m512i __B) { - return (__m512i)((__v64qu)__A + (__v64qu)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_add_epi8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_epi8(__m512i __A, __m512i __B) { - return (__m512i)((__v64qu)__A - (__v64qu)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_sub_epi8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_avg_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_avg_epu16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_avg_epu16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pavgw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_subs_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_subs_epi8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_subs_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_subs_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusb512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_subs_epu8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_subs_epu8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusb512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_adds_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_adds_epi8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_adds_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_adds_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusb512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_adds_epu8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_adds_epu8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusb512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sub_epi16(__m512i __A, __m512i __B) { - return (__m512i)((__v32hu)__A - (__v32hu)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sub_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sub_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_subs_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_subs_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_subs_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_subs_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_subs_epu16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_subs_epu16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psubusw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_add_epi16(__m512i __A, __m512i __B) { - return (__m512i)((__v32hu)__A + (__v32hu)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_add_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_add_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_adds_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_adds_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_adds_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_adds_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_adds_epu16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_adds_epu16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_paddusw512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srl_epi16(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srl_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srl_epi16(__mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psrlw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_packs_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packsswb512_mask( - (__v32hi)__A, (__v32hi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sll_epi16(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sll_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sll_epi16(__mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psllw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maddubs_epi16(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmaddubsw512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_maddubs_epi16(__m512i __W, __mmask32 __U, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_pmaddubsw512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_maddubs_epi16(__mmask32 __U, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_pmaddubsw512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_madd_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaddwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v16si)_mm512_setzero_si512(), - (__mmask16)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_madd_epi16(__m512i __W, __mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaddwd512_mask((__v32hi)__A, (__v32hi)__B, - (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_madd_epi16(__mmask16 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaddwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpackhi_epi8(__m512i __W, __mmask64 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpckhbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpackhi_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpackhi_epi16(__m512i __W, __mmask32 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpckhwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpackhi_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpckhwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpacklo_epi8(__m512i __W, __mmask64 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpcklbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklbw512_mask( - (__v64qi)__A, (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_unpacklo_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_unpacklo_epi16(__m512i __W, __mmask32 __U, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_punpcklwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_unpacklo_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_punpcklwd512_mask( - (__v32hi)__A, (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epu8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__A, (__v64qi)__B, 0, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epi8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_pcmpeqb512_mask((__v64qi)__A, (__v64qi)__B, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epu8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__A, (__v64qi)__B, 0, - __U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epi8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_pcmpeqb512_mask((__v64qi)__A, (__v64qi)__B, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epu16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__A, (__v32hi)__B, 0, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpeq_epi16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_pcmpeqw512_mask((__v32hi)__A, (__v32hi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epu16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__A, (__v32hi)__B, 0, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpeq_epi16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_pcmpeqw512_mask((__v32hi)__A, (__v32hi)__B, - __U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epu8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__A, (__v64qi)__B, 6, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epi8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_pcmpgtb512_mask((__v64qi)__A, (__v64qi)__B, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epu8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__A, (__v64qi)__B, 6, - __U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epi8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_pcmpgtb512_mask((__v64qi)__A, (__v64qi)__B, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epu16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__A, (__v32hi)__B, 6, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpgt_epi16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_pcmpgtw512_mask((__v32hi)__A, (__v32hi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epu16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__A, (__v32hi)__B, 6, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpgt_epi16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_pcmpgtw512_mask((__v32hi)__A, (__v32hi)__B, - __U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movepi8_mask(__m512i __A) { - return (__mmask64)__builtin_ia32_cvtb2mask512((__v64qi)__A); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movepi16_mask(__m512i __A) { - return (__mmask32)__builtin_ia32_cvtw2mask512((__v32hi)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movm_epi8(__mmask64 __A) { - return (__m512i)__builtin_ia32_cvtmask2b512(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movm_epi16(__mmask32 __A) { - return (__m512i)__builtin_ia32_cvtmask2w512(__A); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_test_epi8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ptestmb512((__v64qi)__A, (__v64qi)__B, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_test_epi8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ptestmb512((__v64qi)__A, (__v64qi)__B, __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_test_epi16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ptestmw512((__v32hi)__A, (__v32hi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_test_epi16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ptestmw512((__v32hi)__A, (__v32hi)__B, __U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_testn_epi8_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ptestnmb512((__v64qi)__A, (__v64qi)__B, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_testn_epi8_mask(__mmask64 __U, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_ptestnmb512((__v64qi)__A, (__v64qi)__B, __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_testn_epi16_mask(__m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ptestnmw512((__v32hi)__A, (__v32hi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_testn_epi16_mask(__mmask32 __U, __m512i __A, __m512i __B) { - return (__mmask32)__builtin_ia32_ptestnmw512((__v32hi)__A, (__v32hi)__B, __U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shuffle_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pshufb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shuffle_epi8(__m512i __W, __mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pshufb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shuffle_epi8(__mmask64 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pshufb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epu16(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_min_epu16(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epi16(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_min_epi16(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epu8(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_epu8(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epi8(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_max_epi8(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epu8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epu8(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_epu8(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminub512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_min_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_min_epi8(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_min_epi8(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pminsb512_mask((__v64qi)__A, (__v64qi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epi16(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_max_epi16(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxsw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_max_epu16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_max_epu16(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_max_epu16(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmaxuw512_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sra_epi16(__m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sra_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sra_epi16(__mmask32 __U, __m512i __A, __m128i __B) { - return (__m512i)__builtin_ia32_psraw512_mask((__v32hi)__A, (__v8hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srav_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrav32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srav_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrav32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srav_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrav32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srlv_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrlv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_srlv_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrlv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srlv_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psrlv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_sllv_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psllv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_sllv_epi16(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psllv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_sllv_epi16(__mmask32 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_psllv32hi_mask((__v32hi)__A, (__v32hi)__B, - (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_packs_epi16(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packsswb512_mask((__v32hi)__A, (__v32hi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_packs_epi16(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packsswb512_mask( - (__v32hi)__A, (__v32hi)__B, (__v64qi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_packus_epi16(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packuswb512_mask( - (__v32hi)__A, (__v32hi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_packus_epi16(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packuswb512_mask((__v32hi)__A, (__v32hi)__B, - (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_packus_epi16(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packuswb512_mask( - (__v32hi)__A, (__v32hi)__B, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_epi8(__m512i __A) { - return (__m512i)__builtin_ia32_pabsb512_mask( - (__v64qi)__A, (__v64qi)_mm512_setzero_si512(), (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_epi8(__m512i __W, __mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsb512_mask((__v64qi)__A, (__v64qi)__W, - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_abs_epi8(__mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsb512_mask( - (__v64qi)__A, (__v64qi)_mm512_setzero_si512(), (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_abs_epi16(__m512i __A) { - return (__m512i)__builtin_ia32_pabsw512_mask( - (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_abs_epi16(__m512i __W, __mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsw512_mask((__v32hi)__A, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_abs_epi16(__mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_pabsw512_mask( - (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epu8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 4, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epu8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 1, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epu8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 5, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epu8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 2, - (__mmask64)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epu16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 4, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epu16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 1, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epu16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 5, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epu16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 2, - (__mmask32)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epi8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 4, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epi8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 1, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epi8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 5, - (__mmask64)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epi8_mask(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 2, - (__mmask64)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpneq_epi16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 4, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmplt_epi16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 1, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmpge_epi16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 5, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmple_epi16_mask(__mmask32 __M, __m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 2, - (__mmask32)__M); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epu8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 4, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epu8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 1, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epu8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 5, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epu8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, 2, - (__mmask64)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epu16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 4, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epu16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 1, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epu16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 5, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epu16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, 2, - (__mmask32)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epi8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 4, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epi8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 1, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epi8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 5, - (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epi8_mask(__m512i __X, __m512i __Y) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, 2, - (__mmask64)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpneq_epi16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 4, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmplt_epi16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 1, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmpge_epi16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 5, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmple_epi16_mask(__m512i __X, __m512i __Y) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, 2, - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_packs_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packssdw512_mask( - (__v16si)__A, (__v16si)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_packs_epi32(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packssdw512_mask( - (__v16si)__A, (__v16si)__B, (__v32hi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_packs_epi32(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packssdw512_mask((__v16si)__A, (__v16si)__B, - (__v32hi)__W, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_packus_epi32(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packusdw512_mask( - (__v16si)__A, (__v16si)__B, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_packus_epi32(__mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packusdw512_mask( - (__v16si)__A, (__v16si)__B, (__v32hi)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_packus_epi32(__m512i __W, __mmask32 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_packusdw512_mask((__v16si)__A, (__v16si)__B, - (__v32hi)__W, __M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftli_mask32(__mmask32 __A, unsigned int __B) { - return (__mmask32)__builtin_ia32_kshiftlisi((__mmask32)__A, (__mmask8)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftli_mask64(__mmask64 __A, unsigned int __B) { - return (__mmask64)__builtin_ia32_kshiftlidi((__mmask64)__A, (__mmask8)__B); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftri_mask32(__mmask32 __A, unsigned int __B) { - return (__mmask32)__builtin_ia32_kshiftrisi((__mmask32)__A, (__mmask8)__B); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftri_mask64(__mmask64 __A, unsigned int __B) { - return (__mmask64)__builtin_ia32_kshiftridi((__mmask64)__A, (__mmask8)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_alignr_epi8(__m512i __A, __m512i __B, const int __N) { - return (__m512i)__builtin_ia32_palignr512((__v8di)__A, (__v8di)__B, __N * 8); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_alignr_epi8(__m512i __W, __mmask64 __U, __m512i __A, - __m512i __B, const int __N) { - return (__m512i)__builtin_ia32_palignr512_mask( - (__v8di)__A, (__v8di)__B, __N * 8, (__v8di)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_alignr_epi8(__mmask64 __U, __m512i __A, __m512i __B, - const int __N) { - return (__m512i)__builtin_ia32_palignr512_mask( - (__v8di)__A, (__v8di)__B, __N * 8, (__v8di)_mm512_setzero_si512(), - (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dbsad_epu8(__m512i __A, __m512i __B, const int __imm) { - return (__m512i)__builtin_ia32_dbpsadbw512_mask( - (__v64qi)__A, (__v64qi)__B, __imm, (__v32hi)_mm512_setzero_si512(), - (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_dbsad_epu8(__m512i __W, __mmask32 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_dbpsadbw512_mask( - (__v64qi)__A, (__v64qi)__B, __imm, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_dbsad_epu8(__mmask32 __U, __m512i __A, __m512i __B, - const int __imm) { - return (__m512i)__builtin_ia32_dbpsadbw512_mask( - (__v64qi)__A, (__v64qi)__B, __imm, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srli_epi16(__m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_psrlwi512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srli_epi16(__m512i __W, __mmask32 __U, __m512i __A, - const int __imm) { - return (__m512i)__builtin_ia32_psrlwi512_mask((__v32hi)__A, __imm, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srli_epi16(__mmask32 __U, __m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_psrlwi512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_slli_epi16(__m512i __A, const int __B) { - return (__m512i)__builtin_ia32_psllwi512_mask( - (__v32hi)__A, __B, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_slli_epi16(__m512i __W, __mmask32 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_psllwi512_mask((__v32hi)__A, __B, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_slli_epi16(__mmask32 __U, __m512i __A, const int __B) { - return (__m512i)__builtin_ia32_psllwi512_mask( - (__v32hi)__A, __B, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shufflehi_epi16(__m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_pshufhw512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shufflehi_epi16(__m512i __W, __mmask32 __U, __m512i __A, - const int __imm) { - return (__m512i)__builtin_ia32_pshufhw512_mask((__v32hi)__A, __imm, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shufflehi_epi16(__mmask32 __U, __m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_pshufhw512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shufflelo_epi16(__m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_pshuflw512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shufflelo_epi16(__m512i __W, __mmask32 __U, __m512i __A, - const int __imm) { - return (__m512i)__builtin_ia32_pshuflw512_mask((__v32hi)__A, __imm, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shufflelo_epi16(__mmask32 __U, __m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_pshuflw512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_srai_epi16(__m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_psrawi512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_srai_epi16(__m512i __W, __mmask32 __U, __m512i __A, - const int __imm) { - return (__m512i)__builtin_ia32_psrawi512_mask((__v32hi)__A, __imm, - (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_srai_epi16(__mmask32 __U, __m512i __A, const int __imm) { - return (__m512i)__builtin_ia32_psrawi512_mask( - (__v32hi)__A, __imm, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_epi16(__mmask32 __U, __m512i __A, __m512i __W) { - return (__m512i)__builtin_ia32_blendmw_512_mask((__v32hi)__A, (__v32hi)__W, - (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_blend_epi8(__mmask64 __U, __m512i __A, __m512i __W) { - return (__m512i)__builtin_ia32_blendmb_512_mask((__v64qi)__A, (__v64qi)__W, - (__mmask64)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epi16_mask(__mmask32 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, __P, - (__mmask32)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epi16_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask32)__builtin_ia32_cmpw512_mask((__v32hi)__X, (__v32hi)__Y, __P, - (__mmask32)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epi8_mask(__mmask64 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, __P, - (__mmask64)__U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epi8_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask64)__builtin_ia32_cmpb512_mask((__v64qi)__X, (__v64qi)__Y, __P, - (__mmask64)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epu16_mask(__mmask32 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, - __P, (__mmask32)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epu16_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask32)__builtin_ia32_ucmpw512_mask((__v32hi)__X, (__v32hi)__Y, - __P, (__mmask32)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cmp_epu8_mask(__mmask64 __U, __m512i __X, __m512i __Y, - const int __P) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, - __P, (__mmask64)__U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cmp_epu8_mask(__m512i __X, __m512i __Y, const int __P) { - return (__mmask64)__builtin_ia32_ucmpb512_mask((__v64qi)__X, (__v64qi)__Y, - __P, (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_bslli_epi128(__m512i __A, const int __N) { - return (__m512i)__builtin_ia32_pslldq512(__A, __N * 8); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_bsrli_epi128(__m512i __A, const int __N) { - return (__m512i)__builtin_ia32_psrldq512(__A, __N * 8); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktest_mask8_u8(__mmask8 __A, __mmask8 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_ktestcqi(__A, __B); - return (unsigned char)__builtin_ia32_ktestzqi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestz_mask8_u8(__mmask8 __A, __mmask8 __B) { - return (unsigned char)__builtin_ia32_ktestzqi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestc_mask8_u8(__mmask8 __A, __mmask8 __B) { - return (unsigned char)__builtin_ia32_ktestcqi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktest_mask16_u8(__mmask16 __A, __mmask16 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_ktestchi(__A, __B); - return (unsigned char)__builtin_ia32_ktestzhi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestz_mask16_u8(__mmask16 __A, __mmask16 __B) { - return (unsigned char)__builtin_ia32_ktestzhi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _ktestc_mask16_u8(__mmask16 __A, __mmask16 __B) { - return (unsigned char)__builtin_ia32_ktestchi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortest_mask8_u8(__mmask8 __A, __mmask8 __B, unsigned char *__CF) { - *__CF = (unsigned char)__builtin_ia32_kortestcqi(__A, __B); - return (unsigned char)__builtin_ia32_kortestzqi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestz_mask8_u8(__mmask8 __A, __mmask8 __B) { - return (unsigned char)__builtin_ia32_kortestzqi(__A, __B); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kortestc_mask8_u8(__mmask8 __A, __mmask8 __B) { - return (unsigned char)__builtin_ia32_kortestcqi(__A, __B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kadd_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_kaddqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kadd_mask16(__mmask16 __A, __mmask16 __B) { - return (__mmask16)__builtin_ia32_kaddhi((__mmask16)__A, (__mmask16)__B); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtmask8_u32(__mmask8 __A) { - return (unsigned int)__builtin_ia32_kmovb((__mmask8)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtu32_mask8(unsigned int __A) { - return (__mmask8)__builtin_ia32_kmovb((__mmask8)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _load_mask8(__mmask8 *__A) { - return (__mmask8)__builtin_ia32_kmovb(*(__mmask8 *)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _store_mask8(__mmask8 *__A, __mmask8 __B) { - *(__mmask8 *)__A = __builtin_ia32_kmovb(__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _knot_mask8(__mmask8 __A) { - return (__mmask8)__builtin_ia32_knotqi((__mmask8)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kor_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_korqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxnor_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_kxnorqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kxor_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_kxorqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kand_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_kandqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kandn_mask8(__mmask8 __A, __mmask8 __B) { - return (__mmask8)__builtin_ia32_kandnqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_f64x2(__m128d __A) { - return (__m512d)__builtin_ia32_broadcastf64x2_512_mask( - (__v2df)__A, _mm512_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_f64x2(__m512d __O, __mmask8 __M, __m128d __A) { - return (__m512d)__builtin_ia32_broadcastf64x2_512_mask((__v2df)__A, - (__v8df)__O, __M); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_f64x2(__mmask8 __M, __m128d __A) { - return (__m512d)__builtin_ia32_broadcastf64x2_512_mask( - (__v2df)__A, (__v8df)_mm512_setzero_ps(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_i64x2(__m128i __A) { - return (__m512i)__builtin_ia32_broadcasti64x2_512_mask( - (__v2di)__A, _mm512_undefined_epi32(), (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_i64x2(__m512i __O, __mmask8 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti64x2_512_mask((__v2di)__A, - (__v8di)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_i64x2(__mmask8 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti64x2_512_mask( - (__v2di)__A, (__v8di)_mm512_setzero_si512(), __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_f32x2(__m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x2_512_mask( - (__v4sf)__A, (__v16sf)_mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_f32x2(__m512 __O, __mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x2_512_mask((__v4sf)__A, - (__v16sf)__O, __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_f32x2(__mmask16 __M, __m128 __A) { - return (__m512)__builtin_ia32_broadcastf32x2_512_mask( - (__v4sf)__A, (__v16sf)_mm512_setzero_ps(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_i32x2(__m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x2_512_mask( - (__v4si)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_i32x2(__m512i __O, __mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x2_512_mask((__v4si)__A, - (__v16si)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_i32x2(__mmask16 __M, __m128i __A) { - return (__m512i)__builtin_ia32_broadcasti32x2_512_mask( - (__v4si)__A, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_f32x8(__m256 __A) { - return (__m512)__builtin_ia32_broadcastf32x8_512_mask( - (__v8sf)__A, _mm512_undefined_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_f32x8(__m512 __O, __mmask16 __M, __m256 __A) { - return (__m512)__builtin_ia32_broadcastf32x8_512_mask((__v8sf)__A, - (__v16sf)__O, __M); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_f32x8(__mmask16 __M, __m256 __A) { - return (__m512)__builtin_ia32_broadcastf32x8_512_mask( - (__v8sf)__A, (__v16sf)_mm512_setzero_ps(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_broadcast_i32x8(__m256i __A) { - return (__m512i)__builtin_ia32_broadcasti32x8_512_mask( - (__v8si)__A, (__v16si)_mm512_undefined_epi32(), (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_broadcast_i32x8(__m512i __O, __mmask16 __M, __m256i __A) { - return (__m512i)__builtin_ia32_broadcasti32x8_512_mask((__v8si)__A, - (__v16si)__O, __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_broadcast_i32x8(__mmask16 __M, __m256i __A) { - return (__m512i)__builtin_ia32_broadcasti32x8_512_mask( - (__v8si)__A, (__v16si)_mm512_setzero_si512(), __M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mullo_epi64(__m512i __A, __m512i __B) { - return (__m512i)((__v8du)__A * (__v8du)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_mullo_epi64(__m512i __W, __mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmullq512_mask((__v8di)__A, (__v8di)__B, - (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_mullo_epi64(__mmask8 __U, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_pmullq512_mask( - (__v8di)__A, (__v8di)__B, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_xor_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_xorpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_xor_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_xorpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_xor_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_xorpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_xor_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_xorps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_xor_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_xorps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_xor_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_xorps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_or_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_orpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_or_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_orpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_or_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_orpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_or_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_orps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_or_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_orps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_or_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_orps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_and_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_and_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_and_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_and_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_and_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_and_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_andnot_pd(__m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andnpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_andnot_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andnpd512_mask((__v8df)__A, (__v8df)__B, - (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_andnot_pd(__mmask8 __U, __m512d __A, __m512d __B) { - return (__m512d)__builtin_ia32_andnpd512_mask( - (__v8df)__A, (__v8df)__B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_andnot_ps(__m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andnps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_andnot_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andnps512_mask((__v16sf)__A, (__v16sf)__B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_andnot_ps(__mmask16 __U, __m512 __A, __m512 __B) { - return (__m512)__builtin_ia32_andnps512_mask( - (__v16sf)__A, (__v16sf)__B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movepi32_mask(__m512i __A) { - return (__mmask16)__builtin_ia32_cvtd2mask512((__v16si)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movepi64_mask(__m512i __A) { - return (__mmask8)__builtin_ia32_cvtq2mask512((__v8di)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movm_epi32(__mmask16 __A) { - return (__m512i)__builtin_ia32_cvtmask2d512(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_movm_epi64(__mmask8 __A) { - return (__m512i)__builtin_ia32_cvtmask2q512(__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttpd_epi64(__m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttpd_epi64(__m512i __W, __mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttpd_epi64(__mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttpd_epu64(__m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttpd_epu64(__m512i __W, __mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttpd_epu64(__mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttps_epi64(__m256 __A) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttps_epi64(__m512i __W, __mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttps_epi64(__mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvttps_epu64(__m256 __A) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvttps_epu64(__m512i __W, __mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvttps_epu64(__mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtpd_epi64(__m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtpd_epi64(__m512i __W, __mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtpd_epi64(__mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtpd_epu64(__m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtpd_epu64(__m512i __W, __mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtpd_epu64(__mmask8 __U, __m512d __A) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_epi64(__m256 __A) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtps_epi64(__m512i __W, __mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_epi64(__mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtps_epu64(__m256 __A) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtps_epu64(__m512i __W, __mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtps_epu64(__mmask8 __U, __m256 __A) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi64_ps(__m512i __A) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_ps(__m256 __W, __mmask8 __U, __m512i __A) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask((__v8di)__A, (__v8sf)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi64_ps(__mmask8 __U, __m512i __A) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu64_ps(__m512i __A) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu64_ps(__m256 __W, __mmask8 __U, __m512i __A) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask((__v8di)__A, (__v8sf)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu64_ps(__mmask8 __U, __m512i __A) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepi64_pd(__m512i __A) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepi64_pd(__m512d __W, __mmask8 __U, __m512i __A) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask((__v8di)__A, (__v8df)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepi64_pd(__mmask8 __U, __m512i __A) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtepu64_pd(__m512i __A) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtepu64_pd(__m512d __W, __mmask8 __U, __m512i __A) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask((__v8di)__A, (__v8df)__W, - (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtepu64_pd(__mmask8 __U, __m512i __A) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, 0x04); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftli_mask8(__mmask8 __A, unsigned int __B) { - return (__mmask8)__builtin_ia32_kshiftliqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _kshiftri_mask8(__mmask8 __A, unsigned int __B) { - return (__mmask8)__builtin_ia32_kshiftriqi((__mmask8)__A, (__mmask8)__B); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_range_pd(__m512d __A, __m512d __B, int __C) { - return (__m512d)__builtin_ia32_rangepd512_mask((__v8df)__A, (__v8df)__B, __C, - (__v8df)_mm512_setzero_pd(), - (__mmask8)-1, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_range_pd(__m512d __W, __mmask8 __U, __m512d __A, __m512d __B, - int __C) { - return (__m512d)__builtin_ia32_rangepd512_mask( - (__v8df)__A, (__v8df)__B, __C, (__v8df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_range_pd(__mmask8 __U, __m512d __A, __m512d __B, int __C) { - return (__m512d)__builtin_ia32_rangepd512_mask((__v8df)__A, (__v8df)__B, __C, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_range_ps(__m512 __A, __m512 __B, int __C) { - return (__m512)__builtin_ia32_rangeps512_mask((__v16sf)__A, (__v16sf)__B, __C, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)-1, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_range_ps(__m512 __W, __mmask16 __U, __m512 __A, __m512 __B, - int __C) { - return (__m512)__builtin_ia32_rangeps512_mask( - (__v16sf)__A, (__v16sf)__B, __C, (__v16sf)__W, (__mmask16)__U, 0x04); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_range_ps(__mmask16 __U, __m512 __A, __m512 __B, int __C) { - return (__m512)__builtin_ia32_rangeps512_mask((__v16sf)__A, (__v16sf)__B, __C, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_sd(__m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_reducesd_mask( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_round_sd(__m128d __A, __m128d __B, int __C, const int __R) { - return (__m128d)__builtin_ia32_reducesd_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)-1, - __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_reduce_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - int __C) { - return (__m128d)__builtin_ia32_reducesd_mask((__v2df)__A, (__v2df)__B, __C, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_reduce_round_sd(__m128d __W, __mmask8 __U, __m128d __A, - __m128d __B, int __C, const int __R) { - return (__m128d)__builtin_ia32_reducesd_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)__W, __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_sd(__mmask8 __U, __m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_reducesd_mask( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_round_sd(__mmask8 __U, __m128d __A, __m128d __B, int __C, - const int __R) { - return (__m128d)__builtin_ia32_reducesd_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_ss(__m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_reducess_mask( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_round_ss(__m128 __A, __m128 __B, int __C, const int __R) { - return (__m128)__builtin_ia32_reducess_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, - __R); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_reduce_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_reducess_mask((__v4sf)__A, (__v4sf)__B, __C, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_reduce_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - int __C, const int __R) { - return (__m128)__builtin_ia32_reducess_mask_round((__v4sf)__A, (__v4sf)__B, - __C, (__v4sf)__W, __U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_ss(__mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_reducess_mask( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_round_ss(__mmask8 __U, __m128 __A, __m128 __B, int __C, - const int __R) { - return (__m128)__builtin_ia32_reducess_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), __U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_sd(__m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)-1, - 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_range_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - int __C) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_sd(__mmask8 __U, __m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)__U, - 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_ss(__m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, - 0x04); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_range_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)__W, (__mmask8)__U, 0x04); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_ss(__mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, - 0x04); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_round_sd(__m128d __A, __m128d __B, int __C, const int __R) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)-1, - __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_range_round_sd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - int __C, const int __R) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)__W, (__mmask8)__U, __R); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_round_sd(__mmask8 __U, __m128d __A, __m128d __B, int __C, - const int __R) { - return (__m128d)__builtin_ia32_rangesd128_mask_round( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)__U, - __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_round_ss(__m128 __A, __m128 __B, int __C, const int __R) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)-1, - __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_range_round_ss(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, - int __C, const int __R) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)__W, (__mmask8)__U, __R); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_round_ss(__mmask8 __U, __m128 __A, __m128 __B, int __C, - const int __R) { - return (__m128)__builtin_ia32_rangess128_mask_round( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U, - __R); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fpclass_ss_mask(__m128 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassss_mask((__v4sf)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fpclass_sd_mask(__m128d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasssd_mask((__v2df)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fpclass_ss_mask(__mmask8 __U, __m128 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassss_mask((__v4sf)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fpclass_sd_mask(__mmask8 __U, __m128d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasssd_mask((__v2df)__A, __imm, __U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundpd_epi64(__m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundpd_epi64(__m512i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundpd_epi64(__mmask8 __U, __m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvttpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundpd_epu64(__m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundpd_epu64(__m512i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundpd_epu64(__mmask8 __U, __m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvttpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundps_epi64(__m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundps_epi64(__m512i __W, __mmask8 __U, __m256 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundps_epi64(__mmask8 __U, __m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtt_roundps_epu64(__m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtt_roundps_epu64(__m512i __W, __mmask8 __U, __m256 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtt_roundps_epu64(__mmask8 __U, __m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvttps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundpd_epi64(__m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundpd_epi64(__m512i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundpd_epi64(__mmask8 __U, __m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvtpd2qq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundpd_epu64(__m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundpd_epu64(__m512i __W, __mmask8 __U, __m512d __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask((__v8df)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundpd_epu64(__mmask8 __U, __m512d __A, const int __R) { - return (__m512i)__builtin_ia32_cvtpd2uqq512_mask( - (__v8df)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_epi64(__m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_epi64(__m512i __W, __mmask8 __U, __m256 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_epi64(__mmask8 __U, __m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2qq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundps_epu64(__m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)-1, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundps_epu64(__m512i __W, __mmask8 __U, __m256 __A, - const int __R) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask((__v8sf)__A, (__v8di)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundps_epu64(__mmask8 __U, __m256 __A, const int __R) { - return (__m512i)__builtin_ia32_cvtps2uqq512_mask( - (__v8sf)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepi64_ps(__m512i __A, const int __R) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepi64_ps(__m256 __W, __mmask8 __U, __m512i __A, - const int __R) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask((__v8di)__A, (__v8sf)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepi64_ps(__mmask8 __U, __m512i __A, const int __R) { - return (__m256)__builtin_ia32_cvtqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepu64_ps(__m512i __A, const int __R) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepu64_ps(__m256 __W, __mmask8 __U, __m512i __A, - const int __R) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask((__v8di)__A, (__v8sf)__W, - (__mmask8)__U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepu64_ps(__mmask8 __U, __m512i __A, const int __R) { - return (__m256)__builtin_ia32_cvtuqq2ps512_mask( - (__v8di)__A, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepi64_pd(__m512i __A, const int __R) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepi64_pd(__m512d __W, __mmask8 __U, __m512i __A, - const int __R) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask((__v8di)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepi64_pd(__mmask8 __U, __m512i __A, const int __R) { - return (__m512d)__builtin_ia32_cvtqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvt_roundepu64_pd(__m512i __A, const int __R) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvt_roundepu64_pd(__m512d __W, __mmask8 __U, __m512i __A, - const int __R) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask((__v8di)__A, (__v8df)__W, - (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvt_roundepu64_pd(__mmask8 __U, __m512i __A, const int __R) { - return (__m512d)__builtin_ia32_cvtuqq2pd512_mask( - (__v8di)__A, (__v8df)_mm512_setzero_pd(), (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_pd(__m512d __A, int __B) { - return (__m512d)__builtin_ia32_reducepd512_mask( - (__v8df)__A, __B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_round_pd(__m512d __A, int __B, const int __R) { - return (__m512d)__builtin_ia32_reducepd512_mask_round( - (__v8df)__A, __B, (__v8df)_mm512_setzero_pd(), (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_pd(__m512d __W, __mmask8 __U, __m512d __A, int __B) { - return (__m512d)__builtin_ia32_reducepd512_mask((__v8df)__A, __B, (__v8df)__W, - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_round_pd(__m512d __W, __mmask8 __U, __m512d __A, int __B, - const int __R) { - return (__m512d)__builtin_ia32_reducepd512_mask_round((__v8df)__A, __B, - (__v8df)__W, __U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_reduce_pd(__mmask8 __U, __m512d __A, int __B) { - return (__m512d)__builtin_ia32_reducepd512_mask( - (__v8df)__A, __B, (__v8df)_mm512_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_reduce_round_pd(__mmask8 __U, __m512d __A, int __B, - const int __R) { - return (__m512d)__builtin_ia32_reducepd512_mask_round( - (__v8df)__A, __B, (__v8df)_mm512_setzero_pd(), __U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_ps(__m512 __A, int __B) { - return (__m512)__builtin_ia32_reduceps512_mask( - (__v16sf)__A, __B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_reduce_round_ps(__m512 __A, int __B, const int __R) { - return (__m512)__builtin_ia32_reduceps512_mask_round( - (__v16sf)__A, __B, (__v16sf)_mm512_setzero_ps(), (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_ps(__m512 __W, __mmask16 __U, __m512 __A, int __B) { - return (__m512)__builtin_ia32_reduceps512_mask((__v16sf)__A, __B, - (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_reduce_round_ps(__m512 __W, __mmask16 __U, __m512 __A, int __B, - const int __R) { - return (__m512)__builtin_ia32_reduceps512_mask_round((__v16sf)__A, __B, - (__v16sf)__W, __U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_reduce_ps(__mmask16 __U, __m512 __A, int __B) { - return (__m512)__builtin_ia32_reduceps512_mask( - (__v16sf)__A, __B, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_reduce_round_ps(__mmask16 __U, __m512 __A, int __B, - const int __R) { - return (__m512)__builtin_ia32_reduceps512_mask_round( - (__v16sf)__A, __B, (__v16sf)_mm512_setzero_ps(), __U, __R); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extractf32x8_ps(__m512 __A, const int __imm) { - return (__m256)__builtin_ia32_extractf32x8_mask( - (__v16sf)__A, __imm, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extractf32x8_ps(__m256 __W, __mmask8 __U, __m512 __A, - const int __imm) { - return (__m256)__builtin_ia32_extractf32x8_mask((__v16sf)__A, __imm, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_extractf32x8_ps(__mmask8 __U, __m512 __A, const int __imm) { - return (__m256)__builtin_ia32_extractf32x8_mask( - (__v16sf)__A, __imm, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extractf64x2_pd(__m512d __A, const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_512_mask( - (__v8df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extractf64x2_pd(__m128d __W, __mmask8 __U, __m512d __A, - const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_512_mask( - (__v8df)__A, __imm, (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_extractf64x2_pd(__mmask8 __U, __m512d __A, const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_512_mask( - (__v8df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extracti32x8_epi32(__m512i __A, const int __imm) { - return (__m256i)__builtin_ia32_extracti32x8_mask( - (__v16si)__A, __imm, (__v8si)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extracti32x8_epi32(__m256i __W, __mmask8 __U, __m512i __A, - const int __imm) { - return (__m256i)__builtin_ia32_extracti32x8_mask((__v16si)__A, __imm, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_extracti32x8_epi32(__mmask8 __U, __m512i __A, const int __imm) { - return (__m256i)__builtin_ia32_extracti32x8_mask( - (__v16si)__A, __imm, (__v8si)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_extracti64x2_epi64(__m512i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_512_mask( - (__v8di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_extracti64x2_epi64(__m128i __W, __mmask8 __U, __m512i __A, - const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_512_mask( - (__v8di)__A, __imm, (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_extracti64x2_epi64(__mmask8 __U, __m512i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_512_mask( - (__v8di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_range_round_pd(__m512d __A, __m512d __B, int __C, const int __R) { - return (__m512d)__builtin_ia32_rangepd512_mask((__v8df)__A, (__v8df)__B, __C, - (__v8df)_mm512_setzero_pd(), - (__mmask8)-1, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_range_round_pd(__m512d __W, __mmask8 __U, __m512d __A, - __m512d __B, int __C, const int __R) { - return (__m512d)__builtin_ia32_rangepd512_mask( - (__v8df)__A, (__v8df)__B, __C, (__v8df)__W, (__mmask8)__U, __R); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_range_round_pd(__mmask8 __U, __m512d __A, __m512d __B, int __C, - const int __R) { - return (__m512d)__builtin_ia32_rangepd512_mask((__v8df)__A, (__v8df)__B, __C, - (__v8df)_mm512_setzero_pd(), - (__mmask8)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_range_round_ps(__m512 __A, __m512 __B, int __C, const int __R) { - return (__m512)__builtin_ia32_rangeps512_mask((__v16sf)__A, (__v16sf)__B, __C, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)-1, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_range_round_ps(__m512 __W, __mmask16 __U, __m512 __A, - __m512 __B, int __C, const int __R) { - return (__m512)__builtin_ia32_rangeps512_mask( - (__v16sf)__A, (__v16sf)__B, __C, (__v16sf)__W, (__mmask16)__U, __R); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_range_round_ps(__mmask16 __U, __m512 __A, __m512 __B, int __C, - const int __R) { - return (__m512)__builtin_ia32_rangeps512_mask((__v16sf)__A, (__v16sf)__B, __C, - (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U, __R); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_inserti32x8(__m512i __A, __m256i __B, const int __imm) { - return (__m512i)__builtin_ia32_inserti32x8_mask( - (__v16si)__A, (__v8si)__B, __imm, (__v16si)_mm512_setzero_si512(), - (__mmask16)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_inserti32x8(__m512i __W, __mmask16 __U, __m512i __A, - __m256i __B, const int __imm) { - return (__m512i)__builtin_ia32_inserti32x8_mask( - (__v16si)__A, (__v8si)__B, __imm, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_inserti32x8(__mmask16 __U, __m512i __A, __m256i __B, - const int __imm) { - return (__m512i)__builtin_ia32_inserti32x8_mask( - (__v16si)__A, (__v8si)__B, __imm, (__v16si)_mm512_setzero_si512(), - (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_insertf32x8(__m512 __A, __m256 __B, const int __imm) { - return (__m512)__builtin_ia32_insertf32x8_mask( - (__v16sf)__A, (__v8sf)__B, __imm, (__v16sf)_mm512_setzero_ps(), - (__mmask16)-1); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_insertf32x8(__m512 __W, __mmask16 __U, __m512 __A, __m256 __B, - const int __imm) { - return (__m512)__builtin_ia32_insertf32x8_mask( - (__v16sf)__A, (__v8sf)__B, __imm, (__v16sf)__W, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_insertf32x8(__mmask16 __U, __m512 __A, __m256 __B, - const int __imm) { - return (__m512)__builtin_ia32_insertf32x8_mask( - (__v16sf)__A, (__v8sf)__B, __imm, (__v16sf)_mm512_setzero_ps(), - (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_inserti64x2(__m512i __A, __m128i __B, const int __imm) { - return (__m512i)__builtin_ia32_inserti64x2_512_mask( - (__v8di)__A, (__v2di)__B, __imm, (__v8di)_mm512_setzero_si512(), - (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_inserti64x2(__m512i __W, __mmask8 __U, __m512i __A, __m128i __B, - const int __imm) { - return (__m512i)__builtin_ia32_inserti64x2_512_mask( - (__v8di)__A, (__v2di)__B, __imm, (__v8di)__W, (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_inserti64x2(__mmask8 __U, __m512i __A, __m128i __B, - const int __imm) { - return (__m512i)__builtin_ia32_inserti64x2_512_mask( - (__v8di)__A, (__v2di)__B, __imm, (__v8di)_mm512_setzero_si512(), - (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_insertf64x2(__m512d __A, __m128d __B, const int __imm) { - return (__m512d)__builtin_ia32_insertf64x2_512_mask( - (__v8df)__A, (__v2df)__B, __imm, (__v8df)_mm512_setzero_pd(), - (__mmask8)-1); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_insertf64x2(__m512d __W, __mmask8 __U, __m512d __A, __m128d __B, - const int __imm) { - return (__m512d)__builtin_ia32_insertf64x2_512_mask( - (__v8df)__A, (__v2df)__B, __imm, (__v8df)__W, (__mmask8)__U); -} - -extern __inline __m512d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_insertf64x2(__mmask8 __U, __m512d __A, __m128d __B, - const int __imm) { - return (__m512d)__builtin_ia32_insertf64x2_512_mask( - (__v8df)__A, (__v2df)__B, __imm, (__v8df)_mm512_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fpclass_pd_mask(__mmask8 __U, __m512d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd512_mask((__v8df)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fpclass_pd_mask(__m512d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd512_mask((__v8df)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_fpclass_ps_mask(__mmask16 __U, __m512 __A, const int __imm) { - return (__mmask16)__builtin_ia32_fpclassps512_mask((__v16sf)__A, __imm, __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_fpclass_ps_mask(__m512 __A, const int __imm) { - return (__mmask16)__builtin_ia32_fpclassps512_mask((__v16sf)__A, __imm, - (__mmask16)-1); -} - -typedef short __v16hi_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -typedef short __v8hi_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); -typedef char __v32qi_u - __attribute__((__vector_size__(32), __may_alias__, __aligned__(1))); -typedef char __v16qi_u - __attribute__((__vector_size__(16), __may_alias__, __aligned__(1))); - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_epi8(__m256i __W, __mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdquqi256_mask((__v32qi)__A, (__v32qi)__W, - (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_epi8(__mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdquqi256_mask( - (__v32qi)__A, (__v32qi)_mm256_setzero_si256(), (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_epi8(__m128i __W, __mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdquqi128_mask((__v16qi)__A, (__v16qi)__W, - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_epi8(__mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdquqi128_mask( - (__v16qi)__A, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_epi8(void *__P, __m256i __A) { - *(__v32qi_u *)__P = (__v32qi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_epi8(void *__P, __mmask32 __U, __m256i __A) { - __builtin_ia32_storedquqi256_mask((char *)__P, (__v32qi)__A, (__mmask32)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_epi8(void *__P, __m128i __A) { - *(__v16qi_u *)__P = (__v16qi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_epi8(void *__P, __mmask16 __U, __m128i __A) { - __builtin_ia32_storedquqi128_mask((char *)__P, (__v16qi)__A, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_epi16(void const *__P) { - return (__m256i)(*(__v16hi_u *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_epi16(__m256i __W, __mmask16 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddquhi256_mask( - (const short *)__P, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_epi16(__mmask16 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddquhi256_mask( - (const short *)__P, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_epi16(void const *__P) { - return (__m128i)(*(__v8hi_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_epi16(__m128i __W, __mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddquhi128_mask((const short *)__P, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_epi16(__mmask8 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddquhi128_mask( - (const short *)__P, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_mov_epi16(__m256i __W, __mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdquhi256_mask((__v16hi)__A, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mov_epi16(__mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_movdquhi256_mask( - (__v16hi)__A, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mov_epi16(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdquhi128_mask((__v8hi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mov_epi16(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_movdquhi128_mask( - (__v8hi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_loadu_epi8(void const *__P) { - return (__m256i)(*(__v32qi_u *)__P); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_loadu_epi8(__m256i __W, __mmask32 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddquqi256_mask( - (const char *)__P, (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_loadu_epi8(__mmask32 __U, void const *__P) { - return (__m256i)__builtin_ia32_loaddquqi256_mask( - (const char *)__P, (__v32qi)_mm256_setzero_si256(), (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadu_epi8(void const *__P) { - return (__m128i)(*(__v16qi_u *)__P); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_loadu_epi8(__m128i __W, __mmask16 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddquqi128_mask( - (const char *)__P, (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_loadu_epi8(__mmask16 __U, void const *__P) { - return (__m128i)__builtin_ia32_loaddquqi128_mask( - (const char *)__P, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi16_epi8(__m256i __A) { - - return (__m128i)__builtin_ia32_pmovwb256_mask( - (__v16hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi16_storeu_epi8(void *__P, __mmask16 __M, __m256i __A) { - __builtin_ia32_pmovwb256mem_mask((__v16qi *)__P, (__v16hi)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi16_epi8(__m128i __O, __mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovwb256_mask((__v16hi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi16_epi8(__mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovwb256_mask( - (__v16hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtsepi16_epi8(__m128i __A) { - - return (__m128i)__builtin_ia32_pmovswb128_mask( - (__v8hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi16_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovswb128mem_mask((unsigned long long *)__P, (__v8hi)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtsepi16_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovswb128_mask((__v8hi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtsepi16_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovswb128_mask( - (__v8hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtsepi16_epi8(__m256i __A) { - - return (__m128i)__builtin_ia32_pmovswb256_mask( - (__v16hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi16_storeu_epi8(void *__P, __mmask16 __M, __m256i __A) { - __builtin_ia32_pmovswb256mem_mask((__v16qi *)__P, (__v16hi)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtsepi16_epi8(__m128i __O, __mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovswb256_mask((__v16hi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtsepi16_epi8(__mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovswb256_mask( - (__v16hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtusepi16_epi8(__m128i __A) { - - return (__m128i)__builtin_ia32_pmovuswb128_mask( - (__v8hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi16_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovuswb128mem_mask((unsigned long long *)__P, (__v8hi)__A, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtusepi16_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovuswb128_mask((__v8hi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtusepi16_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovuswb128_mask( - (__v8hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtusepi16_epi8(__m256i __A) { - - return (__m128i)__builtin_ia32_pmovuswb256_mask( - (__v16hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi16_storeu_epi8(void *__P, __mmask16 __M, __m256i __A) { - __builtin_ia32_pmovuswb256mem_mask((__v16qi *)__P, (__v16hi)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtusepi16_epi8(__m128i __O, __mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovuswb256_mask((__v16hi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtusepi16_epi8(__mmask16 __M, __m256i __A) { - return (__m128i)__builtin_ia32_pmovuswb256_mask( - (__v16hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastb_epi8(__m256i __O, __mmask32 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastb256_mask((__v16qi)__A, (__v32qi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastb_epi8(__mmask32 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastb256_mask( - (__v16qi)__A, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_set1_epi8(__m256i __O, __mmask32 __M, char __A) { - return (__m256i)__builtin_ia32_pbroadcastb256_gpr_mask(__A, (__v32qi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_set1_epi8(__mmask32 __M, char __A) { - return (__m256i)__builtin_ia32_pbroadcastb256_gpr_mask( - __A, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcastb_epi8(__m128i __O, __mmask16 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastb128_mask((__v16qi)__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcastb_epi8(__mmask16 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastb128_mask( - (__v16qi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_set1_epi8(__m128i __O, __mmask16 __M, char __A) { - return (__m128i)__builtin_ia32_pbroadcastb128_gpr_mask(__A, (__v16qi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_set1_epi8(__mmask16 __M, char __A) { - return (__m128i)__builtin_ia32_pbroadcastb128_gpr_mask( - __A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcastw_epi16(__m256i __O, __mmask16 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastw256_mask((__v8hi)__A, (__v16hi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcastw_epi16(__mmask16 __M, __m128i __A) { - return (__m256i)__builtin_ia32_pbroadcastw256_mask( - (__v8hi)__A, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_set1_epi16(__m256i __O, __mmask16 __M, short __A) { - return (__m256i)__builtin_ia32_pbroadcastw256_gpr_mask(__A, (__v16hi)__O, - __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_set1_epi16(__mmask16 __M, short __A) { - return (__m256i)__builtin_ia32_pbroadcastw256_gpr_mask( - __A, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcastw_epi16(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastw128_mask((__v8hi)__A, (__v8hi)__O, - __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcastw_epi16(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pbroadcastw128_mask( - (__v8hi)__A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_set1_epi16(__m128i __O, __mmask8 __M, short __A) { - return (__m128i)__builtin_ia32_pbroadcastw128_gpr_mask(__A, (__v8hi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_set1_epi16(__mmask8 __M, short __A) { - return (__m128i)__builtin_ia32_pbroadcastw128_gpr_mask( - __A, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutexvar_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_permvarhi256_mask( - (__v16hi)__B, (__v16hi)__A, (__v16hi)_mm256_setzero_si256(), - (__mmask16)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_epi16(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_permvarhi256_mask( - (__v16hi)__B, (__v16hi)__A, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutexvar_epi16(__m256i __W, __mmask16 __M, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_permvarhi256_mask( - (__v16hi)__B, (__v16hi)__A, (__v16hi)__W, (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutexvar_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_permvarhi128_mask( - (__v8hi)__B, (__v8hi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutexvar_epi16(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_permvarhi128_mask( - (__v8hi)__B, (__v8hi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutexvar_epi16(__m128i __W, __mmask8 __M, __m128i __A, - __m128i __B) { - return (__m128i)__builtin_ia32_permvarhi128_mask((__v8hi)__B, (__v8hi)__A, - (__v8hi)__W, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_epi16(__m256i __A, __m256i __I, __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varhi256_mask( - (__v16hi)__I, (__v16hi)__A, (__v16hi)__B, (__mmask16)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex2var_epi16(__m256i __A, __mmask16 __U, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varhi256_mask( - (__v16hi)__I, (__v16hi)__A, (__v16hi)__B, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_epi16(__m256i __A, __m256i __I, __mmask16 __U, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermi2varhi256_mask( - (__v16hi)__A, (__v16hi)__I, (__v16hi)__B, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_epi16(__mmask16 __U, __m256i __A, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varhi256_maskz( - (__v16hi)__I, (__v16hi)__A, (__v16hi)__B, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_epi16(__m128i __A, __m128i __I, __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varhi128_mask( - (__v8hi)__I, (__v8hi)__A, (__v8hi)__B, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutex2var_epi16(__m128i __A, __mmask8 __U, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varhi128_mask( - (__v8hi)__I, (__v8hi)__A, (__v8hi)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask2_permutex2var_epi16(__m128i __A, __m128i __I, __mmask8 __U, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermi2varhi128_mask( - (__v8hi)__A, (__v8hi)__I, (__v8hi)__B, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutex2var_epi16(__mmask8 __U, __m128i __A, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varhi128_maskz( - (__v8hi)__I, (__v8hi)__A, (__v8hi)__B, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_maddubs_epi16(__m256i __W, __mmask16 __U, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_pmaddubsw256_mask( - (__v32qi)__X, (__v32qi)__Y, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_maddubs_epi16(__mmask16 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmaddubsw256_mask( - (__v32qi)__X, (__v32qi)__Y, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_maddubs_epi16(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaddubsw128_mask((__v16qi)__X, (__v16qi)__Y, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_maddubs_epi16(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmaddubsw128_mask( - (__v16qi)__X, (__v16qi)__Y, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_madd_epi16(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaddwd256_mask((__v16hi)__A, (__v16hi)__B, - (__v8si)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_madd_epi16(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaddwd256_mask((__v16hi)__A, (__v16hi)__B, - (__v8si)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_madd_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaddwd128_mask((__v8hi)__A, (__v8hi)__B, - (__v4si)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_madd_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaddwd128_mask( - (__v8hi)__A, (__v8hi)__B, (__v4si)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movepi8_mask(__m128i __A) { - return (__mmask16)__builtin_ia32_cvtb2mask128((__v16qi)__A); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movepi8_mask(__m256i __A) { - return (__mmask32)__builtin_ia32_cvtb2mask256((__v32qi)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movepi16_mask(__m128i __A) { - return (__mmask8)__builtin_ia32_cvtw2mask128((__v8hi)__A); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movepi16_mask(__m256i __A) { - return (__mmask16)__builtin_ia32_cvtw2mask256((__v16hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movm_epi8(__mmask16 __A) { - return (__m128i)__builtin_ia32_cvtmask2b128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movm_epi8(__mmask32 __A) { - return (__m256i)__builtin_ia32_cvtmask2b256(__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movm_epi16(__mmask8 __A) { - return (__m128i)__builtin_ia32_cvtmask2w128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movm_epi16(__mmask16 __A) { - return (__m256i)__builtin_ia32_cvtmask2w256(__A); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_test_epi8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ptestmb128((__v16qi)__A, (__v16qi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_test_epi8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ptestmb128((__v16qi)__A, (__v16qi)__B, __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_test_epi8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ptestmb256((__v32qi)__A, (__v32qi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_test_epi8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ptestmb256((__v32qi)__A, (__v32qi)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_test_epi16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmw128((__v8hi)__A, (__v8hi)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_test_epi16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestmw128((__v8hi)__A, (__v8hi)__B, __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_test_epi16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ptestmw256((__v16hi)__A, (__v16hi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_test_epi16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ptestmw256((__v16hi)__A, (__v16hi)__B, __U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epu16(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_min_epu16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminuw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epu16(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminuw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epu16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminuw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epi16(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_min_epi16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epu8(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxub256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epu8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxub256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epu8(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxub128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epu8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxub128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epi8(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_max_epi8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epi8(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epi8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epu8(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminub256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epu8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminub256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epu8(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminub128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epu8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminub128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_min_epi8(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_min_epi8(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pminsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epi8(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epi8(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epi16(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_max_epi16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epi16(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epi16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxsw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_max_epu16(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_max_epu16(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmaxuw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_max_epu16(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxuw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_max_epu16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmaxuw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_min_epi16(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_min_epi16(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pminsw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_alignr_epi8(__m256i __W, __mmask32 __U, __m256i __A, - __m256i __B, const int __N) { - return (__m256i)__builtin_ia32_palignr256_mask( - (__v4di)__A, (__v4di)__B, __N * 8, (__v4di)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_alignr_epi8(__mmask32 __U, __m256i __A, __m256i __B, - const int __N) { - return (__m256i)__builtin_ia32_palignr256_mask( - (__v4di)__A, (__v4di)__B, __N * 8, (__v4di)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_alignr_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B, - const int __N) { - return (__m128i)__builtin_ia32_palignr128_mask( - (__v2di)__A, (__v2di)__B, __N * 8, (__v2di)__W, (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_alignr_epi8(__mmask16 __U, __m128i __A, __m128i __B, const int __N) { - return (__m128i)__builtin_ia32_palignr128_mask( - (__v2di)__A, (__v2di)__B, __N * 8, (__v2di)_mm_setzero_si128(), - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dbsad_epu8(__m256i __A, __m256i __B, const int __imm) { - return (__m256i)__builtin_ia32_dbpsadbw256_mask( - (__v32qi)__A, (__v32qi)__B, __imm, (__v16hi)_mm256_setzero_si256(), - (__mmask16)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_dbsad_epu8(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_dbpsadbw256_mask( - (__v32qi)__A, (__v32qi)__B, __imm, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_dbsad_epu8(__mmask16 __U, __m256i __A, __m256i __B, - const int __imm) { - return (__m256i)__builtin_ia32_dbpsadbw256_mask( - (__v32qi)__A, (__v32qi)__B, __imm, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dbsad_epu8(__m128i __A, __m128i __B, const int __imm) { - return (__m128i)__builtin_ia32_dbpsadbw128_mask( - (__v16qi)__A, (__v16qi)__B, __imm, (__v8hi)_mm_setzero_si128(), - (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_dbsad_epu8(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B, - const int __imm) { - return (__m128i)__builtin_ia32_dbpsadbw128_mask( - (__v16qi)__A, (__v16qi)__B, __imm, (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_dbsad_epu8(__mmask8 __U, __m128i __A, __m128i __B, const int __imm) { - return (__m128i)__builtin_ia32_dbpsadbw128_mask( - (__v16qi)__A, (__v16qi)__B, __imm, (__v8hi)_mm_setzero_si128(), - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_epi16(__mmask8 __U, __m128i __A, __m128i __W) { - return (__m128i)__builtin_ia32_blendmw_128_mask((__v8hi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_blend_epi8(__mmask16 __U, __m128i __A, __m128i __W) { - return (__m128i)__builtin_ia32_blendmb_128_mask((__v16qi)__A, (__v16qi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_epi16(__mmask16 __U, __m256i __A, __m256i __W) { - return (__m256i)__builtin_ia32_blendmw_256_mask((__v16hi)__A, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_blend_epi8(__mmask32 __U, __m256i __A, __m256i __W) { - return (__m256i)__builtin_ia32_blendmb_256_mask((__v32qi)__A, (__v32qi)__W, - (__mmask32)__U); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epi16_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epi16_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epi16_mask(__mmask16 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, __P, - (__mmask16)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epi16_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, __P, - (__mmask16)-1); -} - -extern __inline __mmask16 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epi8_mask(__mmask16 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, __P, - (__mmask16)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epi8_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, __P, - (__mmask16)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epi8_mask(__mmask32 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, __P, - (__mmask32)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epi8_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, __P, - (__mmask32)-1); -} - -extern __inline __mmask8 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epu16_mask(__mmask8 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, __P, - (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epu16_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, __P, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epu16_mask(__mmask16 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, - __P, (__mmask16)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epu16_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, - __P, (__mmask16)-1); -} - -extern __inline __mmask16 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_cmp_epu8_mask(__mmask16 __U, __m128i __X, __m128i __Y, const int __P) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, - __P, (__mmask16)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmp_epu8_mask(__m128i __X, __m128i __Y, const int __P) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, - __P, (__mmask16)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmp_epu8_mask(__mmask32 __U, __m256i __X, __m256i __Y, - const int __P) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, - __P, (__mmask32)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmp_epu8_mask(__m256i __X, __m256i __Y, const int __P) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, - __P, (__mmask32)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srli_epi16(__m256i __W, __mmask16 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psrlwi256_mask((__v16hi)__A, __imm, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srli_epi16(__mmask16 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psrlwi256_mask( - (__v16hi)__A, __imm, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srli_epi16(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrlwi128_mask((__v8hi)__A, __imm, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srli_epi16(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrlwi128_mask( - (__v8hi)__A, __imm, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shufflehi_epi16(__m256i __W, __mmask16 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_pshufhw256_mask((__v16hi)__A, __imm, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shufflehi_epi16(__mmask16 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_pshufhw256_mask( - (__v16hi)__A, __imm, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shufflehi_epi16(__m128i __W, __mmask8 __U, __m128i __A, - const int __imm) { - return (__m128i)__builtin_ia32_pshufhw128_mask((__v8hi)__A, __imm, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shufflehi_epi16(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_pshufhw128_mask( - (__v8hi)__A, __imm, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shufflelo_epi16(__m256i __W, __mmask16 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_pshuflw256_mask((__v16hi)__A, __imm, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shufflelo_epi16(__mmask16 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_pshuflw256_mask( - (__v16hi)__A, __imm, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shufflelo_epi16(__m128i __W, __mmask8 __U, __m128i __A, - const int __imm) { - return (__m128i)__builtin_ia32_pshuflw128_mask((__v8hi)__A, __imm, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shufflelo_epi16(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_pshuflw128_mask( - (__v8hi)__A, __imm, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_srai_epi16(__m256i __W, __mmask16 __U, __m256i __A, - const int __imm) { - return (__m256i)__builtin_ia32_psrawi256_mask((__v16hi)__A, __imm, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srai_epi16(__mmask16 __U, __m256i __A, const int __imm) { - return (__m256i)__builtin_ia32_psrawi256_mask( - (__v16hi)__A, __imm, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_srai_epi16(__m128i __W, __mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrawi128_mask((__v8hi)__A, __imm, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srai_epi16(__mmask8 __U, __m128i __A, const int __imm) { - return (__m128i)__builtin_ia32_psrawi128_mask( - (__v8hi)__A, __imm, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_slli_epi16(__m256i __W, __mmask16 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllwi256_mask((__v16hi)__A, __B, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_slli_epi16(__mmask16 __U, __m256i __A, int __B) { - return (__m256i)__builtin_ia32_psllwi256_mask( - (__v16hi)__A, __B, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_slli_epi16(__m128i __W, __mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllwi128_mask((__v8hi)__A, __B, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_slli_epi16(__mmask8 __U, __m128i __A, int __B) { - return (__m128i)__builtin_ia32_psllwi128_mask( - (__v8hi)__A, __B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epi8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 4, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epi8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 1, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epi8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 5, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epi8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 2, - (__mmask32)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epi16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epi16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epi16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epi16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 2, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epu8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epu8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epu8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epu8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 2, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epu16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epu16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epu16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epu16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 2, - (__mmask8)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epi8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epi8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epi8_mask(__m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 2, - (__mmask16)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpneq_epi16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 4, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmplt_epi16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 1, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpge_epi16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 5, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmple_epi16_mask(__m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 2, - (__mmask8)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mulhrs_epi16(__m256i __W, __mmask16 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmulhrsw256_mask((__v16hi)__X, (__v16hi)__Y, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mulhrs_epi16(__mmask16 __U, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_pmulhrsw256_mask( - (__v16hi)__X, (__v16hi)__Y, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mulhi_epu16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhuw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mulhi_epu16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhuw256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mulhi_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mulhi_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmulhw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mulhi_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mulhi_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mulhi_epu16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhuw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mulhi_epu16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmulhuw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mulhrs_epi16(__m128i __W, __mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmulhrsw128_mask((__v8hi)__X, (__v8hi)__Y, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mulhrs_epi16(__mmask8 __U, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_pmulhrsw128_mask( - (__v8hi)__X, (__v8hi)__Y, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mullo_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmullw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mullo_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmullw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mullo_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmullw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mullo_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmullw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi8_epi16(__m256i __W, __mmask16 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbw256_mask((__v16qi)__A, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi8_epi16(__mmask16 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovsxbw256_mask( - (__v16qi)__A, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi8_epi16(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbw128_mask((__v16qi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi8_epi16(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovsxbw128_mask( - (__v16qi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu8_epi16(__m256i __W, __mmask16 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbw256_mask((__v16qi)__A, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu8_epi16(__mmask16 __U, __m128i __A) { - return (__m256i)__builtin_ia32_pmovzxbw256_mask( - (__v16qi)__A, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu8_epi16(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbw128_mask((__v16qi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu8_epi16(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pmovzxbw128_mask( - (__v16qi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_avg_epu8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_avg_epu8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_avg_epu8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_avg_epu8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_avg_epu16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_avg_epu16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pavgw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_avg_epu16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_avg_epu16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pavgw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_add_epi8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_add_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_add_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_adds_epi8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_adds_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_adds_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_adds_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_adds_epu8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_adds_epu8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusb256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_adds_epu16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_adds_epu16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_paddusw256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_sub_epi8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sub_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sub_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_subs_epi8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_subs_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_subs_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_subs_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubsw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_subs_epu8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_subs_epu8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusb256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_subs_epu16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusw256_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_subs_epu16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psubusw256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_add_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_add_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpackhi_epi8(__m256i __W, __mmask32 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpckhbw256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhbw256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpackhi_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhbw128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhbw128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpackhi_epi16(__m256i __W, __mmask16 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpckhwd256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpackhi_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpckhwd256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpackhi_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhwd128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpackhi_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpckhwd128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpacklo_epi8(__m256i __W, __mmask32 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpcklbw256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklbw256_mask( - (__v32qi)__A, (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpacklo_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklbw128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklbw128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_unpacklo_epi16(__m256i __W, __mmask16 __U, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_punpcklwd256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_unpacklo_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_punpcklwd256_mask( - (__v16hi)__A, (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_unpacklo_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklwd128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_unpacklo_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_punpcklwd128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_pcmpeqb128_mask((__v16qi)__A, (__v16qi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epu8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__A, (__v16qi)__B, 0, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epu8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__A, (__v16qi)__B, 0, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epi8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_pcmpeqb128_mask((__v16qi)__A, (__v16qi)__B, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epu8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__A, (__v32qi)__B, 0, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_pcmpeqb256_mask((__v32qi)__A, (__v32qi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epu8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__A, (__v32qi)__B, 0, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epi8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_pcmpeqb256_mask((__v32qi)__A, (__v32qi)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epu16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__A, (__v8hi)__B, 0, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpeq_epi16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqw128_mask((__v8hi)__A, (__v8hi)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epu16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__A, (__v8hi)__B, 0, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpeq_epi16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpeqw128_mask((__v8hi)__A, (__v8hi)__B, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epu16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__A, (__v16hi)__B, 0, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpeq_epi16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_pcmpeqw256_mask((__v16hi)__A, (__v16hi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epu16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__A, (__v16hi)__B, 0, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpeq_epi16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_pcmpeqw256_mask((__v16hi)__A, (__v16hi)__B, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epu8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__A, (__v16qi)__B, 6, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_pcmpgtb128_mask((__v16qi)__A, (__v16qi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epu8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__A, (__v16qi)__B, 6, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epi8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_pcmpgtb128_mask((__v16qi)__A, (__v16qi)__B, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epu8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__A, (__v32qi)__B, 6, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_pcmpgtb256_mask((__v32qi)__A, (__v32qi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epu8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__A, (__v32qi)__B, 6, - __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epi8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_pcmpgtb256_mask((__v32qi)__A, (__v32qi)__B, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epu16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__A, (__v8hi)__B, 6, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmpgt_epi16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtw128_mask((__v8hi)__A, (__v8hi)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epu16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__A, (__v8hi)__B, 6, - __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpgt_epi16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_pcmpgtw128_mask((__v8hi)__A, (__v8hi)__B, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epu16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__A, (__v16hi)__B, 6, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpgt_epi16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_pcmpgtw256_mask((__v16hi)__A, (__v16hi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epu16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__A, (__v16hi)__B, 6, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpgt_epi16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_pcmpgtw256_mask((__v16hi)__A, (__v16hi)__B, - __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testn_epi8_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ptestnmb128((__v16qi)__A, (__v16qi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_testn_epi8_mask(__mmask16 __U, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_ptestnmb128((__v16qi)__A, (__v16qi)__B, __U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testn_epi8_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ptestnmb256((__v32qi)__A, (__v32qi)__B, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_testn_epi8_mask(__mmask32 __U, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_ptestnmb256((__v32qi)__A, (__v32qi)__B, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_testn_epi16_mask(__m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmw128((__v8hi)__A, (__v8hi)__B, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_testn_epi16_mask(__mmask8 __U, __m128i __A, __m128i __B) { - return (__mmask8)__builtin_ia32_ptestnmw128((__v8hi)__A, (__v8hi)__B, __U); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_testn_epi16_mask(__m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ptestnmw256((__v16hi)__A, (__v16hi)__B, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_testn_epi16_mask(__mmask16 __U, __m256i __A, __m256i __B) { - return (__mmask16)__builtin_ia32_ptestnmw256((__v16hi)__A, (__v16hi)__B, __U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shuffle_epi8(__m256i __W, __mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pshufb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shuffle_epi8(__mmask32 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pshufb256_mask((__v32qi)__A, (__v32qi)__B, - (__v32qi)_mm256_setzero_si256(), - (__mmask32)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_shuffle_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pshufb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shuffle_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pshufb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_packs_epi16(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packsswb256_mask( - (__v16hi)__A, (__v16hi)__B, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_packs_epi16(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packsswb256_mask((__v16hi)__A, (__v16hi)__B, - (__v32qi)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_packs_epi16(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packsswb128_mask( - (__v8hi)__A, (__v8hi)__B, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_packs_epi16(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packsswb128_mask((__v8hi)__A, (__v8hi)__B, - (__v16qi)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_packus_epi16(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packuswb256_mask( - (__v16hi)__A, (__v16hi)__B, (__v32qi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_packus_epi16(__m256i __W, __mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packuswb256_mask((__v16hi)__A, (__v16hi)__B, - (__v32qi)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_packus_epi16(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packuswb128_mask( - (__v8hi)__A, (__v8hi)__B, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_packus_epi16(__m128i __W, __mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packuswb128_mask((__v8hi)__A, (__v8hi)__B, - (__v16qi)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_abs_epi8(__m256i __W, __mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsb256_mask((__v32qi)__A, (__v32qi)__W, - (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_abs_epi8(__mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsb256_mask( - (__v32qi)__A, (__v32qi)_mm256_setzero_si256(), (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_abs_epi8(__m128i __W, __mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsb128_mask((__v16qi)__A, (__v16qi)__W, - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_abs_epi8(__mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsb128_mask( - (__v16qi)__A, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_abs_epi16(__m256i __W, __mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsw256_mask((__v16hi)__A, (__v16hi)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_abs_epi16(__mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_pabsw256_mask( - (__v16hi)__A, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_abs_epi16(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsw128_mask((__v8hi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_abs_epi16(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_pabsw128_mask( - (__v8hi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epu8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 4, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epu8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 1, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epu8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 5, - (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epu8_mask(__m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 2, - (__mmask32)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpneq_epu16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 4, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmplt_epu16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 1, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmpge_epu16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 5, - (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmple_epu16_mask(__m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 2, - (__mmask16)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_storeu_epi16(void *__P, __m256i __A) { - *(__v16hi_u *)__P = (__v16hi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_storeu_epi16(void *__P, __mmask16 __U, __m256i __A) { - __builtin_ia32_storedquhi256_mask((short *)__P, (__v16hi)__A, (__mmask16)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_storeu_epi16(void *__P, __m128i __A) { - *(__v8hi_u *)__P = (__v8hi_u)__A; -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_storeu_epi16(void *__P, __mmask8 __U, __m128i __A) { - __builtin_ia32_storedquhi128_mask((short *)__P, (__v8hi)__A, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_adds_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_subs_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_subs_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_subs_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_subs_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubsw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_subs_epu8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_subs_epu8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_subs_epu16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_subs_epu16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubusw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srl_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srl_epi16(__mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psrlw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srl_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srl_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sra_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sra_epi16(__mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psraw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sra_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sra_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psraw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_adds_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_adds_epu8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_adds_epu8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_adds_epu16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_adds_epu16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddusw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sub_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sub_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psubw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_adds_epi8(__m128i __W, __mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsb128_mask((__v16qi)__A, (__v16qi)__B, - (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_adds_epi8(__mmask16 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_paddsb128_mask( - (__v16qi)__A, (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi16_epi8(__m128i __A) { - - return (__m128i)__builtin_ia32_pmovwb128_mask( - (__v8hi)__A, (__v16qi)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi16_storeu_epi8(void *__P, __mmask8 __M, __m128i __A) { - __builtin_ia32_pmovwb128mem_mask((unsigned long long *)__P, (__v8hi)__A, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi16_epi8(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovwb128_mask((__v8hi)__A, (__v16qi)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi16_epi8(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_pmovwb128_mask( - (__v8hi)__A, (__v16qi)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srav_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrav16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srav_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrav16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srav_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrav16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srav_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrav8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srav_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrav8hi_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srav_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrav8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_srlv_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrlv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_srlv_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrlv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_srlv_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psrlv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_srlv_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlv8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_srlv_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlv8hi_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_srlv_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psrlv8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_sllv_epi16(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psllv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)-1); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sllv_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psllv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sllv_epi16(__mmask16 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_psllv16hi_mask((__v16hi)__A, (__v16hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sllv_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllv8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sllv_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllv8hi_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sllv_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllv8hi_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_sll_epi16(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllw128_mask((__v8hi)__A, (__v8hi)__B, - (__v8hi)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_sll_epi16(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_psllw128_mask( - (__v8hi)__A, (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_sll_epi16(__m256i __W, __mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_sll_epi16(__mmask16 __U, __m256i __A, __m128i __B) { - return (__m256i)__builtin_ia32_psllw256_mask((__v16hi)__A, (__v8hi)__B, - (__v16hi)_mm256_setzero_si256(), - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_packus_epi32(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packusdw256_mask( - (__v8si)__A, (__v8si)__B, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_packus_epi32(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packusdw256_mask((__v8si)__A, (__v8si)__B, - (__v16hi)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_packus_epi32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packusdw128_mask( - (__v4si)__A, (__v4si)__B, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_packus_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packusdw128_mask((__v4si)__A, (__v4si)__B, - (__v8hi)__W, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_packs_epi32(__mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packssdw256_mask( - (__v8si)__A, (__v8si)__B, (__v16hi)_mm256_setzero_si256(), __M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_packs_epi32(__m256i __W, __mmask16 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_packssdw256_mask((__v8si)__A, (__v8si)__B, - (__v16hi)__W, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_packs_epi32(__mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packssdw128_mask( - (__v4si)__A, (__v4si)__B, (__v8hi)_mm_setzero_si128(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_packs_epi32(__m128i __W, __mmask8 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_packssdw128_mask((__v4si)__A, (__v4si)__B, - (__v8hi)__W, __M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epu8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epu8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epu8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epu8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_ucmpb128_mask((__v16qi)__X, (__v16qi)__Y, 2, - (__mmask16)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epu16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epu16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epu16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epu16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_ucmpw128_mask((__v8hi)__X, (__v8hi)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epi8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epi8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epi8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epi8_mask(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__mmask16)__builtin_ia32_cmpb128_mask((__v16qi)__X, (__v16qi)__Y, 2, - (__mmask16)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpneq_epi16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 4, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmplt_epi16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 1, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmpge_epi16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 5, - (__mmask8)__M); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cmple_epi16_mask(__mmask8 __M, __m128i __X, __m128i __Y) { - return (__mmask8)__builtin_ia32_cmpw128_mask((__v8hi)__X, (__v8hi)__Y, 2, - (__mmask8)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epu8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 4, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epu8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 1, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epu8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 5, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epu8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_ucmpb256_mask((__v32qi)__X, (__v32qi)__Y, 2, - (__mmask32)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epu16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epu16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epu16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epu16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_ucmpw256_mask((__v16hi)__X, (__v16hi)__Y, 2, - (__mmask16)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epi8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 4, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epi8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 1, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epi8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 5, - (__mmask32)__M); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epi8_mask(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__mmask32)__builtin_ia32_cmpb256_mask((__v32qi)__X, (__v32qi)__Y, 2, - (__mmask32)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpneq_epi16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 4, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmplt_epi16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 1, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmpge_epi16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 5, - (__mmask16)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cmple_epi16_mask(__mmask16 __M, __m256i __X, __m256i __Y) { - return (__mmask16)__builtin_ia32_cmpw256_mask((__v16hi)__X, (__v16hi)__Y, 2, - (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttpd_epi64(__m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2qq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttpd_epi64(__m256i __W, __mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2qq256_mask((__v4df)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttpd_epi64(__mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2qq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttpd_epi64(__m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2qq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttpd_epi64(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2qq128_mask((__v2df)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttpd_epi64(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2qq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttpd_epu64(__m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2uqq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttpd_epu64(__m256i __W, __mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2uqq256_mask((__v4df)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttpd_epu64(__mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvttpd2uqq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttpd_epu64(__m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2uqq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttpd_epu64(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2uqq128_mask((__v2df)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttpd_epu64(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvttpd2uqq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtpd_epi64(__m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2qq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtpd_epi64(__m256i __W, __mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2qq256_mask((__v4df)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtpd_epi64(__mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2qq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_epi64(__m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2qq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtpd_epi64(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2qq128_mask((__v2df)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtpd_epi64(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2qq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtpd_epu64(__m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2uqq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtpd_epu64(__m256i __W, __mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2uqq256_mask((__v4df)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtpd_epu64(__mmask8 __U, __m256d __A) { - return (__m256i)__builtin_ia32_cvtpd2uqq256_mask( - (__v4df)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtpd_epu64(__m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2uqq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtpd_epu64(__m128i __W, __mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2uqq128_mask((__v2df)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtpd_epu64(__mmask8 __U, __m128d __A) { - return (__m128i)__builtin_ia32_cvtpd2uqq128_mask( - (__v2df)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttps_epi64(__m128 __A) { - return (__m256i)__builtin_ia32_cvttps2qq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttps_epi64(__m256i __W, __mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvttps2qq256_mask((__v4sf)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttps_epi64(__mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvttps2qq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttps_epi64(__m128 __A) { - return (__m128i)__builtin_ia32_cvttps2qq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttps_epi64(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2qq128_mask((__v4sf)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttps_epi64(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2qq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvttps_epu64(__m128 __A) { - return (__m256i)__builtin_ia32_cvttps2uqq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvttps_epu64(__m256i __W, __mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvttps2uqq256_mask((__v4sf)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvttps_epu64(__mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvttps2uqq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvttps_epu64(__m128 __A) { - return (__m128i)__builtin_ia32_cvttps2uqq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvttps_epu64(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2uqq128_mask((__v4sf)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvttps_epu64(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvttps2uqq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_f64x2(__m128d __A) { - return (__m256d)__builtin_ia32_broadcastf64x2_256_mask( - (__v2df)__A, (__v4df)_mm256_undefined_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_f64x2(__m256d __O, __mmask8 __M, __m128d __A) { - return (__m256d)__builtin_ia32_broadcastf64x2_256_mask((__v2df)__A, - (__v4df)__O, __M); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_f64x2(__mmask8 __M, __m128d __A) { - return (__m256d)__builtin_ia32_broadcastf64x2_256_mask( - (__v2df)__A, (__v4df)_mm256_setzero_ps(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_i64x2(__m128i __A) { - return (__m256i)__builtin_ia32_broadcasti64x2_256_mask( - (__v2di)__A, (__v4di)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_i64x2(__m256i __O, __mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti64x2_256_mask((__v2di)__A, - (__v4di)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_i64x2(__mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti64x2_256_mask( - (__v2di)__A, (__v4di)_mm256_setzero_si256(), __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_f32x2(__m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x2_256_mask( - (__v4sf)__A, (__v8sf)_mm256_undefined_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_f32x2(__m256 __O, __mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x2_256_mask((__v4sf)__A, - (__v8sf)__O, __M); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_f32x2(__mmask8 __M, __m128 __A) { - return (__m256)__builtin_ia32_broadcastf32x2_256_mask( - (__v4sf)__A, (__v8sf)_mm256_setzero_ps(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_broadcast_i32x2(__m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x2_256_mask( - (__v4si)__A, (__v8si)_mm256_undefined_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_broadcast_i32x2(__m256i __O, __mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x2_256_mask((__v4si)__A, - (__v8si)__O, __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_broadcast_i32x2(__mmask8 __M, __m128i __A) { - return (__m256i)__builtin_ia32_broadcasti32x2_256_mask( - (__v4si)__A, (__v8si)_mm256_setzero_si256(), __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_broadcast_i32x2(__m128i __A) { - return (__m128i)__builtin_ia32_broadcasti32x2_128_mask( - (__v4si)__A, (__v4si)_mm_undefined_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_broadcast_i32x2(__m128i __O, __mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_broadcasti32x2_128_mask((__v4si)__A, - (__v4si)__O, __M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_broadcast_i32x2(__mmask8 __M, __m128i __A) { - return (__m128i)__builtin_ia32_broadcasti32x2_128_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), __M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mullo_epi64(__m256i __A, __m256i __B) { - return (__m256i)((__v4du)__A * (__v4du)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_mullo_epi64(__m256i __W, __mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmullq256_mask((__v4di)__A, (__v4di)__B, - (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_mullo_epi64(__mmask8 __U, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_pmullq256_mask( - (__v4di)__A, (__v4di)__B, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mullo_epi64(__m128i __A, __m128i __B) { - return (__m128i)((__v2du)__A * (__v2du)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_mullo_epi64(__m128i __W, __mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmullq128_mask((__v2di)__A, (__v2di)__B, - (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_mullo_epi64(__mmask8 __U, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_pmullq128_mask( - (__v2di)__A, (__v2di)__B, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_andnot_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andnpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_andnot_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andnpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_andnot_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andnpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_andnot_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andnpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_andnot_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andnps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_andnot_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andnps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_andnot_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_andnps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_andnot_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_andnps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_epi64(__m128 __A) { - return (__m256i)__builtin_ia32_cvtps2qq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_epi64(__m256i __W, __mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvtps2qq256_mask((__v4sf)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_epi64(__mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvtps2qq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_epi64(__m128 __A) { - return (__m128i)__builtin_ia32_cvtps2qq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_epi64(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2qq128_mask((__v4sf)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_epi64(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2qq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_epu64(__m128 __A) { - return (__m256i)__builtin_ia32_cvtps2uqq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtps_epu64(__m256i __W, __mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvtps2uqq256_mask((__v4sf)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtps_epu64(__mmask8 __U, __m128 __A) { - return (__m256i)__builtin_ia32_cvtps2uqq256_mask( - (__v4sf)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_epu64(__m128 __A) { - return (__m128i)__builtin_ia32_cvtps2uqq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtps_epu64(__m128i __W, __mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2uqq128_mask((__v4sf)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtps_epu64(__mmask8 __U, __m128 __A) { - return (__m128i)__builtin_ia32_cvtps2uqq128_mask( - (__v4sf)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi64_ps(__m256i __A) { - return (__m128)__builtin_ia32_cvtqq2ps256_mask( - (__v4di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_ps(__m128 __W, __mmask8 __U, __m256i __A) { - return (__m128)__builtin_ia32_cvtqq2ps256_mask((__v4di)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi64_ps(__mmask8 __U, __m256i __A) { - return (__m128)__builtin_ia32_cvtqq2ps256_mask( - (__v4di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi64_ps(__m128i __A) { - return (__m128)__builtin_ia32_cvtqq2ps128_mask( - (__v2di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_ps(__m128 __W, __mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtqq2ps128_mask((__v2di)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi64_ps(__mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtqq2ps128_mask( - (__v2di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu64_ps(__m256i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps256_mask( - (__v4di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu64_ps(__m128 __W, __mmask8 __U, __m256i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps256_mask((__v4di)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu64_ps(__mmask8 __U, __m256i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps256_mask( - (__v4di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu64_ps(__m128i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps128_mask( - (__v2di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu64_ps(__m128 __W, __mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps128_mask((__v2di)__A, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu64_ps(__mmask8 __U, __m128i __A) { - return (__m128)__builtin_ia32_cvtuqq2ps128_mask( - (__v2di)__A, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepi64_pd(__m256i __A) { - return (__m256d)__builtin_ia32_cvtqq2pd256_mask( - (__v4di)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepi64_pd(__m256d __W, __mmask8 __U, __m256i __A) { - return (__m256d)__builtin_ia32_cvtqq2pd256_mask((__v4di)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepi64_pd(__mmask8 __U, __m256i __A) { - return (__m256d)__builtin_ia32_cvtqq2pd256_mask( - (__v4di)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepi64_pd(__m128i __A) { - return (__m128d)__builtin_ia32_cvtqq2pd128_mask( - (__v2di)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepi64_pd(__m128d __W, __mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtqq2pd128_mask((__v2di)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepi64_pd(__mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtqq2pd128_mask( - (__v2di)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtepu64_pd(__m256i __A) { - return (__m256d)__builtin_ia32_cvtuqq2pd256_mask( - (__v4di)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtepu64_pd(__m256d __W, __mmask8 __U, __m256i __A) { - return (__m256d)__builtin_ia32_cvtuqq2pd256_mask((__v4di)__A, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtepu64_pd(__mmask8 __U, __m256i __A) { - return (__m256d)__builtin_ia32_cvtuqq2pd256_mask( - (__v4di)__A, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_and_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_and_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_andpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_and_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_and_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_andpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_and_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_and_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_andps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_and_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_andps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_and_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_andps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtepu64_pd(__m128i __A) { - return (__m128d)__builtin_ia32_cvtuqq2pd128_mask( - (__v2di)__A, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtepu64_pd(__m128d __W, __mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtuqq2pd128_mask((__v2di)__A, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtepu64_pd(__mmask8 __U, __m128i __A) { - return (__m128d)__builtin_ia32_cvtuqq2pd128_mask( - (__v2di)__A, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_xor_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_xorpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_xor_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_xorpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_xor_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_xorpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_xor_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_xorpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_xor_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_xorps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_xor_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_xorps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_xor_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_xorps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_xor_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_xorps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_or_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_orpd256_mask((__v4df)__A, (__v4df)__B, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_or_pd(__mmask8 __U, __m256d __A, __m256d __B) { - return (__m256d)__builtin_ia32_orpd256_mask( - (__v4df)__A, (__v4df)__B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_or_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_orpd128_mask((__v2df)__A, (__v2df)__B, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_or_pd(__mmask8 __U, __m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_orpd128_mask( - (__v2df)__A, (__v2df)__B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_or_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_orps256_mask((__v8sf)__A, (__v8sf)__B, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_or_ps(__mmask8 __U, __m256 __A, __m256 __B) { - return (__m256)__builtin_ia32_orps256_mask( - (__v8sf)__A, (__v8sf)__B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_or_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_orps128_mask((__v4sf)__A, (__v4sf)__B, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_or_ps(__mmask8 __U, __m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_orps128_mask( - (__v4sf)__A, (__v4sf)__B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movm_epi32(__mmask8 __A) { - return (__m128i)__builtin_ia32_cvtmask2d128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movm_epi32(__mmask8 __A) { - return (__m256i)__builtin_ia32_cvtmask2d256(__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movm_epi64(__mmask8 __A) { - return (__m128i)__builtin_ia32_cvtmask2q128(__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movm_epi64(__mmask8 __A) { - return (__m256i)__builtin_ia32_cvtmask2q256(__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movepi32_mask(__m128i __A) { - return (__mmask8)__builtin_ia32_cvtd2mask128((__v4si)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movepi32_mask(__m256i __A) { - return (__mmask8)__builtin_ia32_cvtd2mask256((__v8si)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_movepi64_mask(__m128i __A) { - return (__mmask8)__builtin_ia32_cvtq2mask128((__v2di)__A); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_movepi64_mask(__m256i __A) { - return (__mmask8)__builtin_ia32_cvtq2mask256((__v4di)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extractf64x2_pd(__m256d __A, const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_256_mask( - (__v4df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_extractf64x2_pd(__m128d __W, __mmask8 __U, __m256d __A, - const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_256_mask( - (__v4df)__A, __imm, (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_extractf64x2_pd(__mmask8 __U, __m256d __A, const int __imm) { - return (__m128d)__builtin_ia32_extractf64x2_256_mask( - (__v4df)__A, __imm, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_extracti64x2_epi64(__m256i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_256_mask( - (__v4di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_extracti64x2_epi64(__m128i __W, __mmask8 __U, __m256i __A, - const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_256_mask( - (__v4di)__A, __imm, (__v2di)__W, (__mmask8)__U); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_extracti64x2_epi64(__mmask8 __U, __m256i __A, const int __imm) { - return (__m128i)__builtin_ia32_extracti64x2_256_mask( - (__v4di)__A, __imm, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_reduce_pd(__m256d __A, int __B) { - return (__m256d)__builtin_ia32_reducepd256_mask( - (__v4df)__A, __B, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_reduce_pd(__m256d __W, __mmask8 __U, __m256d __A, int __B) { - return (__m256d)__builtin_ia32_reducepd256_mask((__v4df)__A, __B, (__v4df)__W, - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_reduce_pd(__mmask8 __U, __m256d __A, int __B) { - return (__m256d)__builtin_ia32_reducepd256_mask( - (__v4df)__A, __B, (__v4df)_mm256_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_pd(__m128d __A, int __B) { - return (__m128d)__builtin_ia32_reducepd128_mask( - (__v2df)__A, __B, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_reduce_pd(__m128d __W, __mmask8 __U, __m128d __A, int __B) { - return (__m128d)__builtin_ia32_reducepd128_mask((__v2df)__A, __B, (__v2df)__W, - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_pd(__mmask8 __U, __m128d __A, int __B) { - return (__m128d)__builtin_ia32_reducepd128_mask( - (__v2df)__A, __B, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_reduce_ps(__m256 __A, int __B) { - return (__m256)__builtin_ia32_reduceps256_mask( - (__v8sf)__A, __B, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_reduce_ps(__m256 __W, __mmask8 __U, __m256 __A, int __B) { - return (__m256)__builtin_ia32_reduceps256_mask((__v8sf)__A, __B, (__v8sf)__W, - (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_reduce_ps(__mmask8 __U, __m256 __A, int __B) { - return (__m256)__builtin_ia32_reduceps256_mask( - (__v8sf)__A, __B, (__v8sf)_mm256_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_reduce_ps(__m128 __A, int __B) { - return (__m128)__builtin_ia32_reduceps128_mask( - (__v4sf)__A, __B, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_reduce_ps(__m128 __W, __mmask8 __U, __m128 __A, int __B) { - return (__m128)__builtin_ia32_reduceps128_mask((__v4sf)__A, __B, (__v4sf)__W, - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_reduce_ps(__mmask8 __U, __m128 __A, int __B) { - return (__m128)__builtin_ia32_reduceps128_mask( - (__v4sf)__A, __B, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_range_pd(__m256d __A, __m256d __B, int __C) { - return (__m256d)__builtin_ia32_rangepd256_mask( - (__v4df)__A, (__v4df)__B, __C, (__v4df)_mm256_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_range_pd(__m256d __W, __mmask8 __U, __m256d __A, __m256d __B, - int __C) { - return (__m256d)__builtin_ia32_rangepd256_mask((__v4df)__A, (__v4df)__B, __C, - (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_range_pd(__mmask8 __U, __m256d __A, __m256d __B, int __C) { - return (__m256d)__builtin_ia32_rangepd256_mask((__v4df)__A, (__v4df)__B, __C, - (__v4df)_mm256_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_pd(__m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_rangepd128_mask( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)-1); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_range_pd(__m128d __W, __mmask8 __U, __m128d __A, __m128d __B, - int __C) { - return (__m128d)__builtin_ia32_rangepd128_mask((__v2df)__A, (__v2df)__B, __C, - (__v2df)__W, (__mmask8)__U); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_pd(__mmask8 __U, __m128d __A, __m128d __B, int __C) { - return (__m128d)__builtin_ia32_rangepd128_mask( - (__v2df)__A, (__v2df)__B, __C, (__v2df)_mm_setzero_pd(), (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_range_ps(__m256 __A, __m256 __B, int __C) { - return (__m256)__builtin_ia32_rangeps256_mask( - (__v8sf)__A, (__v8sf)__B, __C, (__v8sf)_mm256_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_range_ps(__m256 __W, __mmask8 __U, __m256 __A, __m256 __B, - int __C) { - return (__m256)__builtin_ia32_rangeps256_mask((__v8sf)__A, (__v8sf)__B, __C, - (__v8sf)__W, (__mmask8)__U); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_range_ps(__mmask8 __U, __m256 __A, __m256 __B, int __C) { - return (__m256)__builtin_ia32_rangeps256_mask((__v8sf)__A, (__v8sf)__B, __C, - (__v8sf)_mm256_setzero_ps(), - (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_range_ps(__m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangeps128_mask( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)-1); -} - -extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_range_ps(__m128 __W, __mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangeps128_mask((__v4sf)__A, (__v4sf)__B, __C, - (__v4sf)__W, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_range_ps(__mmask8 __U, __m128 __A, __m128 __B, int __C) { - return (__m128)__builtin_ia32_rangeps128_mask( - (__v4sf)__A, (__v4sf)__B, __C, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fpclass_pd_mask(__mmask8 __U, __m256d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd256_mask((__v4df)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fpclass_pd_mask(__m256d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd256_mask((__v4df)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_fpclass_ps_mask(__mmask8 __U, __m256 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassps256_mask((__v8sf)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fpclass_ps_mask(__m256 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassps256_mask((__v8sf)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fpclass_pd_mask(__mmask8 __U, __m128d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd128_mask((__v2df)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fpclass_pd_mask(__m128d __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclasspd128_mask((__v2df)__A, __imm, - (__mmask8)-1); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_fpclass_ps_mask(__mmask8 __U, __m128 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassps128_mask((__v4sf)__A, __imm, __U); -} - -extern __inline __mmask8 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fpclass_ps_mask(__m128 __A, const int __imm) { - return (__mmask8)__builtin_ia32_fpclassps128_mask((__v4sf)__A, __imm, - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_inserti64x2(__m256i __A, __m128i __B, const int __imm) { - return (__m256i)__builtin_ia32_inserti64x2_256_mask( - (__v4di)__A, (__v2di)__B, __imm, (__v4di)_mm256_setzero_si256(), - (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_inserti64x2(__m256i __W, __mmask8 __U, __m256i __A, __m128i __B, - const int __imm) { - return (__m256i)__builtin_ia32_inserti64x2_256_mask( - (__v4di)__A, (__v2di)__B, __imm, (__v4di)__W, (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_inserti64x2(__mmask8 __U, __m256i __A, __m128i __B, - const int __imm) { - return (__m256i)__builtin_ia32_inserti64x2_256_mask( - (__v4di)__A, (__v2di)__B, __imm, (__v4di)_mm256_setzero_si256(), - (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_insertf64x2(__m256d __A, __m128d __B, const int __imm) { - return (__m256d)__builtin_ia32_insertf64x2_256_mask( - (__v4df)__A, (__v2df)__B, __imm, (__v4df)_mm256_setzero_pd(), - (__mmask8)-1); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_insertf64x2(__m256d __W, __mmask8 __U, __m256d __A, __m128d __B, - const int __imm) { - return (__m256d)__builtin_ia32_insertf64x2_256_mask( - (__v4df)__A, (__v2df)__B, __imm, (__v4df)__W, (__mmask8)__U); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_insertf64x2(__mmask8 __U, __m256d __A, __m128d __B, - const int __imm) { - return (__m256d)__builtin_ia32_insertf64x2_256_mask( - (__v4df)__A, (__v2df)__B, __imm, (__v4df)_mm256_setzero_pd(), - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_madd52lo_epu64(__m512i __X, __m512i __Y, __m512i __Z) { - return (__m512i)__builtin_ia32_vpmadd52luq512_mask((__v8di)__X, (__v8di)__Y, - (__v8di)__Z, (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_madd52hi_epu64(__m512i __X, __m512i __Y, __m512i __Z) { - return (__m512i)__builtin_ia32_vpmadd52huq512_mask((__v8di)__X, (__v8di)__Y, - (__v8di)__Z, (__mmask8)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_madd52lo_epu64(__m512i __W, __mmask8 __M, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_vpmadd52luq512_mask( - (__v8di)__W, (__v8di)__X, (__v8di)__Y, (__mmask8)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_madd52hi_epu64(__m512i __W, __mmask8 __M, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_vpmadd52huq512_mask( - (__v8di)__W, (__v8di)__X, (__v8di)__Y, (__mmask8)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_madd52lo_epu64(__mmask8 __M, __m512i __X, __m512i __Y, - __m512i __Z) { - return (__m512i)__builtin_ia32_vpmadd52luq512_maskz( - (__v8di)__X, (__v8di)__Y, (__v8di)__Z, (__mmask8)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_madd52hi_epu64(__mmask8 __M, __m512i __X, __m512i __Y, - __m512i __Z) { - return (__m512i)__builtin_ia32_vpmadd52huq512_maskz( - (__v8di)__X, (__v8di)__Y, (__v8di)__Z, (__mmask8)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_madd52lo_epu64(__m128i __X, __m128i __Y, __m128i __Z) { - return (__m128i)__builtin_ia32_vpmadd52luq128_mask((__v2di)__X, (__v2di)__Y, - (__v2di)__Z, (__mmask8)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_madd52hi_epu64(__m128i __X, __m128i __Y, __m128i __Z) { - return (__m128i)__builtin_ia32_vpmadd52huq128_mask((__v2di)__X, (__v2di)__Y, - (__v2di)__Z, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_madd52lo_epu64(__m256i __X, __m256i __Y, __m256i __Z) { - return (__m256i)__builtin_ia32_vpmadd52luq256_mask((__v4di)__X, (__v4di)__Y, - (__v4di)__Z, (__mmask8)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_madd52hi_epu64(__m256i __X, __m256i __Y, __m256i __Z) { - return (__m256i)__builtin_ia32_vpmadd52huq256_mask((__v4di)__X, (__v4di)__Y, - (__v4di)__Z, (__mmask8)-1); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_madd52lo_epu64(__m128i __W, __mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_vpmadd52luq128_mask( - (__v2di)__W, (__v2di)__X, (__v2di)__Y, (__mmask8)__M); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_madd52hi_epu64(__m128i __W, __mmask8 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_vpmadd52huq128_mask( - (__v2di)__W, (__v2di)__X, (__v2di)__Y, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_madd52lo_epu64(__m256i __W, __mmask8 __M, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_vpmadd52luq256_mask( - (__v4di)__W, (__v4di)__X, (__v4di)__Y, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_madd52hi_epu64(__m256i __W, __mmask8 __M, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_vpmadd52huq256_mask( - (__v4di)__W, (__v4di)__X, (__v4di)__Y, (__mmask8)__M); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_madd52lo_epu64(__mmask8 __M, __m128i __X, __m128i __Y, __m128i __Z) { - return (__m128i)__builtin_ia32_vpmadd52luq128_maskz( - (__v2di)__X, (__v2di)__Y, (__v2di)__Z, (__mmask8)__M); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_madd52hi_epu64(__mmask8 __M, __m128i __X, __m128i __Y, __m128i __Z) { - return (__m128i)__builtin_ia32_vpmadd52huq128_maskz( - (__v2di)__X, (__v2di)__Y, (__v2di)__Z, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_madd52lo_epu64(__mmask8 __M, __m256i __X, __m256i __Y, - __m256i __Z) { - return (__m256i)__builtin_ia32_vpmadd52luq256_maskz( - (__v4di)__X, (__v4di)__Y, (__v4di)__Z, (__mmask8)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_madd52hi_epu64(__mmask8 __M, __m256i __X, __m256i __Y, - __m256i __Z) { - return (__m256i)__builtin_ia32_vpmadd52huq256_maskz( - (__v4di)__X, (__v4di)__Y, (__v4di)__Z, (__mmask8)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_multishift_epi64_epi8(__m512i __W, __mmask64 __M, __m512i __X, - __m512i __Y) { - return (__m512i)__builtin_ia32_vpmultishiftqb512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_multishift_epi64_epi8(__mmask64 __M, __m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_vpmultishiftqb512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_multishift_epi64_epi8(__m512i __X, __m512i __Y) { - return (__m512i)__builtin_ia32_vpmultishiftqb512_mask( - (__v64qi)__X, (__v64qi)__Y, (__v64qi)_mm512_undefined_epi32(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutexvar_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_permvarqi512_mask( - (__v64qi)__B, (__v64qi)__A, (__v64qi)_mm512_undefined_epi32(), - (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutexvar_epi8(__mmask64 __M, __m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_permvarqi512_mask( - (__v64qi)__B, (__v64qi)__A, (__v64qi)_mm512_setzero_si512(), - (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutexvar_epi8(__m512i __W, __mmask64 __M, __m512i __A, - __m512i __B) { - return (__m512i)__builtin_ia32_permvarqi512_mask( - (__v64qi)__B, (__v64qi)__A, (__v64qi)__W, (__mmask64)__M); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_permutex2var_epi8(__m512i __A, __m512i __I, __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varqi512_mask( - (__v64qi)__I, (__v64qi)__A, (__v64qi)__B, (__mmask64)-1); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_permutex2var_epi8(__m512i __A, __mmask64 __U, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varqi512_mask( - (__v64qi)__I, (__v64qi)__A, (__v64qi)__B, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask2_permutex2var_epi8(__m512i __A, __m512i __I, __mmask64 __U, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermi2varqi512_mask( - (__v64qi)__A, (__v64qi)__I, (__v64qi)__B, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_permutex2var_epi8(__mmask64 __U, __m512i __A, __m512i __I, - __m512i __B) { - return (__m512i)__builtin_ia32_vpermt2varqi512_maskz( - (__v64qi)__I, (__v64qi)__A, (__v64qi)__B, (__mmask64)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_multishift_epi64_epi8(__m256i __W, __mmask32 __M, __m256i __X, - __m256i __Y) { - return (__m256i)__builtin_ia32_vpmultishiftqb256_mask( - (__v32qi)__X, (__v32qi)__Y, (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_multishift_epi64_epi8(__mmask32 __M, __m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_vpmultishiftqb256_mask( - (__v32qi)__X, (__v32qi)__Y, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_multishift_epi64_epi8(__m256i __X, __m256i __Y) { - return (__m256i)__builtin_ia32_vpmultishiftqb256_mask( - (__v32qi)__X, (__v32qi)__Y, (__v32qi)_mm256_undefined_si256(), - (__mmask32)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_multishift_epi64_epi8(__m128i __W, __mmask16 __M, __m128i __X, - __m128i __Y) { - return (__m128i)__builtin_ia32_vpmultishiftqb128_mask( - (__v16qi)__X, (__v16qi)__Y, (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_multishift_epi64_epi8(__mmask16 __M, __m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_vpmultishiftqb128_mask( - (__v16qi)__X, (__v16qi)__Y, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_multishift_epi64_epi8(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_vpmultishiftqb128_mask( - (__v16qi)__X, (__v16qi)__Y, (__v16qi)_mm_undefined_si128(), - (__mmask16)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutexvar_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_permvarqi256_mask( - (__v32qi)__B, (__v32qi)__A, (__v32qi)_mm256_undefined_si256(), - (__mmask32)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutexvar_epi8(__mmask32 __M, __m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_permvarqi256_mask( - (__v32qi)__B, (__v32qi)__A, (__v32qi)_mm256_setzero_si256(), - (__mmask32)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutexvar_epi8(__m256i __W, __mmask32 __M, __m256i __A, - __m256i __B) { - return (__m256i)__builtin_ia32_permvarqi256_mask( - (__v32qi)__B, (__v32qi)__A, (__v32qi)__W, (__mmask32)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutexvar_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_permvarqi128_mask( - (__v16qi)__B, (__v16qi)__A, (__v16qi)_mm_undefined_si128(), - (__mmask16)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutexvar_epi8(__mmask16 __M, __m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_permvarqi128_mask( - (__v16qi)__B, (__v16qi)__A, (__v16qi)_mm_setzero_si128(), (__mmask16)__M); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutexvar_epi8(__m128i __W, __mmask16 __M, __m128i __A, - __m128i __B) { - return (__m128i)__builtin_ia32_permvarqi128_mask( - (__v16qi)__B, (__v16qi)__A, (__v16qi)__W, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permutex2var_epi8(__m256i __A, __m256i __I, __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varqi256_mask( - (__v32qi)__I, (__v32qi)__A, (__v32qi)__B, (__mmask32)-1); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_permutex2var_epi8(__m256i __A, __mmask32 __U, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varqi256_mask( - (__v32qi)__I, (__v32qi)__A, (__v32qi)__B, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask2_permutex2var_epi8(__m256i __A, __m256i __I, __mmask32 __U, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermi2varqi256_mask( - (__v32qi)__A, (__v32qi)__I, (__v32qi)__B, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_permutex2var_epi8(__mmask32 __U, __m256i __A, __m256i __I, - __m256i __B) { - return (__m256i)__builtin_ia32_vpermt2varqi256_maskz( - (__v32qi)__I, (__v32qi)__A, (__v32qi)__B, (__mmask32)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permutex2var_epi8(__m128i __A, __m128i __I, __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varqi128_mask( - (__v16qi)__I, (__v16qi)__A, (__v16qi)__B, (__mmask16)-1); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_permutex2var_epi8(__m128i __A, __mmask16 __U, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varqi128_mask( - (__v16qi)__I, (__v16qi)__A, (__v16qi)__B, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask2_permutex2var_epi8(__m128i __A, __m128i __I, __mmask16 __U, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermi2varqi128_mask( - (__v16qi)__A, (__v16qi)__I, (__v16qi)__B, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_permutex2var_epi8(__mmask16 __U, __m128i __A, __m128i __I, - __m128i __B) { - return (__m128i)__builtin_ia32_vpermt2varqi128_maskz( - (__v16qi)__I, (__v16qi)__A, (__v16qi)__B, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_4fmadd_ps(__m512 __A, __m512 __B, __m512 __C, __m512 __D, __m512 __E, - __m128 *__F) { - return (__m512)__builtin_ia32_4fmaddps((__v16sf)__B, (__v16sf)__C, - (__v16sf)__D, (__v16sf)__E, - (__v16sf)__A, (const __v4sf *)__F); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_4fmadd_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C, - __m512 __D, __m512 __E, __m128 *__F) { - return (__m512)__builtin_ia32_4fmaddps_mask( - (__v16sf)__B, (__v16sf)__C, (__v16sf)__D, (__v16sf)__E, (__v16sf)__A, - (const __v4sf *)__F, (__v16sf)__A, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_4fmadd_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C, - __m512 __D, __m512 __E, __m128 *__F) { - return (__m512)__builtin_ia32_4fmaddps_mask( - (__v16sf)__B, (__v16sf)__C, (__v16sf)__D, (__v16sf)__E, (__v16sf)__A, - (const __v4sf *)__F, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_4fmadd_ss(__m128 __A, __m128 __B, __m128 __C, __m128 __D, __m128 __E, - __m128 *__F) { - return (__m128)__builtin_ia32_4fmaddss((__v4sf)__B, (__v4sf)__C, (__v4sf)__D, - (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_4fmadd_ss(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C, - __m128 __D, __m128 __E, __m128 *__F) { - return (__m128)__builtin_ia32_4fmaddss_mask( - (__v4sf)__B, (__v4sf)__C, (__v4sf)__D, (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F, (__v4sf)__A, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_4fmadd_ss(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C, - __m128 __D, __m128 __E, __m128 *__F) { - return (__m128)__builtin_ia32_4fmaddss_mask( - (__v4sf)__B, (__v4sf)__C, (__v4sf)__D, (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_4fnmadd_ps(__m512 __A, __m512 __B, __m512 __C, __m512 __D, - __m512 __E, __m128 *__F) { - return (__m512)__builtin_ia32_4fnmaddps((__v16sf)__B, (__v16sf)__C, - (__v16sf)__D, (__v16sf)__E, - (__v16sf)__A, (const __v4sf *)__F); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_4fnmadd_ps(__m512 __A, __mmask16 __U, __m512 __B, __m512 __C, - __m512 __D, __m512 __E, __m128 *__F) { - return (__m512)__builtin_ia32_4fnmaddps_mask( - (__v16sf)__B, (__v16sf)__C, (__v16sf)__D, (__v16sf)__E, (__v16sf)__A, - (const __v4sf *)__F, (__v16sf)__A, (__mmask16)__U); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_4fnmadd_ps(__mmask16 __U, __m512 __A, __m512 __B, __m512 __C, - __m512 __D, __m512 __E, __m128 *__F) { - return (__m512)__builtin_ia32_4fnmaddps_mask( - (__v16sf)__B, (__v16sf)__C, (__v16sf)__D, (__v16sf)__E, (__v16sf)__A, - (const __v4sf *)__F, (__v16sf)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_4fnmadd_ss(__m128 __A, __m128 __B, __m128 __C, __m128 __D, __m128 __E, - __m128 *__F) { - return (__m128)__builtin_ia32_4fnmaddss((__v4sf)__B, (__v4sf)__C, (__v4sf)__D, - (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_4fnmadd_ss(__m128 __A, __mmask8 __U, __m128 __B, __m128 __C, - __m128 __D, __m128 __E, __m128 *__F) { - return (__m128)__builtin_ia32_4fnmaddss_mask( - (__v4sf)__B, (__v4sf)__C, (__v4sf)__D, (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F, (__v4sf)__A, (__mmask8)__U); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_4fnmadd_ss(__mmask8 __U, __m128 __A, __m128 __B, __m128 __C, - __m128 __D, __m128 __E, __m128 *__F) { - return (__m128)__builtin_ia32_4fnmaddss_mask( - (__v4sf)__B, (__v4sf)__C, (__v4sf)__D, (__v4sf)__E, (__v4sf)__A, - (const __v4sf *)__F, (__v4sf)_mm_setzero_ps(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_4dpwssd_epi32(__m512i __A, __m512i __B, __m512i __C, __m512i __D, - __m512i __E, __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssd((__v16si)__B, (__v16si)__C, - (__v16si)__D, (__v16si)__E, - (__v16si)__A, (const __v4si *)__F); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_4dpwssd_epi32(__m512i __A, __mmask16 __U, __m512i __B, - __m512i __C, __m512i __D, __m512i __E, - __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssd_mask( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__v16si)__E, (__v16si)__A, - (const __v4si *)__F, (__v16si)__A, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_4dpwssd_epi32(__mmask16 __U, __m512i __A, __m512i __B, - __m512i __C, __m512i __D, __m512i __E, - __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssd_mask( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__v16si)__E, (__v16si)__A, - (const __v4si *)__F, (__v16si)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_4dpwssds_epi32(__m512i __A, __m512i __B, __m512i __C, __m512i __D, - __m512i __E, __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssds((__v16si)__B, (__v16si)__C, - (__v16si)__D, (__v16si)__E, - (__v16si)__A, (const __v4si *)__F); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_4dpwssds_epi32(__m512i __A, __mmask16 __U, __m512i __B, - __m512i __C, __m512i __D, __m512i __E, - __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssds_mask( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__v16si)__E, (__v16si)__A, - (const __v4si *)__F, (__v16si)__A, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_4dpwssds_epi32(__mmask16 __U, __m512i __A, __m512i __B, - __m512i __C, __m512i __D, __m512i __E, - __m128i *__F) { - return (__m512i)__builtin_ia32_vp4dpwssds_mask( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__v16si)__E, (__v16si)__A, - (const __v4si *)__F, (__v16si)_mm512_setzero_ps(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_popcnt_epi32(__m512i __A) { - return (__m512i)__builtin_ia32_vpopcountd_v16si((__v16si)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_popcnt_epi32(__m512i __W, __mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountd_v16si_mask( - (__v16si)__A, (__v16si)__W, (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_popcnt_epi32(__mmask16 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountd_v16si_mask( - (__v16si)__A, (__v16si)_mm512_setzero_si512(), (__mmask16)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_popcnt_epi64(__m512i __A) { - return (__m512i)__builtin_ia32_vpopcountq_v8di((__v8di)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_popcnt_epi64(__m512i __W, __mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountq_v8di_mask((__v8di)__A, (__v8di)__W, - (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_popcnt_epi64(__mmask8 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountq_v8di_mask( - (__v8di)__A, (__v8di)_mm512_setzero_si512(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdi_epi16(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshrd_v32hi((__v32hi)__A, (__v32hi)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdi_epi32(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshrd_v16si((__v16si)__A, (__v16si)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shrdi_epi32(__m512i __A, __mmask16 __B, __m512i __C, - __m512i __D, int __E) { - return (__m512i)__builtin_ia32_vpshrd_v16si_mask( - (__v16si)__C, (__v16si)__D, __E, (__v16si)__A, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shrdi_epi32(__mmask16 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshrd_v16si_mask( - (__v16si)__B, (__v16si)__C, __D, (__v16si)_mm512_setzero_si512(), - (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdi_epi64(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshrd_v8di((__v8di)__A, (__v8di)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shrdi_epi64(__m512i __A, __mmask8 __B, __m512i __C, __m512i __D, - int __E) { - return (__m512i)__builtin_ia32_vpshrd_v8di_mask((__v8di)__C, (__v8di)__D, __E, - (__v8di)__A, (__mmask8)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shrdi_epi64(__mmask8 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshrd_v8di_mask( - (__v8di)__B, (__v8di)__C, __D, (__v8di)_mm512_setzero_si512(), - (__mmask8)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldi_epi16(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshld_v32hi((__v32hi)__A, (__v32hi)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldi_epi32(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshld_v16si((__v16si)__A, (__v16si)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shldi_epi32(__m512i __A, __mmask16 __B, __m512i __C, - __m512i __D, int __E) { - return (__m512i)__builtin_ia32_vpshld_v16si_mask( - (__v16si)__C, (__v16si)__D, __E, (__v16si)__A, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shldi_epi32(__mmask16 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshld_v16si_mask( - (__v16si)__B, (__v16si)__C, __D, (__v16si)_mm512_setzero_si512(), - (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldi_epi64(__m512i __A, __m512i __B, int __C) { - return (__m512i)__builtin_ia32_vpshld_v8di((__v8di)__A, (__v8di)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shldi_epi64(__m512i __A, __mmask8 __B, __m512i __C, __m512i __D, - int __E) { - return (__m512i)__builtin_ia32_vpshld_v8di_mask((__v8di)__C, (__v8di)__D, __E, - (__v8di)__A, (__mmask8)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shldi_epi64(__mmask8 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshld_v8di_mask( - (__v8di)__B, (__v8di)__C, __D, (__v8di)_mm512_setzero_si512(), - (__mmask8)__A); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdv_epi16(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshrdv_v32hi((__v32hi)__A, (__v32hi)__B, - (__v32hi)__C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdv_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshrdv_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shrdv_epi32(__m512i __A, __mmask16 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shrdv_epi32(__mmask16 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shrdv_epi64(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshrdv_v8di((__v8di)__A, (__v8di)__B, - (__v8di)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shrdv_epi64(__m512i __A, __mmask8 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v8di_mask((__v8di)__A, (__v8di)__C, - (__v8di)__D, (__mmask8)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shrdv_epi64(__mmask8 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v8di_maskz((__v8di)__B, (__v8di)__C, - (__v8di)__D, (__mmask8)__A); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldv_epi16(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshldv_v32hi((__v32hi)__A, (__v32hi)__B, - (__v32hi)__C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldv_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshldv_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shldv_epi32(__m512i __A, __mmask16 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shldv_epi32(__mmask16 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_shldv_epi64(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpshldv_v8di((__v8di)__A, (__v8di)__B, - (__v8di)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shldv_epi64(__m512i __A, __mmask8 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v8di_mask((__v8di)__A, (__v8di)__C, - (__v8di)__D, (__mmask8)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shldv_epi64(__mmask8 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v8di_maskz((__v8di)__B, (__v8di)__C, - (__v8di)__D, (__mmask8)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_epi8(__m512i __A, __mmask64 __B, __m512i __C) { - return (__m512i)__builtin_ia32_compressqi512_mask((__v64qi)__C, (__v64qi)__A, - (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_epi8(__mmask64 __A, __m512i __B) { - return (__m512i)__builtin_ia32_compressqi512_mask( - (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), (__mmask64)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_epi8(void *__A, __mmask64 __B, __m512i __C) { - __builtin_ia32_compressstoreuqi512_mask((__v64qi *)__A, (__v64qi)__C, - (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compress_epi16(__m512i __A, __mmask32 __B, __m512i __C) { - return (__m512i)__builtin_ia32_compresshi512_mask((__v32hi)__C, (__v32hi)__A, - (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_compress_epi16(__mmask32 __A, __m512i __B) { - return (__m512i)__builtin_ia32_compresshi512_mask( - (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), (__mmask32)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_compressstoreu_epi16(void *__A, __mmask32 __B, __m512i __C) { - __builtin_ia32_compressstoreuhi512_mask((__v32hi *)__A, (__v32hi)__C, - (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_epi8(__m512i __A, __mmask64 __B, __m512i __C) { - return (__m512i)__builtin_ia32_expandqi512_mask((__v64qi)__C, (__v64qi)__A, - (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_epi8(__mmask64 __A, __m512i __B) { - return (__m512i)__builtin_ia32_expandqi512_maskz( - (__v64qi)__B, (__v64qi)_mm512_setzero_si512(), (__mmask64)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_epi8(__m512i __A, __mmask64 __B, const void *__C) { - return (__m512i)__builtin_ia32_expandloadqi512_mask( - (const __v64qi *)__C, (__v64qi)__A, (__mmask64)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_epi8(__mmask64 __A, const void *__B) { - return (__m512i)__builtin_ia32_expandloadqi512_maskz( - (const __v64qi *)__B, (__v64qi)_mm512_setzero_si512(), (__mmask64)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expand_epi16(__m512i __A, __mmask32 __B, __m512i __C) { - return (__m512i)__builtin_ia32_expandhi512_mask((__v32hi)__C, (__v32hi)__A, - (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expand_epi16(__mmask32 __A, __m512i __B) { - return (__m512i)__builtin_ia32_expandhi512_maskz( - (__v32hi)__B, (__v32hi)_mm512_setzero_si512(), (__mmask32)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_expandloadu_epi16(__m512i __A, __mmask32 __B, const void *__C) { - return (__m512i)__builtin_ia32_expandloadhi512_mask( - (const __v32hi *)__C, (__v32hi)__A, (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_expandloadu_epi16(__mmask32 __A, const void *__B) { - return (__m512i)__builtin_ia32_expandloadhi512_maskz( - (const __v32hi *)__B, (__v32hi)_mm512_setzero_si512(), (__mmask32)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shrdi_epi16(__m512i __A, __mmask32 __B, __m512i __C, - __m512i __D, int __E) { - return (__m512i)__builtin_ia32_vpshrd_v32hi_mask( - (__v32hi)__C, (__v32hi)__D, __E, (__v32hi)__A, (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shrdi_epi16(__mmask32 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshrd_v32hi_mask( - (__v32hi)__B, (__v32hi)__C, __D, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_shldi_epi16(__m512i __A, __mmask32 __B, __m512i __C, - __m512i __D, int __E) { - return (__m512i)__builtin_ia32_vpshld_v32hi_mask( - (__v32hi)__C, (__v32hi)__D, __E, (__v32hi)__A, (__mmask32)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_shldi_epi16(__mmask32 __A, __m512i __B, __m512i __C, int __D) { - return (__m512i)__builtin_ia32_vpshld_v32hi_mask( - (__v32hi)__B, (__v32hi)__C, __D, (__v32hi)_mm512_setzero_si512(), - (__mmask32)__A); -} -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shrdv_epi16(__m512i __A, __mmask32 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v32hi_mask( - (__v32hi)__A, (__v32hi)__C, (__v32hi)__D, (__mmask32)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shrdv_epi16(__mmask32 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshrdv_v32hi_maskz( - (__v32hi)__B, (__v32hi)__C, (__v32hi)__D, (__mmask32)__A); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_shldv_epi16(__m512i __A, __mmask32 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v32hi_mask( - (__v32hi)__A, (__v32hi)__C, (__v32hi)__D, (__mmask32)__B); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_shldv_epi16(__mmask32 __A, __m512i __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpshldv_v32hi_maskz( - (__v32hi)__B, (__v32hi)__C, (__v32hi)__D, (__mmask32)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_epi8(__m128i __A, __mmask16 __B, __m128i __C) { - return (__m128i)__builtin_ia32_compressqi128_mask((__v16qi)__C, (__v16qi)__A, - (__mmask16)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_epi8(__mmask16 __A, __m128i __B) { - return (__m128i)__builtin_ia32_compressqi128_mask( - (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_epi16(void *__A, __mmask16 __B, __m256i __C) { - __builtin_ia32_compressstoreuhi256_mask((__v16hi *)__A, (__v16hi)__C, - (__mmask16)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compress_epi16(__m128i __A, __mmask8 __B, __m128i __C) { - return (__m128i)__builtin_ia32_compresshi128_mask((__v8hi)__C, (__v8hi)__A, - (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_compress_epi16(__mmask8 __A, __m128i __B) { - return (__m128i)__builtin_ia32_compresshi128_mask( - (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_epi16(__m256i __A, __mmask16 __B, __m256i __C) { - return (__m256i)__builtin_ia32_compresshi256_mask((__v16hi)__C, (__v16hi)__A, - (__mmask16)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_epi16(__mmask16 __A, __m256i __B) { - return (__m256i)__builtin_ia32_compresshi256_mask( - (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), (__mmask16)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_epi8(void *__A, __mmask16 __B, __m128i __C) { - __builtin_ia32_compressstoreuqi128_mask((__v16qi *)__A, (__v16qi)__C, - (__mmask16)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_compressstoreu_epi16(void *__A, __mmask8 __B, __m128i __C) { - __builtin_ia32_compressstoreuhi128_mask((__v8hi *)__A, (__v8hi)__C, - (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_epi8(__m128i __A, __mmask16 __B, __m128i __C) { - return (__m128i)__builtin_ia32_expandqi128_mask((__v16qi)__C, (__v16qi)__A, - (__mmask16)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_epi8(__mmask16 __A, __m128i __B) { - return (__m128i)__builtin_ia32_expandqi128_maskz( - (__v16qi)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_epi8(__m128i __A, __mmask16 __B, const void *__C) { - return (__m128i)__builtin_ia32_expandloadqi128_mask( - (const __v16qi *)__C, (__v16qi)__A, (__mmask16)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_epi8(__mmask16 __A, const void *__B) { - return (__m128i)__builtin_ia32_expandloadqi128_maskz( - (const __v16qi *)__B, (__v16qi)_mm_setzero_si128(), (__mmask16)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expand_epi16(__m128i __A, __mmask8 __B, __m128i __C) { - return (__m128i)__builtin_ia32_expandhi128_mask((__v8hi)__C, (__v8hi)__A, - (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expand_epi16(__mmask8 __A, __m128i __B) { - return (__m128i)__builtin_ia32_expandhi128_maskz( - (__v8hi)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_expandloadu_epi16(__m128i __A, __mmask8 __B, const void *__C) { - return (__m128i)__builtin_ia32_expandloadhi128_mask( - (const __v8hi *)__C, (__v8hi)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_expandloadu_epi16(__mmask8 __A, const void *__B) { - return (__m128i)__builtin_ia32_expandloadhi128_maskz( - (const __v8hi *)__B, (__v8hi)_mm_setzero_si128(), (__mmask8)__A); -} -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_epi16(__m256i __A, __mmask16 __B, __m256i __C) { - return (__m256i)__builtin_ia32_expandhi256_mask((__v16hi)__C, (__v16hi)__A, - (__mmask16)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_epi16(__mmask16 __A, __m256i __B) { - return (__m256i)__builtin_ia32_expandhi256_maskz( - (__v16hi)__B, (__v16hi)_mm256_setzero_si256(), (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_epi16(__m256i __A, __mmask16 __B, const void *__C) { - return (__m256i)__builtin_ia32_expandloadhi256_mask( - (const __v16hi *)__C, (__v16hi)__A, (__mmask16)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_epi16(__mmask16 __A, const void *__B) { - return (__m256i)__builtin_ia32_expandloadhi256_maskz( - (const __v16hi *)__B, (__v16hi)_mm256_setzero_si256(), (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdi_epi16(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshrd_v16hi((__v16hi)__A, (__v16hi)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shrdi_epi16(__m256i __A, __mmask16 __B, __m256i __C, - __m256i __D, int __E) { - return (__m256i)__builtin_ia32_vpshrd_v16hi_mask( - (__v16hi)__C, (__v16hi)__D, __E, (__v16hi)__A, (__mmask16)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shrdi_epi16(__mmask16 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshrd_v16hi_mask( - (__v16hi)__B, (__v16hi)__C, __D, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shrdi_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D, - int __E) { - return (__m256i)__builtin_ia32_vpshrd_v8si_mask((__v8si)__C, (__v8si)__D, __E, - (__v8si)__A, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shrdi_epi32(__mmask8 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshrd_v8si_mask( - (__v8si)__B, (__v8si)__C, __D, (__v8si)_mm256_setzero_si256(), - (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdi_epi32(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshrd_v8si((__v8si)__A, (__v8si)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shrdi_epi64(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D, - int __E) { - return (__m256i)__builtin_ia32_vpshrd_v4di_mask((__v4di)__C, (__v4di)__D, __E, - (__v4di)__A, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shrdi_epi64(__mmask8 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshrd_v4di_mask( - (__v4di)__B, (__v4di)__C, __D, (__v4di)_mm256_setzero_si256(), - (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdi_epi64(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshrd_v4di((__v4di)__A, (__v4di)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdi_epi16(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshrd_v8hi_mask((__v8hi)__C, (__v8hi)__D, __E, - (__v8hi)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdi_epi16(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshrd_v8hi_mask((__v8hi)__B, (__v8hi)__C, __D, - (__v8hi)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdi_epi16(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshrd_v8hi((__v8hi)__A, (__v8hi)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdi_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshrd_v4si_mask((__v4si)__C, (__v4si)__D, __E, - (__v4si)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdi_epi32(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshrd_v4si_mask((__v4si)__B, (__v4si)__C, __D, - (__v4si)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdi_epi32(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshrd_v4si((__v4si)__A, (__v4si)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdi_epi64(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshrd_v2di_mask((__v2di)__C, (__v2di)__D, __E, - (__v2di)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdi_epi64(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshrd_v2di_mask((__v2di)__B, (__v2di)__C, __D, - (__v2di)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdi_epi64(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshrd_v2di((__v2di)__A, (__v2di)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldi_epi16(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshld_v16hi((__v16hi)__A, (__v16hi)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shldi_epi16(__m256i __A, __mmask16 __B, __m256i __C, - __m256i __D, int __E) { - return (__m256i)__builtin_ia32_vpshld_v16hi_mask( - (__v16hi)__C, (__v16hi)__D, __E, (__v16hi)__A, (__mmask16)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shldi_epi16(__mmask16 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshld_v16hi_mask( - (__v16hi)__B, (__v16hi)__C, __D, (__v16hi)_mm256_setzero_si256(), - (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shldi_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D, - int __E) { - return (__m256i)__builtin_ia32_vpshld_v8si_mask((__v8si)__C, (__v8si)__D, __E, - (__v8si)__A, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shldi_epi32(__mmask8 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshld_v8si_mask( - (__v8si)__B, (__v8si)__C, __D, (__v8si)_mm256_setzero_si256(), - (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldi_epi32(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshld_v8si((__v8si)__A, (__v8si)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_shldi_epi64(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D, - int __E) { - return (__m256i)__builtin_ia32_vpshld_v4di_mask((__v4di)__C, (__v4di)__D, __E, - (__v4di)__A, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_shldi_epi64(__mmask8 __A, __m256i __B, __m256i __C, int __D) { - return (__m256i)__builtin_ia32_vpshld_v4di_mask( - (__v4di)__B, (__v4di)__C, __D, (__v4di)_mm256_setzero_si256(), - (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldi_epi64(__m256i __A, __m256i __B, int __C) { - return (__m256i)__builtin_ia32_vpshld_v4di((__v4di)__A, (__v4di)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldi_epi16(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshld_v8hi_mask((__v8hi)__C, (__v8hi)__D, __E, - (__v8hi)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldi_epi16(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshld_v8hi_mask((__v8hi)__B, (__v8hi)__C, __D, - (__v8hi)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldi_epi16(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshld_v8hi((__v8hi)__A, (__v8hi)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldi_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshld_v4si_mask((__v4si)__C, (__v4si)__D, __E, - (__v4si)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldi_epi32(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshld_v4si_mask((__v4si)__B, (__v4si)__C, __D, - (__v4si)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldi_epi32(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshld_v4si((__v4si)__A, (__v4si)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldi_epi64(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D, - int __E) { - return (__m128i)__builtin_ia32_vpshld_v2di_mask((__v2di)__C, (__v2di)__D, __E, - (__v2di)__A, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldi_epi64(__mmask8 __A, __m128i __B, __m128i __C, int __D) { - return (__m128i)__builtin_ia32_vpshld_v2di_mask((__v2di)__B, (__v2di)__C, __D, - (__v2di)_mm_setzero_si128(), - (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldi_epi64(__m128i __A, __m128i __B, int __C) { - return (__m128i)__builtin_ia32_vpshld_v2di((__v2di)__A, (__v2di)__B, __C); -} -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdv_epi16(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshrdv_v16hi((__v16hi)__A, (__v16hi)__B, - (__v16hi)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shrdv_epi16(__m256i __A, __mmask16 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v16hi_mask( - (__v16hi)__A, (__v16hi)__C, (__v16hi)__D, (__mmask16)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shrdv_epi16(__mmask16 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v16hi_maskz( - (__v16hi)__B, (__v16hi)__C, (__v16hi)__D, (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdv_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshrdv_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shrdv_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v8si_mask((__v8si)__A, (__v8si)__C, - (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shrdv_epi32(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v8si_maskz((__v8si)__B, (__v8si)__C, - (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shrdv_epi64(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshrdv_v4di((__v4di)__A, (__v4di)__B, - (__v4di)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shrdv_epi64(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v4di_mask((__v4di)__A, (__v4di)__C, - (__v4di)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shrdv_epi64(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshrdv_v4di_maskz((__v4di)__B, (__v4di)__C, - (__v4di)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdv_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshrdv_v8hi((__v8hi)__A, (__v8hi)__B, - (__v8hi)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdv_epi16(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v8hi_mask((__v8hi)__A, (__v8hi)__C, - (__v8hi)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdv_epi16(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v8hi_maskz((__v8hi)__B, (__v8hi)__C, - (__v8hi)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdv_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshrdv_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdv_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v4si_mask((__v4si)__A, (__v4si)__C, - (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdv_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v4si_maskz((__v4si)__B, (__v4si)__C, - (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shrdv_epi64(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshrdv_v2di((__v2di)__A, (__v2di)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shrdv_epi64(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v2di_mask((__v2di)__A, (__v2di)__C, - (__v2di)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shrdv_epi64(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshrdv_v2di_maskz((__v2di)__B, (__v2di)__C, - (__v2di)__D, (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldv_epi16(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshldv_v16hi((__v16hi)__A, (__v16hi)__B, - (__v16hi)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shldv_epi16(__m256i __A, __mmask16 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v16hi_mask( - (__v16hi)__A, (__v16hi)__C, (__v16hi)__D, (__mmask16)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shldv_epi16(__mmask16 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v16hi_maskz( - (__v16hi)__B, (__v16hi)__C, (__v16hi)__D, (__mmask16)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldv_epi32(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshldv_v8si((__v8si)__A, (__v8si)__B, - (__v8si)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shldv_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v8si_mask((__v8si)__A, (__v8si)__C, - (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shldv_epi32(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v8si_maskz((__v8si)__B, (__v8si)__C, - (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_shldv_epi64(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpshldv_v4di((__v4di)__A, (__v4di)__B, - (__v4di)__C); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_shldv_epi64(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v4di_mask((__v4di)__A, (__v4di)__C, - (__v4di)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_shldv_epi64(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpshldv_v4di_maskz((__v4di)__B, (__v4di)__C, - (__v4di)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldv_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshldv_v8hi((__v8hi)__A, (__v8hi)__B, - (__v8hi)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldv_epi16(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v8hi_mask((__v8hi)__A, (__v8hi)__C, - (__v8hi)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldv_epi16(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v8hi_maskz((__v8hi)__B, (__v8hi)__C, - (__v8hi)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldv_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshldv_v4si((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldv_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v4si_mask((__v4si)__A, (__v4si)__C, - (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldv_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v4si_maskz((__v4si)__B, (__v4si)__C, - (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shldv_epi64(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpshldv_v2di((__v2di)__A, (__v2di)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_shldv_epi64(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v2di_mask((__v2di)__A, (__v2di)__C, - (__v2di)__D, (__mmask8)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_shldv_epi64(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpshldv_v2di_maskz((__v2di)__B, (__v2di)__C, - (__v2di)__D, (__mmask8)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compress_epi8(__m256i __A, __mmask32 __B, __m256i __C) { - return (__m256i)__builtin_ia32_compressqi256_mask((__v32qi)__C, (__v32qi)__A, - (__mmask32)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_compress_epi8(__mmask32 __A, __m256i __B) { - return (__m256i)__builtin_ia32_compressqi256_mask( - (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), (__mmask32)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_compressstoreu_epi8(void *__A, __mmask32 __B, __m256i __C) { - __builtin_ia32_compressstoreuqi256_mask((__v32qi *)__A, (__v32qi)__C, - (__mmask32)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expand_epi8(__m256i __A, __mmask32 __B, __m256i __C) { - return (__m256i)__builtin_ia32_expandqi256_mask((__v32qi)__C, (__v32qi)__A, - (__mmask32)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expand_epi8(__mmask32 __A, __m256i __B) { - return (__m256i)__builtin_ia32_expandqi256_maskz( - (__v32qi)__B, (__v32qi)_mm256_setzero_si256(), (__mmask32)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_expandloadu_epi8(__m256i __A, __mmask32 __B, const void *__C) { - return (__m256i)__builtin_ia32_expandloadqi256_mask( - (const __v32qi *)__C, (__v32qi)__A, (__mmask32)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_expandloadu_epi8(__mmask32 __A, const void *__B) { - return (__m256i)__builtin_ia32_expandloadqi256_maskz( - (const __v32qi *)__B, (__v32qi)_mm256_setzero_si256(), (__mmask32)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dpbusd_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpdpbusd_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_dpbusd_epi32(__m512i __A, __mmask16 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpdpbusd_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_dpbusd_epi32(__mmask16 __A, __m512i __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpbusd_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dpbusds_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpdpbusds_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_dpbusds_epi32(__m512i __A, __mmask16 __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpbusds_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_dpbusds_epi32(__mmask16 __A, __m512i __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpbusds_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dpwssd_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpdpwssd_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_dpwssd_epi32(__m512i __A, __mmask16 __B, __m512i __C, __m512i __D) { - return (__m512i)__builtin_ia32_vpdpwssd_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_dpwssd_epi32(__mmask16 __A, __m512i __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpwssd_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dpwssds_epi32(__m512i __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vpdpwssds_v16si((__v16si)__A, (__v16si)__B, - (__v16si)__C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_dpwssds_epi32(__m512i __A, __mmask16 __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpwssds_v16si_mask( - (__v16si)__A, (__v16si)__C, (__v16si)__D, (__mmask16)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_dpwssds_epi32(__mmask16 __A, __m512i __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vpdpwssds_v16si_maskz( - (__v16si)__B, (__v16si)__C, (__v16si)__D, (__mmask16)__A); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_dpbusd_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpbusd_v8si_mask((__v8si)__A, (__v8si)__C, - (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_dpbusd_epi32(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpbusd_v8si_maskz( - (__v8si)__B, (__v8si)__C, (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_dpbusd_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpbusd_v4si_mask((__v4si)__A, (__v4si)__C, - (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_dpbusd_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpbusd_v4si_maskz( - (__v4si)__B, (__v4si)__C, (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_dpbusds_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpbusds_v8si_mask( - (__v8si)__A, (__v8si)__C, (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_dpbusds_epi32(__mmask8 __A, __m256i __B, __m256i __C, - __m256i __D) { - return (__m256i)__builtin_ia32_vpdpbusds_v8si_maskz( - (__v8si)__B, (__v8si)__C, (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_dpbusds_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpbusds_v4si_mask( - (__v4si)__A, (__v4si)__C, (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_dpbusds_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpbusds_v4si_maskz( - (__v4si)__B, (__v4si)__C, (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_dpwssd_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpwssd_v8si_mask((__v8si)__A, (__v8si)__C, - (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_dpwssd_epi32(__mmask8 __A, __m256i __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpwssd_v8si_maskz( - (__v8si)__B, (__v8si)__C, (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_dpwssd_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpwssd_v4si_mask((__v4si)__A, (__v4si)__C, - (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_dpwssd_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpwssd_v4si_maskz( - (__v4si)__B, (__v4si)__C, (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_dpwssds_epi32(__m256i __A, __mmask8 __B, __m256i __C, __m256i __D) { - return (__m256i)__builtin_ia32_vpdpwssds_v8si_mask( - (__v8si)__A, (__v8si)__C, (__v8si)__D, (__mmask8)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_dpwssds_epi32(__mmask8 __A, __m256i __B, __m256i __C, - __m256i __D) { - return (__m256i)__builtin_ia32_vpdpwssds_v8si_maskz( - (__v8si)__B, (__v8si)__C, (__v8si)__D, (__mmask8)__A); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_dpwssds_epi32(__m128i __A, __mmask8 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpwssds_v4si_mask( - (__v4si)__A, (__v4si)__C, (__v4si)__D, (__mmask8)__B); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_maskz_dpwssds_epi32(__mmask8 __A, __m128i __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vpdpwssds_v4si_maskz( - (__v4si)__B, (__v4si)__C, (__v4si)__D, (__mmask8)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_vpopcountd_v4si((__v4si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_popcnt_epi32(__m128i __W, __mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountd_v4si_mask((__v4si)__A, (__v4si)__W, - (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_popcnt_epi32(__mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountd_v4si_mask( - (__v4si)__A, (__v4si)_mm_setzero_si128(), (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_popcnt_epi32(__m256i __A) { - return (__m256i)__builtin_ia32_vpopcountd_v8si((__v8si)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_popcnt_epi32(__m256i __W, __mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountd_v8si_mask((__v8si)__A, (__v8si)__W, - (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_popcnt_epi32(__mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountd_v8si_mask( - (__v8si)__A, (__v8si)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_epi64(__m128i __A) { - return (__m128i)__builtin_ia32_vpopcountq_v2di((__v2di)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_popcnt_epi64(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountq_v2di_mask((__v2di)__A, (__v2di)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_popcnt_epi64(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountq_v2di_mask( - (__v2di)__A, (__v2di)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_popcnt_epi64(__m256i __A) { - return (__m256i)__builtin_ia32_vpopcountq_v4di((__v4di)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_popcnt_epi64(__m256i __W, __mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountq_v4di_mask((__v4di)__A, (__v4di)__W, - (__mmask8)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_popcnt_epi64(__mmask8 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountq_v4di_mask( - (__v4di)__A, (__v4di)_mm256_setzero_si256(), (__mmask8)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_popcnt_epi8(__m512i __A) { - return (__m512i)__builtin_ia32_vpopcountb_v64qi((__v64qi)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_popcnt_epi16(__m512i __A) { - return (__m512i)__builtin_ia32_vpopcountw_v32hi((__v32hi)__A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_popcnt_epi8(__m512i __W, __mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountb_v64qi_mask( - (__v64qi)__A, (__v64qi)__W, (__mmask64)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_popcnt_epi8(__mmask64 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountb_v64qi_mask( - (__v64qi)__A, (__v64qi)_mm512_setzero_si512(), (__mmask64)__U); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_popcnt_epi16(__m512i __W, __mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountw_v32hi_mask( - (__v32hi)__A, (__v32hi)__W, (__mmask32)__U); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_popcnt_epi16(__mmask32 __U, __m512i __A) { - return (__m512i)__builtin_ia32_vpopcountw_v32hi_mask( - (__v32hi)__A, (__v32hi)_mm512_setzero_si512(), (__mmask32)__U); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_bitshuffle_epi64_mask(__m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_vpshufbitqmb512_mask( - (__v64qi)__A, (__v64qi)__B, (__mmask64)-1); -} - -extern __inline __mmask64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_bitshuffle_epi64_mask(__mmask64 __M, __m512i __A, __m512i __B) { - return (__mmask64)__builtin_ia32_vpshufbitqmb512_mask( - (__v64qi)__A, (__v64qi)__B, (__mmask64)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_popcnt_epi8(__m256i __W, __mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountb_v32qi_mask( - (__v32qi)__A, (__v32qi)__W, (__mmask32)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_popcnt_epi8(__mmask32 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountb_v32qi_mask( - (__v32qi)__A, (__v32qi)_mm256_setzero_si256(), (__mmask32)__U); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_bitshuffle_epi64_mask(__m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_vpshufbitqmb256_mask( - (__v32qi)__A, (__v32qi)__B, (__mmask32)-1); -} - -extern __inline __mmask32 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_bitshuffle_epi64_mask(__mmask32 __M, __m256i __A, __m256i __B) { - return (__mmask32)__builtin_ia32_vpshufbitqmb256_mask( - (__v32qi)__A, (__v32qi)__B, (__mmask32)__M); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_bitshuffle_epi64_mask(__m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_vpshufbitqmb128_mask( - (__v16qi)__A, (__v16qi)__B, (__mmask16)-1); -} - -extern __inline __mmask16 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_bitshuffle_epi64_mask(__mmask16 __M, __m128i __A, __m128i __B) { - return (__mmask16)__builtin_ia32_vpshufbitqmb128_mask( - (__v16qi)__A, (__v16qi)__B, (__mmask16)__M); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_popcnt_epi8(__m256i __A) { - return (__m256i)__builtin_ia32_vpopcountb_v32qi((__v32qi)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_popcnt_epi16(__m256i __A) { - return (__m256i)__builtin_ia32_vpopcountw_v16hi((__v16hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_vpopcountb_v16qi((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_popcnt_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_vpopcountw_v8hi((__v8hi)__A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_popcnt_epi16(__m256i __W, __mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountw_v16hi_mask( - (__v16hi)__A, (__v16hi)__W, (__mmask16)__U); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_popcnt_epi16(__mmask16 __U, __m256i __A) { - return (__m256i)__builtin_ia32_vpopcountw_v16hi_mask( - (__v16hi)__A, (__v16hi)_mm256_setzero_si256(), (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_popcnt_epi8(__m128i __W, __mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountb_v16qi_mask( - (__v16qi)__A, (__v16qi)__W, (__mmask16)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_popcnt_epi8(__mmask16 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountb_v16qi_mask( - (__v16qi)__A, (__v16qi)_mm_setzero_si128(), (__mmask16)__U); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_popcnt_epi16(__m128i __W, __mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountw_v8hi_mask((__v8hi)__A, (__v8hi)__W, - (__mmask8)__U); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_popcnt_epi16(__mmask8 __U, __m128i __A) { - return (__m128i)__builtin_ia32_vpopcountw_v8hi_mask( - (__v8hi)__A, (__v8hi)_mm_setzero_si128(), (__mmask8)__U); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_2intersect_epi32(__m512i __A, __m512i __B, __mmask16 *__U, - __mmask16 *__M) { - __builtin_ia32_2intersectd512(__U, __M, (__v16si)__A, (__v16si)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_2intersect_epi64(__m512i __A, __m512i __B, __mmask8 *__U, - __mmask8 *__M) { - __builtin_ia32_2intersectq512(__U, __M, (__v8di)__A, (__v8di)__B); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_2intersect_epi32(__m128i __A, __m128i __B, __mmask8 *__U, __mmask8 *__M) { - __builtin_ia32_2intersectd128(__U, __M, (__v4si)__A, (__v4si)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_2intersect_epi32(__m256i __A, __m256i __B, __mmask8 *__U, - __mmask8 *__M) { - __builtin_ia32_2intersectd256(__U, __M, (__v8si)__A, (__v8si)__B); -} - -extern __inline void __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_2intersect_epi64(__m128i __A, __m128i __B, __mmask8 *__U, __mmask8 *__M) { - __builtin_ia32_2intersectq128(__U, __M, (__v2di)__A, (__v2di)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_2intersect_epi64(__m256i __A, __m256i __B, __mmask8 *__U, - __mmask8 *__M) { - __builtin_ia32_2intersectq256(__U, __M, (__v4di)__A, (__v4di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha1msg1_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_sha1msg1((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha1msg2_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_sha1msg2((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha1nexte_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_sha1nexte((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha1rnds4_epu32(__m128i __A, __m128i __B, const int __I) { - return (__m128i)__builtin_ia32_sha1rnds4((__v4si)__A, (__v4si)__B, __I); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha256msg1_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_sha256msg1((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha256msg2_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_sha256msg2((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha256rnds2_epu32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_sha256rnds2((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmadd_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps((__v4sf)__A, (__v4sf)__B, (__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmadd_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsd3((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmadd_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddss3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmsubpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmsub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmsubpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmsubps((__v4sf)__A, (__v4sf)__B, (__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmsub_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmsubps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmsubsd3((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsub_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmsubss3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmaddpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fnmadd_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmaddpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmaddps((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fnmadd_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmaddps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmaddsd3((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmadd_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmaddss3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmsubpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fnmsub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfnmsubpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmsubps((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fnmsub_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfnmsubps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfnmsubsd3((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fnmsub_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfnmsubss3((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmaddsub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmaddsub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmaddsub_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmaddsub_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsubadd_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd((__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmsubadd_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256((__v4df)__A, (__v4df)__B, - -(__v4df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_fmsubadd_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps((__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_fmsubadd_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256((__v8sf)__A, (__v8sf)__B, - -(__v8sf)__C); -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtsh_ss(unsigned short __S) { - __v8hi __H = __extension__(__v8hi){(short)__S, 0, 0, 0, 0, 0, 0, 0}; - __v4sf __A = __builtin_ia32_vcvtph2ps(__H); - return __builtin_ia32_vec_ext_v4sf(__A, 0); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtph_ps(__m128i __A) { - return (__m128)__builtin_ia32_vcvtph2ps((__v8hi)__A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtph_ps(__m128i __A) { - return (__m256)__builtin_ia32_vcvtph2ps256((__v8hi)__A); -} - -extern __inline unsigned short - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _cvtss_sh(float __F, const int __I) { - __v4sf __A = __extension__(__v4sf){__F, 0, 0, 0}; - __v8hi __H = __builtin_ia32_vcvtps2ph(__A, __I); - return (unsigned short)__builtin_ia32_vec_ext_v8hi(__H, 0); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtps_ph(__m128 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph((__v4sf)__A, __I); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtps_ph(__m256 __A, const int __I) { - return (__m128i)__builtin_ia32_vcvtps2ph256((__v8sf)__A, __I); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_gf2p8mul_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vgf2p8mulb_v16qi((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_gf2p8affineinv_epi64_epi8(__m128i __A, __m128i __B, const int __C) { - return (__m128i)__builtin_ia32_vgf2p8affineinvqb_v16qi((__v16qi)__A, - (__v16qi)__B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_gf2p8affine_epi64_epi8(__m128i __A, __m128i __B, const int __C) { - return (__m128i)__builtin_ia32_vgf2p8affineqb_v16qi((__v16qi)__A, - (__v16qi)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_gf2p8mul_epi8(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_vgf2p8mulb_v32qi((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_gf2p8affineinv_epi64_epi8(__m256i __A, __m256i __B, const int __C) { - return (__m256i)__builtin_ia32_vgf2p8affineinvqb_v32qi((__v32qi)__A, - (__v32qi)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_gf2p8affine_epi64_epi8(__m256i __A, __m256i __B, const int __C) { - return (__m256i)__builtin_ia32_vgf2p8affineqb_v32qi((__v32qi)__A, - (__v32qi)__B, __C); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_mask_gf2p8mul_epi8(__m128i __A, __mmask16 __B, __m128i __C, __m128i __D) { - return (__m128i)__builtin_ia32_vgf2p8mulb_v16qi_mask( - (__v16qi)__C, (__v16qi)__D, (__v16qi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_gf2p8mul_epi8(__mmask16 __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vgf2p8mulb_v16qi_mask( - (__v16qi)__B, (__v16qi)__C, (__v16qi)_mm_setzero_si128(), __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_gf2p8affineinv_epi64_epi8(__m128i __A, __mmask16 __B, __m128i __C, - __m128i __D, const int __E) { - return (__m128i)__builtin_ia32_vgf2p8affineinvqb_v16qi_mask( - (__v16qi)__C, (__v16qi)__D, __E, (__v16qi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_gf2p8affineinv_epi64_epi8(__mmask16 __A, __m128i __B, __m128i __C, - const int __D) { - return (__m128i)__builtin_ia32_vgf2p8affineinvqb_v16qi_mask( - (__v16qi)__B, (__v16qi)__C, __D, (__v16qi)_mm_setzero_si128(), __A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_gf2p8affine_epi64_epi8(__m128i __A, __mmask16 __B, __m128i __C, - __m128i __D, const int __E) { - return (__m128i)__builtin_ia32_vgf2p8affineqb_v16qi_mask( - (__v16qi)__C, (__v16qi)__D, __E, (__v16qi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_gf2p8affine_epi64_epi8(__mmask16 __A, __m128i __B, __m128i __C, - const int __D) { - return (__m128i)__builtin_ia32_vgf2p8affineqb_v16qi_mask( - (__v16qi)__B, (__v16qi)__C, __D, (__v16qi)_mm_setzero_si128(), __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_gf2p8mul_epi8(__m256i __A, __mmask32 __B, __m256i __C, - __m256i __D) { - return (__m256i)__builtin_ia32_vgf2p8mulb_v32qi_mask( - (__v32qi)__C, (__v32qi)__D, (__v32qi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_gf2p8mul_epi8(__mmask32 __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vgf2p8mulb_v32qi_mask( - (__v32qi)__B, (__v32qi)__C, (__v32qi)_mm256_setzero_si256(), __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_gf2p8affineinv_epi64_epi8(__m256i __A, __mmask32 __B, - __m256i __C, __m256i __D, - const int __E) { - return (__m256i)__builtin_ia32_vgf2p8affineinvqb_v32qi_mask( - (__v32qi)__C, (__v32qi)__D, __E, (__v32qi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_gf2p8affineinv_epi64_epi8(__mmask32 __A, __m256i __B, - __m256i __C, const int __D) { - return (__m256i)__builtin_ia32_vgf2p8affineinvqb_v32qi_mask( - (__v32qi)__B, (__v32qi)__C, __D, (__v32qi)_mm256_setzero_si256(), __A); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_gf2p8affine_epi64_epi8(__m256i __A, __mmask32 __B, __m256i __C, - __m256i __D, const int __E) { - return (__m256i)__builtin_ia32_vgf2p8affineqb_v32qi_mask( - (__v32qi)__C, (__v32qi)__D, __E, (__v32qi)__A, __B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_gf2p8affine_epi64_epi8(__mmask32 __A, __m256i __B, __m256i __C, - const int __D) { - return (__m256i)__builtin_ia32_vgf2p8affineqb_v32qi_mask( - (__v32qi)__B, (__v32qi)__C, __D, (__v32qi)_mm256_setzero_si256(), __A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_gf2p8mul_epi8(__m512i __A, __mmask64 __B, __m512i __C, - __m512i __D) { - return (__m512i)__builtin_ia32_vgf2p8mulb_v64qi_mask( - (__v64qi)__C, (__v64qi)__D, (__v64qi)__A, __B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_gf2p8mul_epi8(__mmask64 __A, __m512i __B, __m512i __C) { - return (__m512i)__builtin_ia32_vgf2p8mulb_v64qi_mask( - (__v64qi)__B, (__v64qi)__C, (__v64qi)_mm512_setzero_si512(), __A); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_gf2p8mul_epi8(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_vgf2p8mulb_v64qi((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_gf2p8affineinv_epi64_epi8(__m512i __A, __mmask64 __B, - __m512i __C, __m512i __D, - const int __E) { - return (__m512i)__builtin_ia32_vgf2p8affineinvqb_v64qi_mask( - (__v64qi)__C, (__v64qi)__D, __E, (__v64qi)__A, __B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_gf2p8affineinv_epi64_epi8(__mmask64 __A, __m512i __B, - __m512i __C, const int __D) { - return (__m512i)__builtin_ia32_vgf2p8affineinvqb_v64qi_mask( - (__v64qi)__B, (__v64qi)__C, __D, (__v64qi)_mm512_setzero_si512(), __A); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_gf2p8affineinv_epi64_epi8(__m512i __A, __m512i __B, const int __C) { - return (__m512i)__builtin_ia32_vgf2p8affineinvqb_v64qi((__v64qi)__A, - (__v64qi)__B, __C); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_gf2p8affine_epi64_epi8(__m512i __A, __mmask64 __B, __m512i __C, - __m512i __D, const int __E) { - return (__m512i)__builtin_ia32_vgf2p8affineqb_v64qi_mask( - (__v64qi)__C, (__v64qi)__D, __E, (__v64qi)__A, __B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_gf2p8affine_epi64_epi8(__mmask64 __A, __m512i __B, __m512i __C, - const int __D) { - return (__m512i)__builtin_ia32_vgf2p8affineqb_v64qi_mask( - (__v64qi)__B, (__v64qi)__C, __D, (__v64qi)_mm512_setzero_si512(), __A); -} -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_gf2p8affine_epi64_epi8(__m512i __A, __m512i __B, const int __C) { - return (__m512i)__builtin_ia32_vgf2p8affineqb_v64qi((__v64qi)__A, - (__v64qi)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_aesdec_epi128(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_vaesdec_v32qi((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_aesdeclast_epi128(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_vaesdeclast_v32qi((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_aesenc_epi128(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_vaesenc_v32qi((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_aesenclast_epi128(__m256i __A, __m256i __B) { - return (__m256i)__builtin_ia32_vaesenclast_v32qi((__v32qi)__A, (__v32qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_aesdec_epi128(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_vaesdec_v64qi((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_aesdeclast_epi128(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_vaesdeclast_v64qi((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_aesenc_epi128(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_vaesenc_v64qi((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_aesenclast_epi128(__m512i __A, __m512i __B) { - return (__m512i)__builtin_ia32_vaesenclast_v64qi((__v64qi)__A, (__v64qi)__B); -} - -extern __inline __m512i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_clmulepi64_epi128(__m512i __A, __m512i __B, const int __C) { - return (__m512i)__builtin_ia32_vpclmulqdq_v8di((__v8di)__A, (__v8di)__B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_clmulepi64_epi128(__m256i __A, __m256i __B, const int __C) { - return (__m256i)__builtin_ia32_vpclmulqdq_v4di((__v4di)__A, (__v4di)__B, __C); -} - -typedef short __v16bh __attribute__((__vector_size__(32))); -typedef short __v8bh __attribute__((__vector_size__(16))); - -typedef short __m256bh __attribute__((__vector_size__(32), __may_alias__)); -typedef short __m128bh __attribute__((__vector_size__(16), __may_alias__)); - -extern __inline __m256bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtne2ps_pbh(__m256 __A, __m256 __B) { - return (__m256bh)__builtin_ia32_cvtne2ps2bf16_v16hi(__A, __B); -} - -extern __inline __m256bh __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_cvtne2ps_pbh(__m256bh __A, __mmask16 __B, __m256 __C, __m256 __D) { - return (__m256bh)__builtin_ia32_cvtne2ps2bf16_v16hi_mask(__C, __D, __A, __B); -} - -extern __inline __m256bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtne2ps_pbh(__mmask16 __A, __m256 __B, __m256 __C) { - return (__m256bh)__builtin_ia32_cvtne2ps2bf16_v16hi_maskz(__B, __C, __A); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtne2ps_pbh(__m128 __A, __m128 __B) { - return (__m128bh)__builtin_ia32_cvtne2ps2bf16_v8hi(__A, __B); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtne2ps_pbh(__m128bh __A, __mmask8 __B, __m128 __C, __m128 __D) { - return (__m128bh)__builtin_ia32_cvtne2ps2bf16_v8hi_mask(__C, __D, __A, __B); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtne2ps_pbh(__mmask8 __A, __m128 __B, __m128 __C) { - return (__m128bh)__builtin_ia32_cvtne2ps2bf16_v8hi_maskz(__B, __C, __A); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cvtneps_pbh(__m256 __A) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v8sf(__A); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_mask_cvtneps_pbh(__m128bh __A, __mmask8 __B, __m256 __C) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v8sf_mask(__C, __A, __B); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maskz_cvtneps_pbh(__mmask8 __A, __m256 __B) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v8sf_maskz(__B, __A); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cvtneps_pbh(__m128 __A) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v4sf(__A); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_cvtneps_pbh(__m128bh __A, __mmask8 __B, __m128 __C) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v4sf_mask(__C, __A, __B); -} - -extern __inline __m128bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_cvtneps_pbh(__mmask8 __A, __m128 __B) { - return (__m128bh)__builtin_ia32_cvtneps2bf16_v4sf_maskz(__B, __A); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_dpbf16_ps(__m256 __A, __m256bh __B, __m256bh __C) { - return (__m256)__builtin_ia32_dpbf16ps_v8sf(__A, __B, __C); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_mask_dpbf16_ps(__m256 __A, __mmask8 __B, __m256bh __C, __m256bh __D) { - return (__m256)__builtin_ia32_dpbf16ps_v8sf_mask(__A, __C, __D, __B); -} - -extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm256_maskz_dpbf16_ps(__mmask8 __A, __m256 __B, __m256bh __C, __m256bh __D) { - return (__m256)__builtin_ia32_dpbf16ps_v8sf_maskz(__B, __C, __D, __A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_dpbf16_ps(__m128 __A, __m128bh __B, __m128bh __C) { - return (__m128)__builtin_ia32_dpbf16ps_v4sf(__A, __B, __C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_mask_dpbf16_ps(__m128 __A, __mmask8 __B, __m128bh __C, __m128bh __D) { - return (__m128)__builtin_ia32_dpbf16ps_v4sf_mask(__A, __C, __D, __B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maskz_dpbf16_ps(__mmask8 __A, __m128 __B, __m128bh __C, __m128bh __D) { - return (__m128)__builtin_ia32_dpbf16ps_v4sf_maskz(__B, __C, __D, __A); -} - -typedef short __v32bh __attribute__((__vector_size__(64))); - -typedef short __m512bh __attribute__((__vector_size__(64), __may_alias__)); - -extern __inline __m512bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtne2ps_pbh(__m512 __A, __m512 __B) { - return (__m512bh)__builtin_ia32_cvtne2ps2bf16_v32hi(__A, __B); -} - -extern __inline __m512bh __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_cvtne2ps_pbh(__m512bh __A, __mmask32 __B, __m512 __C, __m512 __D) { - return (__m512bh)__builtin_ia32_cvtne2ps2bf16_v32hi_mask(__C, __D, __A, __B); -} - -extern __inline __m512bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtne2ps_pbh(__mmask32 __A, __m512 __B, __m512 __C) { - return (__m512bh)__builtin_ia32_cvtne2ps2bf16_v32hi_maskz(__B, __C, __A); -} - -extern __inline __m256bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_cvtneps_pbh(__m512 __A) { - return (__m256bh)__builtin_ia32_cvtneps2bf16_v16sf(__A); -} - -extern __inline __m256bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_mask_cvtneps_pbh(__m256bh __A, __mmask16 __B, __m512 __C) { - return (__m256bh)__builtin_ia32_cvtneps2bf16_v16sf_mask(__C, __A, __B); -} - -extern __inline __m256bh - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_maskz_cvtneps_pbh(__mmask16 __A, __m512 __B) { - return (__m256bh)__builtin_ia32_cvtneps2bf16_v16sf_maskz(__B, __A); -} - -extern __inline __m512 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm512_dpbf16_ps(__m512 __A, __m512bh __B, __m512bh __C) { - return (__m512)__builtin_ia32_dpbf16ps_v16sf(__A, __B, __C); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_mask_dpbf16_ps(__m512 __A, __mmask16 __B, __m512bh __C, __m512bh __D) { - return (__m512)__builtin_ia32_dpbf16ps_v16sf_mask(__A, __C, __D, __B); -} - -extern __inline __m512 __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm512_maskz_dpbf16_ps(__mmask16 __A, __m512 __B, __m512bh __C, __m512bh __D) { - return (__m512)__builtin_ia32_dpbf16ps_v16sf_maskz(__B, __C, __D, __A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tile_loadconfig(const void *__config) { - __asm__ volatile("ldtilecfg\t%X0" ::"m"(*((const void **)__config))); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tile_storeconfig(void *__config) { - __asm__ volatile("sttilecfg\t%X0" : "=m"(*((void **)__config))); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _tile_release(void) { - __asm__ volatile("tilerelease" ::); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_prefetchw(void *__P) { - __builtin_prefetch(__P, 1, 3); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_loadiwkey(unsigned int __I, __m128i __A, __m128i __B, __m128i __C) { - __builtin_ia32_loadiwkey((__v2di)__B, (__v2di)__C, (__v2di)__A, __I); -} - -extern __inline unsigned int - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_encodekey128_u32(unsigned int __I, __m128i __A, void *__P) { - return __builtin_ia32_encodekey128_u32(__I, (__v2di)__A, __P); -} - -extern __inline unsigned int __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_encodekey256_u32(unsigned int __I, __m128i __A, __m128i __B, void *__P) { - return __builtin_ia32_encodekey256_u32(__I, (__v2di)__A, (__v2di)__B, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesdec128kl_u8(__m128i *__A, __m128i __B, const void *__P) { - return __builtin_ia32_aesdec128kl_u8((__v2di *)__A, (__v2di)__B, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesdec256kl_u8(__m128i *__A, __m128i __B, const void *__P) { - return __builtin_ia32_aesdec256kl_u8((__v2di *)__A, (__v2di)__B, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesenc128kl_u8(__m128i *__A, __m128i __B, const void *__P) { - return __builtin_ia32_aesenc128kl_u8((__v2di *)__A, (__v2di)__B, __P); -} - -extern __inline unsigned char - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_aesenc256kl_u8(__m128i *__A, __m128i __B, const void *__P) { - return __builtin_ia32_aesenc256kl_u8((__v2di *)__A, (__v2di)__B, __P); -} - -extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_aesdecwide128kl_u8(__m128i __A[8], const __m128i __B[8], const void *__P) { - return __builtin_ia32_aesdecwide128kl_u8((__v2di *)__A, (__v2di *)__B, __P); -} - -extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_aesdecwide256kl_u8(__m128i __A[8], const __m128i __B[8], const void *__P) { - return __builtin_ia32_aesdecwide256kl_u8((__v2di *)__A, (__v2di *)__B, __P); -} - -extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_aesencwide128kl_u8(__m128i __A[8], const __m128i __B[8], const void *__P) { - return __builtin_ia32_aesencwide128kl_u8((__v2di *)__A, (__v2di *)__B, __P); -} - -extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_aesencwide256kl_u8(__m128i __A[8], const __m128i __B[8], const void *__P) { - return __builtin_ia32_aesencwide256kl_u8((__v2di *)__A, (__v2di *)__B, __P); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_femms(void) { - __builtin_ia32_femms(); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pavgusb(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pavgusb((__v8qi)__A, (__v8qi)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pf2id(__m64 __A) { - return (__m64)__builtin_ia32_pf2id((__v2sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfacc(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfacc((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfadd(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfadd((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfcmpeq(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfcmpeq((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfcmpge(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfcmpge((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfcmpgt(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfcmpgt((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfmax(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfmax((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfmin(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfmin((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfmul(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfmul((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfrcp(__m64 __A) { - return (__m64)__builtin_ia32_pfrcp((__v2sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfrcpit1(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfrcpit1((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfrcpit2(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfrcpit2((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfrsqrt(__m64 __A) { - return (__m64)__builtin_ia32_pfrsqrt((__v2sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfrsqit1(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfrsqit1((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfsub(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfsub((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfsubr(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfsubr((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pi2fd(__m64 __A) { - return (__m64)__builtin_ia32_pi2fd((__v2si)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pmulhrw(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pmulhrw((__v4hi)__A, (__v4hi)__B); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_prefetch(void *__P) { - __builtin_prefetch(__P, 0, 3); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_from_float(float __A) { - return __extension__(__m64)(__v2sf){__A, 0.0f}; -} - -extern __inline float - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_to_float(__m64 __A) { - union { - __v2sf v; - float a[2]; - } __tmp; - __tmp.v = (__v2sf)__A; - return __tmp.a[0]; -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pf2iw(__m64 __A) { - return (__m64)__builtin_ia32_pf2iw((__v2sf)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfnacc(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfnacc((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pfpnacc(__m64 __A, __m64 __B) { - return (__m64)__builtin_ia32_pfpnacc((__v2sf)__A, (__v2sf)__B); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pi2fw(__m64 __A) { - return (__m64)__builtin_ia32_pi2fw((__v2si)__A); -} - -extern __inline __m64 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _m_pswapd(__m64 __A) { - return (__m64)__builtin_ia32_pswapdsf((__v2sf)__A); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_sd(double *__P, __m128d __Y) { - __builtin_ia32_movntsd(__P, (__v2df)__Y); -} - -extern __inline void - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_stream_ss(float *__P, __m128 __Y) { - __builtin_ia32_movntss(__P, (__v4sf)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_extract_si64(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_extrq((__v2di)__X, (__v16qi)__Y); -} - -extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, - __artificial__)) -_mm_extracti_si64(__m128i __X, unsigned const int __I, unsigned const int __L) { - return (__m128i)__builtin_ia32_extrqi((__v2di)__X, __I, __L); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_insert_si64(__m128i __X, __m128i __Y) { - return (__m128i)__builtin_ia32_insertq((__v2di)__X, (__v2di)__Y); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_inserti_si64(__m128i __X, __m128i __Y, unsigned const int __I, - unsigned const int __L) { - return (__m128i)__builtin_ia32_insertqi((__v2di)__X, (__v2di)__Y, __I, __L); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps((__v4sf)__A, (__v4sf)__B, (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddss((__v4sf)__A, (__v4sf)__B, (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msub_ps(__m128 __A, __m128 __B, __m128 __C) - -{ - return (__m128)__builtin_ia32_vfmaddps((__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd((__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msub_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddss((__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msub_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsd((__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmacc_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps(-(__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmacc_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd(-(__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmacc_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddss(-(__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmacc_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsd(-(__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmsub_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddps(-(__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmsub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddpd(-(__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmsub_ss(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddss(-(__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_nmsub_sd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsd(-(__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddsub_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps((__v4sf)__A, (__v4sf)__B, - (__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddsub_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd((__v2df)__A, (__v2df)__B, - (__v2df)__C); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msubadd_ps(__m128 __A, __m128 __B, __m128 __C) { - return (__m128)__builtin_ia32_vfmaddsubps((__v4sf)__A, (__v4sf)__B, - -(__v4sf)__C); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_msubadd_pd(__m128d __A, __m128d __B, __m128d __C) { - return (__m128d)__builtin_ia32_vfmaddsubpd((__v2df)__A, (__v2df)__B, - -(__v2df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_macc_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_macc_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_msub_ps(__m256 __A, __m256 __B, __m256 __C) - -{ - return (__m256)__builtin_ia32_vfmaddps256((__v8sf)__A, (__v8sf)__B, - -(__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_msub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256((__v4df)__A, (__v4df)__B, - -(__v4df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_nmacc_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256(-(__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_nmacc_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256(-(__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_nmsub_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddps256(-(__v8sf)__A, (__v8sf)__B, - -(__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_nmsub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddpd256(-(__v4df)__A, (__v4df)__B, - -(__v4df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maddsub_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256((__v8sf)__A, (__v8sf)__B, - (__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_maddsub_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256((__v4df)__A, (__v4df)__B, - (__v4df)__C); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_msubadd_ps(__m256 __A, __m256 __B, __m256 __C) { - return (__m256)__builtin_ia32_vfmaddsubps256((__v8sf)__A, (__v8sf)__B, - -(__v8sf)__C); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_msubadd_pd(__m256d __A, __m256d __B, __m256d __C) { - return (__m256d)__builtin_ia32_vfmaddsubpd256((__v4df)__A, (__v4df)__B, - -(__v4df)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccs_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacssww((__v8hi)__A, (__v8hi)__B, - (__v8hi)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacsww((__v8hi)__A, (__v8hi)__B, - (__v8hi)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccsd_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacsswd((__v8hi)__A, (__v8hi)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccd_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacswd((__v8hi)__A, (__v8hi)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccs_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacssdd((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macc_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacsdd((__v4si)__A, (__v4si)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccslo_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacssdql((__v4si)__A, (__v4si)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macclo_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacsdql((__v4si)__A, (__v4si)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maccshi_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacssdqh((__v4si)__A, (__v4si)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_macchi_epi32(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmacsdqh((__v4si)__A, (__v4si)__B, - (__v2di)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddsd_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmadcsswd((__v8hi)__A, (__v8hi)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_maddd_epi16(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpmadcswd((__v8hi)__A, (__v8hi)__B, - (__v4si)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddw_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddbw((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddd_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddbd((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddbq((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddd_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddwd((__v8hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddwq((__v8hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_vphadddq((__v4si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddw_epu8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddubw((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddd_epu8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddubd((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epu8(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddubq((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddd_epu16(__m128i __A) { - return (__m128i)__builtin_ia32_vphadduwd((__v8hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epu16(__m128i __A) { - return (__m128i)__builtin_ia32_vphadduwq((__v8hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_haddq_epu32(__m128i __A) { - return (__m128i)__builtin_ia32_vphaddudq((__v4si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsubw_epi8(__m128i __A) { - return (__m128i)__builtin_ia32_vphsubbw((__v16qi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsubd_epi16(__m128i __A) { - return (__m128i)__builtin_ia32_vphsubwd((__v8hi)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_hsubq_epi32(__m128i __A) { - return (__m128i)__builtin_ia32_vphsubdq((__v4si)__A); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_cmov_si128(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpcmov(__A, __B, __C); -} - -extern __inline __m256i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_cmov_si256(__m256i __A, __m256i __B, __m256i __C) { - return (__m256i)__builtin_ia32_vpcmov256(__A, __B, __C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_perm_epi8(__m128i __A, __m128i __B, __m128i __C) { - return (__m128i)__builtin_ia32_vpperm((__v16qi)__A, (__v16qi)__B, - (__v16qi)__C); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rot_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vprotb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rot_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vprotw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rot_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vprotd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_rot_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vprotq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roti_epi8(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_vprotbi((__v16qi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roti_epi16(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_vprotwi((__v8hi)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roti_epi32(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_vprotdi((__v4si)__A, __B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_roti_epi64(__m128i __A, const int __B) { - return (__m128i)__builtin_ia32_vprotqi((__v2di)__A, __B); -} -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shl_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshlb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shl_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshlw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shl_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshld((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_shl_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshlq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshab((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshaw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshad((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_sha_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpshaq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomequb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomnequb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epu8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueub((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomequw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomnequw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epu16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueuw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomequd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomnequd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epu32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueud((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomequq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomnequq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epu64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueuq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomeqb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomneqb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epi8(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueb((__v16qi)__A, (__v16qi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomlew((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgew((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomeqw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomneqw((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalsew((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epi16(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtruew((__v8hi)__A, (__v8hi)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomled((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomged((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomeqd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomneqd((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalsed((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epi32(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrued((__v4si)__A, (__v4si)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comlt_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomltq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comle_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomleq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comgt_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgtq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comge_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomgeq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comeq_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomeqq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comneq_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomneqq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comfalse_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomfalseq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128i - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_comtrue_epi64(__m128i __A, __m128i __B) { - return (__m128i)__builtin_ia32_vpcomtrueq((__v2di)__A, (__v2di)__B); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_frcz_ps(__m128 __A) { - return (__m128)__builtin_ia32_vfrczps((__v4sf)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_frcz_pd(__m128d __A) { - return (__m128d)__builtin_ia32_vfrczpd((__v2df)__A); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_frcz_ss(__m128 __A, __m128 __B) { - return (__m128)__builtin_ia32_movss( - (__v4sf)__A, (__v4sf)__builtin_ia32_vfrczss((__v4sf)__B)); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_frcz_sd(__m128d __A, __m128d __B) { - return (__m128d)__builtin_ia32_movsd( - (__v2df)__A, (__v2df)__builtin_ia32_vfrczsd((__v2df)__B)); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_frcz_ps(__m256 __A) { - return (__m256)__builtin_ia32_vfrczps256((__v8sf)__A); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_frcz_pd(__m256d __A) { - return (__m256d)__builtin_ia32_vfrczpd256((__v4df)__A); -} - -extern __inline __m128d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permute2_pd(__m128d __X, __m128d __Y, __m128i __C, const int __I) { - return (__m128d)__builtin_ia32_vpermil2pd((__v2df)__X, (__v2df)__Y, - (__v2di)__C, __I); -} - -extern __inline __m256d - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2_pd(__m256d __X, __m256d __Y, __m256i __C, const int __I) { - return (__m256d)__builtin_ia32_vpermil2pd256((__v4df)__X, (__v4df)__Y, - (__v4di)__C, __I); -} - -extern __inline __m128 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm_permute2_ps(__m128 __X, __m128 __Y, __m128i __C, const int __I) { - return (__m128)__builtin_ia32_vpermil2ps((__v4sf)__X, (__v4sf)__Y, - (__v4si)__C, __I); -} - -extern __inline __m256 - __attribute__((__gnu_inline__, __always_inline__, __artificial__)) - _mm256_permute2_ps(__m256 __X, __m256 __Y, __m256i __C, const int __I) { - return (__m256)__builtin_ia32_vpermil2ps256((__v8sf)__X, (__v8sf)__Y, - (__v8si)__C, __I); -} - -extern _Bool - -wc_lines_avx2(char const *file, int fd, uintmax_t *lines_out, - uintmax_t *bytes_out); - -extern _Bool - -wc_lines_avx2(char const *file, int fd, uintmax_t *lines_out, - uintmax_t *bytes_out) { - __m256i accumulator; - __m256i accumulator2; - __m256i zeroes; - __m256i endlines; - __m256i avx_buf[(16320) / sizeof(__m256i)]; - __m256i *datap; - uintmax_t lines = 0; - uintmax_t bytes = 0; - size_t bytes_read = 0; - - if (!lines_out || !bytes_out) - return 0; - - accumulator = _mm256_setzero_si256(); - accumulator2 = _mm256_setzero_si256(); - zeroes = _mm256_setzero_si256(); - endlines = _mm256_set1_epi8('\n'); - - while ((bytes_read = safe_read(fd, avx_buf, sizeof(avx_buf))) > 0) { - __m256i to_match; - __m256i to_match2; - __m256i matches; - __m256i matches2; - - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } - - bytes += bytes_read; - - datap = avx_buf; - char *end = ((char *)avx_buf) + bytes_read; - - while (bytes_read >= 64) { - to_match = _mm256_load_si256(datap); - to_match2 = _mm256_load_si256(datap + 1); - - matches = _mm256_cmpeq_epi8(to_match, endlines); - matches2 = _mm256_cmpeq_epi8(to_match2, endlines); - - accumulator = _mm256_sub_epi8(accumulator, matches); - accumulator2 = _mm256_sub_epi8(accumulator2, matches2); - - datap += 2; - bytes_read -= 64; - } - - accumulator = _mm256_sad_epu8(accumulator, zeroes); - lines += _mm256_extract_epi16(accumulator, 0) + - _mm256_extract_epi16(accumulator, 4) + - _mm256_extract_epi16(accumulator, 8) + - _mm256_extract_epi16(accumulator, 12); - accumulator = _mm256_setzero_si256(); - - accumulator2 = _mm256_sad_epu8(accumulator2, zeroes); - lines += _mm256_extract_epi16(accumulator2, 0) + - _mm256_extract_epi16(accumulator2, 4) + - _mm256_extract_epi16(accumulator2, 8) + - _mm256_extract_epi16(accumulator2, 12); - accumulator2 = _mm256_setzero_si256(); - - char *p = (char *)datap; - while (p != end) - lines += *p++ == '\n'; - } - - *lines_out = lines; - *bytes_out = bytes; - - return 1; -} diff --git a/tests/source/coreutils/link.c b/tests/source/coreutils/link.c deleted file mode 100644 index 6c4f6d1..0000000 --- a/tests/source/coreutils/link.c +++ /dev/null @@ -1,6865 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext(((void *)0), "Usage: %s FILE1 FILE2\n or: %s OPTION\n", 5) - - , - program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Call the link function to create a link named " - "FILE2 to an existing FILE1.\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("link"); - } - exit(status); -} - -int main(int argc, char **argv) { - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - parse_gnu_standard_options_only(argc, argv, "link", "GNU coreutils", Version, - 1, usage, ("Michael Stone"), - (char const *)((void *)0)); - - if (argc < optind + 2) { - if (argc < optind + 1) - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - else - error(0, 0, dcgettext(((void *)0), "missing operand after %s", 5), - quote(argv[optind])); - usage(1); - } - - if (optind + 2 < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 2])); - usage(1); - } - - if (link(argv[optind], argv[optind + 1]) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot create link %s to %s\", 5), quotearg_n_style (0, " - "shell_escape_always_quoting_style, argv[optind + 1]), " - "quotearg_n_style (1, shell_escape_always_quoting_style, " - "argv[optind])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot create link %s to %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - argv[optind + 1]), - quotearg_n_style(1, shell_escape_always_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot create link %s to %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - argv[optind + 1]), - quotearg_n_style(1, shell_escape_always_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable())))); - - return 0; -} diff --git a/tests/source/coreutils/ln.c b/tests/source/coreutils/ln.c deleted file mode 100644 index 9266017..0000000 --- a/tests/source/coreutils/ln.c +++ /dev/null @@ -1,7622 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum backup_type { - - no_backups, - - simple_backups, - - numbered_existing_backups, - - numbered_backups -}; - -extern char const *simple_backup_suffix; - -void set_simple_backup_suffix(char const *); -char *backup_file_rename(int, char const *, enum backup_type) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -char *find_backup_file_name(int, char const *, enum backup_type) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -enum backup_type get_version(char const *context, char const *arg); -enum backup_type xget_version(char const *context, char const *arg); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int open_safer(char const *, int, ...); -int creat_safer(char const *, mode_t); - -int openat_safer(int, char const *, int, ...); - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); - -extern void record_file(Hash_table *ht, char const *file, - struct stat const *stats) - - __attribute__((__nonnull__(2, 3))) - - ; - -extern _Bool seen_file(Hash_table const *ht, char const *file, - struct stat const *stats); -extern int force_linkat(int, char const *, int, char const *, int, _Bool, int) - __attribute__((__nonnull__)); -extern int force_symlinkat(char const *, int, char const *, _Bool, int) - __attribute__((__nonnull__)); - -struct F_triple { - char *name; - ino_t st_ino; - dev_t st_dev; -}; - -extern size_t triple_hash(void const *x, size_t table_size) - __attribute__((__pure__)); -extern _Bool triple_compare_ino_str(void const *x, void const *y) - __attribute__((__pure__)); -extern void triple_free(void *x); - -extern size_t triple_hash_no_name(void const *x, size_t table_size) - __attribute__((__pure__)); -extern _Bool triple_compare(void const *x, void const *y); - -inline int priv_set_remove_linkdir(void) { return -1; } - -inline int priv_set_restore_linkdir(void) { return -1; } - -extern _Bool - -relpath(char const *can_fname, char const *can_reldir, char *buf, size_t len); - -_Bool same_name(const char *source, const char *dest); - -_Bool same_nameat(int, char const *, int, char const *); - -_Bool yesno(void); - -enum canonicalize_mode_t { - - CAN_EXISTING = 0, - - CAN_ALL_BUT_LAST = 1, - - CAN_MISSING = 2, - - CAN_NOLINKS = 4 -}; -typedef enum canonicalize_mode_t canonicalize_mode_t; -char *canonicalize_filename_mode(const char *, canonicalize_mode_t) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -static enum backup_type backup_type; - -static _Bool symbolic_link; - -static _Bool relative; - -static _Bool logical = !!0; - -static _Bool interactive; - -static _Bool remove_existing_files; - -static _Bool verbose; - -static _Bool hard_dir_link; - -static _Bool beware_hard_dir_link; - -static _Bool dereference_dest_dir_symlinks = 1; - -static Hash_table *dest_set; - -enum { DEST_INFO_INITIAL_CAPACITY = 61 }; - -static struct option const long_options[] = { - {"backup", 2, ((void *)0), 'b'}, - {"directory", 0, ((void *)0), 'F'}, - {"no-dereference", 0, ((void *)0), 'n'}, - {"no-target-directory", 0, ((void *)0), 'T'}, - {"force", 0, ((void *)0), 'f'}, - {"interactive", 0, ((void *)0), 'i'}, - {"suffix", 1, ((void *)0), 'S'}, - {"target-directory", 1, ((void *)0), 't'}, - {"logical", 0, ((void *)0), 'L'}, - {"physical", 0, ((void *)0), 'P'}, - {"relative", 0, ((void *)0), 'r'}, - {"symbolic", 0, ((void *)0), 's'}, - {"verbose", 0, ((void *)0), 'v'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static int errnoize(int status) { - return status < 0 ? (*__errno_location()) : 0; -} - -static char *convert_abs_rel(char const *from, char const *target) { - - char *targetdir = dir_name(target); - - char *realdest = canonicalize_filename_mode(targetdir, CAN_MISSING); - char *realfrom = canonicalize_filename_mode(from, CAN_MISSING); - - char *relative_from = ((void *)0); - if (realdest && realfrom) { - - relative_from = xmalloc(4096); - - if (!relpath(realfrom, realdest, relative_from, 4096)) { - free(relative_from); - relative_from = ((void *)0); - } - } - - free(targetdir); - free(realdest); - free(realfrom); - - return relative_from ? relative_from : xstrdup(from); -} - -static int atomic_link(char const *source, int destdir_fd, - char const *dest_base) { - return ( - symbolic_link - ? (relative ? -1 : errnoize(symlinkat(source, destdir_fd, dest_base))) - : beware_hard_dir_link - ? -1 - : errnoize(linkat(-100, source, destdir_fd, dest_base, - logical ? 0x400 : 0))); -} -static _Bool - -do_link(char const *source, int destdir_fd, char const *dest_base, - char const *dest, int link_errno) { - struct stat source_stats; - int source_status = 1; - char *backup_base = ((void *)0); - char *rel_source = ((void *)0); - int nofollow_flag = logical ? 0 : 0x100; - if (link_errno < 0) - link_errno = atomic_link(source, destdir_fd, dest_base); - - if ((link_errno || dest_set) && !symbolic_link) { - source_status = fstatat(-100, source, &source_stats, nofollow_flag); - if (source_status != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to access %s", 5), - quotearg_style(shell_escape_always_quoting_style, source)); - return 0; - } - } - - if (link_errno) { - if (!symbolic_link && !hard_dir_link && - ((((source_stats.st_mode)) & 0170000) == (0040000))) { - error( - 0, 0, - dcgettext(((void *)0), "%s: hard link not allowed for directory", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, source)); - return 0; - } - - if (relative) - source = rel_source = convert_abs_rel(source, dest); - - _Bool force = - (remove_existing_files || interactive || backup_type != no_backups); - if (force) { - struct stat dest_stats; - if (fstatat(destdir_fd, dest_base, &dest_stats, 0x100) != 0) { - if ((*__errno_location()) != 2) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to access %s", 5), - quotearg_style(shell_escape_always_quoting_style, dest)); - goto fail; - } - force = 0; - } else if (((((dest_stats.st_mode)) & 0170000) == (0040000))) { - error(0, 0, dcgettext(((void *)0), "%s: cannot overwrite directory", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, dest)); - goto fail; - } else if (seen_file(dest_set, dest, &dest_stats)) { - - error(0, 0, - - dcgettext(((void *)0), - "will not overwrite just-created %s with %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, dest), - quotearg_n_style(1, shell_escape_always_quoting_style, source)); - goto fail; - } else { - - if (backup_type != no_backups ? !symbolic_link - : remove_existing_files) { - - if (source_status != 0) - source_status = stat(source, &source_stats); - if (source_status == 0 && - ((source_stats).st_ino == (dest_stats).st_ino && - (source_stats).st_dev == (dest_stats).st_dev) && - (source_stats.st_nlink == 1 || - same_nameat(-100, source, destdir_fd, dest_base))) { - error( - 0, 0, dcgettext(((void *)0), "%s and %s are the same file", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, source), - quotearg_n_style(1, shell_escape_always_quoting_style, dest)); - goto fail; - } - } - - if (link_errno < 0 || link_errno == 17) { - if (interactive) { - fprintf(stderr, dcgettext(((void *)0), "%s: replace %s? ", 5), - program_name, - quotearg_style(shell_escape_always_quoting_style, dest)); - if (!yesno()) { - free(rel_source); - return 1; - } - } - - if (backup_type != no_backups) { - backup_base = - find_backup_file_name(destdir_fd, dest_base, backup_type); - if (renameat(destdir_fd, dest_base, destdir_fd, backup_base) != 0) { - int rename_errno = (*__errno_location()); - free(backup_base); - backup_base = ((void *)0); - if (rename_errno != 2) { - error(0, rename_errno, - dcgettext(((void *)0), "cannot backup %s", 5), - quotearg_style(shell_escape_always_quoting_style, dest)); - goto fail; - } - force = 0; - } - } - } - } - } - link_errno = - (symbolic_link - ? force_symlinkat(source, destdir_fd, dest_base, force, link_errno) - : force_linkat(-100, source, destdir_fd, dest_base, - logical ? 0x400 : 0, force, link_errno)); - } - - if (link_errno <= 0) { - - if (!symbolic_link) - record_file(dest_set, dest, &source_stats); - - if (verbose) { - char const *quoted_backup = ""; - char const *backup_sep = ""; - if (backup_base) { - char *backup = backup_base; - void *alloc = ((void *)0); - ptrdiff_t destdirlen = dest_base - dest; - if (0 < destdirlen) { - alloc = xmalloc(destdirlen + strlen(backup_base) + 1); - backup = memcpy(alloc, dest, destdirlen); - strcpy(backup + destdirlen, backup_base); - } - quoted_backup = - quotearg_n_style(2, shell_escape_always_quoting_style, backup); - backup_sep = " ~ "; - free(alloc); - } - printf("%s%s%s %c> %s\n", quoted_backup, backup_sep, - quotearg_n_style(0, shell_escape_always_quoting_style, dest), - symbolic_link ? '-' : '=', - quotearg_n_style(1, shell_escape_always_quoting_style, source)); - } - } else { - error(0, link_errno, - (symbolic_link - ? (link_errno != 36 && *source - ? dcgettext(((void *)0), - "failed to create symbolic link %s", 5) - - : dcgettext(((void *)0), - "failed to create symbolic link %s -> %s", 5)) - : (link_errno == 31 - - ? dcgettext(((void *)0), - "failed to create hard link to %.0s%s", 5) - - : (link_errno == 122 || link_errno == 17 - - || link_errno == 28 || link_errno == 30) - ? dcgettext(((void *)0), - "failed to create hard link %s", 5) - - : dcgettext(((void *)0), - "failed to create hard link %s => %s", - 5))), - quotearg_n_style(0, shell_escape_always_quoting_style, dest), - quotearg_n_style(1, shell_escape_always_quoting_style, source)); - - if (backup_base) { - if (renameat(destdir_fd, backup_base, destdir_fd, dest_base) != 0) - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot un-backup %s", 5), - quotearg_style(shell_escape_always_quoting_style, dest)); - } - } - - free(backup_base); - free(rel_source); - return link_errno <= 0; - -fail: - free(rel_source); - return 0; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext(((void *)0), - "Usage: %s [OPTION]... [-T] TARGET LINK_NAME\n or: %s " - "[OPTION]... TARGET\n or: %s [OPTION]... TARGET... " - "DIRECTORY\n or: %s [OPTION]... -t DIRECTORY TARGET...\n", - 5) - - , - program_name, program_name, program_name, program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "In the 1st form, create a link to TARGET with the name " - "LINK_NAME.\nIn the 2nd form, create a link to TARGET in the " - "current directory.\nIn the 3rd and 4th forms, create links to " - "each TARGET in DIRECTORY.\nCreate hard links by default, symbolic " - "links with --symbolic.\nBy default, each destination (name of new " - "link) should not already exist.\nWhen creating hard links, each " - "TARGET must exist. Symbolic links\ncan hold arbitrary text; if " - "later resolved, a relative link is\ninterpreted in relation to " - "its parent directory.\n", - 5), - stdout); - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " --backup[=CONTROL] make a backup of each existing " - "destination file\n -b like --backup but " - "does not accept an argument\n -d, -F, --directory allow " - "the superuser to attempt to hard link\n " - " directories (note: will probably fail due to\n " - " system restrictions, even for the superuser)\n " - "-f, --force remove existing destination files\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -i, --interactive prompt whether to remove " - "destinations\n -L, --logical dereference " - "TARGETs that are symbolic links\n -n, --no-dereference " - " treat LINK_NAME as a normal file if\n " - " it is a symbolic link to a directory\n -P, " - "--physical make hard links directly to " - "symbolic links\n -r, --relative with -s, " - "create links relative to link location\n -s, --symbolic " - " make symbolic links instead of hard links\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -S, --suffix=SUFFIX override the usual backup suffix\n " - "-t, --target-directory=DIRECTORY specify the DIRECTORY in which " - "to create\n the links\n -T, " - "--no-target-directory treat LINK_NAME as a normal file always\n " - " -v, --verbose print name of each linked file\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_backup_suffix_note(); - printf(dcgettext(((void *)0), - "\nUsing -s ignores -L and -P. Otherwise, the last " - "option specified controls\nbehavior when a TARGET is a " - "symbolic link, defaulting to %s.\n", - 5) - - , - 0 ? "-L" : "-P"); - emit_ancillary_info("ln"); - } - exit(status); -} - -int main(int argc, char **argv) { - int c; - - _Bool ok; - - _Bool make_backups = 0; - char const *backup_suffix = ((void *)0); - char *version_control_string = ((void *)0); - char const *target_directory = ((void *)0); - int destdir_fd; - - _Bool no_target_directory = 0; - int n_files; - char **file; - int link_errno = -1; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdin); - - symbolic_link = remove_existing_files = interactive = verbose = - hard_dir_link = 0; - - while ((c = getopt_long(argc, argv, "bdfinrst:vFLPS:T", long_options, - ((void *)0))) != -1) { - switch (c) { - case 'b': - make_backups = 1; - if (optarg) - version_control_string = optarg; - break; - case 'd': - case 'F': - hard_dir_link = 1; - break; - case 'f': - remove_existing_files = 1; - interactive = 0; - break; - case 'i': - remove_existing_files = 0; - interactive = 1; - break; - case 'L': - logical = 1; - break; - case 'n': - dereference_dest_dir_symlinks = 0; - break; - case 'P': - logical = 0; - break; - case 'r': - relative = 1; - break; - case 's': - symbolic_link = 1; - break; - case 't': - if (target_directory) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "target directories specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "multiple target directories specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "multiple target directories specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - else { - struct stat st; - if (stat(optarg, &st) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to access %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to access %s", 5), - quotearg_style(shell_escape_always_quoting_style, - optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to access %s", 5), - quotearg_style(shell_escape_always_quoting_style, - optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (!((((st.st_mode)) & 0170000) == (0040000))) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"target %s is not a " - "directory\", 5), quotearg_style " - "(shell_escape_always_quoting_style, optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "target %s is not a directory", - 5), - quotearg_style(shell_escape_always_quoting_style, - optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "target %s is not a directory", - 5), - quotearg_style(shell_escape_always_quoting_style, - optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - target_directory = optarg; - break; - case 'T': - no_target_directory = 1; - break; - case 'v': - verbose = 1; - break; - case 'S': - make_backups = 1; - backup_suffix = optarg; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "ln", "GNU coreutils", Version, ("Mike Parker"), - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - break; - } - } - - n_files = argc - optind; - file = argv + optind; - - if (n_files <= 0) { - error(0, 0, dcgettext(((void *)0), "missing file operand", 5)); - usage(1); - } - - if (relative && !symbolic_link) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot do " - "--relative without --symbolic\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot do --relative without --symbolic", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot do --relative without --symbolic", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (!hard_dir_link) { - priv_set_remove_linkdir(); - beware_hard_dir_link = !1; - } - - if (no_target_directory) { - if (target_directory) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot " - "combine --target-directory \" \"and " - "--no-target-directory\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot combine --target-directory " - "and --no-target-directory", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot combine --target-directory " - "and --no-target-directory", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - if (n_files != 2) { - if (n_files < 2) - error(0, 0, - - dcgettext(((void *)0), - "missing destination file operand after %s", 5), - quotearg_style(shell_escape_always_quoting_style, file[0])); - else - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quotearg_style(shell_escape_always_quoting_style, file[2])); - usage(1); - } - } else if (n_files < 2 && !target_directory) { - target_directory = "."; - destdir_fd = -100; - } else { - if (n_files == 2 && !target_directory) - link_errno = atomic_link(file[0], -100, file[1]); - if (link_errno < 0 || link_errno == 17 || link_errno == 20 - - || link_errno == 22) { - char const *d = target_directory ? target_directory : file[n_files - 1]; - int flags = (O_PATHSEARCH | 0200000 - - | (dereference_dest_dir_symlinks ? 0 : 0400000)); - destdir_fd = openat_safer(-100, d, flags); - int err = (*__errno_location()); - if (!0200000 && 0 <= destdir_fd) { - struct stat st; - err = (fstat(destdir_fd, &st) != 0 ? (*__errno_location()) - - : ((((st.st_mode)) & 0170000) == (0040000)) ? 0 - : 20); - if (err != 0) { - close(destdir_fd); - destdir_fd = -1; - } - } - if (0 <= destdir_fd) { - n_files -= !target_directory; - target_directory = d; - } else if (!(n_files == 2 && !target_directory)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, err, dcgettext (((void *)0), \"target %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, d)), " - "assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, err, dcgettext(((void *)0), "target %s", 5), - quotearg_style(shell_escape_always_quoting_style, d)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, err, dcgettext(((void *)0), "target %s", 5), - quotearg_style(shell_escape_always_quoting_style, d)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } - - backup_type = - (make_backups ? xget_version(dcgettext(((void *)0), "backup type", 5), - version_control_string) - : no_backups); - set_simple_backup_suffix(backup_suffix); - - if (target_directory) { - - if (2 <= n_files && remove_existing_files - - && !symbolic_link - - && backup_type != numbered_backups) { - dest_set = hash_initialize(DEST_INFO_INITIAL_CAPACITY, - - ((void *)0), triple_hash, triple_compare, - triple_free); - if (dest_set == ((void *)0)) - xalloc_die(); - } - - ok = 1; - for (int i = 0; i < n_files; ++i) { - char *dest_base; - char *dest = file_name_concat(target_directory, last_component(file[i]), - &dest_base); - strip_trailing_slashes(dest_base); - ok &= do_link(file[i], destdir_fd, dest_base, dest, -1); - free(dest); - } - } else - ok = do_link(file[0], -100, file[1], file[1], link_errno); - - exit(ok ? 0 : 1); -} diff --git a/tests/source/coreutils/logname.c b/tests/source/coreutils/logname.c deleted file mode 100644 index 310a82d..0000000 --- a/tests/source/coreutils/logname.c +++ /dev/null @@ -1,6839 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]\n", 5), program_name); - fputs_unlocked( - dcgettext(((void *)0), "Print the user's login name.\n\n", 5), stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("logname"); - } - exit(status); -} - -int main(int argc, char **argv) { - char *cp; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - parse_gnu_standard_options_only(argc, argv, "logname", "GNU coreutils", - Version, 1, usage, ("FIXME: unknown"), - (char const *)((void *)0)); - - if (optind < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind])); - usage(1); - } - - cp = getlogin(); - if (!cp) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"no login " - "name\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "no login name", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "no login name", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - puts(cp); - return 0; -} diff --git a/tests/source/coreutils/ls-dir.c b/tests/source/coreutils/ls-dir.c deleted file mode 100644 index 9e5bbdd..0000000 --- a/tests/source/coreutils/ls-dir.c +++ /dev/null @@ -1,2 +0,0 @@ -extern int ls_mode; -int ls_mode = 2; diff --git a/tests/source/coreutils/ls-ls.c b/tests/source/coreutils/ls-ls.c deleted file mode 100644 index ab94991..0000000 --- a/tests/source/coreutils/ls-ls.c +++ /dev/null @@ -1,2 +0,0 @@ -extern int ls_mode; -int ls_mode = 1; diff --git a/tests/source/coreutils/ls-vdir.c b/tests/source/coreutils/ls-vdir.c deleted file mode 100644 index 73e140b..0000000 --- a/tests/source/coreutils/ls-vdir.c +++ /dev/null @@ -1,2 +0,0 @@ -extern int ls_mode; -int ls_mode = 3; diff --git a/tests/source/coreutils/ls.c b/tests/source/coreutils/ls.c deleted file mode 100644 index 485e67c..0000000 --- a/tests/source/coreutils/ls.c +++ /dev/null @@ -1,15377 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -typedef unsigned char cc_t; -typedef unsigned int speed_t; -typedef unsigned int tcflag_t; - -struct termios { - tcflag_t c_iflag; - tcflag_t c_oflag; - tcflag_t c_cflag; - tcflag_t c_lflag; - cc_t c_line; - cc_t c_cc[32]; - speed_t c_ispeed; - speed_t c_ospeed; -}; - -extern speed_t cfgetospeed(const struct termios *__termios_p) - __attribute__((__nothrow__, __leaf__)); - -extern speed_t cfgetispeed(const struct termios *__termios_p) - __attribute__((__nothrow__, __leaf__)); - -extern int cfsetospeed(struct termios *__termios_p, speed_t __speed) - __attribute__((__nothrow__, __leaf__)); - -extern int cfsetispeed(struct termios *__termios_p, speed_t __speed) - __attribute__((__nothrow__, __leaf__)); - -extern int cfsetspeed(struct termios *__termios_p, speed_t __speed) - __attribute__((__nothrow__, __leaf__)); - -extern int tcgetattr(int __fd, struct termios *__termios_p) - __attribute__((__nothrow__, __leaf__)); - -extern int tcsetattr(int __fd, int __optional_actions, - const struct termios *__termios_p) - __attribute__((__nothrow__, __leaf__)); - -extern void cfmakeraw(struct termios *__termios_p) - __attribute__((__nothrow__, __leaf__)); - -extern int tcsendbreak(int __fd, int __duration) - __attribute__((__nothrow__, __leaf__)); - -extern int tcdrain(int __fd); - -extern int tcflush(int __fd, int __queue_selector) - __attribute__((__nothrow__, __leaf__)); - -extern int tcflow(int __fd, int __action) - __attribute__((__nothrow__, __leaf__)); - -extern __pid_t tcgetsid(int __fd) __attribute__((__nothrow__, __leaf__)); - -struct winsize { - unsigned short int ws_row; - unsigned short int ws_col; - unsigned short int ws_xpixel; - unsigned short int ws_ypixel; -}; - -struct termio { - unsigned short int c_iflag; - unsigned short int c_oflag; - unsigned short int c_cflag; - unsigned short int c_lflag; - unsigned char c_line; - unsigned char c_cc[8]; -}; - -extern int ioctl(int __fd, unsigned long int __request, ...) - __attribute__((__nothrow__, __leaf__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -typedef long int __jmp_buf[8]; -struct __jmp_buf_tag { - - __jmp_buf __jmpbuf; - int __mask_was_saved; - __sigset_t __saved_mask; -}; - -typedef struct __jmp_buf_tag jmp_buf[1]; - -extern int setjmp(jmp_buf __env) __attribute__((__nothrow__)); - -extern int __sigsetjmp(struct __jmp_buf_tag __env[1], int __savemask) - __attribute__((__nothrow__)); - -extern int _setjmp(struct __jmp_buf_tag __env[1]) __attribute__((__nothrow__)); -extern void longjmp(struct __jmp_buf_tag __env[1], int __val) - __attribute__((__nothrow__)) __attribute__((__noreturn__)); - -extern void _longjmp(struct __jmp_buf_tag __env[1], int __val) - __attribute__((__nothrow__)) __attribute__((__noreturn__)); - -typedef struct __jmp_buf_tag sigjmp_buf[1]; -extern void siglongjmp(sigjmp_buf __env, int __val) __attribute__((__nothrow__)) -__attribute__((__noreturn__)); - -extern void longjmp(struct __jmp_buf_tag __env[1], - int __val) __asm__("" - "__longjmp_chk") - __attribute__((__nothrow__)) - - __attribute__((__noreturn__)); -extern void _longjmp(struct __jmp_buf_tag __env[1], - int __val) __asm__("" - "__longjmp_chk") - __attribute__((__nothrow__)) - - __attribute__((__noreturn__)); -extern void siglongjmp(struct __jmp_buf_tag __env[1], - int __val) __asm__("" - "__longjmp_chk") - __attribute__((__nothrow__)) - - __attribute__((__noreturn__)); - -struct passwd { - char *pw_name; - char *pw_passwd; - - __uid_t pw_uid; - __gid_t pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; -extern void setpwent(void); - -extern void endpwent(void); - -extern struct passwd *getpwent(void); -extern struct passwd *fgetpwent(FILE *__stream) __attribute__((__nonnull__(1))); - -extern int putpwent(const struct passwd *__restrict __p, FILE *__restrict __f); - -extern struct passwd *getpwuid(__uid_t __uid); - -extern struct passwd *getpwnam(const char *__name) - __attribute__((__nonnull__(1))); -extern int getpwent_r(struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 4))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpwuid_r(__uid_t __uid, struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int getpwnam_r(const char *__restrict __name, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int fgetpwent_r(FILE *__restrict __stream, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int getpw(__uid_t __uid, char *__buffer); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); - -typedef unsigned int wint_t; - -typedef __mbstate_t mbstate_t; - -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -struct tm; - -extern wchar_t *wcscpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcscat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int wcscmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcsncmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcscasecmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int wcscasecmp_l(const wchar_t *__s1, const wchar_t *__s2, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp_l(const wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll_l(const wchar_t *__s1, const wchar_t *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm_l(wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcsdup(const wchar_t *__s) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(__builtin_free, 1))); -extern wchar_t *wcschr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsrchr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcschrnul(const wchar_t *__s, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcscspn(const wchar_t *__wcs, const wchar_t *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsspn(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcspbrk(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsstr(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcstok(wchar_t *__restrict __s, - const wchar_t *__restrict __delim, - wchar_t **__restrict __ptr) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcslen(const wchar_t *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); -extern wchar_t *wcswcs(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsnlen(const wchar_t *__s, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wmemchr(const wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern int wmemcmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wmemcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemset(wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmempcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t btowc(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int wctob(wint_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int mbsinit(const mbstate_t *__ps) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); - -extern size_t mbrtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n, mbstate_t *__restrict __p) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcrtomb(char *__restrict __s, wchar_t __wc, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t __mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbsrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbsnrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsnrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern int wcwidth(wchar_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int wcswidth(const wchar_t *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern double wcstod(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long double wcstold(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long int wcstol(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoq(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstouq(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -extern long int wcstol_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull_l(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern double wcstod_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern long double wcstold_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *wcpcpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcpncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern __FILE *open_wmemstream(wchar_t **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(rpl_fclose, 1))); - -extern int fwide(__FILE *__fp, int __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fwprintf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wprintf(const wchar_t *__restrict __format, ...); - -extern int swprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwprintf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwprintf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wscanf(const wchar_t *__restrict __format, ...); - -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_fwscanf") - - ; -extern int wscanf(const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_wscanf") - - ; -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_swscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwscanf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfwscanf") - - ; -extern int vwscanf(const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vwscanf") - - ; -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vswscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wint_t fgetwc(__FILE *__stream); -extern wint_t getwc(__FILE *__stream); - -extern wint_t getwchar(void); - -extern wint_t fputwc(wchar_t __wc, __FILE *__stream); -extern wint_t putwc(wchar_t __wc, __FILE *__stream); - -extern wint_t putwchar(wchar_t __wc); - -extern wchar_t *fgetws(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws(const wchar_t *__restrict __ws, __FILE *__restrict __stream); - -extern wint_t ungetwc(wint_t __wc, __FILE *__stream); -extern wint_t getwc_unlocked(__FILE *__stream); -extern wint_t getwchar_unlocked(void); - -extern wint_t fgetwc_unlocked(__FILE *__stream); - -extern wint_t fputwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwchar_unlocked(wchar_t __wc); -extern wchar_t *fgetws_unlocked(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws_unlocked(const wchar_t *__restrict __ws, - __FILE *__restrict __stream); - -extern size_t wcsftime(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsftime_l(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *__wmemcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmemcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmemcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemmove_chk(wchar_t *__s1, const wchar_t *__s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemmove_alias(wchar_t *__s1, const wchar_t *__s2, - size_t __n) __asm__("" - "wmemmove") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemmove_chk_warn(wchar_t *__s1, const wchar_t *__s2, - size_t __n, - size_t __ns1) __asm__("" - "__wmemmove_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemmove called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemmove_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmempcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmempcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmempcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmempcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmempcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmempcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmempcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmempcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemset_chk(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_alias(wchar_t *__s, wchar_t __c, - size_t __n) __asm__("" - "wmemset") - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_chk_warn(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) __asm__("" - "__wmemset_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemset called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemset(wchar_t *__s, wchar_t __c, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_alias(__s, __c, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_chk_warn(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))) - : __wmemset_chk(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscpy_alias(__dest, __src); -} - -extern wchar_t *__wcpcpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcpcpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcpcpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpcpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcpcpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcpcpy_alias(__dest, __src); -} - -extern wchar_t *__wcsncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcsncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcsncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcsncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcsncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcpncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcpncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcpncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcpncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcpncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcpncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcpncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscat(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscat_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscat_alias(__dest, __src); -} - -extern wchar_t *__wcsncat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncat(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcsncat_chk(__dest, __src, __n, sz / sizeof(wchar_t)); - return __wcsncat_alias(__dest, __src, __n); -} - -extern int __swprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int __swprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - ...) __asm__("" - "swprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -swprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - ...) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __swprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, - __builtin_va_arg_pack()); - return __swprintf_alias(__s, __n, __fmt, __builtin_va_arg_pack()); -} -extern int __vswprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int __vswprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) __asm__("" - "vswprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -vswprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __vswprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, __ap); - return __vswprintf_alias(__s, __n, __fmt, __ap); -} - -extern int __fwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, ...); -extern int __wprintf_chk(int __flag, const wchar_t *__restrict __format, ...); -extern int __vfwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, - __gnuc_va_list __ap); -extern int __vwprintf_chk(int __flag, const wchar_t *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -wprintf(const wchar_t *__restrict __fmt, ...) { - return __wprintf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) { - return __fwprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vwprintf(const wchar_t *__restrict __fmt, __gnuc_va_list __ap) { - return __vwprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfwprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern wchar_t *__fgetws_chk(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws") - - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_chk_warn(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgetws called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern wchar_t *__fgetws_unlocked_chk(wchar_t *__restrict __s, size_t __size, - int __n, __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_unlocked_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws_unlocked") - - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_unlocked_chk_warn( - wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgetws_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws_unlocked(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_unlocked_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern size_t __wcrtomb_chk(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __p, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern size_t __wcrtomb_alias(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __ps) __asm__("" - "wcrtomb") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcrtomb(char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) - -{ - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wcrtomb_chk(__s, __wchar, __ps, __builtin_object_size(__s, 2 > 1)); - return __wcrtomb_alias(__s, __wchar, __ps); -} - -extern size_t __mbsrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __mbsrtowcs_alias(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_chk_warn(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsrtowcs_chk(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __wcsrtombs_alias(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __wcsrtombs_chk_warn(char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_chk_warn(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsrtombs_chk(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern size_t __mbsnrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__mbsnrtowcs_alias(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsnrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsnrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsnrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsnrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsnrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_alias(__dst, __src, __nmc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_chk_warn(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsnrtowcs_chk(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsnrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__wcsnrtombs_alias(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsnrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t -__wcsnrtombs_chk_warn(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsnrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsnrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsnrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_alias(__dst, __src, __nwc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_chk_warn(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsnrtombs_chk(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrtowc(wchar_t *__restrict__ pwc, const char *__restrict__ s, - size_t n, mbstate_t *__restrict__ ps) - - ; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrlen(const char *__restrict__ s, size_t n, - mbstate_t *__restrict__ ps); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef void *nl_catd; - -typedef int nl_item; - -extern nl_catd catopen(const char *__cat_name, int __flag) - __attribute__((__nonnull__(1))); - -extern char *catgets(nl_catd __catalog, int __set, int __number, - const char *__string) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int catclose(nl_catd __catalog) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -enum { - - ABDAY_1 = (((2) << 16) | (0)), - - ABDAY_2, - - ABDAY_3, - - ABDAY_4, - - ABDAY_5, - - ABDAY_6, - - ABDAY_7, - - DAY_1, - - DAY_2, - - DAY_3, - - DAY_4, - - DAY_5, - - DAY_6, - - DAY_7, - - ABMON_1, - - ABMON_2, - - ABMON_3, - - ABMON_4, - - ABMON_5, - - ABMON_6, - - ABMON_7, - - ABMON_8, - - ABMON_9, - - ABMON_10, - - ABMON_11, - - ABMON_12, - - MON_1, - - MON_2, - - MON_3, - - MON_4, - - MON_5, - - MON_6, - - MON_7, - - MON_8, - - MON_9, - - MON_10, - - MON_11, - - MON_12, - - AM_STR, - - PM_STR, - - D_T_FMT, - - D_FMT, - - T_FMT, - - T_FMT_AMPM, - - ERA, - - __ERA_YEAR, - - ERA_D_FMT, - - ALT_DIGITS, - - ERA_D_T_FMT, - - ERA_T_FMT, - - _NL_TIME_ERA_NUM_ENTRIES, - _NL_TIME_ERA_ENTRIES, - - _NL_WABDAY_1, - _NL_WABDAY_2, - _NL_WABDAY_3, - _NL_WABDAY_4, - _NL_WABDAY_5, - _NL_WABDAY_6, - _NL_WABDAY_7, - - _NL_WDAY_1, - _NL_WDAY_2, - _NL_WDAY_3, - _NL_WDAY_4, - _NL_WDAY_5, - _NL_WDAY_6, - _NL_WDAY_7, - - _NL_WABMON_1, - _NL_WABMON_2, - _NL_WABMON_3, - _NL_WABMON_4, - _NL_WABMON_5, - _NL_WABMON_6, - _NL_WABMON_7, - _NL_WABMON_8, - _NL_WABMON_9, - _NL_WABMON_10, - _NL_WABMON_11, - _NL_WABMON_12, - - _NL_WMON_1, - _NL_WMON_2, - _NL_WMON_3, - _NL_WMON_4, - _NL_WMON_5, - _NL_WMON_6, - _NL_WMON_7, - _NL_WMON_8, - _NL_WMON_9, - _NL_WMON_10, - _NL_WMON_11, - _NL_WMON_12, - - _NL_WAM_STR, - _NL_WPM_STR, - - _NL_WD_T_FMT, - _NL_WD_FMT, - _NL_WT_FMT, - _NL_WT_FMT_AMPM, - - _NL_WERA_YEAR, - _NL_WERA_D_FMT, - _NL_WALT_DIGITS, - _NL_WERA_D_T_FMT, - _NL_WERA_T_FMT, - - _NL_TIME_WEEK_NDAYS, - _NL_TIME_WEEK_1STDAY, - _NL_TIME_WEEK_1STWEEK, - _NL_TIME_FIRST_WEEKDAY, - _NL_TIME_FIRST_WORKDAY, - _NL_TIME_CAL_DIRECTION, - _NL_TIME_TIMEZONE, - - _DATE_FMT, - - _NL_W_DATE_FMT, - - _NL_TIME_CODESET, - - __ALTMON_1, - __ALTMON_2, - __ALTMON_3, - __ALTMON_4, - __ALTMON_5, - __ALTMON_6, - __ALTMON_7, - __ALTMON_8, - __ALTMON_9, - __ALTMON_10, - __ALTMON_11, - __ALTMON_12, - _NL_WALTMON_1, - _NL_WALTMON_2, - _NL_WALTMON_3, - _NL_WALTMON_4, - _NL_WALTMON_5, - _NL_WALTMON_6, - _NL_WALTMON_7, - _NL_WALTMON_8, - _NL_WALTMON_9, - _NL_WALTMON_10, - _NL_WALTMON_11, - _NL_WALTMON_12, - - _NL_ABALTMON_1, - _NL_ABALTMON_2, - _NL_ABALTMON_3, - _NL_ABALTMON_4, - _NL_ABALTMON_5, - _NL_ABALTMON_6, - _NL_ABALTMON_7, - _NL_ABALTMON_8, - _NL_ABALTMON_9, - _NL_ABALTMON_10, - _NL_ABALTMON_11, - _NL_ABALTMON_12, - - _NL_WABALTMON_1, - _NL_WABALTMON_2, - _NL_WABALTMON_3, - _NL_WABALTMON_4, - _NL_WABALTMON_5, - _NL_WABALTMON_6, - _NL_WABALTMON_7, - _NL_WABALTMON_8, - _NL_WABALTMON_9, - _NL_WABALTMON_10, - _NL_WABALTMON_11, - _NL_WABALTMON_12, - - _NL_NUM_LC_TIME, - - _NL_COLLATE_NRULES = (((3) << 16) | (0)), - _NL_COLLATE_RULESETS, - _NL_COLLATE_TABLEMB, - _NL_COLLATE_WEIGHTMB, - _NL_COLLATE_EXTRAMB, - _NL_COLLATE_INDIRECTMB, - _NL_COLLATE_GAP1, - _NL_COLLATE_GAP2, - _NL_COLLATE_GAP3, - _NL_COLLATE_TABLEWC, - _NL_COLLATE_WEIGHTWC, - _NL_COLLATE_EXTRAWC, - _NL_COLLATE_INDIRECTWC, - _NL_COLLATE_SYMB_HASH_SIZEMB, - _NL_COLLATE_SYMB_TABLEMB, - _NL_COLLATE_SYMB_EXTRAMB, - _NL_COLLATE_COLLSEQMB, - _NL_COLLATE_COLLSEQWC, - _NL_COLLATE_CODESET, - _NL_NUM_LC_COLLATE, - - _NL_CTYPE_CLASS = (((0) << 16) | (0)), - _NL_CTYPE_TOUPPER, - _NL_CTYPE_GAP1, - _NL_CTYPE_TOLOWER, - _NL_CTYPE_GAP2, - _NL_CTYPE_CLASS32, - _NL_CTYPE_GAP3, - _NL_CTYPE_GAP4, - _NL_CTYPE_GAP5, - _NL_CTYPE_GAP6, - _NL_CTYPE_CLASS_NAMES, - _NL_CTYPE_MAP_NAMES, - _NL_CTYPE_WIDTH, - _NL_CTYPE_MB_CUR_MAX, - _NL_CTYPE_CODESET_NAME, - CODESET = _NL_CTYPE_CODESET_NAME, - - _NL_CTYPE_TOUPPER32, - _NL_CTYPE_TOLOWER32, - _NL_CTYPE_CLASS_OFFSET, - _NL_CTYPE_MAP_OFFSET, - _NL_CTYPE_INDIGITS_MB_LEN, - _NL_CTYPE_INDIGITS0_MB, - _NL_CTYPE_INDIGITS1_MB, - _NL_CTYPE_INDIGITS2_MB, - _NL_CTYPE_INDIGITS3_MB, - _NL_CTYPE_INDIGITS4_MB, - _NL_CTYPE_INDIGITS5_MB, - _NL_CTYPE_INDIGITS6_MB, - _NL_CTYPE_INDIGITS7_MB, - _NL_CTYPE_INDIGITS8_MB, - _NL_CTYPE_INDIGITS9_MB, - _NL_CTYPE_INDIGITS_WC_LEN, - _NL_CTYPE_INDIGITS0_WC, - _NL_CTYPE_INDIGITS1_WC, - _NL_CTYPE_INDIGITS2_WC, - _NL_CTYPE_INDIGITS3_WC, - _NL_CTYPE_INDIGITS4_WC, - _NL_CTYPE_INDIGITS5_WC, - _NL_CTYPE_INDIGITS6_WC, - _NL_CTYPE_INDIGITS7_WC, - _NL_CTYPE_INDIGITS8_WC, - _NL_CTYPE_INDIGITS9_WC, - _NL_CTYPE_OUTDIGIT0_MB, - _NL_CTYPE_OUTDIGIT1_MB, - _NL_CTYPE_OUTDIGIT2_MB, - _NL_CTYPE_OUTDIGIT3_MB, - _NL_CTYPE_OUTDIGIT4_MB, - _NL_CTYPE_OUTDIGIT5_MB, - _NL_CTYPE_OUTDIGIT6_MB, - _NL_CTYPE_OUTDIGIT7_MB, - _NL_CTYPE_OUTDIGIT8_MB, - _NL_CTYPE_OUTDIGIT9_MB, - _NL_CTYPE_OUTDIGIT0_WC, - _NL_CTYPE_OUTDIGIT1_WC, - _NL_CTYPE_OUTDIGIT2_WC, - _NL_CTYPE_OUTDIGIT3_WC, - _NL_CTYPE_OUTDIGIT4_WC, - _NL_CTYPE_OUTDIGIT5_WC, - _NL_CTYPE_OUTDIGIT6_WC, - _NL_CTYPE_OUTDIGIT7_WC, - _NL_CTYPE_OUTDIGIT8_WC, - _NL_CTYPE_OUTDIGIT9_WC, - _NL_CTYPE_TRANSLIT_TAB_SIZE, - _NL_CTYPE_TRANSLIT_FROM_IDX, - _NL_CTYPE_TRANSLIT_FROM_TBL, - _NL_CTYPE_TRANSLIT_TO_IDX, - _NL_CTYPE_TRANSLIT_TO_TBL, - _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN, - _NL_CTYPE_TRANSLIT_DEFAULT_MISSING, - _NL_CTYPE_TRANSLIT_IGNORE_LEN, - _NL_CTYPE_TRANSLIT_IGNORE, - _NL_CTYPE_MAP_TO_NONASCII, - _NL_CTYPE_NONASCII_CASE, - _NL_CTYPE_EXTRA_MAP_1, - _NL_CTYPE_EXTRA_MAP_2, - _NL_CTYPE_EXTRA_MAP_3, - _NL_CTYPE_EXTRA_MAP_4, - _NL_CTYPE_EXTRA_MAP_5, - _NL_CTYPE_EXTRA_MAP_6, - _NL_CTYPE_EXTRA_MAP_7, - _NL_CTYPE_EXTRA_MAP_8, - _NL_CTYPE_EXTRA_MAP_9, - _NL_CTYPE_EXTRA_MAP_10, - _NL_CTYPE_EXTRA_MAP_11, - _NL_CTYPE_EXTRA_MAP_12, - _NL_CTYPE_EXTRA_MAP_13, - _NL_CTYPE_EXTRA_MAP_14, - _NL_NUM_LC_CTYPE, - - __INT_CURR_SYMBOL = (((4) << 16) | (0)), - - __CURRENCY_SYMBOL, - - __MON_DECIMAL_POINT, - - __MON_THOUSANDS_SEP, - - __MON_GROUPING, - - __POSITIVE_SIGN, - - __NEGATIVE_SIGN, - - __INT_FRAC_DIGITS, - - __FRAC_DIGITS, - - __P_CS_PRECEDES, - - __P_SEP_BY_SPACE, - - __N_CS_PRECEDES, - - __N_SEP_BY_SPACE, - - __P_SIGN_POSN, - - __N_SIGN_POSN, - - _NL_MONETARY_CRNCYSTR, - - __INT_P_CS_PRECEDES, - - __INT_P_SEP_BY_SPACE, - - __INT_N_CS_PRECEDES, - - __INT_N_SEP_BY_SPACE, - - __INT_P_SIGN_POSN, - - __INT_N_SIGN_POSN, - - _NL_MONETARY_DUO_INT_CURR_SYMBOL, - _NL_MONETARY_DUO_CURRENCY_SYMBOL, - _NL_MONETARY_DUO_INT_FRAC_DIGITS, - _NL_MONETARY_DUO_FRAC_DIGITS, - _NL_MONETARY_DUO_P_CS_PRECEDES, - _NL_MONETARY_DUO_P_SEP_BY_SPACE, - _NL_MONETARY_DUO_N_CS_PRECEDES, - _NL_MONETARY_DUO_N_SEP_BY_SPACE, - _NL_MONETARY_DUO_INT_P_CS_PRECEDES, - _NL_MONETARY_DUO_INT_P_SEP_BY_SPACE, - _NL_MONETARY_DUO_INT_N_CS_PRECEDES, - _NL_MONETARY_DUO_INT_N_SEP_BY_SPACE, - _NL_MONETARY_DUO_P_SIGN_POSN, - _NL_MONETARY_DUO_N_SIGN_POSN, - _NL_MONETARY_DUO_INT_P_SIGN_POSN, - _NL_MONETARY_DUO_INT_N_SIGN_POSN, - _NL_MONETARY_UNO_VALID_FROM, - _NL_MONETARY_UNO_VALID_TO, - _NL_MONETARY_DUO_VALID_FROM, - _NL_MONETARY_DUO_VALID_TO, - _NL_MONETARY_CONVERSION_RATE, - _NL_MONETARY_DECIMAL_POINT_WC, - _NL_MONETARY_THOUSANDS_SEP_WC, - _NL_MONETARY_CODESET, - _NL_NUM_LC_MONETARY, - - __DECIMAL_POINT = (((1) << 16) | (0)), - - RADIXCHAR = __DECIMAL_POINT, - - __THOUSANDS_SEP, - - THOUSEP = __THOUSANDS_SEP, - - __GROUPING, - - _NL_NUMERIC_DECIMAL_POINT_WC, - _NL_NUMERIC_THOUSANDS_SEP_WC, - _NL_NUMERIC_CODESET, - _NL_NUM_LC_NUMERIC, - - __YESEXPR = (((5) << 16) | (0)), - - __NOEXPR, - - __YESSTR, - - __NOSTR, - - _NL_MESSAGES_CODESET, - _NL_NUM_LC_MESSAGES, - - _NL_PAPER_HEIGHT = (((7) << 16) | (0)), - _NL_PAPER_WIDTH, - _NL_PAPER_CODESET, - _NL_NUM_LC_PAPER, - - _NL_NAME_NAME_FMT = (((8) << 16) | (0)), - _NL_NAME_NAME_GEN, - _NL_NAME_NAME_MR, - _NL_NAME_NAME_MRS, - _NL_NAME_NAME_MISS, - _NL_NAME_NAME_MS, - _NL_NAME_CODESET, - _NL_NUM_LC_NAME, - - _NL_ADDRESS_POSTAL_FMT = (((9) << 16) | (0)), - _NL_ADDRESS_COUNTRY_NAME, - _NL_ADDRESS_COUNTRY_POST, - _NL_ADDRESS_COUNTRY_AB2, - _NL_ADDRESS_COUNTRY_AB3, - _NL_ADDRESS_COUNTRY_CAR, - _NL_ADDRESS_COUNTRY_NUM, - _NL_ADDRESS_COUNTRY_ISBN, - _NL_ADDRESS_LANG_NAME, - _NL_ADDRESS_LANG_AB, - _NL_ADDRESS_LANG_TERM, - _NL_ADDRESS_LANG_LIB, - _NL_ADDRESS_CODESET, - _NL_NUM_LC_ADDRESS, - - _NL_TELEPHONE_TEL_INT_FMT = (((10) << 16) | (0)), - _NL_TELEPHONE_TEL_DOM_FMT, - _NL_TELEPHONE_INT_SELECT, - _NL_TELEPHONE_INT_PREFIX, - _NL_TELEPHONE_CODESET, - _NL_NUM_LC_TELEPHONE, - - _NL_MEASUREMENT_MEASUREMENT = (((11) << 16) | (0)), - _NL_MEASUREMENT_CODESET, - _NL_NUM_LC_MEASUREMENT, - - _NL_IDENTIFICATION_TITLE = (((12) << 16) | (0)), - _NL_IDENTIFICATION_SOURCE, - _NL_IDENTIFICATION_ADDRESS, - _NL_IDENTIFICATION_CONTACT, - _NL_IDENTIFICATION_EMAIL, - _NL_IDENTIFICATION_TEL, - _NL_IDENTIFICATION_FAX, - _NL_IDENTIFICATION_LANGUAGE, - _NL_IDENTIFICATION_TERRITORY, - _NL_IDENTIFICATION_AUDIENCE, - _NL_IDENTIFICATION_APPLICATION, - _NL_IDENTIFICATION_ABBREVIATION, - _NL_IDENTIFICATION_REVISION, - _NL_IDENTIFICATION_DATE, - _NL_IDENTIFICATION_CATEGORY, - _NL_IDENTIFICATION_CODESET, - _NL_NUM_LC_IDENTIFICATION, - - _NL_NUM -}; -extern char *nl_langinfo(nl_item __item) __attribute__((__nothrow__, __leaf__)); - -extern char *nl_langinfo_l(nl_item __item, locale_t __l); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern int fnmatch(const char *__pattern, const char *__name, int __flags); - -_Bool acl_errno_valid(int) __attribute__((__const__)); -int file_has_acl(char const *, struct stat const *); -int qset_acl(char const *, int, mode_t); -int set_acl(char const *, int, mode_t); -int qcopy_acl(char const *, int, char const *, int, mode_t); -int copy_acl(char const *, int, char const *, int, mode_t); -int chmod_or_fchmod(char const *, int, mode_t); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); -extern int c_strcasecmp(const char *s1, const char *s2) - __attribute__((__pure__)); - -extern int c_strncasecmp(const char *s1, const char *s2, size_t n) - __attribute__((__pure__)); - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -extern _Bool hard_locale(int category); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); - -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -enum { - - human_ceiling = 0, - - human_round_to_nearest = 1, - - human_floor = 2, - - human_group_digits = 4, - - human_suppress_point_zero = 8, - - human_autoscale = 16, - - human_base_1024 = 32, - - human_space_before_unit = 64, - - human_SI = 128, - - human_B = 256 -}; - -char *human_readable(uintmax_t, char *, int, uintmax_t, uintmax_t); - -enum strtol_error human_options(char const *, int *, uintmax_t *); - -extern void strmode(mode_t mode, char *str); - -extern void filemodestring(struct stat const *statp, char *str); -int filevercmp(char const *a, char const *b) __attribute__((__pure__)); - -int filenvercmp(char const *a, ptrdiff_t alen, char const *b, ptrdiff_t blen) - __attribute__((__pure__)); - -extern char *getuser(uid_t uid); -extern char *getgroup(gid_t gid); -extern uid_t *getuidbyname(const char *user); -extern gid_t *getgidbyname(const char *group); -extern int ls_mode; -extern int gnu_mbswidth(const char *string, int flags); - -extern int mbsnwidth(const char *buf, size_t nbytes, int flags); - -void mpsort(void const **, size_t, int (*)(void const *, void const *)); - -struct _obstack_chunk { - char *limit; - struct _obstack_chunk *prev; - char contents[]; -}; - -struct obstack { - size_t chunk_size; - struct _obstack_chunk *chunk; - char *object_base; - char *next_free; - char *chunk_limit; - union { - size_t i; - void *p; - } temp; - size_t alignment_mask; - - union { - void *(*plain)(size_t); - void *(*extra)(void *, size_t); - } chunkfun; - union { - void (*plain)(void *); - void (*extra)(void *, void *); - } freefun; - - void *extra_arg; - unsigned use_extra_arg : 1; - unsigned maybe_empty_object : 1; - - unsigned alloc_failed : 1; -}; - -extern void _obstack_newchunk(struct obstack *, size_t); -extern void _obstack_free(struct obstack *, void *); -extern int _obstack_begin(struct obstack *, size_t, size_t, void *(*)(size_t), - void (*)(void *)); -extern int _obstack_begin_1(struct obstack *, size_t, size_t, - void *(*)(void *, size_t), void (*)(void *, void *), - void *); -extern size_t _obstack_memory_used(struct obstack *) - - __attribute__((__pure__)); - -extern __attribute__((__noreturn__)) void (*obstack_alloc_failed_handler)(void); - -extern int obstack_exit_failure; - -static inline ssize_t smack_new_label_from_self(char **label) { return -1; } - -static inline int smack_set_label_for_self(char const *label) { return -1; } - -static inline _Bool - -is_smack_enabled(void) { - - return 0; -} - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -size_t nstrftime(char *__restrict__, size_t, char const *, struct tm const *, - timezone_t __tz, int __ns); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); - -_Noreturn void xstrtol_fatal(enum strtol_error, int, char, - struct option const *, char const *); - -extern char *areadlink(char const *filename) - __attribute__((__malloc__(free, 1))); -extern char *areadlink_with_size(char const *filename, size_t size_hint) - __attribute__((__malloc__(free, 1))); - -extern char *areadlinkat(int fd, char const *filename) - __attribute__((__malloc__(free, 1))); - -extern char *areadlinkat_with_size(int fd, char const *filename, - size_t size_hint) - __attribute__((__malloc__(free, 1))); - -typedef enum { MBS_ALIGN_LEFT, MBS_ALIGN_RIGHT, MBS_ALIGN_CENTER } mbs_align_t; - -enum { - - MBA_UNIBYTE_FALLBACK = 0x0001, - - MBA_UNIBYTE_ONLY = 0x0002, - - MBA_NO_LEFT_PAD = 0x0004, - - MBA_NO_RIGHT_PAD = 0x0008 -}; - -size_t mbsalign(char const *src, char *dest, size_t dest_size, size_t *width, - mbs_align_t align, int flags) __attribute__((__nonnull__)); - -char *ambsalign(char const *src, size_t *width, mbs_align_t align, int flags) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__nonnull__)); -static char const G_line[] = { - ' ' ' ' ' ' ' ' ' ' 'C', 'O', 'L', 'O', 'R', 'T', 'E', 'R', 'M', ' ', - '?', '*', 0, 'T', 'E', 'R', 'M', ' ', 'E', 't', 'e', 'r', 'm', 0, 'T', 'E', - 'R', 'M', ' ', 'a', 'n', 's', 'i', 0, 'T', 'E', 'R', 'M', ' ', '*', 'c', - 'o', 'l', 'o', 'r', '*', 0, 'T', 'E', 'R', 'M', ' ', 'c', 'o', 'n', '[', - '0', '-', '9', ']', '*', 'x', '[', '0', '-', '9', ']', '*', 0, 'T', 'E', - 'R', 'M', ' ', 'c', 'o', 'n', 's', '2', '5', 0, 'T', 'E', 'R', 'M', ' ', - 'c', 'o', 'n', 's', 'o', 'l', 'e', 0, 'T', 'E', 'R', 'M', ' ', 'c', 'y', - 'g', 'w', 'i', 'n', 0, 'T', 'E', 'R', 'M', ' ', '*', 'd', 'i', 'r', 'e', - 'c', 't', '*', 0, 'T', 'E', 'R', 'M', ' ', 'd', 't', 't', 'e', 'r', 'm', 0, - 'T', 'E', 'R', 'M', ' ', 'g', 'n', 'o', 'm', 'e', 0, 'T', 'E', 'R', 'M', - ' ', 'h', 'u', 'r', 'd', 0, 'T', 'E', 'R', 'M', ' ', 'j', 'f', 'b', 't', - 'e', 'r', 'm', 0, 'T', 'E', 'R', 'M', ' ', 'k', 'o', 'n', 's', 'o', 'l', - 'e', 0, 'T', 'E', 'R', 'M', ' ', 'k', 't', 'e', 'r', 'm', 0, 'T', 'E', 'R', - 'M', ' ', 'l', 'i', 'n', 'u', 'x', 0, 'T', 'E', 'R', 'M', ' ', 'l', 'i', - 'n', 'u', 'x', '-', 'c', 0, 'T', 'E', 'R', 'M', ' ', 'm', 'l', 't', 'e', - 'r', 'm', 0, 'T', 'E', 'R', 'M', ' ', 'p', 'u', 't', 't', 'y', 0, 'T', 'E', - 'R', 'M', ' ', 'r', 'x', 'v', 't', '*', 0, 'T', 'E', 'R', 'M', ' ', 's', - 'c', 'r', 'e', 'e', 'n', '*', 0, 'T', 'E', 'R', 'M', ' ', 's', 't', 0, 'T', - 'E', 'R', 'M', ' ', 't', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'o', 'r', 0, - 'T', 'E', 'R', 'M', ' ', 't', 'm', 'u', 'x', '*', 0, 'T', 'E', 'R', 'M', - ' ', 'v', 't', '1', '0', '0', 0, 'T', 'E', 'R', 'M', ' ', 'x', 't', 'e', - 'r', 'm', '*', 0, ' ' ' ' ' ' ' ' ' ' ' ' 'R', 'E', 'S', 'E', 'T', - ' ', '0', ' ', ' ' D ',' I ',' R ',' ',' 0 ',' 1 ','; -',' 3 ',' 4 ',' ',' 'L', 'I', 'N', 'K', ' ', '0', '1', ';', '3', '6', ' ', - ' ' ',' 'M', 'U', 'L', 'T', 'I', 'H', 'A', 'R', 'D', 'L', 'I', 'N', 'K', - ' ', '0', '0', ' ', ' ' F ',' I ',' F ',' O ',' ',' 4 ',' 0 ','; -',' 3 ',' 3 ',' ',' 'S', 'O', 'C', 'K', ' ', '0', '1', ';', '3', '5', ' ', - ' ' D ',' O ',' O ',' R ',' ',' 0 ',' 1 ','; -',' 3 ',' 5 ',' ',' 'B', 'L', 'K', ' ', '4', '0', ';', '3', '3', ';', '0', '1', - ' ', ' ' C ',' H ',' R ',' ',' 4 ',' 0 ','; -',' 3 ',' 3 ','; -',' 0 ',' 1 ',' ',' 'O', 'R', 'P', 'H', 'A', 'N', ' ', '4', '0', ';', '3', '1', - ';', '0', '1', ' ', - ' ' M ',' I ',' S ',' S ',' I ',' N ',' G ',' ',' 0 ',' 0 ',' ',' 'S', 'E', - 'T', 'U', 'I', 'D', ' ', '3', '7', ';', '4', '1', ' ', - ' ' S ',' E ',' T ',' G ',' I ',' D ',' ',' 3 ',' 0 ','; -',' 4 ',' 3 ',' ',' 'C', 'A', 'P', 'A', 'B', 'I', 'L', 'I', 'T', 'Y', ' ', '0', - '0', ' ', - ' ' S ',' T ',' I ',' C ',' K ',' Y ','_ ',' O ',' T ',' H ',' E ',' R ','_ ',' W ',' R ',' I ',' T ',' A ',' B ',' L',' E ',' ',' 3 ',' 0 ','; -',' 4 ',' 2 ',' ',' 'O', 'T', 'H', 'E', 'R', '_', 'W', 'R', 'I', 'T', 'A', 'B', - 'L', 'E', ' ', '3', '4', ';', '4', '2', ' ', - ' ' S ',' T ',' I ',' C ',' K ',' Y ',' ',' 3 ',' 7 ','; -',' 4 ',' 4 ',' ',' ' ' E ',' X ',' E ',' C ',' ',' 0 ',' 1 ','; -',' 3 ',' 2',0, ' ' ' ' ' ' ' ' ' ' ' ' ' ' ',' '.', 't', 'a', 'r', ' ', - '0', '1', ';', '3', '1', 0, '.', 't', 'g', 'z', ' ', '0', '1', ';', '3', - '1', 0, '.', 'a', 'r', 'c', ' ', '0', '1', ';', '3', '1', 0, '.', 'a', 'r', - 'j', ' ', '0', '1', ';', '3', '1', 0, '.', 't', 'a', 'z', ' ', '0', '1', - ';', '3', '1', 0, '.', 'l', 'h', 'a', ' ', '0', '1', ';', '3', '1', 0, '.', - 'l', 'z', '4', ' ', '0', '1', ';', '3', '1', 0, '.', 'l', 'z', 'h', ' ', - '0', '1', ';', '3', '1', 0, '.', 'l', 'z', 'm', 'a', ' ', '0', '1', ';', - '3', '1', 0, '.', 't', 'l', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 't', - 'x', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 't', 'z', 'o', ' ', '0', - '1', ';', '3', '1', 0, '.', 't', '7', 'z', ' ', '0', '1', ';', '3', '1', 0, - '.', 'z', 'i', 'p', ' ', '0', '1', ';', '3', '1', 0, '.', 'z', ' ', '0', - '1', ';', '3', '1', 0, '.', 'd', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', - 'g', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 'l', 'r', 'z', ' ', '0', - '1', ';', '3', '1', 0, '.', 'l', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', - 'l', 'z', 'o', ' ', '0', '1', ';', '3', '1', 0, '.', 'x', 'z', ' ', '0', - '1', ';', '3', '1', 0, '.', 'z', 's', 't', ' ', '0', '1', ';', '3', '1', 0, - '.', 't', 'z', 's', 't', ' ', '0', '1', ';', '3', '1', 0, '.', 'b', 'z', - '2', ' ', '0', '1', ';', '3', '1', 0, '.', 'b', 'z', ' ', '0', '1', ';', - '3', '1', 0, '.', 't', 'b', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 't', - 'b', 'z', '2', ' ', '0', '1', ';', '3', '1', 0, '.', 't', 'z', ' ', '0', - '1', ';', '3', '1', 0, '.', 'd', 'e', 'b', ' ', '0', '1', ';', '3', '1', 0, - '.', 'r', 'p', 'm', ' ', '0', '1', ';', '3', '1', 0, '.', 'j', 'a', 'r', - ' ', '0', '1', ';', '3', '1', 0, '.', 'w', 'a', 'r', ' ', '0', '1', ';', - '3', '1', 0, '.', 'e', 'a', 'r', ' ', '0', '1', ';', '3', '1', 0, '.', 's', - 'a', 'r', ' ', '0', '1', ';', '3', '1', 0, '.', 'r', 'a', 'r', ' ', '0', - '1', ';', '3', '1', 0, '.', 'a', 'l', 'z', ' ', '0', '1', ';', '3', '1', 0, - '.', 'a', 'c', 'e', ' ', '0', '1', ';', '3', '1', 0, '.', 'z', 'o', 'o', - ' ', '0', '1', ';', '3', '1', 0, '.', 'c', 'p', 'i', 'o', ' ', '0', '1', - ';', '3', '1', 0, '.', '7', 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 'r', - 'z', ' ', '0', '1', ';', '3', '1', 0, '.', 'c', 'a', 'b', ' ', '0', '1', - ';', '3', '1', 0, '.', 'w', 'i', 'm', ' ', '0', '1', ';', '3', '1', 0, '.', - 's', 'w', 'm', ' ', '0', '1', ';', '3', '1', 0, '.', 'd', 'w', 'm', ' ', - '0', '1', ';', '3', '1', 0, '.', 'e', 's', 'd', ' ', '0', '1', ';', '3', - '1', 0, ' '.',' a ',' v ',' i ',' f ',' ',' 0 ',' 1 ','; -',' 3 ',' 5',0, '.', 'j', 'p', 'g', ' ', '0', '1', ';', '3', '5', 0, '.', 'j', - 'p', 'e', 'g', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', 'j', 'p', 'g', - ' ', '0', '1', ';', '3', '5', 0, '.', 'm', 'j', 'p', 'e', 'g', ' ', '0', - '1', ';', '3', '5', 0, '.', 'g', 'i', 'f', ' ', '0', '1', ';', '3', '5', 0, - '.', 'b', 'm', 'p', ' ', '0', '1', ';', '3', '5', 0, '.', 'p', 'b', 'm', - ' ', '0', '1', ';', '3', '5', 0, '.', 'p', 'g', 'm', ' ', '0', '1', ';', - '3', '5', 0, '.', 'p', 'p', 'm', ' ', '0', '1', ';', '3', '5', 0, '.', 't', - 'g', 'a', ' ', '0', '1', ';', '3', '5', 0, '.', 'x', 'b', 'm', ' ', '0', - '1', ';', '3', '5', 0, '.', 'x', 'p', 'm', ' ', '0', '1', ';', '3', '5', 0, - '.', 't', 'i', 'f', ' ', '0', '1', ';', '3', '5', 0, '.', 't', 'i', 'f', - 'f', ' ', '0', '1', ';', '3', '5', 0, '.', 'p', 'n', 'g', ' ', '0', '1', - ';', '3', '5', 0, '.', 's', 'v', 'g', ' ', '0', '1', ';', '3', '5', 0, '.', - 's', 'v', 'g', 'z', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', 'n', 'g', - ' ', '0', '1', ';', '3', '5', 0, '.', 'p', 'c', 'x', ' ', '0', '1', ';', - '3', '5', 0, '.', 'm', 'o', 'v', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', - 'p', 'g', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', 'p', 'e', 'g', ' ', - '0', '1', ';', '3', '5', 0, '.', 'm', '2', 'v', ' ', '0', '1', ';', '3', - '5', 0, '.', 'm', 'k', 'v', ' ', '0', '1', ';', '3', '5', 0, '.', 'w', 'e', - 'b', 'm', ' ', '0', '1', ';', '3', '5', 0, '.', 'w', 'e', 'b', 'p', ' ', - '0', '1', ';', '3', '5', 0, '.', 'o', 'g', 'm', ' ', '0', '1', ';', '3', - '5', 0, '.', 'm', 'p', '4', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', '4', - 'v', ' ', '0', '1', ';', '3', '5', 0, '.', 'm', 'p', '4', 'v', ' ', '0', - '1', ';', '3', '5', 0, '.', 'v', 'o', 'b', ' ', '0', '1', ';', '3', '5', 0, - '.', 'q', 't', ' ', '0', '1', ';', '3', '5', 0, '.', 'n', 'u', 'v', ' ', - '0', '1', ';', '3', '5', 0, '.', 'w', 'm', 'v', ' ', '0', '1', ';', '3', - '5', 0, '.', 'a', 's', 'f', ' ', '0', '1', ';', '3', '5', 0, '.', 'r', 'm', - ' ', '0', '1', ';', '3', '5', 0, '.', 'r', 'm', 'v', 'b', ' ', '0', '1', - ';', '3', '5', 0, '.', 'f', 'l', 'c', ' ', '0', '1', ';', '3', '5', 0, '.', - 'a', 'v', 'i', ' ', '0', '1', ';', '3', '5', 0, '.', 'f', 'l', 'i', ' ', - '0', '1', ';', '3', '5', 0, '.', 'f', 'l', 'v', ' ', '0', '1', ';', '3', - '5', 0, '.', 'g', 'l', ' ', '0', '1', ';', '3', '5', 0, '.', 'd', 'l', ' ', - '0', '1', ';', '3', '5', 0, '.', 'x', 'c', 'f', ' ', '0', '1', ';', '3', - '5', 0, '.', 'x', 'w', 'd', ' ', '0', '1', ';', '3', '5', 0, '.', 'y', 'u', - 'v', ' ', '0', '1', ';', '3', '5', 0, '.', 'c', 'g', 'm', ' ', '0', '1', - ';', '3', '5', 0, '.', 'e', 'm', 'f', ' ', '0', '1', ';', '3', '5', 0, - ' '.',' o ',' g ',' v ',' ',' 0 ',' 1 ','; -',' 3 ',' 5',0, '.', 'o', 'g', 'x', ' ', '0', '1', ';', '3', '5', 0, - ' '.',' a ',' a ',' c ',' ',' 0 ',' 0 ','; -',' 3 ',' 6',0, '.', 'a', 'u', ' ', '0', '0', ';', '3', '6', 0, '.', 'f', 'l', - 'a', 'c', ' ', '0', '0', ';', '3', '6', 0, '.', 'm', '4', 'a', ' ', '0', - '0', ';', '3', '6', 0, '.', 'm', 'i', 'd', ' ', '0', '0', ';', '3', '6', 0, - '.', 'm', 'i', 'd', 'i', ' ', '0', '0', ';', '3', '6', 0, '.', 'm', 'k', - 'a', ' ', '0', '0', ';', '3', '6', 0, '.', 'm', 'p', '3', ' ', '0', '0', - ';', '3', '6', 0, '.', 'm', 'p', 'c', ' ', '0', '0', ';', '3', '6', 0, '.', - 'o', 'g', 'g', ' ', '0', '0', ';', '3', '6', 0, '.', 'r', 'a', ' ', '0', - '0', ';', '3', '6', 0, '.', 'w', 'a', 'v', ' ', '0', '0', ';', '3', '6', 0, - ' '.',' o ',' g ',' a ',' ',' 0 ',' 0 ','; -',' 3 ',' 6',0, '.', 'o', 'p', 'u', 's', ' ', '0', '0', ';', '3', '6', 0, '.', - 's', 'p', 'x', ' ', '0', '0', ';', '3', '6', 0, '.', 'x', 's', 'p', 'f', - ' ', '0', '0', ';', '3', '6', 0, ' ' * ',' ~',' ',' 0 ',' 0 ','; -',' 9 ',' 0',0, '*', ' '.',' b ',' a ',' k ',' ',' 0 ',' 0 ','; -',' 9 ',' 0',0, '.', 'o', 'l', 'd', ' ', '0', '0', ';', '9', '0', 0, '.', 'o', - 'r', 'i', 'g', ' ', '0', '0', ';', '9', '0', 0, '.', 'p', 'a', 'r', 't', - ' ', '0', '0', ';', '9', '0', 0, '.', 'r', 'e', 'j', ' ', '0', '0', ';', - '9', '0', 0, '.', 's', 'w', 'p', ' ', '0', '0', ';', '9', '0', 0, '.', 't', - 'm', 'p', ' ', '0', '0', ';', '9', '0', 0, '.', 'd', 'p', 'k', 'g', '-', - 'd', 'i', 's', 't', ' ', '0', '0', ';', '9', '0', 0, '.', 'd', 'p', 'k', - 'g', '-', 'o', 'l', 'd', ' ', '0', '0', ';', '9', '0', 0, '.', 'u', 'c', - 'f', '-', 'd', 'i', 's', 't', ' ', '0', '0', ';', '9', '0', 0, '.', 'u', - 'c', 'f', '-', 'n', 'e', 'w', ' ', '0', '0', ';', '9', '0', 0, '.', 'u', - 'c', 'f', '-', 'o', 'l', 'd', ' ', '0', '0', ';', '9', '0', 0, '.', 'r', - 'p', 'm', 'n', 'e', 'w', ' ', '0', '0', ';', '9', '0', 0, '.', 'r', 'p', - 'm', 'o', 'r', 'i', 'g', ' ', '0', '0', ';', '9', '0', 0, '.', 'r', 'p', - 'm', 's', 'a', 'v', 'e', ' ', '0', '0', ';', '9', '0', 0, ' ' -} -; - -char *xgethostname(void) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -inline _Bool - -c_isalnum(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isalpha(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isascii(int c) { - switch (c) { - case ' ': - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_isblank(int c) { - return c == ' ' || c == '\t'; -} - -inline _Bool - -c_iscntrl(int c) { - switch (c) { - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isgraph(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_islower(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isprint(int c) { - switch (c) { - case ' ': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_ispunct(int c) { - switch (c) { - case '!': - case '"': - case ' return 1; default: - return 0; - } -} - -inline _Bool - -c_isspace(int c) { - switch (c) { - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isupper(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isxdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline int c_tolower(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return c - 'A' + 'a'; - default: - return c; - } -} - -inline int c_toupper(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return c - 'a' + 'A'; - default: - return c; - } -} - -enum canonicalize_mode_t { - - CAN_EXISTING = 0, - - CAN_ALL_BUT_LAST = 1, - - CAN_MISSING = 2, - - CAN_NOLINKS = 4 -}; -typedef enum canonicalize_mode_t canonicalize_mode_t; -char *canonicalize_filename_mode(const char *, canonicalize_mode_t) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -static inline struct timespec -statx_timestamp_to_timespec(struct statx_timestamp tsx) { - struct timespec ts; - - ts.tv_sec = tsx.tv_sec; - ts.tv_nsec = tsx.tv_nsec; - return ts; -} - -static inline void statx_to_stat(struct statx *stx, struct stat *stat) { - stat->st_dev = gnu_dev_makedev(stx->stx_dev_major, stx->stx_dev_minor); - stat->st_ino = stx->stx_ino; - stat->st_mode = stx->stx_mode; - stat->st_nlink = stx->stx_nlink; - stat->st_uid = stx->stx_uid; - stat->st_gid = stx->stx_gid; - stat->st_rdev = gnu_dev_makedev(stx->stx_rdev_major, stx->stx_rdev_minor); - stat->st_size = stx->stx_size; - stat->st_blksize = stx->stx_blksize; - - stat->st_blocks = stx->stx_blocks; - stat->st_atim = statx_timestamp_to_timespec(stx->stx_atime); - stat->st_mtim = statx_timestamp_to_timespec(stx->stx_mtime); - stat->st_ctim = statx_timestamp_to_timespec(stx->stx_ctime); -} - -typedef struct __user_cap_header_struct { - __u32 version; - int pid; -} * cap_user_header_t; - -typedef struct __user_cap_data_struct { - __u32 effective; - __u32 permitted; - __u32 inheritable; -} * cap_user_data_t; -struct vfs_cap_data { - __le32 magic_etc; - struct { - __le32 permitted; - __le32 inheritable; - } data[2]; -}; - -struct vfs_ns_cap_data { - __le32 magic_etc; - struct { - __le32 permitted; - __le32 inheritable; - } data[2]; - __le32 rootid; -}; -typedef struct _cap_struct *cap_t; - -typedef int cap_value_t; - -extern cap_value_t cap_max_bits(void); - -typedef enum { - CAP_EFFECTIVE = 0, - CAP_PERMITTED = 1, - CAP_INHERITABLE = 2 -} cap_flag_t; - -typedef enum { - CAP_IAB_INH = 2, - CAP_IAB_AMB = 3, - CAP_IAB_BOUND = 4 -} cap_iab_vector_t; -typedef struct cap_iab_s *cap_iab_t; - -typedef enum { CAP_CLEAR = 0, CAP_SET = 1 } cap_flag_value_t; - -typedef unsigned cap_mode_t; - -extern cap_t cap_dup(cap_t); -extern int cap_free(void *); -extern cap_t cap_init(void); -extern cap_iab_t cap_iab_init(void); - -extern int cap_get_flag(cap_t, cap_value_t, cap_flag_t, cap_flag_value_t *); -extern int cap_set_flag(cap_t, cap_flag_t, int, const cap_value_t *, - cap_flag_value_t); -extern int cap_clear(cap_t); -extern int cap_clear_flag(cap_t, cap_flag_t); - -extern cap_flag_value_t cap_iab_get_vector(cap_iab_t, cap_iab_vector_t, - cap_value_t); -extern int cap_iab_set_vector(cap_iab_t, cap_iab_vector_t, cap_value_t, - cap_flag_value_t); -extern int cap_iab_fill(cap_iab_t, cap_iab_vector_t, cap_t, cap_flag_t); - -extern cap_t cap_get_fd(int); -extern cap_t cap_get_file(const char *); -extern uid_t cap_get_nsowner(cap_t); -extern int cap_set_fd(int, cap_t); -extern int cap_set_file(const char *, cap_t); -extern int cap_set_nsowner(cap_t, uid_t); - -extern cap_t cap_get_proc(void); -extern cap_t cap_get_pid(pid_t); -extern int cap_set_proc(cap_t); - -extern int cap_get_bound(cap_value_t); -extern int cap_drop_bound(cap_value_t); - -extern int cap_get_ambient(cap_value_t); -extern int cap_set_ambient(cap_value_t, cap_flag_value_t); -extern int cap_reset_ambient(void); - -extern ssize_t cap_size(cap_t); -extern ssize_t cap_copy_ext(void *, cap_t, ssize_t); -extern cap_t cap_copy_int(const void *); - -extern cap_t cap_from_text(const char *); -extern char *cap_to_text(cap_t, ssize_t *); -extern int cap_from_name(const char *, cap_value_t *); -extern char *cap_to_name(cap_value_t); - -extern char *cap_iab_to_text(cap_iab_t iab); -extern cap_iab_t cap_iab_from_text(const char *text); - -extern int cap_compare(cap_t, cap_t); - -extern void -cap_set_syscall(long int (*new_syscall)(long int, long int, long int, long int), - long int (*new_syscall6)(long int, long int, long int, long int, - long int, long int, long int)); - -extern int cap_set_mode(cap_mode_t flavor); -extern cap_mode_t cap_get_mode(void); -extern const char *cap_mode_name(cap_mode_t flavor); - -extern unsigned cap_get_secbits(void); -extern int cap_set_secbits(unsigned bits); - -extern int cap_setuid(uid_t uid); -extern int cap_setgroups(gid_t gid, size_t ngroups, const gid_t groups[]); - -extern cap_iab_t cap_iab_get_proc(void); -extern int cap_iab_set_proc(cap_iab_t iab); - -typedef struct cap_launch_s *cap_launch_t; - -extern cap_launch_t cap_new_launcher(const char *arg0, const char *const *argv, - const char *const *envp); -extern void cap_launcher_callback(cap_launch_t attr, - int(callback_fn)(void *detail)); -extern void cap_launcher_setuid(cap_launch_t attr, uid_t uid); -extern void cap_launcher_setgroups(cap_launch_t attr, gid_t gid, int ngroups, - const gid_t *groups); -extern void cap_launcher_set_mode(cap_launch_t attr, cap_mode_t flavor); -extern cap_iab_t cap_launcher_set_iab(cap_launch_t attr, cap_iab_t iab); -extern void cap_launcher_set_chroot(cap_launch_t attr, const char *chroot); -extern pid_t cap_launch(cap_launch_t attr, void *data); - -extern int capget(cap_user_header_t header, cap_user_data_t data); -extern int capset(cap_user_header_t header, const cap_user_data_t data); - -extern int capgetp(pid_t pid, cap_t cap_d); - -extern int capsetp(pid_t pid, cap_t cap_d); - -enum filetype { - unknown, - fifo, - chardev, - directory, - blockdev, - normal, - symbolic_link, - sock, - whiteout, - arg_directory -}; - -static char const filetype_letter[] = "?pcdb-lswd"; - -_Static_assert(sizeof filetype_letter - 1 == arg_directory + 1, - "verify (" - "sizeof filetype_letter - 1 == arg_directory + 1" - ")"); - -enum acl_type { ACL_T_NONE, ACL_T_LSM_CONTEXT_ONLY, ACL_T_YES }; - -struct fileinfo { - - char *name; - - char *linkname; - - char *absolute_name; - - struct stat stat; - - enum filetype filetype; - - mode_t linkmode; - - char *scontext; - - _Bool stat_ok; - - _Bool linkok; - - enum acl_type acl_type; - - _Bool has_capability; - - int quoted; - - size_t width; -}; - -struct bin_str { - size_t len; - char const *string; -}; - -static size_t quote_name(char const *name, - struct quoting_options const *options, - int needs_general_quoting, const struct bin_str *color, - - _Bool allow_pad, struct obstack *stack, - char const *absolute_name); -static size_t quote_name_buf(char **inbuf, size_t bufsize, char *name, - struct quoting_options const *options, - int needs_general_quoting, size_t *width, - - _Bool *pad); -static char *make_link_name(char const *name, char const *linkname); -static int decode_switches(int argc, char **argv); -static _Bool file_ignored(char const *name); -static uintmax_t gobble_file(char const *name, enum filetype type, ino_t inode, - _Bool command_line_arg, char const *dirname); -static const struct bin_str *get_color_indicator(const struct fileinfo *f, - - _Bool symlink_target); -static _Bool print_color_indicator(const struct bin_str *ind); -static void put_indicator(const struct bin_str *ind); -static void add_ignore_pattern(char const *pattern); -static void attach(char *dest, char const *dirname, char const *name); -static void clear_files(void); -static void extract_dirs_from_files(char const *dirname, - - _Bool command_line_arg); -static void get_link_name(char const *filename, struct fileinfo *f, - - _Bool command_line_arg); -static void indent(size_t from, size_t to); -static size_t calculate_columns(_Bool by_columns); -static void print_current_files(void); -static void print_dir(char const *name, char const *realname, - - _Bool command_line_arg); -static size_t print_file_name_and_frills(const struct fileinfo *f, - size_t start_col); -static void print_horizontal(void); -static int format_user_width(uid_t u); -static int format_group_width(gid_t g); -static void print_long_format(const struct fileinfo *f); -static void print_many_per_line(void); -static size_t print_name_with_quoting(const struct fileinfo *f, - - _Bool symlink_target, - struct obstack *stack, size_t start_col); -static void prep_non_filename_text(void); -static _Bool print_type_indicator(_Bool stat_ok, mode_t mode, - enum filetype type); -static void print_with_separator(char sep); -static void queue_directory(char const *name, char const *realname, - - _Bool command_line_arg); -static void sort_files(void); -static void parse_ls_color(void); - -static int getenv_quoting_style(void); - -static size_t quote_name_width(char const *name, - struct quoting_options const *options, - int needs_general_quoting); - -enum { INITIAL_TABLE_SIZE = 30 }; -static Hash_table *active_dir_set; -static struct fileinfo *cwd_file; - -static size_t cwd_n_alloc; - -static size_t cwd_n_used; - -static _Bool cwd_some_quoted; - -static _Bool align_variable_outer_quotes; - -static void **sorted_file; -static size_t sorted_file_alloc; - -static _Bool color_symlink_as_referent; - -static char const *hostname; - -static mode_t file_or_link_mode(struct fileinfo const *file) { - return (color_symlink_as_referent && file->linkok ? file->linkmode - : file->stat.st_mode); -} - -struct pending { - char *name; - - char *realname; - - _Bool command_line_arg; - struct pending *next; -}; - -static struct pending *pending_dirs; - -static struct timespec current_time; - -static _Bool print_scontext; -static char UNKNOWN_SECURITY_CONTEXT[] = "?"; - -static _Bool any_has_acl; - -static int inode_number_width; -static int block_size_width; -static int nlink_width; -static int scontext_width; -static int owner_width; -static int group_width; -static int author_width; -static int major_device_number_width; -static int minor_device_number_width; -static int file_size_width; -enum format { - long_format, - one_per_line, - many_per_line, - horizontal, - with_commas -}; - -static enum format format; - -enum time_style { - full_iso_time_style, - long_iso_time_style, - iso_time_style, - locale_time_style -}; - -static char const *const time_style_args[] = {"full-iso", "long-iso", "iso", - "locale", ((void *)0) - -}; -static enum time_style const time_style_types[] = { - full_iso_time_style, long_iso_time_style, iso_time_style, - locale_time_style}; -_Static_assert((sizeof(time_style_args) / sizeof *(time_style_args)) == - (sizeof(time_style_types) / sizeof *(time_style_types)) + 1, - "verify (" - "ARRAY_CARDINALITY (time_style_args) == ARRAY_CARDINALITY " - "(time_style_types) + 1" - ")"); - -enum time_type { - time_mtime = 0, - time_ctime, - time_atime, - time_btime, - time_numtypes -}; - -static enum time_type time_type; - -enum sort_type { - sort_name = 0, - sort_extension, - sort_width, - sort_size, - sort_version, - sort_time, - sort_none, - sort_numtypes -}; - -static enum sort_type sort_type; - -static _Bool sort_reverse; - -static _Bool print_owner = 1; - -static _Bool print_author; - -static _Bool print_group = 1; - -static _Bool numeric_ids; - -static _Bool print_block_size; - -static int human_output_opts; - -static uintmax_t output_block_size; - -static int file_human_output_opts; -static uintmax_t file_output_block_size = 1; - -static _Bool dired; -enum indicator_style { none = 0, slash, file_type, classify }; - -static enum indicator_style indicator_style; - -static char const *const indicator_style_args[] = {"none", "slash", "file-type", - "classify", ((void *)0) - -}; -static enum indicator_style const indicator_style_types[] = { - none, slash, file_type, classify}; -_Static_assert( - (sizeof(indicator_style_args) / sizeof *(indicator_style_args)) == - (sizeof(indicator_style_types) / sizeof *(indicator_style_types)) + 1, - "verify (" - "ARRAY_CARDINALITY (indicator_style_args) == ARRAY_CARDINALITY " - "(indicator_style_types) + 1" - ")"); - -static _Bool print_with_color; - -static _Bool print_hyperlink; - -static _Bool used_color = 0; - -enum when_type { when_never, when_always, when_if_tty }; - -enum Dereference_symlink { - DEREF_UNDEFINED = 0, - DEREF_NEVER, - DEREF_COMMAND_LINE_ARGUMENTS, - DEREF_COMMAND_LINE_SYMLINK_TO_DIR, - DEREF_ALWAYS -}; - -enum indicator_no { - C_LEFT, - C_RIGHT, - C_END, - C_RESET, - C_NORM, - C_FILE, - C_DIR, - C_LINK, - C_FIFO, - C_SOCK, - C_BLK, - C_CHR, - C_MISSING, - C_ORPHAN, - C_EXEC, - C_DOOR, - C_SETUID, - C_SETGID, - C_STICKY, - C_OTHER_WRITABLE, - C_STICKY_OTHER_WRITABLE, - C_CAP, - C_MULTIHARDLINK, - C_CLR_TO_EOL -}; - -static char const *const indicator_name[] = { - "lc", "rc", "ec", "rs", "no", "fi", "di", "ln", "pi", - "so", "bd", "cd", "mi", "or", "ex", "do", "su", "sg", - "st", "ow", "tw", "ca", "mh", "cl", ((void *)0) - -}; - -struct color_ext_type { - struct bin_str ext; - struct bin_str seq; - struct color_ext_type *next; -}; - -static struct bin_str color_indicator[] = { - {sizeof("\033[") - 1, "\033["}, - {sizeof("m") - 1, "m"}, - {0, ((void *)0)}, - {sizeof("0") - 1, "0"}, - {0, ((void *)0)}, - {0, ((void *)0)}, - {sizeof("01;34") - 1, "01;34"}, - {sizeof("01;36") - 1, "01;36"}, - {sizeof("33") - 1, "33"}, - {sizeof("01;35") - 1, "01;35"}, - {sizeof("01;33") - 1, "01;33"}, - {sizeof("01;33") - 1, "01;33"}, - {0, ((void *)0)}, - {0, ((void *)0)}, - {sizeof("01;32") - 1, "01;32"}, - {sizeof("01;35") - 1, "01;35"}, - {sizeof("37;41") - 1, "37;41"}, - {sizeof("30;43") - 1, "30;43"}, - {sizeof("37;44") - 1, "37;44"}, - {sizeof("34;42") - 1, "34;42"}, - {sizeof("30;42") - 1, "30;42"}, - {0, ((void *)0)}, - {0, ((void *)0)}, - {sizeof("\033[K") - 1, "\033[K"}, -}; - -static struct color_ext_type *color_ext_list = ((void *)0); - -static char *color_buf; - -static _Bool check_symlink_mode; - -static _Bool print_inode; - -static enum Dereference_symlink dereference; - -static _Bool recursive; - -static _Bool immediate_dirs; - -static _Bool directories_first; - -static enum { - - IGNORE_DEFAULT = 0, - - IGNORE_DOT_AND_DOTDOT, - - IGNORE_MINIMAL -} ignore_mode; - -struct ignore_pattern { - char const *pattern; - struct ignore_pattern *next; -}; - -static struct ignore_pattern *ignore_patterns; - -static struct ignore_pattern *hide_patterns; -static _Bool qmark_funny_chars; - -static struct quoting_options *filename_quoting_options; -static struct quoting_options *dirname_quoting_options; - -static size_t tabsize; - -static _Bool print_dir_name; - -static size_t line_length; - -static timezone_t localtz; - -static _Bool format_needs_stat; - -static _Bool format_needs_type; - -enum { - TIME_STAMP_LEN_MAXIMUM = - (((1000) > ((((((sizeof(time_t) * 8) - - (!((__typeof__(time_t))0 < (__typeof__(time_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(time_t))0 < (__typeof__(time_t))-1))))) - ? (1000) - : ((((((sizeof(time_t) * 8) - - (!((__typeof__(time_t))0 < (__typeof__(time_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(time_t))0 < (__typeof__(time_t))-1))))) -}; - -static char const *long_time_format[2] = {"%b %e %Y", "%b %e %H:%M"}; - -static sigset_t caught_signals; - -static sig_atomic_t volatile interrupt_signal; - -static sig_atomic_t volatile stop_signal_count; - -static int exit_status; - -enum { - - LS_MINOR_PROBLEM = 1, - - LS_FAILURE = 2 -}; - -enum { - AUTHOR_OPTION = 0x7f + 1, - BLOCK_SIZE_OPTION, - COLOR_OPTION, - DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION, - FILE_TYPE_INDICATOR_OPTION, - FORMAT_OPTION, - FULL_TIME_OPTION, - GROUP_DIRECTORIES_FIRST_OPTION, - HIDE_OPTION, - HYPERLINK_OPTION, - INDICATOR_STYLE_OPTION, - QUOTING_STYLE_OPTION, - SHOW_CONTROL_CHARS_OPTION, - SI_OPTION, - SORT_OPTION, - TIME_OPTION, - TIME_STYLE_OPTION, - ZERO_OPTION, -}; - -static struct option const long_options[] = { - {"all", 0, ((void *)0), 'a'}, - {"escape", 0, ((void *)0), 'b'}, - {"directory", 0, ((void *)0), 'd'}, - {"dired", 0, ((void *)0), 'D'}, - {"full-time", 0, ((void *)0), FULL_TIME_OPTION}, - {"group-directories-first", 0, ((void *)0), GROUP_DIRECTORIES_FIRST_OPTION}, - {"human-readable", 0, ((void *)0), 'h'}, - {"inode", 0, ((void *)0), 'i'}, - {"kibibytes", 0, ((void *)0), 'k'}, - {"numeric-uid-gid", 0, ((void *)0), 'n'}, - {"no-group", 0, ((void *)0), 'G'}, - {"hide-control-chars", 0, ((void *)0), 'q'}, - {"reverse", 0, ((void *)0), 'r'}, - {"size", 0, ((void *)0), 's'}, - {"width", 1, ((void *)0), 'w'}, - {"almost-all", 0, ((void *)0), 'A'}, - {"ignore-backups", 0, ((void *)0), 'B'}, - {"classify", 2, ((void *)0), 'F'}, - {"file-type", 0, ((void *)0), FILE_TYPE_INDICATOR_OPTION}, - {"si", 0, ((void *)0), SI_OPTION}, - {"dereference-command-line", 0, ((void *)0), 'H'}, - {"dereference-command-line-symlink-to-dir", 0, ((void *)0), - DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION}, - {"hide", 1, ((void *)0), HIDE_OPTION}, - {"ignore", 1, ((void *)0), 'I'}, - {"indicator-style", 1, ((void *)0), INDICATOR_STYLE_OPTION}, - {"dereference", 0, ((void *)0), 'L'}, - {"literal", 0, ((void *)0), 'N'}, - {"quote-name", 0, ((void *)0), 'Q'}, - {"quoting-style", 1, ((void *)0), QUOTING_STYLE_OPTION}, - {"recursive", 0, ((void *)0), 'R'}, - {"format", 1, ((void *)0), FORMAT_OPTION}, - {"show-control-chars", 0, ((void *)0), SHOW_CONTROL_CHARS_OPTION}, - {"sort", 1, ((void *)0), SORT_OPTION}, - {"tabsize", 1, ((void *)0), 'T'}, - {"time", 1, ((void *)0), TIME_OPTION}, - {"time-style", 1, ((void *)0), TIME_STYLE_OPTION}, - {"zero", 0, ((void *)0), ZERO_OPTION}, - {"color", 2, ((void *)0), COLOR_OPTION}, - {"hyperlink", 2, ((void *)0), HYPERLINK_OPTION}, - {"block-size", 1, ((void *)0), BLOCK_SIZE_OPTION}, - {"context", 0, 0, 'Z'}, - {"author", 0, ((void *)0), AUTHOR_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static char const *const format_args[] = { - "verbose", "long", "commas", "horizontal", "across", - "vertical", "single-column", ((void *)0) - -}; -static enum format const format_types[] = { - long_format, long_format, with_commas, horizontal, - horizontal, many_per_line, one_per_line}; -_Static_assert( - (sizeof(format_args) / sizeof *(format_args)) == - (sizeof(format_types) / sizeof *(format_types)) + 1, - "verify (" - "ARRAY_CARDINALITY (format_args) == ARRAY_CARDINALITY (format_types) + 1" - ")"); - -static char const *const sort_args[] = {"none", "time", "size", - "extension", "version", "width", - ((void *)0) - -}; -static enum sort_type const sort_types[] = { - sort_none, sort_time, sort_size, sort_extension, sort_version, sort_width}; -_Static_assert( - (sizeof(sort_args) / sizeof *(sort_args)) == - (sizeof(sort_types) / sizeof *(sort_types)) + 1, - "verify (" - "ARRAY_CARDINALITY (sort_args) == ARRAY_CARDINALITY (sort_types) + 1" - ")"); - -static char const *const time_args[] = { - "atime", "access", "use", "ctime", "status", "birth", "creation", - - ((void *)0) - -}; -static enum time_type const time_types[] = { - time_atime, time_atime, time_atime, time_ctime, - time_ctime, time_btime, time_btime, -}; -_Static_assert( - (sizeof(time_args) / sizeof *(time_args)) == - (sizeof(time_types) / sizeof *(time_types)) + 1, - "verify (" - "ARRAY_CARDINALITY (time_args) == ARRAY_CARDINALITY (time_types) + 1" - ")"); - -static char const *const when_args[] = { - - "always", "yes", "force", "never", "no", "none", - "auto", "tty", "if-tty", ((void *)0) - -}; -static enum when_type const when_types[] = { - when_always, when_always, when_always, when_never, when_never, - when_never, when_if_tty, when_if_tty, when_if_tty}; -_Static_assert( - (sizeof(when_args) / sizeof *(when_args)) == - (sizeof(when_types) / sizeof *(when_types)) + 1, - "verify (" - "ARRAY_CARDINALITY (when_args) == ARRAY_CARDINALITY (when_types) + 1" - ")"); - -struct column_info { - - _Bool valid_len; - size_t line_len; - size_t *col_arr; -}; - -static struct column_info *column_info; - -static size_t max_idx; - -enum { MIN_COLUMN_WIDTH = 3 }; - -static off_t dired_pos; - -static void dired_outbyte(char c) { - dired_pos++; - putchar_unlocked(c); -} - -static void dired_outbuf(char const *s, size_t s_len) { - dired_pos += s_len; - fwrite_unlocked(s, sizeof *s, s_len, stdout); -} - -static void dired_outstring(char const *s) { dired_outbuf(s, strlen(s)); } - -static void dired_indent(void) { - if (dired) - dired_outstring(" "); -} - -static struct obstack dired_obstack; - -static struct obstack subdired_obstack; - -static void push_current_dired_pos(struct obstack *obs) { - if (dired) - __extension__({ - struct obstack *__o = (obs); - size_t __len = (sizeof dired_pos); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < __len) - _obstack_newchunk(__o, __len); - memcpy(__o->next_free, &dired_pos, __len); - __o->next_free += __len; - (void)0; - }); -} - -static struct obstack dev_ino_obstack; - -static void dev_ino_push(dev_t dev, ino_t ino) { - void *vdi; - struct dev_ino *di; - int dev_ino_size = sizeof *di; - __extension__({ - struct obstack *__o = (&dev_ino_obstack); - size_t __len = (dev_ino_size); - if (__extension__({ - struct obstack const *__o1 = (__o); - (size_t)(__o1->chunk_limit - __o1->next_free); - }) < __len) - _obstack_newchunk(__o, __len); - ((void)((__o)->next_free += (__len))); - }); - vdi = ((void *)(&dev_ino_obstack)->next_free); - di = vdi; - di--; - di->st_dev = dev; - di->st_ino = ino; -} - -static struct dev_ino dev_ino_pop(void) { - void *vdi; - struct dev_ino *di; - int dev_ino_size = sizeof *di; - - ((void)sizeof((dev_ino_size <= __extension__({ - struct obstack const *__o = (&dev_ino_obstack); - (size_t)(__o->next_free - __o->object_base); - })) - ? 1 - : 0), - __extension__({ - if (dev_ino_size <= __extension__({ - struct obstack const *__o = (&dev_ino_obstack); - (size_t)(__o->next_free - __o->object_base); - })) - ; - else - __assert_fail("dev_ino_size <= obstack_object_size (&dev_ino_obstack)", - "src/ls.c", 1053, __extension__ __PRETTY_FUNCTION__); - })); - ((void)((&dev_ino_obstack)->next_free += (-dev_ino_size))); - vdi = ((void *)(&dev_ino_obstack)->next_free); - di = vdi; - return *di; -} - -static void assert_matching_dev_ino(char const *name, struct dev_ino di) { - struct stat sb; - - ((void)sizeof((name) ? 1 : 0), __extension__({ - if (name) - ; - else - __assert_fail("name", "src/ls.c", 1064, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof((0 <= stat(name, &sb)) ? 1 : 0), __extension__({ - if (0 <= stat(name, &sb)) - ; - else - __assert_fail("0 <= stat (name, &sb)", "src/ls.c", 1065, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof((sb.st_dev == di.st_dev) ? 1 : 0), __extension__({ - if (sb.st_dev == di.st_dev) - ; - else - __assert_fail("sb.st_dev == di.st_dev", "src/ls.c", 1066, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof((sb.st_ino == di.st_ino) ? 1 : 0), __extension__({ - if (sb.st_ino == di.st_ino) - ; - else - __assert_fail("sb.st_ino == di.st_ino", "src/ls.c", 1067, - __extension__ __PRETTY_FUNCTION__); - })); -} - -static char eolbyte = '\n'; - -static void dired_dump_obstack(char const *prefix, struct obstack *os) { - size_t n_pos; - - n_pos = __extension__({ - struct obstack const *__o = (os); - (size_t)(__o->next_free - __o->object_base); - }) / - sizeof(dired_pos); - if (n_pos > 0) { - off_t *pos = __extension__({ - struct obstack *__o1 = (os); - void *__value = (void *)__o1->object_base; - if (__o1->next_free == __value) - __o1->maybe_empty_object = 1; - __o1->next_free = - ((sizeof(ptrdiff_t) < sizeof(void *) ? (__o1->object_base) - : (char *)0) + - (((__o1->next_free) - - (sizeof(ptrdiff_t) < sizeof(void *) ? (__o1->object_base) - : (char *)0) + - (__o1->alignment_mask)) & - ~(__o1->alignment_mask))); - if ((size_t)(__o1->next_free - (char *)__o1->chunk) > - (size_t)(__o1->chunk_limit - (char *)__o1->chunk)) - __o1->next_free = __o1->chunk_limit; - __o1->object_base = __o1->next_free; - __value; - }); - fputs_unlocked(prefix, stdout); - for (size_t i = 0; i < n_pos; i++) { - intmax_t p = pos[i]; - printf(" %" - "l" - "d", - p); - } - putchar_unlocked('\n'); - } -} - -static struct timespec get_stat_btime(struct stat const *st) { - struct timespec btimespec; - - btimespec = get_stat_mtime(st); - - return btimespec; -} - -__attribute__((__pure__)) static unsigned int time_type_to_statx(void) { - switch (time_type) { - case time_ctime: - return 0x00000080U; - case time_mtime: - return 0x00000040U; - case time_atime: - return 0x00000020U; - case time_btime: - return 0x00000800U; - default: - abort(); - } - return 0; -} - -__attribute__((__pure__)) static unsigned int calc_req_mask(void) { - unsigned int mask = 0x00000002U; - - if (print_inode) - mask |= 0x00000100U; - - if (print_block_size) - mask |= 0x00000400U; - - if (format == long_format) { - mask |= 0x00000004U | 0x00000200U | time_type_to_statx(); - if (print_owner || print_author) - mask |= 0x00000008U; - if (print_group) - mask |= 0x00000010U; - } - - switch (sort_type) { - case sort_none: - case sort_name: - case sort_version: - case sort_extension: - case sort_width: - break; - case sort_time: - mask |= time_type_to_statx(); - break; - case sort_size: - mask |= 0x00000200U; - break; - default: - abort(); - } - - return mask; -} - -static int do_statx(int fd, char const *name, struct stat *st, int flags, - unsigned int mask) { - struct statx stx; - - _Bool want_btime = mask & 0x00000800U; - int ret = statx(fd, name, flags | 0x800, mask, &stx); - if (ret >= 0) { - statx_to_stat(&stx, st); - - if (want_btime) { - if (stx.stx_mask & 0x00000800U) - st->st_mtim = statx_timestamp_to_timespec(stx.stx_btime); - else - st->st_mtim.tv_sec = st->st_mtim.tv_nsec = -1; - } - } - - return ret; -} - -static int do_stat(char const *name, struct stat *st) { - return do_statx(-100, name, st, 0, calc_req_mask()); -} - -static int do_lstat(char const *name, struct stat *st) { - return do_statx(-100, name, st, 0x100, calc_req_mask()); -} - -static int stat_for_mode(char const *name, struct stat *st) { - return do_statx(-100, name, st, 0, 0x00000002U); -} - -static int stat_for_ino(char const *name, struct stat *st) { - return do_statx(-100, name, st, 0, 0x00000100U); -} - -static int fstat_for_ino(int fd, struct stat *st) { - return do_statx(fd, "", st, 0x1000, 0x00000100U); -} -__attribute__((__pure__)) static char const *first_percent_b(char const *fmt) { - for (; *fmt; fmt++) - if (fmt[0] == '%') - switch (fmt[1]) { - case 'b': - return fmt; - case '%': - fmt++; - break; - } - return ((void *)0); -} - -static char RFC3986[256]; -static void file_escape_init(void) { - for (int i = 0; i < 256; i++) - RFC3986[i] |= c_isalnum(i) || i == '~' || i == '-' || i == '.' || i == '_'; -} -enum { MAX_MON_WIDTH = 12 }; - -enum { ABFORMAT_SIZE = 128 }; -static char abformat[2][12][ABFORMAT_SIZE]; - -static _Bool use_abformat; - -static _Bool - -abmon_init(char abmon[12][ABFORMAT_SIZE]) { - - size_t required_mon_width = MAX_MON_WIDTH; - size_t curr_max_width; - do { - curr_max_width = required_mon_width; - required_mon_width = 0; - for (int i = 0; i < 12; i++) { - size_t width = curr_max_width; - char const *abbr = nl_langinfo(ABMON_1 + i); - if (strchr(abbr, '%')) - return 0; - mbs_align_t alignment = ((*__ctype_b_loc())[(int)((to_uchar(*abbr)))] & - (unsigned short int)_ISdigit) - - ? MBS_ALIGN_RIGHT - : MBS_ALIGN_LEFT; - size_t req = - mbsalign(abbr, abmon[i], ABFORMAT_SIZE, &width, alignment, 0); - if (!(req < ABFORMAT_SIZE)) - return 0; - required_mon_width = - (((required_mon_width) > (width)) ? (required_mon_width) : (width)); - } - } while (curr_max_width > required_mon_width); - - return 1; -} - -static void abformat_init(void) { - char const *pb[2]; - for (int recent = 0; recent < 2; recent++) - pb[recent] = first_percent_b(long_time_format[recent]); - if (!(pb[0] || pb[1])) - return; - - char abmon[12][ABFORMAT_SIZE]; - if (!abmon_init(abmon)) - return; - - for (int recent = 0; recent < 2; recent++) { - char const *fmt = long_time_format[recent]; - for (int i = 0; i < 12; i++) { - char *nfmt = abformat[recent][i]; - int nbytes; - - if (!pb[recent]) - nbytes = snprintf(nfmt, ABFORMAT_SIZE, "%s", fmt); - else { - if (!(pb[recent] - fmt <= (((ABFORMAT_SIZE) < (0x7fffffff)) - ? (ABFORMAT_SIZE) - : (0x7fffffff)))) - return; - int prefix_len = pb[recent] - fmt; - nbytes = snprintf(nfmt, ABFORMAT_SIZE, "%.*s%s%s", prefix_len, fmt, - abmon[i], pb[recent] + 2); - } - - if (!(0 <= nbytes && nbytes < ABFORMAT_SIZE)) - return; - } - } - - use_abformat = 1; -} - -static size_t dev_ino_hash(void const *x, size_t table_size) { - struct dev_ino const *p = x; - return (uintmax_t)p->st_ino % table_size; -} - -static _Bool - -dev_ino_compare(void const *x, void const *y) { - struct dev_ino const *a = x; - struct dev_ino const *b = y; - return ((*a).st_ino == (*b).st_ino && (*a).st_dev == (*b).st_dev) ? 1 : 0; -} - -static void dev_ino_free(void *x) { free(x); } - -static _Bool - -visit_dir(dev_t dev, ino_t ino) { - struct dev_ino *ent; - struct dev_ino *ent_from_table; - - _Bool found_match; - - ent = xmalloc(sizeof *ent); - ent->st_ino = ino; - ent->st_dev = dev; - - ent_from_table = hash_insert(active_dir_set, ent); - - if (ent_from_table == ((void *)0)) { - - xalloc_die(); - } - - found_match = (ent_from_table != ent); - - if (found_match) { - - free(ent); - } - - return found_match; -} - -static void free_pending_ent(struct pending *p) { - free(p->name); - free(p->realname); - free(p); -} - -static _Bool - -is_colored(enum indicator_no type) { - size_t len = color_indicator[type].len; - char const *s = color_indicator[type].string; - return !(len == 0 || - (len == 1 && strncmp(s, - "" - "0" - "", - sizeof("0") - 1) == 0) || - (len == 2 && strncmp(s, - "" - "00" - "", - sizeof("00") - 1) == 0)); -} - -static void restore_default_color(void) { - put_indicator(&color_indicator[C_LEFT]); - put_indicator(&color_indicator[C_RIGHT]); -} - -static void set_normal_color(void) { - if (print_with_color && is_colored(C_NORM)) { - put_indicator(&color_indicator[C_LEFT]); - put_indicator(&color_indicator[C_NORM]); - put_indicator(&color_indicator[C_RIGHT]); - } -} - -static void sighandler(int sig) { - if (!1) - signal(sig, ((__sighandler_t)1)); - if (!interrupt_signal) - interrupt_signal = sig; -} - -static void stophandler(int sig) { - if (!1) - signal(sig, stophandler); - if (!interrupt_signal) - stop_signal_count++; -} - -static void process_signals(void) { - while (interrupt_signal || stop_signal_count) { - int sig; - int stops; - sigset_t oldset; - - if (used_color) - restore_default_color(); - fflush_unlocked(stdout); - - sigprocmask(0, &caught_signals, &oldset); - - sig = interrupt_signal; - stops = stop_signal_count; - - if (stops) { - stop_signal_count = stops - 1; - sig = 19; - } else - signal(sig, ((__sighandler_t)0)); - - raise(sig); - sigprocmask(2, &oldset, ((void *)0)); - } -} - -static void signal_setup(_Bool init) { - - static int const sig[] = { - - 20, - - 14, 1, 2, 13, 3, 15, - - 29, - - 27, - - 26, - - 24, - - 25, - - }; - enum { nsigs = (sizeof(sig) / sizeof *(sig)) }; - - int j; - - if (init) { - - struct sigaction act; - - sigemptyset(&caught_signals); - for (j = 0; j < nsigs; j++) { - sigaction(sig[j], ((void *)0), &act); - if (act.__sigaction_handler.sa_handler != ((__sighandler_t)1)) - sigaddset(&caught_signals, sig[j]); - } - - act.sa_mask = caught_signals; - act.sa_flags = 0x10000000; - - for (j = 0; j < nsigs; j++) - if (sigismember(&caught_signals, sig[j])) { - act.__sigaction_handler.sa_handler = - sig[j] == 20 ? stophandler : sighandler; - sigaction(sig[j], &act, ((void *)0)); - } - } else { - - for (j = 0; j < nsigs; j++) - if (sigismember(&caught_signals, sig[j])) - signal(sig[j], ((__sighandler_t)0)); - } -} - -static void signal_init(void) { signal_setup(1); } - -static void signal_restore(void) { signal_setup(0); } - -int main(int argc, char **argv) { - int i; - struct pending *thispend; - int n_files; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(LS_FAILURE); - atexit(close_stdout); - - ((void)sizeof(((sizeof(color_indicator) / sizeof *(color_indicator)) + 1 == - (sizeof(indicator_name) / sizeof *(indicator_name))) - ? 1 - : 0), - __extension__({ - if ((sizeof(color_indicator) / sizeof *(color_indicator)) + 1 == - (sizeof(indicator_name) / sizeof *(indicator_name))) - ; - else - __assert_fail("ARRAY_CARDINALITY (color_indicator) + 1 == " - "ARRAY_CARDINALITY (indicator_name)", - "src/ls.c", 1660, __extension__ __PRETTY_FUNCTION__); - })) - - ; - - exit_status = 0; - print_dir_name = 1; - pending_dirs = ((void *)0); - - current_time.tv_sec = ((time_t) ~( - (time_t)(!(!((time_t)0 < (time_t)-1)) - ? (time_t)-1 - : ((((time_t)1 << ((sizeof(time_t) * 8) - 2)) - 1) * 2 + - 1)))); - current_time.tv_nsec = -1; - - i = decode_switches(argc, argv); - - if (print_with_color) - parse_ls_color(); - - if (print_with_color) { - - tabsize = 0; - } - - if (directories_first) - check_symlink_mode = 1; - else if (print_with_color) { - - if (is_colored(C_ORPHAN) || - (is_colored(C_EXEC) && color_symlink_as_referent) || - (is_colored(C_MISSING) && format == long_format)) - check_symlink_mode = 1; - } - - if (dereference == DEREF_UNDEFINED) - dereference = ((immediate_dirs || indicator_style == classify || - format == long_format) - ? DEREF_NEVER - : DEREF_COMMAND_LINE_SYMLINK_TO_DIR); - - if (recursive) { - active_dir_set = - hash_initialize(INITIAL_TABLE_SIZE, ((void *)0), dev_ino_hash, - dev_ino_compare, dev_ino_free); - if (active_dir_set == ((void *)0)) - xalloc_die(); - - _obstack_begin((&dev_ino_obstack), 0, 0, (malloc), (free)); - } - - localtz = tzalloc(getenv("TZ")); - - format_needs_stat = sort_type == sort_time || sort_type == sort_size || - format == long_format || print_scontext || - print_block_size; - format_needs_type = - (!format_needs_stat && (recursive || print_with_color || - indicator_style != none || directories_first)); - - if (dired) { - _obstack_begin((&dired_obstack), 0, 0, (malloc), (free)); - _obstack_begin((&subdired_obstack), 0, 0, (malloc), (free)); - } - - if (print_hyperlink) { - file_escape_init(); - - hostname = xgethostname(); - - if (!hostname) - hostname = ""; - } - - cwd_n_alloc = 100; - cwd_file = xnmalloc(cwd_n_alloc, sizeof *cwd_file); - cwd_n_used = 0; - - clear_files(); - - n_files = argc - i; - - if (n_files <= 0) { - if (immediate_dirs) - gobble_file(".", directory, NOT_AN_INODE_NUMBER, 1, ""); - else - queue_directory(".", ((void *)0), 1); - } else - do - gobble_file(argv[i++], unknown, NOT_AN_INODE_NUMBER, 1, ""); - while (i < argc); - - if (cwd_n_used) { - sort_files(); - if (!immediate_dirs) - extract_dirs_from_files(((void *)0), 1); - } - - if (cwd_n_used) { - print_current_files(); - if (pending_dirs) - dired_outbyte('\n'); - } else if (n_files <= 1 && pending_dirs && pending_dirs->next == 0) - print_dir_name = 0; - - while (pending_dirs) { - thispend = pending_dirs; - pending_dirs = pending_dirs->next; - - if ((!!active_dir_set)) { - if (thispend->name == ((void *)0)) { - - struct dev_ino di = dev_ino_pop(); - struct dev_ino *found = hash_remove(active_dir_set, &di); - if (0) - assert_matching_dev_ino(thispend->realname, di); - - ((void)sizeof((found) ? 1 : 0), __extension__({ - if (found) - ; - else - __assert_fail("found", "src/ls.c", 1805, - __extension__ __PRETTY_FUNCTION__); - })); - dev_ino_free(found); - free_pending_ent(thispend); - continue; - } - } - - print_dir(thispend->name, thispend->realname, thispend->command_line_arg); - - free_pending_ent(thispend); - print_dir_name = 1; - } - - if (print_with_color && used_color) { - int j; - - if (!(color_indicator[C_LEFT].len == 2 && - memcmp(color_indicator[C_LEFT].string, "\033[", 2) == 0 && - color_indicator[C_RIGHT].len == 1 && - color_indicator[C_RIGHT].string[0] == 'm')) - restore_default_color(); - - fflush_unlocked(stdout); - - signal_restore(); - - for (j = stop_signal_count; j; j--) - raise(19); - j = interrupt_signal; - if (j) - raise(j); - } - - if (dired) { - - dired_dump_obstack("//DIRED//", &dired_obstack); - dired_dump_obstack("//SUBDIRED//", &subdired_obstack); - printf("//DIRED-OPTIONS// --quoting-style=%s\n", - quoting_style_args[get_quoting_style(filename_quoting_options)]); - } - - if ((!!active_dir_set)) { - - ((void)sizeof((hash_get_n_entries(active_dir_set) == 0) ? 1 : 0), - __extension__({ - if (hash_get_n_entries(active_dir_set) == 0) - ; - else - __assert_fail("hash_get_n_entries (active_dir_set) == 0", "src/ls.c", - 1857, __extension__ __PRETTY_FUNCTION__); - })); - hash_free(active_dir_set); - } - - return exit_status; -} - -static ptrdiff_t decode_line_length(char const *spec) { - uintmax_t val; - - switch (xstrtoumax(spec, ((void *)0), 0, &val, "")) { - case LONGINT_OK: - return val <= ((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) - ? val - : 0; - - case LONGINT_OVERFLOW: - return 0; - - default: - return -1; - } -} - -static _Bool - -stdout_isatty(void) { - static signed char out_tty = -1; - if (out_tty < 0) - out_tty = isatty(1); - ((out_tty == 0 || out_tty == 1) ? (void)0 : __builtin_unreachable()); - return out_tty; -} - -static int decode_switches(int argc, char **argv) { - char *time_style_option = ((void *)0); - - _Bool kibibytes_specified = 0; - int format_opt = -1; - int hide_control_chars_opt = -1; - int quoting_style_opt = -1; - int sort_opt = -1; - ptrdiff_t tabsize_opt = -1; - ptrdiff_t width_opt = -1; - - while (1) { - int oi = -1; - int c = - getopt_long(argc, argv, "abcdfghiklmnopqrstuvw:xABCDFGHI:LNQRST:UXZ1", - long_options, &oi); - if (c == -1) - break; - - switch (c) { - case 'a': - ignore_mode = IGNORE_MINIMAL; - break; - - case 'b': - quoting_style_opt = escape_quoting_style; - break; - - case 'c': - time_type = time_ctime; - break; - - case 'd': - immediate_dirs = 1; - break; - - case 'f': - - ignore_mode = IGNORE_MINIMAL; - sort_opt = sort_none; - if (format_opt == long_format) - format_opt = -1; - print_with_color = 0; - print_hyperlink = 0; - print_block_size = 0; - break; - - case FILE_TYPE_INDICATOR_OPTION: - indicator_style = file_type; - break; - - case 'g': - format_opt = long_format; - print_owner = 0; - break; - - case 'h': - file_human_output_opts = human_output_opts = - human_autoscale | human_SI | human_base_1024; - file_output_block_size = output_block_size = 1; - break; - - case 'i': - print_inode = 1; - break; - - case 'k': - kibibytes_specified = 1; - break; - - case 'l': - format_opt = long_format; - break; - - case 'm': - format_opt = with_commas; - break; - - case 'n': - numeric_ids = 1; - format_opt = long_format; - break; - - case 'o': - format_opt = long_format; - print_group = 0; - break; - - case 'p': - indicator_style = slash; - break; - - case 'q': - hide_control_chars_opt = 1; - break; - - case 'r': - sort_reverse = 1; - break; - - case 's': - print_block_size = 1; - break; - - case 't': - sort_opt = sort_time; - break; - - case 'u': - time_type = time_atime; - break; - - case 'v': - sort_opt = sort_version; - break; - - case 'w': - width_opt = decode_line_length(optarg); - if (width_opt < 0) - ((!!sizeof(struct { - _Static_assert( - LS_FAILURE, - "verify_expr (" - "LS_FAILURE" - ", " - "(error (LS_FAILURE, 0, \"%s: %s\", dcgettext (((void *)0), " - "\"invalid line width\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(LS_FAILURE, 0, "%s: %s", - dcgettext(((void *)0), "invalid line width", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(LS_FAILURE, 0, "%s: %s", - dcgettext(((void *)0), "invalid line width", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - break; - - case 'x': - format_opt = horizontal; - break; - - case 'A': - ignore_mode = IGNORE_DOT_AND_DOTDOT; - break; - - case 'B': - add_ignore_pattern("*~"); - add_ignore_pattern(".*~"); - break; - - case 'C': - format_opt = many_per_line; - break; - - case 'D': - dired = 1; - break; - - case 'F': { - int i; - if (optarg) - i = ((when_types)[__xargmatch_internal( - "--classify", optarg, when_args, (void const *)(when_types), - sizeof *(when_types), argmatch_die, 1)]); - else - - i = when_always; - - if (i == when_always || (i == when_if_tty && stdout_isatty())) - indicator_style = classify; - break; - } - - case 'G': - print_group = 0; - break; - - case 'H': - dereference = DEREF_COMMAND_LINE_ARGUMENTS; - break; - - case DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION: - dereference = DEREF_COMMAND_LINE_SYMLINK_TO_DIR; - break; - - case 'I': - add_ignore_pattern(optarg); - break; - - case 'L': - dereference = DEREF_ALWAYS; - break; - - case 'N': - quoting_style_opt = literal_quoting_style; - break; - - case 'Q': - quoting_style_opt = c_quoting_style; - break; - - case 'R': - recursive = 1; - break; - - case 'S': - sort_opt = sort_size; - break; - - case 'T': - tabsize_opt = xnumtoumax( - optarg, 0, 0, - ((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))), - "", dcgettext(((void *)0), "invalid tab size", 5), LS_FAILURE); - break; - - case 'U': - sort_opt = sort_none; - break; - - case 'X': - sort_opt = sort_extension; - break; - - case '1': - - if (format_opt != long_format) - format_opt = one_per_line; - break; - - case AUTHOR_OPTION: - print_author = 1; - break; - - case HIDE_OPTION: { - struct ignore_pattern *hide = xmalloc(sizeof *hide); - hide->pattern = optarg; - hide->next = hide_patterns; - hide_patterns = hide; - } break; - - case SORT_OPTION: - sort_opt = ((sort_types)[__xargmatch_internal( - "--sort", optarg, sort_args, (void const *)(sort_types), - sizeof *(sort_types), argmatch_die, 1)]); - break; - - case GROUP_DIRECTORIES_FIRST_OPTION: - directories_first = 1; - break; - - case TIME_OPTION: - time_type = ((time_types)[__xargmatch_internal( - "--time", optarg, time_args, (void const *)(time_types), - sizeof *(time_types), argmatch_die, 1)]); - break; - - case FORMAT_OPTION: - format_opt = ((format_types)[__xargmatch_internal( - "--format", optarg, format_args, (void const *)(format_types), - sizeof *(format_types), argmatch_die, 1)]); - break; - - case FULL_TIME_OPTION: - format_opt = long_format; - time_style_option = bad_cast("full-iso"); - break; - - case COLOR_OPTION: { - int i; - if (optarg) - i = ((when_types)[__xargmatch_internal( - "--color", optarg, when_args, (void const *)(when_types), - sizeof *(when_types), argmatch_die, 1)]); - else - - i = when_always; - - print_with_color = - (i == when_always || (i == when_if_tty && stdout_isatty())); - break; - } - - case HYPERLINK_OPTION: { - int i; - if (optarg) - i = ((when_types)[__xargmatch_internal( - "--hyperlink", optarg, when_args, (void const *)(when_types), - sizeof *(when_types), argmatch_die, 1)]); - else - - i = when_always; - - print_hyperlink = - (i == when_always || (i == when_if_tty && stdout_isatty())); - break; - } - - case INDICATOR_STYLE_OPTION: - indicator_style = ((indicator_style_types)[__xargmatch_internal( - "--indicator-style", optarg, indicator_style_args, - (void const *)(indicator_style_types), - sizeof *(indicator_style_types), argmatch_die, 1)]) - - ; - break; - - case QUOTING_STYLE_OPTION: - quoting_style_opt = ((quoting_style_vals)[__xargmatch_internal( - "--quoting-style", optarg, quoting_style_args, - (void const *)(quoting_style_vals), sizeof *(quoting_style_vals), - argmatch_die, 1)]) - - ; - break; - - case TIME_STYLE_OPTION: - time_style_option = optarg; - break; - - case SHOW_CONTROL_CHARS_OPTION: - hide_control_chars_opt = 0; - break; - - case BLOCK_SIZE_OPTION: { - enum strtol_error e = - human_options(optarg, &human_output_opts, &output_block_size); - if (e != LONGINT_OK) - xstrtol_fatal(e, oi, 0, long_options, optarg); - file_human_output_opts = human_output_opts; - file_output_block_size = output_block_size; - } break; - - case SI_OPTION: - file_human_output_opts = human_output_opts = human_autoscale | human_SI; - file_output_block_size = output_block_size = 1; - break; - - case 'Z': - print_scontext = 1; - break; - - case ZERO_OPTION: - eolbyte = 0; - hide_control_chars_opt = 0; - if (format_opt != long_format) - format_opt = one_per_line; - print_with_color = 0; - quoting_style_opt = literal_quoting_style; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, - (ls_mode == 1 ? "ls" : (ls_mode == 2 ? "dir" : "vdir")), - "GNU coreutils", Version, ("Richard M. Stallman"), - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(LS_FAILURE); - } - } - - if (!output_block_size) { - char const *ls_block_size = getenv("LS_BLOCK_SIZE"); - human_options(ls_block_size, &human_output_opts, &output_block_size); - if (ls_block_size || getenv("BLOCK_SIZE")) { - file_human_output_opts = human_output_opts; - file_output_block_size = output_block_size; - } - if (kibibytes_specified) { - human_output_opts = 0; - output_block_size = 1024; - } - } - - format = (0 <= format_opt ? format_opt - : ls_mode == 1 ? (stdout_isatty() ? many_per_line : one_per_line) - : ls_mode == 2 ? many_per_line - : long_format); - - ptrdiff_t linelen = width_opt; - if (format == many_per_line || format == horizontal || - format == with_commas || print_with_color) { - - if (linelen < 0) { - - struct winsize ws; - if (stdout_isatty() && 0 <= ioctl(1, 0x5413, &ws) && 0 < ws.ws_col) - linelen = - ws.ws_col <= - ((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) - ? ws.ws_col - : 0; - } - - if (linelen < 0) { - char const *p = getenv("COLUMNS"); - if (p && *p) { - linelen = decode_line_length(p); - if (linelen < 0) - error(0, 0, - - dcgettext(((void *)0), - "ignoring invalid width" - " in environment variable COLUMNS: %s", - 5) - - , - quote(p)); - } - } - } - - line_length = linelen < 0 ? 80 : linelen; - - max_idx = line_length / MIN_COLUMN_WIDTH; - - max_idx += line_length % MIN_COLUMN_WIDTH != 0; - - if (format == many_per_line || format == horizontal || - format == with_commas) { - if (0 <= tabsize_opt) - tabsize = tabsize_opt; - else { - tabsize = 8; - char const *p = getenv("TABSIZE"); - if (p) { - uintmax_t tmp; - if (xstrtoumax(p, ((void *)0), 0, &tmp, "") == LONGINT_OK && - tmp <= (18446744073709551615UL)) - tabsize = tmp; - else - error(0, 0, - - dcgettext(((void *)0), - "ignoring invalid tab size" - " in environment variable TABSIZE: %s", - 5) - - , - quote(p)); - } - } - } - - qmark_funny_chars = - (hide_control_chars_opt < 0 ? ls_mode == 1 && stdout_isatty() - : hide_control_chars_opt); - - int qs = quoting_style_opt; - if (qs < 0) - qs = getenv_quoting_style(); - if (qs < 0) - qs = (ls_mode == 1 ? (stdout_isatty() ? shell_escape_quoting_style : -1) - : escape_quoting_style); - if (0 <= qs) - set_quoting_style(((void *)0), qs); - qs = get_quoting_style(((void *)0)); - align_variable_outer_quotes = - ((format == long_format || - ((format == many_per_line || format == horizontal) && line_length)) && - (qs == shell_quoting_style || qs == shell_escape_quoting_style || - qs == c_maybe_quoting_style)); - filename_quoting_options = clone_quoting_options(((void *)0)); - if (qs == escape_quoting_style) - set_char_quoting(filename_quoting_options, ' ', 1); - if (file_type <= indicator_style) { - char const *p; - for (p = &"*=>@|"[indicator_style - file_type]; *p; p++) - set_char_quoting(filename_quoting_options, *p, 1); - } - - dirname_quoting_options = clone_quoting_options(((void *)0)); - set_char_quoting(dirname_quoting_options, ':', 1); - - dired &= (format == long_format) & !print_hyperlink; - - if (eolbyte < dired) - ((!!sizeof(struct { - _Static_assert(LS_FAILURE, - "verify_expr (" - "LS_FAILURE" - ", " - "(error (LS_FAILURE, 0, dcgettext (((void *)0), \"--dired " - "and --zero are incompatible\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(LS_FAILURE, 0, - dcgettext(((void *)0), "--dired and --zero are incompatible", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(LS_FAILURE, 0, - dcgettext(((void *)0), "--dired and --zero are incompatible", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - sort_type = (0 <= sort_opt ? sort_opt - : (format != long_format && - (time_type == time_ctime || time_type == time_atime || - time_type == time_btime)) - ? sort_time - : sort_name); - - if (format == long_format) { - char *style = time_style_option; - static char const posix_prefix[] = "posix-"; - - if (!style) - if (!(style = getenv("TIME_STYLE"))) - style = bad_cast("locale"); - - while ((strncmp(style, posix_prefix, sizeof posix_prefix - 1) == 0)) { - if (!hard_locale(2)) - return optind; - style += sizeof posix_prefix - 1; - } - - if (*style == '+') { - char *p0 = style + 1; - char *p1 = strchr(p0, '\n'); - if (!p1) - p1 = p0; - else { - if (strchr(p1 + 1, '\n')) - ((!!sizeof(struct { - _Static_assert( - LS_FAILURE, - "verify_expr (" - "LS_FAILURE" - ", " - "(error (LS_FAILURE, 0, dcgettext (((void *)0), \"invalid time " - "style format %s\", 5), quote (p0)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(LS_FAILURE, 0, - dcgettext(((void *)0), "invalid time style format %s", - 5), - quote(p0)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(LS_FAILURE, 0, - dcgettext(((void *)0), "invalid time style format %s", - 5), - quote(p0)), - ((0) ? (void)0 : __builtin_unreachable())))); - *p1++ = '\0'; - } - long_time_format[0] = p0; - long_time_format[1] = p1; - } else { - ptrdiff_t res = - argmatch(style, time_style_args, (char const *)time_style_types, - sizeof(*time_style_types)); - if (res < 0) { - - argmatch_invalid("time style", style, res); - - fputs_unlocked(dcgettext(((void *)0), "Valid arguments are:\n", 5), - stderr); - char const *const *p = time_style_args; - while (*p) - fprintf(stderr, " - [posix-]%s\n", *p++); - fputs_unlocked(dcgettext(((void *)0), - " - +FORMAT (e.g., +%H:%M) for a 'date'-style" - " format\n", - 5), - stderr); - usage(LS_FAILURE); - } - switch (res) { - case full_iso_time_style: - long_time_format[0] = long_time_format[1] = "%Y-%m-%d %H:%M:%S.%N %z"; - break; - - case long_iso_time_style: - long_time_format[0] = long_time_format[1] = "%Y-%m-%d %H:%M"; - break; - - case iso_time_style: - long_time_format[0] = "%Y-%m-%d "; - long_time_format[1] = "%m-%d %H:%M"; - break; - - case locale_time_style: - if (hard_locale(2)) { - for (int i = 0; i < 2; i++) - long_time_format[i] = - dcgettext(((void *)0), long_time_format[i], 2); - } - } - } - - abformat_init(); - } - - return optind; -} -static _Bool - -get_funky_string(char **dest, char const **src, _Bool equals_end, - size_t *output_count) { - char num; - size_t count; - enum { - ST_GND, - ST_BACKSLASH, - ST_OCTAL, - ST_HEX, - ST_CARET, - ST_END, - ST_ERROR - } state; - char const *p; - char *q; - - p = *src; - q = *dest; - - count = 0; - num = 0; - - state = ST_GND; - while (state < ST_END) { - switch (state) { - case ST_GND: - switch (*p) { - case ':': - case '\0': - state = ST_END; - break; - case '\\': - state = ST_BACKSLASH; - ++p; - break; - case '^': - state = ST_CARET; - ++p; - break; - case '=': - if (equals_end) { - state = ST_END; - break; - }; - default: - *(q++) = *(p++); - ++count; - break; - } - break; - - case ST_BACKSLASH: - switch (*p) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - state = ST_OCTAL; - num = *p - '0'; - break; - case 'x': - case 'X': - state = ST_HEX; - num = 0; - break; - case 'a': - num = '\a'; - break; - case 'b': - num = '\b'; - break; - case 'e': - num = 27; - break; - case 'f': - num = '\f'; - break; - case 'n': - num = '\n'; - break; - case 'r': - num = '\r'; - break; - case 't': - num = '\t'; - break; - case 'v': - num = '\v'; - break; - case '?': - num = 127; - break; - case '_': - num = ' '; - break; - case '\0': - state = ST_ERROR; - break; - default: - num = *p; - break; - } - if (state == ST_BACKSLASH) { - *(q++) = num; - ++count; - state = ST_GND; - } - ++p; - break; - - case ST_OCTAL: - if (*p < '0' || *p > '7') { - *(q++) = num; - ++count; - state = ST_GND; - } else - num = (num << 3) + (*(p++) - '0'); - break; - - case ST_HEX: - switch (*p) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - num = (num << 4) + (*(p++) - '0'); - break; - case 'a': - case 'b': - case 'c': - case 'd': - case 'e': - case 'f': - num = (num << 4) + (*(p++) - 'a') + 10; - break; - case 'A': - case 'B': - case 'C': - case 'D': - case 'E': - case 'F': - num = (num << 4) + (*(p++) - 'A') + 10; - break; - default: - *(q++) = num; - ++count; - state = ST_GND; - break; - } - break; - - case ST_CARET: - state = ST_GND; - if (*p >= '@' && *p <= '~') { - *(q++) = *(p++) & 037; - ++count; - } else if (*p == '?') { - *(q++) = 127; - ++count; - } else - state = ST_ERROR; - break; - - default: - abort(); - } - } - - *dest = q; - *src = p; - *output_count = count; - - return state != ST_ERROR; -} - -enum parse_state { PS_START = 1, PS_2, PS_3, PS_4, PS_DONE, PS_FAIL }; - -static _Bool - -known_term_type(void) { - char const *term = getenv("TERM"); - if (!term || !*term) - return 0; - - char const *line = G_line; - while (line - G_line < sizeof(G_line)) { - if (strncmp(line, - "" - "TERM " - "", - sizeof("TERM ") - 1) == 0) { - if (fnmatch(line + 5, term, 0) == 0) - return 1; - } - line += strlen(line) + 1; - } - - return 0; -} - -static void parse_ls_color(void) { - char const *p; - char *buf; - int ind_no; - char label[3]; - struct color_ext_type *ext; - - if ((p = getenv("LS_COLORS")) == ((void *)0) || *p == '\0') { - - char const *colorterm = getenv("COLORTERM"); - if (!(colorterm && *colorterm) && !known_term_type()) - print_with_color = 0; - return; - } - - ext = ((void *)0); - strcpy(label, "??"); - - buf = color_buf = xstrdup(p); - - enum parse_state state = PS_START; - while (1) { - switch (state) { - case PS_START: - switch (*p) { - case ':': - ++p; - break; - - case '*': - - ext = xmalloc(sizeof *ext); - ext->next = color_ext_list; - color_ext_list = ext; - - ++p; - ext->ext.string = buf; - - state = (get_funky_string(&buf, &p, 1, &ext->ext.len) ? PS_4 : PS_FAIL); - break; - - case '\0': - state = PS_DONE; - goto done; - - default: - label[0] = *(p++); - state = PS_2; - break; - } - break; - - case PS_2: - if (*p) { - label[1] = *(p++); - state = PS_3; - } else - state = PS_FAIL; - break; - - case PS_3: - state = PS_FAIL; - if (*(p++) == '=') { - for (ind_no = 0; indicator_name[ind_no] != ((void *)0); ++ind_no) { - if ((strcmp(label, indicator_name[ind_no]) == 0)) { - color_indicator[ind_no].string = buf; - state = (get_funky_string(&buf, &p, 0, &color_indicator[ind_no].len) - ? PS_START - : PS_FAIL); - break; - } - } - if (state == PS_FAIL) - error(0, 0, dcgettext(((void *)0), "unrecognized prefix: %s", 5), - quote(label)); - } - break; - - case PS_4: - if (*(p++) == '=') { - ext->seq.string = buf; - state = - (get_funky_string(&buf, &p, 0, &ext->seq.len) ? PS_START : PS_FAIL); - } else - state = PS_FAIL; - break; - - case PS_FAIL: - goto done; - - default: - abort(); - } - } -done: - - if (state == PS_FAIL) { - struct color_ext_type *e; - struct color_ext_type *e2; - - error(0, 0, - - dcgettext(((void *)0), - "unparsable value for LS_COLORS environment variable", 5)); - free(color_buf); - for (e = color_ext_list; e != ((void *)0);) { - e2 = e; - e = e->next; - free(e2); - } - print_with_color = 0; - } - - if (color_indicator[C_LINK].len == 6 && - !strncmp(color_indicator[C_LINK].string, - "" - "target" - "", - sizeof("target") - 1)) - color_symlink_as_referent = 1; -} - -static int getenv_quoting_style(void) { - char const *q_style = getenv("QUOTING_STYLE"); - if (!q_style) - return -1; - int i = - argmatch(q_style, quoting_style_args, (void const *)(quoting_style_vals), - sizeof *(quoting_style_vals)); - if (i < 0) { - error(0, 0, - - dcgettext(((void *)0), - "ignoring invalid value" - " of environment variable QUOTING_STYLE: %s", - 5) - - , - quote(q_style)); - return -1; - } - return quoting_style_vals[i]; -} - -static void set_exit_status(_Bool serious) { - if (serious) - exit_status = LS_FAILURE; - else if (exit_status == 0) - exit_status = LS_MINOR_PROBLEM; -} - -static void file_failure(_Bool serious, char const *message, char const *file) { - error(0, (*__errno_location()), message, - quotearg_style(shell_escape_always_quoting_style, file)); - set_exit_status(serious); -} -static void queue_directory(char const *name, char const *realname, - _Bool command_line_arg) { - struct pending *new = xmalloc(sizeof *new); - new->realname = realname ? xstrdup(realname) : ((void *)0); - new->name = name ? xstrdup(name) : ((void *)0); - new->command_line_arg = command_line_arg; - new->next = pending_dirs; - pending_dirs = new; -} - -static void print_dir(char const *name, char const *realname, - _Bool command_line_arg) { - DIR *dirp; - struct dirent *next; - uintmax_t total_blocks = 0; - static _Bool first = 1; - - (*__errno_location()) = 0; - dirp = opendir(name); - if (!dirp) { - file_failure(command_line_arg, - dcgettext(((void *)0), "cannot open directory %s", 5), name); - return; - } - - if ((!!active_dir_set)) { - struct stat dir_stat; - int fd = dirfd(dirp); - - if ((0 <= fd ? fstat_for_ino(fd, &dir_stat) - : stat_for_ino(name, &dir_stat)) < 0) { - file_failure( - command_line_arg, - - dcgettext(((void *)0), "cannot determine device and inode of %s", 5), - name); - closedir(dirp); - return; - } - - if (visit_dir(dir_stat.st_dev, dir_stat.st_ino)) { - error( - 0, 0, - dcgettext(((void *)0), "%s: not listing already-listed directory", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, name)); - closedir(dirp); - set_exit_status(1); - return; - } - - dev_ino_push(dir_stat.st_dev, dir_stat.st_ino); - } - - clear_files(); - - if (recursive || print_dir_name) { - if (!first) - dired_outbyte('\n'); - first = 0; - dired_indent(); - - char *absolute_name = ((void *)0); - if (print_hyperlink) { - absolute_name = canonicalize_filename_mode(name, CAN_MISSING); - if (!absolute_name) - file_failure(command_line_arg, - - dcgettext(((void *)0), "error canonicalizing %s", 5), - name); - } - quote_name(realname ? realname : name, dirname_quoting_options, -1, - - ((void *)0), 1, &subdired_obstack, absolute_name); - - free(absolute_name); - - dired_outstring(":\n"); - } - - while (1) { - - (*__errno_location()) = 0; - next = readdir(dirp); - if (next) { - if (!file_ignored(next->d_name)) { - enum filetype type = unknown; - - switch (next->d_type) { - case DT_BLK: - type = blockdev; - break; - case DT_CHR: - type = chardev; - break; - case DT_DIR: - type = directory; - break; - case DT_FIFO: - type = fifo; - break; - case DT_LNK: - type = symbolic_link; - break; - case DT_REG: - type = normal; - break; - case DT_SOCK: - type = sock; - break; - - case DT_WHT: - type = whiteout; - break; - } - - total_blocks += gobble_file(next->d_name, type, NOT_AN_INODE_NUMBER, - - 0, name); - - if (format == one_per_line && sort_type == sort_none && - !print_block_size && !recursive) { - - sort_files(); - print_current_files(); - clear_files(); - } - } - } else if ((*__errno_location()) != 0) { - file_failure(command_line_arg, - dcgettext(((void *)0), "reading directory %s", 5), name); - if ((*__errno_location()) != 75) - break; - } else - break; - - process_signals(); - } - - if (closedir(dirp) != 0) { - file_failure(command_line_arg, - dcgettext(((void *)0), "closing directory %s", 5), name); - } - - sort_files(); - - if (recursive) - extract_dirs_from_files(name, 0); - - if (format == long_format || print_block_size) { - char buf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 3]; - char *p = human_readable(total_blocks, buf + 1, human_output_opts, - - 512, output_block_size); - char *pend = p + strlen(p); - *--p = ' '; - *pend++ = eolbyte; - dired_indent(); - dired_outstring(dcgettext(((void *)0), "total", 5)); - dired_outbuf(p, pend - p); - } - - if (cwd_n_used) - print_current_files(); -} - -static void add_ignore_pattern(char const *pattern) { - struct ignore_pattern *ignore; - - ignore = xmalloc(sizeof *ignore); - ignore->pattern = pattern; - - ignore->next = ignore_patterns; - ignore_patterns = ignore; -} - -static _Bool - -patterns_match(struct ignore_pattern const *patterns, char const *file) { - struct ignore_pattern const *p; - for (p = patterns; p; p = p->next) - if (fnmatch(p->pattern, file, (1 << 2)) == 0) - return 1; - return 0; -} - -static _Bool - -file_ignored(char const *name) { - return ( - (ignore_mode != IGNORE_MINIMAL && name[0] == '.' && - (ignore_mode == IGNORE_DEFAULT || !name[1 + (name[1] == '.')])) || - (ignore_mode == IGNORE_DEFAULT && patterns_match(hide_patterns, name)) || - patterns_match(ignore_patterns, name)); -} - -static uintmax_t unsigned_file_size(off_t size) { - return size + - (size < 0) * - ((uintmax_t)(( - off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * - 2 + - 1))) - - ((off_t) ~( - (off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * - 2 + - 1)))) + - 1); -} - -static _Bool - -has_capability(char const *name) { - char *result; - - _Bool has_cap; - - cap_t cap_d = cap_get_file(name); - if (cap_d == ((void *)0)) - return 0; - - result = cap_to_text(cap_d, ((void *)0)); - cap_free(cap_d); - if (!result) - return 0; - - has_cap = !!*result; - - cap_free(result); - return has_cap; -} -static void free_ent(struct fileinfo *f) { - free(f->name); - free(f->linkname); - free(f->absolute_name); - if (f->scontext != UNKNOWN_SECURITY_CONTEXT) { - if (is_smack_enabled()) - free(f->scontext); - else - freecon(f->scontext); - } -} - -static void clear_files(void) { - for (size_t i = 0; i < cwd_n_used; i++) { - struct fileinfo *f = sorted_file[i]; - free_ent(f); - } - - cwd_n_used = 0; - cwd_some_quoted = 0; - any_has_acl = 0; - inode_number_width = 0; - block_size_width = 0; - nlink_width = 0; - owner_width = 0; - group_width = 0; - author_width = 0; - scontext_width = 0; - major_device_number_width = 0; - minor_device_number_width = 0; - file_size_width = 0; -} - -static _Bool - -errno_unsupported(int err) { - return (err == 22 || err == 38 || is_ENOTSUP(err)); -} - -static int getfilecon_cache(char const *file, struct fileinfo *f, _Bool deref) { - - static dev_t unsupported_device; - - if (f->stat.st_dev == unsupported_device) { - - (*__errno_location()) = 95; - return -1; - } - int r = 0; - - r = (deref ? rpl_getfilecon(file, &f->scontext) - : rpl_lgetfilecon(file, &f->scontext)); - if (r < 0 && errno_unsupported((*__errno_location()))) - unsupported_device = f->stat.st_dev; - return r; -} - -static int file_has_acl_cache(char const *file, struct fileinfo *f) { - - static dev_t unsupported_device; - - if (f->stat.st_dev == unsupported_device) { - - (*__errno_location()) = 95; - return 0; - } - - (*__errno_location()) = 0; - int n = file_has_acl(file, &f->stat); - if (n <= 0 && errno_unsupported((*__errno_location()))) - unsupported_device = f->stat.st_dev; - return n; -} - -static _Bool - -has_capability_cache(char const *file, struct fileinfo *f) { - - static dev_t unsupported_device; - - if (f->stat.st_dev == unsupported_device) { - - (*__errno_location()) = 95; - return 0; - } - - _Bool b = has_capability(file); - if (!b && errno_unsupported((*__errno_location()))) - unsupported_device = f->stat.st_dev; - return b; -} - -static _Bool - -needs_quoting(char const *name) { - char test[2]; - size_t len = - quotearg_buffer(test, sizeof test, name, -1, filename_quoting_options); - return *name != *test || strlen(name) != len; -} - -static uintmax_t gobble_file(char const *name, enum filetype type, ino_t inode, - - _Bool command_line_arg, char const *dirname) { - uintmax_t blocks = 0; - struct fileinfo *f; - - ((void)sizeof((!command_line_arg || inode == NOT_AN_INODE_NUMBER) ? 1 : 0), - __extension__({ - if (!command_line_arg || inode == NOT_AN_INODE_NUMBER) - ; - else - __assert_fail("! command_line_arg || inode == NOT_AN_INODE_NUMBER", - "src/ls.c", 3335, __extension__ __PRETTY_FUNCTION__); - })); - - if (cwd_n_used == cwd_n_alloc) { - cwd_file = xnrealloc(cwd_file, cwd_n_alloc, 2 * sizeof *cwd_file); - cwd_n_alloc *= 2; - } - - f = &cwd_file[cwd_n_used]; - memset(f, '\0', sizeof *f); - f->stat.st_ino = inode; - f->filetype = type; - - f->quoted = -1; - if ((!cwd_some_quoted) && align_variable_outer_quotes) { - - f->quoted = needs_quoting(name); - if (f->quoted) - cwd_some_quoted = 1; - } - - if (command_line_arg || print_hyperlink || format_needs_stat - - || (type == directory && print_with_color && - (is_colored(C_OTHER_WRITABLE) || is_colored(C_STICKY) || - is_colored(C_STICKY_OTHER_WRITABLE))) - - || ((print_inode || format_needs_type) && - (type == symbolic_link || type == unknown) && - (dereference == DEREF_ALWAYS || color_symlink_as_referent || - check_symlink_mode)) - - || (print_inode && inode == NOT_AN_INODE_NUMBER) || - (format_needs_type && - (type == unknown || command_line_arg - - || (type == normal && - (indicator_style == classify - - || (print_with_color && - (is_colored(C_EXEC) || is_colored(C_SETUID) || - is_colored(C_SETGID) || is_colored(C_CAP)))))))) - - { - - char *full_name; - - _Bool do_deref; - int err; - - if (name[0] == '/' || dirname[0] == 0) - full_name = (char *)name; - else { - full_name = __builtin_alloca(strlen(name) + strlen(dirname) + 2); - attach(full_name, dirname, name); - } - - if (print_hyperlink) { - f->absolute_name = canonicalize_filename_mode(full_name, CAN_MISSING); - if (!f->absolute_name) - file_failure(command_line_arg, - - dcgettext(((void *)0), "error canonicalizing %s", 5), - full_name); - } - - switch (dereference) { - case DEREF_ALWAYS: - err = do_stat(full_name, &f->stat); - do_deref = 1; - break; - - case DEREF_COMMAND_LINE_ARGUMENTS: - case DEREF_COMMAND_LINE_SYMLINK_TO_DIR: - if (command_line_arg) { - - _Bool need_lstat; - err = do_stat(full_name, &f->stat); - do_deref = 1; - - if (dereference == DEREF_COMMAND_LINE_ARGUMENTS) - break; - - need_lstat = - (err < 0 ? (*__errno_location()) == 2 - - : !((((f->stat.st_mode)) & 0170000) == (0040000))); - if (!need_lstat) - break; - }; - - default: - err = do_lstat(full_name, &f->stat); - do_deref = 0; - break; - } - - if (err != 0) { - - file_failure(command_line_arg, - - dcgettext(((void *)0), "cannot access %s", 5), full_name); - - f->scontext = UNKNOWN_SECURITY_CONTEXT; - - if (command_line_arg) - return 0; - - f->name = xstrdup(name); - cwd_n_used++; - - return 0; - } - - f->stat_ok = 1; - - if ((type == normal || ((((f->stat.st_mode)) & 0170000) == (0100000))) && - print_with_color && is_colored(C_CAP)) - f->has_capability = has_capability_cache(full_name, f); - - if (format == long_format || print_scontext) { - - _Bool have_scontext = 0; - - _Bool have_acl = 0; - int attr_len = getfilecon_cache(full_name, f, do_deref); - err = (attr_len < 0); - - if (err == 0) { - if (is_smack_enabled()) - have_scontext = !(strcmp("_", f->scontext) == 0); - else - have_scontext = !(strcmp("unlabeled", f->scontext) == 0); - } else { - f->scontext = UNKNOWN_SECURITY_CONTEXT; - - if (is_ENOTSUP((*__errno_location())) || (*__errno_location()) == 61) - err = 0; - } - - if (err == 0 && format == long_format) { - int n = file_has_acl_cache(full_name, f); - err = (n < 0); - have_acl = (0 < n); - } - - f->acl_type = (!have_scontext && !have_acl - ? ACL_T_NONE - : (have_scontext && !have_acl ? ACL_T_LSM_CONTEXT_ONLY - : ACL_T_YES)); - any_has_acl |= f->acl_type != ACL_T_NONE; - - if (err) - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, full_name)); - } - - if (((((f->stat.st_mode)) & 0170000) == (0120000)) - - && (format == long_format || check_symlink_mode)) { - struct stat linkstats; - - get_link_name(full_name, f, command_line_arg); - char *linkname = make_link_name(full_name, f->linkname); - - if (linkname && f->quoted == 0 && needs_quoting(f->linkname)) - f->quoted = -1; - - if (linkname && (file_type <= indicator_style || check_symlink_mode) && - stat_for_mode(linkname, &linkstats) == 0) { - f->linkok = 1; - f->linkmode = linkstats.st_mode; - } - free(linkname); - } - - if (((((f->stat.st_mode)) & 0170000) == (0120000))) - f->filetype = symbolic_link; - else if (((((f->stat.st_mode)) & 0170000) == (0040000))) { - if (command_line_arg && !immediate_dirs) - f->filetype = arg_directory; - else - f->filetype = directory; - } else - f->filetype = normal; - - blocks = ((f->stat).st_blocks); - if (format == long_format || print_block_size) { - char buf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + - 1 + 3) + - 1]; - int len = gnu_mbswidth(human_readable(blocks, buf, human_output_opts, - - 512, output_block_size), - 0); - if (block_size_width < len) - block_size_width = len; - } - - if (format == long_format) { - if (print_owner) { - int len = format_user_width(f->stat.st_uid); - if (owner_width < len) - owner_width = len; - } - - if (print_group) { - int len = format_group_width(f->stat.st_gid); - if (group_width < len) - group_width = len; - } - - if (print_author) { - int len = format_user_width(f->stat.st_uid); - if (author_width < len) - author_width = len; - } - } - - if (print_scontext) { - int len = strlen(f->scontext); - if (scontext_width < len) - scontext_width = len; - } - - if (format == long_format) { - char b[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - int b_len = strlen(umaxtostr(f->stat.st_nlink, b)); - if (nlink_width < b_len) - nlink_width = b_len; - - if (((((f->stat.st_mode)) & 0170000) == (0020000)) || - ((((f->stat.st_mode)) & 0170000) == (0060000))) { - char - buf[((((((sizeof(uintmax_t) * 8) - (!((__typeof__(uintmax_t))0 < - (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - int len = strlen(umaxtostr(gnu_dev_major(f->stat.st_rdev), buf)); - if (major_device_number_width < len) - major_device_number_width = len; - len = strlen(umaxtostr(gnu_dev_minor(f->stat.st_rdev), buf)); - if (minor_device_number_width < len) - minor_device_number_width = len; - len = major_device_number_width + 2 + minor_device_number_width; - if (file_size_width < len) - file_size_width = len; - } else { - char buf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + - 1 + 3) + - 1]; - uintmax_t size = unsigned_file_size(f->stat.st_size); - int len = gnu_mbswidth(human_readable(size, buf, file_human_output_opts, - 1, file_output_block_size), - 0); - if (file_size_width < len) - file_size_width = len; - } - } - } - - if (print_inode) { - char buf[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - int len = strlen(umaxtostr(f->stat.st_ino, buf)); - if (inode_number_width < len) - inode_number_width = len; - } - - f->name = xstrdup(name); - cwd_n_used++; - - return blocks; -} - -static _Bool - -is_directory(const struct fileinfo *f) { - return f->filetype == directory || f->filetype == arg_directory; -} - -static _Bool - -is_linked_directory(const struct fileinfo *f) { - return f->filetype == directory || f->filetype == arg_directory || - ((((f->linkmode)) & 0170000) == (0040000)); -} - -static void get_link_name(char const *filename, struct fileinfo *f, - _Bool command_line_arg) { - f->linkname = areadlink_with_size(filename, f->stat.st_size); - if (f->linkname == ((void *)0)) - file_failure(command_line_arg, - dcgettext(((void *)0), "cannot read symbolic link %s", 5), - filename); -} - -static char *make_link_name(char const *name, char const *linkname) { - if (!linkname) - return ((void *)0); - - if ((((linkname)[0]) == '/')) - return xstrdup(linkname); - - size_t prefix_len = dir_len(name); - if (prefix_len == 0) - return xstrdup(linkname); - - char *p = xmalloc(prefix_len + 1 + strlen(linkname) + 1); - - if (!((name[prefix_len - 1]) == '/')) - ++prefix_len; - - stpcpy(stpncpy(p, name, prefix_len), linkname); - return p; -} - -static _Bool - -basename_is_dot_or_dotdot(char const *name) { - char const *base = last_component(name); - return dot_or_dotdot(base); -} -static void extract_dirs_from_files(char const *dirname, - _Bool command_line_arg) { - size_t i; - size_t j; - - _Bool ignore_dot_and_dot_dot = (dirname != ((void *)0)); - - if (dirname && (!!active_dir_set)) { - - queue_directory(((void *)0), dirname, 0); - } - - for (i = cwd_n_used; i-- != 0;) { - struct fileinfo *f = sorted_file[i]; - - if (is_directory(f) && - (!ignore_dot_and_dot_dot || !basename_is_dot_or_dotdot(f->name))) { - if (!dirname || f->name[0] == '/') - queue_directory(f->name, f->linkname, command_line_arg); - else { - char *name = file_name_concat(dirname, f->name, ((void *)0)); - queue_directory(name, f->linkname, command_line_arg); - free(name); - } - if (f->filetype == arg_directory) - free_ent(f); - } - } - - for (i = 0, j = 0; i < cwd_n_used; i++) { - struct fileinfo *f = sorted_file[i]; - sorted_file[j] = f; - j += (f->filetype != arg_directory); - } - cwd_n_used = j; -} - -static jmp_buf failed_strcoll; - -static int xstrcoll(char const *a, char const *b) { - int diff; - - (*__errno_location()) = 0; - diff = strcoll(a, b); - if ((*__errno_location())) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot compare file names %s and %s", 5), - quote_n(0, a), quote_n(1, b)); - set_exit_status(0); - longjmp(failed_strcoll, 1); - } - return diff; -} - -typedef void const *V; -typedef int (*qsortFunc)(V a, V b); - -static int dirfirst_check(struct fileinfo const *a, struct fileinfo const *b, - int (*cmp)(V, V)) { - int diff = is_linked_directory(b) - is_linked_directory(a); - return diff ? diff : cmp(a, b); -} -static int cmp_ctime(struct fileinfo const *a, struct fileinfo const *b, - int (*cmp)(char const *, char const *)) { - int diff = timespec_cmp(get_stat_ctime(&b->stat), get_stat_ctime(&a->stat)); - return diff ? diff : cmp(a->name, b->name); -} - -static int cmp_mtime(struct fileinfo const *a, struct fileinfo const *b, - int (*cmp)(char const *, char const *)) { - int diff = timespec_cmp(get_stat_mtime(&b->stat), get_stat_mtime(&a->stat)); - return diff ? diff : cmp(a->name, b->name); -} - -static int cmp_atime(struct fileinfo const *a, struct fileinfo const *b, - int (*cmp)(char const *, char const *)) { - int diff = timespec_cmp(get_stat_atime(&b->stat), get_stat_atime(&a->stat)); - return diff ? diff : cmp(a->name, b->name); -} - -static int cmp_btime(struct fileinfo const *a, struct fileinfo const *b, - int (*cmp)(char const *, char const *)) { - int diff = timespec_cmp(get_stat_btime(&b->stat), get_stat_btime(&a->stat)); - return diff ? diff : cmp(a->name, b->name); -} - -static int off_cmp(off_t a, off_t b) { return a < b ? -1 : a > b; } - -static int cmp_size(struct fileinfo const *a, struct fileinfo const *b, - int (*cmp)(char const *, char const *)) { - int diff = off_cmp(b->stat.st_size, a->stat.st_size); - return diff ? diff : cmp(a->name, b->name); -} - -static int cmp_name(struct fileinfo const *a, struct fileinfo const *b, - int (*cmp)(char const *, char const *)) { - return cmp(a->name, b->name); -} - -static int cmp_extension(struct fileinfo const *a, struct fileinfo const *b, - int (*cmp)(char const *, char const *)) { - char const *base1 = strrchr(a->name, '.'); - char const *base2 = strrchr(b->name, '.'); - int diff = cmp(base1 ? base1 : "", base2 ? base2 : ""); - return diff ? diff : cmp(a->name, b->name); -} - -static size_t fileinfo_name_width(struct fileinfo const *f) { - return f->width - ? f->width - : quote_name_width(f->name, filename_quoting_options, f->quoted); -} - -static int cmp_width(struct fileinfo const *a, struct fileinfo const *b, - int (*cmp)(char const *, char const *)) { - int diff = fileinfo_name_width(a) - fileinfo_name_width(b); - return diff ? diff : cmp(a->name, b->name); -} - -static int xstrcoll_ctime(V a, V b) { return cmp_ctime(a, b, xstrcoll); } -__attribute__((__pure__)) static int strcmp_ctime(V a, V b) { - return cmp_ctime(a, b, strcmp); -} -static int rev_xstrcoll_ctime(V a, V b) { return cmp_ctime(b, a, xstrcoll); } -__attribute__((__pure__)) static int rev_strcmp_ctime(V a, V b) { - return cmp_ctime(b, a, strcmp); -} -static int xstrcoll_df_ctime(V a, V b) { - return dirfirst_check(a, b, xstrcoll_ctime); -} -__attribute__((__pure__)) static int strcmp_df_ctime(V a, V b) { - return dirfirst_check(a, b, strcmp_ctime); -} -static int rev_xstrcoll_df_ctime(V a, V b) { - return dirfirst_check(a, b, rev_xstrcoll_ctime); -} -__attribute__((__pure__)) static int rev_strcmp_df_ctime(V a, V b) { - return dirfirst_check(a, b, rev_strcmp_ctime); -} -static int xstrcoll_mtime(V a, V b) { return cmp_mtime(a, b, xstrcoll); } -__attribute__((__pure__)) static int strcmp_mtime(V a, V b) { - return cmp_mtime(a, b, strcmp); -} -static int rev_xstrcoll_mtime(V a, V b) { return cmp_mtime(b, a, xstrcoll); } -__attribute__((__pure__)) static int rev_strcmp_mtime(V a, V b) { - return cmp_mtime(b, a, strcmp); -} -static int xstrcoll_df_mtime(V a, V b) { - return dirfirst_check(a, b, xstrcoll_mtime); -} -__attribute__((__pure__)) static int strcmp_df_mtime(V a, V b) { - return dirfirst_check(a, b, strcmp_mtime); -} -static int rev_xstrcoll_df_mtime(V a, V b) { - return dirfirst_check(a, b, rev_xstrcoll_mtime); -} -__attribute__((__pure__)) static int rev_strcmp_df_mtime(V a, V b) { - return dirfirst_check(a, b, rev_strcmp_mtime); -} -static int xstrcoll_atime(V a, V b) { return cmp_atime(a, b, xstrcoll); } -__attribute__((__pure__)) static int strcmp_atime(V a, V b) { - return cmp_atime(a, b, strcmp); -} -static int rev_xstrcoll_atime(V a, V b) { return cmp_atime(b, a, xstrcoll); } -__attribute__((__pure__)) static int rev_strcmp_atime(V a, V b) { - return cmp_atime(b, a, strcmp); -} -static int xstrcoll_df_atime(V a, V b) { - return dirfirst_check(a, b, xstrcoll_atime); -} -__attribute__((__pure__)) static int strcmp_df_atime(V a, V b) { - return dirfirst_check(a, b, strcmp_atime); -} -static int rev_xstrcoll_df_atime(V a, V b) { - return dirfirst_check(a, b, rev_xstrcoll_atime); -} -__attribute__((__pure__)) static int rev_strcmp_df_atime(V a, V b) { - return dirfirst_check(a, b, rev_strcmp_atime); -} -static int xstrcoll_btime(V a, V b) { return cmp_btime(a, b, xstrcoll); } -__attribute__((__pure__)) static int strcmp_btime(V a, V b) { - return cmp_btime(a, b, strcmp); -} -static int rev_xstrcoll_btime(V a, V b) { return cmp_btime(b, a, xstrcoll); } -__attribute__((__pure__)) static int rev_strcmp_btime(V a, V b) { - return cmp_btime(b, a, strcmp); -} -static int xstrcoll_df_btime(V a, V b) { - return dirfirst_check(a, b, xstrcoll_btime); -} -__attribute__((__pure__)) static int strcmp_df_btime(V a, V b) { - return dirfirst_check(a, b, strcmp_btime); -} -static int rev_xstrcoll_df_btime(V a, V b) { - return dirfirst_check(a, b, rev_xstrcoll_btime); -} -__attribute__((__pure__)) static int rev_strcmp_df_btime(V a, V b) { - return dirfirst_check(a, b, rev_strcmp_btime); -} -static int xstrcoll_size(V a, V b) { return cmp_size(a, b, xstrcoll); } -__attribute__((__pure__)) static int strcmp_size(V a, V b) { - return cmp_size(a, b, strcmp); -} -static int rev_xstrcoll_size(V a, V b) { return cmp_size(b, a, xstrcoll); } -__attribute__((__pure__)) static int rev_strcmp_size(V a, V b) { - return cmp_size(b, a, strcmp); -} -static int xstrcoll_df_size(V a, V b) { - return dirfirst_check(a, b, xstrcoll_size); -} -__attribute__((__pure__)) static int strcmp_df_size(V a, V b) { - return dirfirst_check(a, b, strcmp_size); -} -static int rev_xstrcoll_df_size(V a, V b) { - return dirfirst_check(a, b, rev_xstrcoll_size); -} -__attribute__((__pure__)) static int rev_strcmp_df_size(V a, V b) { - return dirfirst_check(a, b, rev_strcmp_size); -} -static int xstrcoll_name(V a, V b) { return cmp_name(a, b, xstrcoll); } -__attribute__((__pure__)) static int strcmp_name(V a, V b) { - return cmp_name(a, b, strcmp); -} -static int rev_xstrcoll_name(V a, V b) { return cmp_name(b, a, xstrcoll); } -__attribute__((__pure__)) static int rev_strcmp_name(V a, V b) { - return cmp_name(b, a, strcmp); -} -static int xstrcoll_df_name(V a, V b) { - return dirfirst_check(a, b, xstrcoll_name); -} -__attribute__((__pure__)) static int strcmp_df_name(V a, V b) { - return dirfirst_check(a, b, strcmp_name); -} -static int rev_xstrcoll_df_name(V a, V b) { - return dirfirst_check(a, b, rev_xstrcoll_name); -} -__attribute__((__pure__)) static int rev_strcmp_df_name(V a, V b) { - return dirfirst_check(a, b, rev_strcmp_name); -} -static int xstrcoll_extension(V a, V b) { - return cmp_extension(a, b, xstrcoll); -} -__attribute__((__pure__)) static int strcmp_extension(V a, V b) { - return cmp_extension(a, b, strcmp); -} -static int rev_xstrcoll_extension(V a, V b) { - return cmp_extension(b, a, xstrcoll); -} -__attribute__((__pure__)) static int rev_strcmp_extension(V a, V b) { - return cmp_extension(b, a, strcmp); -} -static int xstrcoll_df_extension(V a, V b) { - return dirfirst_check(a, b, xstrcoll_extension); -} -__attribute__((__pure__)) static int strcmp_df_extension(V a, V b) { - return dirfirst_check(a, b, strcmp_extension); -} -static int rev_xstrcoll_df_extension(V a, V b) { - return dirfirst_check(a, b, rev_xstrcoll_extension); -} -__attribute__((__pure__)) static int rev_strcmp_df_extension(V a, V b) { - return dirfirst_check(a, b, rev_strcmp_extension); -} -static int xstrcoll_width(V a, V b) { return cmp_width(a, b, xstrcoll); } -__attribute__((__pure__)) static int strcmp_width(V a, V b) { - return cmp_width(a, b, strcmp); -} -static int rev_xstrcoll_width(V a, V b) { return cmp_width(b, a, xstrcoll); } -__attribute__((__pure__)) static int rev_strcmp_width(V a, V b) { - return cmp_width(b, a, strcmp); -} -static int xstrcoll_df_width(V a, V b) { - return dirfirst_check(a, b, xstrcoll_width); -} -__attribute__((__pure__)) static int strcmp_df_width(V a, V b) { - return dirfirst_check(a, b, strcmp_width); -} -static int rev_xstrcoll_df_width(V a, V b) { - return dirfirst_check(a, b, rev_xstrcoll_width); -} -__attribute__((__pure__)) static int rev_strcmp_df_width(V a, V b) { - return dirfirst_check(a, b, rev_strcmp_width); -} -static int cmp_version(struct fileinfo const *a, struct fileinfo const *b) { - int diff = filevercmp(a->name, b->name); - return diff ? diff : strcmp(a->name, b->name); -} - -static int xstrcoll_version(V a, V b) { return cmp_version(a, b); } -static int rev_xstrcoll_version(V a, V b) { return cmp_version(b, a); } -static int xstrcoll_df_version(V a, V b) { - return dirfirst_check(a, b, xstrcoll_version); -} -static int rev_xstrcoll_df_version(V a, V b) { - return dirfirst_check(a, b, rev_xstrcoll_version); -} -static qsortFunc const sort_functions[][2][2][2] = { - {{ - {xstrcoll_name, xstrcoll_df_name}, - {rev_xstrcoll_name, rev_xstrcoll_df_name}, - }, - { - {strcmp_name, strcmp_df_name}, - {rev_strcmp_name, rev_strcmp_df_name}, - }}, - {{ - {xstrcoll_extension, xstrcoll_df_extension}, - {rev_xstrcoll_extension, rev_xstrcoll_df_extension}, - }, - { - {strcmp_extension, strcmp_df_extension}, - {rev_strcmp_extension, rev_strcmp_df_extension}, - }}, - {{ - {xstrcoll_width, xstrcoll_df_width}, - {rev_xstrcoll_width, rev_xstrcoll_df_width}, - }, - { - {strcmp_width, strcmp_df_width}, - {rev_strcmp_width, rev_strcmp_df_width}, - }}, - {{ - {xstrcoll_size, xstrcoll_df_size}, - {rev_xstrcoll_size, rev_xstrcoll_df_size}, - }, - { - {strcmp_size, strcmp_df_size}, - {rev_strcmp_size, rev_strcmp_df_size}, - }}, - - {{ - {xstrcoll_version, xstrcoll_df_version}, - {rev_xstrcoll_version, rev_xstrcoll_df_version}, - }, - - { - {((void *)0), ((void *)0)}, - {((void *)0), ((void *)0)}, - }}, - - {{ - {xstrcoll_mtime, xstrcoll_df_mtime}, - {rev_xstrcoll_mtime, rev_xstrcoll_df_mtime}, - }, - { - {strcmp_mtime, strcmp_df_mtime}, - {rev_strcmp_mtime, rev_strcmp_df_mtime}, - }}, - {{ - {xstrcoll_ctime, xstrcoll_df_ctime}, - {rev_xstrcoll_ctime, rev_xstrcoll_df_ctime}, - }, - { - {strcmp_ctime, strcmp_df_ctime}, - {rev_strcmp_ctime, rev_strcmp_df_ctime}, - }}, - {{ - {xstrcoll_atime, xstrcoll_df_atime}, - {rev_xstrcoll_atime, rev_xstrcoll_df_atime}, - }, - { - {strcmp_atime, strcmp_df_atime}, - {rev_strcmp_atime, rev_strcmp_df_atime}, - }}, - {{ - {xstrcoll_btime, xstrcoll_df_btime}, - {rev_xstrcoll_btime, rev_xstrcoll_df_btime}, - }, - { - {strcmp_btime, strcmp_df_btime}, - {rev_strcmp_btime, rev_strcmp_df_btime}, - }}}; -_Static_assert( - (sizeof(sort_functions) / sizeof *(sort_functions)) == - sort_numtypes - 2 + time_numtypes, - "verify (" - "ARRAY_CARDINALITY (sort_functions) == sort_numtypes - 2 + time_numtypes" - ")"); - -static void initialize_ordering_vector(void) { - for (size_t i = 0; i < cwd_n_used; i++) - sorted_file[i] = &cwd_file[i]; -} - -static void update_current_files_info(void) { - - if (sort_type == sort_width || - (line_length && (format == many_per_line || format == horizontal))) { - size_t i; - for (i = 0; i < cwd_n_used; i++) { - struct fileinfo *f = sorted_file[i]; - f->width = fileinfo_name_width(f); - } - } -} - -static void sort_files(void) { - - _Bool use_strcmp; - - if (sorted_file_alloc < cwd_n_used + cwd_n_used / 2) { - free(sorted_file); - sorted_file = xnmalloc(cwd_n_used, 3 * sizeof *sorted_file); - sorted_file_alloc = 3 * cwd_n_used; - } - - initialize_ordering_vector(); - - update_current_files_info(); - - if (sort_type == sort_none) - return; - - if (!_setjmp(failed_strcoll)) - use_strcmp = 0; - else { - use_strcmp = 1; - - ((void)sizeof((sort_type != sort_version) ? 1 : 0), __extension__({ - if (sort_type != sort_version) - ; - else - __assert_fail("sort_type != sort_version", "src/ls.c", 4104, - __extension__ __PRETTY_FUNCTION__); - })); - initialize_ordering_vector(); - } - - mpsort((void const **)sorted_file, cwd_n_used, - sort_functions[sort_type + (sort_type == sort_time ? time_type : 0)] - [use_strcmp][sort_reverse][directories_first]); -} - -static void print_current_files(void) { - size_t i; - - switch (format) { - case one_per_line: - for (i = 0; i < cwd_n_used; i++) { - print_file_name_and_frills(sorted_file[i], 0); - putchar_unlocked(eolbyte); - } - break; - - case many_per_line: - if (!line_length) - print_with_separator(' '); - else - print_many_per_line(); - break; - - case horizontal: - if (!line_length) - print_with_separator(' '); - else - print_horizontal(); - break; - - case with_commas: - print_with_separator(','); - break; - - case long_format: - for (i = 0; i < cwd_n_used; i++) { - set_normal_color(); - print_long_format(sorted_file[i]); - dired_outbyte(eolbyte); - } - break; - } -} - -static size_t align_nstrftime(char *buf, size_t size, _Bool recent, - struct tm const *tm, timezone_t tz, int ns) { - char const *nfmt = - (use_abformat ? abformat[recent][tm->tm_mon] : long_time_format[recent]); - return nstrftime(buf, size, nfmt, tm, tz, ns); -} - -static int long_time_expected_width(void) { - static int width = -1; - - if (width < 0) { - time_t epoch = 0; - struct tm tm; - char buf[TIME_STAMP_LEN_MAXIMUM + 1]; - if (localtime_rz(localtz, &epoch, &tm)) { - size_t len = align_nstrftime(buf, sizeof buf, 0, &tm, localtz, 0); - if (len != 0) - width = mbsnwidth(buf, len, 0); - } - - if (width < 0) - width = 0; - } - - return width; -} - -static void format_user_or_group(char const *name, uintmax_t id, int width) { - if (name) { - int width_gap = width - gnu_mbswidth(name, 0); - int pad = (((0) > (width_gap)) ? (0) : (width_gap)); - dired_outstring(name); - - do - dired_outbyte(' '); - while (pad--); - } else - dired_pos += printf("%*" - "l" - "u" - " ", - width, id); -} - -static void format_user(uid_t u, int width, _Bool stat_ok) { - format_user_or_group( - !stat_ok ? "?" : (numeric_ids ? ((void *)0) : getuser(u)), u, width); -} - -static void format_group(gid_t g, int width, _Bool stat_ok) { - format_user_or_group( - !stat_ok ? "?" : (numeric_ids ? ((void *)0) : getgroup(g)), g, width); -} - -static int format_user_or_group_width(char const *name, uintmax_t id) { - if (name) { - int len = gnu_mbswidth(name, 0); - return (((0) > (len)) ? (0) : (len)); - } else - return snprintf(((void *)0), 0, - "%" - "l" - "u", - id); -} - -static int format_user_width(uid_t u) { - return format_user_or_group_width(numeric_ids ? ((void *)0) : getuser(u), u); -} - -static int format_group_width(gid_t g) { - return format_user_or_group_width(numeric_ids ? ((void *)0) : getgroup(g), g); -} - -static char *format_inode(char *buf, size_t buflen, const struct fileinfo *f) { - - ((void)sizeof( - (((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1) <= buflen) - ? 1 - : 0), - __extension__({ - if (((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1) <= buflen) - ; - else - __assert_fail("INT_BUFSIZE_BOUND (uintmax_t) <= buflen", "src/ls.c", - 4286, __extension__ __PRETTY_FUNCTION__); - })); - return (f->stat_ok && f->stat.st_ino != NOT_AN_INODE_NUMBER - ? umaxtostr(f->stat.st_ino, buf) - : (char *)"?"); -} - -static void print_long_format(const struct fileinfo *f) { - char modebuf[12]; - char buf - [((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + 3) + - 1 + - ((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + 3) + - 1 + sizeof(modebuf) - 1 + 1 + - ((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1) + - ((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + 3) + - 2 + - ((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + 3) + - 1 + TIME_STAMP_LEN_MAXIMUM + 1]; - size_t s; - char *p; - struct timespec when_timespec; - struct tm when_local; - - _Bool btime_ok = 1; - - if (f->stat_ok) - filemodestring(&f->stat, modebuf); - else { - modebuf[0] = filetype_letter[f->filetype]; - memset(modebuf + 1, '?', 10); - modebuf[11] = '\0'; - } - if (!any_has_acl) - modebuf[10] = '\0'; - else if (f->acl_type == ACL_T_LSM_CONTEXT_ONLY) - modebuf[10] = '.'; - else if (f->acl_type == ACL_T_YES) - modebuf[10] = '+'; - - switch (time_type) { - case time_ctime: - when_timespec = get_stat_ctime(&f->stat); - break; - case time_mtime: - when_timespec = get_stat_mtime(&f->stat); - break; - case time_atime: - when_timespec = get_stat_atime(&f->stat); - break; - case time_btime: - when_timespec = get_stat_btime(&f->stat); - if (when_timespec.tv_sec == -1 && when_timespec.tv_nsec == -1) - btime_ok = 0; - break; - default: - abort(); - } - - p = buf; - - if (print_inode) { - char hbuf[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - p += sprintf(p, "%*s ", inode_number_width, - format_inode(hbuf, sizeof hbuf, f)); - } - - if (print_block_size) { - char hbuf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 1]; - char const *blocks = (!f->stat_ok ? "?" - : human_readable(((f->stat).st_blocks), - hbuf, human_output_opts, - - 512, output_block_size)); - int pad; - for (pad = block_size_width - gnu_mbswidth(blocks, 0); 0 < pad; pad--) - *p++ = ' '; - while ((*p++ = *blocks++)) - continue; - p[-1] = ' '; - } - - { - char hbuf[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - p += sprintf(p, "%s %*s ", modebuf, nlink_width, - !f->stat_ok ? "?" : umaxtostr(f->stat.st_nlink, hbuf)); - } - - dired_indent(); - - if (print_owner || print_group || print_author || print_scontext) { - dired_outbuf(buf, p - buf); - - if (print_owner) - format_user(f->stat.st_uid, owner_width, f->stat_ok); - - if (print_group) - format_group(f->stat.st_gid, group_width, f->stat_ok); - - if (print_author) - format_user(f->stat.st_uid, author_width, f->stat_ok); - - if (print_scontext) - format_user_or_group(f->scontext, 0, scontext_width); - - p = buf; - } - - if (f->stat_ok && (((((f->stat.st_mode)) & 0170000) == (0020000)) || - ((((f->stat.st_mode)) & 0170000) == (0060000)))) { - char majorbuf[( - (((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - char minorbuf[( - (((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - int blanks_width = (file_size_width - (major_device_number_width + 2 + - minor_device_number_width)); - p += sprintf(p, "%*s, %*s ", - major_device_number_width + - (((0) > (blanks_width)) ? (0) : (blanks_width)), - umaxtostr(gnu_dev_major(f->stat.st_rdev), majorbuf), - minor_device_number_width, - umaxtostr(gnu_dev_minor(f->stat.st_rdev), minorbuf)); - } else { - char hbuf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 1]; - char const *size = - (!f->stat_ok ? "?" - : human_readable(unsigned_file_size(f->stat.st_size), hbuf, - file_human_output_opts, 1, - file_output_block_size)); - int pad; - for (pad = file_size_width - gnu_mbswidth(size, 0); 0 < pad; pad--) - *p++ = ' '; - while ((*p++ = *size++)) - continue; - p[-1] = ' '; - } - - s = 0; - *p = '\1'; - - if (f->stat_ok && btime_ok && - localtime_rz(localtz, &when_timespec.tv_sec, &when_local)) { - struct timespec six_months_ago; - - _Bool recent; - - if (timespec_cmp(current_time, when_timespec) < 0) - gettime(¤t_time); - - six_months_ago.tv_sec = current_time.tv_sec - 31556952 / 2; - six_months_ago.tv_nsec = current_time.tv_nsec; - - recent = (timespec_cmp(six_months_ago, when_timespec) < 0 && - timespec_cmp(when_timespec, current_time) < 0); - - s = align_nstrftime(p, TIME_STAMP_LEN_MAXIMUM + 1, recent, &when_local, - localtz, when_timespec.tv_nsec); - } - - if (s || !*p) { - p += s; - *p++ = ' '; - } else { - - char hbuf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - p += sprintf(p, "%*s ", long_time_expected_width(), - (!f->stat_ok || !btime_ok - ? "?" - : timetostr(when_timespec.tv_sec, hbuf))); - } - - dired_outbuf(buf, p - buf); - size_t w = print_name_with_quoting(f, 0, &dired_obstack, p - buf); - - if (f->filetype == symbolic_link) { - if (f->linkname) { - dired_outstring(" -> "); - print_name_with_quoting(f, 1, ((void *)0), (p - buf) + w + 4); - if (indicator_style != none) - print_type_indicator(1, f->linkmode, unknown); - } - } else if (indicator_style != none) - print_type_indicator(f->stat_ok, f->stat.st_mode, f->filetype); -} -static size_t quote_name_buf(char **inbuf, size_t bufsize, char *name, - struct quoting_options const *options, - int needs_general_quoting, size_t *width, - _Bool *pad) { - char *buf = *inbuf; - size_t displayed_width = 0; - size_t len = 0; - - _Bool quoted; - - enum quoting_style qs = get_quoting_style(options); - - _Bool needs_further_quoting = - qmark_funny_chars && - (qs == shell_quoting_style || qs == shell_always_quoting_style || - qs == literal_quoting_style); - - if (needs_general_quoting != 0) { - len = quotearg_buffer(buf, bufsize, name, -1, options); - if (bufsize <= len) { - buf = xmalloc(len + 1); - quotearg_buffer(buf, len + 1, name, -1, options); - } - - quoted = (*name != *buf) || strlen(name) != len; - } else if (needs_further_quoting) { - len = strlen(name); - if (bufsize <= len) - buf = xmalloc(len + 1); - memcpy(buf, name, len + 1); - - quoted = 0; - } else { - len = strlen(name); - buf = name; - quoted = 0; - } - - if (needs_further_quoting) { - if ((__ctype_get_mb_cur_max()) > 1) { - char const *p = buf; - char const *plimit = buf + len; - char *q = buf; - displayed_width = 0; - - while (p < plimit) - switch (*p) { - case ' ': - case '!': - case '"': - case ' case ' & ': case '\'': - case '(': - case ')': - case '*': - case '+': - case ',': - case '-': - case '.': - case '/': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case ':': - case ';': - case '<': - case '=': - case '>': - case '?': - case 'A': - case 'B': - case 'C': - case 'D': - case 'E': - case 'F': - case 'G': - case 'H': - case 'I': - case 'J': - case 'K': - case 'L': - case 'M': - case 'N': - case 'O': - case 'P': - case 'Q': - case 'R': - case 'S': - case 'T': - case 'U': - case 'V': - case 'W': - case 'X': - case 'Y': - case 'Z': - case '[': - case '\\': - case ']': - case '^': - case '_': - case 'a': - case 'b': - case 'c': - case 'd': - case 'e': - case 'f': - case 'g': - case 'h': - case 'i': - case 'j': - case 'k': - case 'l': - case 'm': - case 'n': - case 'o': - case 'p': - case 'q': - case 'r': - case 's': - case 't': - case 'u': - case 'v': - case 'w': - case 'x': - case 'y': - case 'z': - case '{': - case '|': - case '}': - case '~': - - *q++ = *p++; - displayed_width += 1; - break; - default: - - { - mbstate_t mbstate = { - 0, - }; - do { - wchar_t wc; - size_t bytes; - int w; - - bytes = rpl_mbrtowc(&wc, p, plimit - p, &mbstate); - - if (bytes == (size_t)-1) { - - p++; - *q++ = '?'; - displayed_width += 1; - break; - } - - if (bytes == (size_t)-2) { - - p = plimit; - *q++ = '?'; - displayed_width += 1; - break; - } - - if (bytes == 0) - - bytes = 1; - - w = wcwidth(wc); - if (w >= 0) { - - for (; bytes > 0; --bytes) - *q++ = *p++; - displayed_width += w; - } else { - - p += bytes; - *q++ = '?'; - displayed_width += 1; - } - } while (!mbsinit(&mbstate)); - } break; - } - - len = q - buf; - } else { - char *p = buf; - char const *plimit = buf + len; - - while (p < plimit) { - if (!((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISprint)) - *p = '?'; - p++; - } - displayed_width = len; - } - } else if (width != ((void *)0)) { - if ((__ctype_get_mb_cur_max()) > 1) - displayed_width = mbsnwidth(buf, len, 0); - else { - char const *p = buf; - char const *plimit = buf + len; - - displayed_width = 0; - while (p < plimit) { - if (((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISprint)) - displayed_width++; - p++; - } - } - } - - *pad = (align_variable_outer_quotes && cwd_some_quoted && !quoted); - - if (width != ((void *)0)) - *width = displayed_width; - - *inbuf = buf; - - return len; -} - -static size_t quote_name_width(char const *name, - struct quoting_options const *options, - int needs_general_quoting) { - char smallbuf[8192]; - char *buf = smallbuf; - size_t width; - - _Bool pad; - - quote_name_buf(&buf, sizeof smallbuf, (char *)name, options, - needs_general_quoting, &width, &pad); - - if (buf != smallbuf && buf != name) - free(buf); - - width += pad; - - return width; -} - -static char *file_escape(char const *str, _Bool path) { - char *esc = xnmalloc(3, strlen(str) + 1); - char *p = esc; - while (*str) { - if (path && ((*str) == '/')) { - *p++ = '/'; - str++; - } else if (RFC3986[to_uchar(*str)]) - *p++ = *str++; - else - p += sprintf(p, "%%%02x", to_uchar(*str++)); - } - *p = '\0'; - return esc; -} - -static size_t quote_name(char const *name, - struct quoting_options const *options, - int needs_general_quoting, const struct bin_str *color, - - _Bool allow_pad, struct obstack *stack, - char const *absolute_name) { - char smallbuf[8192]; - char *buf = smallbuf; - size_t len; - - _Bool pad; - - len = quote_name_buf(&buf, sizeof smallbuf, (char *)name, options, - needs_general_quoting, ((void *)0), &pad); - - if (pad && allow_pad) - dired_outbyte(' '); - - if (color) - print_color_indicator(color); - - _Bool skip_quotes = 0; - - if (absolute_name) { - if (align_variable_outer_quotes && cwd_some_quoted && !pad) { - skip_quotes = 1; - putchar_unlocked(*buf); - } - char *h = file_escape(hostname, 0); - char *n = file_escape(absolute_name, 1); - - printf("\033]8;;file://%s%s%s\a", h, *n == '/' ? "" : "/", n); - free(h); - free(n); - } - - if (stack) - push_current_dired_pos(stack); - - fwrite_unlocked(buf + skip_quotes, 1, len - (skip_quotes * 2), stdout); - - dired_pos += len; - - if (stack) - push_current_dired_pos(stack); - - if (absolute_name) { - fputs_unlocked("\033]8;;\a", stdout); - if (skip_quotes) - putchar_unlocked(*(buf + len - 1)); - } - - if (buf != smallbuf && buf != name) - free(buf); - - return len + pad; -} - -static size_t print_name_with_quoting(const struct fileinfo *f, - - _Bool symlink_target, - struct obstack *stack, size_t start_col) { - char const *name = symlink_target ? f->linkname : f->name; - - const struct bin_str *color = - print_with_color ? get_color_indicator(f, symlink_target) : ((void *)0); - - _Bool used_color_this_time = - (print_with_color && (color || is_colored(C_NORM))); - - size_t len = quote_name(name, filename_quoting_options, f->quoted, color, - !symlink_target, stack, f->absolute_name); - - process_signals(); - if (used_color_this_time) { - prep_non_filename_text(); - - if (line_length && - (start_col / line_length != (start_col + len - 1) / line_length)) - put_indicator(&color_indicator[C_CLR_TO_EOL]); - } - - return len; -} - -static void prep_non_filename_text(void) { - if (color_indicator[C_END].string != ((void *)0)) - put_indicator(&color_indicator[C_END]); - else { - put_indicator(&color_indicator[C_LEFT]); - put_indicator(&color_indicator[C_RESET]); - put_indicator(&color_indicator[C_RIGHT]); - } -} - -static size_t print_file_name_and_frills(const struct fileinfo *f, - size_t start_col) { - char buf[( - ((((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + 3) + - 1) > (((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1))) - ? (((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 1) - : (((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)))]; - - set_normal_color(); - - if (print_inode) - printf("%*s ", format == with_commas ? 0 : inode_number_width, - format_inode(buf, sizeof buf, f)); - - if (print_block_size) - printf("%*s ", format == with_commas ? 0 : block_size_width, - !f->stat_ok - ? "?" - : human_readable(((f->stat).st_blocks), buf, human_output_opts, - - 512, output_block_size)); - - if (print_scontext) - printf("%*s ", format == with_commas ? 0 : scontext_width, f->scontext); - - size_t width = print_name_with_quoting(f, 0, ((void *)0), start_col); - - if (indicator_style != none) - width += print_type_indicator(f->stat_ok, f->stat.st_mode, f->filetype); - - return width; -} - -static char get_type_indicator(_Bool stat_ok, mode_t mode, enum filetype type) { - char c; - - if (stat_ok ? ((((mode)) & 0170000) == (0100000)) : type == normal) { - if (stat_ok && indicator_style == classify && - (mode & (0100 | (0100 >> 3) | ((0100 >> 3) >> 3)))) - c = '*'; - else - c = 0; - } else { - if (stat_ok ? ((((mode)) & 0170000) == (0040000)) - : type == directory || type == arg_directory) - c = '/'; - else if (indicator_style == slash) - c = 0; - else if (stat_ok ? ((((mode)) & 0170000) == (0120000)) - : type == symbolic_link) - c = '@'; - else if (stat_ok ? ((((mode)) & 0170000) == (0010000)) : type == fifo) - c = '|'; - else if (stat_ok ? ((((mode)) & 0170000) == (0140000)) : type == sock) - c = '='; - else if (stat_ok && 0) - c = '>'; - else - c = 0; - } - return c; -} - -static _Bool - -print_type_indicator(_Bool stat_ok, mode_t mode, enum filetype type) { - char c = get_type_indicator(stat_ok, mode, type); - if (c) - dired_outbyte(c); - return !!c; -} - -static _Bool - -print_color_indicator(const struct bin_str *ind) { - if (ind) { - - if (is_colored(C_NORM)) - restore_default_color(); - put_indicator(&color_indicator[C_LEFT]); - put_indicator(ind); - put_indicator(&color_indicator[C_RIGHT]); - } - - return ind != ((void *)0); -} - -__attribute__((__pure__)) static const struct bin_str * -get_color_indicator(const struct fileinfo *f, _Bool symlink_target) { - enum indicator_no type; - struct color_ext_type *ext; - size_t len; - - char const *name; - mode_t mode; - int linkok; - if (symlink_target) { - name = f->linkname; - mode = f->linkmode; - linkok = f->linkok ? 0 : -1; - } else { - name = f->name; - mode = file_or_link_mode(f); - linkok = f->linkok; - } - - if (linkok == -1 && is_colored(C_MISSING)) - type = C_MISSING; - else if (!f->stat_ok) { - static enum indicator_no filetype_indicator[] = { - C_ORPHAN, C_FIFO, C_CHR, C_DIR, C_BLK, - C_FILE, C_LINK, C_SOCK, C_FILE, C_DIR}; - type = filetype_indicator[f->filetype]; - } else { - if (((((mode)) & 0170000) == (0100000))) { - type = C_FILE; - - if ((mode & 04000) != 0 && is_colored(C_SETUID)) - type = C_SETUID; - else if ((mode & 02000) != 0 && is_colored(C_SETGID)) - type = C_SETGID; - else if (is_colored(C_CAP) && f->has_capability) - type = C_CAP; - else if ((mode & (0100 | (0100 >> 3) | ((0100 >> 3) >> 3))) != 0 && - is_colored(C_EXEC)) - type = C_EXEC; - else if ((1 < f->stat.st_nlink) && is_colored(C_MULTIHARDLINK)) - type = C_MULTIHARDLINK; - } else if (((((mode)) & 0170000) == (0040000))) { - type = C_DIR; - - if ((mode & 01000) && (mode & ((0200 >> 3) >> 3)) && - is_colored(C_STICKY_OTHER_WRITABLE)) - type = C_STICKY_OTHER_WRITABLE; - else if ((mode & ((0200 >> 3) >> 3)) != 0 && is_colored(C_OTHER_WRITABLE)) - type = C_OTHER_WRITABLE; - else if ((mode & 01000) != 0 && is_colored(C_STICKY)) - type = C_STICKY; - } else if (((((mode)) & 0170000) == (0120000))) - type = C_LINK; - else if (((((mode)) & 0170000) == (0010000))) - type = C_FIFO; - else if (((((mode)) & 0170000) == (0140000))) - type = C_SOCK; - else if (((((mode)) & 0170000) == (0060000))) - type = C_BLK; - else if (((((mode)) & 0170000) == (0020000))) - type = C_CHR; - else if (0) - type = C_DOOR; - else { - - type = C_ORPHAN; - } - } - - ext = ((void *)0); - if (type == C_FILE) { - - len = strlen(name); - name += len; - for (ext = color_ext_list; ext != ((void *)0); ext = ext->next) { - if (ext->ext.len <= len && - c_strncasecmp(name - ext->ext.len, ext->ext.string, ext->ext.len) == - 0) - break; - } - } - - if (type == C_LINK && !linkok) { - if (color_symlink_as_referent || is_colored(C_ORPHAN)) - type = C_ORPHAN; - } - - const struct bin_str *const s = ext ? &(ext->seq) : &color_indicator[type]; - - return s->string ? s : ((void *)0); -} - -static void put_indicator(const struct bin_str *ind) { - if (!used_color) { - used_color = 1; - - if (0 <= tcgetpgrp(1)) - signal_init(); - - prep_non_filename_text(); - } - - fwrite_unlocked(ind->string, ind->len, 1, stdout); -} - -static size_t length_of_file_name_and_frills(const struct fileinfo *f) { - size_t len = 0; - char buf[( - ((((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + 3) + - 1) > (((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1))) - ? (((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 1) - : (((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)))]; - - if (print_inode) - len += 1 + (format == with_commas ? strlen(umaxtostr(f->stat.st_ino, buf)) - : inode_number_width); - - if (print_block_size) - len += - 1 + (format == with_commas - ? strlen(!f->stat_ok ? "?" - : human_readable(((f->stat).st_blocks), - buf, human_output_opts, - 512, output_block_size)) - : block_size_width); - - if (print_scontext) - len += 1 + (format == with_commas ? strlen(f->scontext) : scontext_width); - - len += fileinfo_name_width(f); - - if (indicator_style != none) { - char c = get_type_indicator(f->stat_ok, f->stat.st_mode, f->filetype); - len += (c != 0); - } - - return len; -} - -static void print_many_per_line(void) { - size_t row; - size_t cols = calculate_columns(1); - struct column_info const *line_fmt = &column_info[cols - 1]; - - size_t rows = cwd_n_used / cols + (cwd_n_used % cols != 0); - - for (row = 0; row < rows; row++) { - size_t col = 0; - size_t filesno = row; - size_t pos = 0; - - while (1) { - struct fileinfo const *f = sorted_file[filesno]; - size_t name_length = length_of_file_name_and_frills(f); - size_t max_name_length = line_fmt->col_arr[col++]; - print_file_name_and_frills(f, pos); - - filesno += rows; - if (filesno >= cwd_n_used) - break; - - indent(pos + name_length, pos + max_name_length); - pos += max_name_length; - } - putchar_unlocked(eolbyte); - } -} - -static void print_horizontal(void) { - size_t filesno; - size_t pos = 0; - size_t cols = calculate_columns(0); - struct column_info const *line_fmt = &column_info[cols - 1]; - struct fileinfo const *f = sorted_file[0]; - size_t name_length = length_of_file_name_and_frills(f); - size_t max_name_length = line_fmt->col_arr[0]; - - print_file_name_and_frills(f, 0); - - for (filesno = 1; filesno < cwd_n_used; ++filesno) { - size_t col = filesno % cols; - - if (col == 0) { - putchar_unlocked(eolbyte); - pos = 0; - } else { - indent(pos + name_length, pos + max_name_length); - pos += max_name_length; - } - - f = sorted_file[filesno]; - print_file_name_and_frills(f, pos); - - name_length = length_of_file_name_and_frills(f); - max_name_length = line_fmt->col_arr[col]; - } - putchar_unlocked(eolbyte); -} - -static void print_with_separator(char sep) { - size_t filesno; - size_t pos = 0; - - for (filesno = 0; filesno < cwd_n_used; filesno++) { - struct fileinfo const *f = sorted_file[filesno]; - size_t len = line_length ? length_of_file_name_and_frills(f) : 0; - - if (filesno != 0) { - char separator; - - if (!line_length || ((pos + len + 2 < line_length) && - (pos <= (18446744073709551615UL) - len - 2))) { - pos += 2; - separator = ' '; - } else { - pos = 0; - separator = eolbyte; - } - - putchar_unlocked(sep); - putchar_unlocked(separator); - } - - print_file_name_and_frills(f, pos); - pos += len; - } - putchar_unlocked(eolbyte); -} - -static void indent(size_t from, size_t to) { - while (from < to) { - if (tabsize != 0 && to / tabsize > (from + 1) / tabsize) { - putchar_unlocked('\t'); - from += tabsize - from % tabsize; - } else { - putchar_unlocked(' '); - from++; - } - } -} - -static void attach(char *dest, char const *dirname, char const *name) { - char const *dirnamep = dirname; - - if (dirname[0] != '.' || dirname[1] != 0) { - while (*dirnamep) - *dest++ = *dirnamep++; - - if (dirnamep > dirname && dirnamep[-1] != '/') - *dest++ = '/'; - } - while (*name) - *dest++ = *name++; - *dest = 0; -} - -static void init_column_info(size_t max_cols) { - size_t i; - - static size_t column_info_alloc; - - if (column_info_alloc < max_cols) { - size_t new_column_info_alloc; - size_t *p; - - if (!max_idx || max_cols < max_idx / 2) { - - column_info = xnrealloc(column_info, max_cols, 2 * sizeof *column_info); - new_column_info_alloc = 2 * max_cols; - } else { - column_info = xnrealloc(column_info, max_idx, sizeof *column_info); - new_column_info_alloc = max_idx; - } - - { - size_t column_info_growth = new_column_info_alloc - column_info_alloc; - size_t s = column_info_alloc + 1 + new_column_info_alloc; - size_t t = s * column_info_growth; - if (s < new_column_info_alloc || t / column_info_growth != s) - xalloc_die(); - p = xnmalloc(t / 2, sizeof *p); - } - - for (i = column_info_alloc; i < new_column_info_alloc; i++) { - column_info[i].col_arr = p; - p += i + 1; - } - - column_info_alloc = new_column_info_alloc; - } - - for (i = 0; i < max_cols; ++i) { - size_t j; - - column_info[i].valid_len = 1; - column_info[i].line_len = (i + 1) * MIN_COLUMN_WIDTH; - for (j = 0; j <= i; ++j) - column_info[i].col_arr[j] = MIN_COLUMN_WIDTH; - } -} - -static size_t calculate_columns(_Bool by_columns) { - size_t filesno; - size_t cols; - - size_t max_cols = 0 < max_idx && max_idx < cwd_n_used ? max_idx : cwd_n_used; - - init_column_info(max_cols); - - for (filesno = 0; filesno < cwd_n_used; ++filesno) { - struct fileinfo const *f = sorted_file[filesno]; - size_t name_length = length_of_file_name_and_frills(f); - - for (size_t i = 0; i < max_cols; ++i) { - if (column_info[i].valid_len) { - size_t idx = (by_columns ? filesno / ((cwd_n_used + i) / (i + 1)) - : filesno % (i + 1)); - size_t real_length = name_length + (idx == i ? 0 : 2); - - if (column_info[i].col_arr[idx] < real_length) { - column_info[i].line_len += - (real_length - column_info[i].col_arr[idx]); - column_info[i].col_arr[idx] = real_length; - column_info[i].valid_len = (column_info[i].line_len < line_length); - } - } - } - } - - for (cols = max_cols; 1 < cols; --cols) { - if (column_info[cols - 1].valid_len) - break; - } - - return cols; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "List information about the FILEs (the current directory by " - "default).\nSort entries alphabetically if none of -cftuvSUX " - "nor --sort is specified.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -a, --all do not ignore entries starting " - "with .\n -A, --almost-all do not list implied . " - "and ..\n --author with -l, print the " - "author of each file\n -b, --escape print " - "C-style escapes for nongraphic characters\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --block-size=SIZE with -l, scale sizes by SIZE " - "when printing them;\n e.g., " - "'--block-size=M'; see SIZE format below\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -B, --ignore-backups do not list implied " - "entries ending with ~\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -c with -lt: sort by, and show, ctime " - "(time of last\n modification of file " - "status information);\n with -l: show " - "ctime and sort by name;\n otherwise: " - "sort by ctime, newest first\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -C list entries by columns\n " - "--color[=WHEN] color the output WHEN; more info " - "below\n -d, --directory list directories " - "themselves, not their contents\n -D, --dired " - " generate output designed for Emacs' dired mode\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -f list all entries in directory " - "order\n -F, --classify[=WHEN] append indicator (one " - "of */=>@|) to entries WHEN\n --file-type " - "likewise, except do not append '*'\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --format=WORD across -x, commas -m, " - "horizontal -x, long -l,\n " - "single-column -1, verbose -l, vertical -C\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --full-time like -l --time-style=full-iso\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -g like -l, but do not list owner\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --group-directories-first\n " - "group directories before files;\n can " - "be augmented with a --sort option, but any\n " - " use of --sort=none (-U) disables grouping\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -G, --no-group in a long listing, " - "don't print group names\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -h, --human-readable with -l and -s, print sizes " - "like 1K 234M 2G etc.\n --si " - "likewise, but use powers of 1000 not 1024\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -H, --dereference-command-line\n " - " follow symbolic links listed on the command line\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --dereference-command-line-symlink-to-dir\n " - " follow each command line symbolic link\n " - " that points to a directory\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --hide=PATTERN do not list implied " - "entries matching shell PATTERN\n " - " (overridden by -a or -A)\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --hyperlink[=WHEN] hyperlink file names WHEN\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --indicator-style=WORD\n " - "append indicator with style WORD to entry names:\n " - " none (default), slash (-p),\n " - " file-type (--file-type), classify (-F)\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -i, --inode print the index number of each " - "file\n -I, --ignore=PATTERN do not list implied " - "entries matching shell PATTERN\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -k, --kibibytes default to 1024-byte blocks " - "for file system usage;\n used " - "only with -s and per directory totals\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -l use a long listing format\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -L, --dereference when showing file information " - "for a symbolic\n link, show " - "information for the file the link\n " - " references rather than for the link itself\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -m fill width with a " - "comma separated list of entries\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -n, --numeric-uid-gid like -l, but list numeric user and " - "group IDs\n -N, --literal print entry names without " - "quoting\n -o like -l, but do not list " - "group information\n -p, --indicator-style=slash\n " - " append / indicator to directories\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -q, --hide-control-chars print ? instead of " - "nongraphic characters\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --show-control-chars show nongraphic characters " - "as-is (the default,\n unless " - "program is 'ls' and output is a terminal)\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -Q, --quote-name enclose entry names " - "in double quotes\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --quoting-style=WORD use quoting style WORD for entry " - "names:\n literal, locale, shell, " - "shell-always,\n shell-escape, " - "shell-escape-always, c, escape\n " - "(overrides QUOTING_STYLE environment variable)\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -r, --reverse reverse order while sorting\n " - "-R, --recursive list subdirectories " - "recursively\n -s, --size print the " - "allocated size of each file, in blocks\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -S sort by file size, largest first\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --sort=WORD sort by WORD instead of name: " - "none (-U), size (-S),\n time " - "(-t), version (-v), extension (-X), width\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --time=WORD change the default of using " - "modification times;\n access time " - "(-u): atime, access, use;\n change " - "time (-c): ctime, status;\n birth " - "time: birth, creation;\n with -l, " - "WORD determines which time to show;\n " - "with --sort=time, sort by WORD (newest first)\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --time-style=TIME_STYLE\n " - "time/date format with -l; see TIME_STYLE below\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -t sort by time, newest first; " - "see --time\n -T, --tabsize=COLS assume tab stops " - "at each COLS instead of 8\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -u with -lt: sort by, and show, " - "access time;\n with -l: show " - "access time and sort by name;\n " - "otherwise: sort by access time, newest first\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -U do not sort; list " - "entries in directory order\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -v natural sort of " - "(version) numbers within text\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -w, --width=COLS set output width to COLS. 0 means " - "no limit\n -x list entries by lines " - "instead of by columns\n -X sort " - "alphabetically by entry extension\n -Z, --context " - "print any security context of each file\n --zero " - " end each output line with NUL, not newline\n -1 " - " list one file per line\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_size_note(); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe TIME_STYLE argument can be full-iso, long-iso, iso, locale, " - "or +FORMAT.\nFORMAT is interpreted like in date(1). If FORMAT is " - "FORMAT1FORMAT2,\nthen FORMAT1 applies to non-recent " - "files and FORMAT2 to recent files.\nTIME_STYLE prefixed with " - "'posix-' takes effect only outside the POSIX locale.\nAlso the " - "TIME_STYLE environment variable sets the default style to use.\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - "\nThe WHEN argument defaults to 'always' and can " - "also be 'auto' or 'never'.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nUsing color to distinguish file types is disabled both by " - "default and\nwith --color=never. With --color=auto, ls emits " - "color codes only when\nstandard output is connected to a " - "terminal. The LS_COLORS environment\nvariable can change the " - "settings. Use the dircolors(1) command to set it.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nExit status:\n 0 if OK,\n 1 if minor problems (e.g., " - "cannot access subdirectory),\n 2 if serious trouble (e.g., " - "cannot access command-line argument).\n", - 5), - stdout) - - ; - emit_ancillary_info( - (ls_mode == 1 ? "ls" : (ls_mode == 2 ? "dir" : "vdir"))); - } - exit(status); -} diff --git a/tests/source/coreutils/make-prime-list.c b/tests/source/coreutils/make-prime-list.c deleted file mode 100644 index 59bcc81..0000000 --- a/tests/source/coreutils/make-prime-list.c +++ /dev/null @@ -1,2776 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); - -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef unsigned __int128 wide_uint; - -struct prime { - unsigned p; - wide_uint pinv; - wide_uint lim; -}; - -__attribute__((__const__)) static wide_uint binvert(wide_uint a) { - wide_uint x = 0xf5397db1 >> (4 * ((a / 2) & 0x7)); - for (;;) { - wide_uint y = 2 * x - x * x * a; - if (y == x) - return x; - x = y; - } -} - -static void process_prime(struct prime *info, unsigned p) { - wide_uint max = -1; - info->p = p; - info->pinv = binvert(p); - info->lim = max / p; -} - -static void print_wide_uint(wide_uint n, int nesting, unsigned wide_uint_bits) { - - int hex_digits_per_literal = 7; - int bits_per_literal = hex_digits_per_literal * 4; - - unsigned remainder = n & ((1 << bits_per_literal) - 1); - - if (n != remainder) { - int needs_parentheses = n >> bits_per_literal >> bits_per_literal != 0; - if (needs_parentheses) - printf("("); - print_wide_uint(n >> bits_per_literal, nesting + 1, wide_uint_bits); - if (needs_parentheses) - printf(")\n%*s", nesting + 3, ""); - printf(" << %d | ", bits_per_literal); - } else if (nesting) { - printf("(uintmax_t) "); - hex_digits_per_literal = ((wide_uint_bits - 1) % bits_per_literal) % 4 + 1; - } - - printf("0x%0*xU", hex_digits_per_literal, remainder); -} - -static void output_primes(const struct prime *primes, unsigned nprimes) { - unsigned i; - unsigned p; - int is_prime; - - unsigned wide_uint_bits = 0; - wide_uint mask = -1; - for (wide_uint_bits = 0; mask; wide_uint_bits++) - mask >>= 1; - - puts("/* Generated file -- DO NOT EDIT */\n"); - printf (" - for (i = 0, p = 2; i < nprimes; i++) - { - unsigned int d8 = i + 8 < nprimes ? primes[i + 8].p - primes[i].p : 0xff; - if (255 < d8) - abort(); - printf("P (%u, %u,\n (", primes[i].p - p, d8); - print_wide_uint(primes[i].pinv, 0, wide_uint_bits); - printf("),\n UINTMAX_MAX / %u)\n", primes[i].p); - p = primes[i].p; - } - - printf ("\n - - do - { - p += 2; - for (i = 0, is_prime = 1; is_prime; i++) { - if (primes[i].p * primes[i].p > p) - break; - if (p * primes[i].pinv <= primes[i].lim) { - is_prime = 0; - break; - } - } - } - while (!is_prime); - - printf ("} - -__attribute__ ((__malloc__)) -static void * -xalloc (size_t s) -{ - void *p = malloc(s); - if (p) - return p; - - fprintf(stderr, "Virtual memory exhausted.\n"); - exit(1); -} - -int -main (int argc, char **argv) -{ - int limit; - - char *sieve; - size_t size, i; - - struct prime *prime_list; - unsigned nprimes; - - if (argc != 2) { - fprintf(stderr, - "Usage: %s LIMIT\n" - "Produces a list of odd primes <= LIMIT\n", - argv[0]); - return 1; - } - limit = atoi(argv[1]); - if (limit < 3) - return 0; - - if (!(limit & 1)) - limit--; - - size = (limit - 1) / 2; - - sieve = xalloc(size); - memset(sieve, 1, size); - - prime_list = xalloc(size * sizeof(*prime_list)); - nprimes = 0; - - for (i = 0; i < size;) { - unsigned p = 3 + 2 * i; - unsigned j; - - process_prime(&prime_list[nprimes++], p); - - for (j = (p * p - 3) / 2; j < size; j += p) - sieve[j] = 0; - - while (++i < size && sieve[i] == 0) - ; - } - - output_primes(prime_list, nprimes); - - free(sieve); - free(prime_list); - - if (ferror(stdout) + fclose(stdout)) { - fprintf(stderr, "write error: %s\n", strerror((*__errno_location()))); - return 1; - } - - return 0; -} diff --git a/tests/source/coreutils/md5sum-digest.c b/tests/source/coreutils/md5sum-digest.c deleted file mode 100644 index bb6de6c..0000000 --- a/tests/source/coreutils/md5sum-digest.c +++ /dev/null @@ -1,7842 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -struct md5_ctx { - uint32_t A; - uint32_t B; - uint32_t C; - uint32_t D; - - uint32_t total[2]; - uint32_t buflen; - uint32_t buffer[32]; -}; -extern void md5_init_ctx(struct md5_ctx *ctx) - __attribute__((__nothrow__, __leaf__)); - -extern void md5_process_block(const void *buffer, size_t len, - struct md5_ctx *ctx) - __attribute__((__nothrow__, __leaf__)); - -extern void md5_process_bytes(const void *buffer, size_t len, - struct md5_ctx *ctx) - __attribute__((__nothrow__, __leaf__)); - -extern void *md5_finish_ctx(struct md5_ctx *ctx, void *__restrict__ resbuf) - - __attribute__((__nothrow__, __leaf__)); - -extern void *md5_read_ctx(const struct md5_ctx *ctx, void *__restrict__ resbuf) - - __attribute__((__nothrow__, __leaf__)); - -extern void *md5_buffer(const char *buffer, size_t len, - void *__restrict__ resblock) - __attribute__((__nothrow__, __leaf__)); -extern int md5_stream(FILE *stream, void *resblock) - __attribute__((__nothrow__, __leaf__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -static _Bool have_read_stdin; - -static size_t min_digest_line_length; - -static size_t digest_hex_bytes; - -static _Bool status_only = 0; - -static _Bool warn = 0; - -static _Bool ignore_missing = 0; - -static _Bool quiet = 0; - -static _Bool strict = 0; - -static int bsd_reversed = -1; - -static unsigned char digest_delim = '\n'; - -typedef void (*digest_output_fn)(char const *, int, void const *, - - _Bool, unsigned char, _Bool, uintmax_t); -enum { - IGNORE_MISSING_OPTION = 0x7f + 1, - STATUS_OPTION, - QUIET_OPTION, - STRICT_OPTION, - TAG_OPTION, - UNTAG_OPTION, - DEBUG_PROGRAM_OPTION, -}; - -static struct option const long_options[] = { - - {"check", 0, ((void *)0), 'c'}, - {"ignore-missing", 0, ((void *)0), IGNORE_MISSING_OPTION}, - {"quiet", 0, ((void *)0), QUIET_OPTION}, - {"status", 0, ((void *)0), STATUS_OPTION}, - {"warn", 0, ((void *)0), 'w'}, - {"strict", 0, ((void *)0), STRICT_OPTION}, - {"tag", 0, ((void *)0), TAG_OPTION}, - {"zero", 0, ((void *)0), 'z'}, - - {"binary", 0, ((void *)0), 'b'}, - {"text", 0, ((void *)0), 't'}, - - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - - printf(dcgettext(((void *)0), "Print or check %s (%d-bit) checksums.\n", 5) - - , - "MD5", 128); - - emit_stdin_note(); - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode " - "(default unless reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -c, --check read checksums from the " - "FILEs and check them\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --tag create a BSD-style checksum\n", 5), - stdout) - - ; - - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -t, --text read in text mode " - "(default if reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked( - dcgettext(((void *)0), - " -t, --text read in text mode (default)\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -z, --zero end each output line " - "with NUL, not newline,\n " - " and disable file name escaping\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nThe following five options are useful only when verifying " - "checksums:\n --ignore-missing don't fail or report " - "status for missing files\n --quiet don't " - "print OK for each successfully verified file\n " - "--status don't output anything, status code shows " - "success\n --strict exit non-zero for " - "improperly formatted checksum lines\n -w, --warn " - " warn about improperly formatted checksum lines\n\n", - 5), - stdout); - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nThe sums are computed as described in %s.\n", 5) - - , - "RFC 1321"); - fputs_unlocked( - dcgettext( - ((void *)0), - "When checking, the input should be a former output of this " - "program.\nThe default mode is to print a line with: checksum, a " - "space,\na character indicating input mode ('*' for binary, ' ' " - "for text\nor where binary is insignificant), and name for each " - "FILE.\n\nNote: There is no difference between binary mode and " - "text mode on GNU systems.\n", - 5), - stdout) - - ; - - emit_ancillary_info("md5sum"); - } - - exit(status); -} -static char *filename_unescape(char *s, size_t s_len) { - char *dst = s; - - for (size_t i = 0; i < s_len; i++) { - switch (s[i]) { - case '\\': - if (i == s_len - 1) { - - return ((void *)0); - } - ++i; - switch (s[i]) { - case 'n': - *dst++ = '\n'; - break; - case 'r': - *dst++ = '\r'; - break; - case '\\': - *dst++ = '\\'; - break; - default: - - return ((void *)0); - } - break; - - case '\0': - - return ((void *)0); - - default: - *dst++ = s[i]; - break; - } - } - if (dst < s + s_len) - *dst = '\0'; - - return s; -} - -__attribute__((__pure__)) static _Bool - -hex_digits(unsigned char const *s) { - for (unsigned int i = 0; i < digest_hex_bytes; i++) { - if (!((*__ctype_b_loc())[(int)((*s))] & (unsigned short int)_ISxdigit)) - return 0; - ++s; - } - return *s == '\0'; -} - -static _Bool - -bsd_split_3(char *s, size_t s_len, unsigned char **hex_digest, char **file_name, - _Bool escaped_filename) { - size_t i; - - if (s_len == 0) - return 0; - - i = s_len - 1; - while (i && s[i] != ')') - i--; - - if (s[i] != ')') - return 0; - - *file_name = s; - - if (escaped_filename && filename_unescape(s, i) == ((void *)0)) - return 0; - - s[i++] = '\0'; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - if (s[i] != '=') - return 0; - - i++; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - *hex_digest = (unsigned char *)&s[i]; - - return hex_digits(*hex_digest); -} -static _Bool - -split_3(char *s, size_t s_len, unsigned char **hex_digest, int *binary, - char **file_name) { - - _Bool escaped_filename = 0; - size_t algo_name_len; - - size_t i = 0; - while (((s[i]) == ' ' || (s[i]) == '\t')) - ++i; - - if (s[i] == '\\') { - ++i; - escaped_filename = 1; - } - algo_name_len = strlen("MD5"); - if ((strncmp(s + i, "MD5", algo_name_len) == 0)) { - i += algo_name_len; - if (s[i] == ' ') - ++i; - if (s[i] == '(') { - ++i; - *binary = 0; - return bsd_split_3(s + i, s_len - i, hex_digest, file_name, - escaped_filename); - } - return 0; - } - - if (s_len - i < min_digest_line_length + (s[i] == '\\')) - return 0; - - *hex_digest = (unsigned char *)&s[i]; - i += digest_hex_bytes; - if (!((s[i]) == ' ' || (s[i]) == '\t')) - return 0; - - s[i++] = '\0'; - - if (!hex_digits(*hex_digest)) - return 0; - - if ((s_len - i == 1) || (s[i] != ' ' && s[i] != '*')) { - - if (bsd_reversed == 0) - return 0; - bsd_reversed = 1; - } else if (bsd_reversed != 1) { - bsd_reversed = 0; - *binary = (s[i++] == '*'); - } - - *file_name = &s[i]; - - if (escaped_filename) - return filename_unescape(&s[i], s_len - i) != ((void *)0); - - return 1; -} - -static void print_filename(char const *file, _Bool escape) { - if (!escape) { - fputs_unlocked(file, stdout); - return; - } - - while (*file) { - switch (*file) { - case '\n': - fputs_unlocked("\\n", stdout); - break; - - case '\r': - fputs_unlocked("\\r", stdout); - break; - - case '\\': - fputs_unlocked("\\\\", stdout); - break; - - default: - putchar_unlocked(*file); - break; - } - file++; - } -} -static _Bool - -digest_file(char const *filename, int *binary, unsigned char *bin_result, - - _Bool *missing, uintmax_t *length) { - FILE *fp; - int err; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - *missing = 0; - - if (is_stdin) { - have_read_stdin = 1; - fp = stdin; - if (0 && *binary) { - if (*binary < 0) - *binary = !isatty(0); - if (*binary) - xset_binary_mode(0, 0); - } - } else { - fp = fopen_safer(filename, (0 && *binary ? "rb" : "r")); - if (fp == ((void *)0)) { - if (ignore_missing && (*__errno_location()) == 2) { - *missing = 1; - return 1; - } - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - } - - fadvise(fp, FADVISE_SEQUENTIAL); - err = md5_stream(fp, bin_result); - - err = err ? (*__errno_location()) : 0; - if (is_stdin) - clearerr_unlocked(fp); - else if (rpl_fclose(fp) != 0 && !err) - err = (*__errno_location()); - - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return 1; -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - unsigned char const *bin_buffer = digest; - - _Bool needs_escape = - delim == '\n' && - (strchr(file, '\\') || strchr(file, '\n') || strchr(file, '\r')); - if (needs_escape) - putchar_unlocked('\\'); - - if (tagged) { - fputs_unlocked("MD5", stdout); - fputs_unlocked(" (", stdout); - print_filename(file, needs_escape); - fputs_unlocked(") = ", stdout); - } - - for (size_t i = 0; i < (digest_hex_bytes / 2); ++i) - printf("%02x", bin_buffer[i]); - - if (!tagged) { - putchar_unlocked(' '); - - putchar_unlocked(binary_file ? '*' : ' '); - - print_filename(file, needs_escape); - } - - putchar_unlocked(delim); -} - -static _Bool - -digest_check(char const *checkfile_name) { - FILE *checkfile_stream; - uintmax_t n_misformatted_lines = 0; - uintmax_t n_improperly_formatted_lines = 0; - uintmax_t n_mismatched_checksums = 0; - uintmax_t n_open_or_read_failures = 0; - - _Bool properly_formatted_lines = 0; - - _Bool matched_checksums = 0; - unsigned char bin_buffer_unaligned[(128 / 8) + 4]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 4); - uintmax_t line_number; - char *line; - size_t line_chars_allocated; - - _Bool is_stdin = (strcmp(checkfile_name, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - checkfile_name = dcgettext(((void *)0), "standard input", 5); - checkfile_stream = stdin; - } else { - checkfile_stream = fopen_safer(checkfile_name, "r"); - if (checkfile_stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - return 0; - } - } - - line_number = 0; - line = ((void *)0); - line_chars_allocated = 0; - do { - char *filename; - int binary; - unsigned char *hex_digest; - ssize_t line_length; - - ++line_number; - if (line_number == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum " - "lines\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, checkfile_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - line_length = getline(&line, &line_chars_allocated, checkfile_stream); - if (line_length <= 0) - break; - - if (line[0] == ' continue; - - - line_length -= line[line_length - 1] == '\n'; - - line_length -= line[line_length - (0 < line_length)] == '\r'; - - - if (line_length == 0) - continue; - - line[line_length] = '\0'; - - if (! (split_3 (line, line_length, &hex_digest, &binary, &filename) - && ! (is_stdin && (strcmp (filename, "-") == 0)))) - { - ++n_misformatted_lines; - - if (warn) { - error(0, 0, - - dcgettext(((void *)0), - "%s: %" - "l" - "u" - ": improperly formatted %s checksum line", - 5) - - , - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name), - line_number, "MD5"); - } - - ++n_improperly_formatted_lines; - } - else - { - static const char bin2hex[] = {'0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; - - _Bool ok; - - _Bool missing; - - _Bool needs_escape = !status_only && strchr(filename, '\n'); - - properly_formatted_lines = 1; - - uintmax_t length; - ok = digest_file(filename, &binary, bin_buffer, &missing, &length); - - if (!ok) { - ++n_open_or_read_failures; - if (!status_only) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - printf(": %s\n", dcgettext(((void *)0), "FAILED open or read", 5)); - } - } else if (ignore_missing && missing) { - - ; - } else { - size_t digest_bin_bytes = digest_hex_bytes / 2; - size_t cnt; - - for (cnt = 0; cnt < digest_bin_bytes; ++cnt) { - if ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt])) { - int __c = (hex_digest[2 * cnt]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt]); - } else - __res = (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt])]; - __res; - })) - - != bin2hex[bin_buffer[cnt] >> 4] || - ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt + 1]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt + 1])) { - int __c = (hex_digest[2 * cnt + 1]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt + 1]); - } else - __res = - (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt + 1])]; - __res; - })) - - != (bin2hex[bin_buffer[cnt] & 0xf]))) - break; - } - if (cnt != digest_bin_bytes) - ++n_mismatched_checksums; - else - matched_checksums = 1; - - if (!status_only) { - if (cnt != digest_bin_bytes || !quiet) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - } - - if (cnt != digest_bin_bytes) - printf(": %s\n", dcgettext(((void *)0), "FAILED", 5)); - else if (!quiet) - printf(": %s\n", dcgettext(((void *)0), "OK", 5)); - } - } - } - } while (!feof_unlocked(checkfile_stream) && - !ferror_unlocked(checkfile_stream)); - - free(line); - - int err = ferror_unlocked(checkfile_stream) ? 0 : -1; - if (is_stdin) - clearerr_unlocked(checkfile_stream); - else if (rpl_fclose(checkfile_stream) != 0 && err < 0) - err = (*__errno_location()); - - if (0 <= err) { - error( - 0, err, err ? "%s" : dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - return 0; - } - - if (!properly_formatted_lines) { - - error( - 0, 0, - dcgettext(((void *)0), "%s: no properly formatted checksum lines found", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - } else { - if (!status_only) { - if (n_misformatted_lines != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " line is improperly formatted", - "WARNING: %" - "l" - "u" - " lines are improperly formatted", - select_plural(n_misformatted_lines), 5) - - ), - n_misformatted_lines); - - if (n_open_or_read_failures != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " listed file could not be read", - "WARNING: %" - "l" - "u" - " listed files could not be read", - select_plural(n_open_or_read_failures), 5) - - ), - n_open_or_read_failures); - - if (n_mismatched_checksums != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " computed checksum did NOT match", - "WARNING: %" - "l" - "u" - " computed checksums did NOT match", - select_plural(n_mismatched_checksums), 5) - - ), - n_mismatched_checksums); - - if (ignore_missing && !matched_checksums) - error(0, 0, dcgettext(((void *)0), "%s: no file was verified", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - } - } - - return (properly_formatted_lines && matched_checksums && - n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && - (!strict || n_improperly_formatted_lines == 0)); -} - -int main(int argc, char **argv) { - unsigned char bin_buffer_unaligned[(128 / 8) + 4]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 4); - - _Bool do_check = 0; - int opt; - - _Bool ok = 1; - - int binary = -1; - - _Bool prefix_tag = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - setvbuf(stdout, ((void *)0), 1, 0); - char const *short_opts = "bctwz"; - - while ((opt = getopt_long(argc, argv, short_opts, long_options, - ((void *)0))) != -1) - switch (opt) { - case 'c': - do_check = 1; - break; - case STATUS_OPTION: - status_only = 1; - warn = 0; - quiet = 0; - break; - - case 'b': - binary = 1; - break; - case 't': - binary = 0; - break; - - case 'w': - status_only = 0; - warn = 1; - quiet = 0; - break; - case IGNORE_MISSING_OPTION: - ignore_missing = 1; - break; - case QUIET_OPTION: - status_only = 0; - warn = 0; - quiet = 1; - break; - case STRICT_OPTION: - strict = 1; - break; - - case TAG_OPTION: - prefix_tag = 1; - binary = 1; - break; - case 'z': - digest_delim = '\0'; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "md5sum", "GNU coreutils", Version, - ("Ulrich Drepper"), ("Scott Miller"), ("David Madore"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - min_digest_line_length = ((128 / 4) + 1 + 1); - digest_hex_bytes = (128 / 4); - if (prefix_tag && !binary) { - - error(0, 0, - dcgettext(((void *)0), "--tag does not support --text mode", 5)); - usage(1); - } - - if (digest_delim != '\n' && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --zero option is not supported when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (prefix_tag && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --tag option is meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (0 <= binary && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --binary and --text options are meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (ignore_missing && !do_check) { - error(0, 0, - - dcgettext(((void *)0), - "the --ignore-missing option is meaningful only when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (status_only && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --status option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (warn && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --warn option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (quiet && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --quiet option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (strict & !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --strict option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (!0 && binary < 0) - binary = 0; - - char **operand_lim = argv + argc; - if (optind == argc) - *operand_lim++ = bad_cast("-"); - - for (char **operandp = argv + optind; operandp < operand_lim; operandp++) { - char *file = *operandp; - if (do_check) - ok &= digest_check(file); - else { - int binary_file = binary; - - _Bool missing; - uintmax_t length; - - if (!digest_file(file, &binary_file, bin_buffer, &missing, &length)) - ok = 0; - else { - output_file(file, binary_file, bin_buffer, prefix_tag, digest_delim, - optind != argc, length); - } - } - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/mkdir.c b/tests/source/coreutils/mkdir.c deleted file mode 100644 index 01bd34b..0000000 --- a/tests/source/coreutils/mkdir.c +++ /dev/null @@ -1,7594 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); -struct selabel_handle; -extern struct selabel_handle *selabel_open(unsigned int backend, - const struct selinux_opt *opts, - unsigned nopts); -extern void selabel_close(struct selabel_handle *handle); -extern int selabel_lookup(struct selabel_handle *handle, char **con, - const char *key, int type); -extern int selabel_lookup_raw(struct selabel_handle *handle, char **con, - const char *key, int type); - -extern _Bool selabel_partial_match(struct selabel_handle *handle, - const char *key); - -extern _Bool selabel_get_digests_all_partial_matches( - struct selabel_handle *rec, const char *key, uint8_t **calculated_digest, - uint8_t **xattr_digest, size_t *digest_len); -extern _Bool selabel_hash_all_partial_matches(struct selabel_handle *rec, - const char *key, uint8_t *digest); - -extern int selabel_lookup_best_match(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_digest(struct selabel_handle *rec, unsigned char **digest, - size_t *digest_len, char ***specfiles, - size_t *num_specfiles); - -enum selabel_cmp_result { - SELABEL_SUBSET, - SELABEL_EQUAL, - SELABEL_SUPERSET, - SELABEL_INCOMPARABLE -}; -extern enum selabel_cmp_result selabel_cmp(struct selabel_handle *h1, - struct selabel_handle *h2); -extern void selabel_stats(struct selabel_handle *handle); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct savewd; - -_Bool make_dir_parents(char *dir, struct savewd *wd, - int (*make_ancestor)(char const *, char const *, void *), - void *options, mode_t mode, - void (*announce)(char const *, void *), mode_t mode_bits, - uid_t owner, gid_t group, - - _Bool preserve_existing); - -struct mode_change *mode_compile(const char *) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -struct mode_change *mode_create_from_ref(const char *) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -mode_t mode_adjust(mode_t, _Bool, mode_t, struct mode_change const *, mode_t *); - -extern void prog_fprintf(FILE *fp, char const *fmt, ...) - __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct savewd { - - enum { - - INITIAL_STATE, - - FD_STATE, - - FD_POST_CHDIR_STATE, - - FORKING_STATE, - - ERROR_STATE, - - FINAL_STATE - } state; - - union { - int fd; - int errnum; - pid_t child; - } val; -}; - -inline void savewd_init(struct savewd *wd) { wd->state = INITIAL_STATE; } - -enum { - - SAVEWD_CHDIR_NOFOLLOW = 1, - - SAVEWD_CHDIR_SKIP_READABLE = 2 -}; -int savewd_chdir(struct savewd *wd, char const *dir, int options, - int open_result[2]); - -int savewd_restore(struct savewd *wd, int status); - -inline int __attribute__((__pure__)) savewd_errno(struct savewd const *wd) { - return (wd->state == ERROR_STATE ? wd->val.errnum : 0); -} - -void savewd_finish(struct savewd *wd); -int savewd_process_files(int n_files, char **file, - int (*act)(char *, struct savewd *, void *), - void *options); - -struct selabel_handle; - -static inline _Bool - -ignorable_ctx_err(int err) { - return err == 95 || err == 61; -} - -extern _Bool - -restorecon(struct selabel_handle *selabel_handle, char const *path, - _Bool recurse); -extern int defaultcon(struct selabel_handle *selabel_handle, char const *path, - mode_t mode); - -static inline ssize_t smack_new_label_from_self(char **label) { return -1; } - -static inline int smack_set_label_for_self(char const *label) { return -1; } - -static inline _Bool - -is_smack_enabled(void) { - - return 0; -} - -static struct option const longopts[] = { - {"context", 2, ((void *)0), 'Z'}, - {"mode", 1, ((void *)0), 'm'}, - {"parents", 0, ((void *)0), 'p'}, - {"verbose", 0, ((void *)0), 'v'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... DIRECTORY...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Create the DIRECTORY(ies), if they do not already exist.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -m, --mode=MODE set file mode (as in chmod), not a=rwx " - "- umask\n -p, --parents no error if existing, make " - "parent directories as needed,\n with " - "their file modes unaffected by any -m option.\n -v, " - "--verbose print a message for each created directory\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -Z set SELinux security context of each " - "created directory\n to the default " - "type\n --context[=CTX] like -Z, or if CTX is " - "specified then set the SELinux\n or " - "SMACK security context to CTX\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("mkdir"); - } - exit(status); -} - -struct mkdir_options { - - int (*make_ancestor_function)(char const *, char const *, void *); - - mode_t umask_ancestor; - - mode_t umask_self; - - mode_t mode; - - mode_t mode_bits; - - struct selabel_handle *set_security_context; - - char const *created_directory_format; -}; - -static void announce_mkdir(char const *dir, void *options) { - struct mkdir_options const *o = options; - if (o->created_directory_format) - prog_fprintf(stdout, o->created_directory_format, - quotearg_style(shell_escape_always_quoting_style, dir)); -} - -static int make_ancestor(char const *dir, char const *component, - void *options) { - struct mkdir_options const *o = options; - - if (o->set_security_context && - defaultcon(o->set_security_context, component, 0040000) < 0 && - !ignorable_ctx_err((*__errno_location()))) - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to set default creation context for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - - if (o->umask_ancestor != o->umask_self) - umask(o->umask_ancestor); - int r = mkdir(component, ((0400 | 0200 | 0100) | ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3))); - if (o->umask_ancestor != o->umask_self) { - int mkdir_errno = (*__errno_location()); - umask(o->umask_self); - - (*__errno_location()) = mkdir_errno; - } - if (r == 0) { - r = (o->umask_ancestor & 0400) != 0; - announce_mkdir(dir, options); - } - return r; -} - -static int process_dir(char *dir, struct savewd *wd, void *options) { - struct mkdir_options const *o = options; - - if (o->set_security_context) { - if (!o->make_ancestor_function && - defaultcon(o->set_security_context, dir, 0040000) < 0 && - !ignorable_ctx_err((*__errno_location()))) - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to set default creation context for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - } - - int ret = - (make_dir_parents(dir, wd, o->make_ancestor_function, options, o->mode, - announce_mkdir, o->mode_bits, (uid_t)-1, (gid_t)-1, 1) - ? 0 - - : 1); - - if (ret == 0 && o->set_security_context && o->make_ancestor_function) { - if (!restorecon(o->set_security_context, last_component(dir), 0) && - !ignorable_ctx_err((*__errno_location()))) - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to restore context for %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - } - - return ret; -} - -int main(int argc, char **argv) { - char const *specified_mode = ((void *)0); - int optc; - char const *scontext = ((void *)0); - struct mkdir_options options; - - options.make_ancestor_function = ((void *)0); - options.mode = ((0400 | 0200 | 0100) | ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3)); - options.mode_bits = 0; - options.created_directory_format = ((void *)0); - options.set_security_context = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "pm:vZ", longopts, ((void *)0))) != - -1) { - switch (optc) { - case 'p': - options.make_ancestor_function = make_ancestor; - break; - case 'm': - specified_mode = optarg; - break; - case 'v': - options.created_directory_format = - dcgettext(((void *)0), "created directory %s", 5); - break; - case 'Z': - if (is_smack_enabled()) { - - scontext = optarg; - } else if (is_selinux_enabled() > 0) { - if (optarg) - scontext = optarg; - else { - options.set_security_context = selabel_open(0, - - ((void *)0), 0); - if (!options.set_security_context) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: ignoring --context", 5)); - } - } else if (optarg) { - error(0, 0, - - dcgettext(((void *)0), - "warning: ignoring --context; " - "it requires an SELinux/SMACK-enabled kernel", - 5) - - ); - } - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "mkdir", "GNU coreutils", Version, - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (optind == argc) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - if (scontext) { - int ret = 0; - if (is_smack_enabled()) - ret = smack_set_label_for_self(scontext); - else - ret = setfscreatecon(scontext); - - if (ret < 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to set default file creation context to " - "%s\", 5), quote (scontext)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to set default file creation context to %s", - 5), - quote(scontext)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to set default file creation context to %s", - 5), - quote(scontext)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - if (options.make_ancestor_function || specified_mode) { - mode_t umask_value = umask(0); - options.umask_ancestor = umask_value & ~(0200 | 0100); - - if (specified_mode) { - struct mode_change *change = mode_compile(specified_mode); - if (!change) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid mode " - "%s\", 5), quote (specified_mode)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid mode %s", 5), - quote(specified_mode)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid mode %s", 5), - quote(specified_mode)), - ((0) ? (void)0 : __builtin_unreachable())))); - options.mode = - mode_adjust(((0400 | 0200 | 0100) | ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3)), - 1, umask_value, change, &options.mode_bits); - options.umask_self = umask_value & ~options.mode; - free(change); - } else { - options.mode = ((0400 | 0200 | 0100) | ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3)); - options.umask_self = umask_value; - } - - umask(options.umask_self); - } - - return savewd_process_files(argc - optind, argv + optind, process_dir, - &options); -} diff --git a/tests/source/coreutils/mkfifo.c b/tests/source/coreutils/mkfifo.c deleted file mode 100644 index a273d53..0000000 --- a/tests/source/coreutils/mkfifo.c +++ /dev/null @@ -1,7452 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); -struct selabel_handle; -extern struct selabel_handle *selabel_open(unsigned int backend, - const struct selinux_opt *opts, - unsigned nopts); -extern void selabel_close(struct selabel_handle *handle); -extern int selabel_lookup(struct selabel_handle *handle, char **con, - const char *key, int type); -extern int selabel_lookup_raw(struct selabel_handle *handle, char **con, - const char *key, int type); - -extern _Bool selabel_partial_match(struct selabel_handle *handle, - const char *key); - -extern _Bool selabel_get_digests_all_partial_matches( - struct selabel_handle *rec, const char *key, uint8_t **calculated_digest, - uint8_t **xattr_digest, size_t *digest_len); -extern _Bool selabel_hash_all_partial_matches(struct selabel_handle *rec, - const char *key, uint8_t *digest); - -extern int selabel_lookup_best_match(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_digest(struct selabel_handle *rec, unsigned char **digest, - size_t *digest_len, char ***specfiles, - size_t *num_specfiles); - -enum selabel_cmp_result { - SELABEL_SUBSET, - SELABEL_EQUAL, - SELABEL_SUPERSET, - SELABEL_INCOMPARABLE -}; -extern enum selabel_cmp_result selabel_cmp(struct selabel_handle *h1, - struct selabel_handle *h2); -extern void selabel_stats(struct selabel_handle *handle); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct mode_change *mode_compile(const char *) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -struct mode_change *mode_create_from_ref(const char *) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -mode_t mode_adjust(mode_t, _Bool, mode_t, struct mode_change const *, mode_t *); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -struct selabel_handle; - -static inline _Bool - -ignorable_ctx_err(int err) { - return err == 95 || err == 61; -} - -extern _Bool - -restorecon(struct selabel_handle *selabel_handle, char const *path, - _Bool recurse); -extern int defaultcon(struct selabel_handle *selabel_handle, char const *path, - mode_t mode); - -static inline ssize_t smack_new_label_from_self(char **label) { return -1; } - -static inline int smack_set_label_for_self(char const *label) { return -1; } - -static inline _Bool - -is_smack_enabled(void) { - - return 0; -} - -static struct option const longopts[] = { - {"context", 2, ((void *)0), 'Z'}, - {"mode", 1, ((void *)0), 'm'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... NAME...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Create named pipes (FIFOs) with the given NAMEs.\n", 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked(dcgettext(((void *)0), - " -m, --mode=MODE set file permission bits to " - "MODE, not a=rw - umask\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -Z set the SELinux security context to " - "default type\n --context[=CTX] like -Z, or if CTX is " - "specified then set the SELinux\n or " - "SMACK security context to CTX\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("mkfifo"); - } - exit(status); -} - -int main(int argc, char **argv) { - mode_t newmode; - char const *specified_mode = ((void *)0); - int exit_status = 0; - int optc; - char const *scontext = ((void *)0); - struct selabel_handle *set_security_context = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "m:Z", longopts, ((void *)0))) != -1) { - switch (optc) { - case 'm': - specified_mode = optarg; - break; - case 'Z': - if (is_smack_enabled()) { - - scontext = optarg; - } else if (is_selinux_enabled() > 0) { - if (optarg) - scontext = optarg; - else { - set_security_context = selabel_open(0, - - ((void *)0), 0); - if (!set_security_context) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: ignoring --context", 5)); - } - } else if (optarg) { - error(0, 0, - - dcgettext(((void *)0), - "warning: ignoring --context; " - "it requires an SELinux/SMACK-enabled kernel", - 5) - - ); - } - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "mkfifo", "GNU coreutils", Version, - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (optind == argc) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - if (scontext) { - int ret = 0; - if (is_smack_enabled()) - ret = smack_set_label_for_self(scontext); - else - ret = setfscreatecon(scontext); - - if (ret < 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to set default file creation context to " - "%s\", 5), quote (scontext)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to set default file creation context to %s", - 5), - quote(scontext)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to set default file creation context to %s", - 5), - quote(scontext)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - newmode = (0400 | 0200 | (0400 >> 3) | (0200 >> 3) | ((0400 >> 3) >> 3) | - ((0200 >> 3) >> 3)); - if (specified_mode) { - mode_t umask_value; - struct mode_change *change = mode_compile(specified_mode); - if (!change) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "mode\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid mode", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid mode", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - umask_value = umask(0); - umask(umask_value); - newmode = mode_adjust(newmode, 0, umask_value, change, ((void *)0)); - free(change); - if (newmode & ~((0400 | 0200 | 0100) | ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3))) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"mode must specify only " - "file permission bits\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "mode must specify only file permission bits", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "mode must specify only file permission bits", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - for (; optind < argc; ++optind) { - if (set_security_context) - defaultcon(set_security_context, argv[optind], 0010000); - if (mkfifo(argv[optind], newmode) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot create fifo %s", 5), - quotearg_style(shell_escape_always_quoting_style, argv[optind])); - exit_status = 1; - } else if (specified_mode && lchmod(argv[optind], newmode) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot set permissions of %s", 5), - quotearg_style(shell_escape_always_quoting_style, argv[optind])); - exit_status = 1; - } - } - - return exit_status; -} diff --git a/tests/source/coreutils/mknod.c b/tests/source/coreutils/mknod.c deleted file mode 100644 index 767b433..0000000 --- a/tests/source/coreutils/mknod.c +++ /dev/null @@ -1,7679 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); -struct selabel_handle; -extern struct selabel_handle *selabel_open(unsigned int backend, - const struct selinux_opt *opts, - unsigned nopts); -extern void selabel_close(struct selabel_handle *handle); -extern int selabel_lookup(struct selabel_handle *handle, char **con, - const char *key, int type); -extern int selabel_lookup_raw(struct selabel_handle *handle, char **con, - const char *key, int type); - -extern _Bool selabel_partial_match(struct selabel_handle *handle, - const char *key); - -extern _Bool selabel_get_digests_all_partial_matches( - struct selabel_handle *rec, const char *key, uint8_t **calculated_digest, - uint8_t **xattr_digest, size_t *digest_len); -extern _Bool selabel_hash_all_partial_matches(struct selabel_handle *rec, - const char *key, uint8_t *digest); - -extern int selabel_lookup_best_match(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_digest(struct selabel_handle *rec, unsigned char **digest, - size_t *digest_len, char ***specfiles, - size_t *num_specfiles); - -enum selabel_cmp_result { - SELABEL_SUBSET, - SELABEL_EQUAL, - SELABEL_SUPERSET, - SELABEL_INCOMPARABLE -}; -extern enum selabel_cmp_result selabel_cmp(struct selabel_handle *h1, - struct selabel_handle *h2); -extern void selabel_stats(struct selabel_handle *handle); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct mode_change *mode_compile(const char *) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -struct mode_change *mode_create_from_ref(const char *) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -mode_t mode_adjust(mode_t, _Bool, mode_t, struct mode_change const *, mode_t *); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -struct selabel_handle; - -static inline _Bool - -ignorable_ctx_err(int err) { - return err == 95 || err == 61; -} - -extern _Bool - -restorecon(struct selabel_handle *selabel_handle, char const *path, - _Bool recurse); -extern int defaultcon(struct selabel_handle *selabel_handle, char const *path, - mode_t mode); - -static inline ssize_t smack_new_label_from_self(char **label) { return -1; } - -static inline int smack_set_label_for_self(char const *label) { return -1; } - -static inline _Bool - -is_smack_enabled(void) { - - return 0; -} -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -static struct option const longopts[] = { - {"context", 2, ((void *)0), 'Z'}, - {"mode", 1, ((void *)0), 'm'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... NAME TYPE [MAJOR MINOR]\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Create the special file NAME of the given TYPE.\n", 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked(dcgettext(((void *)0), - " -m, --mode=MODE set file permission bits to " - "MODE, not a=rw - umask\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -Z set the SELinux security context to " - "default type\n --context[=CTX] like -Z, or if CTX is " - "specified then set the SELinux\n or " - "SMACK security context to CTX\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nBoth MAJOR and MINOR must be specified when TYPE is b, c, " - "or u, and they\nmust be omitted when TYPE is p. If MAJOR " - "or MINOR begins with 0x or 0X,\nit is interpreted as " - "hexadecimal; otherwise, if it begins with 0, as " - "octal;\notherwise, as decimal. TYPE may be:\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - "\n b create a block (buffered) special " - "file\n c, u create a character (unbuffered) " - "special file\n p create a FIFO\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your " - "shell's documentation\n" - "for details about the options it supports.\n", - 5), - "mknod"); - emit_ancillary_info("mknod"); - } - exit(status); -} - -int main(int argc, char **argv) { - mode_t newmode; - char const *specified_mode = ((void *)0); - int optc; - size_t expected_operands; - mode_t node_type; - char const *scontext = ((void *)0); - struct selabel_handle *set_security_context = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "m:Z", longopts, ((void *)0))) != -1) { - switch (optc) { - case 'm': - specified_mode = optarg; - break; - case 'Z': - if (is_smack_enabled()) { - - scontext = optarg; - } else if (is_selinux_enabled() > 0) { - if (optarg) - scontext = optarg; - else { - set_security_context = selabel_open(0, - - ((void *)0), 0); - if (!set_security_context) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: ignoring --context", 5)); - } - } else if (optarg) { - error(0, 0, - - dcgettext(((void *)0), - "warning: ignoring --context; " - "it requires an SELinux/SMACK-enabled kernel", - 5) - - ); - } - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "mknod", "GNU coreutils", Version, - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - newmode = (0400 | 0200 | (0400 >> 3) | (0200 >> 3) | ((0400 >> 3) >> 3) | - ((0200 >> 3) >> 3)); - if (specified_mode) { - mode_t umask_value; - struct mode_change *change = mode_compile(specified_mode); - if (!change) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "mode\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid mode", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid mode", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - umask_value = umask(0); - umask(umask_value); - newmode = mode_adjust(newmode, 0, umask_value, change, ((void *)0)); - free(change); - if (newmode & ~((0400 | 0200 | 0100) | ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3))) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"mode must specify only " - "file permission bits\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "mode must specify only file permission bits", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "mode must specify only file permission bits", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - expected_operands = - (argc <= optind || (optind + 1 < argc && argv[optind + 1][0] == 'p') ? 2 - : 4); - - if (argc - optind < expected_operands) { - if (argc <= optind) - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - else - error(0, 0, dcgettext(((void *)0), "missing operand after %s", 5), - quote(argv[argc - 1])); - if (expected_operands == 4 && argc - optind == 2) - fprintf(stderr, "%s\n", - - dcgettext(((void *)0), - "Special files require major and minor device numbers.", - 5)); - usage(1); - } - - if (expected_operands < argc - optind) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + expected_operands])); - if (expected_operands == 2 && argc - optind == 4) - fprintf(stderr, "%s\n", - - dcgettext(((void *)0), - "Fifos do not have major and minor device numbers.", - 5)); - usage(1); - } - - if (scontext) { - int ret = 0; - if (is_smack_enabled()) - ret = smack_set_label_for_self(scontext); - else - ret = setfscreatecon(scontext); - - if (ret < 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to set default file creation context to " - "%s\", 5), quote (scontext)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to set default file creation context to %s", - 5), - quote(scontext)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext( - ((void *)0), - "failed to set default file creation context to %s", - 5), - quote(scontext)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - switch (argv[optind + 1][0]) { - case 'b': - - node_type = 0060000; - - goto block_or_character; - - case 'c': - case 'u': - - node_type = 0020000; - - goto block_or_character; - - block_or_character : { - char const *s_major = argv[optind + 2]; - char const *s_minor = argv[optind + 3]; - uintmax_t i_major, i_minor; - dev_t device; - - if (xstrtoumax(s_major, ((void *)0), 0, &i_major, "") != LONGINT_OK || - i_major != (unsigned int)i_major) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid major device " - "number %s\", 5), quote (s_major)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext(((void *)0), "invalid major device number %s", 5), - quote(s_major)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext(((void *)0), "invalid major device number %s", 5), - quote(s_major)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (xstrtoumax(s_minor, ((void *)0), 0, &i_minor, "") != LONGINT_OK || - i_minor != (unsigned int)i_minor) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid minor device " - "number %s\", 5), quote (s_minor)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext(((void *)0), "invalid minor device number %s", 5), - quote(s_minor)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext(((void *)0), "invalid minor device number %s", 5), - quote(s_minor)), - ((0) ? (void)0 : __builtin_unreachable())))); - - device = gnu_dev_makedev(i_major, i_minor); - - if (device == ((dev_t)-1)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid device " - "%s %s\", 5), s_major, s_minor), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid device %s %s", 5), - s_major, s_minor), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid device %s %s", 5), - s_major, s_minor), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (set_security_context) - defaultcon(set_security_context, argv[optind], node_type); - - if (rpl_mknod(argv[optind], newmode | node_type, device) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, argv[optind])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable())))); - } break; - - case 'p': - if (set_security_context) - defaultcon(set_security_context, argv[optind], 0010000); - if (mkfifo(argv[optind], newmode) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, argv[optind])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable())))); - break; - - default: - error(0, 0, dcgettext(((void *)0), "invalid device type %s", 5), - quote(argv[optind + 1])); - usage(1); - } - - if (specified_mode && lchmod(argv[optind], newmode) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot " - "set permissions of %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, argv[optind])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot set permissions of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot set permissions of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable())))); - - return 0; -} diff --git a/tests/source/coreutils/mktemp.c b/tests/source/coreutils/mktemp.c deleted file mode 100644 index 63b6fb3..0000000 --- a/tests/source/coreutils/mktemp.c +++ /dev/null @@ -1,7219 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -int close_stream(FILE *stream); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -extern int gen_tempname(char *tmpl, int suffixlen, int flags, int kind); - -extern int gen_tempname_len(char *tmpl, int suffixlen, int flags, int kind, - size_t x_suffix_len); - -extern int try_tempname(char *tmpl, int suffixlen, void *args, - int (*tryfunc)(char *, void *)); - -extern int try_tempname_len(char *tmpl, int suffixlen, void *args, - int (*tryfunc)(char *, void *), - size_t x_suffix_len); -static char const *default_template = "tmp.XXXXXXXXXX"; - -enum { - SUFFIX_OPTION = 0x7f + 1, -}; - -static struct option const longopts[] = { - {"directory", 0, ((void *)0), 'd'}, - {"quiet", 0, ((void *)0), 'q'}, - {"dry-run", 0, ((void *)0), 'u'}, - {"suffix", 1, ((void *)0), SUFFIX_OPTION}, - {"tmpdir", 2, ((void *)0), 'p'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [TEMPLATE]\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Create a temporary file or directory, safely, and print its " - "name.\nTEMPLATE must contain at least 3 consecutive 'X's in " - "last component.\nIf TEMPLATE is not specified, use " - "tmp.XXXXXXXXXX, and --tmpdir is implied.\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - "Files are created u+rw, and directories u+rwx, " - "minus umask restrictions.\n", - 5), - stdout) - - ; - fputs_unlocked("\n", stdout); - fputs_unlocked( - dcgettext(((void *)0), - " -d, --directory create a directory, not a file\n -u, " - "--dry-run do not create anything; merely print a name " - "(unsafe)\n -q, --quiet suppress diagnostics about " - "file/dir-creation failure\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --suffix=SUFF append SUFF to TEMPLATE; SUFF must " - "not contain a slash.\n This option " - "is implied if TEMPLATE does not end in X\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -p DIR, --tmpdir[=DIR] interpret TEMPLATE relative to DIR; if " - "DIR is not\n specified, use $TMPDIR if " - "set, else /tmp. With\n this option, " - "TEMPLATE must not be an absolute name;\n " - "unlike with -t, TEMPLATE may contain slashes, but\n " - " mktemp creates only the final component\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -t interpret TEMPLATE as a single file " - "name component,\n relative to a " - "directory: $TMPDIR, if set; else the\n " - " directory specified via -p; else /tmp [deprecated]\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("mktemp"); - } - - exit(status); -} - -static size_t count_consecutive_X_s(char const *s, size_t len) { - size_t n = 0; - for (; len && s[len - 1] == 'X'; len--) - ++n; - return n; -} - -static int mkstemp_len(char *tmpl, size_t suff_len, size_t x_len, - _Bool dry_run) { - return gen_tempname_len(tmpl, suff_len, 0, dry_run ? 2 : 0, x_len); -} - -static int mkdtemp_len(char *tmpl, size_t suff_len, size_t x_len, - _Bool dry_run) { - return gen_tempname_len(tmpl, suff_len, 0, dry_run ? 2 : 1, x_len); -} - -static _Bool stdout_closed; - -static void maybe_close_stdout(void) { - if (!stdout_closed) - close_stdout(); - else if (close_stream(stderr) != 0) - _exit(1); -} - -int main(int argc, char **argv) { - char const *dest_dir; - char const *dest_dir_arg = ((void *)0); - - _Bool suppress_file_err = 0; - int c; - unsigned int n_args; - char *template; - char *suffix = ((void *)0); - - _Bool use_dest_dir = 0; - - _Bool deprecated_t_option = 0; - - _Bool create_directory = 0; - - _Bool dry_run = 0; - int status = 0; - size_t x_count; - size_t suffix_len; - char *dest_name; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(maybe_close_stdout); - - while ((c = getopt_long(argc, argv, "dp:qtuV", longopts, ((void *)0))) != - -1) { - switch (c) { - case 'd': - create_directory = 1; - break; - case 'p': - dest_dir_arg = optarg; - use_dest_dir = 1; - break; - case 'q': - suppress_file_err = 1; - break; - case 't': - use_dest_dir = 1; - deprecated_t_option = 1; - break; - case 'u': - dry_run = 1; - break; - - case SUFFIX_OPTION: - suffix = optarg; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case 'V': - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "mktemp", "GNU coreutils", Version, ("Jim Meyering"), - ("Eric Blake"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - n_args = argc - optind; - if (2 <= n_args) { - error(0, 0, dcgettext(((void *)0), "too many templates", 5)); - usage(1); - } - - if (n_args == 0) { - use_dest_dir = 1; - template = (char *)default_template; - } else { - template = argv[optind]; - } - - if (suffix) { - size_t len = strlen(template); - if (!len || template[len - 1] != 'X') { - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"with --suffix, template " - "%s must end in X\", 5), quote (template)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "with --suffix, template %s must end in X", 5), - quote(template)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "with --suffix, template %s must end in X", 5), - quote(template)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - suffix_len = strlen(suffix); - dest_name = xcharalloc(len + suffix_len + 1); - memcpy(dest_name, template, len); - memcpy(dest_name + len, suffix, suffix_len + 1); - template = dest_name; - suffix = dest_name + len; - } else { - template = xstrdup(template); - suffix = strrchr(template, 'X'); - if (!suffix) - suffix = strchr(template, '\0'); - else - suffix++; - suffix_len = strlen(suffix); - } - - if (suffix_len && last_component(suffix) != suffix) { - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid suffix %s, contains " - "directory separator\", 5), quote (suffix)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "invalid suffix %s, contains directory separator", - 5), - quote(suffix)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "invalid suffix %s, contains directory separator", - 5), - quote(suffix)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - x_count = count_consecutive_X_s(template, suffix - template); - if (x_count < 3) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"too few X's in " - "template %s\", 5), quote (template)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "too few X's in template %s", 5), - quote(template)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "too few X's in template %s", 5), - quote(template)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (use_dest_dir) { - if (deprecated_t_option) { - char *env = getenv("TMPDIR"); - if (env && *env) - dest_dir = env; - else if (dest_dir_arg && *dest_dir_arg) - dest_dir = dest_dir_arg; - else - dest_dir = "/tmp"; - - if (last_component(template) != template) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "template, %s, contains directory separator\", 5), " - "quote (template)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "invalid template, %s, contains directory separator", - 5), - quote(template)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "invalid template, %s, contains directory separator", - 5), - quote(template)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } else { - if (dest_dir_arg && *dest_dir_arg) - dest_dir = dest_dir_arg; - else { - char *env = getenv("TMPDIR"); - dest_dir = (env && *env ? env : "/tmp"); - } - if ((((template)[0]) == '/')) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "template, %s; with --tmpdir,\" \" it may not be " - "absolute\", 5), quote (template)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "invalid template, %s; with --tmpdir," - " it may not be absolute", - 5), - quote(template)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "invalid template, %s; with --tmpdir," - " it may not be absolute", - 5), - quote(template)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - dest_name = file_name_concat(dest_dir, template, ((void *)0)); - free(template); - template = dest_name; - } - - dest_name = xstrdup(template); - - if (create_directory) { - int err = mkdtemp_len(dest_name, suffix_len, x_count, dry_run); - if (err != 0) { - if (!suppress_file_err) - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to create directory via template %s", 5), - quote(template)); - status = 1; - } - } else { - int fd = mkstemp_len(dest_name, suffix_len, x_count, dry_run); - if (fd < 0 || (!dry_run && close(fd) != 0)) { - if (!suppress_file_err) - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "failed to create file via template %s", 5), - quote(template)); - status = 1; - } - } - - if (status == 0) { - puts(dest_name); - - if (!dry_run && ((stdout_closed = 1), close_stream(stdout) != 0)) { - int saved_errno = (*__errno_location()); - remove(dest_name); - if (!suppress_file_err) - error(0, saved_errno, dcgettext(((void *)0), "write error", 5)); - status = 1; - } - } - - exit(status); -} diff --git a/tests/source/coreutils/mv.c b/tests/source/coreutils/mv.c deleted file mode 100644 index 1345a72..0000000 --- a/tests/source/coreutils/mv.c +++ /dev/null @@ -1,8024 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); -struct selabel_handle; -extern struct selabel_handle *selabel_open(unsigned int backend, - const struct selinux_opt *opts, - unsigned nopts); -extern void selabel_close(struct selabel_handle *handle); -extern int selabel_lookup(struct selabel_handle *handle, char **con, - const char *key, int type); -extern int selabel_lookup_raw(struct selabel_handle *handle, char **con, - const char *key, int type); - -extern _Bool selabel_partial_match(struct selabel_handle *handle, - const char *key); - -extern _Bool selabel_get_digests_all_partial_matches( - struct selabel_handle *rec, const char *key, uint8_t **calculated_digest, - uint8_t **xattr_digest, size_t *digest_len); -extern _Bool selabel_hash_all_partial_matches(struct selabel_handle *rec, - const char *key, uint8_t *digest); - -extern int selabel_lookup_best_match(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_digest(struct selabel_handle *rec, unsigned char **digest, - size_t *digest_len, char ***specfiles, - size_t *num_specfiles); - -enum selabel_cmp_result { - SELABEL_SUBSET, - SELABEL_EQUAL, - SELABEL_SUPERSET, - SELABEL_INCOMPARABLE -}; -extern enum selabel_cmp_result selabel_cmp(struct selabel_handle *h1, - struct selabel_handle *h2); -extern void selabel_stats(struct selabel_handle *handle); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum backup_type { - - no_backups, - - simple_backups, - - numbered_existing_backups, - - numbered_backups -}; - -extern char const *simple_backup_suffix; - -void set_simple_backup_suffix(char const *); -char *backup_file_rename(int, char const *, enum backup_type) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); -char *find_backup_file_name(int, char const *, enum backup_type) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -enum backup_type get_version(char const *context, char const *arg); -enum backup_type xget_version(char const *context, char const *arg); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); - -struct selabel_handle; - -enum Sparse_type { - SPARSE_UNUSED, - - SPARSE_NEVER, - - SPARSE_AUTO, - - SPARSE_ALWAYS -}; - -enum Reflink_type { - - REFLINK_NEVER, - - REFLINK_AUTO, - - REFLINK_ALWAYS -}; - -enum Interactive { I_ALWAYS_YES = 1, I_ALWAYS_NO, I_ASK_USER, I_UNSPECIFIED }; - -enum Dereference_symlink { - DEREF_UNDEFINED = 1, - - DEREF_NEVER, - - DEREF_COMMAND_LINE_ARGUMENTS, - - DEREF_ALWAYS -}; -struct cp_options { - enum backup_type backup_type; - - enum Dereference_symlink dereference; - - enum Interactive interactive; - - enum Sparse_type sparse_mode; - - mode_t mode; - - _Bool copy_as_regular; - - _Bool unlink_dest_before_opening; - - _Bool unlink_dest_after_failed_open; - - _Bool hard_link; - - _Bool move_mode; - - _Bool install_mode; - - _Bool chown_privileges; - - _Bool owner_privileges; - - _Bool one_file_system; - - _Bool preserve_ownership; - - _Bool preserve_mode; - - _Bool preserve_timestamps; - - _Bool explicit_no_preserve_mode; - - struct selabel_handle *set_security_context; - - _Bool preserve_links; - - _Bool data_copy_required; - - _Bool require_preserve; - - _Bool preserve_security_context; - - _Bool require_preserve_context; - - _Bool preserve_xattr; - - _Bool require_preserve_xattr; - - _Bool reduce_diagnostics; - - _Bool recursive; - - _Bool set_mode; - - _Bool symbolic_link; - - _Bool update; - - _Bool verbose; - - _Bool stdin_tty; - - _Bool open_dangling_dest_symlink; - - _Bool last_file; - - int rename_errno; - - enum Reflink_type reflink_mode; - Hash_table *dest_info; - - Hash_table *src_info; -}; - -_Bool copy(char const *src_name, char const *dst_name, int dst_dirfd, - char const *dst_relname, int nonexistent_dst, - const struct cp_options *options, - - _Bool *copy_into_self, _Bool *rename_succeeded) - __attribute__((__nonnull__(1, 2, 4, 6, 7))); - -extern _Bool set_process_security_ctx(char const *src_name, - char const *dst_name, mode_t mode, - _Bool new_dst, const struct cp_options *x) - __attribute__((__nonnull__)); - -extern _Bool set_file_security_ctx(char const *dst_name, - - _Bool recurse, const struct cp_options *x) - __attribute__((__nonnull__)); - -void dest_info_init(struct cp_options *) __attribute__((__nonnull__)); -void dest_info_free(struct cp_options *) __attribute__((__nonnull__)); -void src_info_init(struct cp_options *) __attribute__((__nonnull__)); -void src_info_free(struct cp_options *) __attribute__((__nonnull__)); - -void cp_options_default(struct cp_options *) __attribute__((__nonnull__)); - -_Bool chown_failure_ok(struct cp_options const *) __attribute__((__nonnull__)) -__attribute__((__pure__)); -mode_t cached_umask(void); -void hash_init(void); -void forget_created(ino_t ino, dev_t dev); -char *remember_copied(char const *node, ino_t ino, dev_t dev) - __attribute__((__nonnull__)); -char *src_to_dest_lookup(ino_t ino, dev_t dev); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -enum rm_interactive { - - RMI_ALWAYS = 3, - RMI_SOMETIMES, - RMI_NEVER -}; - -struct rm_options { - - _Bool ignore_missing_files; - - enum rm_interactive interactive; - - _Bool one_file_system; - - _Bool recursive; - - _Bool remove_empty_directories; - - struct dev_ino *root_dev_ino; - - _Bool preserve_all_root; - - _Bool stdin_tty; - - _Bool verbose; - - _Bool require_restore_cwd; -}; - -enum RM_status { - - RM_OK = 2, - RM_USER_DECLINED, - RM_ERROR, - RM_NONEMPTY_DIR -}; -extern enum RM_status rm(char *const *file, struct rm_options const *x); - -extern int renameatu(int, char const *, int, char const *, unsigned int); - -struct dev_ino *get_root_dev_ino(struct dev_ino *root_d_i) - __attribute__((__nonnull__)); - -extern int target_directory_operand(char const *file, struct stat *st); - -inline __attribute__((__pure__)) _Bool - -target_dirfd_valid(int fd) { - return fd != -1 - (-100 == -1); -} - -inline int priv_set_remove_linkdir(void) { return -1; } - -inline int priv_set_restore_linkdir(void) { return -1; } - -enum { STRIP_TRAILING_SLASHES_OPTION = 0x7f + 1 }; - -static struct option const long_options[] = { - {"backup", 2, ((void *)0), 'b'}, - {"context", 0, ((void *)0), 'Z'}, - {"force", 0, ((void *)0), 'f'}, - {"interactive", 0, ((void *)0), 'i'}, - {"no-clobber", 0, ((void *)0), 'n'}, - {"no-target-directory", 0, ((void *)0), 'T'}, - {"strip-trailing-slashes", 0, ((void *)0), STRIP_TRAILING_SLASHES_OPTION}, - {"suffix", 1, ((void *)0), 'S'}, - {"target-directory", 1, ((void *)0), 't'}, - {"update", 0, ((void *)0), 'u'}, - {"verbose", 0, ((void *)0), 'v'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static void rm_option_init(struct rm_options *x) { - x->ignore_missing_files = 0; - x->remove_empty_directories = 1; - x->recursive = 1; - x->one_file_system = 0; - - x->interactive = RMI_NEVER; - x->stdin_tty = 0; - - x->verbose = 0; - - x->require_restore_cwd = 1; - - { - static struct dev_ino dev_ino_buf; - x->root_dev_ino = get_root_dev_ino(&dev_ino_buf); - if (x->root_dev_ino == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to get attributes of %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, \"/\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - x->preserve_all_root = 0; -} - -static void cp_option_init(struct cp_options *x) { - - _Bool selinux_enabled = (0 < is_selinux_enabled()); - - cp_options_default(x); - x->copy_as_regular = 0; - x->reflink_mode = REFLINK_AUTO; - x->dereference = DEREF_NEVER; - x->unlink_dest_before_opening = 0; - x->unlink_dest_after_failed_open = 0; - x->hard_link = 0; - x->interactive = I_UNSPECIFIED; - x->move_mode = 1; - x->install_mode = 0; - x->one_file_system = 0; - x->preserve_ownership = 1; - x->preserve_links = 1; - x->preserve_mode = 1; - x->preserve_timestamps = 1; - x->explicit_no_preserve_mode = 0; - x->preserve_security_context = selinux_enabled; - x->set_security_context = ((void *)0); - x->reduce_diagnostics = 0; - x->data_copy_required = 1; - x->require_preserve = 0; - x->require_preserve_context = 0; - x->preserve_xattr = 1; - x->require_preserve_xattr = 0; - x->recursive = 1; - x->sparse_mode = SPARSE_AUTO; - x->symbolic_link = 0; - x->set_mode = 0; - x->mode = 0; - x->stdin_tty = isatty(0); - - x->open_dangling_dest_symlink = 0; - x->update = 0; - x->verbose = 0; - x->dest_info = ((void *)0); - x->src_info = ((void *)0); -} - -static _Bool - -do_move(char const *source, char const *dest, int dest_dirfd, - char const *dest_relname, const struct cp_options *x) { - - _Bool copy_into_self; - - _Bool rename_succeeded; - - _Bool ok = copy(source, dest, dest_dirfd, dest_relname, 0, x, ©_into_self, - &rename_succeeded); - - if (ok) { - char const *dir_to_remove; - if (copy_into_self) { - dir_to_remove = ((void *)0); - ok = 0; - } else if (rename_succeeded) { - - dir_to_remove = ((void *)0); - } else { - dir_to_remove = source; - } - - if (dir_to_remove != ((void *)0)) { - struct rm_options rm_options; - enum RM_status status; - char const *dir[2]; - - rm_option_init(&rm_options); - rm_options.verbose = x->verbose; - dir[0] = dir_to_remove; - dir[1] = ((void *)0); - - status = rm((void *)dir, &rm_options); - - ((void)sizeof((((status) == RM_OK || (status) == RM_USER_DECLINED || - (status) == RM_ERROR)) - ? 1 - : 0), - __extension__({ - if (((status) == RM_OK || (status) == RM_USER_DECLINED || - (status) == RM_ERROR)) - ; - else - __assert_fail("VALID_STATUS (status)", "src/mv.c", 225, - __extension__ __PRETTY_FUNCTION__); - })); - if (status == RM_ERROR) - ok = 0; - } - } - - return ok; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [-T] SOURCE DEST\n or: %s " - "[OPTION]... SOURCE... DIRECTORY\n or: %s [OPTION]... " - "-t DIRECTORY SOURCE...\n", - 5) - - , - program_name, program_name, program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " --backup[=CONTROL] make a backup of each existing " - "destination file\n -b like --backup " - "but does not accept an argument\n -f, --force " - "do not prompt before overwriting\n -i, --interactive " - "prompt before overwrite\n -n, --no-clobber do not " - "overwrite an existing file\nIf you specify more than one of -i, " - "-f, -n, only the final one takes effect.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --strip-trailing-slashes remove any trailing slashes from " - "each SOURCE\n argument\n -S, " - "--suffix=SUFFIX override the usual backup suffix\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -t, --target-directory=DIRECTORY move all SOURCE arguments " - "into DIRECTORY\n -T, --no-target-directory treat DEST as a " - "normal file\n -u, --update move only when the " - "SOURCE file is newer\n than the " - "destination file or when the\n " - "destination file is missing\n -v, --verbose " - "explain what is being done\n -Z, --context set " - "SELinux security context of destination\n " - " file to default type\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_backup_suffix_note(); - emit_ancillary_info("mv"); - } - exit(status); -} - -int main(int argc, char **argv) { - int c; - - _Bool ok; - - _Bool make_backups = 0; - char const *backup_suffix = ((void *)0); - char *version_control_string = ((void *)0); - struct cp_options x; - - _Bool remove_trailing_slashes = 0; - char const *target_directory = ((void *)0); - - _Bool no_target_directory = 0; - int n_files; - char **file; - - _Bool selinux_enabled = (0 < is_selinux_enabled()); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdin); - - cp_option_init(&x); - - priv_set_remove_linkdir(); - - while ((c = getopt_long(argc, argv, "bfint:uvS:TZ", long_options, - ((void *)0))) != -1) { - switch (c) { - case 'b': - make_backups = 1; - if (optarg) - version_control_string = optarg; - break; - case 'f': - x.interactive = I_ALWAYS_YES; - break; - case 'i': - x.interactive = I_ASK_USER; - break; - case 'n': - x.interactive = I_ALWAYS_NO; - break; - case STRIP_TRAILING_SLASHES_OPTION: - remove_trailing_slashes = 1; - break; - case 't': - if (target_directory) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "target directories specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "multiple target directories specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "multiple target directories specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - target_directory = optarg; - break; - case 'T': - no_target_directory = 1; - break; - case 'u': - x.update = 1; - break; - case 'v': - x.verbose = 1; - break; - case 'S': - make_backups = 1; - backup_suffix = optarg; - break; - case 'Z': - - if (selinux_enabled) { - x.preserve_security_context = 0; - x.set_security_context = selabel_open(0, ((void *)0), 0); - if (!x.set_security_context) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: ignoring --context", 5)); - } - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "mv", "GNU coreutils", Version, ("Mike Parker"), - ("David MacKenzie"), ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - n_files = argc - optind; - file = argv + optind; - - if (n_files <= !target_directory) { - if (n_files <= 0) - error(0, 0, dcgettext(((void *)0), "missing file operand", 5)); - else - error(0, 0, - dcgettext(((void *)0), "missing destination file operand after %s", - 5), - quotearg_style(shell_escape_always_quoting_style, file[0])); - usage(1); - } - - struct stat sb; - sb.st_mode = 0; - int target_dirfd = -100; - if (no_target_directory) { - if (target_directory) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot " - "combine --target-directory (-t) \" \"and " - "--no-target-directory (-T)\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot combine --target-directory (-t) " - "and --no-target-directory (-T)", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot combine --target-directory (-t) " - "and --no-target-directory (-T)", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - if (2 < n_files) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quotearg_style(shell_escape_always_quoting_style, file[2])); - usage(1); - } - } else if (target_directory) { - target_dirfd = target_directory_operand(target_directory, &sb); - if (!target_dirfd_valid(target_dirfd)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"target directory %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "target_directory)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "target directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, - target_directory)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "target directory %s", 5), - quotearg_style(shell_escape_always_quoting_style, - target_directory)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else { - char const *lastfile = file[n_files - 1]; - if (n_files == 2) - x.rename_errno = (renameatu(-100, file[0], -100, lastfile, - - (1 << 0)) - ? (*__errno_location()) - : 0); - if (x.rename_errno != 0) { - int fd = target_directory_operand(lastfile, &sb); - if (target_dirfd_valid(fd)) { - x.rename_errno = -1; - target_dirfd = fd; - target_directory = lastfile; - n_files--; - } else { - int err = (*__errno_location()); - if (2 < n_files || (O_PATHSEARCH == 00 && err == 13 - - && (sb.st_mode != 0 || stat(lastfile, &sb) == 0) && - ((((sb.st_mode)) & 0170000) == (0040000)))) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, err, dcgettext (((void *)0), \"target %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "lastfile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, err, dcgettext(((void *)0), "target %s", 5), - quotearg_style(shell_escape_always_quoting_style, - lastfile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, err, dcgettext(((void *)0), "target %s", 5), - quotearg_style(shell_escape_always_quoting_style, - lastfile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } - } - - if (remove_trailing_slashes) - for (int i = 0; i < n_files; i++) - strip_trailing_slashes(file[i]); - - if (x.interactive == I_ALWAYS_NO) - x.update = 0; - - if (make_backups && x.interactive == I_ALWAYS_NO) { - error(0, 0, - - dcgettext(((void *)0), - "options --backup and --no-clobber are mutually exclusive", - 5)); - usage(1); - } - - x.backup_type = - (make_backups ? xget_version(dcgettext(((void *)0), "backup type", 5), - version_control_string) - : no_backups); - set_simple_backup_suffix(backup_suffix); - - hash_init(); - - if (target_directory) { - - if (2 <= n_files) - dest_info_init(&x); - - ok = 1; - for (int i = 0; i < n_files; ++i) { - x.last_file = i + 1 == n_files; - char const *source = file[i]; - char const *source_basename = last_component(source); - char *dest_relname; - char *dest = - file_name_concat(target_directory, source_basename, &dest_relname); - strip_trailing_slashes(dest_relname); - ok &= do_move(source, dest, target_dirfd, dest_relname, &x); - free(dest); - } - } else { - x.last_file = 1; - ok = do_move(file[0], file[1], -100, file[1], &x); - } - - exit(ok ? 0 : 1); -} diff --git a/tests/source/coreutils/nice.c b/tests/source/coreutils/nice.c deleted file mode 100644 index c7d1223..0000000 --- a/tests/source/coreutils/nice.c +++ /dev/null @@ -1,7218 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum __rlimit_resource { - - RLIMIT_CPU = 0, - - RLIMIT_FSIZE = 1, - - RLIMIT_DATA = 2, - - RLIMIT_STACK = 3, - - RLIMIT_CORE = 4, - - __RLIMIT_RSS = 5, - - RLIMIT_NOFILE = 7, - __RLIMIT_OFILE = RLIMIT_NOFILE, - - RLIMIT_AS = 9, - - __RLIMIT_NPROC = 6, - - __RLIMIT_MEMLOCK = 8, - - __RLIMIT_LOCKS = 10, - - __RLIMIT_SIGPENDING = 11, - - __RLIMIT_MSGQUEUE = 12, - - __RLIMIT_NICE = 13, - - __RLIMIT_RTPRIO = 14, - - __RLIMIT_RTTIME = 15, - - __RLIMIT_NLIMITS = 16, - __RLIM_NLIMITS = __RLIMIT_NLIMITS - -}; -typedef __rlim_t rlim_t; - -typedef __rlim64_t rlim64_t; - -struct rlimit { - - rlim_t rlim_cur; - - rlim_t rlim_max; -}; - -struct rlimit64 { - - rlim64_t rlim_cur; - - rlim64_t rlim_max; -}; - -enum __rusage_who { - - RUSAGE_SELF = 0, - - RUSAGE_CHILDREN = -1 - - , - - RUSAGE_THREAD = 1 - -}; - -struct rusage { - - struct timeval ru_utime; - - struct timeval ru_stime; - - __extension__ union { - long int ru_maxrss; - __syscall_slong_t __ru_maxrss_word; - }; - - __extension__ union { - long int ru_ixrss; - __syscall_slong_t __ru_ixrss_word; - }; - - __extension__ union { - long int ru_idrss; - __syscall_slong_t __ru_idrss_word; - }; - - __extension__ union { - long int ru_isrss; - __syscall_slong_t __ru_isrss_word; - }; - - __extension__ union { - long int ru_minflt; - __syscall_slong_t __ru_minflt_word; - }; - - __extension__ union { - long int ru_majflt; - __syscall_slong_t __ru_majflt_word; - }; - - __extension__ union { - long int ru_nswap; - __syscall_slong_t __ru_nswap_word; - }; - - __extension__ union { - long int ru_inblock; - __syscall_slong_t __ru_inblock_word; - }; - - __extension__ union { - long int ru_oublock; - __syscall_slong_t __ru_oublock_word; - }; - - __extension__ union { - long int ru_msgsnd; - __syscall_slong_t __ru_msgsnd_word; - }; - - __extension__ union { - long int ru_msgrcv; - __syscall_slong_t __ru_msgrcv_word; - }; - - __extension__ union { - long int ru_nsignals; - __syscall_slong_t __ru_nsignals_word; - }; - - __extension__ union { - long int ru_nvcsw; - __syscall_slong_t __ru_nvcsw_word; - }; - - __extension__ union { - long int ru_nivcsw; - __syscall_slong_t __ru_nivcsw_word; - }; -}; - -enum __priority_which { - PRIO_PROCESS = 0, - - PRIO_PGRP = 1, - - PRIO_USER = 2 - -}; - -extern int prlimit(__pid_t __pid, enum __rlimit_resource __resource, - const struct rlimit *__new_limit, struct rlimit *__old_limit) - __attribute__((__nothrow__, __leaf__)); -extern int prlimit64(__pid_t __pid, enum __rlimit_resource __resource, - const struct rlimit64 *__new_limit, - struct rlimit64 *__old_limit) - __attribute__((__nothrow__, __leaf__)); - -typedef enum __rlimit_resource __rlimit_resource_t; -typedef enum __rusage_who __rusage_who_t; -typedef enum __priority_which __priority_which_t; -extern int getrlimit(__rlimit_resource_t __resource, struct rlimit *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int getrlimit64(__rlimit_resource_t __resource, - struct rlimit64 *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int setrlimit(__rlimit_resource_t __resource, - const struct rlimit *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int setrlimit64(__rlimit_resource_t __resource, - const struct rlimit64 *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int getrusage(__rusage_who_t __who, struct rusage *__usage) - __attribute__((__nothrow__, __leaf__)); -extern int getpriority(__priority_which_t __which, id_t __who) - __attribute__((__nothrow__, __leaf__)); - -extern int setpriority(__priority_which_t __which, id_t __who, int __prio) - __attribute__((__nothrow__, __leaf__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -static struct option const longopts[] = { - {"adjustment", 1, ((void *)0), 'n'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION] [COMMAND [ARG]...]\n", 5), - program_name); - printf( - dcgettext(((void *)0), - "Run COMMAND with an adjusted niceness, which affects " - "process scheduling.\nWith no COMMAND, print the current " - "niceness. Niceness values range from\n%d (most favorable " - "to the process) to %d (least favorable to the process).\n", - 5) - - , - -20, 20 - 1); - - emit_mandatory_arg_note(); - - fputs_unlocked(dcgettext(((void *)0), - " -n, --adjustment=N add integer N to the " - "niceness (default 10)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your " - "shell's documentation\n" - "for details about the options it supports.\n", - 5), - "nice"); - emit_ancillary_info("nice"); - } - exit(status); -} - -static _Bool - -perm_related_errno(int err) { - return err == 13 || err == 1; -} - -int main(int argc, char **argv) { - int current_niceness; - int adjustment = 10; - char const *adjustment_given = ((void *)0); - - _Bool ok; - int i; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(EXIT_CANCELED); - atexit(close_stdout); - - for (i = 1; i < argc;) { - char const *s = argv[i]; - - if (s[0] == '-' && - ((unsigned int)(s[1 + (s[1] == '-' || s[1] == '+')]) - '0' <= 9)) { - adjustment_given = s + 1; - ++i; - } else { - int c; - int fake_argc = argc - (i - 1); - char **fake_argv = argv + (i - 1); - - fake_argv[0] = argv[0]; - - optind = 0; - - c = getopt_long(fake_argc, fake_argv, "+n:", longopts, ((void *)0)); - i += optind - 1; - - switch (c) { - case 'n': - adjustment_given = optarg; - break; - - case -1: - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "nice", "GNU coreutils", Version, - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(EXIT_CANCELED); - break; - } - - if (c == -1) - break; - } - } - - if (adjustment_given) { - - enum { MIN_ADJUSTMENT = 1 - 2 * 20, MAX_ADJUSTMENT = 2 * 20 - 1 }; - long int tmp; - if (LONGINT_OVERFLOW < xstrtol(adjustment_given, ((void *)0), 10, &tmp, "")) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, 0, dcgettext (((void *)0), \"invalid " - "adjustment %s\", 5), quote (adjustment_given)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, 0, - dcgettext(((void *)0), "invalid adjustment %s", 5), - quote(adjustment_given)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, 0, - dcgettext(((void *)0), "invalid adjustment %s", 5), - quote(adjustment_given)), - ((0) ? (void)0 : __builtin_unreachable())))); - adjustment = - (((MIN_ADJUSTMENT) > - ((((tmp) < (MAX_ADJUSTMENT)) ? (tmp) : (MAX_ADJUSTMENT)))) - ? (MIN_ADJUSTMENT) - : ((((tmp) < (MAX_ADJUSTMENT)) ? (tmp) : (MAX_ADJUSTMENT)))); - } - - if (i == argc) { - if (adjustment_given) { - error(0, 0, - dcgettext(((void *)0), "a command must be given with an adjustment", - 5)); - usage(EXIT_CANCELED); - } - - (*__errno_location()) = 0; - current_niceness = getpriority(PRIO_PROCESS, 0); - if (current_niceness == -1 && (*__errno_location()) != 0) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot get niceness\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot get niceness", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot get niceness", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - printf("%d\n", current_niceness); - return 0; - } - - (*__errno_location()) = 0; - - current_niceness = getpriority(PRIO_PROCESS, 0); - if (current_niceness == -1 && (*__errno_location()) != 0) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot get niceness\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot get niceness", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "cannot get niceness", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - ok = (setpriority(PRIO_PROCESS, 0, current_niceness + adjustment) == 0); - - if (!ok) { - error(perm_related_errno((*__errno_location())) ? 0 : EXIT_CANCELED, - (*__errno_location()), - dcgettext(((void *)0), "cannot set niceness", 5)); - - if (ferror_unlocked(stderr)) - return EXIT_CANCELED; - } - - execvp(argv[i], &argv[i]); - - int exit_status = - (*__errno_location()) == 2 ? EXIT_ENOENT : EXIT_CANNOT_INVOKE; - error(0, (*__errno_location()), "%s", quote(argv[i])); - return exit_status; -} diff --git a/tests/source/coreutils/nl.c b/tests/source/coreutils/nl.c deleted file mode 100644 index 5a34efe..0000000 --- a/tests/source/coreutils/nl.c +++ /dev/null @@ -1,7601 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -typedef unsigned int __re_size_t; -typedef unsigned long int __re_long_size_t; - -typedef long int s_reg_t; -typedef unsigned long int active_reg_t; - -typedef unsigned long int reg_syntax_t; -extern reg_syntax_t re_syntax_options; -typedef enum { - _REG_ENOSYS = -1, - _REG_NOERROR = 0, - _REG_NOMATCH, - - _REG_BADPAT, - _REG_ECOLLATE, - _REG_ECTYPE, - _REG_EESCAPE, - _REG_ESUBREG, - _REG_EBRACK, - _REG_EPAREN, - _REG_EBRACE, - _REG_BADBR, - _REG_ERANGE, - _REG_ESPACE, - _REG_BADRPT, - - _REG_EEND, - _REG_ESIZE, - _REG_ERPAREN -} reg_errcode_t; -struct re_pattern_buffer { - - struct re_dfa_t *buffer; - - __re_long_size_t allocated; - - __re_long_size_t used; - - reg_syntax_t syntax; - - char *fastmap; - - unsigned char *translate; - - size_t re_nsub; - - unsigned can_be_null : 1; - unsigned regs_allocated : 2; - - unsigned fastmap_accurate : 1; - - unsigned no_sub : 1; - - unsigned not_bol : 1; - - unsigned not_eol : 1; - - unsigned newline_anchor : 1; -}; - -typedef struct re_pattern_buffer regex_t; -typedef int regoff_t; - -struct re_registers { - __re_size_t num_regs; - regoff_t *start; - regoff_t *end; -}; -typedef struct { - regoff_t rm_so; - regoff_t rm_eo; -} regmatch_t; -extern reg_syntax_t re_set_syntax(reg_syntax_t __syntax); -extern const char *re_compile_pattern(const char *__pattern, size_t __length, - struct re_pattern_buffer *__buffer) - - __attribute__((__access__(__read_only__, 1, 2))); - -extern int re_compile_fastmap(struct re_pattern_buffer *__buffer); - -extern regoff_t re_search(struct re_pattern_buffer *__buffer, - const char *__String, regoff_t __length, - regoff_t __start, regoff_t __range, - struct re_registers *__regs) - - __attribute__((__access__(__read_only__, 2, 3))); - -extern regoff_t re_search_2(struct re_pattern_buffer *__buffer, - const char *__string1, regoff_t __length1, - const char *__string2, regoff_t __length2, - regoff_t __start, regoff_t __range, - struct re_registers *__regs, regoff_t __stop) - - __attribute__((__access__(__read_only__, 2, 3))) - __attribute__((__access__(__read_only__, 4, 5))); - -extern regoff_t re_match(struct re_pattern_buffer *__buffer, - const char *__String, regoff_t __length, - regoff_t __start, struct re_registers *__regs) - - __attribute__((__access__(__read_only__, 2, 3))); - -extern regoff_t -re_match_2(struct re_pattern_buffer *__buffer, const char *__string1, - regoff_t __length1, const char *__string2, regoff_t __length2, - regoff_t __start, struct re_registers *__regs, regoff_t __stop) - - __attribute__((__access__(__read_only__, 2, 3))) - __attribute__((__access__(__read_only__, 4, 5))); -extern void re_set_registers(struct re_pattern_buffer *__buffer, - struct re_registers *__regs, - __re_size_t __num_regs, regoff_t *__starts, - regoff_t *__ends); -extern int regcomp(regex_t *__restrict __preg, const char *__restrict __pattern, - int __cflags); - -extern int regexec(const regex_t *__restrict __preg, - const char *__restrict __String, size_t __nmatch, - regmatch_t __pmatch[__restrict - - __nmatch], - int __eflags); - -extern size_t regerror(int __errcode, const regex_t *__restrict __preg, - char *__restrict __errbuf, size_t __errbuf_size) - - __attribute__((__access__(__write_only__, 3, 4))); - -extern void regfree(regex_t *__preg); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -struct linebuffer { - idx_t size; - idx_t length; - char *buffer; -}; - -void initbuffer(struct linebuffer *linebuffer); - -struct linebuffer *readlinebuffer_delim(struct linebuffer *linebuffer, - FILE *stream, char delimiter); - -struct linebuffer *readlinebuffer(struct linebuffer *linebuffer, FILE *stream); - -void freebuffer(struct linebuffer *); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -static char const FORMAT_RIGHT_NOLZ[] = "%*" - "l" - "d" - "%s"; - -static char const FORMAT_RIGHT_LZ[] = "%0*" - "l" - "d" - "%s"; - -static char const FORMAT_LEFT[] = "%-*" - "l" - "d" - "%s"; - -static char DEFAULT_SECTION_DELIMITERS[] = "\\:"; - -enum section { Header, Body, Footer, Text }; - -static char const *body_type = "t"; - -static char const *header_type = "n"; - -static char const *footer_type = "n"; - -static char const *current_type; - -static struct re_pattern_buffer body_regex; - -static struct re_pattern_buffer header_regex; - -static struct re_pattern_buffer footer_regex; - -static char body_fastmap[(0x7f * 2 + 1) + 1]; -static char header_fastmap[(0x7f * 2 + 1) + 1]; -static char footer_fastmap[(0x7f * 2 + 1) + 1]; - -static struct re_pattern_buffer *current_regex = ((void *)0); - -static char const *separator_str = "\t"; - -static char *section_del = DEFAULT_SECTION_DELIMITERS; - -static char *header_del = ((void *)0); - -static size_t header_del_len; - -static char *body_del = ((void *)0); - -static size_t body_del_len; - -static char *footer_del = ((void *)0); - -static size_t footer_del_len; - -static struct linebuffer line_buf; - -static char *print_no_line_fmt = ((void *)0); - -static intmax_t starting_line_number = 1; - -static intmax_t page_incr = 1; - -static _Bool reset_numbers = 1; - -static intmax_t blank_join = 1; - -static int lineno_width = 6; - -static char const *lineno_format = FORMAT_RIGHT_NOLZ; - -static intmax_t line_no; - -static _Bool line_no_overflow; - -static _Bool have_read_stdin; - -static struct option const longopts[] = { - {"header-numbering", 1, ((void *)0), 'h'}, - {"body-numbering", 1, ((void *)0), 'b'}, - {"footer-numbering", 1, ((void *)0), 'f'}, - {"starting-line-number", 1, ((void *)0), 'v'}, - {"line-increment", 1, ((void *)0), 'i'}, - {"no-renumber", 0, ((void *)0), 'p'}, - {"join-blank-lines", 1, ((void *)0), 'l'}, - {"number-separator", 1, ((void *)0), 's'}, - {"number-width", 1, ((void *)0), 'w'}, - {"number-format", 1, ((void *)0), 'n'}, - {"section-delimiter", 1, ((void *)0), 'd'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Write each FILE to standard output, with line numbers added.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -b, --body-numbering=STYLE use STYLE for numbering " - "body lines\n -d, --section-delimiter=CC use CC for " - "logical page delimiters\n -f, --footer-numbering=STYLE " - "use STYLE for numbering footer lines\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -h, --header-numbering=STYLE use STYLE for numbering header " - "lines\n -i, --line-increment=NUMBER line number increment at " - "each line\n -l, --join-blank-lines=NUMBER group of NUMBER " - "empty lines counted as one\n -n, --number-format=FORMAT " - "insert line numbers according to FORMAT\n -p, --no-renumber " - " do not reset line numbers for each section\n -s, " - "--number-separator=STRING add STRING after (possible) line " - "number\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -v, --starting-line-number=NUMBER first line number for " - "each section\n -w, --number-width=NUMBER use NUMBER " - "columns for line numbers\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nDefault options are: -bt -d'\\:' -fn -hn -i1 -l1 -n'rn' " - "-s -v1 -w6\n\nCC are two delimiter characters used to " - "construct logical page delimiters;\na missing second " - "character implies ':'. As a GNU extension one can " - "specify\nmore than two characters, and also specifying the " - "empty string (-d '')\ndisables section matching.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nSTYLE is one of:\n\n a number all lines\n t " - "number only nonempty lines\n n number no lines\n " - "pBRE number only lines that contain a match for the basic " - "regular\n expression, BRE\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nFORMAT is one of:\n\n ln left justified, no leading " - "zeros\n rn right justified, no leading zeros\n rz " - "right justified, leading zeros\n\n", - 5), - stdout) - - ; - emit_ancillary_info("nl"); - } - exit(status); -} - -static _Bool - -build_type_arg(char const **typep, struct re_pattern_buffer *regexp, - char *fastmap) { - char const *errmsg; - - _Bool rval = 1; - - switch (*optarg) { - case 'a': - case 't': - case 'n': - *typep = optarg; - break; - case 'p': - *typep = optarg++; - regexp->buffer = ((void *)0); - regexp->allocated = 0; - regexp->fastmap = fastmap; - regexp->translate = ((void *)0); - re_syntax_options = - ((((((unsigned long int)1) << 1) << 1) | - ((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) << 1) | - (((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) << 1) - << 1) | - (((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) | - ((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1)) | - (((unsigned long int)1) << 1) | - ((((((((((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1)) & - ~((((((((((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) & - ~((((((((((((((((((unsigned long int)1) << 1) << 1) << 1) << 1) << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1) - << 1); - errmsg = re_compile_pattern(optarg, strlen(optarg), regexp); - if (errmsg) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, \"%s\", (errmsg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, "%s", (errmsg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, "%s", (errmsg)), - ((0) ? (void)0 : __builtin_unreachable())))); - break; - default: - rval = 0; - break; - } - return rval; -} - -static void print_lineno(void) { - if (line_no_overflow) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"line number " - "overflow\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "line number overflow", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "line number overflow", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - printf(lineno_format, lineno_width, line_no, separator_str); - - if (__builtin_add_overflow(line_no, page_incr, &line_no)) - line_no_overflow = 1; -} - -static void reset_lineno(void) { - if (reset_numbers) { - line_no = starting_line_number; - line_no_overflow = 0; - } -} - -static void proc_header(void) { - current_type = header_type; - current_regex = &header_regex; - reset_lineno(); - putchar_unlocked('\n'); -} - -static void proc_body(void) { - current_type = body_type; - current_regex = &body_regex; - reset_lineno(); - putchar_unlocked('\n'); -} - -static void proc_footer(void) { - current_type = footer_type; - current_regex = &footer_regex; - reset_lineno(); - putchar_unlocked('\n'); -} - -static void proc_text(void) { - static intmax_t blank_lines = 0; - - switch (*current_type) { - case 'a': - if (blank_join > 1) { - if (1 < line_buf.length || ++blank_lines == blank_join) { - print_lineno(); - blank_lines = 0; - } else - fputs_unlocked(print_no_line_fmt, stdout); - } else - print_lineno(); - break; - case 't': - if (1 < line_buf.length) - print_lineno(); - else - fputs_unlocked(print_no_line_fmt, stdout); - break; - case 'n': - fputs_unlocked(print_no_line_fmt, stdout); - break; - case 'p': - switch (re_search(current_regex, line_buf.buffer, line_buf.length - 1, 0, - line_buf.length - 1, ((void *)0))) { - case -2: - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"error in regular expression search\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "error in regular expression search", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "error in regular expression search", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - case -1: - fputs_unlocked(print_no_line_fmt, stdout); - break; - - default: - print_lineno(); - break; - } - } - fwrite_unlocked(line_buf.buffer, sizeof(char), line_buf.length, stdout); -} - -static enum section check_section(void) { - size_t len = line_buf.length - 1; - - if (len < 2 || footer_del_len < 2 || memcmp(line_buf.buffer, section_del, 2)) - return Text; - if (len == header_del_len && - !memcmp(line_buf.buffer, header_del, header_del_len)) - return Header; - if (len == body_del_len && !memcmp(line_buf.buffer, body_del, body_del_len)) - return Body; - if (len == footer_del_len && - !memcmp(line_buf.buffer, footer_del, footer_del_len)) - return Footer; - return Text; -} - -static void process_file(FILE *fp) { - while (readlinebuffer(&line_buf, fp)) { - switch (check_section()) { - case Header: - proc_header(); - break; - case Body: - proc_body(); - break; - case Footer: - proc_footer(); - break; - case Text: - proc_text(); - break; - } - } -} - -static _Bool - -nl_file(char const *file) { - FILE *stream; - - if ((strcmp(file, "-") == 0)) { - have_read_stdin = 1; - stream = stdin; - } else { - stream = fopen(file, "r"); - if (stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } - } - - fadvise(stream, FADVISE_SEQUENTIAL); - - process_file(stream); - - int err = (*__errno_location()); - if (!ferror_unlocked(stream)) - err = 0; - if ((strcmp(file, "-") == 0)) - clearerr_unlocked(stream); - else if (rpl_fclose(stream) != 0 && !err) - err = (*__errno_location()); - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } - return 1; -} - -int main(int argc, char **argv) { - int c; - size_t len; - - _Bool ok = 1; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - have_read_stdin = 0; - - while ((c = getopt_long(argc, argv, "h:b:f:v:i:pl:s:w:n:d:", longopts, - - ((void *)0))) != -1) { - switch (c) { - case 'h': - if (!build_type_arg(&header_type, &header_regex, header_fastmap)) { - error(0, 0, - dcgettext(((void *)0), "invalid header numbering style: %s", 5), - quote(optarg)); - ok = 0; - } - break; - case 'b': - if (!build_type_arg(&body_type, &body_regex, body_fastmap)) { - error(0, 0, - dcgettext(((void *)0), "invalid body numbering style: %s", 5), - quote(optarg)); - ok = 0; - } - break; - case 'f': - if (!build_type_arg(&footer_type, &footer_regex, footer_fastmap)) { - error(0, 0, - dcgettext(((void *)0), "invalid footer numbering style: %s", 5), - quote(optarg)); - ok = 0; - } - break; - case 'v': - starting_line_number = xdectoimax( - optarg, (-9223372036854775807L - 1), (9223372036854775807L), "", - - dcgettext(((void *)0), "invalid starting line number", 5), 0); - break; - case 'i': - page_incr = xdectoimax( - optarg, (-9223372036854775807L - 1), (9223372036854775807L), "", - - dcgettext(((void *)0), "invalid line number increment", 5), 0); - break; - case 'p': - reset_numbers = 0; - break; - case 'l': - blank_join = xdectoimax( - optarg, 1, (9223372036854775807L), "", - - dcgettext(((void *)0), "invalid line number of blank lines", 5), 0); - break; - case 's': - separator_str = optarg; - break; - case 'w': - lineno_width = xdectoimax( - optarg, 1, 0x7fffffff, "", - - dcgettext(((void *)0), "invalid line number field width", 5), 0); - break; - case 'n': - if ((strcmp(optarg, "ln") == 0)) - lineno_format = FORMAT_LEFT; - else if ((strcmp(optarg, "rn") == 0)) - lineno_format = FORMAT_RIGHT_NOLZ; - else if ((strcmp(optarg, "rz") == 0)) - lineno_format = FORMAT_RIGHT_LZ; - else { - error(0, 0, - dcgettext(((void *)0), "invalid line numbering format: %s", 5), - quote(optarg)); - ok = 0; - } - break; - case 'd': - len = strlen(optarg); - if (len == 1 || len == 2) { - char *p = section_del; - while (*optarg) - *p++ = *optarg++; - } else - section_del = optarg; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "nl", "GNU coreutils", Version, ("Scott Bartram"), - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - default: - ok = 0; - break; - } - } - - if (!ok) - usage(1); - - len = strlen(section_del); - - header_del_len = len * 3; - header_del = xmalloc(header_del_len + 1); - stpcpy(stpcpy(stpcpy(header_del, section_del), section_del), section_del); - - body_del_len = len * 2; - body_del = header_del + len; - - footer_del_len = len; - footer_del = body_del + len; - - initbuffer(&line_buf); - - len = strlen(separator_str); - print_no_line_fmt = xmalloc(lineno_width + len + 1); - memset(print_no_line_fmt, ' ', lineno_width + len); - print_no_line_fmt[lineno_width + len] = '\0'; - - line_no = starting_line_number; - current_type = body_type; - current_regex = &body_regex; - - if (optind == argc) - ok = nl_file("-"); - else - for (; optind < argc; optind++) - ok &= nl_file(argv[optind]); - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"-\"), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/nohup.c b/tests/source/coreutils/nohup.c deleted file mode 100644 index 8833d1b..0000000 --- a/tests/source/coreutils/nohup.c +++ /dev/null @@ -1,6969 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -int fd_reopen(int, char const *, int, mode_t) __attribute__((__nonnull__)); -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); -int dup_safer(int); -int fd_safer(int); -int pipe_safer(int[2]); - -int dup_safer_flag(int, int); -int fd_safer_flag(int, int); - -enum { - - POSIX_NOHUP_FAILURE = 127 -}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s COMMAND [ARG]...\n or: %s OPTION\n", 5) - - , - program_name, program_name); - - fputs_unlocked( - dcgettext(((void *)0), "Run COMMAND, ignoring hangup signals.\n\n", 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf( - dcgettext( - ((void *)0), - "\nIf standard input is a terminal, redirect it from an unreadable " - "file.\nIf standard output is a terminal, append output to " - "'nohup.out' if possible,\n'$HOME/nohup.out' otherwise.\nIf " - "standard error is a terminal, redirect it to standard output.\nTo " - "save output to FILE, use '%s COMMAND > FILE'.\n", - 5) - - , - program_name); - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your " - "shell's documentation\n" - "for details about the options it supports.\n", - 5), - "nohup"); - emit_ancillary_info("nohup"); - } - exit(status); -} - -int main(int argc, char **argv) { - int out_fd = 1; - int saved_stderr_fd = 2; - - _Bool ignoring_input; - - _Bool redirecting_stdout; - - _Bool stdout_is_closed; - - _Bool redirecting_stderr; - int exit_internal_failure; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - exit_internal_failure = - (getenv("POSIXLY_CORRECT") ? POSIX_NOHUP_FAILURE : EXIT_CANCELED); - initialize_exit_failure(exit_internal_failure); - atexit(close_stdout); - - parse_gnu_standard_options_only(argc, argv, "nohup", "GNU coreutils", Version, - 0, usage, ("Jim Meyering"), - (char const *)((void *)0)); - - if (argc <= optind) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(exit_internal_failure); - } - - ignoring_input = isatty(0); - redirecting_stdout = isatty(1); - stdout_is_closed = (!redirecting_stdout && (*__errno_location()) == 9); - redirecting_stderr = isatty(2); - - if (ignoring_input) { - if (fd_reopen(0, "/dev/null", 01, 0) < 0) - error(exit_internal_failure, (*__errno_location()), - - dcgettext(((void *)0), "failed to render standard input unusable", - 5)); - if (!redirecting_stdout && !redirecting_stderr) - error(0, 0, dcgettext(((void *)0), "ignoring input", 5)); - } - - if (redirecting_stdout || (redirecting_stderr && stdout_is_closed)) { - char *in_home = ((void *)0); - char const *file = "nohup.out"; - int flags = 0100 | 01 | 02000; - mode_t mode = 0400 | 0200; - mode_t umask_value = umask(~mode); - out_fd = (redirecting_stdout ? fd_reopen(1, file, flags, mode) - : open(file, flags, mode)); - - if (out_fd < 0) { - int saved_errno = (*__errno_location()); - char const *home = getenv("HOME"); - if (home) { - in_home = file_name_concat(home, file, ((void *)0)); - out_fd = (redirecting_stdout ? fd_reopen(1, in_home, flags, mode) - : open(in_home, flags, mode)); - } - if (out_fd < 0) { - int saved_errno2 = (*__errno_location()); - error(0, saved_errno, dcgettext(((void *)0), "failed to open %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - if (in_home) - error(0, saved_errno2, dcgettext(((void *)0), "failed to open %s", 5), - quotearg_style(shell_escape_always_quoting_style, in_home)); - return exit_internal_failure; - } - file = in_home; - } - - umask(umask_value); - error(0, 0, - - dcgettext(((void *)0), - ignoring_input ? "ignoring input and appending output to %s" - : "appending output to %s", - 5) - - , - quotearg_style(shell_escape_always_quoting_style, file)); - free(in_home); - } - - if (redirecting_stderr) { - - saved_stderr_fd = rpl_fcntl(2, 1030, - - 2 + 1); - - if (!redirecting_stdout) - error(0, 0, - - dcgettext(((void *)0), - ignoring_input - ? "ignoring input and redirecting stderr to stdout" - : "redirecting stderr to stdout", - 5) - - ); - - if (dup2(out_fd, 2) < 0) - error(exit_internal_failure, (*__errno_location()), - - dcgettext(((void *)0), "failed to redirect standard error", 5)); - - if (stdout_is_closed) - close(out_fd); - } - - if (ferror_unlocked(stderr)) - return exit_internal_failure; - - signal(1, ((__sighandler_t)1)); - - char **cmd = argv + optind; - execvp(*cmd, cmd); - int exit_status = - (*__errno_location()) == 2 ? EXIT_ENOENT : EXIT_CANNOT_INVOKE; - int saved_errno = (*__errno_location()); - - if (dup2(saved_stderr_fd, 2) == 2) - error(0, saved_errno, dcgettext(((void *)0), "failed to run command %s", 5), - quotearg_style(shell_escape_always_quoting_style, *cmd)); - - return exit_status; -} diff --git a/tests/source/coreutils/nproc.c b/tests/source/coreutils/nproc.c deleted file mode 100644 index 0bf559f..0000000 --- a/tests/source/coreutils/nproc.c +++ /dev/null @@ -1,6909 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; -enum nproc_query { - NPROC_ALL, - NPROC_CURRENT, - NPROC_CURRENT_OVERRIDABLE - -}; - -extern unsigned long int num_processors(enum nproc_query query); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); - -enum { ALL_OPTION = 0x7f + 1, IGNORE_OPTION }; - -static struct option const longopts[] = { - {"all", 0, ((void *)0), ALL_OPTION}, - {"ignore", 1, ((void *)0), IGNORE_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]...\n", 5), program_name); - fputs_unlocked(dcgettext(((void *)0), - "Print the number of processing units available " - "to the current process,\nwhich may be less than " - "the number of online processors\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --all print the number of installed processors\n " - " --ignore=N if possible, exclude N processing units\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("nproc"); - } - exit(status); -} - -int main(int argc, char **argv) { - unsigned long nproc, ignore = 0; - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - enum nproc_query mode = NPROC_CURRENT_OVERRIDABLE; - - while (1) { - int c = getopt_long(argc, argv, "", longopts, ((void *)0)); - if (c == -1) - break; - switch (c) { - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "nproc", "GNU coreutils", Version, - ("Giuseppe Scrivano"), (char *)((void *)0)); - exit(0); - break; - ; - - case ALL_OPTION: - mode = NPROC_ALL; - break; - - case IGNORE_OPTION: - ignore = xdectoumax(optarg, 0, (0x7fffffffffffffffL * 2UL + 1UL), "", - dcgettext(((void *)0), "invalid number", 5), 0); - break; - - default: - usage(1); - } - } - - if (argc != optind) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind])); - usage(1); - } - - nproc = num_processors(mode); - - if (ignore < nproc) - nproc -= ignore; - else - nproc = 1; - - printf("%lu\n", nproc); - - return 0; -} diff --git a/tests/source/coreutils/numfmt.c b/tests/source/coreutils/numfmt.c deleted file mode 100644 index 62cf67d..0000000 --- a/tests/source/coreutils/numfmt.c +++ /dev/null @@ -1,9735 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef void *nl_catd; - -typedef int nl_item; - -extern nl_catd catopen(const char *__cat_name, int __flag) - __attribute__((__nonnull__(1))); - -extern char *catgets(nl_catd __catalog, int __set, int __number, - const char *__string) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int catclose(nl_catd __catalog) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -enum { - - ABDAY_1 = (((2) << 16) | (0)), - - ABDAY_2, - - ABDAY_3, - - ABDAY_4, - - ABDAY_5, - - ABDAY_6, - - ABDAY_7, - - DAY_1, - - DAY_2, - - DAY_3, - - DAY_4, - - DAY_5, - - DAY_6, - - DAY_7, - - ABMON_1, - - ABMON_2, - - ABMON_3, - - ABMON_4, - - ABMON_5, - - ABMON_6, - - ABMON_7, - - ABMON_8, - - ABMON_9, - - ABMON_10, - - ABMON_11, - - ABMON_12, - - MON_1, - - MON_2, - - MON_3, - - MON_4, - - MON_5, - - MON_6, - - MON_7, - - MON_8, - - MON_9, - - MON_10, - - MON_11, - - MON_12, - - AM_STR, - - PM_STR, - - D_T_FMT, - - D_FMT, - - T_FMT, - - T_FMT_AMPM, - - ERA, - - __ERA_YEAR, - - ERA_D_FMT, - - ALT_DIGITS, - - ERA_D_T_FMT, - - ERA_T_FMT, - - _NL_TIME_ERA_NUM_ENTRIES, - _NL_TIME_ERA_ENTRIES, - - _NL_WABDAY_1, - _NL_WABDAY_2, - _NL_WABDAY_3, - _NL_WABDAY_4, - _NL_WABDAY_5, - _NL_WABDAY_6, - _NL_WABDAY_7, - - _NL_WDAY_1, - _NL_WDAY_2, - _NL_WDAY_3, - _NL_WDAY_4, - _NL_WDAY_5, - _NL_WDAY_6, - _NL_WDAY_7, - - _NL_WABMON_1, - _NL_WABMON_2, - _NL_WABMON_3, - _NL_WABMON_4, - _NL_WABMON_5, - _NL_WABMON_6, - _NL_WABMON_7, - _NL_WABMON_8, - _NL_WABMON_9, - _NL_WABMON_10, - _NL_WABMON_11, - _NL_WABMON_12, - - _NL_WMON_1, - _NL_WMON_2, - _NL_WMON_3, - _NL_WMON_4, - _NL_WMON_5, - _NL_WMON_6, - _NL_WMON_7, - _NL_WMON_8, - _NL_WMON_9, - _NL_WMON_10, - _NL_WMON_11, - _NL_WMON_12, - - _NL_WAM_STR, - _NL_WPM_STR, - - _NL_WD_T_FMT, - _NL_WD_FMT, - _NL_WT_FMT, - _NL_WT_FMT_AMPM, - - _NL_WERA_YEAR, - _NL_WERA_D_FMT, - _NL_WALT_DIGITS, - _NL_WERA_D_T_FMT, - _NL_WERA_T_FMT, - - _NL_TIME_WEEK_NDAYS, - _NL_TIME_WEEK_1STDAY, - _NL_TIME_WEEK_1STWEEK, - _NL_TIME_FIRST_WEEKDAY, - _NL_TIME_FIRST_WORKDAY, - _NL_TIME_CAL_DIRECTION, - _NL_TIME_TIMEZONE, - - _DATE_FMT, - - _NL_W_DATE_FMT, - - _NL_TIME_CODESET, - - __ALTMON_1, - __ALTMON_2, - __ALTMON_3, - __ALTMON_4, - __ALTMON_5, - __ALTMON_6, - __ALTMON_7, - __ALTMON_8, - __ALTMON_9, - __ALTMON_10, - __ALTMON_11, - __ALTMON_12, - _NL_WALTMON_1, - _NL_WALTMON_2, - _NL_WALTMON_3, - _NL_WALTMON_4, - _NL_WALTMON_5, - _NL_WALTMON_6, - _NL_WALTMON_7, - _NL_WALTMON_8, - _NL_WALTMON_9, - _NL_WALTMON_10, - _NL_WALTMON_11, - _NL_WALTMON_12, - - _NL_ABALTMON_1, - _NL_ABALTMON_2, - _NL_ABALTMON_3, - _NL_ABALTMON_4, - _NL_ABALTMON_5, - _NL_ABALTMON_6, - _NL_ABALTMON_7, - _NL_ABALTMON_8, - _NL_ABALTMON_9, - _NL_ABALTMON_10, - _NL_ABALTMON_11, - _NL_ABALTMON_12, - - _NL_WABALTMON_1, - _NL_WABALTMON_2, - _NL_WABALTMON_3, - _NL_WABALTMON_4, - _NL_WABALTMON_5, - _NL_WABALTMON_6, - _NL_WABALTMON_7, - _NL_WABALTMON_8, - _NL_WABALTMON_9, - _NL_WABALTMON_10, - _NL_WABALTMON_11, - _NL_WABALTMON_12, - - _NL_NUM_LC_TIME, - - _NL_COLLATE_NRULES = (((3) << 16) | (0)), - _NL_COLLATE_RULESETS, - _NL_COLLATE_TABLEMB, - _NL_COLLATE_WEIGHTMB, - _NL_COLLATE_EXTRAMB, - _NL_COLLATE_INDIRECTMB, - _NL_COLLATE_GAP1, - _NL_COLLATE_GAP2, - _NL_COLLATE_GAP3, - _NL_COLLATE_TABLEWC, - _NL_COLLATE_WEIGHTWC, - _NL_COLLATE_EXTRAWC, - _NL_COLLATE_INDIRECTWC, - _NL_COLLATE_SYMB_HASH_SIZEMB, - _NL_COLLATE_SYMB_TABLEMB, - _NL_COLLATE_SYMB_EXTRAMB, - _NL_COLLATE_COLLSEQMB, - _NL_COLLATE_COLLSEQWC, - _NL_COLLATE_CODESET, - _NL_NUM_LC_COLLATE, - - _NL_CTYPE_CLASS = (((0) << 16) | (0)), - _NL_CTYPE_TOUPPER, - _NL_CTYPE_GAP1, - _NL_CTYPE_TOLOWER, - _NL_CTYPE_GAP2, - _NL_CTYPE_CLASS32, - _NL_CTYPE_GAP3, - _NL_CTYPE_GAP4, - _NL_CTYPE_GAP5, - _NL_CTYPE_GAP6, - _NL_CTYPE_CLASS_NAMES, - _NL_CTYPE_MAP_NAMES, - _NL_CTYPE_WIDTH, - _NL_CTYPE_MB_CUR_MAX, - _NL_CTYPE_CODESET_NAME, - CODESET = _NL_CTYPE_CODESET_NAME, - - _NL_CTYPE_TOUPPER32, - _NL_CTYPE_TOLOWER32, - _NL_CTYPE_CLASS_OFFSET, - _NL_CTYPE_MAP_OFFSET, - _NL_CTYPE_INDIGITS_MB_LEN, - _NL_CTYPE_INDIGITS0_MB, - _NL_CTYPE_INDIGITS1_MB, - _NL_CTYPE_INDIGITS2_MB, - _NL_CTYPE_INDIGITS3_MB, - _NL_CTYPE_INDIGITS4_MB, - _NL_CTYPE_INDIGITS5_MB, - _NL_CTYPE_INDIGITS6_MB, - _NL_CTYPE_INDIGITS7_MB, - _NL_CTYPE_INDIGITS8_MB, - _NL_CTYPE_INDIGITS9_MB, - _NL_CTYPE_INDIGITS_WC_LEN, - _NL_CTYPE_INDIGITS0_WC, - _NL_CTYPE_INDIGITS1_WC, - _NL_CTYPE_INDIGITS2_WC, - _NL_CTYPE_INDIGITS3_WC, - _NL_CTYPE_INDIGITS4_WC, - _NL_CTYPE_INDIGITS5_WC, - _NL_CTYPE_INDIGITS6_WC, - _NL_CTYPE_INDIGITS7_WC, - _NL_CTYPE_INDIGITS8_WC, - _NL_CTYPE_INDIGITS9_WC, - _NL_CTYPE_OUTDIGIT0_MB, - _NL_CTYPE_OUTDIGIT1_MB, - _NL_CTYPE_OUTDIGIT2_MB, - _NL_CTYPE_OUTDIGIT3_MB, - _NL_CTYPE_OUTDIGIT4_MB, - _NL_CTYPE_OUTDIGIT5_MB, - _NL_CTYPE_OUTDIGIT6_MB, - _NL_CTYPE_OUTDIGIT7_MB, - _NL_CTYPE_OUTDIGIT8_MB, - _NL_CTYPE_OUTDIGIT9_MB, - _NL_CTYPE_OUTDIGIT0_WC, - _NL_CTYPE_OUTDIGIT1_WC, - _NL_CTYPE_OUTDIGIT2_WC, - _NL_CTYPE_OUTDIGIT3_WC, - _NL_CTYPE_OUTDIGIT4_WC, - _NL_CTYPE_OUTDIGIT5_WC, - _NL_CTYPE_OUTDIGIT6_WC, - _NL_CTYPE_OUTDIGIT7_WC, - _NL_CTYPE_OUTDIGIT8_WC, - _NL_CTYPE_OUTDIGIT9_WC, - _NL_CTYPE_TRANSLIT_TAB_SIZE, - _NL_CTYPE_TRANSLIT_FROM_IDX, - _NL_CTYPE_TRANSLIT_FROM_TBL, - _NL_CTYPE_TRANSLIT_TO_IDX, - _NL_CTYPE_TRANSLIT_TO_TBL, - _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN, - _NL_CTYPE_TRANSLIT_DEFAULT_MISSING, - _NL_CTYPE_TRANSLIT_IGNORE_LEN, - _NL_CTYPE_TRANSLIT_IGNORE, - _NL_CTYPE_MAP_TO_NONASCII, - _NL_CTYPE_NONASCII_CASE, - _NL_CTYPE_EXTRA_MAP_1, - _NL_CTYPE_EXTRA_MAP_2, - _NL_CTYPE_EXTRA_MAP_3, - _NL_CTYPE_EXTRA_MAP_4, - _NL_CTYPE_EXTRA_MAP_5, - _NL_CTYPE_EXTRA_MAP_6, - _NL_CTYPE_EXTRA_MAP_7, - _NL_CTYPE_EXTRA_MAP_8, - _NL_CTYPE_EXTRA_MAP_9, - _NL_CTYPE_EXTRA_MAP_10, - _NL_CTYPE_EXTRA_MAP_11, - _NL_CTYPE_EXTRA_MAP_12, - _NL_CTYPE_EXTRA_MAP_13, - _NL_CTYPE_EXTRA_MAP_14, - _NL_NUM_LC_CTYPE, - - __INT_CURR_SYMBOL = (((4) << 16) | (0)), - - __CURRENCY_SYMBOL, - - __MON_DECIMAL_POINT, - - __MON_THOUSANDS_SEP, - - __MON_GROUPING, - - __POSITIVE_SIGN, - - __NEGATIVE_SIGN, - - __INT_FRAC_DIGITS, - - __FRAC_DIGITS, - - __P_CS_PRECEDES, - - __P_SEP_BY_SPACE, - - __N_CS_PRECEDES, - - __N_SEP_BY_SPACE, - - __P_SIGN_POSN, - - __N_SIGN_POSN, - - _NL_MONETARY_CRNCYSTR, - - __INT_P_CS_PRECEDES, - - __INT_P_SEP_BY_SPACE, - - __INT_N_CS_PRECEDES, - - __INT_N_SEP_BY_SPACE, - - __INT_P_SIGN_POSN, - - __INT_N_SIGN_POSN, - - _NL_MONETARY_DUO_INT_CURR_SYMBOL, - _NL_MONETARY_DUO_CURRENCY_SYMBOL, - _NL_MONETARY_DUO_INT_FRAC_DIGITS, - _NL_MONETARY_DUO_FRAC_DIGITS, - _NL_MONETARY_DUO_P_CS_PRECEDES, - _NL_MONETARY_DUO_P_SEP_BY_SPACE, - _NL_MONETARY_DUO_N_CS_PRECEDES, - _NL_MONETARY_DUO_N_SEP_BY_SPACE, - _NL_MONETARY_DUO_INT_P_CS_PRECEDES, - _NL_MONETARY_DUO_INT_P_SEP_BY_SPACE, - _NL_MONETARY_DUO_INT_N_CS_PRECEDES, - _NL_MONETARY_DUO_INT_N_SEP_BY_SPACE, - _NL_MONETARY_DUO_P_SIGN_POSN, - _NL_MONETARY_DUO_N_SIGN_POSN, - _NL_MONETARY_DUO_INT_P_SIGN_POSN, - _NL_MONETARY_DUO_INT_N_SIGN_POSN, - _NL_MONETARY_UNO_VALID_FROM, - _NL_MONETARY_UNO_VALID_TO, - _NL_MONETARY_DUO_VALID_FROM, - _NL_MONETARY_DUO_VALID_TO, - _NL_MONETARY_CONVERSION_RATE, - _NL_MONETARY_DECIMAL_POINT_WC, - _NL_MONETARY_THOUSANDS_SEP_WC, - _NL_MONETARY_CODESET, - _NL_NUM_LC_MONETARY, - - __DECIMAL_POINT = (((1) << 16) | (0)), - - RADIXCHAR = __DECIMAL_POINT, - - __THOUSANDS_SEP, - - THOUSEP = __THOUSANDS_SEP, - - __GROUPING, - - _NL_NUMERIC_DECIMAL_POINT_WC, - _NL_NUMERIC_THOUSANDS_SEP_WC, - _NL_NUMERIC_CODESET, - _NL_NUM_LC_NUMERIC, - - __YESEXPR = (((5) << 16) | (0)), - - __NOEXPR, - - __YESSTR, - - __NOSTR, - - _NL_MESSAGES_CODESET, - _NL_NUM_LC_MESSAGES, - - _NL_PAPER_HEIGHT = (((7) << 16) | (0)), - _NL_PAPER_WIDTH, - _NL_PAPER_CODESET, - _NL_NUM_LC_PAPER, - - _NL_NAME_NAME_FMT = (((8) << 16) | (0)), - _NL_NAME_NAME_GEN, - _NL_NAME_NAME_MR, - _NL_NAME_NAME_MRS, - _NL_NAME_NAME_MISS, - _NL_NAME_NAME_MS, - _NL_NAME_CODESET, - _NL_NUM_LC_NAME, - - _NL_ADDRESS_POSTAL_FMT = (((9) << 16) | (0)), - _NL_ADDRESS_COUNTRY_NAME, - _NL_ADDRESS_COUNTRY_POST, - _NL_ADDRESS_COUNTRY_AB2, - _NL_ADDRESS_COUNTRY_AB3, - _NL_ADDRESS_COUNTRY_CAR, - _NL_ADDRESS_COUNTRY_NUM, - _NL_ADDRESS_COUNTRY_ISBN, - _NL_ADDRESS_LANG_NAME, - _NL_ADDRESS_LANG_AB, - _NL_ADDRESS_LANG_TERM, - _NL_ADDRESS_LANG_LIB, - _NL_ADDRESS_CODESET, - _NL_NUM_LC_ADDRESS, - - _NL_TELEPHONE_TEL_INT_FMT = (((10) << 16) | (0)), - _NL_TELEPHONE_TEL_DOM_FMT, - _NL_TELEPHONE_INT_SELECT, - _NL_TELEPHONE_INT_PREFIX, - _NL_TELEPHONE_CODESET, - _NL_NUM_LC_TELEPHONE, - - _NL_MEASUREMENT_MEASUREMENT = (((11) << 16) | (0)), - _NL_MEASUREMENT_CODESET, - _NL_NUM_LC_MEASUREMENT, - - _NL_IDENTIFICATION_TITLE = (((12) << 16) | (0)), - _NL_IDENTIFICATION_SOURCE, - _NL_IDENTIFICATION_ADDRESS, - _NL_IDENTIFICATION_CONTACT, - _NL_IDENTIFICATION_EMAIL, - _NL_IDENTIFICATION_TEL, - _NL_IDENTIFICATION_FAX, - _NL_IDENTIFICATION_LANGUAGE, - _NL_IDENTIFICATION_TERRITORY, - _NL_IDENTIFICATION_AUDIENCE, - _NL_IDENTIFICATION_APPLICATION, - _NL_IDENTIFICATION_ABBREVIATION, - _NL_IDENTIFICATION_REVISION, - _NL_IDENTIFICATION_DATE, - _NL_IDENTIFICATION_CATEGORY, - _NL_IDENTIFICATION_CODESET, - _NL_NUM_LC_IDENTIFICATION, - - _NL_NUM -}; -extern char *nl_langinfo(nl_item __item) __attribute__((__nothrow__, __leaf__)); - -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern char *nl_langinfo_l(nl_item __item, locale_t __l); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); - -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef enum { MBS_ALIGN_LEFT, MBS_ALIGN_RIGHT, MBS_ALIGN_CENTER } mbs_align_t; - -enum { - - MBA_UNIBYTE_FALLBACK = 0x0001, - - MBA_UNIBYTE_ONLY = 0x0002, - - MBA_NO_LEFT_PAD = 0x0004, - - MBA_NO_RIGHT_PAD = 0x0008 -}; - -size_t mbsalign(char const *src, char *dest, size_t dest_size, size_t *width, - mbs_align_t align, int flags) __attribute__((__nonnull__)); - -char *ambsalign(char const *src, size_t *width, mbs_align_t align, int flags) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__nonnull__)); - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -inline _Bool - -c_isalnum(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isalpha(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isascii(int c) { - switch (c) { - case ' ': - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_isblank(int c) { - return c == ' ' || c == '\t'; -} - -inline _Bool - -c_iscntrl(int c) { - switch (c) { - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isgraph(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_islower(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isprint(int c) { - switch (c) { - case ' ': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_ispunct(int c) { - switch (c) { - case '!': - case '"': - case ' return 1; default: - return 0; - } -} - -inline _Bool - -c_isspace(int c) { - switch (c) { - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isupper(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isxdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline int c_tolower(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return c - 'A' + 'a'; - default: - return c; - } -} - -inline int c_toupper(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return c - 'a' + 'A'; - default: - return c; - } -} - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -struct field_range_pair { - uintmax_t lo; - uintmax_t hi; -}; - -extern struct field_range_pair *frp; - -extern size_t n_frp; - -enum { - SETFLD_ALLOW_DASH = 0x01, - SETFLD_COMPLEMENT = 0x02, - SETFLD_ERRMSG_USE_POS = 0x04 - -}; - -extern void set_fields(char const *fieldstr, unsigned int options); -enum { EXIT_CONVERSION_WARNINGS = 2 }; - -enum { - FROM_OPTION = 0x7f + 1, - FROM_UNIT_OPTION, - TO_OPTION, - TO_UNIT_OPTION, - ROUND_OPTION, - SUFFIX_OPTION, - GROUPING_OPTION, - PADDING_OPTION, - FIELD_OPTION, - DEBUG_OPTION, - DEV_DEBUG_OPTION, - HEADER_OPTION, - FORMAT_OPTION, - INVALID_OPTION -}; - -enum scale_type { scale_none, scale_auto, scale_SI, scale_IEC, scale_IEC_I }; - -static char const *const scale_from_args[] = {"none", "auto", "si", "iec", - "iec-i", ((void *)0) - -}; - -static enum scale_type const scale_from_types[] = { - scale_none, scale_auto, scale_SI, scale_IEC, scale_IEC_I}; - -static char const *const scale_to_args[] = {"none", "si", "iec", "iec-i", - ((void *)0) - -}; - -static enum scale_type const scale_to_types[] = {scale_none, scale_SI, - scale_IEC, scale_IEC_I}; - -enum round_type { - round_ceiling, - round_floor, - round_from_zero, - round_to_zero, - round_nearest, -}; - -static char const *const round_args[] = { - "up", "down", "from-zero", "towards-zero", - "nearest", ((void *)0) - -}; - -static enum round_type const round_types[] = { - round_ceiling, round_floor, round_from_zero, round_to_zero, round_nearest}; - -enum inval_type { inval_abort, inval_fail, inval_warn, inval_ignore }; - -static char const *const inval_args[] = {"abort", "fail", "warn", "ignore", - ((void *)0) - -}; - -static enum inval_type const inval_types[] = {inval_abort, inval_fail, - inval_warn, inval_ignore}; - -static struct option const longopts[] = { - {"from", 1, ((void *)0), FROM_OPTION}, - {"from-unit", 1, ((void *)0), FROM_UNIT_OPTION}, - {"to", 1, ((void *)0), TO_OPTION}, - {"to-unit", 1, ((void *)0), TO_UNIT_OPTION}, - {"round", 1, ((void *)0), ROUND_OPTION}, - {"padding", 1, ((void *)0), PADDING_OPTION}, - {"suffix", 1, ((void *)0), SUFFIX_OPTION}, - {"grouping", 0, ((void *)0), GROUPING_OPTION}, - {"delimiter", 1, ((void *)0), 'd'}, - {"field", 1, ((void *)0), FIELD_OPTION}, - {"debug", 0, ((void *)0), DEBUG_OPTION}, - {"-debug", 0, ((void *)0), DEV_DEBUG_OPTION}, - {"header", 2, ((void *)0), HEADER_OPTION}, - {"format", 1, ((void *)0), FORMAT_OPTION}, - {"invalid", 1, ((void *)0), INVALID_OPTION}, - {"zero-terminated", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -enum { DELIMITER_DEFAULT = 0x7f + 1 }; - -enum { MAX_UNSCALED_DIGITS = 18 }; - -enum { MAX_ACCEPTABLE_DIGITS = 27 }; - -static enum scale_type scale_from = scale_none; -static enum scale_type scale_to = scale_none; -static enum round_type round_style = round_from_zero; -static enum inval_type inval_style = inval_abort; -static char const *suffix = ((void *)0); -static uintmax_t from_unit_size = 1; -static uintmax_t to_unit_size = 1; -static int grouping = 0; -static char *padding_buffer = ((void *)0); -static size_t padding_buffer_size = 0; -static long int padding_width = 0; -static long int zero_padding_width = 0; -static long int user_precision = -1; -static char const *format_str = ((void *)0); -static char *format_str_prefix = ((void *)0); -static char *format_str_suffix = ((void *)0); - -static int conv_exit_code = EXIT_CONVERSION_WARNINGS; - -static int auto_padding = 0; -static mbs_align_t padding_alignment = MBS_ALIGN_RIGHT; - -static int delimiter = DELIMITER_DEFAULT; - -static unsigned char line_delim = '\n'; - -static uintmax_t header = 0; - -static _Bool debug; - -static char const *decimal_point; -static int decimal_point_length; - -static _Bool dev_debug = 0; - -static inline int default_scale_base(enum scale_type scale) { - switch (scale) { - case scale_IEC: - case scale_IEC_I: - return 1024; - - case scale_none: - case scale_auto: - case scale_SI: - default: - return 1000; - } -} - -static inline int valid_suffix(const char suf) { - static char const *valid_suffixes = "KMGTPEZY"; - return (strchr(valid_suffixes, suf) != ((void *)0)); -} - -static inline int suffix_power(const char suf) { - switch (suf) { - case 'K': - return 1; - - case 'M': - return 2; - - case 'G': - return 3; - - case 'T': - return 4; - - case 'P': - return 5; - - case 'E': - return 6; - - case 'Z': - return 7; - - case 'Y': - return 8; - - default: - return 0; - } -} - -static inline char const *suffix_power_char(unsigned int power) { - switch (power) { - case 0: - return ""; - - case 1: - return "K"; - - case 2: - return "M"; - - case 3: - return "G"; - - case 4: - return "T"; - - case 5: - return "P"; - - case 6: - return "E"; - - case 7: - return "Z"; - - case 8: - return "Y"; - - default: - return "(error)"; - } -} - -static long double powerld(long double base, unsigned int x) { - long double result = base; - if (x == 0) - return 1; - - while (--x) - result *= base; - return result; -} - -static inline long double absld(long double val) { - return val < 0 ? -val : val; -} - -static long double expld(long double val, unsigned int base, unsigned int *x) { - unsigned int power = 0; - - if (val >= -1.18973149535723176502126385303097021e+4932L && - val <= 1.18973149535723176502126385303097021e+4932L) { - while (absld(val) >= base) { - ++power; - val /= base; - } - } - if (x) - *x = power; - return val; -} - -static inline intmax_t simple_round_ceiling(long double val) { - intmax_t intval = val; - if (intval < val) - intval++; - return intval; -} - -static inline intmax_t simple_round_floor(long double val) { - return -simple_round_ceiling(-val); -} - -static inline intmax_t simple_round_from_zero(long double val) { - return val < 0 ? simple_round_floor(val) : simple_round_ceiling(val); -} - -static inline intmax_t simple_round_to_zero(long double val) { return val; } - -static inline intmax_t simple_round_nearest(long double val) { - return val < 0 ? val - 0.5 : val + 0.5; -} - -__attribute__((__const__)) static inline long double -simple_round(long double val, enum round_type t) { - intmax_t rval; - intmax_t intmax_mul = val / (9223372036854775807L); - val -= (long double)(9223372036854775807L) * intmax_mul; - - switch (t) { - case round_ceiling: - rval = simple_round_ceiling(val); - break; - - case round_floor: - rval = simple_round_floor(val); - break; - - case round_from_zero: - rval = simple_round_from_zero(val); - break; - - case round_to_zero: - rval = simple_round_to_zero(val); - break; - - case round_nearest: - rval = simple_round_nearest(val); - break; - - default: - - return 0; - } - - return (long double)(9223372036854775807L) * intmax_mul + rval; -} - -enum simple_strtod_error { - SSE_OK = 0, - SSE_OK_PRECISION_LOSS, - SSE_OVERFLOW, - SSE_INVALID_NUMBER, - - SSE_VALID_BUT_FORBIDDEN_SUFFIX, - SSE_INVALID_SUFFIX, - SSE_MISSING_I_SUFFIX -}; -static enum simple_strtod_error simple_strtod_int(char const *input_str, - char **endptr, - long double *value, - _Bool *negative) { - enum simple_strtod_error e = SSE_OK; - - long double val = 0; - unsigned int digits = 0; - - _Bool found_digit = 0; - - if (*input_str == '-') { - input_str++; - *negative = 1; - } else - *negative = 0; - - *endptr = (char *)input_str; - while (c_isdigit(**endptr)) { - int digit = (**endptr) - '0'; - - found_digit = 1; - - if (val || digit) - digits++; - - if (digits > MAX_UNSCALED_DIGITS) - e = SSE_OK_PRECISION_LOSS; - - if (digits > MAX_ACCEPTABLE_DIGITS) - return SSE_OVERFLOW; - - val *= 10; - val += digit; - - ++(*endptr); - } - if (!found_digit && - !(strncmp(*endptr, decimal_point, decimal_point_length) == 0)) - return SSE_INVALID_NUMBER; - if (*negative) - val = -val; - - if (value) - *value = val; - - return e; -} -static enum simple_strtod_error simple_strtod_float(char const *input_str, - char **endptr, - long double *value, - size_t *precision) { - - _Bool negative; - enum simple_strtod_error e = SSE_OK; - - if (precision) - *precision = 0; - - e = simple_strtod_int(input_str, endptr, value, &negative); - if (e != SSE_OK && e != SSE_OK_PRECISION_LOSS) - return e; - - if ((strncmp(*endptr, decimal_point, decimal_point_length) == 0)) { - char *ptr2; - long double val_frac = 0; - - _Bool neg_frac; - - (*endptr) += decimal_point_length; - enum simple_strtod_error e2 = - simple_strtod_int(*endptr, &ptr2, &val_frac, &neg_frac); - if (e2 != SSE_OK && e2 != SSE_OK_PRECISION_LOSS) - return e2; - if (e2 == SSE_OK_PRECISION_LOSS) - e = e2; - if (neg_frac) - return SSE_INVALID_NUMBER; - - size_t exponent = ptr2 - *endptr; - - val_frac = ((long double)val_frac) / powerld(10, exponent); - - if (value) { - if (negative) - *value -= val_frac; - else - *value += val_frac; - } - - if (precision) - *precision = exponent; - - *endptr = ptr2; - } - return e; -} -static enum simple_strtod_error -simple_strtod_human(char const *input_str, char **endptr, long double *value, - size_t *precision, enum scale_type allowed_scaling) { - int power = 0; - - int scale_base = default_scale_base(allowed_scaling); - - do { - if (dev_debug) - fprintf(stderr, - "simple_strtod_human:\n input string: %s\n" - " locale decimal-point: %s\n" - " MAX_UNSCALED_DIGITS: %d\n", - quote_n(0, input_str), quote_n(1, decimal_point), - MAX_UNSCALED_DIGITS); - } while (0) - - ; - - enum simple_strtod_error e = - simple_strtod_float(input_str, endptr, value, precision); - if (e != SSE_OK && e != SSE_OK_PRECISION_LOSS) - return e; - - do { - if (dev_debug) - fprintf(stderr, - " parsed numeric value: %Lf\n" - " input precision = %d\n", - *value, (int)*precision); - } while (0); - - if (**endptr != '\0') { - - while (((*__ctype_b_loc())[(int)((to_uchar(**endptr)))] & - (unsigned short int)_ISblank)) - (*endptr)++; - - if (!valid_suffix(**endptr)) - return SSE_INVALID_SUFFIX; - - if (allowed_scaling == scale_none) - return SSE_VALID_BUT_FORBIDDEN_SUFFIX; - - power = suffix_power(**endptr); - (*endptr)++; - - if (allowed_scaling == scale_auto && **endptr == 'i') { - - scale_base = 1024; - (*endptr)++; - do { - if (dev_debug) - fprintf(stderr, " Auto-scaling, found 'i', switching to base %d\n", - scale_base); - } while (0); - } - - *precision = 0; - } - - if (allowed_scaling == scale_IEC_I) { - if (**endptr == 'i') - (*endptr)++; - else - return SSE_MISSING_I_SUFFIX; - } - - long double multiplier = powerld(scale_base, power); - - do { - if (dev_debug) - fprintf(stderr, " suffix power=%d^%d = %Lf\n", scale_base, power, - multiplier); - } while (0); - - (*value) = (*value) * multiplier; - - do { - if (dev_debug) - fprintf(stderr, " returning value: %Lf (%LG)\n", *value, *value); - } while (0); - - return e; -} - -static void simple_strtod_fatal(enum simple_strtod_error err, - char const *input_str) { - char const *msgid = ((void *)0); - - switch (err) { - case SSE_OK_PRECISION_LOSS: - case SSE_OK: - - abort(); - - case SSE_OVERFLOW: - msgid = "value too large to be converted: %s"; - break; - - case SSE_INVALID_NUMBER: - msgid = "invalid number: %s"; - break; - - case SSE_VALID_BUT_FORBIDDEN_SUFFIX: - msgid = "rejecting suffix in input: %s (consider using --from)"; - break; - - case SSE_INVALID_SUFFIX: - msgid = "invalid suffix in input: %s"; - break; - - case SSE_MISSING_I_SUFFIX: - msgid = "missing 'i' suffix in input: %s (e.g Ki/Mi/Gi)"; - break; - } - - if (inval_style != inval_ignore) - error(conv_exit_code, 0, dcgettext(((void *)0), msgid, 5), - quote(input_str)); -} - -static void double_to_human(long double val, int precision, char *buf, - size_t buf_size, enum scale_type scale, int group, - enum round_type round) { - int num_size; - char fmt[64]; - _Static_assert( - sizeof(fmt) > - (((((((sizeof(zero_padding_width) * 8) - - (!((__typeof__(zero_padding_width))0 < - (__typeof__(zero_padding_width))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(zero_padding_width))0 < - (__typeof__(zero_padding_width))-1))) + - 1) + - ((((((sizeof(precision) * 8) - - (!((__typeof__(precision))0 < (__typeof__(precision))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(precision))0 < (__typeof__(precision))-1))) + - 1) + - 10), - "verify (" - "sizeof (fmt) > (INT_BUFSIZE_BOUND (zero_padding_width) + " - "INT_BUFSIZE_BOUND (precision) + 10 )" - ")") - - ; - - char *pfmt = fmt; - *pfmt++ = '%'; - - if (group) - *pfmt++ = '\''; - - if (zero_padding_width) - pfmt += snprintf(pfmt, sizeof(fmt) - 2, "0%ld", zero_padding_width); - - do { - if (dev_debug) - fprintf(stderr, "double_to_human:\n"); - } while (0); - - if (scale == scale_none) { - val *= powerld(10, precision); - val = simple_round(val, round); - val /= powerld(10, precision); - - do { - if (dev_debug) - fprintf(stderr, - (group) ? " no scaling, returning (grouped) value: %'.*Lf\n" - : " no scaling, returning value: %.*Lf\n", - precision, val); - } while (0) - - ; - - stpcpy(pfmt, ".*Lf"); - - num_size = snprintf(buf, buf_size, fmt, precision, val); - if (num_size < 0 || num_size >= (int)buf_size) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"failed to prepare " - "value '%Lf' for printing\", 5), val), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "failed to prepare value '%Lf' for printing", 5), - val), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "failed to prepare value '%Lf' for printing", 5), - val), - ((0) ? (void)0 : __builtin_unreachable())))); - return; - } - - double scale_base = default_scale_base(scale); - - unsigned int power = 0; - val = expld(val, scale_base, &power); - do { - if (dev_debug) - fprintf(stderr, " scaled value to %Lf * %0.f ^ %u\n", val, scale_base, - power); - } while (0); - - unsigned int power_adjust = 0; - if (user_precision != -1) - power_adjust = - (((power * 3) < (user_precision)) ? (power * 3) : (user_precision)); - else if (absld(val) < 10) { - - power_adjust = 1; - } - - val *= powerld(10, power_adjust); - val = simple_round(val, round); - val /= powerld(10, power_adjust); - - if (absld(val) >= scale_base) { - val /= scale_base; - power++; - } - - int show_decimal_point = (val != 0) && (absld(val) < 10) && (power > 0); - - do { - if (dev_debug) - fprintf(stderr, " after rounding, value=%Lf * %0.f ^ %u\n", val, - scale_base, power); - } while (0); - - stpcpy(pfmt, ".*Lf%s"); - - int prec = user_precision == -1 ? show_decimal_point : user_precision; - - num_size = - snprintf(buf, buf_size - 1, fmt, prec, val, suffix_power_char(power)); - if (num_size < 0 || num_size >= (int)buf_size - 1) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value " - "'%Lf' for printing\", 5), val), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "failed to prepare value '%Lf' for printing", 5), - val), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "failed to prepare value '%Lf' for printing", 5), - val), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (scale == scale_IEC_I && power > 0) - strncat(buf, "i", buf_size - num_size - 1); - - do { - if (dev_debug) - fprintf(stderr, " returning value: %s\n", quote(buf)); - } while (0); - - return; -} - -static uintmax_t unit_to_umax(char const *n_string) { - strtol_error s_err; - char const *c_string = n_string; - char *t_string = ((void *)0); - size_t n_len = strlen(n_string); - char *end = ((void *)0); - uintmax_t n; - char const *suffixes = "KMGTPEZY"; - - if (n_len && !c_isdigit(n_string[n_len - 1])) { - t_string = xmalloc(n_len + 2); - end = t_string + n_len - 1; - memcpy(t_string, n_string, n_len); - - if (*end == 'i' && 2 <= n_len && !c_isdigit(*(end - 1))) - *end = '\0'; - else { - *++end = 'B'; - *++end = '\0'; - suffixes = "KMGTPEZY0"; - } - - c_string = t_string; - } - - s_err = xstrtoumax(c_string, &end, 10, &n, suffixes); - - if (s_err != LONGINT_OK || *end || n == 0) { - free(t_string); - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid unit " - "size: %s\", 5), quote (n_string)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid unit size: %s", 5), - quote(n_string)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid unit size: %s", 5), - quote(n_string)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - free(t_string); - - return n; -} - -static void setup_padding_buffer(size_t min_size) { - if (padding_buffer_size > min_size) - return; - - padding_buffer_size = min_size + 1; - padding_buffer = xrealloc(padding_buffer, padding_buffer_size); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [NUMBER]...\n", 5) - - , - program_name); - fputs_unlocked(dcgettext(((void *)0), - "Reformat NUMBER(s), or the numbers from standard " - "input if none are specified.\n", - 5), - stdout) - - ; - emit_mandatory_arg_note(); - fputs_unlocked( - dcgettext(((void *)0), - " --debug print warnings about invalid input\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -d, --delimiter=X use X instead of " - "whitespace for field delimiter\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --field=FIELDS replace the numbers in these input fields " - "(default=1);\n see FIELDS below\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --format=FORMAT use printf style floating-point FORMAT;\n " - " see FORMAT below for details\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --from=UNIT auto-scale input numbers to UNITs; default " - "is 'none';\n see UNIT below\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --from-unit=N specify the input unit " - "size (instead of the default 1)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --grouping use locale-defined grouping of " - "digits, e.g. 1,000,000\n (which " - "means it has no effect in the C/POSIX locale)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --header[=N] print (without converting) the first " - "N header lines;\n N defaults to 1 " - "if not specified\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --invalid=MODE failure mode for invalid " - "numbers: MODE can be:\n " - "abort (default), fail, warn, ignore\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --padding=N pad the output to N characters; " - "positive N will\n right-align; " - "negative N will left-align;\n " - "padding is ignored if the output is wider than N;\n " - " the default is to automatically pad if a " - "whitespace\n is found\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --round=METHOD use METHOD for rounding when " - "scaling; METHOD can be:\n up, down, " - "from-zero (default), towards-zero, nearest\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --suffix=SUFFIX add SUFFIX to output numbers, and accept " - "optional\n SUFFIX in input numbers\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --to=UNIT auto-scale output numbers " - "to UNITs; see UNIT below\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --to-unit=N the output unit size " - "(instead of the default 1)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero-terminated line delimiter is NUL, not newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - - fputs_unlocked(dcgettext(((void *)0), "\nUNIT options:\n", 5), stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " none no auto-scaling is done; suffixes " - "will trigger an error\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " auto accept optional single/two letter suffix:\n " - " 1K = 1000,\n 1Ki = 1024,\n " - " 1M = 1000000,\n 1Mi = 1048576,\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " si accept optional single letter suffix:\n " - " 1K = 1000,\n 1M = 1000000,\n ...\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " iec accept optional single letter suffix:\n " - " 1K = 1024,\n 1M = 1048576,\n ...\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " iec-i accept optional two-letter suffix:\n " - "1Ki = 1024,\n 1Mi = 1048576,\n ...\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - "\nFIELDS supports cut(1) style field ranges:\n N N'th field, " - "counted from 1\n N- from N'th field, to end of line\n N-M " - "from N'th to M'th field (inclusive)\n -M from first to M'th " - "field (inclusive)\n - all fields\nMultiple fields/ranges can " - "be separated with commas\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - "\nFORMAT must be suitable for printing one floating-point " - "argument '%f'.\nOptional quote (%'f) will enable --grouping " - "(if supported by current locale).\nOptional width value " - "(%10f) will pad output. Optional zero (%010f) width\nwill " - "zero pad the number. Optional negative values (%-10f) will " - "left align.\nOptional precision (%.1f) will override the " - "input determined precision.\n", - 5), - stdout) - - ; - - printf( - dcgettext( - ((void *)0), - "\nExit status is 0 if all input numbers were successfully " - "converted.\nBy default, %s will stop at the first conversion " - "error with exit status 2.\nWith --invalid='fail' a warning is " - "printed for each conversion error\nand the exit status is 2. " - "With --invalid='warn' each conversion error is\ndiagnosed, but " - "the exit status is 0. With --invalid='ignore' conversion\nerrors " - "are not diagnosed and the exit status is 0.\n", - 5) - - , - program_name); - - printf(dcgettext( - ((void *)0), - "\nExamples:\n $ %s --to=si 1000\n -> \"1.0K\"\n $ " - "%s --to=iec 2048\n -> \"2.0K\"\n $ %s --to=iec-i " - "4096\n -> \"4.0Ki\"\n $ echo 1K | %s --from=si\n " - " -> \"1000\"\n $ echo 1K | %s --from=iec\n -> " - "\"1024\"\n $ df -B1 | %s --header --field 2-4 --to=si\n $ ls " - "-l | %s --header --field 5 --to=iec\n $ ls -lh | %s --header " - "--field 5 --from=iec --padding=10\n $ ls -lh | %s --header " - "--field 5 --from=iec --format %%10f\n", - 5), - - program_name, program_name, program_name, program_name, program_name, - program_name, program_name, program_name, program_name); - emit_ancillary_info("numfmt"); - } - exit(status); -} -static void parse_format_string(char const *fmt) { - size_t i; - size_t prefix_len = 0; - size_t suffix_pos; - long int pad = 0; - char *endptr = ((void *)0); - - _Bool zero_padding = 0; - - for (i = 0; !(fmt[i] == '%' && fmt[i + 1] != '%'); i += (fmt[i] == '%') + 1) { - if (!fmt[i]) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"format %s has " - "no %% directive\", 5), quote (fmt)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "format %s has no %% directive", 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "format %s has no %% directive", 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable())))); - prefix_len++; - } - - i++; - while (1) { - size_t skip = strspn(fmt + i, " "); - i += skip; - if (fmt[i] == '\'') { - grouping = 1; - i++; - } else if (fmt[i] == '0') { - zero_padding = 1; - i++; - } else if (!skip) - break; - } - - (*__errno_location()) = 0; - pad = strtol(fmt + i, &endptr, 10); - if ((*__errno_location()) == 34 || pad < -0x7fffffffffffffffL) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid format " - "%s (width overflow)\", 5), quote (fmt)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid format %s (width overflow)", - 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid format %s (width overflow)", - 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (endptr != (fmt + i) && pad != 0) { - if (debug && padding_width && !(zero_padding && pad > 0)) - error(0, 0, - dcgettext(((void *)0), "--format padding overriding --padding", 5)); - - if (pad < 0) { - padding_alignment = MBS_ALIGN_LEFT; - padding_width = -pad; - } else { - if (zero_padding) - zero_padding_width = pad; - else - padding_width = pad; - } - } - i = endptr - fmt; - - if (fmt[i] == '\0') - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"format %s " - "ends in %%\", 5), quote (fmt)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "format %s ends in %%", 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "format %s ends in %%", 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (fmt[i] == '.') { - i++; - - (*__errno_location()) = 0; - user_precision = strtol(fmt + i, &endptr, 10); - if ((*__errno_location()) == 34 || user_precision < 0 || - (18446744073709551615UL) < user_precision || - ((*__ctype_b_loc())[(int)((fmt[i]))] & (unsigned short int)_ISblank) || - fmt[i] == '+') { - - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid precision in " - "format %s\", 5), quote (fmt)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext(((void *)0), "invalid precision in format %s", 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext(((void *)0), "invalid precision in format %s", 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - i = endptr - fmt; - } - - if (fmt[i] != 'f') - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid format " - "%s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), " - "quote (fmt)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "invalid format %s," - " directive must be %%[0]['][-][N][.][N]f", - 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "invalid format %s," - " directive must be %%[0]['][-][N][.][N]f", - 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - i++; - suffix_pos = i; - - for (; fmt[i] != '\0'; i += (fmt[i] == '%') + 1) - if (fmt[i] == '%' && fmt[i + 1] != '%') - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"format %s has too many " - "%% directives\", 5), quote (fmt)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "format %s has too many %% directives", 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "format %s has too many %% directives", 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (prefix_len) - format_str_prefix = ximemdup0(fmt, prefix_len); - if (fmt[suffix_pos] != '\0') - format_str_suffix = xstrdup(fmt + suffix_pos); - - do { - if (dev_debug) - fprintf(stderr, - "format String:\n input: %s\n grouping: %s\n" - " padding width: %ld\n alignment: %s\n" - " prefix: %s\n suffix: %s\n", - quote_n(0, fmt), (grouping) ? "yes" : "no", padding_width, - (padding_alignment == MBS_ALIGN_LEFT) ? "Left" : "Right", - quote_n(1, format_str_prefix ? format_str_prefix : ""), - quote_n(2, format_str_suffix ? format_str_suffix : "")); - } while (0) - - ; -} -static enum simple_strtod_error -parse_human_number(char const *str, long double *value, size_t *precision) { - char *ptr = ((void *)0); - - enum simple_strtod_error e = - simple_strtod_human(str, &ptr, value, precision, scale_from); - if (e != SSE_OK && e != SSE_OK_PRECISION_LOSS) { - simple_strtod_fatal(e, str); - return e; - } - - if (ptr && *ptr != '\0') { - if (inval_style != inval_ignore) - error(conv_exit_code, 0, - dcgettext(((void *)0), "invalid suffix in input %s: %s", 5), - quote_n(0, str), quote_n(1, ptr)); - e = SSE_INVALID_SUFFIX; - } - return e; -} - -static int prepare_padded_number(const long double val, size_t precision) { - - char buf[128]; - - size_t precision_used = user_precision == -1 ? precision : user_precision; - - unsigned int x; - expld(val, 10, &x); - - if (scale_to == scale_none && x + precision_used > MAX_UNSCALED_DIGITS) { - if (inval_style != inval_ignore) { - if (precision_used) - error(conv_exit_code, 0, - - dcgettext(((void *)0), - "value/precision too large to be printed: '%Lg/%" - "l" - "u" - "'" - " (consider using --to)", - 5) - - , - val, (uintmax_t)precision_used); - else - error(conv_exit_code, 0, - - dcgettext(((void *)0), - "value too large to be printed: '%Lg'" - " (consider using --to)", - 5) - - , - val); - } - return 0; - } - - if (x > MAX_ACCEPTABLE_DIGITS - 1) { - if (inval_style != inval_ignore) - error(conv_exit_code, 0, - dcgettext(((void *)0), - "value too large to be printed: '%Lg'" - " (cannot handle values > 999Y)", - 5) - - , - val); - return 0; - } - - double_to_human(val, precision_used, buf, sizeof(buf), scale_to, grouping, - round_style); - if (suffix) - strncat(buf, suffix, sizeof(buf) - strlen(buf) - 1); - - do { - if (dev_debug) - fprintf(stderr, "formatting output:\n value: %Lf\n humanized: %s\n", - val, quote(buf)); - } while (0); - - if (padding_width && strlen(buf) < padding_width) { - size_t w = padding_width; - mbsalign(buf, padding_buffer, padding_buffer_size, &w, padding_alignment, - MBA_UNIBYTE_ONLY); - - do { - if (dev_debug) - fprintf(stderr, " After padding: %s\n", quote(padding_buffer)); - } while (0); - } else { - setup_padding_buffer(strlen(buf) + 1); - strcpy(padding_buffer, buf); - } - - return 1; -} - -static void print_padded_number(void) { - if (format_str_prefix) - fputs_unlocked(format_str_prefix, stdout); - - fputs_unlocked(padding_buffer, stdout); - - if (format_str_suffix) - fputs_unlocked(format_str_suffix, stdout); -} - -static int process_suffixed_number(char *text, long double *result, - size_t *precision, long int field) { - if (suffix && strlen(text) > strlen(suffix)) { - char *possible_suffix = text + strlen(text) - strlen(suffix); - - if ((strcmp(suffix, possible_suffix) == 0)) { - - *possible_suffix = '\0'; - do { - if (dev_debug) - fprintf(stderr, "trimming suffix %s\n", quote(suffix)); - } while (0); - } else - do { - if (dev_debug) - fprintf(stderr, "no valid suffix found\n"); - } while (0); - } - - char *p = text; - while (*p && ((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISblank)) - ++p; - const unsigned int skip_count = text - p; - - if (auto_padding) { - if (skip_count > 0 || field > 1) { - padding_width = strlen(text); - setup_padding_buffer(padding_width); - } else { - padding_width = 0; - } - do { - if (dev_debug) - fprintf(stderr, "setting Auto-Padding to %ld characters\n", - padding_width); - } while (0); - } - - long double val = 0; - enum simple_strtod_error e = parse_human_number(p, &val, precision); - if (e == SSE_OK_PRECISION_LOSS && debug) - error(0, 0, - dcgettext(((void *)0), - "large input value %s: possible precision loss", 5), - quote(p)); - - if (from_unit_size != 1 || to_unit_size != 1) - val = (val * from_unit_size) / to_unit_size; - - *result = val; - - return (e == SSE_OK || e == SSE_OK_PRECISION_LOSS); -} - -static char *next_field(char **line) { - char *field_start = *line; - char *field_end = field_start; - - if (delimiter != DELIMITER_DEFAULT) { - if (*field_start != delimiter) { - while (*field_end && *field_end != delimiter) - ++field_end; - } - - } else { - - while (*field_end && field_sep(*field_end)) - ++field_end; - - while (*field_end && !field_sep(*field_end)) - ++field_end; - } - - *line = field_end; - return field_start; -} - -__attribute__((__pure__)) static _Bool - -include_field(uintmax_t field) { - struct field_range_pair *p = frp; - if (!p) - return field == 1; - - while (p->lo != (18446744073709551615UL)) { - if (p->lo <= field && p->hi >= field) - return 1; - ++p; - } - return 0; -} - -static _Bool - -process_field(char *text, uintmax_t field) { - long double val = 0; - size_t precision = 0; - - _Bool valid_number = 1; - - if (include_field(field)) { - valid_number = process_suffixed_number(text, &val, &precision, field); - - if (valid_number) - valid_number = prepare_padded_number(val, precision); - - if (valid_number) - print_padded_number(); - else - fputs_unlocked(text, stdout); - } else - fputs_unlocked(text, stdout); - - return valid_number; -} - -static int process_line(char *line, _Bool newline) { - char *next; - uintmax_t field = 0; - - _Bool valid_number = 1; - - while (1) { - ++field; - next = next_field(&line); - - if (*line != '\0') { - - *line = '\0'; - - if (!process_field(next, field)) - valid_number = 0; - - fputc_unlocked((delimiter == DELIMITER_DEFAULT) ? ' ' : delimiter, - stdout); - ++line; - } else { - - if (!process_field(next, field)) - valid_number = 0; - - break; - } - } - - if (newline) - putchar_unlocked(line_delim); - - return valid_number; -} - -int main(int argc, char **argv) { - int valid_numbers = 1; - - _Bool locale_ok; - - ; - set_program_name(argv[0]); - locale_ok = !!setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - decimal_point = nl_langinfo(RADIXCHAR); - if (decimal_point == ((void *)0) || strlen(decimal_point) == 0) - decimal_point = "."; - decimal_point_length = strlen(decimal_point); - - atexit(close_stdout); - - while (1) { - int c = getopt_long(argc, argv, "d:z", longopts, ((void *)0)); - - if (c == -1) - break; - - switch (c) { - case FROM_OPTION: - scale_from = ((scale_from_types)[__xargmatch_internal( - "--from", optarg, scale_from_args, (void const *)(scale_from_types), - sizeof *(scale_from_types), argmatch_die, 1)]); - break; - - case FROM_UNIT_OPTION: - from_unit_size = unit_to_umax(optarg); - break; - - case TO_OPTION: - scale_to = ((scale_to_types)[__xargmatch_internal( - "--to", optarg, scale_to_args, (void const *)(scale_to_types), - sizeof *(scale_to_types), argmatch_die, 1)]); - break; - - case TO_UNIT_OPTION: - to_unit_size = unit_to_umax(optarg); - break; - - case ROUND_OPTION: - round_style = ((round_types)[__xargmatch_internal( - "--round", optarg, round_args, (void const *)(round_types), - sizeof *(round_types), argmatch_die, 1)]); - break; - - case GROUPING_OPTION: - grouping = 1; - break; - - case PADDING_OPTION: - if (xstrtol(optarg, ((void *)0), 10, &padding_width, "") != LONGINT_OK || - padding_width == 0 || padding_width < -0x7fffffffffffffffL) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid padding " - "value %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid padding value %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid padding value %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (padding_width < 0) { - padding_alignment = MBS_ALIGN_LEFT; - padding_width = -padding_width; - } - - break; - - case FIELD_OPTION: - if (n_frp) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "field specifications\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "multiple field specifications", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "multiple field specifications", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - set_fields(optarg, SETFLD_ALLOW_DASH); - break; - - case 'd': - - if (optarg[0] != '\0' && optarg[1] != '\0') - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"the delimiter must " - "be a single character\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "the delimiter must be a single character", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "the delimiter must be a single character", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - delimiter = optarg[0]; - break; - - case 'z': - line_delim = '\0'; - break; - - case SUFFIX_OPTION: - suffix = optarg; - break; - - case DEBUG_OPTION: - debug = 1; - break; - - case DEV_DEBUG_OPTION: - dev_debug = 1; - debug = 1; - break; - - case HEADER_OPTION: - if (optarg) { - if (xstrtoumax(optarg, ((void *)0), 10, &header, "") != LONGINT_OK || - header == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid header " - "value %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid header value %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid header value %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else { - header = 1; - } - break; - - case FORMAT_OPTION: - format_str = optarg; - break; - - case INVALID_OPTION: - inval_style = ((inval_types)[__xargmatch_internal( - "--invalid", optarg, inval_args, (void const *)(inval_types), - sizeof *(inval_types), argmatch_die, 1)]); - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "numfmt", "GNU coreutils", Version, ("Assaf Gordon"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (format_str != ((void *)0) && grouping) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"--grouping " - "cannot be combined with --format\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "--grouping cannot be combined with --format", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "--grouping cannot be combined with --format", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (debug && !locale_ok) - error(0, 0, dcgettext(((void *)0), "failed to set locale", 5)); - - if (debug && scale_from == scale_none && scale_to == scale_none && - !grouping && (padding_width == 0) && (format_str == ((void *)0))) - error(0, 0, dcgettext(((void *)0), "no conversion option specified", 5)); - - if (format_str) - parse_format_string(format_str); - - if (grouping) { - if (scale_to != scale_none) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"grouping " - "cannot be combined with --to\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "grouping cannot be combined with --to", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "grouping cannot be combined with --to", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (debug && (strlen(nl_langinfo(THOUSEP)) == 0)) - error(0, 0, - dcgettext(((void *)0), "grouping has no effect in this locale", 5)); - } - - setup_padding_buffer(padding_width); - auto_padding = (padding_width == 0 && delimiter == DELIMITER_DEFAULT); - - if (inval_style != inval_abort) - conv_exit_code = 0; - - if (argc > optind) { - if (debug && header) - error(0, 0, - dcgettext(((void *)0), "--header ignored with command-line input", - 5)); - - for (; optind < argc; optind++) - valid_numbers &= process_line(argv[optind], 1); - } else { - char *line = ((void *)0); - size_t line_allocated = 0; - ssize_t len; - - while (header-- && getdelim(&line, &line_allocated, line_delim, stdin) > 0) - fputs_unlocked(line, stdout); - - while ((len = getdelim(&line, &line_allocated, line_delim, stdin)) > 0) { - - _Bool newline = line[len - 1] == line_delim; - if (newline) - line[len - 1] = '\0'; - valid_numbers &= process_line(line, newline); - } - - if (ferror_unlocked(stdin)) - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading input", 5)); - } - - if (debug && !valid_numbers) - error(0, 0, - dcgettext(((void *)0), "failed to convert some of the input numbers", - 5)); - - int exit_status = 0; - if (!valid_numbers && inval_style != inval_warn && - inval_style != inval_ignore) - exit_status = EXIT_CONVERSION_WARNINGS; - - exit(exit_status); -} diff --git a/tests/source/coreutils/od.c b/tests/source/coreutils/od.c deleted file mode 100644 index c9d03e1..0000000 --- a/tests/source/coreutils/od.c +++ /dev/null @@ -1,9063 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int ftoastr(char *buf, size_t bufsize, int flags, int width, float x); -int dtoastr(char *buf, size_t bufsize, int flags, int width, double x); -int ldtoastr(char *buf, size_t bufsize, int flags, int width, long double x); - -int c_dtoastr(char *buf, size_t bufsize, int flags, int width, double x); -int c_ldtoastr(char *buf, size_t bufsize, int flags, int width, long double x); - -enum { - - FTOASTR_LEFT_JUSTIFY = 1, - - FTOASTR_ALWAYS_SIGNED = 2, - - FTOASTR_SPACE_POSITIVE = 4, - - FTOASTR_ZERO_PAD = 8, - - FTOASTR_UPPER_E = 16 -}; - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -extern int xprintf(char const *__restrict__ format, ...) - - __attribute__((__format__(__gnu_printf__, 1, 2))) - - ; - -extern int xvprintf(char const *__restrict__ format, va_list args) - - __attribute__((__format__(__gnu_printf__, 1, 0))) - - ; - -extern int xfprintf(FILE *__restrict__ stream, char const *__restrict__ format, - ...) - - __attribute__((__format__(__gnu_printf__, 2, 3))) - - ; - -extern int xvfprintf(FILE *__restrict__ stream, char const *__restrict__ format, - va_list args) - - __attribute__((__format__(__gnu_printf__, 2, 0))) - - ; -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -_Noreturn void xstrtol_fatal(enum strtol_error, int, char, - struct option const *, char const *); -typedef unsigned long long int unsigned_long_long_int; - -enum size_spec { - NO_SIZE, - CHAR, - SHORT, - INT, - LONG, - LONG_LONG, - - FLOAT_SINGLE, - FLOAT_DOUBLE, - FLOAT_LONG_DOUBLE, - N_SIZE_SPECS -}; - -enum output_format { - SIGNED_DECIMAL, - UNSIGNED_DECIMAL, - OCTAL, - HEXADECIMAL, - FLOATING_POINT, - NAMED_CHARACTER, - CHARACTER -}; - -enum { - FMT_BYTES_ALLOCATED = - (sizeof "%*.99" - 1 + - (((sizeof "ld") > - ((((sizeof "l" - "d") > ((((sizeof "l" - "o") > ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))) - ? (sizeof "l" - "o") - : ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))))) - ? (sizeof "l" - "d") - : ((((sizeof "l" - "o") > ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))) - ? (sizeof "l" - "o") - : ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))))))) - ? (sizeof "ld") - : ((((sizeof "l" - "d") > - ((((sizeof "l" - "o") > ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))) - ? (sizeof "l" - "o") - : ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))))) - ? (sizeof "l" - "d") - : ((((sizeof "l" - "o") > ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))) - ? (sizeof "l" - "o") - : ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))))))) - - ) -}; - -_Static_assert(sizeof(unsigned_long_long_int) * 8 / 3 <= 99, - "verify (" - "MAX_INTEGRAL_TYPE_SIZE * CHAR_BIT / 3 <= 99" - ")"); - -struct tspec { - enum output_format fmt; - enum size_spec size; - - void (*print_function)(size_t fields, size_t blank, void const *data, - char const *fmt, int width, int pad); - char fmt_string[FMT_BYTES_ALLOCATED]; - - _Bool hexl_mode_trailer; - int field_width; - int pad_width; -}; -static unsigned int const bytes_to_oct_digits[] = { - 0, 3, 6, 8, 11, 14, 16, 19, 22, 25, 27, 30, 32, 35, 38, 41, 43}; - -static unsigned int const bytes_to_signed_dec_digits[] = { - 1, 4, 6, 8, 11, 13, 16, 18, 20, 23, 25, 28, 30, 33, 35, 37, 40}; - -static unsigned int const bytes_to_unsigned_dec_digits[] = { - 0, 3, 5, 8, 10, 13, 15, 17, 20, 22, 25, 27, 29, 32, 34, 37, 39}; - -static unsigned int const bytes_to_hex_digits[] = { - 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32}; - -_Static_assert( - sizeof(unsigned_long_long_int) < - (sizeof(bytes_to_hex_digits) / sizeof *(bytes_to_hex_digits)), - "verify (" - "MAX_INTEGRAL_TYPE_SIZE < ARRAY_CARDINALITY (bytes_to_hex_digits)" - ")"); - -_Static_assert(sizeof bytes_to_oct_digits == sizeof bytes_to_signed_dec_digits, - "verify (" - "sizeof bytes_to_oct_digits == sizeof bytes_to_signed_dec_digits" - ")"); -_Static_assert( - sizeof bytes_to_oct_digits == sizeof bytes_to_unsigned_dec_digits, - "verify (" - "sizeof bytes_to_oct_digits == sizeof bytes_to_unsigned_dec_digits" - ")"); -_Static_assert(sizeof bytes_to_oct_digits == sizeof bytes_to_hex_digits, - "verify (" - "sizeof bytes_to_oct_digits == sizeof bytes_to_hex_digits" - ")"); - -static const int width_bytes[] = {-1, - sizeof(char), - sizeof(short int), - sizeof(int), - sizeof(long int), - sizeof(unsigned_long_long_int), - sizeof(float), - sizeof(double), - sizeof(long double)}; - -_Static_assert((sizeof(width_bytes) / sizeof *(width_bytes)) == N_SIZE_SPECS, - "verify (" - "ARRAY_CARDINALITY (width_bytes) == N_SIZE_SPECS" - ")"); - -static char const charname[33][4] = { - "nul", "soh", "stx", "etx", "eot", "enq", "ack", "bel", "bs", "ht", "nl", - "vt", "ff", "cr", "so", "si", "dle", "dc1", "dc2", "dc3", "dc4", "nak", - "syn", "etb", "can", "em", "sub", "esc", "fs", "gs", "rs", "us", "sp"}; - -static int address_base; - -static int address_pad_len; - -static size_t string_min; - -static _Bool flag_dump_strings; - -static _Bool traditional; - -static _Bool flag_pseudo_start; - -static uintmax_t pseudo_offset; - -static void (*format_address)(uintmax_t, char); - -static uintmax_t n_bytes_to_skip = 0; - -static _Bool limit_bytes_to_format = 0; - -static uintmax_t max_bytes_to_format; - -static uintmax_t end_offset; - -static _Bool abbreviate_duplicate_blocks = 1; - -static struct tspec *spec; - -static size_t n_specs; - -static size_t n_specs_allocated; - -static size_t bytes_per_block; - -static char const *input_filename; - -static char const *const *file_list; - -static char const *const default_file_list[] = {"-", ((void *)0)}; - -static FILE *in_stream; - -static _Bool have_read_stdin; - -static enum size_spec integral_type_size[sizeof(unsigned_long_long_int) + 1]; - -static enum size_spec fp_type_size[sizeof(long double) + 1]; - -static _Bool input_swap; - -static char const short_options[] = "A:aBbcDdeFfHhIij:LlN:OoS:st:vw::Xx"; - -enum { - TRADITIONAL_OPTION = 0x7f + 1, - ENDIAN_OPTION, -}; - -enum endian_type { endian_little, endian_big }; - -static char const *const endian_args[] = {"little", "big", ((void *)0) - -}; - -static enum endian_type const endian_types[] = {endian_little, endian_big}; - -static struct option const long_options[] = { - {"skip-bytes", 1, ((void *)0), 'j'}, - {"address-radix", 1, ((void *)0), 'A'}, - {"read-bytes", 1, ((void *)0), 'N'}, - {"format", 1, ((void *)0), 't'}, - {"output-duplicates", 0, ((void *)0), 'v'}, - {"strings", 2, ((void *)0), 'S'}, - {"traditional", 0, ((void *)0), TRADITIONAL_OPTION}, - {"width", 2, ((void *)0), 'w'}, - {"endian", 1, ((void *)0), ENDIAN_OPTION}, - - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [FILE]...\n or: %s " - "[-abcdfilosx]... [FILE] \n", - 5) - - , - program_name, program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "\nWrite an unambiguous representation, octal " - "bytes by default,\nof FILE to standard output. " - "With more than one FILE argument,\nconcatenate " - "them in the listed order to form the input.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - "\nIf first and second call formats both apply, the second format " - "is assumed\nif the last operand begins with + or (if there are 2 " - "operands) a digit.\nAn OFFSET operand means -j OFFSET. LABEL is " - "the pseudo-address\nat first byte printed, incremented when dump " - "is progressing.\nFor OFFSET and LABEL, a 0x or 0X prefix " - "indicates hexadecimal;\nsuffixes may be . for octal and b for " - "multiply by 512.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " -A, --address-radix=RADIX output format for file offsets; " - "RADIX is one\n of [doxn], for " - "Decimal, Octal, Hex or None\n --endian={big|little} swap " - "input bytes according the specified order\n -j, " - "--skip-bytes=BYTES skip BYTES input bytes first\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -N, --read-bytes=BYTES limit dump to BYTES input bytes\n " - "-S BYTES, --strings[=BYTES] output strings of at least BYTES " - "graphic chars;\n 3 is implied when " - "BYTES is not specified\n -t, --format=TYPE select " - "output format or formats\n -v, --output-duplicates do not " - "use * to mark line suppression\n -w[BYTES], --width[=BYTES] " - "output BYTES bytes per output line;\n " - " 32 is implied when BYTES is not specified\n --traditional " - " accept arguments in third form above\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\n\nTraditional format specifications may be intermixed; " - "they accumulate:\n -a same as -t a, select named " - "characters, ignoring high-order bit\n -b same as -t o1, " - "select octal bytes\n -c same as -t c, select printable " - "characters or backslash escapes\n -d same as -t u2, " - "select unsigned decimal 2-byte units\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -f same as -t fF, select floats\n -i same as -t dI, " - "select decimal ints\n -l same as -t dL, select decimal " - "longs\n -o same as -t o2, select octal 2-byte units\n " - "-s same as -t d2, select decimal 2-byte units\n -x " - "same as -t x2, select hexadecimal 2-byte units\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\n\nTYPE is made up of one or more of these specifications:\n a " - " named character, ignoring high-order bit\n c " - "printable character or backslash escape\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " d[SIZE] signed decimal, SIZE bytes per integer\n f[SIZE] " - "floating point, SIZE bytes per float\n o[SIZE] octal, SIZE " - "bytes per integer\n u[SIZE] unsigned decimal, SIZE bytes per " - "integer\n x[SIZE] hexadecimal, SIZE bytes per integer\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nSIZE is a number. For TYPE in [doux], SIZE may also be C " - "for\nsizeof(char), S for sizeof(short), I for sizeof(int) " - "or L for\nsizeof(long). If TYPE is f, SIZE may also be F " - "for sizeof(float), D\nfor sizeof(double) or L for " - "sizeof(long double).\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nAdding a z suffix to any type displays printable " - "characters at the end of\neach output line.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\n\nBYTES is hex with 0x or 0X prefix, and may have a multiplier " - "suffix:\n b 512\n KB 1000\n K 1024\n MB 1000*1000\n " - " M 1024*1024\nand so on for G, T, P, E, Z, Y.\nBinary prefixes " - "can be used, too: KiB=K, MiB=M, and so on.\n", - 5), - stdout); - emit_ancillary_info("od"); - } - exit(status); -} -static void print_s_char(size_t fields, size_t blank, void const *block, - char const *fmt_string, int width, int pad) { - signed char const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int adjusted_width = pad_remaining - next_pad + width; - signed char x; - if (input_swap && sizeof(signed char) > 1) { - size_t j; - union { - signed char x; - char b[sizeof(signed char)]; - } u; - for (j = 0; j < sizeof(signed char); j++) - u.b[j] = ((char const *)p)[sizeof(signed char) - 1 - j]; - x = u.x; - } else - x = *p; - p++; - xprintf(fmt_string, adjusted_width, x); - pad_remaining = next_pad; - } -} -static void print_char(size_t fields, size_t blank, void const *block, - char const *fmt_string, int width, int pad) { - unsigned char const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int adjusted_width = pad_remaining - next_pad + width; - unsigned char x; - if (input_swap && sizeof(unsigned char) > 1) { - size_t j; - union { - unsigned char x; - char b[sizeof(unsigned char)]; - } u; - for (j = 0; j < sizeof(unsigned char); j++) - u.b[j] = ((char const *)p)[sizeof(unsigned char) - 1 - j]; - x = u.x; - } else - x = *p; - p++; - xprintf(fmt_string, adjusted_width, x); - pad_remaining = next_pad; - } -} -static void print_s_short(size_t fields, size_t blank, void const *block, - char const *fmt_string, int width, int pad) { - short int const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int adjusted_width = pad_remaining - next_pad + width; - short int x; - if (input_swap && sizeof(short int) > 1) { - size_t j; - union { - short int x; - char b[sizeof(short int)]; - } u; - for (j = 0; j < sizeof(short int); j++) - u.b[j] = ((char const *)p)[sizeof(short int) - 1 - j]; - x = u.x; - } else - x = *p; - p++; - xprintf(fmt_string, adjusted_width, x); - pad_remaining = next_pad; - } -} -static void print_short(size_t fields, size_t blank, void const *block, - char const *fmt_string, int width, int pad) { - unsigned short int const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int adjusted_width = pad_remaining - next_pad + width; - unsigned short int x; - if (input_swap && sizeof(unsigned short int) > 1) { - size_t j; - union { - unsigned short int x; - char b[sizeof(unsigned short int)]; - } u; - for (j = 0; j < sizeof(unsigned short int); j++) - u.b[j] = ((char const *)p)[sizeof(unsigned short int) - 1 - j]; - x = u.x; - } else - x = *p; - p++; - xprintf(fmt_string, adjusted_width, x); - pad_remaining = next_pad; - } -} -static void print_int(size_t fields, size_t blank, void const *block, - char const *fmt_string, int width, int pad) { - unsigned int const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int adjusted_width = pad_remaining - next_pad + width; - unsigned int x; - if (input_swap && sizeof(unsigned int) > 1) { - size_t j; - union { - unsigned int x; - char b[sizeof(unsigned int)]; - } u; - for (j = 0; j < sizeof(unsigned int); j++) - u.b[j] = ((char const *)p)[sizeof(unsigned int) - 1 - j]; - x = u.x; - } else - x = *p; - p++; - xprintf(fmt_string, adjusted_width, x); - pad_remaining = next_pad; - } -} -static void print_long(size_t fields, size_t blank, void const *block, - char const *fmt_string, int width, int pad) { - unsigned long int const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int adjusted_width = pad_remaining - next_pad + width; - unsigned long int x; - if (input_swap && sizeof(unsigned long int) > 1) { - size_t j; - union { - unsigned long int x; - char b[sizeof(unsigned long int)]; - } u; - for (j = 0; j < sizeof(unsigned long int); j++) - u.b[j] = ((char const *)p)[sizeof(unsigned long int) - 1 - j]; - x = u.x; - } else - x = *p; - p++; - xprintf(fmt_string, adjusted_width, x); - pad_remaining = next_pad; - } -} -static void print_long_long(size_t fields, size_t blank, void const *block, - char const *fmt_string, int width, int pad) { - unsigned_long_long_int const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int adjusted_width = pad_remaining - next_pad + width; - unsigned_long_long_int x; - if (input_swap && sizeof(unsigned_long_long_int) > 1) { - size_t j; - union { - unsigned_long_long_int x; - char b[sizeof(unsigned_long_long_int)]; - } u; - for (j = 0; j < sizeof(unsigned_long_long_int); j++) - u.b[j] = ((char const *)p)[sizeof(unsigned_long_long_int) - 1 - j]; - x = u.x; - } else - x = *p; - p++; - xprintf(fmt_string, adjusted_width, x); - pad_remaining = next_pad; - } -} - -static void print_float(size_t fields, size_t blank, void const *block, - char const *fmt_string, int width, int pad) { - float const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int adjusted_width = pad_remaining - next_pad + width; - float x; - if (input_swap && sizeof(float) > 1) { - size_t j; - union { - float x; - char b[sizeof(float)]; - } u; - for (j = 0; j < sizeof(float); j++) - u.b[j] = ((char const *)p)[sizeof(float) - 1 - j]; - x = u.x; - } else - x = *p; - p++; - char buf[((1 + (((((24) * 1) * 146 + 484) / 485) + 1) + 16 + 1 + - (-100 < ((-37)) && (38) < 100 ? 3 - : -1000 < ((-37)) && (38) < 1000 ? 4 - : -10000 < ((-37)) && (38) < 10000 ? 5 - : -100000 < ((-37)) && (38) < 100000 ? 6 - : -1000000 < ((-37)) && (38) < 1000000 - ? 7 - : (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))))) + - 1)]; - ftoastr(buf, sizeof buf, 0, 0, x); - xprintf("%*s", adjusted_width, buf); - pad_remaining = next_pad; - } -} -static void print_double(size_t fields, size_t blank, void const *block, - char const *fmt_string, int width, int pad) { - double const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int adjusted_width = pad_remaining - next_pad + width; - double x; - if (input_swap && sizeof(double) > 1) { - size_t j; - union { - double x; - char b[sizeof(double)]; - } u; - for (j = 0; j < sizeof(double); j++) - u.b[j] = ((char const *)p)[sizeof(double) - 1 - j]; - x = u.x; - } else - x = *p; - p++; - char buf[((1 + (((((53) * 1) * 146 + 484) / 485) + 1) + 16 + 1 + - (-100 < ((-307)) && (308) < 100 ? 3 - : -1000 < ((-307)) && (308) < 1000 ? 4 - : -10000 < ((-307)) && (308) < 10000 ? 5 - : -100000 < ((-307)) && (308) < 100000 ? 6 - : -1000000 < ((-307)) && (308) < 1000000 - ? 7 - : (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))))) + - 1)]; - dtoastr(buf, sizeof buf, 0, 0, x); - xprintf("%*s", adjusted_width, buf); - pad_remaining = next_pad; - } -} -static void print_long_double(size_t fields, size_t blank, void const *block, - char const *fmt_string, int width, int pad) { - long double const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int adjusted_width = pad_remaining - next_pad + width; - long double x; - if (input_swap && sizeof(long double) > 1) { - size_t j; - union { - long double x; - char b[sizeof(long double)]; - } u; - for (j = 0; j < sizeof(long double); j++) - u.b[j] = ((char const *)p)[sizeof(long double) - 1 - j]; - x = u.x; - } else - x = *p; - p++; - char buf[((1 + (((((64) * 1) * 146 + 484) / 485) + 1) + 16 + 1 + - (-100 < ((-4931)) && (4932) < 100 ? 3 - : -1000 < ((-4931)) && (4932) < 1000 ? 4 - : -10000 < ((-4931)) && (4932) < 10000 ? 5 - : -100000 < ((-4931)) && (4932) < 100000 ? 6 - : -1000000 < ((-4931)) && (4932) < 1000000 - ? 7 - : (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))))) + - 1)]; - ldtoastr(buf, sizeof buf, 0, 0, x); - xprintf("%*s", adjusted_width, buf); - pad_remaining = next_pad; - } -} - -static void dump_hexl_mode_trailer(size_t n_bytes, char const *block) { - fputs_unlocked(" >", stdout); - for (size_t i = n_bytes; i > 0; i--) { - unsigned char c = *block++; - unsigned char c2 = - (((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISprint) ? c - : '.'); - putchar_unlocked(c2); - } - putchar_unlocked('<'); -} - -static void print_named_ascii(size_t fields, size_t blank, void const *block, - char const *unused_fmt_string, int width, - int pad) { - unsigned char const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - int masked_c = *p++ & 0x7f; - char const *s; - char buf[2]; - - if (masked_c == 127) - s = "del"; - else if (masked_c <= 040) - s = charname[masked_c]; - else { - buf[0] = masked_c; - buf[1] = 0; - s = buf; - } - - xprintf("%*s", pad_remaining - next_pad + width, s); - pad_remaining = next_pad; - } -} - -static void print_ascii(size_t fields, size_t blank, void const *block, - char const *unused_fmt_string, int width, int pad) { - unsigned char const *p = block; - uintmax_t i; - int pad_remaining = pad; - for (i = fields; blank < i; i--) { - int next_pad = pad * (i - 1) / fields; - unsigned char c = *p++; - char const *s; - char buf[4]; - - switch (c) { - case '\0': - s = "\\0"; - break; - - case '\a': - s = "\\a"; - break; - - case '\b': - s = "\\b"; - break; - - case '\f': - s = "\\f"; - break; - - case '\n': - s = "\\n"; - break; - - case '\r': - s = "\\r"; - break; - - case '\t': - s = "\\t"; - break; - - case '\v': - s = "\\v"; - break; - - default: - sprintf(buf, - (((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISprint) - ? "%c" - : "%03o"), - c); - s = buf; - } - - xprintf("%*s", pad_remaining - next_pad + width, s); - pad_remaining = next_pad; - } -} -static _Bool - -simple_strtoul(char const *s, char const **p, unsigned long int *val) { - unsigned long int sum; - - sum = 0; - while (((unsigned int)(*s) - '0' <= 9)) { - int c = *s++ - '0'; - if (sum > ((0x7fffffffffffffffL * 2UL + 1UL) - c) / 10) - return 0; - sum = sum * 10 + c; - } - *p = s; - *val = sum; - return 1; -} -static _Bool - -decode_one_format(char const *s_orig, char const *s, char const **next, - struct tspec *tspec) { - enum size_spec size_spec; - unsigned long int size; - enum output_format fmt; - void (*print_function)(size_t, size_t, void const *, char const *, int, int); - char const *p; - char c; - int field_width; - - ((void)sizeof((tspec != ((void *)0)) ? 1 : 0), __extension__({ - if (tspec != ((void *)0)) - ; - else - __assert_fail("tspec != NULL", "src/od.c", 648, - __extension__ __PRETTY_FUNCTION__); - })); - - switch (*s) { - case 'd': - case 'o': - case 'u': - case 'x': - c = *s; - ++s; - switch (*s) { - case 'C': - ++s; - size = sizeof(char); - break; - - case 'S': - ++s; - size = sizeof(short int); - break; - - case 'I': - ++s; - size = sizeof(int); - break; - - case 'L': - ++s; - size = sizeof(long int); - break; - - default: - if (!simple_strtoul(s, &p, &size)) { - - error(0, 0, dcgettext(((void *)0), "invalid type string %s", 5), - quote(s_orig)); - return 0; - } - if (p == s) - size = sizeof(int); - else { - if (sizeof(unsigned_long_long_int) < size || - integral_type_size[size] == NO_SIZE) { - error(0, 0, - dcgettext(((void *)0), - "invalid type string %s;\nthis system" - " doesn't provide a %lu-byte integral type", - 5) - - , - quote(s_orig), size); - return 0; - } - s = p; - } - break; - } - - size_spec = integral_type_size[size]; - - switch (c) { - case 'd': - fmt = SIGNED_DECIMAL; - field_width = bytes_to_signed_dec_digits[size]; - sprintf(tspec->fmt_string, "%%*%s", - ((size_spec) == LONG_LONG - ? ("l" - "d") - : ((size_spec) == LONG ? ("ld") : ("d")))); - break; - - case 'o': - fmt = OCTAL; - sprintf(tspec->fmt_string, "%%*.%d%s", - (field_width = bytes_to_oct_digits[size]), - ((size_spec) == LONG_LONG - ? ("l" - "o") - : ((size_spec) == LONG ? ("lo") : ("o")))); - break; - - case 'u': - fmt = UNSIGNED_DECIMAL; - field_width = bytes_to_unsigned_dec_digits[size]; - sprintf(tspec->fmt_string, "%%*%s", - ((size_spec) == LONG_LONG - ? ("l" - "u") - : ((size_spec) == LONG ? ("lu") : ("u")))); - break; - - case 'x': - fmt = HEXADECIMAL; - sprintf(tspec->fmt_string, "%%*.%d%s", - (field_width = bytes_to_hex_digits[size]), - ((size_spec) == LONG_LONG - ? ("l" - "x") - : ((size_spec) == LONG ? ("lx") : ("x")))); - break; - - default: - abort(); - } - - ((void)sizeof((strlen(tspec->fmt_string) < FMT_BYTES_ALLOCATED) ? 1 : 0), - __extension__({ - if (strlen(tspec->fmt_string) < FMT_BYTES_ALLOCATED) - ; - else - __assert_fail("strlen (tspec->fmt_string) < FMT_BYTES_ALLOCATED", - "src/od.c", 747, __extension__ __PRETTY_FUNCTION__); - })); - - switch (size_spec) { - case CHAR: - print_function = (fmt == SIGNED_DECIMAL ? print_s_char : print_char); - break; - - case SHORT: - print_function = (fmt == SIGNED_DECIMAL ? print_s_short : print_short); - break; - - case INT: - print_function = print_int; - break; - - case LONG: - print_function = print_long; - break; - - case LONG_LONG: - print_function = print_long_long; - break; - - default: - abort(); - } - break; - - case 'f': - fmt = FLOATING_POINT; - ++s; - switch (*s) { - case 'F': - ++s; - size = sizeof(float); - break; - - case 'D': - ++s; - size = sizeof(double); - break; - - case 'L': - ++s; - size = sizeof(long double); - break; - - default: - if (!simple_strtoul(s, &p, &size)) { - - error(0, 0, dcgettext(((void *)0), "invalid type string %s", 5), - quote(s_orig)); - return 0; - } - if (p == s) - size = sizeof(double); - else { - if (size > sizeof(long double) || fp_type_size[size] == NO_SIZE) { - error(0, 0, - - dcgettext(((void *)0), - "invalid type string %s;\n" - "this system doesn't provide a %lu-byte" - " floating point type", - 5) - - , - quote(s_orig), size); - return 0; - } - s = p; - } - break; - } - size_spec = fp_type_size[size]; - - { - struct lconv const *locale = localeconv(); - size_t decimal_point_len = - (locale->decimal_point[0] ? strlen(locale->decimal_point) : 1); - - switch (size_spec) { - case FLOAT_SINGLE: - print_function = print_float; - field_width = - (1 + (((((24) * 1) * 146 + 484) / 485) + 1) + decimal_point_len + - 1 + - (-100 < ((-37)) && (38) < 100 ? 3 - : -1000 < ((-37)) && (38) < 1000 ? 4 - : -10000 < ((-37)) && (38) < 10000 ? 5 - : -100000 < ((-37)) && (38) < 100000 ? 6 - : -1000000 < ((-37)) && (38) < 1000000 - ? 7 - : (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))))); - break; - - case FLOAT_DOUBLE: - print_function = print_double; - field_width = - (1 + (((((53) * 1) * 146 + 484) / 485) + 1) + decimal_point_len + - 1 + - (-100 < ((-307)) && (308) < 100 ? 3 - : -1000 < ((-307)) && (308) < 1000 ? 4 - : -10000 < ((-307)) && (308) < 10000 ? 5 - : -100000 < ((-307)) && (308) < 100000 ? 6 - : -1000000 < ((-307)) && (308) < 1000000 - ? 7 - : (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))))); - break; - - case FLOAT_LONG_DOUBLE: - print_function = print_long_double; - field_width = - (1 + (((((64) * 1) * 146 + 484) / 485) + 1) + decimal_point_len + - 1 + - (-100 < ((-4931)) && (4932) < 100 ? 3 - : -1000 < ((-4931)) && (4932) < 1000 ? 4 - : -10000 < ((-4931)) && (4932) < 10000 ? 5 - : -100000 < ((-4931)) && (4932) < 100000 ? 6 - : -1000000 < ((-4931)) && (4932) < 1000000 - ? 7 - : (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))))); - break; - - default: - abort(); - } - - break; - } - - case 'a': - ++s; - fmt = NAMED_CHARACTER; - size_spec = CHAR; - print_function = print_named_ascii; - field_width = 3; - break; - - case 'c': - ++s; - fmt = CHARACTER; - size_spec = CHAR; - print_function = print_ascii; - field_width = 3; - break; - - default: - error(0, 0, - dcgettext(((void *)0), "invalid character '%c' in type string %s", 5), - *s, quote(s_orig)); - return 0; - } - - tspec->size = size_spec; - tspec->fmt = fmt; - tspec->print_function = print_function; - - tspec->field_width = field_width; - tspec->hexl_mode_trailer = (*s == 'z'); - if (tspec->hexl_mode_trailer) - s++; - - if (next != ((void *)0)) - *next = s; - - return 1; -} -static _Bool - -open_next_file(void) { - - _Bool ok = 1; - - do { - input_filename = *file_list; - if (input_filename == ((void *)0)) - return ok; - ++file_list; - - if ((strcmp(input_filename, "-") == 0)) { - input_filename = dcgettext(((void *)0), "standard input", 5); - in_stream = stdin; - have_read_stdin = 1; - xset_binary_mode(0, 0); - } else { - in_stream = fopen(input_filename, (0 ? "rb" : "r")); - if (in_stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - input_filename)); - ok = 0; - } - } - } while (in_stream == ((void *)0)); - - if (limit_bytes_to_format && !flag_dump_strings) - setvbuf(in_stream, ((void *)0), 2, 0); - - return ok; -} -static _Bool - -check_and_close(int in_errno) { - - _Bool ok = 1; - - if (in_stream != ((void *)0)) { - if (!ferror_unlocked(in_stream)) - in_errno = 0; - if ((strcmp(file_list[-1], "-") == 0)) - clearerr_unlocked(in_stream); - else if (rpl_fclose(in_stream) != 0 && !in_errno) - in_errno = (*__errno_location()); - if (in_errno) { - error(0, in_errno, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - input_filename)); - ok = 0; - } - - in_stream = ((void *)0); - } - - if (ferror_unlocked(stdout)) { - error(0, 0, dcgettext(((void *)0), "write error", 5)); - ok = 0; - } - - return ok; -} - -static _Bool - -decode_format_string(char const *s) { - char const *s_orig = s; - - ((void)sizeof((s != ((void *)0)) ? 1 : 0), __extension__({ - if (s != ((void *)0)) - ; - else - __assert_fail("s != NULL", "src/od.c", 985, - __extension__ __PRETTY_FUNCTION__); - })); - - while (*s != '\0') { - char const *next; - - if (n_specs_allocated <= n_specs) - spec = ((!!sizeof(struct { - _Static_assert(sizeof *(spec) != 1, - "verify_expr (" - "sizeof *(spec) != 1" - ", " - "x2nrealloc (spec, &n_specs_allocated, sizeof *(spec))" - ")"); - int _gl_dummy; - })) - ? (x2nrealloc(spec, &n_specs_allocated, sizeof *(spec))) - : (x2nrealloc(spec, &n_specs_allocated, sizeof *(spec)))); - - if (!decode_one_format(s_orig, s, &next, &spec[n_specs])) - return 0; - - ((void)sizeof((s != next) ? 1 : 0), __extension__({ - if (s != next) - ; - else - __assert_fail("s != next", "src/od.c", 997, - __extension__ __PRETTY_FUNCTION__); - })); - s = next; - ++n_specs; - } - - return 1; -} -static _Bool - -skip(uintmax_t n_skip) { - - _Bool ok = 1; - int in_errno = 0; - - if (n_skip == 0) - return 1; - - while (in_stream != ((void *)0)) { - struct stat file_stats; - if (fstat(fileno(in_stream), &file_stats) == 0) { - - _Bool usable_size = usable_st_size(&file_stats); - if (usable_size && ((0 < (file_stats).st_blksize && - (file_stats).st_blksize <= ((size_t)-1) / 8 + 1) - ? (file_stats).st_blksize - : 512) < file_stats.st_size) { - if ((uintmax_t)file_stats.st_size < n_skip) - n_skip -= file_stats.st_size; - else { - if (rpl_fseeko(in_stream, n_skip, 1) != 0) { - in_errno = (*__errno_location()); - ok = 0; - } - n_skip = 0; - } - } - - else if (!usable_size && rpl_fseeko(in_stream, n_skip, 1) == 0) - n_skip = 0; - - else { - char buf[8192]; - size_t n_bytes_read, n_bytes_to_read = 8192; - - while (0 < n_skip) { - if (n_skip < n_bytes_to_read) - n_bytes_to_read = n_skip; - n_bytes_read = fread_unlocked(buf, 1, n_bytes_to_read, in_stream); - n_skip -= n_bytes_read; - if (n_bytes_read != n_bytes_to_read) { - if (ferror_unlocked(in_stream)) { - in_errno = (*__errno_location()); - ok = 0; - n_skip = 0; - break; - } - if (feof_unlocked(in_stream)) - break; - } - } - } - - if (n_skip == 0) - break; - } - - else { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - input_filename)); - ok = 0; - } - - ok &= check_and_close(in_errno); - - ok &= open_next_file(); - } - - if (n_skip != 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot skip " - "past end of combined input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot skip past end of combined input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot skip past end of combined input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok; -} - -static void format_address_none(uintmax_t address, char c) {} - -static void format_address_std(uintmax_t address, char c) { - char buf[((sizeof(uintmax_t) * 8 + 8 - 1) / 3) + 2]; - char *p = buf + sizeof buf; - char const *pbound; - - *--p = '\0'; - *--p = c; - pbound = p - address_pad_len; - - switch (address_base) { - case 8: - do - *--p = '0' + (address & 7); - while ((address >>= 3) != 0); - break; - - case 10: - do - *--p = '0' + (address % 10); - while ((address /= 10) != 0); - break; - - case 16: - do - *--p = "0123456789abcdef"[address & 15]; - while ((address >>= 4) != 0); - break; - } - - while (pbound < p) - *--p = '0'; - - fputs_unlocked(p, stdout); -} - -static void format_address_paren(uintmax_t address, char c) { - putchar_unlocked('('); - format_address_std(address, ')'); - if (c) - putchar_unlocked(c); -} - -static void format_address_label(uintmax_t address, char c) { - format_address_std(address, ' '); - format_address_paren(address + pseudo_offset, c); -} -static void write_block(uintmax_t current_offset, size_t n_bytes, - char const *prev_block, char const *curr_block) { - static _Bool first = 1; - static _Bool prev_pair_equal = 0; - - if (abbreviate_duplicate_blocks && !first && n_bytes == bytes_per_block && - (memcmp(prev_block, curr_block, bytes_per_block) == 0)) { - if (prev_pair_equal) { - - } else { - printf("*\n"); - prev_pair_equal = 1; - } - } else { - prev_pair_equal = 0; - for (size_t i = 0; i < n_specs; i++) { - int datum_width = width_bytes[spec[i].size]; - int fields_per_block = bytes_per_block / datum_width; - int blank_fields = (bytes_per_block - n_bytes) / datum_width; - if (i == 0) - format_address(current_offset, '\0'); - else - printf("%*s", address_pad_len, ""); - (*spec[i].print_function)(fields_per_block, blank_fields, curr_block, - spec[i].fmt_string, spec[i].field_width, - spec[i].pad_width); - if (spec[i].hexl_mode_trailer) { - - int field_width = spec[i].field_width; - int pad_width = (spec[i].pad_width * blank_fields / fields_per_block); - printf("%*s", blank_fields * field_width + pad_width, ""); - dump_hexl_mode_trailer(n_bytes, curr_block); - } - putchar_unlocked('\n'); - } - } - first = 0; -} -static _Bool - -read_char(int *c) { - - _Bool ok = 1; - - *c = (-1); - - while (in_stream != ((void *)0)) { - *c = fgetc(in_stream); - - if (*c != (-1)) - break; - - ok &= check_and_close((*__errno_location())); - - ok &= open_next_file(); - } - - return ok; -} -static _Bool - -read_block(size_t n, char *block, size_t *n_bytes_in_buffer) { - - _Bool ok = 1; - - ((void)sizeof((0 < n && n <= bytes_per_block) ? 1 : 0), __extension__({ - if (0 < n && n <= bytes_per_block) - ; - else - __assert_fail("0 < n && n <= bytes_per_block", "src/od.c", 1293, - __extension__ __PRETTY_FUNCTION__); - })); - - *n_bytes_in_buffer = 0; - - while (in_stream != ((void *)0)) { - size_t n_needed; - size_t n_read; - - n_needed = n - *n_bytes_in_buffer; - n_read = fread_unlocked(block + *n_bytes_in_buffer, 1, n_needed, in_stream); - - *n_bytes_in_buffer += n_read; - - if (n_read == n_needed) - break; - - ok &= check_and_close((*__errno_location())); - - ok &= open_next_file(); - } - - return ok; -} - -__attribute__((__pure__)) static int get_lcm(void) { - int l_c_m = 1; - - for (size_t i = 0; i < n_specs; i++) - l_c_m = lcm(l_c_m, width_bytes[spec[i].size]); - return l_c_m; -} - -static _Bool - -parse_old_offset(char const *s, uintmax_t *offset) { - int radix; - - if (*s == '\0') - return 0; - - if (s[0] == '+') - ++s; - - if (strchr(s, '.') != ((void *)0)) - radix = 10; - else { - if (s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) - radix = 16; - else - radix = 8; - } - - return xstrtoumax(s, ((void *)0), radix, offset, "Bb") == LONGINT_OK; -} -static _Bool - -dump(void) { - char *block[2]; - uintmax_t current_offset; - - _Bool idx = 0; - - _Bool ok = 1; - size_t n_bytes_read; - - block[0] = xnmalloc(2, bytes_per_block); - block[1] = block[0] + bytes_per_block; - - current_offset = n_bytes_to_skip; - - if (limit_bytes_to_format) { - while (1) { - size_t n_needed; - if (current_offset >= end_offset) { - n_bytes_read = 0; - break; - } - n_needed = (((end_offset - current_offset) < ((uintmax_t)bytes_per_block)) - ? (end_offset - current_offset) - : ((uintmax_t)bytes_per_block)) - - ; - ok &= read_block(n_needed, block[idx], &n_bytes_read); - if (n_bytes_read < bytes_per_block) - break; - - ((void)sizeof((n_bytes_read == bytes_per_block) ? 1 : 0), __extension__({ - if (n_bytes_read == bytes_per_block) - ; - else - __assert_fail("n_bytes_read == bytes_per_block", "src/od.c", 1404, - __extension__ __PRETTY_FUNCTION__); - })); - write_block(current_offset, n_bytes_read, block[!idx], block[idx]); - current_offset += n_bytes_read; - idx = !idx; - } - } else { - while (1) { - ok &= read_block(bytes_per_block, block[idx], &n_bytes_read); - if (n_bytes_read < bytes_per_block) - break; - - ((void)sizeof((n_bytes_read == bytes_per_block) ? 1 : 0), __extension__({ - if (n_bytes_read == bytes_per_block) - ; - else - __assert_fail("n_bytes_read == bytes_per_block", "src/od.c", 1418, - __extension__ __PRETTY_FUNCTION__); - })); - write_block(current_offset, n_bytes_read, block[!idx], block[idx]); - current_offset += n_bytes_read; - idx = !idx; - } - } - - if (n_bytes_read > 0) { - int l_c_m; - size_t bytes_to_write; - - l_c_m = get_lcm(); - - bytes_to_write = l_c_m * ((n_bytes_read + l_c_m - 1) / l_c_m); - - memset(block[idx] + n_bytes_read, 0, bytes_to_write - n_bytes_read); - write_block(current_offset, n_bytes_read, block[!idx], block[idx]); - current_offset += n_bytes_read; - } - - format_address(current_offset, '\n'); - - if (limit_bytes_to_format && current_offset >= end_offset) - ok &= check_and_close(0); - - free(block[0]); - - return ok; -} - -static _Bool - -dump_strings(void) { - size_t bufsize = (((100) > (string_min)) ? (100) : (string_min)); - char *buf = xmalloc(bufsize); - uintmax_t address = n_bytes_to_skip; - - _Bool ok = 1; - - while (1) { - size_t i; - int c; - - tryline: - - if (limit_bytes_to_format && - (end_offset < string_min || end_offset - string_min <= address)) - break; - - for (i = 0; i < string_min; i++) { - ok &= read_char(&c); - address++; - if (c < 0) { - free(buf); - return ok; - } - if (!((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISprint)) - - goto tryline; - buf[i] = c; - } - - while (!limit_bytes_to_format || address < end_offset) { - if (i == bufsize) { - buf = ((!!sizeof(struct { - _Static_assert(sizeof *(buf) == 1, "verify_expr (" - "sizeof *(buf) == 1" - ", " - "x2realloc (buf, &bufsize)" - ")"); - int _gl_dummy; - })) - ? (x2realloc(buf, &bufsize)) - : (x2realloc(buf, &bufsize))); - } - ok &= read_char(&c); - address++; - if (c < 0) { - free(buf); - return ok; - } - if (c == '\0') - break; - if (!((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISprint)) - goto tryline; - buf[i++] = c; - } - - buf[i] = 0; - format_address(address - i - 1, ' '); - - for (i = 0; (c = buf[i]); i++) { - switch (c) { - case '\a': - fputs_unlocked("\\a", stdout); - break; - - case '\b': - fputs_unlocked("\\b", stdout); - break; - - case '\f': - fputs_unlocked("\\f", stdout); - break; - - case '\n': - fputs_unlocked("\\n", stdout); - break; - - case '\r': - fputs_unlocked("\\r", stdout); - break; - - case '\t': - fputs_unlocked("\\t", stdout); - break; - - case '\v': - fputs_unlocked("\\v", stdout); - break; - - default: - putc_unlocked(c, stdout); - } - } - putchar_unlocked('\n'); - } - - free(buf); - - ok &= check_and_close(0); - return ok; -} - -int main(int argc, char **argv) { - int n_files; - size_t i; - int l_c_m; - size_t desired_width = 0; - - _Bool modern = 0; - - _Bool width_specified = 0; - - _Bool ok = 1; - size_t width_per_block = 0; - static char const multipliers[] = "bEGKkMmPTYZ0"; - - uintmax_t pseudo_start = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - for (i = 0; i <= sizeof(unsigned_long_long_int); i++) - integral_type_size[i] = NO_SIZE; - - integral_type_size[sizeof(char)] = CHAR; - integral_type_size[sizeof(short int)] = SHORT; - integral_type_size[sizeof(int)] = INT; - integral_type_size[sizeof(long int)] = LONG; - - integral_type_size[sizeof(unsigned_long_long_int)] = LONG_LONG; - - for (i = 0; i <= sizeof(long double); i++) - fp_type_size[i] = NO_SIZE; - - fp_type_size[sizeof(float)] = FLOAT_SINGLE; - - fp_type_size[sizeof(long double)] = FLOAT_LONG_DOUBLE; - fp_type_size[sizeof(double)] = FLOAT_DOUBLE; - - n_specs = 0; - n_specs_allocated = 0; - spec = ((void *)0); - - format_address = format_address_std; - address_base = 8; - address_pad_len = 7; - flag_dump_strings = 0; - - while (1) { - uintmax_t tmp; - enum strtol_error s_err; - int oi = -1; - int c = getopt_long(argc, argv, short_options, long_options, &oi); - if (c == -1) - break; - - switch (c) { - case 'A': - modern = 1; - switch (optarg[0]) { - case 'd': - format_address = format_address_std; - address_base = 10; - address_pad_len = 7; - break; - case 'o': - format_address = format_address_std; - address_base = 8; - address_pad_len = 7; - break; - case 'x': - format_address = format_address_std; - address_base = 16; - address_pad_len = 6; - break; - case 'n': - format_address = format_address_none; - address_pad_len = 0; - break; - default: - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "output address radix '%c'; it must be one character " - "from [doxn]\", 5), optarg[0]), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "invalid output address radix '%c'; it must " - "be one character from [doxn]", - 5), - optarg[0]), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "invalid output address radix '%c'; it must " - "be one character from [doxn]", - 5), - optarg[0]), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - break; - } - break; - - case 'j': - modern = 1; - s_err = xstrtoumax(optarg, ((void *)0), 0, &n_bytes_to_skip, multipliers); - if (s_err != LONGINT_OK) - xstrtol_fatal(s_err, oi, c, long_options, optarg); - break; - - case 'N': - modern = 1; - limit_bytes_to_format = 1; - - s_err = - xstrtoumax(optarg, ((void *)0), 0, &max_bytes_to_format, multipliers); - if (s_err != LONGINT_OK) - xstrtol_fatal(s_err, oi, c, long_options, optarg); - break; - - case 'S': - modern = 1; - if (optarg == ((void *)0)) - string_min = 3; - else { - s_err = xstrtoumax(optarg, ((void *)0), 0, &tmp, multipliers); - if (s_err != LONGINT_OK) - xstrtol_fatal(s_err, oi, c, long_options, optarg); - - if ((18446744073709551615UL) < tmp) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s is too " - "large\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "%s is too large", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "%s is too large", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - - string_min = tmp; - } - flag_dump_strings = 1; - break; - - case 't': - modern = 1; - ok &= decode_format_string(optarg); - break; - - case 'v': - modern = 1; - abbreviate_duplicate_blocks = 0; - break; - - case TRADITIONAL_OPTION: - traditional = 1; - break; - - case ENDIAN_OPTION: - switch (((endian_types)[__xargmatch_internal( - "--endian", optarg, endian_args, (void const *)(endian_types), - sizeof *(endian_types), argmatch_die, 1)])) { - case endian_big: - input_swap = !0; - break; - case endian_little: - input_swap = 0; - break; - } - break; - case 'a': - ok &= decode_format_string("a"); - break; - case 'b': - ok &= decode_format_string("o1"); - break; - case 'c': - ok &= decode_format_string("c"); - break; - case 'D': - ok &= decode_format_string("u4"); - break; - case 'd': - ok &= decode_format_string("u2"); - break; - case 'F': - case 'e': - ok &= decode_format_string("fD"); - break; - case 'f': - ok &= decode_format_string("fF"); - break; - case 'X': - case 'H': - ok &= decode_format_string("x4"); - break; - case 'i': - ok &= decode_format_string("dI"); - break; - case 'I': - case 'L': - case 'l': - ok &= decode_format_string("dL"); - break; - case 'O': - ok &= decode_format_string("o4"); - break; - case 'B': - case 'o': - ok &= decode_format_string("o2"); - break; - case 's': - ok &= decode_format_string("d2"); - break; - case 'h': - case 'x': - ok &= decode_format_string("x2"); - break; - - case 'w': - modern = 1; - width_specified = 1; - if (optarg == ((void *)0)) { - desired_width = 32; - } else { - uintmax_t w_tmp; - s_err = xstrtoumax(optarg, ((void *)0), 10, &w_tmp, ""); - if (s_err != LONGINT_OK) - xstrtol_fatal(s_err, oi, c, long_options, optarg); - if ((18446744073709551615UL) < w_tmp) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s is too " - "large\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "%s is too large", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "%s is too large", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - desired_width = w_tmp; - } - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "od", "GNU coreutils", Version, ("Jim Meyering"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - break; - } - } - - if (!ok) - return 1; - - if (flag_dump_strings && n_specs > 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"no type may be " - "specified when dumping strings\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "no type may be specified when dumping strings", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "no type may be specified when dumping strings", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - n_files = argc - optind; - if (!modern || traditional) { - uintmax_t o1; - uintmax_t o2; - - switch (n_files) { - case 1: - if ((traditional || argv[optind][0] == '+') && - parse_old_offset(argv[optind], &o1)) { - n_bytes_to_skip = o1; - --n_files; - ++argv; - } - break; - - case 2: - if ((traditional || argv[optind + 1][0] == '+' || - ((unsigned int)(argv[optind + 1][0]) - '0' <= 9)) && - parse_old_offset(argv[optind + 1], &o2)) { - if (traditional && parse_old_offset(argv[optind], &o1)) { - n_bytes_to_skip = o1; - flag_pseudo_start = 1; - pseudo_start = o2; - argv += 2; - n_files -= 2; - } else { - n_bytes_to_skip = o2; - --n_files; - argv[optind + 1] = argv[optind]; - ++argv; - } - } - break; - - case 3: - if (traditional && parse_old_offset(argv[optind + 1], &o1) && - parse_old_offset(argv[optind + 2], &o2)) { - n_bytes_to_skip = o1; - flag_pseudo_start = 1; - pseudo_start = o2; - argv[optind + 2] = argv[optind]; - argv += 2; - n_files -= 2; - } - break; - } - - if (traditional && 1 < n_files) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 1])); - error(0, 0, "%s", - - dcgettext(((void *)0), - "compatibility mode supports at most one file", 5)); - usage(1); - } - } - - if (flag_pseudo_start) { - if (format_address == format_address_none) { - address_base = 8; - address_pad_len = 7; - format_address = format_address_paren; - } else - format_address = format_address_label; - } - - if (limit_bytes_to_format) { - end_offset = n_bytes_to_skip + max_bytes_to_format; - if (end_offset < n_bytes_to_skip) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"skip-bytes " - "+ read-bytes is too large\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "skip-bytes + read-bytes is too large", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "skip-bytes + read-bytes is too large", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (n_specs == 0) - decode_format_string("oS"); - - if (n_files > 0) { - - file_list = (char const *const *)&argv[optind]; - } else { - - file_list = default_file_list; - } - - ok = open_next_file(); - if (in_stream == ((void *)0)) - goto cleanup; - - ok &= skip(n_bytes_to_skip); - if (in_stream == ((void *)0)) - goto cleanup; - - pseudo_offset = (flag_pseudo_start ? pseudo_start - n_bytes_to_skip : 0); - - l_c_m = get_lcm(); - - if (width_specified) { - if (desired_width != 0 && desired_width % l_c_m == 0) - bytes_per_block = desired_width; - else { - error(0, 0, - dcgettext(((void *)0), - "warning: invalid width %lu; using %d instead", 5), - (unsigned long int)desired_width, l_c_m); - bytes_per_block = l_c_m; - } - } else { - if (l_c_m < 16) - bytes_per_block = l_c_m * (16 / l_c_m); - else - bytes_per_block = l_c_m; - } - - for (i = 0; i < n_specs; i++) { - int fields_per_block = bytes_per_block / width_bytes[spec[i].size]; - int block_width = (spec[i].field_width + 1) * fields_per_block; - if (width_per_block < block_width) - width_per_block = block_width; - } - for (i = 0; i < n_specs; i++) { - int fields_per_block = bytes_per_block / width_bytes[spec[i].size]; - int block_width = spec[i].field_width * fields_per_block; - spec[i].pad_width = width_per_block - block_width; - } - ok &= (flag_dump_strings ? dump_strings() : dump()); - -cleanup: - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/operand2sig.c b/tests/source/coreutils/operand2sig.c deleted file mode 100644 index 343d6ac..0000000 --- a/tests/source/coreutils/operand2sig.c +++ /dev/null @@ -1,6816 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef enum { P_ALL, P_PID, P_PGID } idtype_t; -extern __pid_t wait(int *__stat_loc); -extern __pid_t waitpid(__pid_t __pid, int *__stat_loc, int __options); -extern int waitid(idtype_t __idtype, __id_t __id, siginfo_t *__infop, - int __options); - -struct rusage; - -extern __pid_t wait3(int *__stat_loc, int __options, struct rusage *__usage) - __attribute__((__nothrow__)); -extern __pid_t wait4(__pid_t __pid, int *__stat_loc, int __options, - struct rusage *__usage) __attribute__((__nothrow__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -int sig2str(int, char *); -int str2sig(char const *, int *); -extern int operand2sig(char const *operand, char *signame) - __attribute__((__nonnull__)); - -extern int operand2sig(char const *operand, char *signame) { - int signum; - - if (((unsigned int)(*operand) - '0' <= 9)) { - char *endp; - long int l = ((*__errno_location()) = 0, strtol(operand, &endp, 10)); - int i = l; - signum = - (operand == endp || *endp || (*__errno_location()) || i != l ? -1 : i); - - if (signum != -1) { - - signum &= signum >= 0xFF ? 0xFF : 0x7F; - } - } else { - - char *upcased = xstrdup(operand); - char *p; - for (p = upcased; *p; p++) - if (strchr("abcdefghijklmnopqrstuvwxyz", *p)) - *p += 'A' - 'a'; - - if (!(str2sig(upcased, &signum) == 0 || - (upcased[0] == 'S' && upcased[1] == 'I' && upcased[2] == 'G' && - str2sig(upcased + 3, &signum) == 0))) - signum = -1; - - free(upcased); - } - - if (signum < 0 || sig2str(signum, signame) != 0) { - error(0, 0, dcgettext(((void *)0), "%s: invalid signal", 5), - quote(operand)); - return -1; - } - - return signum; -} diff --git a/tests/source/coreutils/paste.c b/tests/source/coreutils/paste.c deleted file mode 100644 index a9aee0c..0000000 --- a/tests/source/coreutils/paste.c +++ /dev/null @@ -1,7269 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); -static _Bool have_read_stdin; - -static _Bool serial_merge; - -static char *delims; - -static char const *delim_end; - -static unsigned char line_delim = '\n'; - -static struct option const longopts[] = { - {"serial", 0, ((void *)0), 's'}, - {"delimiters", 1, ((void *)0), 'd'}, - {"zero-terminated", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; -static int collapse_escapes(char const *strptr) { - char *strout = xstrdup(strptr); - - _Bool backslash_at_end = 0; - - delims = strout; - - while (*strptr) { - if (*strptr != '\\') - *strout++ = *strptr++; - else { - switch (*++strptr) { - case '0': - *strout++ = '\0'; - break; - - case 'b': - *strout++ = '\b'; - break; - - case 'f': - *strout++ = '\f'; - break; - - case 'n': - *strout++ = '\n'; - break; - - case 'r': - *strout++ = '\r'; - break; - - case 't': - *strout++ = '\t'; - break; - - case 'v': - *strout++ = '\v'; - break; - - case '\\': - *strout++ = '\\'; - break; - - case '\0': - backslash_at_end = 1; - goto done; - - default: - *strout++ = *strptr; - break; - } - strptr++; - } - } - -done: - - delim_end = strout; - return backslash_at_end ? 1 : 0; -} - -static void write_error(void) { - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static inline void xputchar(char c) { - if (putchar_unlocked(c) < 0) - write_error(); -} - -static _Bool - -paste_parallel(size_t nfiles, char **fnamptr) { - - _Bool ok = 1; - - char *delbuf = xmalloc(nfiles + 2); - - FILE **fileptr = xnmalloc(nfiles + 1, sizeof *fileptr); - - size_t files_open; - - _Bool opened_stdin = 0; - - for (files_open = 0; files_open < nfiles; ++files_open) { - if ((strcmp(fnamptr[files_open], "-") == 0)) { - have_read_stdin = 1; - fileptr[files_open] = stdin; - } else { - fileptr[files_open] = fopen(fnamptr[files_open], "r"); - if (fileptr[files_open] == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "fnamptr[files_open])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - fnamptr[files_open])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - fnamptr[files_open])), - ((0) ? (void)0 : __builtin_unreachable())))); - else if (fileno(fileptr[files_open]) == 0) - opened_stdin = 1; - fadvise(fileptr[files_open], FADVISE_SEQUENTIAL); - } - } - - if (opened_stdin && have_read_stdin) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"standard " - "input is closed\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "standard input is closed", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "standard input is closed", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - while (files_open) { - - _Bool somedone = 0; - char const *delimptr = delims; - size_t delims_saved = 0; - - for (size_t i = 0; i < nfiles && files_open; i++) { - int chr; - int err; - - _Bool sometodo = 0; - - if (fileptr[i]) { - chr = getc_unlocked(fileptr[i]); - err = (*__errno_location()); - if (chr != (-1) && delims_saved) { - if (fwrite_unlocked(delbuf, 1, delims_saved, stdout) != delims_saved) - write_error(); - delims_saved = 0; - } - - while (chr != (-1)) { - sometodo = 1; - if (chr == line_delim) - break; - xputchar(chr); - chr = getc_unlocked(fileptr[i]); - err = (*__errno_location()); - } - } - - if (!sometodo) { - - if (fileptr[i]) { - if (!ferror_unlocked(fileptr[i])) - err = 0; - if (fileptr[i] == stdin) - clearerr_unlocked(fileptr[i]); - else if (rpl_fclose(fileptr[i]) == (-1) && !err) - err = (*__errno_location()); - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - fnamptr[i])); - ok = 0; - } - - fileptr[i] = ((void *)0); - files_open--; - } - - if (i + 1 == nfiles) { - - if (somedone) { - - if (delims_saved) { - if (fwrite_unlocked(delbuf, 1, delims_saved, stdout) != - delims_saved) - write_error(); - delims_saved = 0; - } - xputchar(line_delim); - } - continue; - } else { - - if (*delimptr != '\0') - delbuf[delims_saved++] = *delimptr; - if (++delimptr == delim_end) - delimptr = delims; - } - } else { - - somedone = 1; - - if (i + 1 != nfiles) { - if (chr != line_delim && chr != (-1)) - xputchar(chr); - if (*delimptr != '\0') - xputchar(*delimptr); - if (++delimptr == delim_end) - delimptr = delims; - } else { - - char c = (chr == (-1) ? line_delim : chr); - xputchar(c); - } - } - } - } - free(fileptr); - free(delbuf); - return ok; -} - -static _Bool - -paste_serial(size_t nfiles, char **fnamptr) { - - _Bool ok = 1; - int charnew, charold; - char const *delimptr; - FILE *fileptr; - - for (; nfiles; nfiles--, fnamptr++) { - int saved_errno; - - _Bool is_stdin = (strcmp(*fnamptr, "-") == 0); - if (is_stdin) { - have_read_stdin = 1; - fileptr = stdin; - } else { - fileptr = fopen(*fnamptr, "r"); - if (fileptr == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, *fnamptr)); - ok = 0; - continue; - } - fadvise(fileptr, FADVISE_SEQUENTIAL); - } - - delimptr = delims; - - charold = getc_unlocked(fileptr); - saved_errno = (*__errno_location()); - if (charold != (-1)) { - - while ((charnew = getc_unlocked(fileptr)) != (-1)) { - - if (charold == line_delim) { - if (*delimptr != '\0') - xputchar(*delimptr); - - if (++delimptr == delim_end) - delimptr = delims; - } else - xputchar(charold); - - charold = charnew; - } - saved_errno = (*__errno_location()); - - xputchar(charold); - } - - if (charold != line_delim) - xputchar(line_delim); - - if (!ferror_unlocked(fileptr)) - saved_errno = 0; - if (is_stdin) - clearerr_unlocked(fileptr); - else if (rpl_fclose(fileptr) != 0 && !saved_errno) - saved_errno = (*__errno_location()); - if (saved_errno) { - error(0, saved_errno, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, *fnamptr)); - ok = 0; - } - } - return ok; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Write lines consisting of the sequentially corresponding lines " - "from\neach FILE, separated by TABs, to standard output.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -d, --delimiters=LIST reuse characters from LIST " - "instead of TABs\n -s, --serial paste one file " - "at a time instead of in parallel\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero-terminated line delimiter is NUL, not newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - - emit_ancillary_info("paste"); - } - exit(status); -} - -int main(int argc, char **argv) { - int optc; - char const *delim_arg = "\t"; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - have_read_stdin = 0; - serial_merge = 0; - - while ((optc = getopt_long(argc, argv, "d:sz", longopts, ((void *)0))) != - -1) { - switch (optc) { - case 'd': - - delim_arg = (optarg[0] == '\0' ? "\\0" : optarg); - break; - - case 's': - serial_merge = 1; - break; - - case 'z': - line_delim = '\0'; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "paste", "GNU coreutils", Version, ("David M. Ihnat"), - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - int nfiles = argc - optind; - if (nfiles == 0) { - argv[optind] = bad_cast("-"); - nfiles++; - } - - if (collapse_escapes(delim_arg)) { - - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"delimiter list ends with " - "an unescaped backslash: %s\", 5), quotearg_n_style_colon (0, " - "c_maybe_quoting_style, delim_arg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "delimiter list ends with an unescaped backslash: %s", - 5), - quotearg_n_style_colon(0, c_maybe_quoting_style, delim_arg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "delimiter list ends with an unescaped backslash: %s", - 5), - quotearg_n_style_colon(0, c_maybe_quoting_style, delim_arg)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - _Bool ok = - ((serial_merge ? paste_serial : paste_parallel)(nfiles, &argv[optind])); - - free(delims); - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"-\"), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable())))); - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/pathchk.c b/tests/source/coreutils/pathchk.c deleted file mode 100644 index 26feeea..0000000 --- a/tests/source/coreutils/pathchk.c +++ /dev/null @@ -1,8322 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned int wint_t; - -typedef __mbstate_t mbstate_t; - -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -struct tm; - -extern wchar_t *wcscpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcscat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int wcscmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcsncmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcscasecmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int wcscasecmp_l(const wchar_t *__s1, const wchar_t *__s2, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp_l(const wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll_l(const wchar_t *__s1, const wchar_t *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm_l(wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcsdup(const wchar_t *__s) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(__builtin_free, 1))); -extern wchar_t *wcschr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsrchr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcschrnul(const wchar_t *__s, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcscspn(const wchar_t *__wcs, const wchar_t *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsspn(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcspbrk(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsstr(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcstok(wchar_t *__restrict __s, - const wchar_t *__restrict __delim, - wchar_t **__restrict __ptr) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcslen(const wchar_t *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); -extern wchar_t *wcswcs(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsnlen(const wchar_t *__s, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wmemchr(const wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern int wmemcmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wmemcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemset(wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmempcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t btowc(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int wctob(wint_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int mbsinit(const mbstate_t *__ps) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); - -extern size_t mbrtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n, mbstate_t *__restrict __p) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcrtomb(char *__restrict __s, wchar_t __wc, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t __mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbsrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbsnrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsnrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern int wcwidth(wchar_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int wcswidth(const wchar_t *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern double wcstod(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long double wcstold(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long int wcstol(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoq(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstouq(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -extern long int wcstol_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull_l(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern double wcstod_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern long double wcstold_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *wcpcpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcpncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern __FILE *open_wmemstream(wchar_t **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(rpl_fclose, 1))); - -extern int fwide(__FILE *__fp, int __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fwprintf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wprintf(const wchar_t *__restrict __format, ...); - -extern int swprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwprintf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwprintf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wscanf(const wchar_t *__restrict __format, ...); - -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_fwscanf") - - ; -extern int wscanf(const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_wscanf") - - ; -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_swscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwscanf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfwscanf") - - ; -extern int vwscanf(const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vwscanf") - - ; -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vswscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wint_t fgetwc(__FILE *__stream); -extern wint_t getwc(__FILE *__stream); - -extern wint_t getwchar(void); - -extern wint_t fputwc(wchar_t __wc, __FILE *__stream); -extern wint_t putwc(wchar_t __wc, __FILE *__stream); - -extern wint_t putwchar(wchar_t __wc); - -extern wchar_t *fgetws(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws(const wchar_t *__restrict __ws, __FILE *__restrict __stream); - -extern wint_t ungetwc(wint_t __wc, __FILE *__stream); -extern wint_t getwc_unlocked(__FILE *__stream); -extern wint_t getwchar_unlocked(void); - -extern wint_t fgetwc_unlocked(__FILE *__stream); - -extern wint_t fputwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwchar_unlocked(wchar_t __wc); -extern wchar_t *fgetws_unlocked(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws_unlocked(const wchar_t *__restrict __ws, - __FILE *__restrict __stream); - -extern size_t wcsftime(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsftime_l(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *__wmemcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmemcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmemcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemmove_chk(wchar_t *__s1, const wchar_t *__s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemmove_alias(wchar_t *__s1, const wchar_t *__s2, - size_t __n) __asm__("" - "wmemmove") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemmove_chk_warn(wchar_t *__s1, const wchar_t *__s2, - size_t __n, - size_t __ns1) __asm__("" - "__wmemmove_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemmove called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemmove_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmempcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmempcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmempcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmempcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmempcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmempcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmempcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmempcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemset_chk(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_alias(wchar_t *__s, wchar_t __c, - size_t __n) __asm__("" - "wmemset") - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_chk_warn(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) __asm__("" - "__wmemset_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemset called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemset(wchar_t *__s, wchar_t __c, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_alias(__s, __c, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_chk_warn(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))) - : __wmemset_chk(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscpy_alias(__dest, __src); -} - -extern wchar_t *__wcpcpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcpcpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcpcpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpcpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcpcpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcpcpy_alias(__dest, __src); -} - -extern wchar_t *__wcsncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcsncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcsncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcsncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcsncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcpncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcpncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcpncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcpncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcpncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcpncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcpncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscat(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscat_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscat_alias(__dest, __src); -} - -extern wchar_t *__wcsncat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncat(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcsncat_chk(__dest, __src, __n, sz / sizeof(wchar_t)); - return __wcsncat_alias(__dest, __src, __n); -} - -extern int __swprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int __swprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - ...) __asm__("" - "swprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -swprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - ...) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __swprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, - __builtin_va_arg_pack()); - return __swprintf_alias(__s, __n, __fmt, __builtin_va_arg_pack()); -} -extern int __vswprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int __vswprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) __asm__("" - "vswprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -vswprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __vswprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, __ap); - return __vswprintf_alias(__s, __n, __fmt, __ap); -} - -extern int __fwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, ...); -extern int __wprintf_chk(int __flag, const wchar_t *__restrict __format, ...); -extern int __vfwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, - __gnuc_va_list __ap); -extern int __vwprintf_chk(int __flag, const wchar_t *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -wprintf(const wchar_t *__restrict __fmt, ...) { - return __wprintf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) { - return __fwprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vwprintf(const wchar_t *__restrict __fmt, __gnuc_va_list __ap) { - return __vwprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfwprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern wchar_t *__fgetws_chk(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws") - - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_chk_warn(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgetws called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern wchar_t *__fgetws_unlocked_chk(wchar_t *__restrict __s, size_t __size, - int __n, __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_unlocked_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws_unlocked") - - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_unlocked_chk_warn( - wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgetws_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws_unlocked(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_unlocked_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern size_t __wcrtomb_chk(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __p, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern size_t __wcrtomb_alias(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __ps) __asm__("" - "wcrtomb") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcrtomb(char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) - -{ - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wcrtomb_chk(__s, __wchar, __ps, __builtin_object_size(__s, 2 > 1)); - return __wcrtomb_alias(__s, __wchar, __ps); -} - -extern size_t __mbsrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __mbsrtowcs_alias(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_chk_warn(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsrtowcs_chk(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __wcsrtombs_alias(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __wcsrtombs_chk_warn(char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_chk_warn(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsrtombs_chk(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern size_t __mbsnrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__mbsnrtowcs_alias(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsnrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsnrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsnrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsnrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsnrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_alias(__dst, __src, __nmc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_chk_warn(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsnrtowcs_chk(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsnrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__wcsnrtombs_alias(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsnrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t -__wcsnrtombs_chk_warn(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsnrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsnrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsnrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_alias(__dst, __src, __nwc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_chk_warn(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsnrtombs_chk(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrtowc(wchar_t *__restrict__ pwc, const char *__restrict__ s, - size_t n, mbstate_t *__restrict__ ps) - - ; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrlen(const char *__restrict__ s, size_t n, - mbstate_t *__restrict__ ps); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -static _Bool validate_file_name(char *, _Bool, _Bool); - -enum { PORTABILITY_OPTION = 0x7f + 1 }; - -static struct option const longopts[] = { - {"portability", 0, ((void *)0), PORTABILITY_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... NAME...\n", 5), - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Diagnose invalid or unportable file names.\n\n -p " - " check for most POSIX systems\n -P check for " - "empty names and leading \"-\"\n --portability check for " - "all POSIX systems (equivalent to -p -P)\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("pathchk"); - } - exit(status); -} - -int main(int argc, char **argv) { - - _Bool ok = 1; - - _Bool check_basic_portability = 0; - - _Bool check_extra_portability = 0; - int optc; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "+pP", longopts, ((void *)0))) != -1) { - switch (optc) { - case PORTABILITY_OPTION: - check_basic_portability = 1; - check_extra_portability = 1; - break; - - case 'p': - check_basic_portability = 1; - break; - - case 'P': - check_extra_portability = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "pathchk", "GNU coreutils", Version, ("Paul Eggert"), - ("David MacKenzie"), ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (optind == argc) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - for (; optind < argc; ++optind) - ok &= validate_file_name(argv[optind], check_basic_portability, - check_extra_portability); - - return ok ? 0 : 1; -} - -static _Bool - -no_leading_hyphen(char const *file) { - char const *p; - - for (p = file; (p = strchr(p, '-')); p++) - if (p == file || p[-1] == '/') { - error(0, 0, - dcgettext(((void *)0), "leading '-' in a component of file name %s", - 5), - quotearg_style(shell_escape_always_quoting_style, file)); - return 0; - } - - return 1; -} - -static _Bool - -portable_chars_only(char const *file, size_t filelen) { - size_t validlen = strspn(file, ("/" - "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - "abcdefghijklmnopqrstuvwxyz" - "0123456789._-")); - char const *invalid = file + validlen; - - if (*invalid) { - mbstate_t mbstate = { - 0, - }; - size_t charlen = rpl_mbrlen(invalid, filelen - validlen, &mbstate); - error(0, 0, - - dcgettext(((void *)0), "nonportable character %s in file name %s", 5), - quotearg_n_style_mem(1, locale_quoting_style, invalid, - (charlen <= 16 ? charlen : 1)), - quotearg_n_style(0, shell_escape_always_quoting_style, file)); - return 0; - } - - return 1; -} - -__attribute__((__pure__)) static char *component_start(char *f) { - while (*f == '/') - f++; - return f; -} - -__attribute__((__pure__)) static size_t component_len(char const *f) { - size_t len; - for (len = 1; f[len] != '/' && f[len]; len++) - continue; - return len; -} -static _Bool - -validate_file_name(char *file, _Bool check_basic_portability, - - _Bool check_extra_portability) { - size_t filelen = strlen(file); - - char *start; - - _Bool check_component_lengths; - - _Bool file_exists = 0; - - if (check_extra_portability && !no_leading_hyphen(file)) - return 0; - - if ((check_basic_portability || check_extra_portability) && filelen == 0) { - - error(0, 0, dcgettext(((void *)0), "empty file name", 5)); - return 0; - } - - if (check_basic_portability) { - if (!portable_chars_only(file, filelen)) - return 0; - } else { - - struct stat st; - if (lstat(file, &st) == 0) - file_exists = 1; - else if ((*__errno_location()) != 2 || filelen == 0) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } - } - - if (check_basic_portability || (!file_exists && 256 <= filelen)) { - size_t maxsize; - - if (check_basic_portability) - maxsize = 256; - else { - long int size; - char const *dir = (*file == '/' ? "/" : "."); - - (*__errno_location()) = 0; - size = pathconf(dir, _PC_PATH_MAX); - if (size < 0 && (*__errno_location()) != 0) { - error(0, (*__errno_location()), - - dcgettext(((void *)0), - "%s: unable to determine maximum file name length", 5), - dir); - return 0; - } - maxsize = - (((size) < (0x7fffffffffffffffL)) ? (size) : (0x7fffffffffffffffL)); - } - - if (maxsize <= filelen) { - unsigned long int len = filelen; - unsigned long int maxlen = maxsize - 1; - error(0, 0, - dcgettext(((void *)0), - "limit %lu exceeded by length %lu of file name %s", 5), - maxlen, len, - quotearg_style(shell_escape_always_quoting_style, file)); - return 0; - } - } - - check_component_lengths = check_basic_portability; - if (!check_component_lengths && !file_exists) { - for (start = file; *(start = component_start(start));) { - size_t length = component_len(start); - - if (14 < length) { - check_component_lengths = 1; - break; - } - - start += length; - } - } - - if (check_component_lengths) { - - size_t name_max = 14; - - size_t known_name_max = (check_basic_portability ? 14 : 0); - - for (start = file; *(start = component_start(start));) { - size_t length; - - if (known_name_max) - name_max = known_name_max; - else { - long int len; - char const *dir = (start == file ? "." : file); - char c = *start; - - (*__errno_location()) = 0; - *start = '\0'; - len = pathconf(dir, _PC_NAME_MAX); - *start = c; - if (0 <= len) - name_max = - (((len) < (0x7fffffffffffffffL)) ? (len) : (0x7fffffffffffffffL)); - else - switch ((*__errno_location())) { - case 0: - - name_max = (18446744073709551615UL); - break; - - case 2: - - known_name_max = name_max; - break; - - default: - *start = '\0'; - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, dir)); - *start = c; - return 0; - } - } - - length = component_len(start); - - if (name_max < length) { - unsigned long int len = length; - unsigned long int maxlen = name_max; - char c = start[len]; - start[len] = '\0'; - error(0, 0, - - dcgettext(((void *)0), - "limit %lu exceeded by length %lu " - "of file name component %s", - 5) - - , - maxlen, len, quote(start)); - start[len] = c; - return 0; - } - - start += length; - } - } - - return 1; -} diff --git a/tests/source/coreutils/pinky.c b/tests/source/coreutils/pinky.c deleted file mode 100644 index b31e942..0000000 --- a/tests/source/coreutils/pinky.c +++ /dev/null @@ -1,7479 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef long unsigned int size_t; - -typedef __gid_t gid_t; - -typedef __uid_t uid_t; - -struct passwd { - char *pw_name; - char *pw_passwd; - - __uid_t pw_uid; - __gid_t pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -extern void setpwent(void); - -extern void endpwent(void); - -extern struct passwd *getpwent(void); -extern struct passwd *fgetpwent(FILE *__stream) __attribute__((__nonnull__(1))); - -extern int putpwent(const struct passwd *__restrict __p, FILE *__restrict __f); - -extern struct passwd *getpwuid(__uid_t __uid); - -extern struct passwd *getpwnam(const char *__name) - __attribute__((__nonnull__(1))); -extern int getpwent_r(struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 4))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpwuid_r(__uid_t __uid, struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int getpwnam_r(const char *__restrict __name, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int fgetpwent_r(FILE *__restrict __stream, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int getpw(__uid_t __uid, char *__buffer); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -char *canon_host(char const *host) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -char *canon_host_r(char const *host, int *cherror) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -const char *ch_strerror(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern _Bool hard_locale(int category); - -struct lastlog { - - int32_t ll_time; - - char ll_line[32]; - char ll_host[256]; -}; - -struct exit_status { - short int e_termination; - short int e_exit; -}; - -struct utmp { - short int ut_type; - pid_t ut_pid; - char ut_line[32] __attribute__((__nonstring__)); - char ut_id[4] __attribute__((__nonstring__)); - char ut_user[32] __attribute__((__nonstring__)); - char ut_host[256] __attribute__((__nonstring__)); - struct exit_status ut_exit; - - int32_t ut_session; - struct { - int32_t tv_sec; - int32_t tv_usec; - } ut_tv; - - int32_t ut_addr_v6[4]; - char __glibc_reserved[20]; -}; -extern int login_tty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern void login(const struct utmp *__entry) - __attribute__((__nothrow__, __leaf__)); - -extern int logout(const char *__ut_line) __attribute__((__nothrow__, __leaf__)); - -extern void logwtmp(const char *__ut_line, const char *__ut_name, - const char *__ut_host) - __attribute__((__nothrow__, __leaf__)); - -extern void updwtmp(const char *__wtmp_file, const struct utmp *__utmp) - __attribute__((__nothrow__, __leaf__)); - -extern int utmpname(const char *__file) __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutent(void) __attribute__((__nothrow__, __leaf__)); - -extern void setutent(void) __attribute__((__nothrow__, __leaf__)); - -extern void endutent(void) __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutid(const struct utmp *__id) - __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutline(const struct utmp *__line) - __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *pututline(const struct utmp *__utmp_ptr) - __attribute__((__nothrow__, __leaf__)); - -extern int getutent_r(struct utmp *__buffer, struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -extern int getutid_r(const struct utmp *__id, struct utmp *__buffer, - struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -extern int getutline_r(const struct utmp *__line, struct utmp *__buffer, - struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -struct __exit_status { - - short int e_termination; - short int e_exit; -}; - -struct utmpx { - short int ut_type; - __pid_t ut_pid; - char ut_line[32] __attribute__((__nonstring__)); - char ut_id[4] __attribute__((__nonstring__)); - char ut_user[32] __attribute__((__nonstring__)); - char ut_host[256] __attribute__((__nonstring__)); - struct __exit_status ut_exit; - - __int32_t ut_session; - struct { - __int32_t tv_sec; - __int32_t tv_usec; - } ut_tv; - - __int32_t ut_addr_v6[4]; - char __glibc_reserved[20]; -}; -struct utmp; - -extern void setutxent(void); - -extern void endutxent(void); - -extern struct utmpx *getutxent(void); - -extern struct utmpx *getutxid(const struct utmpx *__id); - -extern struct utmpx *getutxline(const struct utmpx *__line); - -extern struct utmpx *pututxline(const struct utmpx *__utmpx); -extern int utmpxname(const char *__file); - -extern void updwtmpx(const char *__wtmpx_file, const struct utmpx *__utmpx); -extern void getutmp(const struct utmpx *__utmpx, struct utmp *__utmp); - -extern void getutmpx(const struct utmp *__utmp, struct utmpx *__utmpx); - -typedef struct utmpx STRUCT_UTMP; - -enum { UT_USER_SIZE = sizeof(((STRUCT_UTMP *)0)->ut_user) }; -enum { READ_UTMP_CHECK_PIDS = 1, READ_UTMP_USER_PROCESS = 2 }; - -char *extract_trimmed_name(const STRUCT_UTMP *ut) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -int read_utmp(char const *file, size_t *n_entries, STRUCT_UTMP **utmp_buf, - int options); -static _Bool include_idle = 1; - -static _Bool include_heading = 1; - -static _Bool include_fullname = 1; - -static _Bool include_project = 1; - -static _Bool include_plan = 1; - -static _Bool include_home_and_shell = 1; - -static _Bool do_short_format = 1; - -static _Bool include_where = 1; - -static char const *time_format; -static int time_format_width; - -static struct option const longopts[] = { - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -__attribute__((__pure__)) static size_t count_ampersands(char const *str) { - size_t count = 0; - do { - if (*str == '&') - count++; - } while (*str++); - return count; -} - -static char *create_fullname(char const *gecos_name, char const *user_name) { - size_t rsize = strlen(gecos_name) + 1; - char *result; - char *r; - size_t ampersands = count_ampersands(gecos_name); - - if (ampersands != 0) { - size_t ulen = strlen(user_name); - size_t product; - if (__builtin_mul_overflow(ulen, ampersands - 1, &product) || - __builtin_add_overflow(rsize, product, &rsize)) - xalloc_die(); - } - - r = result = xmalloc(rsize); - - while (*gecos_name) { - if (*gecos_name == '&') { - char const *uname = user_name; - if (((*__ctype_b_loc())[(int)((to_uchar(*uname)))] & - (unsigned short int)_ISlower)) - *r++ = (__extension__({ - int __res; - if (sizeof(to_uchar(*uname++)) > 1) { - if (__builtin_constant_p(to_uchar(*uname++))) { - int __c = (to_uchar(*uname++)); - __res = - __c < -128 || __c > 255 ? __c : (*__ctype_toupper_loc())[__c]; - } else - __res = toupper(to_uchar(*uname++)); - } else - __res = (*__ctype_toupper_loc())[(int)(to_uchar(*uname++))]; - __res; - })); - while (*uname) - *r++ = *uname++; - } else { - *r++ = *gecos_name; - } - - gecos_name++; - } - *r = 0; - - return result; -} - -static char const *idle_string(time_t when) { - static time_t now = 0; - static char buf[(((((sizeof(long int) * 8) - - (!((__typeof__(long int))0 < (__typeof__(long int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(long int))0 < (__typeof__(long int))-1))) + - 2]; - time_t seconds_idle; - - if (now == 0) - time(&now); - - seconds_idle = now - when; - if (seconds_idle < 60) - return " "; - if (seconds_idle < (24 * 60 * 60)) { - int hours = seconds_idle / (60 * 60); - int minutes = (seconds_idle % (60 * 60)) / 60; - sprintf(buf, "%02d:%02d", hours, minutes); - } else { - unsigned long int days = seconds_idle / (24 * 60 * 60); - sprintf(buf, "%lud", days); - } - return buf; -} - -static char const *time_string(const STRUCT_UTMP *utmp_ent) { - static char buf[(((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - sizeof "-%m-%d %H:%M"]; - - time_t t = ((utmp_ent)->ut_tv.tv_sec); - struct tm *tmp = localtime(&t); - - if (tmp) { - strftime(buf, sizeof buf, time_format, tmp); - return buf; - } else - return timetostr(t, buf); -} - -static void print_entry(const STRUCT_UTMP *utmp_ent) { - struct stat stats; - time_t last_change; - char mesg; - - char line[sizeof(utmp_ent->ut_line) + (sizeof("/dev/") - 1) + 1]; - char *p = line; - - if (!(((utmp_ent->ut_line)[0]) == '/')) - p = stpcpy(p, "/dev/"); - stzncpy(p, utmp_ent->ut_line, sizeof(utmp_ent->ut_line)); - - if (stat(line, &stats) == 0) { - mesg = (stats.st_mode & (0200 >> 3)) ? ' ' : '*'; - last_change = stats.st_atim.tv_sec; - } else { - mesg = '?'; - last_change = 0; - } - - printf("%-8.*s", UT_USER_SIZE, ((utmp_ent)->ut_user)); - - if (include_fullname) { - struct passwd *pw; - char name[UT_USER_SIZE + 1]; - - stzncpy(name, ((utmp_ent)->ut_user), UT_USER_SIZE); - pw = getpwnam(name); - if (pw == ((void *)0)) - - printf(" %19s", dcgettext(((void *)0), " ???", 5)); - else { - char *const comma = strchr(pw->pw_gecos, ','); - char *result; - - if (comma) - *comma = '\0'; - - result = create_fullname(pw->pw_gecos, pw->pw_name); - printf(" %-19.19s", result); - free(result); - } - } - - printf(" %c%-8.*s", mesg, (int)sizeof(utmp_ent->ut_line), utmp_ent->ut_line); - - if (include_idle) { - if (last_change) - printf(" %-6s", idle_string(last_change)); - else - - printf(" %-6s", dcgettext(((void *)0), "?????", 5)); - } - - printf(" %s", time_string(utmp_ent)); - - if (include_where && utmp_ent->ut_host[0]) { - char ut_host[sizeof(utmp_ent->ut_host) + 1]; - char *host = ((void *)0); - char *display = ((void *)0); - - stzncpy(ut_host, utmp_ent->ut_host, sizeof(utmp_ent->ut_host)); - - display = strchr(ut_host, ':'); - if (display) - *display++ = '\0'; - - if (*ut_host) - - host = canon_host(ut_host); - if (!host) - host = ut_host; - - if (display) - printf(" %s:%s", host, display); - else - printf(" %s", host); - - if (host != ut_host) - free(host); - } - - putchar_unlocked('\n'); -} - -static void print_long_entry(const char name[]) { - struct passwd *pw; - - pw = getpwnam(name); - - printf(dcgettext(((void *)0), "Login name: ", 5)); - printf("%-28s", name); - - printf(dcgettext(((void *)0), "In real life: ", 5)); - if (pw == ((void *)0)) { - - printf(" %s", dcgettext(((void *)0), "???\n", 5)); - return; - } else { - char *const comma = strchr(pw->pw_gecos, ','); - char *result; - - if (comma) - *comma = '\0'; - - result = create_fullname(pw->pw_gecos, pw->pw_name); - printf(" %s", result); - free(result); - } - - putchar_unlocked('\n'); - - if (include_home_and_shell) { - printf(dcgettext(((void *)0), "Directory: ", 5)); - printf("%-29s", pw->pw_dir); - printf(dcgettext(((void *)0), "Shell: ", 5)); - printf(" %s", pw->pw_shell); - putchar_unlocked('\n'); - } - - if (include_project) { - FILE *stream; - char buf[1024]; - char const *const baseproject = "/.project"; - char *const project = xmalloc(strlen(pw->pw_dir) + strlen(baseproject) + 1); - stpcpy(stpcpy(project, pw->pw_dir), baseproject); - - stream = fopen(project, "r"); - if (stream) { - size_t bytes; - - printf(dcgettext(((void *)0), "Project: ", 5)); - - while ((bytes = fread_unlocked(buf, 1, sizeof(buf), stream)) > 0) - fwrite_unlocked(buf, 1, bytes, stdout); - - rpl_fclose(stream); - } - - free(project); - } - - if (include_plan) { - FILE *stream; - char buf[1024]; - char const *const baseplan = "/.plan"; - char *const plan = xmalloc(strlen(pw->pw_dir) + strlen(baseplan) + 1); - stpcpy(stpcpy(plan, pw->pw_dir), baseplan); - - stream = fopen(plan, "r"); - if (stream) { - size_t bytes; - - printf(dcgettext(((void *)0), "Plan:\n", 5)); - - while ((bytes = fread_unlocked(buf, 1, sizeof(buf), stream)) > 0) - fwrite_unlocked(buf, 1, bytes, stdout); - - rpl_fclose(stream); - } - - free(plan); - } - - putchar_unlocked('\n'); -} - -static void print_heading(void) { - printf("%-8s", dcgettext(((void *)0), "Login", 5)); - if (include_fullname) - printf(" %-19s", dcgettext(((void *)0), "Name", 5)); - printf(" %-9s", dcgettext(((void *)0), " TTY", 5)); - if (include_idle) - printf(" %-6s", dcgettext(((void *)0), "Idle", 5)); - printf(" %-*s", time_format_width, dcgettext(((void *)0), "When", 5)); - - if (include_where) - printf(" %s", dcgettext(((void *)0), "Where", 5)); - - putchar_unlocked('\n'); -} - -static void scan_entries(size_t n, const STRUCT_UTMP *utmp_buf, - const int argc_names, char *const argv_names[]) { - if (hard_locale(2)) { - time_format = "%Y-%m-%d %H:%M"; - time_format_width = 4 + 1 + 2 + 1 + 2 + 1 + 2 + 1 + 2; - } else { - time_format = "%b %e %H:%M"; - time_format_width = 3 + 1 + 2 + 1 + 2 + 1 + 2; - } - - if (include_heading) - print_heading(); - - while (n--) { - if ((((utmp_buf)->ut_user)[0] && - (((utmp_buf)->ut_type == (7)) || - (0 && ((utmp_buf)->ut_tv.tv_sec) != 0)))) { - if (argc_names) { - for (int i = 0; i < argc_names; i++) - if ((strncmp(((utmp_buf)->ut_user), argv_names[i], UT_USER_SIZE) == - 0)) { - print_entry(utmp_buf); - break; - } - } else - print_entry(utmp_buf); - } - utmp_buf++; - } -} - -static void short_pinky(char const *filename, const int argc_names, - char *const argv_names[]) { - size_t n_users; - STRUCT_UTMP *utmp_buf = ((void *)0); - - if (read_utmp(filename, &n_users, &utmp_buf, 0) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, filename)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - filename)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - filename)), - ((0) ? (void)0 : __builtin_unreachable())))); - - scan_entries(n_users, utmp_buf, argc_names, argv_names); - exit(0); -} - -static void long_pinky(const int argc_names, char *const argv_names[]) { - for (int i = 0; i < argc_names; i++) - print_long_entry(argv_names[i]); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [USER]...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "\n -l produce long format output for the " - "specified USERs\n -b omit the user's home " - "directory and shell in long format\n -h omit " - "the user's project file in long format\n -p " - "omit the user's plan file in long format\n -s " - "do short format output, this is the default\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -f omit the line of column headings in short " - "format\n -w omit the user's full name in " - "short format\n -i omit the user's full name " - "and remote host in short format\n -q omit the " - "user's full name, remote host and idle time\n " - " in short format\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nA lightweight 'finger' program; print user " - "information.\nThe utmp file will be %s.\n", - 5) - - , - "/var/run/utmp"); - emit_ancillary_info("pinky"); - } - exit(status); -} - -int main(int argc, char **argv) { - int optc; - int n_users; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "sfwiqbhlp", longopts, ((void *)0))) != - -1) { - switch (optc) { - case 's': - do_short_format = 1; - break; - - case 'l': - do_short_format = 0; - break; - - case 'f': - include_heading = 0; - break; - - case 'w': - include_fullname = 0; - break; - - case 'i': - include_fullname = 0; - - include_where = 0; - - break; - - case 'q': - include_fullname = 0; - - include_where = 0; - - include_idle = 0; - break; - - case 'h': - include_project = 0; - break; - - case 'p': - include_plan = 0; - break; - - case 'b': - include_home_and_shell = 0; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "pinky", "GNU coreutils", Version, - ("Joseph Arceneaux"), ("David MacKenzie"), ("Kaveh Ghazi"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - n_users = argc - optind; - - if (!do_short_format && n_users == 0) { - error(0, 0, - dcgettext(((void *)0), - "no username specified; at least one must be specified " - "when using -l", - 5) - - ); - usage(1); - } - - if (do_short_format) - short_pinky("/var/run/utmp", n_users, argv + optind); - else - long_pinky(n_users, argv + optind); - - return 0; -} diff --git a/tests/source/coreutils/pr.c b/tests/source/coreutils/pr.c deleted file mode 100644 index 171f2e0..0000000 --- a/tests/source/coreutils/pr.c +++ /dev/null @@ -1,8946 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); -extern _Bool hard_locale(int category); -extern int gnu_mbswidth(const char *string, int flags); - -extern int mbsnwidth(const char *buf, size_t nbytes, int flags); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -size_t nstrftime(char *__restrict__, size_t, char const *, struct tm const *, - timezone_t __tz, int __ns); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -_Noreturn void xstrtol_fatal(enum strtol_error, int, char, - struct option const *, char const *); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -struct COLUMN; -struct COLUMN { - FILE *fp; - char const *name; - enum { - OPEN, - FF_FOUND, - - ON_HOLD, - CLOSED - } status; - - _Bool (*print_func)(struct COLUMN *); - - void (*char_func)(char); - - int current_line; - int lines_stored; - int lines_to_print; - int start_position; - - _Bool numbered; - - _Bool full_page_printed; -}; - -typedef struct COLUMN COLUMN; - -static int char_to_clump(char c); -static _Bool read_line(COLUMN *p); -static _Bool print_page(void); -static _Bool print_stored(COLUMN *p); -static _Bool open_file(char *name, COLUMN *p); -static _Bool skip_to_page(uintmax_t page); -static void print_header(void); -static void pad_across_to(int position); -static void add_line_number(COLUMN *p); -static void getoptnum(char const *n_str, int min, int *num, char const *errfmt); -static void getoptarg(char *arg, char switch_char, char *character, - int *number); -static void print_files(int number_of_files, char **av); -static void init_parameters(int number_of_files); -static void init_header(char const *filename, int desc); -static _Bool init_fps(int number_of_files, char **av); -static void init_funcs(void); -static void init_store_cols(void); -static void store_columns(void); -static void balance(int total_stored); -static void store_char(char c); -static void pad_down(unsigned int lines); -static void read_rest_of_line(COLUMN *p); -static void skip_read(COLUMN *p, int column_number); -static void print_char(char c); -static void cleanup(void); -static void print_sep_string(void); -static void separator_string(char const *optarg_S); - -static COLUMN *column_vector; - -static char *buff; - -static unsigned int buff_current; - -static size_t buff_allocated; - -static int *line_vector; - -static int *end_vector; - -static _Bool parallel_files = 0; - -static _Bool align_empty_cols; - -static _Bool empty_line; - -static _Bool FF_only; - -static _Bool explicit_columns = 0; - -static _Bool extremities = 1; - -static _Bool keep_FF = 0; -static _Bool print_a_FF = 0; - -static _Bool print_a_header; - -static _Bool use_form_feed = 0; - -static _Bool have_read_stdin = 0; - -static _Bool print_across_flag = 0; - -static _Bool storing_columns = 1; - -static _Bool balance_columns = 0; - -static int lines_per_page = 66; - -enum { lines_per_header = 5 }; -static int lines_per_body; -enum { lines_per_footer = 5 }; - -static int chars_per_line = 72; - -static _Bool truncate_lines = 0; - -static _Bool join_lines = 0; - -static int chars_per_column; - -static _Bool untabify_input = 0; - -static char input_tab_char = '\t'; - -static int chars_per_input_tab = 8; - -static _Bool tabify_output = 0; - -static char output_tab_char = '\t'; - -static int chars_per_output_tab = 8; - -static int spaces_not_printed; - -static int chars_per_margin = 0; - -static int output_position; - -static int input_position; - -static _Bool failed_opens = 0; -static int columns = 1; - -static uintmax_t first_page_number = 0; -static uintmax_t last_page_number = (18446744073709551615UL); - -static int files_ready_to_read = 0; - -static uintmax_t page_number; -static int line_number; - -static _Bool numbered_lines = 0; - -static char number_separator = '\t'; - -static int line_count = 1; - -static _Bool skip_count = 1; - -static int start_line_num = 1; - -static int chars_per_number = 5; - -static int number_width; - -static char *number_buff; - -static _Bool use_esc_sequence = 0; - -static _Bool use_cntrl_prefix = 0; - -static _Bool double_space = 0; - -static int total_files = 0; - -static _Bool ignore_failed_opens = 0; - -static _Bool use_col_separator = 0; - -static char const *col_sep_string = ""; -static int col_sep_length = 0; -static char *column_separator = (char *)" "; -static char *line_separator = (char *)"\t"; - -static int separators_not_printed; - -static int padding_not_printed; - -static _Bool pad_vertically; - -static char *custom_header; - -static char const *date_format; - -static timezone_t localtz; - -static char *date_text; -static char const *file_text; - -static int header_width_available; - -static char *clump_buff; - -static _Bool last_line = 0; - -enum { COLUMNS_OPTION = 0x7f + 1, PAGES_OPTION }; - -static char const short_options[] = - "-0123456789D:FJN:S::TW:abcde::fh:i::l:mn::o:rs::tvw:"; - -static struct option const long_options[] = { - {"pages", 1, ((void *)0), PAGES_OPTION}, - {"columns", 1, ((void *)0), COLUMNS_OPTION}, - {"across", 0, ((void *)0), 'a'}, - {"show-control-chars", 0, ((void *)0), 'c'}, - {"double-space", 0, ((void *)0), 'd'}, - {"date-format", 1, ((void *)0), 'D'}, - {"expand-tabs", 2, ((void *)0), 'e'}, - {"form-feed", 0, ((void *)0), 'f'}, - {"header", 1, ((void *)0), 'h'}, - {"output-tabs", 2, ((void *)0), 'i'}, - {"join-lines", 0, ((void *)0), 'J'}, - {"length", 1, ((void *)0), 'l'}, - {"merge", 0, ((void *)0), 'm'}, - {"number-lines", 2, ((void *)0), 'n'}, - {"first-line-number", 1, ((void *)0), 'N'}, - {"indent", 1, ((void *)0), 'o'}, - {"no-file-warnings", 0, ((void *)0), 'r'}, - {"separator", 2, ((void *)0), 's'}, - {"sep-string", 2, ((void *)0), 'S'}, - {"omit-header", 0, ((void *)0), 't'}, - {"omit-pagination", 0, ((void *)0), 'T'}, - {"show-nonprinting", 0, ((void *)0), 'v'}, - {"width", 1, ((void *)0), 'w'}, - {"page-width", 1, ((void *)0), 'W'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static void integer_overflow(void) { - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"integer " - "overflow\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "integer overflow", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "integer overflow", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -__attribute__((__pure__)) static unsigned int cols_ready_to_print(void) { - COLUMN *q; - unsigned int i; - unsigned int n; - - n = 0; - for (q = column_vector, i = 0; i < columns; ++q, ++i) - if (q->status == OPEN || q->status == FF_FOUND || - (storing_columns && q->lines_stored > 0 && q->lines_to_print > 0)) - ++n; - return n; -} - -static _Bool - -first_last_page(int oi, char c, char const *pages) { - char *p; - uintmax_t first; - uintmax_t last = (18446744073709551615UL); - strtol_error err = xstrtoumax(pages, &p, 10, &first, ""); - if (err != LONGINT_OK && err != LONGINT_INVALID_SUFFIX_CHAR) - xstrtol_fatal(err, oi, c, long_options, pages); - - if (p == pages || !first) - return 0; - - if (*p == ':') { - char const *p1 = p + 1; - err = xstrtoumax(p1, &p, 10, &last, ""); - if (err != LONGINT_OK) - xstrtol_fatal(err, oi, c, long_options, pages); - if (p1 == p || last < first) - return 0; - } - - if (*p) - return 0; - - first_page_number = first; - last_page_number = last; - return 1; -} - -static void parse_column_count(char const *s) { - getoptnum(s, 1, &columns, - dcgettext(((void *)0), "invalid number of columns", 5)); - explicit_columns = 1; -} - -static void separator_string(char const *optarg_S) { - size_t len = strlen(optarg_S); - if (0x7fffffff < len) - integer_overflow(); - col_sep_length = len; - col_sep_string = optarg_S; -} - -int main(int argc, char **argv) { - unsigned int n_files; - - _Bool old_options = 0; - - _Bool old_w = 0; - - _Bool old_s = 0; - char **file_names; - - char *column_count_string = ((void *)0); - size_t n_digits = 0; - size_t n_alloc = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - n_files = 0; - file_names = (argc > 1 ? xnmalloc(argc - 1, sizeof(char *)) : ((void *)0)); - - while (1) { - int oi = -1; - int c = getopt_long(argc, argv, short_options, long_options, &oi); - if (c == -1) - break; - - if (((unsigned int)(c) - '0' <= 9)) { - - if (n_digits + 1 >= n_alloc) - column_count_string = - ((!!sizeof(struct { - _Static_assert(sizeof *(column_count_string) == 1, - "verify_expr (" - "sizeof *(column_count_string) == 1" - ", " - "x2realloc (column_count_string, &n_alloc)" - ")"); - int _gl_dummy; - })) - ? (x2realloc(column_count_string, &n_alloc)) - : (x2realloc(column_count_string, &n_alloc))); - column_count_string[n_digits++] = c; - column_count_string[n_digits] = '\0'; - continue; - } - - n_digits = 0; - - switch (c) { - case 1: - - if (!(first_page_number == 0 && *optarg == '+' && - first_last_page(-2, '+', optarg + 1))) - file_names[n_files++] = optarg; - break; - - case PAGES_OPTION: { - if (!optarg) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), " - "\"'--pages=FIRST_PAGE[:LAST_PAGE]' missing " - "argument\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - else if (!first_last_page(oi, 0, optarg)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid page " - "range %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid page range %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid page range %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - break; - } - - case COLUMNS_OPTION: { - parse_column_count(optarg); - - free(column_count_string); - column_count_string = ((void *)0); - n_alloc = 0; - break; - } - - case 'a': - print_across_flag = 1; - storing_columns = 0; - break; - case 'b': - balance_columns = 1; - break; - case 'c': - use_cntrl_prefix = 1; - break; - case 'd': - double_space = 1; - break; - case 'D': - date_format = optarg; - break; - case 'e': - if (optarg) - getoptarg(optarg, 'e', &input_tab_char, &chars_per_input_tab); - - untabify_input = 1; - break; - case 'f': - case 'F': - use_form_feed = 1; - break; - case 'h': - custom_header = optarg; - break; - case 'i': - if (optarg) - getoptarg(optarg, 'i', &output_tab_char, &chars_per_output_tab); - - tabify_output = 1; - break; - case 'J': - join_lines = 1; - break; - case 'l': - getoptnum(optarg, 1, &lines_per_page, - - dcgettext(((void *)0), - "'-l PAGE_LENGTH' invalid number of lines", 5)); - break; - case 'm': - parallel_files = 1; - storing_columns = 0; - break; - case 'n': - numbered_lines = 1; - if (optarg) - getoptarg(optarg, 'n', &number_separator, &chars_per_number); - break; - case 'N': - skip_count = 0; - getoptnum(optarg, (-0x7fffffff - 1), &start_line_num, - - dcgettext(((void *)0), - "'-N NUMBER' invalid starting line number", 5)); - break; - case 'o': - getoptnum(optarg, 0, &chars_per_margin, - - dcgettext(((void *)0), "'-o MARGIN' invalid line offset", 5)); - break; - case 'r': - ignore_failed_opens = 1; - break; - case 's': - old_options = 1; - old_s = 1; - if (!use_col_separator && optarg) - separator_string(optarg); - break; - case 'S': - old_s = 0; - - col_sep_string = ""; - col_sep_length = 0; - use_col_separator = 1; - if (optarg) - separator_string(optarg); - break; - case 't': - extremities = 0; - keep_FF = 1; - break; - case 'T': - extremities = 0; - keep_FF = 0; - break; - case 'v': - use_esc_sequence = 1; - break; - case 'w': - old_options = 1; - old_w = 1; - { - int tmp_cpl; - getoptnum(optarg, 1, &tmp_cpl, - - dcgettext(((void *)0), - "'-w PAGE_WIDTH' invalid number of characters", 5)); - if (!truncate_lines) - chars_per_line = tmp_cpl; - } - break; - case 'W': - old_w = 0; - truncate_lines = 1; - getoptnum(optarg, 1, &chars_per_line, - - dcgettext(((void *)0), - "'-W PAGE_WIDTH' invalid number of characters", 5)); - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "pr", "GNU coreutils", Version, ("Pete TerMaat"), - ("Roland Huebner"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - break; - } - } - - if (column_count_string) { - parse_column_count(column_count_string); - free(column_count_string); - } - - if (!date_format) - date_format = - (getenv("POSIXLY_CORRECT") && !hard_locale(2) ? "%b %e %H:%M %Y" - : "%Y-%m-%d %H:%M"); - - localtz = tzalloc(getenv("TZ")); - - if (first_page_number == 0) - first_page_number = 1; - - if (parallel_files && explicit_columns) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot specify number of " - "columns when printing in parallel\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot specify number of columns when printing " - "in parallel", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot specify number of columns when printing " - "in parallel", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (parallel_files && print_across_flag) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot specify both " - "printing across and printing in parallel\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot specify both printing across and printing " - "in parallel", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot specify both printing across and printing " - "in parallel", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (old_options) { - if (old_w) { - if (parallel_files || explicit_columns) { - - truncate_lines = 1; - if (old_s) - - use_col_separator = 1; - } else - - join_lines = 1; - } else if (!use_col_separator) { - - if (old_s && (parallel_files || explicit_columns)) { - if (!truncate_lines) { - - join_lines = 1; - if (col_sep_length > 0) - - use_col_separator = 1; - } else - - use_col_separator = 1; - } - } - } - - for (; optind < argc; optind++) { - file_names[n_files++] = argv[optind]; - } - - if (n_files == 0) { - - print_files(0, ((void *)0)); - } else { - if (parallel_files) - print_files(n_files, file_names); - else { - for (unsigned int i = 0; i < n_files; i++) - print_files(1, &file_names[i]); - } - } - - cleanup(); - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - exit(failed_opens ? 1 : 0); -} - -static void getoptnum(char const *n_str, int min, int *num, char const *err) { - intmax_t tnum = xdectoimax(n_str, min, 0x7fffffff, "", err, 0); - *num = tnum; -} - -static void getoptarg(char *arg, char switch_char, char *character, - int *number) { - if (!((unsigned int)(*arg) - '0' <= 9)) - *character = *arg++; - if (*arg) { - long int tmp_long; - if (xstrtol(arg, ((void *)0), 10, &tmp_long, "") != LONGINT_OK || - tmp_long <= 0 || 0x7fffffff < tmp_long) { - error(0, 0x7fffffff < tmp_long ? 75 : (*__errno_location()), - - dcgettext( - ((void *)0), - "'-%c' extra characters or invalid number in the argument: %s", - 5), - switch_char, quote(arg)); - usage(1); - } - *number = tmp_long; - } -} - -static void init_parameters(int number_of_files) { - int chars_used_by_number = 0; - - lines_per_body = lines_per_page - lines_per_header - lines_per_footer; - if (lines_per_body <= 0) { - extremities = 0; - keep_FF = 1; - } - if (extremities == 0) - lines_per_body = lines_per_page; - - if (double_space) - lines_per_body = lines_per_body / 2; - - if (number_of_files == 0) - parallel_files = 0; - - if (parallel_files) - columns = number_of_files; - - if (storing_columns) - balance_columns = 1; - - if (columns > 1) { - if (!use_col_separator) { - - if (join_lines) - col_sep_string = line_separator; - else - col_sep_string = column_separator; - - col_sep_length = 1; - use_col_separator = 1; - } - - else if (!join_lines && col_sep_length == 1 && *col_sep_string == '\t') - col_sep_string = column_separator; - - truncate_lines = 1; - if (!(col_sep_length == 1 && *col_sep_string == '\t')) - untabify_input = 1; - tabify_output = 1; - } else - storing_columns = 0; - - if (join_lines) - truncate_lines = 0; - - if (numbered_lines) { - int chars_per_default_tab = 8; - - line_count = start_line_num; - - if (number_separator == '\t') - number_width = - (chars_per_number + ((chars_per_default_tab) - - ((chars_per_number) % (chars_per_default_tab)))); - else - number_width = chars_per_number + 1; - - if (parallel_files) - chars_used_by_number = number_width; - } - - int sep_chars, useful_chars; - if (__builtin_mul_overflow(columns - 1, col_sep_length, &sep_chars)) - sep_chars = 0x7fffffff; - if (__builtin_sub_overflow(chars_per_line - chars_used_by_number, sep_chars, - &useful_chars)) - useful_chars = 0; - chars_per_column = useful_chars / columns; - - if (chars_per_column < 1) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"page width " - "too narrow\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "page width too narrow", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "page width too narrow", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (numbered_lines) { - free(number_buff); - number_buff = xmalloc( - (((chars_per_number) > - ((((((sizeof(line_number) * 8) - - (!((__typeof__(line_number))0 < (__typeof__(line_number))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(line_number))0 < (__typeof__(line_number))-1))))) - ? (chars_per_number) - : ((((((sizeof(line_number) * 8) - - (!((__typeof__(line_number))0 < - (__typeof__(line_number))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(line_number))0 < - (__typeof__(line_number))-1))))) - - + 1); - } - - free(clump_buff); - clump_buff = - xmalloc((((8) > (chars_per_input_tab)) ? (8) : (chars_per_input_tab))); -} -static _Bool - -init_fps(int number_of_files, char **av) { - COLUMN *p; - - total_files = 0; - - free(column_vector); - column_vector = xnmalloc(columns, sizeof(COLUMN)); - - if (parallel_files) { - int files_left = number_of_files; - for (p = column_vector; files_left--; ++p, ++av) { - if (!open_file(*av, p)) { - --p; - --columns; - } - } - if (columns == 0) - return 0; - init_header("", -1); - } else { - p = column_vector; - if (number_of_files > 0) { - if (!open_file(*av, p)) - return 0; - init_header(*av, fileno(p->fp)); - p->lines_stored = 0; - } else { - p->name = dcgettext(((void *)0), "standard input", 5); - p->fp = stdin; - have_read_stdin = 1; - p->status = OPEN; - p->full_page_printed = 0; - ++total_files; - init_header("", -1); - p->lines_stored = 0; - } - - char const *firstname = p->name; - FILE *firstfp = p->fp; - int i; - for (i = columns - 1, ++p; i; --i, ++p) { - p->name = firstname; - p->fp = firstfp; - p->status = OPEN; - p->full_page_printed = 0; - p->lines_stored = 0; - } - } - files_ready_to_read = total_files; - return 1; -} - -static void init_funcs(void) { - int i, h, h_next; - COLUMN *p; - - h = chars_per_margin; - - if (!truncate_lines) - h_next = 0; - else { - - if (parallel_files && numbered_lines) - h_next = h + chars_per_column + number_width; - else - h_next = h + chars_per_column; - } - - h = h + col_sep_length; - - for (p = column_vector, i = 1; i < columns; ++p, ++i) { - if (storing_columns) { - p->char_func = store_char; - p->print_func = print_stored; - } else - - { - p->char_func = print_char; - p->print_func = read_line; - } - - p->numbered = numbered_lines && (!parallel_files || i == 1); - p->start_position = h; - - if (!truncate_lines) { - h = 0; - h_next = 0; - } else { - h = h_next + col_sep_length; - h_next = h + chars_per_column; - } - } - - if (storing_columns && balance_columns) { - p->char_func = store_char; - p->print_func = print_stored; - } else { - p->char_func = print_char; - p->print_func = read_line; - } - - p->numbered = numbered_lines && (!parallel_files || i == 1); - p->start_position = h; -} - -static _Bool - -open_file(char *name, COLUMN *p) { - if ((strcmp(name, "-") == 0)) { - p->name = dcgettext(((void *)0), "standard input", 5); - p->fp = stdin; - have_read_stdin = 1; - } else { - p->name = name; - p->fp = fopen_safer(name, "r"); - } - if (p->fp == ((void *)0)) { - failed_opens = 1; - if (!ignore_failed_opens) - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, name)); - return 0; - } - fadvise(p->fp, FADVISE_SEQUENTIAL); - p->status = OPEN; - p->full_page_printed = 0; - ++total_files; - return 1; -} - -static void close_file(COLUMN *p) { - COLUMN *q; - int i; - - if (p->status == CLOSED) - return; - - int err = (*__errno_location()); - if (!ferror_unlocked(p->fp)) - err = 0; - if (fileno(p->fp) == 0) - clearerr_unlocked(p->fp); - else if (rpl_fclose(p->fp) != 0 && !err) - err = (*__errno_location()); - if (err) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, err, \"%s\", quotearg_n_style_colon (0, " - "shell_escape_quoting_style, p->name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - p->name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - p->name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (!parallel_files) { - for (q = column_vector, i = columns; i; ++q, --i) { - q->status = CLOSED; - if (q->lines_stored == 0) { - q->lines_to_print = 0; - } - } - } else { - p->status = CLOSED; - p->lines_to_print = 0; - } - - --files_ready_to_read; -} - -static void hold_file(COLUMN *p) { - COLUMN *q; - int i; - - if (!parallel_files) - for (q = column_vector, i = columns; i; ++q, --i) { - if (storing_columns) - q->status = FF_FOUND; - else - q->status = ON_HOLD; - } - else - p->status = ON_HOLD; - - p->lines_to_print = 0; - --files_ready_to_read; -} - -static void reset_status(void) { - int i = columns; - COLUMN *p; - - for (p = column_vector; i; --i, ++p) - if (p->status == ON_HOLD) { - p->status = OPEN; - files_ready_to_read++; - } - - if (storing_columns) { - if (column_vector->status == CLOSED) - - files_ready_to_read = 0; - else - files_ready_to_read = 1; - } -} -static void print_files(int number_of_files, char **av) { - init_parameters(number_of_files); - if (!init_fps(number_of_files, av)) - return; - if (storing_columns) - init_store_cols(); - - if (first_page_number > 1) { - if (!skip_to_page(first_page_number)) - return; - else - page_number = first_page_number; - } else - page_number = 1; - - init_funcs(); - - line_number = line_count; - while (print_page()) - ; -} - -static void init_header(char const *filename, int desc) { - char *buf = ((void *)0); - struct stat st; - struct timespec t; - int ns; - struct tm tm; - - if ((strcmp(filename, "-") == 0)) - desc = -1; - if (0 <= desc && fstat(desc, &st) == 0) - t = get_stat_mtime(&st); - else { - static struct timespec timespec; - if (!timespec.tv_sec) - gettime(×pec); - t = timespec; - } - - ns = t.tv_nsec; - if (localtime_rz(localtz, &t.tv_sec, &tm)) { - size_t bufsize = nstrftime(((void *)0), (18446744073709551615UL), - date_format, &tm, localtz, ns) + - 1; - buf = xmalloc(bufsize); - nstrftime(buf, bufsize, date_format, &tm, localtz, ns); - } else { - char secbuf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - buf = xmalloc(sizeof secbuf + - (((10) > (((((((sizeof(int) * 8) - (!((__typeof__(int))0 < - (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) + - 1))) - ? (10) - : (((((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) + - 1)))); - sprintf(buf, "%s.%09d", timetostr(t.tv_sec, secbuf), ns); - } - - free(date_text); - date_text = buf; - file_text = custom_header ? custom_header : desc < 0 ? "" : filename; - header_width_available = (chars_per_line - gnu_mbswidth(date_text, 0) - - gnu_mbswidth(file_text, 0)); -} -static void init_page(void) { - int j; - COLUMN *p; - - if (storing_columns) { - store_columns(); - for (j = columns - 1, p = column_vector; j; --j, ++p) { - p->lines_to_print = p->lines_stored; - } - - if (balance_columns) { - p->lines_to_print = p->lines_stored; - } - - else { - if (p->status == OPEN) { - p->lines_to_print = lines_per_body; - } else - p->lines_to_print = 0; - } - } else - for (j = columns, p = column_vector; j; --j, ++p) - if (p->status == OPEN) { - p->lines_to_print = lines_per_body; - } else - p->lines_to_print = 0; -} - -static void align_column(COLUMN *p) { - padding_not_printed = p->start_position; - if (col_sep_length < padding_not_printed) { - pad_across_to(padding_not_printed - col_sep_length); - padding_not_printed = 0; - } - - if (use_col_separator) - print_sep_string(); - - if (p->numbered) - add_line_number(p); -} -static _Bool - -print_page(void) { - int j; - int lines_left_on_page; - COLUMN *p; - - _Bool pv; - - init_page(); - - if (cols_ready_to_print() == 0) - return 0; - - if (extremities) - print_a_header = 1; - - pad_vertically = 0; - pv = 0; - - lines_left_on_page = lines_per_body; - if (double_space) - lines_left_on_page *= 2; - - while (lines_left_on_page > 0 && cols_ready_to_print() > 0) { - output_position = 0; - spaces_not_printed = 0; - separators_not_printed = 0; - pad_vertically = 0; - align_empty_cols = 0; - empty_line = 1; - - for (j = 1, p = column_vector; j <= columns; ++j, ++p) { - input_position = 0; - if (p->lines_to_print > 0 || p->status == FF_FOUND) { - FF_only = 0; - padding_not_printed = p->start_position; - if (!(p->print_func)(p)) - read_rest_of_line(p); - pv |= pad_vertically; - - --p->lines_to_print; - if (p->lines_to_print <= 0) { - if (cols_ready_to_print() == 0) - break; - } - - if (parallel_files && p->status != OPEN) { - if (empty_line) - align_empty_cols = 1; - else if (p->status == CLOSED || (p->status == ON_HOLD && FF_only)) - align_column(p); - } - } else if (parallel_files) { - - if (empty_line) - align_empty_cols = 1; - else - align_column(p); - } - - if (use_col_separator) - ++separators_not_printed; - } - - if (pad_vertically) { - putchar_unlocked('\n'); - --lines_left_on_page; - } - - if (cols_ready_to_print() == 0 && !extremities) - break; - - if (double_space && pv) { - putchar_unlocked('\n'); - --lines_left_on_page; - } - } - - if (lines_left_on_page == 0) - for (j = 1, p = column_vector; j <= columns; ++j, ++p) - if (p->status == OPEN) - p->full_page_printed = 1; - - pad_vertically = pv; - - if (pad_vertically && extremities) - pad_down(lines_left_on_page + lines_per_footer); - else if (keep_FF && print_a_FF) { - putchar_unlocked('\f'); - print_a_FF = 0; - } - - if (last_page_number < ++page_number) - return 0; - - reset_status(); - - return 1; -} -static void init_store_cols(void) { - int total_lines, total_lines_1, chars_per_column_1, chars_if_truncate; - if (__builtin_mul_overflow(lines_per_body, columns, &total_lines) || - __builtin_add_overflow(total_lines, 1, &total_lines_1) || - __builtin_add_overflow(chars_per_column, 1, &chars_per_column_1) || - __builtin_mul_overflow(total_lines, chars_per_column_1, - &chars_if_truncate)) - integer_overflow(); - - free(line_vector); - - line_vector = xnmalloc(total_lines_1, sizeof *line_vector); - - free(end_vector); - end_vector = xnmalloc(total_lines, sizeof *end_vector); - - free(buff); - buff = xnmalloc(chars_if_truncate, use_col_separator + 1); - buff_allocated = chars_if_truncate; - buff_allocated *= use_col_separator + 1; -} -static void store_columns(void) { - int i, j; - unsigned int line = 0; - unsigned int buff_start; - int last_col; - COLUMN *p; - - buff_current = 0; - buff_start = 0; - - if (balance_columns) - last_col = columns; - else - last_col = columns - 1; - - for (i = 1, p = column_vector; i <= last_col; ++i, ++p) - p->lines_stored = 0; - - for (i = 1, p = column_vector; i <= last_col && files_ready_to_read; - ++i, ++p) { - p->current_line = line; - for (j = lines_per_body; j && files_ready_to_read; --j) - - if (p->status == OPEN) { - input_position = 0; - - if (!read_line(p)) - read_rest_of_line(p); - - if (p->status == OPEN || buff_start != buff_current) { - ++p->lines_stored; - line_vector[line] = buff_start; - end_vector[line++] = input_position; - buff_start = buff_current; - } - } - } - - line_vector[line] = buff_start; - - if (balance_columns) - balance(line); -} - -static void balance(int total_stored) { - COLUMN *p; - int i, lines; - int first_line = 0; - - for (i = 1, p = column_vector; i <= columns; ++i, ++p) { - lines = total_stored / columns; - if (i <= total_stored % columns) - ++lines; - - p->lines_stored = lines; - p->current_line = first_line; - - first_line += lines; - } -} - -static void store_char(char c) { - if (buff_current >= buff_allocated) { - - buff = ((!!sizeof(struct { - _Static_assert(sizeof *(buff) == 1, "verify_expr (" - "sizeof *(buff) == 1" - ", " - "x2realloc (buff, &buff_allocated)" - ")"); - int _gl_dummy; - })) - ? (x2realloc(buff, &buff_allocated)) - : (x2realloc(buff, &buff_allocated))); - } - buff[buff_current++] = c; -} - -static void add_line_number(COLUMN *p) { - int i; - char *s; - int num_width; - - num_width = sprintf(number_buff, "%*d", chars_per_number, line_number); - line_number++; - s = number_buff + (num_width - chars_per_number); - for (i = chars_per_number; i > 0; i--) - (p->char_func)(*s++); - - if (columns > 1) { - - if (number_separator == '\t') { - i = number_width - chars_per_number; - while (i-- > 0) - (p->char_func)(' '); - } else - (p->char_func)(number_separator); - } else - - { - (p->char_func)(number_separator); - if (number_separator == '\t') - output_position = - ((output_position) + ((chars_per_output_tab) - - ((output_position) % (chars_per_output_tab)))); - } - - if (truncate_lines && !parallel_files) - input_position += number_width; -} - -static void pad_across_to(int position) { - int h = output_position; - - if (tabify_output) - spaces_not_printed = position - output_position; - else { - while (++h <= position) - putchar_unlocked(' '); - output_position = position; - } -} - -static void pad_down(unsigned int lines) { - if (use_form_feed) - putchar_unlocked('\f'); - else - for (unsigned int i = lines; i; --i) - putchar_unlocked('\n'); -} - -static void read_rest_of_line(COLUMN *p) { - int c; - FILE *f = p->fp; - - while ((c = getc_unlocked(f)) != '\n') { - if (c == '\f') { - if ((c = getc_unlocked(f)) != '\n') - ungetc(c, f); - if (keep_FF) - print_a_FF = 1; - hold_file(p); - break; - } else if (c == (-1)) { - close_file(p); - break; - } - } -} -static void skip_read(COLUMN *p, int column_number) { - int c; - FILE *f = p->fp; - int i; - - _Bool single_ff = 0; - COLUMN *q; - - if ((c = getc_unlocked(f)) == '\f' && p->full_page_printed) - - if ((c = getc_unlocked(f)) == '\n') - c = getc_unlocked(f); - - p->full_page_printed = 0; - - if (c == '\f') - single_ff = 1; - - if (last_line) - p->full_page_printed = 1; - - while (c != '\n') { - if (c == '\f') { - - if (last_line) { - if (!parallel_files) - for (q = column_vector, i = columns; i; ++q, --i) - q->full_page_printed = 0; - else - p->full_page_printed = 0; - } - - if ((c = getc_unlocked(f)) != '\n') - ungetc(c, f); - hold_file(p); - break; - } else if (c == (-1)) { - close_file(p); - break; - } - c = getc_unlocked(f); - } - - if (skip_count) - if ((!parallel_files || column_number == 1) && !single_ff) - ++line_count; -} - -static void print_white_space(void) { - int h_new; - int h_old = output_position; - int goal = h_old + spaces_not_printed; - - while (goal - h_old > 1 && - (h_new = ((h_old) + ((chars_per_output_tab) - - ((h_old) % (chars_per_output_tab))))) <= goal) { - putchar_unlocked(output_tab_char); - h_old = h_new; - } - while (++h_old <= goal) - putchar_unlocked(' '); - - output_position = goal; - spaces_not_printed = 0; -} - -static void print_sep_string(void) { - char const *s = col_sep_string; - int l = col_sep_length; - - if (separators_not_printed <= 0) { - - if (spaces_not_printed > 0) - print_white_space(); - } else { - for (; separators_not_printed > 0; --separators_not_printed) { - while (l-- > 0) { - - if (*s == ' ') { - - s++; - ++spaces_not_printed; - } else { - if (spaces_not_printed > 0) - print_white_space(); - putchar_unlocked(*s++); - ++output_position; - } - } - - if (spaces_not_printed > 0) - print_white_space(); - } - } -} - -static void print_clump(COLUMN *p, int n, char *clump) { - while (n--) - (p->char_func)(*clump++); -} -static void print_char(char c) { - if (tabify_output) { - if (c == ' ') { - ++spaces_not_printed; - return; - } else if (spaces_not_printed > 0) - print_white_space(); - - if (!((*__ctype_b_loc())[(int)((to_uchar(c)))] & - (unsigned short int)_ISprint)) { - if (c == '\b') - --output_position; - } else - ++output_position; - } - putchar_unlocked(c); -} - -static _Bool - -skip_to_page(uintmax_t page) { - for (uintmax_t n = 1; n < page; ++n) { - COLUMN *p; - int j; - - for (int i = 1; i < lines_per_body; ++i) { - for (j = 1, p = column_vector; j <= columns; ++j, ++p) - if (p->status == OPEN) - skip_read(p, j); - } - last_line = 1; - for (j = 1, p = column_vector; j <= columns; ++j, ++p) - if (p->status == OPEN) - skip_read(p, j); - - if (storing_columns) - for (j = 1, p = column_vector; j <= columns; ++j, ++p) - if (p->status != CLOSED) - p->status = ON_HOLD; - - reset_status(); - last_line = 0; - - if (files_ready_to_read < 1) { - - error(0, 0, - - dcgettext(((void *)0), - "starting page number %" - "l" - "u" - " exceeds page count %" - "l" - "u", - 5) - - , - page, n); - break; - } - } - return files_ready_to_read > 0; -} - -static void print_header(void) { - char page_text - [256 + (((((sizeof(page_number) * 8) - (!((__typeof__(page_number))0 < - (__typeof__(page_number))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(page_number))0 < (__typeof__(page_number))-1)))]; - int available_width; - int lhs_spaces; - int rhs_spaces; - - output_position = 0; - pad_across_to(chars_per_margin); - print_white_space(); - - if (page_number == 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"page number " - "overflow\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "page number overflow", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "page number overflow", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - sprintf(page_text, - dcgettext(((void *)0), - "Page %" - "l" - "u", - 5), - page_number); - available_width = header_width_available - gnu_mbswidth(page_text, 0); - available_width = (((0) > (available_width)) ? (0) : (available_width)); - lhs_spaces = available_width >> 1; - rhs_spaces = available_width - lhs_spaces; - - printf("\n\n%*s%s%*s%s%*s%s\n\n\n", chars_per_margin, "", date_text, - lhs_spaces, " ", file_text, rhs_spaces, " ", page_text); - - print_a_header = 0; - output_position = 0; -} -static _Bool - -read_line(COLUMN *p) { - int c; - int chars; - int last_input_position; - int j, k; - COLUMN *q; - - c = getc_unlocked(p->fp); - - last_input_position = input_position; - - if (c == '\f' && p->full_page_printed) - if ((c = getc_unlocked(p->fp)) == '\n') - c = getc_unlocked(p->fp); - p->full_page_printed = 0; - - switch (c) { - case '\f': - if ((c = getc_unlocked(p->fp)) != '\n') - ungetc(c, p->fp); - FF_only = 1; - if (print_a_header && !storing_columns) { - pad_vertically = 1; - print_header(); - } else if (keep_FF) - print_a_FF = 1; - hold_file(p); - return 1; - case (-1): - close_file(p); - return 1; - case '\n': - break; - default: - chars = char_to_clump(c); - } - - if (truncate_lines && input_position > chars_per_column) { - input_position = last_input_position; - return 0; - } - - if (p->char_func != store_char) { - pad_vertically = 1; - - if (print_a_header && !storing_columns) - print_header(); - - if (parallel_files && align_empty_cols) { - - k = separators_not_printed; - separators_not_printed = 0; - for (j = 1, q = column_vector; j <= k; ++j, ++q) { - align_column(q); - separators_not_printed += 1; - } - padding_not_printed = p->start_position; - if (truncate_lines) - spaces_not_printed = chars_per_column; - else - spaces_not_printed = 0; - align_empty_cols = 0; - } - - if (col_sep_length < padding_not_printed) { - pad_across_to(padding_not_printed - col_sep_length); - padding_not_printed = 0; - } - - if (use_col_separator) - print_sep_string(); - } - - if (p->numbered) - add_line_number(p); - - empty_line = 0; - if (c == '\n') - return 1; - - print_clump(p, chars, clump_buff); - - while (1) { - c = getc_unlocked(p->fp); - - switch (c) { - case '\n': - return 1; - case '\f': - if ((c = getc_unlocked(p->fp)) != '\n') - ungetc(c, p->fp); - if (keep_FF) - print_a_FF = 1; - hold_file(p); - return 1; - case (-1): - close_file(p); - return 1; - } - - last_input_position = input_position; - chars = char_to_clump(c); - if (truncate_lines && input_position > chars_per_column) { - input_position = last_input_position; - return 0; - } - - print_clump(p, chars, clump_buff); - } -} -static _Bool - -print_stored(COLUMN *p) { - COLUMN *q; - - int line = p->current_line++; - char *first = &buff[line_vector[line]]; - char *last = &buff[line_vector[line + 1]]; - - pad_vertically = 1; - - if (print_a_header) - print_header(); - - if (p->status == FF_FOUND) { - int i; - for (i = 1, q = column_vector; i <= columns; ++i, ++q) - q->status = ON_HOLD; - if (column_vector->lines_to_print <= 0) { - if (!extremities) - pad_vertically = 0; - return 1; - } - } - - if (col_sep_length < padding_not_printed) { - pad_across_to(padding_not_printed - col_sep_length); - padding_not_printed = 0; - } - - if (use_col_separator) - print_sep_string(); - - while (first != last) - print_char(*first++); - - if (spaces_not_printed == 0) { - output_position = p->start_position + end_vector[line]; - if (p->start_position - col_sep_length == chars_per_margin) - output_position -= col_sep_length; - } - - return 1; -} -static int char_to_clump(char c) { - unsigned char uc = c; - char *s = clump_buff; - int i; - char esc_buff[4]; - int width; - int chars; - int chars_per_c = 8; - - if (c == input_tab_char) - chars_per_c = chars_per_input_tab; - - if (c == input_tab_char || c == '\t') { - width = ((chars_per_c) - ((input_position) % (chars_per_c))); - - if (untabify_input) { - for (i = width; i; --i) - *s++ = ' '; - chars = width; - } else { - *s = c; - chars = 1; - } - - } else if (!((*__ctype_b_loc())[(int)((uc))] & - (unsigned short int)_ISprint)) { - if (use_esc_sequence) { - width = 4; - chars = 4; - *s++ = '\\'; - sprintf(esc_buff, "%03o", uc); - for (i = 0; i <= 2; ++i) - *s++ = esc_buff[i]; - } else if (use_cntrl_prefix) { - if (uc < 0200) { - width = 2; - chars = 2; - *s++ = '^'; - *s = c ^ 0100; - } else { - width = 4; - chars = 4; - *s++ = '\\'; - sprintf(esc_buff, "%03o", uc); - for (i = 0; i <= 2; ++i) - *s++ = esc_buff[i]; - } - } else if (c == '\b') { - width = -1; - chars = 1; - *s = c; - } else { - width = 0; - chars = 1; - *s = c; - } - } else { - width = 1; - chars = 1; - *s = c; - } - - if (width < 0 && input_position == 0) { - chars = 0; - input_position = 0; - } else if (width < 0 && input_position <= -width) - input_position = 0; - else - input_position += width; - - return chars; -} - -static void cleanup(void) { - free(number_buff); - free(clump_buff); - free(column_vector); - free(line_vector); - free(end_vector); - free(buff); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - - fputs_unlocked(dcgettext(((void *)0), - "Paginate or columnate FILE(s) for printing.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " +FIRST_PAGE[:LAST_PAGE], --pages=FIRST_PAGE[:LAST_PAGE]\n " - " begin [stop] printing with page " - "FIRST_[LAST_]PAGE\n -COLUMN, --columns=COLUMN\n " - " output COLUMN columns and print columns down,\n " - " unless -a is used. Balance number of lines " - "in the\n columns on each page\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -a, --across print columns across rather than down, " - "used together\n with -COLUMN\n -c, " - "--show-control-chars\n use hat notation " - "(^G) and octal backslash notation\n -d, --double-space\n " - " double space the output\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -D, --date-format=FORMAT\n use FORMAT for " - "the header date\n -e[CHAR[WIDTH]], --expand-tabs[=CHAR[WIDTH]]\n " - " expand input CHARs (TABs) to tab WIDTH (8)\n " - "-F, -f, --form-feed\n use form feeds instead " - "of newlines to separate pages\n (by a 3-line " - "page header with -F or a 5-line header\n and " - "trailer without -F)\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " -h, --header=HEADER\n use a centered HEADER " - "instead of filename in page header,\n -h \"\" " - "prints a blank line, don't use -h\"\"\n -i[CHAR[WIDTH]], " - "--output-tabs[=CHAR[WIDTH]]\n replace spaces " - "with CHARs (TABs) to tab WIDTH (8)\n -J, --join-lines merge " - "full lines, turns off -W line truncation, no column\n " - " alignment, --sep-string[=STRING] sets separators\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -l, --length=PAGE_LENGTH\n set the " - "page length to PAGE_LENGTH (66) lines\n " - "(default number of lines of text 56, and with -F 63).\n " - " implies -t if PAGE_LENGTH <= 10\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -m, --merge print all files in parallel, one in " - "each column,\n truncate lines, but join " - "lines of full length with -J\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -n[SEP[DIGITS]], --number-lines[=SEP[DIGITS]]\n " - " number lines, use DIGITS (5) digits, then SEP " - "(TAB),\n default counting starts with " - "1st line of input file\n -N, --first-line-number=NUMBER\n " - " start counting with NUMBER at 1st line of " - "first\n page printed (see +FIRST_PAGE)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -o, --indent=MARGIN\n offset each line " - "with MARGIN (zero) spaces, do not\n " - "affect -w or -W, MARGIN will be added to PAGE_WIDTH\n -r, " - "--no-file-warnings\n omit warning when a " - "file cannot be opened\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -s[CHAR], --separator[=CHAR]\n " - "separate columns by a single character, default for CHAR\n " - " is the character without -w and " - "\'no char\' with -w.\n -s[CHAR] turns " - "off line truncation of all 3 column\n " - "options (-COLUMN|-a -COLUMN|-m) except -w is set\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -S[STRING], --sep-string[=STRING]\n separate " - "columns by STRING,\n without -S: Default " - "separator with -J and \n " - "otherwise (same as -S\" \"), no effect on column options\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -t, --omit-header omit page headers and trailers;\n " - " implied if PAGE_LENGTH <= 10\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -T, --omit-pagination\n omit page headers " - "and trailers, eliminate any pagination\n by " - "form feeds set in input files\n -v, --show-nonprinting\n " - " use octal backslash notation\n -w, " - "--width=PAGE_WIDTH\n set page width to " - "PAGE_WIDTH (72) characters for\n multiple " - "text-column output only, -s[char] turns off (72)\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " -W, --page-width=PAGE_WIDTH\n set page " - "width to PAGE_WIDTH (72) characters always,\n " - " truncate lines, except -J option is set, no " - "interference\n with -S or -s\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("pr"); - } - exit(status); -} diff --git a/tests/source/coreutils/printenv.c b/tests/source/coreutils/printenv.c deleted file mode 100644 index 31ada97..0000000 --- a/tests/source/coreutils/printenv.c +++ /dev/null @@ -1,6878 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum { PRINTENV_FAILURE = 2 }; -static struct option const longopts[] = { - {"null", 0, ((void *)0), '0'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext(((void *)0), - "Usage: %s [OPTION]... [VARIABLE]...\nPrint the values of " - "the specified environment VARIABLE(s).\nIf no VARIABLE is " - "specified, print name and value pairs for them all.\n\n", - 5) - - , - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - " -0, --null end each output line with NUL, not newline\n", 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your " - "shell's documentation\n" - "for details about the options it supports.\n", - 5), - "printenv"); - emit_ancillary_info("printenv"); - } - exit(status); -} - -int main(int argc, char **argv) { - char **env; - char *ep, *ap; - int i; - - _Bool ok; - int optc; - - _Bool opt_nul_terminate_output = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(PRINTENV_FAILURE); - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "+iu:0", longopts, ((void *)0))) != - -1) { - switch (optc) { - case '0': - opt_nul_terminate_output = 1; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "printenv", "GNU coreutils", Version, - ("David MacKenzie"), ("Richard Mlynarik"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(PRINTENV_FAILURE); - } - } - - if (optind >= argc) { - for (env = environ; *env != ((void *)0); ++env) - printf("%s%c", *env, opt_nul_terminate_output ? '\0' : '\n'); - ok = 1; - } else { - int matches = 0; - - for (i = optind; i < argc; ++i) { - - _Bool matched = 0; - - if (strchr(argv[i], '=')) - continue; - - for (env = environ; *env; ++env) { - ep = *env; - ap = argv[i]; - while (*ep != '\0' && *ap != '\0' && *ep++ == *ap++) { - if (*ep == '=' && *ap == '\0') { - printf("%s%c", ep + 1, opt_nul_terminate_output ? '\0' : '\n'); - matched = 1; - break; - } - } - } - - matches += matched; - } - - ok = (matches == argc - optind); - } - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/printf.c b/tests/source/coreutils/printf.c deleted file mode 100644 index 996cae5..0000000 --- a/tests/source/coreutils/printf.c +++ /dev/null @@ -1,8765 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef unsigned int wint_t; - -typedef __mbstate_t mbstate_t; - -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -struct tm; - -extern wchar_t *wcscpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcscat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int wcscmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcsncmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcscasecmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int wcscasecmp_l(const wchar_t *__s1, const wchar_t *__s2, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp_l(const wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll_l(const wchar_t *__s1, const wchar_t *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm_l(wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcsdup(const wchar_t *__s) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(__builtin_free, 1))); -extern wchar_t *wcschr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsrchr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcschrnul(const wchar_t *__s, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcscspn(const wchar_t *__wcs, const wchar_t *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsspn(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcspbrk(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsstr(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcstok(wchar_t *__restrict __s, - const wchar_t *__restrict __delim, - wchar_t **__restrict __ptr) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcslen(const wchar_t *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); -extern wchar_t *wcswcs(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsnlen(const wchar_t *__s, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wmemchr(const wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern int wmemcmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wmemcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemset(wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmempcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t btowc(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int wctob(wint_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int mbsinit(const mbstate_t *__ps) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); - -extern size_t mbrtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n, mbstate_t *__restrict __p) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcrtomb(char *__restrict __s, wchar_t __wc, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t __mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbsrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbsnrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsnrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern int wcwidth(wchar_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int wcswidth(const wchar_t *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern double wcstod(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long double wcstold(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long int wcstol(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoq(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstouq(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -extern long int wcstol_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull_l(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern double wcstod_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern long double wcstold_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *wcpcpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcpncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern __FILE *open_wmemstream(wchar_t **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(rpl_fclose, 1))); - -extern int fwide(__FILE *__fp, int __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fwprintf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wprintf(const wchar_t *__restrict __format, ...); - -extern int swprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwprintf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwprintf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wscanf(const wchar_t *__restrict __format, ...); - -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_fwscanf") - - ; -extern int wscanf(const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_wscanf") - - ; -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_swscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwscanf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfwscanf") - - ; -extern int vwscanf(const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vwscanf") - - ; -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vswscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wint_t fgetwc(__FILE *__stream); -extern wint_t getwc(__FILE *__stream); - -extern wint_t getwchar(void); - -extern wint_t fputwc(wchar_t __wc, __FILE *__stream); -extern wint_t putwc(wchar_t __wc, __FILE *__stream); - -extern wint_t putwchar(wchar_t __wc); - -extern wchar_t *fgetws(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws(const wchar_t *__restrict __ws, __FILE *__restrict __stream); - -extern wint_t ungetwc(wint_t __wc, __FILE *__stream); -extern wint_t getwc_unlocked(__FILE *__stream); -extern wint_t getwchar_unlocked(void); - -extern wint_t fgetwc_unlocked(__FILE *__stream); - -extern wint_t fputwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwchar_unlocked(wchar_t __wc); -extern wchar_t *fgetws_unlocked(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws_unlocked(const wchar_t *__restrict __ws, - __FILE *__restrict __stream); - -extern size_t wcsftime(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsftime_l(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *__wmemcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmemcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmemcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemmove_chk(wchar_t *__s1, const wchar_t *__s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemmove_alias(wchar_t *__s1, const wchar_t *__s2, - size_t __n) __asm__("" - "wmemmove") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemmove_chk_warn(wchar_t *__s1, const wchar_t *__s2, - size_t __n, - size_t __ns1) __asm__("" - "__wmemmove_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemmove called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemmove_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmempcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmempcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmempcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmempcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmempcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmempcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmempcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmempcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemset_chk(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_alias(wchar_t *__s, wchar_t __c, - size_t __n) __asm__("" - "wmemset") - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_chk_warn(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) __asm__("" - "__wmemset_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemset called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemset(wchar_t *__s, wchar_t __c, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_alias(__s, __c, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_chk_warn(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))) - : __wmemset_chk(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscpy_alias(__dest, __src); -} - -extern wchar_t *__wcpcpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcpcpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcpcpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpcpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcpcpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcpcpy_alias(__dest, __src); -} - -extern wchar_t *__wcsncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcsncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcsncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcsncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcsncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcpncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcpncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcpncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcpncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcpncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcpncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcpncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscat(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscat_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscat_alias(__dest, __src); -} - -extern wchar_t *__wcsncat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncat(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcsncat_chk(__dest, __src, __n, sz / sizeof(wchar_t)); - return __wcsncat_alias(__dest, __src, __n); -} - -extern int __swprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int __swprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - ...) __asm__("" - "swprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -swprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - ...) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __swprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, - __builtin_va_arg_pack()); - return __swprintf_alias(__s, __n, __fmt, __builtin_va_arg_pack()); -} -extern int __vswprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int __vswprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) __asm__("" - "vswprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -vswprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __vswprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, __ap); - return __vswprintf_alias(__s, __n, __fmt, __ap); -} - -extern int __fwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, ...); -extern int __wprintf_chk(int __flag, const wchar_t *__restrict __format, ...); -extern int __vfwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, - __gnuc_va_list __ap); -extern int __vwprintf_chk(int __flag, const wchar_t *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -wprintf(const wchar_t *__restrict __fmt, ...) { - return __wprintf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) { - return __fwprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vwprintf(const wchar_t *__restrict __fmt, __gnuc_va_list __ap) { - return __vwprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfwprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern wchar_t *__fgetws_chk(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws") - - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_chk_warn(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgetws called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern wchar_t *__fgetws_unlocked_chk(wchar_t *__restrict __s, size_t __size, - int __n, __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_unlocked_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws_unlocked") - - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_unlocked_chk_warn( - wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgetws_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws_unlocked(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_unlocked_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern size_t __wcrtomb_chk(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __p, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern size_t __wcrtomb_alias(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __ps) __asm__("" - "wcrtomb") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcrtomb(char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) - -{ - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wcrtomb_chk(__s, __wchar, __ps, __builtin_object_size(__s, 2 > 1)); - return __wcrtomb_alias(__s, __wchar, __ps); -} - -extern size_t __mbsrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __mbsrtowcs_alias(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_chk_warn(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsrtowcs_chk(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __wcsrtombs_alias(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __wcsrtombs_chk_warn(char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_chk_warn(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsrtombs_chk(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern size_t __mbsnrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__mbsnrtowcs_alias(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsnrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsnrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsnrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsnrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsnrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_alias(__dst, __src, __nmc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_chk_warn(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsnrtowcs_chk(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsnrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__wcsnrtombs_alias(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsnrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t -__wcsnrtombs_chk_warn(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsnrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsnrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsnrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_alias(__dst, __src, __nwc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_chk_warn(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsnrtombs_chk(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrtowc(wchar_t *__restrict__ pwc, const char *__restrict__ s, - size_t n, mbstate_t *__restrict__ ps) - - ; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrlen(const char *__restrict__ s, size_t n, - mbstate_t *__restrict__ ps); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -double cl_strtod(char const *, char **__restrict__) - __attribute__((__nonnull__(1))); -long double cl_strtold(char const *, char **__restrict__) - __attribute__((__nonnull__(1))); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -extern long unicode_to_mb(unsigned int code, - long (*success)(const char *buf, size_t buflen, - void *callback_arg), - long (*failure)(unsigned int code, const char *msg, - void *callback_arg), - void *callback_arg); - -extern void print_unicode_char(FILE *stream, unsigned int code, - int exit_on_error); - -extern long fwrite_success_callback(const char *buf, size_t buflen, - void *callback_arg); - -extern int xprintf(char const *__restrict__ format, ...) - - __attribute__((__format__(__gnu_printf__, 1, 2))) - - ; - -extern int xvprintf(char const *__restrict__ format, va_list args) - - __attribute__((__format__(__gnu_printf__, 1, 0))) - - ; - -extern int xfprintf(FILE *__restrict__ stream, char const *__restrict__ format, - ...) - - __attribute__((__format__(__gnu_printf__, 2, 3))) - - ; - -extern int xvfprintf(FILE *__restrict__ stream, char const *__restrict__ format, - va_list args) - - __attribute__((__format__(__gnu_printf__, 2, 0))) - - ; -static int exit_status; - -static _Bool posixly_correct; - -static char const *const cfcc_msg = - "warning: %s: character(s) following character constant have been ignored"; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s FORMAT [ARGUMENT]...\n or: %s OPTION\n", 5) - - , - program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Print ARGUMENT(s) according to FORMAT, or " - "execute according to OPTION:\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nFORMAT controls the output as in C printf. Interpreted " - "sequences are:\n\n \\\" double quote\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " \\\\ backslash\n \\a alert (BEL)\n \\b " - "backspace\n \\c produce no further output\n \\e " - "escape\n \\f form feed\n \\n new line\n \\r " - " carriage return\n \\t horizontal tab\n \\v " - "vertical tab\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " \\NNN byte with octal value NNN (1 to 3 digits)\n " - "\\xHH byte with hexadecimal value HH (1 to 2 digits)\n " - "\\uHHHH Unicode (ISO/IEC 10646) character with hex value " - "HHHH (4 digits)\n \\UHHHHHHHH Unicode character with hex " - "value HHHHHHHH (8 digits)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " %% a single %\n %b ARGUMENT as a string with '\\' " - "escapes interpreted,\n except that octal escapes are of " - "the form \\0 or \\0NNN\n %q ARGUMENT is printed in a format " - "that can be reused as shell input,\n escaping " - "non-printable characters with the proposed POSIX $'' " - "syntax.\n\nand all C format specifications ending with one of " - "diouxXfeEgGcs, with\nARGUMENTs converted to proper type first. " - "Variable widths are handled.\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your " - "shell's documentation\n" - "for details about the options it supports.\n", - 5), - "printf"); - emit_ancillary_info("printf"); - } - exit(status); -} - -static void verify_numeric(char const *s, char const *end) { - if ((*__errno_location())) { - error(0, (*__errno_location()), "%s", quote(s)); - exit_status = 1; - } else if (*end) { - if (s == end) - error(0, 0, dcgettext(((void *)0), "%s: expected a numeric value", 5), - quote(s)); - else - error(0, 0, - dcgettext(((void *)0), "%s: value not completely converted", 5), - quote(s)); - exit_status = 1; - } -} -static intmax_t vstrtoimax(char const *s) { - char *end; - intmax_t val; - if ((*s == '\"' || *s == '\'') && *(s + 1)) { - unsigned char ch = *++s; - val = ch; - if ((__ctype_get_mb_cur_max()) > 1 && *(s + 1)) { - mbstate_t mbstate = { - 0, - }; - wchar_t wc; - size_t slen = strlen(s); - ssize_t bytes; - bytes = rpl_mbrtowc(&wc, s, slen, &mbstate); - if (0 < bytes) { - val = wc; - s += bytes - 1; - } - } - if (*++s != 0 && !posixly_correct) - error(0, 0, dcgettext(((void *)0), cfcc_msg, 5), s); - } else { - (*__errno_location()) = 0; - val = (strtoimax(s, &end, 0)); - verify_numeric(s, end); - } - return val; -} -static uintmax_t vstrtoumax(char const *s) { - char *end; - uintmax_t val; - if ((*s == '\"' || *s == '\'') && *(s + 1)) { - unsigned char ch = *++s; - val = ch; - if ((__ctype_get_mb_cur_max()) > 1 && *(s + 1)) { - mbstate_t mbstate = { - 0, - }; - wchar_t wc; - size_t slen = strlen(s); - ssize_t bytes; - bytes = rpl_mbrtowc(&wc, s, slen, &mbstate); - if (0 < bytes) { - val = wc; - s += bytes - 1; - } - } - if (*++s != 0 && !posixly_correct) - error(0, 0, dcgettext(((void *)0), cfcc_msg, 5), s); - } else { - (*__errno_location()) = 0; - val = (strtoumax(s, &end, 0)); - verify_numeric(s, end); - } - return val; -} -static long double vstrtold(char const *s) { - char *end; - long double val; - if ((*s == '\"' || *s == '\'') && *(s + 1)) { - unsigned char ch = *++s; - val = ch; - if ((__ctype_get_mb_cur_max()) > 1 && *(s + 1)) { - mbstate_t mbstate = { - 0, - }; - wchar_t wc; - size_t slen = strlen(s); - ssize_t bytes; - bytes = rpl_mbrtowc(&wc, s, slen, &mbstate); - if (0 < bytes) { - val = wc; - s += bytes - 1; - } - } - if (*++s != 0 && !posixly_correct) - error(0, 0, dcgettext(((void *)0), cfcc_msg, 5), s); - } else { - (*__errno_location()) = 0; - val = (cl_strtold(s, &end)); - verify_numeric(s, end); - } - return val; -} - -static void print_esc_char(char c) { - switch (c) { - case 'a': - putchar_unlocked('\a'); - break; - case 'b': - putchar_unlocked('\b'); - break; - case 'c': - exit(0); - break; - case 'e': - putchar_unlocked('\x1B'); - break; - case 'f': - putchar_unlocked('\f'); - break; - case 'n': - putchar_unlocked('\n'); - break; - case 'r': - putchar_unlocked('\r'); - break; - case 't': - putchar_unlocked('\t'); - break; - case 'v': - putchar_unlocked('\v'); - break; - default: - putchar_unlocked(c); - break; - } -} - -static int print_esc(char const *escstart, _Bool octal_0) { - char const *p = escstart + 1; - int esc_value = 0; - int esc_length; - - if (*p == 'x') { - - for (esc_length = 0, ++p; - esc_length < 2 && ((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISxdigit); - ++esc_length, ++p) - esc_value = - esc_value * 16 + ((*p) >= 'a' && (*p) <= 'f' ? (*p) - 'a' + 10 - : (*p) >= 'A' && (*p) <= 'F' ? (*p) - 'A' + 10 - : (*p) - '0'); - if (esc_length == 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"missing " - "hexadecimal number in escape\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "missing hexadecimal number in escape", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "missing hexadecimal number in escape", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - putchar_unlocked(esc_value); - } else if (((*p) >= '0' && (*p) <= '7')) { - - for (esc_length = 0, p += octal_0 && *p == '0'; - esc_length < 3 && ((*p) >= '0' && (*p) <= '7'); ++esc_length, ++p) - esc_value = esc_value * 8 + ((*p) - '0'); - putchar_unlocked(esc_value); - } else if (*p && strchr("\"\\abcefnrtv", *p)) - print_esc_char(*p++); - else if (*p == 'u' || *p == 'U') { - char esc_char = *p; - unsigned int uni_value; - - uni_value = 0; - for (esc_length = (esc_char == 'u' ? 4 : 8), ++p; esc_length > 0; - --esc_length, ++p) { - if (!((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISxdigit)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"missing " - "hexadecimal number in escape\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "missing hexadecimal number in escape", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "missing hexadecimal number in escape", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - uni_value = - uni_value * 16 + ((*p) >= 'a' && (*p) <= 'f' ? (*p) - 'a' + 10 - : (*p) >= 'A' && (*p) <= 'F' ? (*p) - 'A' + 10 - : (*p) - '0'); - } - - if ((uni_value <= 0x9f && uni_value != 0x24 && uni_value != 0x40 && - uni_value != 0x60) || - (uni_value >= 0xd800 && uni_value <= 0xdfff)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "universal character name \\\\%c%0*x\", 5), esc_char, " - "(esc_char == 'u' ? 4 : 8), uni_value), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "invalid universal character name \\%c%0*x", 5), - esc_char, (esc_char == 'u' ? 4 : 8), uni_value), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "invalid universal character name \\%c%0*x", 5), - esc_char, (esc_char == 'u' ? 4 : 8), uni_value), - ((0) ? (void)0 : __builtin_unreachable())))); - - print_unicode_char(stdout, uni_value, 0); - } else { - putchar_unlocked('\\'); - if (*p) { - putchar_unlocked(*p); - p++; - } - } - return p - escstart - 1; -} - -static void print_esc_string(char const *str) { - for (; *str; str++) - if (*str == '\\') - str += print_esc(str, 1); - else - putchar_unlocked(*str); -} -static void print_direc(char const *start, size_t length, char conversion, - - _Bool have_field_width, int field_width, - - _Bool have_precision, int precision, - char const *argument) { - char *p; - - { - char *q; - char const *length_modifier; - size_t length_modifier_len; - - switch (conversion) { - case 'd': - case 'i': - case 'o': - case 'u': - case 'x': - case 'X': - length_modifier = "l" - "d"; - length_modifier_len = sizeof "l" - "d" - - 2; - break; - - case 'a': - case 'e': - case 'f': - case 'g': - case 'A': - case 'E': - case 'F': - case 'G': - length_modifier = "L"; - length_modifier_len = 1; - break; - - default: - length_modifier = start; - length_modifier_len = 0; - break; - } - - p = xmalloc(length + length_modifier_len + 2); - q = mempcpy(p, start, length); - q = mempcpy(q, length_modifier, length_modifier_len); - *q++ = conversion; - *q = '\0'; - } - - switch (conversion) { - case 'd': - case 'i': { - intmax_t arg = vstrtoimax(argument); - if (!have_field_width) { - if (!have_precision) - xprintf(p, arg); - else - xprintf(p, precision, arg); - } else { - if (!have_precision) - xprintf(p, field_width, arg); - else - xprintf(p, field_width, precision, arg); - } - } break; - - case 'o': - case 'u': - case 'x': - case 'X': { - uintmax_t arg = vstrtoumax(argument); - if (!have_field_width) { - if (!have_precision) - xprintf(p, arg); - else - xprintf(p, precision, arg); - } else { - if (!have_precision) - xprintf(p, field_width, arg); - else - xprintf(p, field_width, precision, arg); - } - } break; - - case 'a': - case 'A': - case 'e': - case 'E': - case 'f': - case 'F': - case 'g': - case 'G': { - long double arg = vstrtold(argument); - if (!have_field_width) { - if (!have_precision) - xprintf(p, arg); - else - xprintf(p, precision, arg); - } else { - if (!have_precision) - xprintf(p, field_width, arg); - else - xprintf(p, field_width, precision, arg); - } - } break; - - case 'c': - if (!have_field_width) - xprintf(p, *argument); - else - xprintf(p, field_width, *argument); - break; - - case 's': - if (!have_field_width) { - if (!have_precision) - xprintf(p, argument); - else - xprintf(p, precision, argument); - } else { - if (!have_precision) - xprintf(p, field_width, argument); - else - xprintf(p, field_width, precision, argument); - } - break; - } - - free(p); -} - -static int print_formatted(char const *format, int argc, char **argv) { - int save_argc = argc; - char const *f; - char const *direc_start; - size_t direc_length; - - _Bool have_field_width; - int field_width = 0; - - _Bool have_precision; - int precision = 0; - char ok[(0x7f * 2 + 1) + 1]; - - for (f = format; *f; ++f) { - switch (*f) { - case '%': - direc_start = f++; - direc_length = 1; - have_field_width = have_precision = 0; - if (*f == '%') { - putchar_unlocked('%'); - break; - } - if (*f == 'b') { - - if (argc > 0) { - print_esc_string(*argv); - ++argv; - --argc; - } - break; - } - - if (*f == 'q') { - if (argc > 0) { - fputs_unlocked(quotearg_style(shell_escape_quoting_style, *argv), - stdout); - ++argv; - --argc; - } - break; - } - - memset(ok, 0, sizeof ok); - ok['a'] = ok['A'] = ok['c'] = ok['d'] = ok['e'] = ok['E'] = ok['f'] = - ok['F'] = ok['g'] = ok['G'] = ok['i'] = ok['o'] = ok['s'] = ok['u'] = - ok['x'] = ok['X'] = 1; - - for (;; f++, direc_length++) - switch (*f) { - - case 'I': - - case '\'': - ok['a'] = ok['A'] = ok['c'] = ok['e'] = ok['E'] = ok['o'] = ok['s'] = - ok['x'] = ok['X'] = 0; - break; - case '-': - case '+': - case ' ': - break; - case ' ok[' c '] = ok[' d '] = ok[' i '] = ok[' s '] = ok['u'] = 0; break; - case '0': - ok['c'] = ok['s'] = 0; - break; - default: - goto no_more_flag_characters; - } - no_more_flag_characters: - - if (*f == '*') { - ++f; - ++direc_length; - if (argc > 0) { - intmax_t width = vstrtoimax(*argv); - if ((-0x7fffffff - 1) <= width && width <= 0x7fffffff) - field_width = width; - else - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid field " - "width: %s\", 5), quote (*argv)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid field width: %s", 5), - quote(*argv)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid field width: %s", 5), - quote(*argv)), - ((0) ? (void)0 : __builtin_unreachable())))); - ++argv; - --argc; - } else - field_width = 0; - have_field_width = 1; - } else - while (((unsigned int)(*f) - '0' <= 9)) { - ++f; - ++direc_length; - } - if (*f == '.') { - ++f; - ++direc_length; - ok['c'] = 0; - if (*f == '*') { - ++f; - ++direc_length; - if (argc > 0) { - intmax_t prec = vstrtoimax(*argv); - if (prec < 0) { - - precision = -1; - } else if (0x7fffffff < prec) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid " - "precision: %s\", 5), quote (*argv)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid precision: %s", 5), - quote(*argv)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid precision: %s", 5), - quote(*argv)), - ((0) ? (void)0 : __builtin_unreachable())))); - else - precision = prec; - ++argv; - --argc; - } else - precision = 0; - have_precision = 1; - } else - while (((unsigned int)(*f) - '0' <= 9)) { - ++f; - ++direc_length; - } - } - - while (*f == 'l' || *f == 'L' || *f == 'h' || *f == 'j' || *f == 't' || - *f == 'z') - ++f; - - { - unsigned char conversion = *f; - if (!ok[conversion]) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%.*s: " - "invalid conversion specification\", 5), (int) (f + " - "1 - direc_start), direc_start), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "%.*s: invalid conversion specification", 5), - (int)(f + 1 - direc_start), direc_start), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "%.*s: invalid conversion specification", 5), - (int)(f + 1 - direc_start), direc_start), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - print_direc(direc_start, direc_length, *f, have_field_width, field_width, - have_precision, precision, - (argc <= 0 ? "" : (argc--, *argv++))); - break; - - case '\\': - f += print_esc(f, 0); - break; - - default: - putchar_unlocked(*f); - } - } - - return save_argc - argc; -} - -int main(int argc, char **argv) { - char *format; - int args_used; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - exit_status = 0; - - posixly_correct = (getenv("POSIXLY_CORRECT") != ((void *)0)); - - if (argc == 2) { - if ((strcmp(argv[1], "--help") == 0)) - usage(0); - - if ((strcmp(argv[1], "--version") == 0)) { - version_etc(stdout, "printf", "GNU coreutils", Version, - ("David MacKenzie"), (char *)((void *)0)); - return 0; - } - } - - if (1 < argc && (strcmp(argv[1], "--") == 0)) { - --argc; - ++argv; - } - - if (argc <= 1) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - format = argv[1]; - argc -= 2; - argv += 2; - - do { - args_used = print_formatted(format, argc, argv); - argc -= args_used; - argv += args_used; - } while (args_used > 0 && argc > 0); - - if (argc > 0) - error(0, 0, - - dcgettext(((void *)0), - "warning: ignoring excess arguments, starting with %s", 5), - quote(argv[0])); - - return exit_status; -} diff --git a/tests/source/coreutils/prog-fprintf.c b/tests/source/coreutils/prog-fprintf.c deleted file mode 100644 index 124b2d0..0000000 --- a/tests/source/coreutils/prog-fprintf.c +++ /dev/null @@ -1,6745 +0,0 @@ - -typedef __builtin_va_list __gnuc_va_list; -typedef __gnuc_va_list va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void prog_fprintf(FILE *fp, char const *fmt, ...) - __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))); - -void prog_fprintf(FILE *fp, char const *fmt, ...) { - va_list ap; - fputs_unlocked(program_name, fp); - fputs_unlocked(": ", fp); - - __builtin_va_start(ap, fmt); - - rpl_vfprintf(fp, fmt, ap); - - __builtin_va_end(ap); - fputc_unlocked('\n', fp); -} diff --git a/tests/source/coreutils/ptx.c b/tests/source/coreutils/ptx.c deleted file mode 100644 index c48a5f2..0000000 --- a/tests/source/coreutils/ptx.c +++ /dev/null @@ -1,8541 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef unsigned int __re_size_t; -typedef unsigned long int __re_long_size_t; - -typedef long int s_reg_t; -typedef unsigned long int active_reg_t; - -typedef unsigned long int reg_syntax_t; -extern reg_syntax_t re_syntax_options; -typedef enum { - _REG_ENOSYS = -1, - _REG_NOERROR = 0, - _REG_NOMATCH, - - _REG_BADPAT, - _REG_ECOLLATE, - _REG_ECTYPE, - _REG_EESCAPE, - _REG_ESUBREG, - _REG_EBRACK, - _REG_EPAREN, - _REG_EBRACE, - _REG_BADBR, - _REG_ERANGE, - _REG_ESPACE, - _REG_BADRPT, - - _REG_EEND, - _REG_ESIZE, - _REG_ERPAREN -} reg_errcode_t; -struct re_pattern_buffer { - - struct re_dfa_t *buffer; - - __re_long_size_t allocated; - - __re_long_size_t used; - - reg_syntax_t syntax; - - char *fastmap; - - unsigned char *translate; - - size_t re_nsub; - - unsigned can_be_null : 1; - unsigned regs_allocated : 2; - - unsigned fastmap_accurate : 1; - - unsigned no_sub : 1; - - unsigned not_bol : 1; - - unsigned not_eol : 1; - - unsigned newline_anchor : 1; -}; - -typedef struct re_pattern_buffer regex_t; -typedef int regoff_t; - -struct re_registers { - __re_size_t num_regs; - regoff_t *start; - regoff_t *end; -}; -typedef struct { - regoff_t rm_so; - regoff_t rm_eo; -} regmatch_t; -extern reg_syntax_t re_set_syntax(reg_syntax_t __syntax); -extern const char *re_compile_pattern(const char *__pattern, size_t __length, - struct re_pattern_buffer *__buffer) - - __attribute__((__access__(__read_only__, 1, 2))); - -extern int re_compile_fastmap(struct re_pattern_buffer *__buffer); - -extern regoff_t re_search(struct re_pattern_buffer *__buffer, - const char *__String, regoff_t __length, - regoff_t __start, regoff_t __range, - struct re_registers *__regs) - - __attribute__((__access__(__read_only__, 2, 3))); - -extern regoff_t re_search_2(struct re_pattern_buffer *__buffer, - const char *__string1, regoff_t __length1, - const char *__string2, regoff_t __length2, - regoff_t __start, regoff_t __range, - struct re_registers *__regs, regoff_t __stop) - - __attribute__((__access__(__read_only__, 2, 3))) - __attribute__((__access__(__read_only__, 4, 5))); - -extern regoff_t re_match(struct re_pattern_buffer *__buffer, - const char *__String, regoff_t __length, - regoff_t __start, struct re_registers *__regs) - - __attribute__((__access__(__read_only__, 2, 3))); - -extern regoff_t -re_match_2(struct re_pattern_buffer *__buffer, const char *__string1, - regoff_t __length1, const char *__string2, regoff_t __length2, - regoff_t __start, struct re_registers *__regs, regoff_t __stop) - - __attribute__((__access__(__read_only__, 2, 3))) - __attribute__((__access__(__read_only__, 4, 5))); -extern void re_set_registers(struct re_pattern_buffer *__buffer, - struct re_registers *__regs, - __re_size_t __num_regs, regoff_t *__starts, - regoff_t *__ends); -extern int regcomp(regex_t *__restrict __preg, const char *__restrict __pattern, - int __cflags); - -extern int regexec(const regex_t *__restrict __preg, - const char *__restrict __String, size_t __nmatch, - regmatch_t __pmatch[__restrict - - __nmatch], - int __eflags); - -extern size_t regerror(int __errcode, const regex_t *__restrict __preg, - char *__restrict __errbuf, size_t __errbuf_size) - - __attribute__((__access__(__write_only__, 3, 4))); - -extern void regfree(regex_t *__preg); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -extern char *fread_file(FILE *stream, int flags, size_t *length) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); - -extern char *read_file(const char *filename, int flags, size_t *length) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -enum Format { UNKNOWN_FORMAT, DUMB_FORMAT, ROFF_FORMAT, TEX_FORMAT }; - -static _Bool gnu_extensions = 1; -static _Bool auto_reference = 0; -static _Bool input_reference = 0; -static _Bool right_reference = 0; -static ptrdiff_t line_width = 72; -static ptrdiff_t gap_size = 3; -static char const *truncation_string = "/"; - -static char const *macro_name = "xx"; -static enum Format output_format = UNKNOWN_FORMAT; - -static _Bool ignore_case = 0; -static char const *break_file = ((void *)0); -static char const *only_file = ((void *)0); -static char const *ignore_file = ((void *)0); - -struct regex_data { - - char const *string; - - struct re_pattern_buffer pattern; - char fastmap[(0x7f * 2 + 1) + 1]; -}; - -static struct regex_data context_regex; -static struct regex_data word_regex; - -typedef struct { - char *start; - char *end; -} BLOCK; - -typedef struct { - char *start; - ptrdiff_t size; -} WORD; - -typedef struct { - WORD *start; - size_t alloc; - ptrdiff_t length; -} WORD_TABLE; - -static unsigned char folded_chars[256]; - -static struct re_registers context_regs; - -static struct re_registers word_regs; - -static char word_fastmap[256]; - -static ptrdiff_t maximum_word_length; - -static ptrdiff_t reference_max_width; - -static WORD_TABLE ignore_table; -static WORD_TABLE only_table; - -static int number_input_files; -static intmax_t total_line_count; -static char const **input_file_name; -static intmax_t *file_line_count; - -static BLOCK *text_buffers; -typedef struct { - WORD key; - ptrdiff_t left; - ptrdiff_t right; - intmax_t reference; - int file_index; -} OCCURS; - -static OCCURS *occurs_table[1]; -static size_t occurs_alloc[1]; -static ptrdiff_t number_of_occurs[1]; - -static char edited_flag[256]; - -static ptrdiff_t half_line_width; - -static ptrdiff_t before_max_width; - -static ptrdiff_t keyafter_max_width; - -static ptrdiff_t truncation_string_length; - -static BLOCK tail; -static _Bool tail_truncation; - -static BLOCK before; -static _Bool before_truncation; - -static BLOCK keyafter; -static _Bool keyafter_truncation; - -static BLOCK head; -static _Bool head_truncation; - -static BLOCK reference; - -static void matcher_error(void) { - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"error " - "in regular expression matcher\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "error in regular expression matcher", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "error in regular expression matcher", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static void unescape_string(char *string) { - char *cursor; - int value; - int length; - - cursor = string; - - while (*string) { - if (*string == '\\') { - string++; - switch (*string) { - case 'x': - value = 0; - for (length = 0, string++; - length < 3 && ((*__ctype_b_loc())[(int)((to_uchar(*string)))] & - (unsigned short int)_ISxdigit); - length++, string++) - value = value * 16 + - ((*string) >= 'a' && (*string) <= 'f' ? (*string) - 'a' + 10 - : (*string) >= 'A' && (*string) <= 'F' ? (*string) - 'A' + 10 - : (*string) - '0'); - if (length == 0) { - *cursor++ = '\\'; - *cursor++ = 'x'; - } else - *cursor++ = value; - break; - - case '0': - value = 0; - for (length = 0, string++; - length < 3 && ((*string) >= '0' && (*string) <= '7'); - length++, string++) - value = value * 8 + ((*string) - '0'); - *cursor++ = value; - break; - - case 'a': - - *cursor++ = '\a'; - - string++; - break; - - case 'b': - *cursor++ = '\b'; - string++; - break; - - case 'c': - while (*string) - string++; - break; - - case 'f': - *cursor++ = '\f'; - string++; - break; - - case 'n': - *cursor++ = '\n'; - string++; - break; - - case 'r': - *cursor++ = '\r'; - string++; - break; - - case 't': - *cursor++ = '\t'; - string++; - break; - - case 'v': - - *cursor++ = '\v'; - - string++; - break; - - case '\0': - - break; - - default: - *cursor++ = '\\'; - *cursor++ = *string++; - break; - } - } else - *cursor++ = *string++; - } - - *cursor = '\0'; -} - -static void compile_regex(struct regex_data *regex) { - struct re_pattern_buffer *pattern = ®ex->pattern; - char const *string = regex->string; - char const *message; - - pattern->buffer = ((void *)0); - pattern->allocated = 0; - pattern->fastmap = regex->fastmap; - pattern->translate = ignore_case ? folded_chars : ((void *)0); - - message = re_compile_pattern(string, strlen(string), pattern); - if (message) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s (for regexp " - "%s)\", 5), message, quote (string)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "%s (for regexp %s)", 5), - message, quote(string)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "%s (for regexp %s)", 5), - message, quote(string)), - ((0) ? (void)0 : __builtin_unreachable())))); - - re_compile_fastmap(pattern); -} - -static void initialize_regex(void) { - int character; - - if (ignore_case) - for (character = 0; character < 256; character++) - folded_chars[character] = (__extension__({ - int __res; - if (sizeof(character) > 1) { - if (__builtin_constant_p(character)) { - int __c = (character); - __res = - __c < -128 || __c > 255 ? __c : (*__ctype_toupper_loc())[__c]; - } else - __res = toupper(character); - } else - __res = (*__ctype_toupper_loc())[(int)(character)]; - __res; - })); - if (context_regex.string) { - if (!*context_regex.string) - context_regex.string = ((void *)0); - } else if (gnu_extensions && !input_reference) - context_regex.string = "[.?!][]\"')}]*\\($\\|\t\\| \\)[ \t\n]*"; - else - context_regex.string = "\n"; - - if (context_regex.string) - compile_regex(&context_regex); - if (word_regex.string) - compile_regex(&word_regex); - else if (!break_file) { - if (gnu_extensions) { - - for (character = 0; character < 256; character++) - word_fastmap[character] = !!((*__ctype_b_loc())[(int)((character))] & - (unsigned short int)_ISalpha); - } else { - - memset(word_fastmap, 1, 256); - word_fastmap[' '] = 0; - word_fastmap['\t'] = 0; - word_fastmap['\n'] = 0; - } - } -} -static void swallow_file_in_memory(char const *file_name, BLOCK *block) { - size_t used_length; - - _Bool using_stdin = - !file_name || !*file_name || (strcmp(file_name, "-") == 0); - if (using_stdin) - block->start = fread_file(stdin, 0, &used_length); - else - block->start = read_file(file_name, 0, &used_length); - - if (!block->start) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "using_stdin ? \"-\" : file_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - using_stdin ? "-" : file_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - using_stdin ? "-" : file_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (using_stdin) - clearerr_unlocked(stdin); - - block->end = block->start + used_length; -} -static int compare_words(const void *void_first, const void *void_second) { - - ptrdiff_t length; - ptrdiff_t counter; - int value; - - length = ((const WORD *)void_first)->size < ((const WORD *)void_second)->size - ? ((const WORD *)void_first)->size - : ((const WORD *)void_second)->size; - - if (ignore_case) { - for (counter = 0; counter < length; counter++) { - value = - (folded_chars[to_uchar(((const WORD *)void_first)->start[counter])] - - folded_chars[to_uchar(((const WORD *)void_second)->start[counter])]); - if (value != 0) - return value; - } - } else { - for (counter = 0; counter < length; counter++) { - value = (to_uchar(((const WORD *)void_first)->start[counter]) - - to_uchar(((const WORD *)void_second)->start[counter])); - if (value != 0) - return value; - } - } - - return ((const WORD *)void_first)->size < ((const WORD *)void_second)->size - ? -1 - : ((const WORD *)void_first)->size > - ((const WORD *)void_second)->size; -} - -static int compare_occurs(const void *void_first, const void *void_second) { - - int value; - - value = compare_words(&((const OCCURS *)void_first)->key, - &((const OCCURS *)void_second)->key); - return (value ? value - : ((const OCCURS *)void_first)->key.start < - ((const OCCURS *)void_second)->key.start - ? -1 - : ((const OCCURS *)void_first)->key.start > - ((const OCCURS *)void_second)->key.start); -} - -__attribute__((__pure__)) static _Bool - -search_table(WORD *word, WORD_TABLE *table) { - ptrdiff_t lowest; - ptrdiff_t highest; - ptrdiff_t middle; - int value; - - lowest = 0; - highest = table->length - 1; - while (lowest <= highest) { - middle = (lowest + highest) / 2; - value = compare_words(word, table->start + middle); - if (value < 0) - highest = middle - 1; - else if (value > 0) - lowest = middle + 1; - else - return 1; - } - return 0; -} - -static void sort_found_occurs(void) { - - if (number_of_occurs[0]) - qsort(occurs_table[0], number_of_occurs[0], sizeof **occurs_table, - compare_occurs); -} -static void digest_break_file(char const *file_name) { - BLOCK file_contents; - char *cursor; - - swallow_file_in_memory(file_name, &file_contents); - - memset(word_fastmap, 1, 256); - for (cursor = file_contents.start; cursor < file_contents.end; cursor++) - word_fastmap[to_uchar(*cursor)] = 0; - - if (!gnu_extensions) { - - word_fastmap[' '] = 0; - word_fastmap['\t'] = 0; - word_fastmap['\n'] = 0; - } - - free(file_contents.start); -} -static void digest_word_file(char const *file_name, WORD_TABLE *table) { - BLOCK file_contents; - char *cursor; - char *word_start; - - swallow_file_in_memory(file_name, &file_contents); - - table->start = ((void *)0); - table->alloc = 0; - table->length = 0; - - cursor = file_contents.start; - while (cursor < file_contents.end) { - - word_start = cursor; - while (cursor < file_contents.end && *cursor != '\n') - cursor++; - - if (cursor > word_start) { - if (table->length == table->alloc) - table->start = - x2nrealloc(table->start, &table->alloc, sizeof *table->start); - table->start[table->length].start = word_start; - table->start[table->length].size = cursor - word_start; - table->length++; - } - - if (cursor < file_contents.end) - cursor++; - } - - qsort(table->start, table->length, sizeof table->start[0], compare_words); -} - -static void find_occurs_in_text(int file_index) { - char *cursor; - char *scan; - char *line_start; - char *line_scan; - ptrdiff_t reference_length; - WORD possible_key; - OCCURS *occurs_cursor; - - char *context_start; - char *context_end; - char *word_start; - char *word_end; - char *next_context_start; - - const BLOCK *text_buffer = &text_buffers[file_index]; - - reference_length = 0; - line_start = text_buffer->start; - line_scan = line_start; - if (input_reference) { - while (line_scan < text_buffer->end && - !((*__ctype_b_loc())[(int)((to_uchar(*line_scan)))] & - (unsigned short int)_ISspace)) - line_scan++; - reference_length = line_scan - line_start; - while (line_scan < text_buffer->end && - ((*__ctype_b_loc())[(int)((to_uchar(*line_scan)))] & - (unsigned short int)_ISspace)) - line_scan++; - } - - for (cursor = text_buffer->start; cursor < text_buffer->end; - cursor = next_context_start) { - - context_start = cursor; - next_context_start = text_buffer->end; - if (context_regex.string) - switch (re_search(&context_regex.pattern, cursor, - text_buffer->end - cursor, 0, text_buffer->end - cursor, - &context_regs)) { - case -2: - matcher_error(); - - case -1: - break; - - case 0: - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"error: " - "regular expression has a match of length zero: %s\", " - "5), quote (context_regex.string)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "error: regular expression has a match of " - "length zero: %s", - 5), - quote(context_regex.string)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "error: regular expression has a match of " - "length zero: %s", - 5), - quote(context_regex.string)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - - default: - next_context_start = cursor + context_regs.end[0]; - break; - } - - context_end = next_context_start; - while (context_end > context_start && - ((*__ctype_b_loc())[(int)((to_uchar(context_end[-1])))] & - (unsigned short int)_ISspace)) - context_end--; - - while (1) { - if (word_regex.string) - - { - regoff_t r = - re_search(&word_regex.pattern, cursor, context_end - cursor, 0, - context_end - cursor, &word_regs); - if (r == -2) - matcher_error(); - if (r == -1) - break; - word_start = cursor + word_regs.start[0]; - word_end = cursor + word_regs.end[0]; - } else - - { - scan = cursor; - while (scan < context_end && !word_fastmap[to_uchar(*scan)]) - scan++; - - if (scan == context_end) - break; - - word_start = scan; - - while (scan < context_end && word_fastmap[to_uchar(*scan)]) - scan++; - - word_end = scan; - } - - cursor = word_start; - - if (word_end == word_start) { - cursor++; - continue; - } - possible_key.start = cursor; - possible_key.size = word_end - word_start; - cursor += possible_key.size; - - if (possible_key.size > maximum_word_length) - maximum_word_length = possible_key.size; - - if (input_reference) { - while (line_scan < possible_key.start) - if (*line_scan == '\n') { - total_line_count++; - line_scan++; - line_start = line_scan; - while (line_scan < text_buffer->end && - !((*__ctype_b_loc())[(int)((to_uchar(*line_scan)))] & - (unsigned short int)_ISspace)) - line_scan++; - reference_length = line_scan - line_start; - } else - line_scan++; - if (line_scan > possible_key.start) - continue; - } - if (ignore_file && search_table(&possible_key, &ignore_table)) - continue; - if (only_file && !search_table(&possible_key, &only_table)) - continue; - - if (number_of_occurs[0] == occurs_alloc[0]) - occurs_table[0] = x2nrealloc(occurs_table[0], &occurs_alloc[0], - sizeof *occurs_table[0]); - occurs_cursor = occurs_table[0] + number_of_occurs[0]; - - if (auto_reference) { - - while (line_scan < possible_key.start) - if (*line_scan == '\n') { - total_line_count++; - line_scan++; - line_start = line_scan; - while (line_scan < text_buffer->end && - !((*__ctype_b_loc())[(int)((to_uchar(*line_scan)))] & - (unsigned short int)_ISspace)) - line_scan++; - } else - line_scan++; - - occurs_cursor->reference = total_line_count; - } else if (input_reference) { - - occurs_cursor->reference = line_start - possible_key.start; - if (reference_length > reference_max_width) - reference_max_width = reference_length; - } - - if (input_reference && line_start == context_start) { - while (context_start < context_end && - !((*__ctype_b_loc())[(int)((to_uchar(*context_start)))] & - (unsigned short int)_ISspace)) - context_start++; - while (context_start < context_end && - ((*__ctype_b_loc())[(int)((to_uchar(*context_start)))] & - (unsigned short int)_ISspace)) - context_start++; - } - - occurs_cursor->key = possible_key; - occurs_cursor->left = context_start - possible_key.start; - occurs_cursor->right = context_end - possible_key.start; - occurs_cursor->file_index = file_index; - - number_of_occurs[0]++; - } - } -} - -static void print_spaces(ptrdiff_t number) { - for (ptrdiff_t counter = number; counter > 0; counter--) - putchar_unlocked(' '); -} - -static void print_field(BLOCK field) { - char *cursor; - - for (cursor = field.start; cursor < field.end; cursor++) { - unsigned char character = *cursor; - if (edited_flag[character]) { - - switch (character) { - case '"': - - putchar_unlocked('"'); - putchar_unlocked('"'); - break; - - case '$': - case '%': - case '&': - case ' case '_': - - putchar_unlocked('\\'); - putchar_unlocked(character); break; - - case '{': - case '}': - - printf("$\\%c$", character); - break; - - case '\\': - - fputs_unlocked("\\backslash{}", stdout); - break; - - default: - - putchar_unlocked(' '); - } - } else - putchar_unlocked(*cursor); - } -} -static void fix_output_parameters(void) { - size_t file_index; - intmax_t line_ordinal; - ptrdiff_t reference_width; - int character; - char const *cursor; - - if (auto_reference) { - reference_max_width = 0; - for (file_index = 0; file_index < number_input_files; file_index++) { - line_ordinal = file_line_count[file_index] + 1; - if (file_index > 0) - line_ordinal -= file_line_count[file_index - 1]; - char ordinal_string[( - (((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - reference_width = sprintf(ordinal_string, - "%" - "l" - "d", - line_ordinal); - if (input_file_name[file_index]) - reference_width += strlen(input_file_name[file_index]); - if (reference_width > reference_max_width) - reference_max_width = reference_width; - } - reference_max_width++; - reference.start = xmalloc(reference_max_width + 1); - } - - if ((auto_reference || input_reference) && !right_reference) - line_width -= reference_max_width + gap_size; - if (line_width < 0) - line_width = 0; - half_line_width = line_width / 2; - before_max_width = half_line_width - gap_size; - keyafter_max_width = half_line_width; - - if (truncation_string && *truncation_string) - truncation_string_length = strlen(truncation_string); - else - truncation_string = ((void *)0); - - if (gnu_extensions) { - before_max_width -= 2 * truncation_string_length; - if (before_max_width < 0) - before_max_width = 0; - keyafter_max_width -= 2 * truncation_string_length; - } else { - - keyafter_max_width -= 2 * truncation_string_length + 1; - } - - for (character = 0; character < 256; character++) - edited_flag[character] = !!((*__ctype_b_loc())[(int)((character))] & - (unsigned short int)_ISspace); - edited_flag['\f'] = 1; - - switch (output_format) { - case UNKNOWN_FORMAT: - - case DUMB_FORMAT: - break; - - case ROFF_FORMAT: - - edited_flag['"'] = 1; - break; - - case TEX_FORMAT: - - for (cursor = "$%& edited_flag[to_uchar (*cursor)] = 1; - - break; - } -} - -static void define_all_fields(OCCURS *occurs) { - ptrdiff_t tail_max_width; - ptrdiff_t head_max_width; - char *cursor; - char *left_context_start; - char *right_context_end; - char *left_field_start; - char const *file_name; - intmax_t line_ordinal; - char const *buffer_start; - char const *buffer_end; - - keyafter.start = occurs->key.start; - keyafter.end = keyafter.start + occurs->key.size; - left_context_start = keyafter.start + occurs->left; - right_context_end = keyafter.start + occurs->right; - - buffer_start = text_buffers[occurs->file_index].start; - buffer_end = text_buffers[occurs->file_index].end; - - cursor = keyafter.end; - while (cursor < right_context_end && - cursor <= keyafter.start + keyafter_max_width) { - keyafter.end = cursor; - if (word_regex.string) { - regoff_t count; - count = re_match(&word_regex.pattern, cursor, right_context_end - cursor, - 0, ((void *)0)); - if (count == -2) - matcher_error(); - cursor += count == -1 ? 1 : count; - } else if (word_fastmap[to_uchar(*cursor)]) - while (cursor < right_context_end && word_fastmap[to_uchar(*cursor)]) - cursor++; - else - cursor++; - } - if (cursor <= keyafter.start + keyafter_max_width) - keyafter.end = cursor; - - keyafter_truncation = truncation_string && keyafter.end < right_context_end; - - while (keyafter.end > keyafter.start && - ((*__ctype_b_loc())[(int)((to_uchar(keyafter.end[-1])))] & - (unsigned short int)_ISspace)) - keyafter.end--; - if (-occurs->left > half_line_width + maximum_word_length) { - left_field_start = keyafter.start - (half_line_width + maximum_word_length); - if (word_regex.string) { - regoff_t count; - count = re_match(&word_regex.pattern, left_field_start, - keyafter.start - left_field_start, 0, ((void *)0)); - if (count == -2) - matcher_error(); - left_field_start += count == -1 ? 1 : count; - } else if (word_fastmap[to_uchar(*left_field_start)]) - while (left_field_start < keyafter.start && - word_fastmap[to_uchar(*left_field_start)]) - left_field_start++; - else - left_field_start++; - } else - left_field_start = keyafter.start + occurs->left; - - before.start = left_field_start; - before.end = keyafter.start; - while (before.end > before.start && - ((*__ctype_b_loc())[(int)((to_uchar(before.end[-1])))] & - (unsigned short int)_ISspace)) - before.end--; - - while (before.start + before_max_width < before.end) - if (word_regex.string) { - regoff_t count; - count = re_match(&word_regex.pattern, before.start, - before.end - before.start, 0, ((void *)0)); - if (count == -2) - matcher_error(); - before.start += count == -1 ? 1 : count; - } else if (word_fastmap[to_uchar(*before.start)]) - while (before.start < before.end && word_fastmap[to_uchar(*before.start)]) - before.start++; - else - before.start++; - - if (truncation_string) { - cursor = before.start; - while (cursor > buffer_start && - ((*__ctype_b_loc())[(int)((to_uchar(cursor[-1])))] & - (unsigned short int)_ISspace)) - cursor--; - before_truncation = cursor > left_context_start; - } else - before_truncation = 0; - - while (before.start < buffer_end && - ((*__ctype_b_loc())[(int)((to_uchar(*before.start)))] & - (unsigned short int)_ISspace)) - before.start++; - tail_max_width = before_max_width - (before.end - before.start) - gap_size; - - if (tail_max_width > 0) { - tail.start = keyafter.end; - while (tail.start < buffer_end && - ((*__ctype_b_loc())[(int)((to_uchar(*tail.start)))] & - (unsigned short int)_ISspace)) - tail.start++; - - tail.end = tail.start; - cursor = tail.end; - while (cursor < right_context_end && cursor < tail.start + tail_max_width) { - tail.end = cursor; - if (word_regex.string) { - regoff_t count; - count = re_match(&word_regex.pattern, cursor, - right_context_end - cursor, 0, ((void *)0)); - if (count == -2) - matcher_error(); - cursor += count == -1 ? 1 : count; - } else if (word_fastmap[to_uchar(*cursor)]) - while (cursor < right_context_end && word_fastmap[to_uchar(*cursor)]) - cursor++; - else - cursor++; - } - - if (cursor < tail.start + tail_max_width) - tail.end = cursor; - - if (tail.end > tail.start) { - keyafter_truncation = 0; - tail_truncation = truncation_string && tail.end < right_context_end; - } else - tail_truncation = 0; - - while (tail.end > tail.start && - ((*__ctype_b_loc())[(int)((to_uchar(tail.end[-1])))] & - (unsigned short int)_ISspace)) - tail.end--; - } else { - - tail.start = ((void *)0); - tail.end = ((void *)0); - tail_truncation = 0; - } - - head_max_width = - keyafter_max_width - (keyafter.end - keyafter.start) - gap_size; - - if (head_max_width > 0) { - head.end = before.start; - while (head.end > buffer_start && - ((*__ctype_b_loc())[(int)((to_uchar(head.end[-1])))] & - (unsigned short int)_ISspace)) - head.end--; - - head.start = left_field_start; - while (head.start + head_max_width < head.end) - if (word_regex.string) { - regoff_t count; - count = re_match(&word_regex.pattern, head.start, head.end - head.start, - 0, ((void *)0)); - if (count == -2) - matcher_error(); - head.start += count == -1 ? 1 : count; - } else if (word_fastmap[to_uchar(*head.start)]) - while (head.start < head.end && word_fastmap[to_uchar(*head.start)]) - head.start++; - else - head.start++; - - if (head.end > head.start) { - before_truncation = 0; - head_truncation = (truncation_string && head.start > left_context_start); - } else - head_truncation = 0; - - while (head.start < head.end && - ((*__ctype_b_loc())[(int)((to_uchar(*head.start)))] & - (unsigned short int)_ISspace)) - head.start++; - } else { - - head.start = ((void *)0); - head.end = ((void *)0); - head_truncation = 0; - } - - if (auto_reference) { - - file_name = input_file_name[occurs->file_index]; - if (!file_name) - file_name = ""; - - line_ordinal = occurs->reference + 1; - if (occurs->file_index > 0) - line_ordinal -= file_line_count[occurs->file_index - 1]; - - char *file_end = stpcpy(reference.start, file_name); - reference.end = file_end + sprintf(file_end, - ":%" - "l" - "d", - line_ordinal); - } else if (input_reference) { - - reference.start = keyafter.start + occurs->reference; - reference.end = reference.start; - while (reference.end < right_context_end && - !((*__ctype_b_loc())[(int)((to_uchar(*reference.end)))] & - (unsigned short int)_ISspace)) - reference.end++; - } -} - -static void output_one_roff_line(void) { - - printf(".%s \"", macro_name); - print_field(tail); - if (tail_truncation) - fputs_unlocked(truncation_string, stdout); - putchar_unlocked('"'); - - fputs_unlocked(" \"", stdout); - if (before_truncation) - fputs_unlocked(truncation_string, stdout); - print_field(before); - putchar_unlocked('"'); - - fputs_unlocked(" \"", stdout); - print_field(keyafter); - if (keyafter_truncation) - fputs_unlocked(truncation_string, stdout); - putchar_unlocked('"'); - - fputs_unlocked(" \"", stdout); - if (head_truncation) - fputs_unlocked(truncation_string, stdout); - print_field(head); - putchar_unlocked('"'); - - if (auto_reference || input_reference) { - fputs_unlocked(" \"", stdout); - print_field(reference); - putchar_unlocked('"'); - } - - putchar_unlocked('\n'); -} - -static void output_one_tex_line(void) { - BLOCK key; - BLOCK after; - char *cursor; - - printf("\\%s ", macro_name); - putchar_unlocked('{'); - print_field(tail); - fputs_unlocked("}{", stdout); - print_field(before); - fputs_unlocked("}{", stdout); - key.start = keyafter.start; - after.end = keyafter.end; - cursor = keyafter.start; - if (word_regex.string) { - regoff_t count; - count = re_match(&word_regex.pattern, cursor, keyafter.end - cursor, 0, - ((void *)0)); - if (count == -2) - matcher_error(); - cursor += count == -1 ? 1 : count; - } else if (word_fastmap[to_uchar(*cursor)]) - while (cursor < keyafter.end && word_fastmap[to_uchar(*cursor)]) - cursor++; - else - cursor++; - key.end = cursor; - after.start = cursor; - print_field(key); - fputs_unlocked("}{", stdout); - print_field(after); - fputs_unlocked("}{", stdout); - print_field(head); - putchar_unlocked('}'); - if (auto_reference || input_reference) { - putchar_unlocked('{'); - print_field(reference); - putchar_unlocked('}'); - } - putchar_unlocked('\n'); -} - -static void output_one_dumb_line(void) { - if (!right_reference) { - if (auto_reference) { - - print_field(reference); - putchar_unlocked(':'); - print_spaces(reference_max_width + gap_size - - (reference.end - reference.start) - 1); - } else { - - print_field(reference); - print_spaces(reference_max_width + gap_size - - (reference.end - reference.start)); - } - } - - if (tail.start < tail.end) { - - print_field(tail); - if (tail_truncation) - fputs_unlocked(truncation_string, stdout); - - print_spaces(half_line_width - gap_size - (before.end - before.start) - - (before_truncation ? truncation_string_length : 0) - - (tail.end - tail.start) - - (tail_truncation ? truncation_string_length : 0)); - } else - print_spaces(half_line_width - gap_size - (before.end - before.start) - - (before_truncation ? truncation_string_length : 0)); - - if (before_truncation) - fputs_unlocked(truncation_string, stdout); - print_field(before); - - print_spaces(gap_size); - - print_field(keyafter); - if (keyafter_truncation) - fputs_unlocked(truncation_string, stdout); - - if (head.start < head.end) { - - print_spaces(half_line_width - (keyafter.end - keyafter.start) - - (keyafter_truncation ? truncation_string_length : 0) - - (head.end - head.start) - - (head_truncation ? truncation_string_length : 0)); - if (head_truncation) - fputs_unlocked(truncation_string, stdout); - print_field(head); - } else - - if ((auto_reference || input_reference) && right_reference) - print_spaces(half_line_width - (keyafter.end - keyafter.start) - - (keyafter_truncation ? truncation_string_length : 0)); - - if ((auto_reference || input_reference) && right_reference) { - - print_spaces(gap_size); - print_field(reference); - } - - putchar_unlocked('\n'); -} - -static void generate_all_output(void) { - ptrdiff_t occurs_index; - OCCURS *occurs_cursor; - - tail.start = ((void *)0); - tail.end = ((void *)0); - tail_truncation = 0; - - head.start = ((void *)0); - head.end = ((void *)0); - head_truncation = 0; - - occurs_cursor = occurs_table[0]; - - for (occurs_index = 0; occurs_index < number_of_occurs[0]; occurs_index++) { - - define_all_fields(occurs_cursor); - - switch (output_format) { - case UNKNOWN_FORMAT: - - case DUMB_FORMAT: - output_one_dumb_line(); - break; - - case ROFF_FORMAT: - output_one_roff_line(); - break; - - case TEX_FORMAT: - output_one_tex_line(); - break; - } - - occurs_cursor++; - } -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [INPUT]... (without -G)\n or: " - "%s -G [OPTION]... [INPUT [OUTPUT]]\n", - 5) - - , - program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Output a permuted index, including context, of " - "the words in the input files.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -A, --auto-reference output automatically " - "generated references\n -G, --traditional " - "behave more like System V 'ptx'\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -F, --flag-truncation=STRING use STRING for " - "flagging line truncations.\n " - " The default is '/'\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -M, --macro-name=STRING macro name to use instead of " - "'xx'\n -O, --format=roff generate output as roff " - "directives\n -R, --right-side-refs put references at " - "right, not counted in -w\n -S, --sentence-regexp=REGEXP for " - "end of lines or end of sentences\n -T, --format=tex " - " generate output as TeX directives\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -W, --word-regexp=REGEXP use REGEXP to match each " - "keyword\n -b, --break-file=FILE word break characters " - "in this FILE\n -f, --ignore-case fold lower case to " - "upper case for sorting\n -g, --gap-size=NUMBER gap size " - "in columns between output fields\n -i, --ignore-file=FILE " - " read ignore word list from FILE\n -o, --only-file=FILE " - " read only word list from this FILE\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -r, --references first field of each line " - "is a reference\n -t, --typeset-mode - not " - "implemented -\n -w, --width=NUMBER output " - "width in columns, reference excluded\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("ptx"); - } - exit(status); -} - -static struct option const long_options[] = { - {"auto-reference", 0, ((void *)0), 'A'}, - {"break-file", 1, ((void *)0), 'b'}, - {"flag-truncation", 1, ((void *)0), 'F'}, - {"ignore-case", 0, ((void *)0), 'f'}, - {"gap-size", 1, ((void *)0), 'g'}, - {"ignore-file", 1, ((void *)0), 'i'}, - {"macro-name", 1, ((void *)0), 'M'}, - {"only-file", 1, ((void *)0), 'o'}, - {"references", 0, ((void *)0), 'r'}, - {"right-side-refs", 0, ((void *)0), 'R'}, - {"format", 1, ((void *)0), 10}, - {"sentence-regexp", 1, ((void *)0), 'S'}, - {"traditional", 0, ((void *)0), 'G'}, - {"typeset-mode", 0, ((void *)0), 't'}, - {"width", 1, ((void *)0), 'w'}, - {"word-regexp", 1, ((void *)0), 'W'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}, -}; - -static char const *const format_args[] = {"roff", "tex", ((void *)0) - -}; - -static enum Format const format_vals[] = {ROFF_FORMAT, TEX_FORMAT}; - -int main(int argc, char **argv) { - int optchar; - int file_index; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while (optchar = getopt_long(argc, argv, "AF:GM:ORS:TW:b:i:fg:o:trw:", - long_options, ((void *)0)), - optchar != (-1)) { - switch (optchar) { - default: - usage(1); - - case 'G': - gnu_extensions = 0; - break; - - case 'b': - break_file = optarg; - break; - - case 'f': - ignore_case = 1; - break; - - case 'g': { - intmax_t tmp; - if (!(xstrtoimax(optarg, ((void *)0), 0, &tmp, "") == LONGINT_OK && - 0 < tmp && tmp <= (9223372036854775807L))) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid gap " - "width: %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid gap width: %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid gap width: %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - gap_size = tmp; - break; - } - - case 'i': - ignore_file = optarg; - break; - - case 'o': - only_file = optarg; - break; - - case 'r': - input_reference = 1; - break; - - case 't': - - break; - - case 'w': { - intmax_t tmp; - if (!(xstrtoimax(optarg, ((void *)0), 0, &tmp, "") == LONGINT_OK && - 0 < tmp && tmp <= (9223372036854775807L))) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid line " - "width: %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid line width: %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid line width: %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - line_width = tmp; - break; - } - - case 'A': - auto_reference = 1; - break; - - case 'F': - truncation_string = optarg; - unescape_string(optarg); - break; - - case 'M': - macro_name = optarg; - break; - - case 'O': - output_format = ROFF_FORMAT; - break; - - case 'R': - right_reference = 1; - break; - - case 'S': - context_regex.string = optarg; - unescape_string(optarg); - break; - - case 'T': - output_format = TEX_FORMAT; - break; - - case 'W': - word_regex.string = optarg; - unescape_string(optarg); - if (!*word_regex.string) - word_regex.string = ((void *)0); - break; - - case 10: - output_format = ((format_vals)[__xargmatch_internal( - "--format", optarg, format_args, (void const *)(format_vals), - sizeof *(format_vals), argmatch_die, 1)]); - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "ptx", "GNU coreutils", Version, - proper_name_utf8("F. Pinard", "Fran\xc3\xa7ois Pinard"), - (char *)((void *)0)); - exit(0); - break; - ; - } - } - - if (optind == argc) { - - input_file_name = xmalloc(sizeof *input_file_name); - file_line_count = xmalloc(sizeof *file_line_count); - text_buffers = xmalloc(sizeof *text_buffers); - number_input_files = 1; - input_file_name[0] = ((void *)0); - } else if (gnu_extensions) { - number_input_files = argc - optind; - input_file_name = xnmalloc(number_input_files, sizeof *input_file_name); - file_line_count = xnmalloc(number_input_files, sizeof *file_line_count); - text_buffers = xnmalloc(number_input_files, sizeof *text_buffers); - - for (file_index = 0; file_index < number_input_files; file_index++) { - if (!*argv[optind] || (strcmp(argv[optind], "-") == 0)) - input_file_name[file_index] = ((void *)0); - else - input_file_name[file_index] = argv[optind]; - optind++; - } - } else { - - number_input_files = 1; - input_file_name = xmalloc(sizeof *input_file_name); - file_line_count = xmalloc(sizeof *file_line_count); - text_buffers = xmalloc(sizeof *text_buffers); - if (!*argv[optind] || (strcmp(argv[optind], "-") == 0)) - input_file_name[0] = ((void *)0); - else - input_file_name[0] = argv[optind]; - optind++; - - if (optind < argc) { - if (!freopen_safer(argv[optind], "w", stdout)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "argv[optind])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable())))); - optind++; - } - - if (optind < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind])); - usage(1); - } - } - - if (output_format == UNKNOWN_FORMAT) - output_format = gnu_extensions ? DUMB_FORMAT : ROFF_FORMAT; - - initialize_regex(); - - if (break_file) - digest_break_file(break_file); - - if (ignore_file) { - digest_word_file(ignore_file, &ignore_table); - if (ignore_table.length == 0) - ignore_file = ((void *)0); - } - - if (only_file) { - digest_word_file(only_file, &only_table); - if (only_table.length == 0) - only_file = ((void *)0); - } - - number_of_occurs[0] = 0; - total_line_count = 0; - maximum_word_length = 0; - reference_max_width = 0; - - for (file_index = 0; file_index < number_input_files; file_index++) { - BLOCK *text_buffer = text_buffers + file_index; - - swallow_file_in_memory(input_file_name[file_index], text_buffer); - find_occurs_in_text(file_index); - - total_line_count++; - file_line_count[file_index] = total_line_count; - } - - sort_found_occurs(); - fix_output_parameters(); - generate_all_output(); - - return 0; -} diff --git a/tests/source/coreutils/pwd.c b/tests/source/coreutils/pwd.c deleted file mode 100644 index 00c710d..0000000 --- a/tests/source/coreutils/pwd.c +++ /dev/null @@ -1,7218 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -struct dev_ino *get_root_dev_ino(struct dev_ino *root_d_i) - __attribute__((__nonnull__)); - -extern char *xgetcwd(void) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -struct file_name { - char *buf; - size_t n_alloc; - char *start; -}; - -static struct option const longopts[] = { - {"logical", 0, ((void *)0), 'L'}, - {"physical", 0, ((void *)0), 'P'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]...\n", 5), program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Print the full filename of the current working directory.\n\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -L, --logical use PWD from environment, even if it " - "contains symlinks\n -P, --physical avoid all symlinks\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - "\nIf no option is specified, -P is assumed.\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your " - "shell's documentation\n" - "for details about the options it supports.\n", - 5), - "pwd"); - emit_ancillary_info("pwd"); - } - exit(status); -} - -static void file_name_free(struct file_name *p) { - free(p->buf); - free(p); -} - -static struct file_name *file_name_init(void) { - struct file_name *p = xmalloc(sizeof *p); - - p->n_alloc = (((2 * 4096) < (32 * 1024)) ? (2 * 4096) : (32 * 1024)); - - p->buf = xmalloc(p->n_alloc); - p->start = p->buf + (p->n_alloc - 1); - p->start[0] = '\0'; - return p; -} - -static void file_name_prepend(struct file_name *p, char const *s, - size_t s_len) { - size_t n_free = p->start - p->buf; - if (n_free < 1 + s_len) { - size_t half = p->n_alloc + 1 + s_len; - - char *q = xnmalloc(2, half); - size_t n_used = p->n_alloc - n_free; - p->start = q + 2 * half - n_used; - memcpy(p->start, p->buf + n_free, n_used); - free(p->buf); - p->buf = q; - p->n_alloc = 2 * half; - } - - p->start -= 1 + s_len; - p->start[0] = '/'; - memcpy(p->start + 1, s, s_len); -} - -static char *nth_parent(size_t n) { - char *buf = xnmalloc(3, n); - char *p = buf; - - for (size_t i = 0; i < n; i++) { - memcpy(p, "../", 3); - p += 3; - } - p[-1] = '\0'; - return buf; -} -static void find_dir_entry(struct stat *dot_sb, struct file_name *file_name, - size_t parent_height) { - DIR *dirp; - int fd; - struct stat parent_sb; - - _Bool use_lstat; - - _Bool found; - - dirp = opendir(".."); - if (dirp == ((void *)0)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot open directory %s\", 5), quote " - "(nth_parent (parent_height))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot open directory %s", 5), - quote(nth_parent(parent_height))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot open directory %s", 5), - quote(nth_parent(parent_height))), - ((0) ? (void)0 : __builtin_unreachable())))); - - fd = dirfd(dirp); - if ((0 <= fd ? fchdir(fd) : chdir("..")) < 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to chdir to %s\", 5), quote " - "(nth_parent (parent_height))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to chdir to %s", 5), - quote(nth_parent(parent_height))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to chdir to %s", 5), - quote(nth_parent(parent_height))), - ((0) ? (void)0 : __builtin_unreachable())))); - - if ((0 <= fd ? fstat(fd, &parent_sb) : stat(".", &parent_sb)) < 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to stat %s\", 5), quote (nth_parent " - "(parent_height))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to stat %s", 5), - quote(nth_parent(parent_height))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to stat %s", 5), - quote(nth_parent(parent_height))), - ((0) ? (void)0 : __builtin_unreachable())))); - - use_lstat = (parent_sb.st_dev != dot_sb->st_dev); - - found = 0; - while (1) { - struct dirent const *dp; - struct stat ent_sb; - ino_t ino; - - (*__errno_location()) = 0; - if ((dp = readdir_ignoring_dot_and_dotdot(dirp)) == ((void *)0)) { - if ((*__errno_location())) { - - int e = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = e; - - dirp = ((void *)0); - } - break; - } - - ino = (dp)->d_ino; - - if (ino == NOT_AN_INODE_NUMBER || use_lstat) { - if (lstat(dp->d_name, &ent_sb) < 0) { - - continue; - } - ino = ent_sb.st_ino; - } - - if (ino != dot_sb->st_ino) - continue; - - if (!use_lstat || ent_sb.st_dev == dot_sb->st_dev) { - file_name_prepend(file_name, dp->d_name, (strlen((dp)->d_name))); - found = 1; - break; - } - } - - if (dirp == ((void *)0) || closedir(dirp) != 0) { - - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"reading directory %s\", 5), quote (nth_parent " - "(parent_height))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "reading directory %s", 5), - quote(nth_parent(parent_height))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "reading directory %s", 5), - quote(nth_parent(parent_height))), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (!found) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"couldn't find " - "directory entry in %s with matching i-node\", 5), " - "quote (nth_parent (parent_height))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext( - ((void *)0), - "couldn't find directory entry in %s with matching i-node", - 5), - quote(nth_parent(parent_height))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext( - ((void *)0), - "couldn't find directory entry in %s with matching i-node", - 5), - quote(nth_parent(parent_height))), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - - *dot_sb = parent_sb; -} -static void robust_getcwd(struct file_name *file_name) { - size_t height = 1; - struct dev_ino dev_ino_buf; - struct dev_ino *root_dev_ino = get_root_dev_ino(&dev_ino_buf); - struct stat dot_sb; - - if (root_dev_ino == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to get attributes of %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, \"/\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (stat(".", &dot_sb) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to stat %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, \".\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, ".")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, ".")), - ((0) ? (void)0 : __builtin_unreachable())))); - - while (1) { - - if (((dot_sb).st_ino == (*root_dev_ino).st_ino && - (dot_sb).st_dev == (*root_dev_ino).st_dev)) - break; - - find_dir_entry(&dot_sb, file_name, height++); - } - - if (file_name->start[0] == '\0') - file_name_prepend(file_name, "", 0); -} - -static char *logical_getcwd(void) { - struct stat st1; - struct stat st2; - char *wd = getenv("PWD"); - char *p; - - if (!wd || wd[0] != '/') - return ((void *)0); - p = wd; - while ((p = strstr(p, "/."))) { - if (!p[2] || p[2] == '/' || (p[2] == '.' && (!p[3] || p[3] == '/'))) - return ((void *)0); - p++; - } - - if (stat(wd, &st1) == 0 && stat(".", &st2) == 0 && - ((st1).st_ino == (st2).st_ino && (st1).st_dev == (st2).st_dev)) - return wd; - return ((void *)0); -} - -int main(int argc, char **argv) { - char *wd; - - _Bool logical = (getenv("POSIXLY_CORRECT") != ((void *)0)); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while (1) { - int c = getopt_long(argc, argv, "LP", longopts, ((void *)0)); - if (c == -1) - break; - switch (c) { - case 'L': - logical = 1; - break; - case 'P': - logical = 0; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "pwd", "GNU coreutils", Version, ("Jim Meyering"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (optind < argc) - error(0, 0, dcgettext(((void *)0), "ignoring non-option arguments", 5)); - - if (logical) { - wd = logical_getcwd(); - if (wd) { - puts(wd); - return 0; - } - } - - wd = xgetcwd(); - if (wd != ((void *)0)) { - puts(wd); - free(wd); - } else { - struct file_name *file_name = file_name_init(); - robust_getcwd(file_name); - puts(file_name->start); - file_name_free(file_name); - } - - return 0; -} diff --git a/tests/source/coreutils/readlink.c b/tests/source/coreutils/readlink.c deleted file mode 100644 index d99481a..0000000 --- a/tests/source/coreutils/readlink.c +++ /dev/null @@ -1,6954 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum canonicalize_mode_t { - - CAN_EXISTING = 0, - - CAN_ALL_BUT_LAST = 1, - - CAN_MISSING = 2, - - CAN_NOLINKS = 4 -}; -typedef enum canonicalize_mode_t canonicalize_mode_t; -char *canonicalize_filename_mode(const char *, canonicalize_mode_t) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern char *areadlink(char const *filename) - __attribute__((__malloc__(free, 1))); -extern char *areadlink_with_size(char const *filename, size_t size_hint) - __attribute__((__malloc__(free, 1))); - -extern char *areadlinkat(int fd, char const *filename) - __attribute__((__malloc__(free, 1))); - -extern char *areadlinkat_with_size(int fd, char const *filename, - size_t size_hint) - __attribute__((__malloc__(free, 1))); - -static _Bool no_newline; - -static _Bool verbose; - -static struct option const longopts[] = { - {"canonicalize", 0, ((void *)0), 'f'}, - {"canonicalize-existing", 0, ((void *)0), 'e'}, - {"canonicalize-missing", 0, ((void *)0), 'm'}, - {"no-newline", 0, ((void *)0), 'n'}, - {"quiet", 0, ((void *)0), 'q'}, - {"silent", 0, ((void *)0), 's'}, - {"verbose", 0, ((void *)0), 'v'}, - {"zero", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... FILE...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Print value of a symbolic link or canonical file name\n\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " -f, --canonicalize canonicalize by following every " - "symlink in\n every component of " - "the given name recursively;\n all " - "but the last component must exist\n -e, --canonicalize-existing " - " canonicalize by following every symlink in\n " - " every component of the given name recursively,\n " - " all components must exist\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " -m, --canonicalize-missing canonicalize by following every " - "symlink in\n every component of " - "the given name recursively,\n " - "without requirements on components existence\n -n, --no-newline " - " do not output the trailing delimiter\n -q, --quiet\n " - " -s, --silent suppress most error messages (on " - "by default)\n -v, --verbose report error " - "messages\n -z, --zero end each output line " - "with NUL, not newline\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("readlink"); - } - exit(status); -} - -int main(int argc, char **argv) { - - int can_mode = -1; - int status = 0; - int optc; - - _Bool use_nuls = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "efmnqsvz", longopts, ((void *)0))) != - -1) { - switch (optc) { - case 'e': - can_mode = CAN_EXISTING; - break; - case 'f': - can_mode = CAN_ALL_BUT_LAST; - break; - case 'm': - can_mode = CAN_MISSING; - break; - case 'n': - no_newline = 1; - break; - case 'q': - case 's': - verbose = 0; - break; - case 'v': - verbose = 1; - break; - case 'z': - use_nuls = 1; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "readlink", "GNU coreutils", Version, - ("Dmitry V. Levin"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (optind >= argc) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - if (argc - optind > 1) { - if (no_newline) - error(0, 0, - dcgettext(((void *)0), - "ignoring --no-newline with multiple arguments", 5)); - no_newline = 0; - } - - for (; optind < argc; ++optind) { - char const *fname = argv[optind]; - char *value = (can_mode != -1 ? canonicalize_filename_mode(fname, can_mode) - : areadlink_with_size(fname, 63)); - if (value) { - fputs_unlocked(value, stdout); - if (!no_newline) - putchar_unlocked(use_nuls ? '\0' : '\n'); - free(value); - } else { - status = 1; - if (verbose) - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, fname)); - } - } - - return status; -} diff --git a/tests/source/coreutils/realpath.c b/tests/source/coreutils/realpath.c deleted file mode 100644 index 85ab64e..0000000 --- a/tests/source/coreutils/realpath.c +++ /dev/null @@ -1,7117 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum canonicalize_mode_t { - - CAN_EXISTING = 0, - - CAN_ALL_BUT_LAST = 1, - - CAN_MISSING = 2, - - CAN_NOLINKS = 4 -}; -typedef enum canonicalize_mode_t canonicalize_mode_t; -char *canonicalize_filename_mode(const char *, canonicalize_mode_t) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern _Bool - -relpath(char const *can_fname, char const *can_reldir, char *buf, size_t len); - -enum { RELATIVE_TO_OPTION = 0x7f + 1, RELATIVE_BASE_OPTION }; - -static _Bool verbose = 1; -static _Bool logical; -static _Bool use_nuls; -static char const *can_relative_to; -static char const *can_relative_base; - -static struct option const longopts[] = { - {"canonicalize-existing", 0, ((void *)0), 'e'}, - {"canonicalize-missing", 0, ((void *)0), 'm'}, - {"relative-to", 1, ((void *)0), RELATIVE_TO_OPTION}, - {"relative-base", 1, ((void *)0), RELATIVE_BASE_OPTION}, - {"quiet", 0, ((void *)0), 'q'}, - {"strip", 0, ((void *)0), 's'}, - {"no-symlinks", 0, ((void *)0), 's'}, - {"zero", 0, ((void *)0), 'z'}, - {"logical", 0, ((void *)0), 'L'}, - {"physical", 0, ((void *)0), 'P'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... FILE...\n", 5), - program_name); - fputs_unlocked(dcgettext(((void *)0), - "Print the resolved absolute file name;\nall but " - "the last component must exist\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -e, --canonicalize-existing all components of the path must " - "exist\n -m, --canonicalize-missing no path components need " - "exist or be a directory\n -L, --logical resolve " - "'..' components before symlinks\n -P, --physical " - "resolve symlinks as encountered (default)\n -q, --quiet " - " suppress most error messages\n --relative-to=DIR " - " print the resolved path relative to DIR\n " - "--relative-base=DIR print absolute paths unless paths below " - "DIR\n -s, --strip, --no-symlinks don't expand symlinks\n -z, " - "--zero end each output line with NUL, not " - "newline\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("realpath"); - } - exit(status); -} - -static char *realpath_canon(char const *fname, int can_mode) { - char *can_fname = canonicalize_filename_mode(fname, can_mode); - if (logical && can_fname) { - can_mode &= ~CAN_NOLINKS; - char *can_fname2 = canonicalize_filename_mode(can_fname, can_mode); - free(can_fname); - return can_fname2; - } - return can_fname; -} - -__attribute__((__pure__)) static _Bool - -path_prefix(char const *prefix, char const *path) { - - prefix++; - path++; - - if (!*prefix) - return *path != '/'; - - if (*prefix == '/' && !prefix[1]) - return *path == '/'; - - while (*prefix && *path) { - if (*prefix != *path) - break; - prefix++; - path++; - } - return (!*prefix && (*path == '/' || !*path)); -} - -static _Bool - -isdir(char const *path) { - struct stat sb; - if (stat(path, &sb) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot stat %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, path)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, path)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, path)), - ((0) ? (void)0 : __builtin_unreachable())))); - return ((((sb.st_mode)) & 0170000) == (0040000)); -} - -static _Bool - -process_path(char const *fname, int can_mode) { - char *can_fname = realpath_canon(fname, can_mode); - if (!can_fname) { - if (verbose) - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, fname)); - return 0; - } - - if (!can_relative_to || - (can_relative_base && !path_prefix(can_relative_base, can_fname)) || - (can_relative_to && !relpath(can_fname, can_relative_to, ((void *)0), 0))) - fputs_unlocked(can_fname, stdout); - - putchar_unlocked(use_nuls ? '\0' : '\n'); - - free(can_fname); - - return 1; -} - -int main(int argc, char **argv) { - - _Bool ok = 1; - int can_mode = CAN_ALL_BUT_LAST; - char const *relative_to = ((void *)0); - char const *relative_base = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while (1) { - int c = getopt_long(argc, argv, "eLmPqsz", longopts, ((void *)0)); - if (c == -1) - break; - switch (c) { - case 'e': - can_mode &= ~(CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING); - can_mode |= CAN_EXISTING; - break; - case 'm': - can_mode &= ~(CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING); - can_mode |= CAN_MISSING; - break; - case 'L': - can_mode |= CAN_NOLINKS; - logical = 1; - break; - case 's': - can_mode |= CAN_NOLINKS; - logical = 0; - break; - case 'P': - can_mode &= ~CAN_NOLINKS; - logical = 0; - break; - case 'q': - verbose = 0; - break; - case 'z': - use_nuls = 1; - break; - case RELATIVE_TO_OPTION: - relative_to = optarg; - break; - case RELATIVE_BASE_OPTION: - relative_base = optarg; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "realpath", "GNU coreutils", Version, - ("Padraig Brady"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (optind >= argc) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - if (relative_base && !relative_to) - relative_to = relative_base; - - _Bool need_dir = - (can_mode & (CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING)) == - CAN_EXISTING; - if (relative_to) { - can_relative_to = realpath_canon(relative_to, can_mode); - if (!can_relative_to) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, relative_to)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - relative_to)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - relative_to)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (need_dir && !isdir(can_relative_to)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 20, \"%s\", quotearg_n_style_colon (0, " - "shell_escape_quoting_style, relative_to)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 20, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - relative_to)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 20, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - relative_to)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - if (relative_base == relative_to) - can_relative_base = can_relative_to; - else if (relative_base) { - char *base = realpath_canon(relative_base, can_mode); - if (!base) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, relative_base)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - relative_base)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - relative_base)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (need_dir && !isdir(base)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 20, \"%s\", quotearg_n_style_colon (0, " - "shell_escape_quoting_style, relative_base)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 20, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - relative_base)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 20, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - relative_base)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (path_prefix(base, can_relative_to)) - can_relative_base = base; - else { - free(base); - can_relative_base = can_relative_to; - can_relative_to = ((void *)0); - } - } - - for (; optind < argc; ++optind) - ok &= process_path(argv[optind], can_mode); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/relpath.c b/tests/source/coreutils/relpath.c deleted file mode 100644 index 6f213c5..0000000 --- a/tests/source/coreutils/relpath.c +++ /dev/null @@ -1,6834 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -extern _Bool - -relpath(char const *can_fname, char const *can_reldir, char *buf, size_t len); - -__attribute__((__pure__)) static int path_common_prefix(char const *path1, - char const *path2) { - int i = 0; - int ret = 0; - - if ((path1[1] == '/') != (path2[1] == '/')) - return 0; - - while (*path1 && *path2) { - if (*path1 != *path2) - break; - if (*path1 == '/') - ret = i + 1; - path1++; - path2++; - i++; - } - - if ((!*path1 && !*path2) || (!*path1 && *path2 == '/') || - (!*path2 && *path1 == '/')) - ret = i; - - return ret; -} - -static _Bool - -buffer_or_output(char const *str, char **pbuf, size_t *plen) { - if (*pbuf) { - size_t slen = strlen(str); - if (slen >= *plen) - return 1; - memcpy(*pbuf, str, slen + 1); - *pbuf += slen; - *plen -= slen; - } else { - fputs_unlocked(str, stdout); - } - - return 0; -} - -_Bool - -relpath (char const *can_fname, char const *can_reldir, char *buf, size_t len) -{ - - _Bool buf_err = 0; - - int common_index = path_common_prefix(can_reldir, can_fname); - if (!common_index) - return 0; - - char const *relto_suffix = can_reldir + common_index; - char const *fname_suffix = can_fname + common_index; - - if (*relto_suffix == '/') - relto_suffix++; - if (*fname_suffix == '/') - fname_suffix++; - - if (*relto_suffix) { - buf_err |= buffer_or_output("..", &buf, &len); - for (; *relto_suffix; ++relto_suffix) { - if (*relto_suffix == '/') - buf_err |= buffer_or_output("/..", &buf, &len); - } - - if (*fname_suffix) { - buf_err |= buffer_or_output("/", &buf, &len); - buf_err |= buffer_or_output(fname_suffix, &buf, &len); - } - } else { - buf_err |= buffer_or_output(*fname_suffix ? fname_suffix : ".", &buf, &len); - } - - if (buf_err) - error(0, 36, "%s", dcgettext(((void *)0), "generating relative path", 5)); - - return !buf_err; -} diff --git a/tests/source/coreutils/remove.c b/tests/source/coreutils/remove.c deleted file mode 100644 index 3030b4a..0000000 --- a/tests/source/coreutils/remove.c +++ /dev/null @@ -1,7372 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -char const *file_type(struct stat const *) __attribute__((__pure__)); - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -enum rm_interactive { - - RMI_ALWAYS = 3, - RMI_SOMETIMES, - RMI_NEVER -}; - -struct rm_options { - - _Bool ignore_missing_files; - - enum rm_interactive interactive; - - _Bool one_file_system; - - _Bool recursive; - - _Bool remove_empty_directories; - - struct dev_ino *root_dev_ino; - - _Bool preserve_all_root; - - _Bool stdin_tty; - - _Bool verbose; - - _Bool require_restore_cwd; -}; - -enum RM_status { - - RM_OK = 2, - RM_USER_DECLINED, - RM_ERROR, - RM_NONEMPTY_DIR -}; -extern enum RM_status rm(char *const *file, struct rm_options const *x); - -struct dev_ino *get_root_dev_ino(struct dev_ino *root_d_i) - __attribute__((__nonnull__)); - -_Bool can_write_any_file(void); - -enum { I_RING_SIZE = 4 }; -_Static_assert(1 <= I_RING_SIZE, "verify (" - "1 <= I_RING_SIZE" - ")"); -struct I_ring { - int ir_data[I_RING_SIZE]; - int ir_default_val; - unsigned int ir_front; - unsigned int ir_back; - - _Bool ir_empty; -}; -typedef struct I_ring I_ring; - -void i_ring_init(I_ring *ir, int ir_default_val); -int i_ring_push(I_ring *ir, int val); -int i_ring_pop(I_ring *ir); - -_Bool i_ring_empty(I_ring const *ir) __attribute__((__pure__)); - -typedef struct { - struct _ftsent *fts_cur; - struct _ftsent *fts_child; - struct _ftsent **fts_array; - dev_t fts_dev; - char *fts_path; - int fts_rfd; - int fts_cwd_fd; - - size_t fts_pathlen; - size_t fts_nitems; - int (*fts_compar)(struct _ftsent const **, struct _ftsent const **); - int fts_options; - struct hash_table *fts_leaf_optimization_works_ht; - - union { - struct hash_table *ht; - - struct cycle_check_state *state; - } fts_cycle; - - I_ring fts_fd_ring; -} FTS; - -typedef struct _ftsent { - struct _ftsent *fts_cycle; - struct _ftsent *fts_parent; - struct _ftsent *fts_link; - DIR *fts_dirp; - - long fts_number; - void *fts_pointer; - char *fts_accpath; - char *fts_path; - int fts_errno; - int fts_symfd; - size_t fts_pathlen; - - FTS *fts_fts; - - ptrdiff_t fts_level; - - size_t fts_namelen; - unsigned short int fts_info; - - unsigned short int fts_flags; - - unsigned short int fts_instr; - - struct stat fts_statp[1]; - char fts_name[]; -} FTSENT; - -FTSENT *rpl_fts_children(FTS *, int); - -int rpl_fts_close(FTS *); - -FTS *rpl_fts_open(char *const *, int, int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__(rpl_fts_close, 1))); - -FTSENT *rpl_fts_read(FTS *); - -int rpl_fts_set(FTS *, FTSENT *, int); - -FTS *xfts_open(char *const *, int options, - int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__)) __attribute__((__malloc__(rpl_fts_close, 1))) - __attribute__((__nonnull__(1))) __attribute__((__returns_nonnull__)); - -_Bool - -cycle_warning_required (FTS const *fts, FTSENT const *ent) - __attribute__ ((__nonnull__ )) __attribute__ ((__pure__)); - -_Bool yesno(void); - -enum Ternary { T_UNKNOWN = 2, T_NO, T_YES }; -typedef enum Ternary Ternary; - -enum Prompt_action { PA_DESCEND_INTO_DIR = 2, PA_REMOVE_DIR }; -static int cache_fstatat(int fd, char const *file, struct stat *st, int flag) { - if (st->st_size == -1 && fstatat(fd, file, st, flag) != 0) { - st->st_size = -2; - st->st_ino = (*__errno_location()); - } - if (0 <= st->st_size) - return 0; - - (*__errno_location()) = (int)st->st_ino; - return -1; -} - -static inline struct stat *cache_stat_init(struct stat *st) { - st->st_size = -1; - return st; -} - -static int write_protected_non_symlink(int fd_cwd, char const *file, - struct stat *buf) { - if (can_write_any_file()) - return 0; - if (cache_fstatat(fd_cwd, file, buf, 0x100) != 0) - return -1; - if (((((buf->st_mode)) & 0170000) == (0120000))) - return 0; - { - if (faccessat(fd_cwd, file, 2, 0x200) == 0) - return 0; - - return (*__errno_location()) == 13 ? 1 : -1; - } -} -static enum RM_status prompt(FTS const *fts, FTSENT const *ent, _Bool is_dir, - struct rm_options const *x, - enum Prompt_action mode, Ternary *is_empty_p) { - int fd_cwd = fts->fts_cwd_fd; - char const *full_name = ent->fts_path; - char const *filename = ent->fts_accpath; - if (is_empty_p) - *is_empty_p = T_UNKNOWN; - - struct stat st; - struct stat *sbuf = &st; - cache_stat_init(sbuf); - - int dirent_type = is_dir ? DT_DIR : DT_UNKNOWN; - int write_protected = 0; - - _Bool is_empty = 0; - if (is_empty_p) { - is_empty = is_empty_dir(fd_cwd, filename); - *is_empty_p = is_empty ? T_YES : T_NO; - } - - if (ent->fts_number) - return RM_USER_DECLINED; - - if (x->interactive == RMI_NEVER) - return RM_OK; - - int wp_errno = 0; - if (!x->ignore_missing_files && - ((x->interactive == RMI_ALWAYS) || x->stdin_tty) && - dirent_type != DT_LNK) { - write_protected = write_protected_non_symlink(fd_cwd, filename, sbuf); - wp_errno = (*__errno_location()); - } - - if (write_protected || x->interactive == RMI_ALWAYS) { - if (0 <= write_protected && dirent_type == DT_UNKNOWN) { - if (cache_fstatat(fd_cwd, filename, sbuf, 0x100) == 0) { - if (((((sbuf->st_mode)) & 0170000) == (0120000))) - dirent_type = DT_LNK; - else if (((((sbuf->st_mode)) & 0170000) == (0040000))) - dirent_type = DT_DIR; - - } else { - - write_protected = -1; - wp_errno = (*__errno_location()); - } - } - - if (0 <= write_protected) - switch (dirent_type) { - case DT_LNK: - - if (x->interactive != RMI_ALWAYS) - return RM_OK; - break; - - case DT_DIR: - - if (!(x->recursive || (x->remove_empty_directories && is_empty))) { - write_protected = -1; - wp_errno = 21; - } - break; - } - - char const *quoted_name = - quotearg_style(shell_escape_always_quoting_style, full_name); - - if (write_protected < 0) { - error(0, wp_errno, dcgettext(((void *)0), "cannot remove %s", 5), - quoted_name); - return RM_ERROR; - } - - if (dirent_type == DT_DIR - - && mode == PA_DESCEND_INTO_DIR && !is_empty) - fprintf( - stderr, - (write_protected - ? dcgettext(((void *)0), - "%s: descend into write-protected directory %s? ", 5) - - : dcgettext(((void *)0), "%s: descend into directory %s? ", 5)), - program_name, quoted_name); - else { - if (cache_fstatat(fd_cwd, filename, sbuf, 0x100) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot remove %s", 5), quoted_name); - return RM_ERROR; - } - - fprintf( - stderr, - (write_protected - - ? dcgettext(((void *)0), "%s: remove write-protected %s %s? ", 5) - - : dcgettext(((void *)0), "%s: remove %s %s? ", 5)), - program_name, file_type(sbuf), quoted_name); - } - - if (!yesno()) - return RM_USER_DECLINED; - } - return RM_OK; -} - -static inline _Bool - -nonexistent_file_errno(int errnum) { - switch (errnum) { - case 84: - case 22: - case 2: - case 20: - return 1; - default: - return 0; - } -} - -static inline _Bool - -ignorable_missing(struct rm_options const *x, int errnum) { - return x->ignore_missing_files && nonexistent_file_errno(errnum); -} - -static void fts_skip_tree(FTS *fts, FTSENT *ent) { - rpl_fts_set(fts, ent, 4); - - (__extension__({ - __typeof__(rpl_fts_read(fts)) __x = (rpl_fts_read(fts)); - (void)__x; - })); -} - -static void mark_ancestor_dirs(FTSENT *ent) { - FTSENT *p; - for (p = ent->fts_parent; 0 <= p->fts_level; p = p->fts_parent) { - if (p->fts_number) - break; - p->fts_number = 1; - } -} - -static enum RM_status excise(FTS *fts, FTSENT *ent, struct rm_options const *x, - _Bool is_dir) { - int flag = is_dir ? 0x200 : 0; - if (unlinkat(fts->fts_cwd_fd, ent->fts_accpath, flag) == 0) { - if (x->verbose) { - printf((is_dir ? dcgettext(((void *)0), "removed directory %s\n", 5) - - : dcgettext(((void *)0), "removed %s\n", 5)), - quotearg_style(shell_escape_always_quoting_style, ent->fts_path)); - } - return RM_OK; - } - - if ((*__errno_location()) == 30) { - struct stat st; - if (!(fstatat(fts->fts_cwd_fd, ent->fts_accpath, &st, - - 0x100) && - (*__errno_location()) == 2)) - - (*__errno_location()) = 30; - } - - if (ignorable_missing(x, (*__errno_location()))) - return RM_OK; - - if (ent->fts_info == 4 && - ((*__errno_location()) == 39 || (*__errno_location()) == 21 || - (*__errno_location()) == 20 - - || (*__errno_location()) == 17) && - (ent->fts_errno == 1 || ent->fts_errno == 13)) - - (*__errno_location()) = ent->fts_errno; - error(0, (*__errno_location()), dcgettext(((void *)0), "cannot remove %s", 5), - quotearg_style(shell_escape_always_quoting_style, ent->fts_path)); - mark_ancestor_dirs(ent); - return RM_ERROR; -} - -static enum RM_status rm_fts(FTS *fts, FTSENT *ent, - struct rm_options const *x) { - switch (ent->fts_info) { - case 1: - if (!x->recursive && !(x->remove_empty_directories && - is_empty_dir(fts->fts_cwd_fd, ent->fts_accpath))) { - - int err = x->remove_empty_directories ? 39 : 21; - error(0, err, dcgettext(((void *)0), "cannot remove %s", 5), - quotearg_style(shell_escape_always_quoting_style, ent->fts_path)); - mark_ancestor_dirs(ent); - fts_skip_tree(fts, ent); - return RM_ERROR; - } - - if (ent->fts_level == 0) { - - if (dot_or_dotdot(last_component(ent->fts_accpath))) { - error(0, 0, - - dcgettext(((void *)0), - "refusing to remove %s or %s directory: skipping %s", - 5), - quotearg_n_style(0, shell_escape_always_quoting_style, "."), - quotearg_n_style(1, shell_escape_always_quoting_style, ".."), - quotearg_n_style(2, shell_escape_always_quoting_style, - ent->fts_path)); - fts_skip_tree(fts, ent); - return RM_ERROR; - } - - if ((x->root_dev_ino && - ((*ent->fts_statp).st_ino == (*x->root_dev_ino).st_ino && - (*ent->fts_statp).st_dev == (*x->root_dev_ino).st_dev))) { - do { - if ((strcmp(ent->fts_path, "/") == 0)) - error(0, 0, - dcgettext(((void *)0), - "it is dangerous to operate recursively on %s", 5), - quotearg_style(shell_escape_always_quoting_style, - ent->fts_path)); - else - error( - 0, 0, - dcgettext( - ((void *)0), - "it is dangerous to operate recursively on %s (same as %s)", - 5), - quotearg_n_style(0, shell_escape_always_quoting_style, - ent->fts_path), - quotearg_n_style(1, shell_escape_always_quoting_style, "/")); - error(0, 0, - dcgettext(((void *)0), - "use --no-preserve-root to override this failsafe", - 5)); - } while (0); - fts_skip_tree(fts, ent); - return RM_ERROR; - } - - if (x->preserve_all_root) { - - _Bool failed = 0; - char *parent = file_name_concat(ent->fts_accpath, "..", ((void *)0)); - struct stat statbuf; - - if (!parent || lstat(parent, &statbuf)) { - error(0, 0, - - dcgettext(((void *)0), "failed to stat %s: skipping %s", 5), - quotearg_n_style(0, shell_escape_always_quoting_style, parent), - quotearg_n_style(1, shell_escape_always_quoting_style, - ent->fts_accpath)); - failed = 1; - } - - free(parent); - - if (failed || fts->fts_dev != statbuf.st_dev) { - if (!failed) { - error(0, 0, - - dcgettext(((void *)0), - "skipping %s, since it's on a different device", 5), - quotearg_style(shell_escape_always_quoting_style, - ent->fts_path)); - error(0, 0, - dcgettext(((void *)0), "and --preserve-root=all is in effect", - 5)); - } - fts_skip_tree(fts, ent); - return RM_ERROR; - } - } - } - - { - Ternary is_empty_directory; - enum RM_status s = - prompt(fts, ent, 1, x, PA_DESCEND_INTO_DIR, &is_empty_directory); - - if (s == RM_OK && is_empty_directory == T_YES) { - - s = excise(fts, ent, x, 1); - if (s == RM_OK) - fts_skip_tree(fts, ent); - } - - if (s != RM_OK) { - mark_ancestor_dirs(ent); - fts_skip_tree(fts, ent); - } - - return s; - } - - case 8: - case 10: - case 12: - case 13: - case 6: - case 4: - case 11: - case 3: { - - if (ent->fts_info == 6 && x->one_file_system && 0 < ent->fts_level && - ent->fts_statp->st_dev != fts->fts_dev) { - mark_ancestor_dirs(ent); - error(0, 0, - dcgettext(((void *)0), - "skipping %s, since it's on a different device", 5), - quotearg_style(shell_escape_always_quoting_style, ent->fts_path)); - return RM_ERROR; - } - - _Bool is_dir = ent->fts_info == 6 || ent->fts_info == 4; - enum RM_status s = prompt(fts, ent, is_dir, x, PA_REMOVE_DIR, ((void *)0)); - if (s != RM_OK) - return s; - return excise(fts, ent, x, is_dir); - } - - case 2: - do { - error( - 0, 0, - dcgettext(((void *)0), - "WARNING: Circular directory structure.\nThis almost " - "certainly means that you have a corrupted file " - "system.\nNOTIFY YOUR SYSTEM MANAGER.\nThe following " - "directory is part of the cycle:\n %s\n", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, ent->fts_path)); - } while (0); - fts_skip_tree(fts, ent); - return RM_ERROR; - - case 7: - - error(0, ent->fts_errno, dcgettext(((void *)0), "traversal failed: %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, ent->fts_path)); - fts_skip_tree(fts, ent); - return RM_ERROR; - - default: - error(0, 0, - dcgettext(((void *)0), - "unexpected failure: fts_info=%d: %s\n" - "please report to %s", - 5) - - , - ent->fts_info, - quotearg_n_style_colon(0, shell_escape_quoting_style, ent->fts_path), - "bug-coreutils@gnu.org"); - abort(); - } -} - -enum RM_status rm(char *const *file, struct rm_options const *x) { - enum RM_status rm_status = RM_OK; - - if (*file) { - int bit_flags = (0x0200 | 0x0008 | 0x0010); - - if (x->one_file_system) - bit_flags |= 0x0040; - - FTS *fts = xfts_open(file, bit_flags, ((void *)0)); - - while (1) { - FTSENT *ent; - - ent = rpl_fts_read(fts); - if (ent == ((void *)0)) { - if ((*__errno_location()) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "fts_read failed", 5)); - rm_status = RM_ERROR; - } - break; - } - - enum RM_status s = rm_fts(fts, ent, x); - - ((void)sizeof( - (((s) == RM_OK || (s) == RM_USER_DECLINED || (s) == RM_ERROR)) ? 1 - : 0), - __extension__({ - if (((s) == RM_OK || (s) == RM_USER_DECLINED || (s) == RM_ERROR)) - ; - else - __assert_fail("VALID_STATUS (s)", "src/remove.c", 611, - __extension__ __PRETTY_FUNCTION__); - })); - do { - if ((s) == RM_ERROR || - ((s) == RM_USER_DECLINED && (rm_status) == RM_OK)) - (rm_status) = (s); - } while (0); - } - - if (rpl_fts_close(fts) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "fts_close failed", 5)); - rm_status = RM_ERROR; - } - } - - return rm_status; -} diff --git a/tests/source/coreutils/rm.c b/tests/source/coreutils/rm.c deleted file mode 100644 index a6bf4cd..0000000 --- a/tests/source/coreutils/rm.c +++ /dev/null @@ -1,7309 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -struct dev_ino { - ino_t st_ino; - dev_t st_dev; -}; - -enum rm_interactive { - - RMI_ALWAYS = 3, - RMI_SOMETIMES, - RMI_NEVER -}; - -struct rm_options { - - _Bool ignore_missing_files; - - enum rm_interactive interactive; - - _Bool one_file_system; - - _Bool recursive; - - _Bool remove_empty_directories; - - struct dev_ino *root_dev_ino; - - _Bool preserve_all_root; - - _Bool stdin_tty; - - _Bool verbose; - - _Bool require_restore_cwd; -}; - -enum RM_status { - - RM_OK = 2, - RM_USER_DECLINED, - RM_ERROR, - RM_NONEMPTY_DIR -}; -extern enum RM_status rm(char *const *file, struct rm_options const *x); - -struct dev_ino *get_root_dev_ino(struct dev_ino *root_d_i) - __attribute__((__nonnull__)); - -_Bool yesno(void); - -inline int priv_set_remove_linkdir(void) { return -1; } - -inline int priv_set_restore_linkdir(void) { return -1; } - -enum { - INTERACTIVE_OPTION = 0x7f + 1, - ONE_FILE_SYSTEM, - NO_PRESERVE_ROOT, - PRESERVE_ROOT, - PRESUME_INPUT_TTY_OPTION -}; - -enum interactive_type { - interactive_never, - interactive_once, - interactive_always -}; - -static struct option const long_opts[] = { - {"force", 0, ((void *)0), 'f'}, - {"interactive", 2, ((void *)0), INTERACTIVE_OPTION}, - - {"one-file-system", 0, ((void *)0), ONE_FILE_SYSTEM}, - {"no-preserve-root", 0, ((void *)0), NO_PRESERVE_ROOT}, - {"preserve-root", 2, ((void *)0), PRESERVE_ROOT}, - - {"-presume-input-tty", 0, ((void *)0), PRESUME_INPUT_TTY_OPTION}, - - {"recursive", 0, ((void *)0), 'r'}, - {"dir", 0, ((void *)0), 'd'}, - {"verbose", 0, ((void *)0), 'v'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static char const *const interactive_args[] = {"never", "no", "none", - "once", "always", "yes", - ((void *)0) - -}; -static enum interactive_type const interactive_types[] = { - interactive_never, interactive_never, interactive_never, - interactive_once, interactive_always, interactive_always}; -_Static_assert((sizeof(interactive_args) / sizeof *(interactive_args)) == - (sizeof(interactive_types) / sizeof *(interactive_types)) + - 1, - "verify (" - "ARRAY_CARDINALITY (interactive_args) == ARRAY_CARDINALITY " - "(interactive_types) + 1" - ")"); - -static void diagnose_leading_hyphen(int argc, char **argv) { - - for (int i = 1; i < argc; i++) { - char const *arg = argv[i]; - struct stat st; - - if (arg[0] == '-' && arg[1] && lstat(arg, &st) == 0) { - fprintf( - stderr, - - dcgettext(((void *)0), "Try '%s ./%s' to remove the file %s.\n", 5), - argv[0], quotearg_n_style(1, shell_escape_quoting_style, arg), - quotearg_style(shell_escape_always_quoting_style, arg)); - break; - } - } -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Remove (unlink) the FILE(s).\n\n -f, --force " - "ignore nonexistent files and arguments, never prompt\n -i " - " prompt before every removal\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -I prompt once before removing more " - "than three files, or\n when " - "removing recursively; less intrusive than -i,\n " - " while still giving protection against most " - "mistakes\n --interactive[=WHEN] prompt according to " - "WHEN: never, once (-I), or\n " - "always (-i); without WHEN, prompt always\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --one-file-system when removing a hierarchy " - "recursively, skip any\n directory " - "that is on a file system different from\n " - " that of the corresponding command line argument\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --no-preserve-root do not treat '/' specially\n " - "--preserve-root[=all] do not remove '/' (default);\n " - " with 'all', reject any command line argument\n " - " on a separate device from its parent\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -r, -R, --recursive remove directories and their contents " - "recursively\n -d, --dir remove empty directories\n " - "-v, --verbose explain what is being done\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nBy default, rm does not remove directories. Use the " - "--recursive (-r or -R)\noption to remove each listed " - "directory, too, along with all of its contents.\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - "\nTo remove a file whose name starts with a '-', for " - "example '-foo',\nuse one of these commands:\n %s -- " - "-foo\n\n %s ./-foo\n", - 5) - - , - program_name, program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nNote that if you use rm to remove a file, it might be possible " - "to recover\nsome of its contents, given sufficient expertise " - "and/or time. For greater\nassurance that the contents are truly " - "unrecoverable, consider using shred(1).\n", - 5), - stdout) - - ; - emit_ancillary_info("rm"); - } - exit(status); -} - -static void rm_option_init(struct rm_options *x) { - x->ignore_missing_files = 0; - x->interactive = RMI_SOMETIMES; - x->one_file_system = 0; - x->remove_empty_directories = 0; - x->recursive = 0; - x->root_dev_ino = ((void *)0); - x->preserve_all_root = 0; - x->stdin_tty = isatty(0); - x->verbose = 0; - - x->require_restore_cwd = 0; -} - -int main(int argc, char **argv) { - - _Bool preserve_root = 1; - struct rm_options x; - - _Bool prompt_once = 0; - int c; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdin); - - rm_option_init(&x); - - priv_set_remove_linkdir(); - - while ((c = getopt_long(argc, argv, "dfirvIR", long_opts, ((void *)0))) != - -1) { - switch (c) { - case 'd': - x.remove_empty_directories = 1; - break; - - case 'f': - x.interactive = RMI_NEVER; - x.ignore_missing_files = 1; - prompt_once = 0; - break; - - case 'i': - x.interactive = RMI_ALWAYS; - x.ignore_missing_files = 0; - prompt_once = 0; - break; - - case 'I': - x.interactive = RMI_SOMETIMES; - x.ignore_missing_files = 0; - prompt_once = 1; - break; - - case 'r': - case 'R': - x.recursive = 1; - break; - - case INTERACTIVE_OPTION: { - int i; - if (optarg) - i = ((interactive_types)[__xargmatch_internal( - "--interactive", optarg, interactive_args, - (void const *)(interactive_types), sizeof *(interactive_types), - argmatch_die, 1)]); - else - i = interactive_always; - switch (i) { - case interactive_never: - x.interactive = RMI_NEVER; - prompt_once = 0; - break; - - case interactive_once: - x.interactive = RMI_SOMETIMES; - x.ignore_missing_files = 0; - prompt_once = 1; - break; - - case interactive_always: - x.interactive = RMI_ALWAYS; - x.ignore_missing_files = 0; - prompt_once = 0; - break; - } - break; - } - - case ONE_FILE_SYSTEM: - x.one_file_system = 1; - break; - - case NO_PRESERVE_ROOT: - if (!(strcmp(argv[optind - 1], "--no-preserve-root") == 0)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate " - "the --no-preserve-root option\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext( - ((void *)0), - "you may not abbreviate the --no-preserve-root option", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext( - ((void *)0), - "you may not abbreviate the --no-preserve-root option", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - preserve_root = 0; - break; - - case PRESERVE_ROOT: - if (optarg) { - if (strcmp(optarg, "all") == 0) - x.preserve_all_root = 1; - else { - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"unrecognized " - "--preserve-root argument: %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "unrecognized --preserve-root argument: %s", - 5), - quotearg_style(shell_escape_always_quoting_style, - optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "unrecognized --preserve-root argument: %s", - 5), - quotearg_style(shell_escape_always_quoting_style, - optarg)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - } - preserve_root = 1; - break; - - case PRESUME_INPUT_TTY_OPTION: - x.stdin_tty = 1; - break; - - case 'v': - x.verbose = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "rm", "GNU coreutils", Version, ("Paul Rubin"), - ("David MacKenzie"), ("Richard M. Stallman"), - ("Jim Meyering"), (char *)((void *)0)); - exit(0); - break; - ; - default: - diagnose_leading_hyphen(argc, argv); - usage(1); - } - } - - if (argc <= optind) { - if (x.ignore_missing_files) - return 0; - else { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - } - - if (x.recursive && preserve_root) { - static struct dev_ino dev_ino_buf; - x.root_dev_ino = get_root_dev_ino(&dev_ino_buf); - if (x.root_dev_ino == ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to get attributes of %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, \"/\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, "/")), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - uintmax_t n_files = argc - optind; - char **file = argv + optind; - - if (prompt_once && (x.recursive || 3 < n_files)) { - fprintf(stderr, - (x.recursive ? dcngettext(((void *)0), - "%s: remove %" - "l" - "u" - " argument recursively? ", - "%s: remove %" - "l" - "u" - " arguments recursively? ", - select_plural(n_files), 5) - - : dcngettext(((void *)0), - "%s: remove %" - "l" - "u" - " argument? ", - "%s: remove %" - "l" - "u" - " arguments? ", - select_plural(n_files), 5) - - ), - program_name, n_files); - if (!yesno()) - return 0; - } - - enum RM_status status = rm(file, &x); - - ((void)sizeof((((status) == RM_OK || (status) == RM_USER_DECLINED || - (status) == RM_ERROR)) - ? 1 - : 0), - __extension__({ - if (((status) == RM_OK || (status) == RM_USER_DECLINED || - (status) == RM_ERROR)) - ; - else - __assert_fail("VALID_STATUS (status)", "src/rm.c", 371, - __extension__ __PRETTY_FUNCTION__); - })); - return status == RM_ERROR ? 1 : 0; -} diff --git a/tests/source/coreutils/rmdir.c b/tests/source/coreutils/rmdir.c deleted file mode 100644 index 1297322..0000000 --- a/tests/source/coreutils/rmdir.c +++ /dev/null @@ -1,7021 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern void prog_fprintf(FILE *fp, char const *fmt, ...) - __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))); - -static _Bool remove_empty_parents; - -static _Bool ignore_fail_on_non_empty; - -static _Bool verbose; - -enum { IGNORE_FAIL_ON_NON_EMPTY_OPTION = 0x7f + 1 }; - -static struct option const longopts[] = { - - {"ignore-fail-on-non-empty", 0, ((void *)0), - IGNORE_FAIL_ON_NON_EMPTY_OPTION}, - - {"path", 0, ((void *)0), 'p'}, - {"parents", 0, ((void *)0), 'p'}, - {"verbose", 0, ((void *)0), 'v'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static _Bool - -errno_rmdir_non_empty(int error_number) { - return error_number == 39 || error_number == 17; -} - -static _Bool - -errno_may_be_non_empty(int error_number) { - switch (error_number) { - case 13: - case 1: - case 30: - case 16: - return 1; - default: - return 0; - } -} - -static _Bool - -ignorable_failure(int error_number, char const *dir) { - return (ignore_fail_on_non_empty && - (errno_rmdir_non_empty(error_number) || - (errno_may_be_non_empty(error_number) && !is_empty_dir(-100, dir) && - (*__errno_location()) == 0))); -} - -static _Bool - -remove_parents(char *dir) { - char *slash; - - _Bool ok = 1; - - strip_trailing_slashes(dir); - while (1) { - slash = strrchr(dir, '/'); - if (slash == ((void *)0)) - break; - - while (slash > dir && *slash == '/') - --slash; - slash[1] = 0; - - if (verbose) - prog_fprintf(stdout, dcgettext(((void *)0), "removing directory, %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - - ok = (rmdir(dir) == 0); - int rmdir_errno = (*__errno_location()); - - if (!ok) { - - if (ignorable_failure(rmdir_errno, dir)) { - ok = 1; - } else { - char const *error_msg; - if (rmdir_errno != 20) { - - error_msg = "failed to remove directory %s"; - } else { - - error_msg = "failed to remove %s"; - } - error(0, rmdir_errno, dcgettext(((void *)0), error_msg, 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - } - break; - } - } - return ok; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... DIRECTORY...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Remove the DIRECTORY(ies), if they are empty.\n\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --ignore-fail-on-non-empty\n " - "ignore each failure that is solely because a directory\n " - " is non-empty\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -p, --parents remove DIRECTORY and its " - "ancestors; e.g., 'rmdir -p a/b/c'\n " - " is similar to 'rmdir a/b/c a/b a'\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -v, --verbose output a diagnostic for " - "every directory processed\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("rmdir"); - } - exit(status); -} - -int main(int argc, char **argv) { - - _Bool ok = 1; - int optc; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - remove_empty_parents = 0; - - while ((optc = getopt_long(argc, argv, "pv", longopts, ((void *)0))) != -1) { - switch (optc) { - case 'p': - remove_empty_parents = 1; - break; - case IGNORE_FAIL_ON_NON_EMPTY_OPTION: - ignore_fail_on_non_empty = 1; - break; - case 'v': - verbose = 1; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "rmdir", "GNU coreutils", Version, - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (optind == argc) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - for (; optind < argc; ++optind) { - char *dir = argv[optind]; - - if (verbose) - prog_fprintf(stdout, dcgettext(((void *)0), "removing directory, %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - - if (rmdir(dir) != 0) { - int rmdir_errno = (*__errno_location()); - if (ignorable_failure(rmdir_errno, dir)) - continue; - - _Bool custom_error = 0; - if (rmdir_errno == 20) { - char const *last_unix_slash = strrchr(dir, '/'); - if (last_unix_slash && (*(last_unix_slash + 1) == '\0')) { - struct stat st; - int ret = stat(dir, &st); - - if ((ret != 0 && (*__errno_location()) != 20) || - (ret == 0 && ((((st.st_mode)) & 0170000) == (0040000)))) { - - char *dir_arg = xstrdup(dir); - strip_trailing_slashes(dir); - ret = lstat(dir, &st); - if (ret == 0 && ((((st.st_mode)) & 0170000) == (0120000))) { - error(0, 0, - - dcgettext(((void *)0), - "failed to remove %s:" - " Symbolic link not followed", - 5) - - , - quotearg_style(shell_escape_always_quoting_style, dir_arg)); - custom_error = 1; - } - free(dir_arg); - } - } - } - - if (!custom_error) - error(0, rmdir_errno, dcgettext(((void *)0), "failed to remove %s", 5), - quotearg_style(shell_escape_always_quoting_style, dir)); - - ok = 0; - } else if (remove_empty_parents) { - ok &= remove_parents(dir); - } - } - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/runcon.c b/tests/source/coreutils/runcon.c deleted file mode 100644 index a271da4..0000000 --- a/tests/source/coreutils/runcon.c +++ /dev/null @@ -1,7673 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); -typedef struct { - void *ptr; -} context_s_t; - -typedef context_s_t *context_t; - -extern context_t context_new(const char *); - -extern char *context_str(context_t); - -extern void context_free(context_t); - -extern const char *context_type_get(context_t); -extern const char *context_range_get(context_t); -extern const char *context_role_get(context_t); -extern const char *context_user_get(context_t); - -extern int context_type_set(context_t, const char *); -extern int context_range_set(context_t, const char *); -extern int context_role_set(context_t, const char *); -extern int context_user_set(context_t, const char *); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -static struct option const long_options[] = { - {"role", 1, ((void *)0), 'r'}, - {"type", 1, ((void *)0), 't'}, - {"user", 1, ((void *)0), 'u'}, - {"range", 1, ((void *)0), 'l'}, - {"compute", 0, ((void *)0), 'c'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s CONTEXT COMMAND [args]\n or: %s [ -c ] [-u " - "USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n", - 5) - - , - program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Run a program in a different SELinux security " - "context.\nWith neither CONTEXT nor COMMAND, " - "print the current security context.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " CONTEXT Complete security context\n -c, " - "--compute compute process transition context before " - "modifying\n -t, --type=TYPE type (for same role as " - "parent)\n -u, --user=USER user identity\n -r, " - "--role=ROLE role\n -l, --range=RANGE levelrange\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("runcon"); - } - exit(status); -} - -int main(int argc, char **argv) { - char *role = ((void *)0); - char *range = ((void *)0); - char *user = ((void *)0); - char *type = ((void *)0); - char *context = ((void *)0); - char *cur_context = ((void *)0); - char *file_context = ((void *)0); - char *new_context = ((void *)0); - - _Bool compute_trans = 0; - - context_t con; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while (1) { - int option_index = 0; - int c = getopt_long(argc, argv, "+r:t:u:l:c", long_options, &option_index); - if (c == -1) - break; - switch (c) { - case 'r': - if (role) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "roles\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "multiple roles", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "multiple roles", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - role = optarg; - break; - case 't': - if (type) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "types\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "multiple types", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "multiple types", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - type = optarg; - break; - case 'u': - if (user) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "users\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "multiple users", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "multiple users", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - user = optarg; - break; - case 'l': - if (range) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "levelranges\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "multiple levelranges", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "multiple levelranges", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - range = optarg; - break; - case 'c': - compute_trans = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "runcon", "GNU coreutils", Version, ("Russell Coker"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - break; - } - } - - if (argc - optind == 0) { - if (getcon(&cur_context) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to get current context\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get current context", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get current context", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - fputs_unlocked(cur_context, stdout); - fputc_unlocked('\n', stdout); - return 0; - } - - if (!(user || role || type || range || compute_trans)) { - if (optind >= argc) { - error(0, 0, - dcgettext(((void *)0), - "you must specify -c, -t, -u, -l, -r, or context", 5)); - usage(1); - } - context = argv[optind++]; - } - - if (optind >= argc) { - error(0, 0, dcgettext(((void *)0), "no command specified", 5)); - usage(1); - } - - if (is_selinux_enabled() != 1) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s may be used only on a " - "SELinux kernel\", 5), program_name), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "%s may be used only on a SELinux kernel", 5), - program_name), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "%s may be used only on a SELinux kernel", 5), - program_name), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (context) { - con = context_new(context); - if (!con) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"failed to create security context: " - "%s\", 5), quote (context)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to create security context: %s", 5), - quote(context)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to create security context: %s", 5), - quote(context)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else { - if (getcon(&cur_context) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to get current context\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get current context", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get current context", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (compute_trans) { - - if (rpl_getfilecon(argv[optind], &file_context) == -1) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to get security context of %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "argv[optind])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to get security context of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to get security context of %s", 5), - quotearg_style(shell_escape_always_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - - if (security_compute_create(cur_context, file_context, - string_to_security_class("process"), - &new_context) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to compute a new context\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to compute a new context", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to compute a new context", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - freecon(file_context); - freecon(cur_context); - - cur_context = new_context; - } - - con = context_new(cur_context); - if (!con) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"failed to create security context: " - "%s\", 5), quote (cur_context)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to create security context: %s", 5), - quote(cur_context)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to create security context: %s", 5), - quote(cur_context)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (user && context_user_set(con, user)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to set new user: %s\", 5), quote (user)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to set new user: %s", 5), - quote(user)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to set new user: %s", 5), - quote(user)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (type && context_type_set(con, type)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to set new type: %s\", 5), quote (type)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to set new type: %s", 5), - quote(type)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to set new type: %s", 5), - quote(type)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (range && context_range_set(con, range)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"failed to set new range: %s\", 5), " - "quote (range)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to set new range: %s", 5), - quote(range)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to set new range: %s", 5), - quote(range)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (role && context_role_set(con, role)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to set new role: %s\", 5), quote (role)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to set new role: %s", 5), - quote(role)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to set new role: %s", 5), - quote(role)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (security_check_context(context_str(con)) < 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"invalid context: %s\", 5), quote (context_str " - "(con))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "invalid context: %s", 5), - quote(context_str(con))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "invalid context: %s", 5), - quote(context_str(con))), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (setexeccon(context_str(con)) != 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"unable to set security context %s\", 5), " - "quote (context_str (con))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "unable to set security context %s", 5), - quote(context_str(con))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "unable to set security context %s", 5), - quote(context_str(con))), - ((0) ? (void)0 : __builtin_unreachable())))); - if (cur_context != ((void *)0)) - freecon(cur_context); - - execvp(argv[optind], argv + optind); - - int exit_status = - (*__errno_location()) == 2 ? EXIT_ENOENT : EXIT_CANNOT_INVOKE; - error(0, (*__errno_location()), "%s", quote(argv[optind])); - return exit_status; -} diff --git a/tests/source/coreutils/selinux.c b/tests/source/coreutils/selinux.c deleted file mode 100644 index 57ac818..0000000 --- a/tests/source/coreutils/selinux.c +++ /dev/null @@ -1,7497 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef long int intptr_t; - -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -typedef __builtin_va_list __gnuc_va_list; -typedef __gnuc_va_list va_list; - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); -struct selabel_handle; -extern struct selabel_handle *selabel_open(unsigned int backend, - const struct selinux_opt *opts, - unsigned nopts); -extern void selabel_close(struct selabel_handle *handle); -extern int selabel_lookup(struct selabel_handle *handle, char **con, - const char *key, int type); -extern int selabel_lookup_raw(struct selabel_handle *handle, char **con, - const char *key, int type); - -extern _Bool selabel_partial_match(struct selabel_handle *handle, - const char *key); - -extern _Bool selabel_get_digests_all_partial_matches( - struct selabel_handle *rec, const char *key, uint8_t **calculated_digest, - uint8_t **xattr_digest, size_t *digest_len); -extern _Bool selabel_hash_all_partial_matches(struct selabel_handle *rec, - const char *key, uint8_t *digest); - -extern int selabel_lookup_best_match(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con, - const char *key, const char **aliases, - int type); -extern int selabel_digest(struct selabel_handle *rec, unsigned char **digest, - size_t *digest_len, char ***specfiles, - size_t *num_specfiles); - -enum selabel_cmp_result { - SELABEL_SUBSET, - SELABEL_EQUAL, - SELABEL_SUPERSET, - SELABEL_INCOMPARABLE -}; -extern enum selabel_cmp_result selabel_cmp(struct selabel_handle *h1, - struct selabel_handle *h2); -extern void selabel_stats(struct selabel_handle *handle); -typedef struct { - void *ptr; -} context_s_t; - -typedef context_s_t *context_t; - -extern context_t context_new(const char *); - -extern char *context_str(context_t); - -extern void context_free(context_t); - -extern const char *context_type_get(context_t); -extern const char *context_range_get(context_t); -extern const char *context_role_get(context_t); -extern const char *context_user_get(context_t); - -extern int context_type_set(context_t, const char *); -extern int context_range_set(context_t, const char *); -extern int context_role_set(context_t, const char *); -extern int context_user_set(context_t, const char *); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum canonicalize_mode_t { - - CAN_EXISTING = 0, - - CAN_ALL_BUT_LAST = 1, - - CAN_MISSING = 2, - - CAN_NOLINKS = 4 -}; -typedef enum canonicalize_mode_t canonicalize_mode_t; -char *canonicalize_filename_mode(const char *, canonicalize_mode_t) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); - -enum { I_RING_SIZE = 4 }; -_Static_assert(1 <= I_RING_SIZE, "verify (" - "1 <= I_RING_SIZE" - ")"); -struct I_ring { - int ir_data[I_RING_SIZE]; - int ir_default_val; - unsigned int ir_front; - unsigned int ir_back; - - _Bool ir_empty; -}; -typedef struct I_ring I_ring; - -void i_ring_init(I_ring *ir, int ir_default_val); -int i_ring_push(I_ring *ir, int val); -int i_ring_pop(I_ring *ir); - -_Bool i_ring_empty(I_ring const *ir) __attribute__((__pure__)); - -typedef struct { - struct _ftsent *fts_cur; - struct _ftsent *fts_child; - struct _ftsent **fts_array; - dev_t fts_dev; - char *fts_path; - int fts_rfd; - int fts_cwd_fd; - - size_t fts_pathlen; - size_t fts_nitems; - int (*fts_compar)(struct _ftsent const **, struct _ftsent const **); - int fts_options; - struct hash_table *fts_leaf_optimization_works_ht; - - union { - struct hash_table *ht; - - struct cycle_check_state *state; - } fts_cycle; - - I_ring fts_fd_ring; -} FTS; - -typedef struct _ftsent { - struct _ftsent *fts_cycle; - struct _ftsent *fts_parent; - struct _ftsent *fts_link; - DIR *fts_dirp; - - long fts_number; - void *fts_pointer; - char *fts_accpath; - char *fts_path; - int fts_errno; - int fts_symfd; - size_t fts_pathlen; - - FTS *fts_fts; - - ptrdiff_t fts_level; - - size_t fts_namelen; - unsigned short int fts_info; - - unsigned short int fts_flags; - - unsigned short int fts_instr; - - struct stat fts_statp[1]; - char fts_name[]; -} FTSENT; - -FTSENT *rpl_fts_children(FTS *, int); - -int rpl_fts_close(FTS *); - -FTS *rpl_fts_open(char *const *, int, int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__(rpl_fts_close, 1))); - -FTSENT *rpl_fts_read(FTS *); - -int rpl_fts_set(FTS *, FTSENT *, int); - -FTS *xfts_open(char *const *, int options, - int (*)(const FTSENT **, const FTSENT **)) - __attribute__((__malloc__)) __attribute__((__malloc__(rpl_fts_close, 1))) - __attribute__((__nonnull__(1))) __attribute__((__returns_nonnull__)); - -_Bool - -cycle_warning_required (FTS const *fts, FTSENT const *ent) - __attribute__ ((__nonnull__ )) __attribute__ ((__pure__)); -struct selabel_handle; - -static inline _Bool - -ignorable_ctx_err(int err) { - return err == 95 || err == 61; -} - -extern _Bool - -restorecon(struct selabel_handle *selabel_handle, char const *path, - _Bool recurse); -extern int defaultcon(struct selabel_handle *selabel_handle, char const *path, - mode_t mode); -static int computecon(char const *path, mode_t mode, char **con) { - char *scon = ((void *)0); - char *tcon = ((void *)0); - security_class_t tclass; - int rc = -1; - - char *dir = dir_name(path); - if (!dir) - goto quit; - if (getcon(&scon) < 0) - goto quit; - if (rpl_getfilecon(dir, &tcon) < 0) - goto quit; - tclass = mode_to_security_class(mode); - if (!tclass) - goto quit; - rc = security_compute_create(scon, tcon, tclass, con); - -quit:; - int err = (*__errno_location()); - free(dir); - freecon(scon); - freecon(tcon); - - (*__errno_location()) = err; - return rc; -} -int defaultcon(struct selabel_handle *selabel_handle, char const *path, - mode_t mode) { - int rc = -1; - char *scon = ((void *)0); - char *tcon = ((void *)0); - context_t scontext = 0, tcontext = 0; - char const *contype; - char *constr; - char *newpath = ((void *)0); - - if (!(((path)[0]) == '/')) { - - newpath = canonicalize_filename_mode(path, CAN_MISSING); - if (!newpath) - goto quit; - path = newpath; - } - - if (selabel_lookup(selabel_handle, &scon, path, mode) < 0) { - - if ((*__errno_location()) == 2) - - (*__errno_location()) = 61; - goto quit; - } - if (computecon(path, mode, &tcon) < 0) - goto quit; - if (!(scontext = context_new(scon))) - goto quit; - if (!(tcontext = context_new(tcon))) - goto quit; - - if (!(contype = context_type_get(scontext))) - goto quit; - if (context_type_set(tcontext, contype)) - goto quit; - if (!(constr = context_str(tcontext))) - goto quit; - - rc = setfscreatecon(constr); - -quit:; - int err = (*__errno_location()); - context_free(scontext); - context_free(tcontext); - freecon(scon); - freecon(tcon); - free(newpath); - - (*__errno_location()) = err; - return rc; -} -static int restorecon_private(struct selabel_handle *selabel_handle, - char const *path) { - int rc = -1; - struct stat sb; - char *scon = ((void *)0); - char *tcon = ((void *)0); - context_t scontext = 0, tcontext = 0; - char const *contype; - char *constr; - int fd; - - if (!selabel_handle) { - if (getfscreatecon(&tcon) < 0) - return rc; - if (!tcon) { - - (*__errno_location()) = 61; - return rc; - } - rc = lsetfilecon(path, tcon); - int err = (*__errno_location()); - freecon(tcon); - - (*__errno_location()) = err; - return rc; - } - - fd = open(path, 00 | 0400000); - if (fd == -1 && ((*__errno_location()) != 40)) - goto quit; - - if (fd != -1) { - if (fstat(fd, &sb) < 0) - goto quit; - } else { - if (lstat(path, &sb) < 0) - goto quit; - } - - if (selabel_lookup(selabel_handle, &scon, path, sb.st_mode) < 0) { - - if ((*__errno_location()) == 2) - - (*__errno_location()) = 61; - goto quit; - } - if (!(scontext = context_new(scon))) - goto quit; - - if (fd != -1) { - if (rpl_fgetfilecon(fd, &tcon) < 0) - goto quit; - } else { - if (rpl_lgetfilecon(path, &tcon) < 0) - goto quit; - } - - if (!(tcontext = context_new(tcon))) - goto quit; - - if (!(contype = context_type_get(scontext))) - goto quit; - if (context_type_set(tcontext, contype)) - goto quit; - if (!(constr = context_str(tcontext))) - goto quit; - - if (fd != -1) - rc = fsetfilecon(fd, constr); - else - rc = lsetfilecon(path, constr); - -quit:; - int err = (*__errno_location()); - if (fd != -1) - close(fd); - context_free(scontext); - context_free(tcontext); - freecon(scon); - freecon(tcon); - - (*__errno_location()) = err; - return rc; -} - -_Bool - -restorecon (struct selabel_handle *selabel_handle, - char const *path, - _Bool - recurse) -{ - char *newpath = ((void *)0); - - if (!(((path)[0]) == '/')) { - - newpath = canonicalize_filename_mode(path, CAN_MISSING); - if (!newpath) - return 0; - path = newpath; - } - - if (!recurse) { - - _Bool ok = restorecon_private(selabel_handle, path) != -1; - int err = (*__errno_location()); - free(newpath); - - (*__errno_location()) = err; - return ok; - } - - char const *ftspath[2] = {path, ((void *)0)}; - FTS *fts = xfts_open((char *const *)ftspath, 0x0010, ((void *)0)); - - int err = 0; - for (FTSENT *ent; (ent = rpl_fts_read(fts));) - if (restorecon_private(selabel_handle, fts->fts_path) < 0) - err = (*__errno_location()); - - if ((*__errno_location()) != 0) - err = (*__errno_location()); - - if (rpl_fts_close(fts) != 0) - err = (*__errno_location()); - - free(newpath); - return !err; -} diff --git a/tests/source/coreutils/seq.c b/tests/source/coreutils/seq.c deleted file mode 100644 index 14bfdb0..0000000 --- a/tests/source/coreutils/seq.c +++ /dev/null @@ -1,7501 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; -double cl_strtod(char const *, char **__restrict__) - __attribute__((__nonnull__(1))); -long double cl_strtold(char const *, char **__restrict__) - __attribute__((__nonnull__(1))); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -_Bool xstrtod(const char *str, const char **ptr, double *result, - double (*convert)(char const *, char **)); - -_Bool xstrtold(const char *str, const char **ptr, long double *result, - long double (*convert)(char const *, char **)); -static _Bool locale_ok; - -static _Bool equal_width; - -static char const *separator; - -static char const terminator[] = "\n"; - -static struct option const long_options[] = { - {"equal-width", 0, ((void *)0), 'w'}, - {"format", 1, ((void *)0), 'f'}, - {"separator", 1, ((void *)0), 's'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... LAST\n or: %s [OPTION]... FIRST " - "LAST\n or: %s [OPTION]... FIRST INCREMENT LAST\n", - 5) - - , - program_name, program_name, program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Print numbers from FIRST to LAST, in steps of INCREMENT.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -f, --format=FORMAT use printf style floating-point " - "FORMAT\n -s, --separator=STRING use STRING to separate " - "numbers (default: \\n)\n -w, --equal-width equalize " - "width by padding with leading zeroes\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nIf FIRST or INCREMENT is omitted, it defaults to 1. That is, " - "an\nomitted INCREMENT defaults to 1 even when LAST is smaller " - "than FIRST.\nThe sequence of numbers ends when the sum of the " - "current number and\nINCREMENT would become greater than " - "LAST.\nFIRST, INCREMENT, and LAST are interpreted as floating " - "point values.\nINCREMENT is usually positive if FIRST is smaller " - "than LAST, and\nINCREMENT is usually negative if FIRST is greater " - "than LAST.\nINCREMENT must not be 0; none of FIRST, INCREMENT and " - "LAST may be NaN.\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "FORMAT must be suitable for printing one argument of type " - "'double';\nit defaults to %.PRECf if FIRST, INCREMENT, and " - "LAST are all fixed point\ndecimal numbers with maximum " - "precision PREC, and to %g otherwise.\n", - 5), - stdout) - - ; - emit_ancillary_info("seq"); - } - exit(status); -} - -struct operand { - - long double value; - - size_t width; - - int precision; -}; -typedef struct operand operand; - -struct layout { - - size_t prefix_len; - size_t suffix_len; -}; - -static operand scan_arg(char const *arg) { - operand ret; - - if (!xstrtold(arg, ((void *)0), &ret.value, cl_strtold)) { - error(0, 0, - dcgettext(((void *)0), "invalid floating point argument: %s", 5), - quote(arg)); - usage(1); - } - - if (((ret.value) != (ret.value))) { - error(0, 0, dcgettext(((void *)0), "invalid %s argument: %s", 5), - quote_n(0, "not-a-number"), quote_n(1, arg)); - usage(1); - } - - while (((*__ctype_b_loc())[(int)((to_uchar(*arg)))] & - (unsigned short int)_ISspace) || - *arg == '+') - arg++; - - ret.width = 0; - ret.precision = 0x7fffffff; - - char const *decimal_point = strchr(arg, '.'); - if (!decimal_point && !strchr(arg, 'p')) - ret.precision = 0; - - if (!arg[strcspn(arg, "xX")] && ((ret.value) * 0 == 0)) { - size_t fraction_len = 0; - ret.width = strlen(arg); - - if (decimal_point) { - fraction_len = strcspn(decimal_point + 1, "eE"); - if (fraction_len <= 0x7fffffff) - ret.precision = fraction_len; - ret.width += (fraction_len == 0 - ? -1 - : (decimal_point == arg || - !((unsigned int)(decimal_point[-1]) - '0' <= 9))); - } - char const *e = strchr(arg, 'e'); - if (!e) - e = strchr(arg, 'E'); - if (e) { - long exponent = - (((strtol(e + 1, ((void *)0), 10)) > (-0x7fffffffffffffffL)) - ? (strtol(e + 1, ((void *)0), 10)) - : (-0x7fffffffffffffffL)); - ret.precision += exponent < 0 - ? -exponent - : -(((ret.precision) < (exponent)) ? (ret.precision) - : (exponent)); - - ret.width -= strlen(arg) - (e - arg); - - if (exponent < 0) { - if (decimal_point) { - if (e == decimal_point + 1) - ret.width++; - } else - ret.width++; - exponent = -exponent; - } else { - if (decimal_point && ret.precision == 0 && fraction_len) - ret.width--; - exponent -= - (((fraction_len) < (exponent)) ? (fraction_len) : (exponent)); - } - ret.width += exponent; - } - } - - return ret; -} - -static char const *long_double_format(char const *fmt, struct layout *layout) { - size_t i; - size_t prefix_len = 0; - size_t suffix_len = 0; - size_t length_modifier_offset; - - _Bool has_L; - - for (i = 0; !(fmt[i] == '%' && fmt[i + 1] != '%'); i += (fmt[i] == '%') + 1) { - if (!fmt[i]) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"format %s has " - "no %% directive\", 5), quote (fmt)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "format %s has no %% directive", 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "format %s has no %% directive", 5), - quote(fmt)), - ((0) ? (void)0 : __builtin_unreachable())))); - prefix_len++; - } - - i++; - i += strspn (fmt + i, "-+ i += strspn (fmt + i, "0123456789"); - if (fmt[i] == '.') - { - i++; - i += strspn(fmt + i, "0123456789"); - } - - length_modifier_offset = i; - has_L = (fmt[i] == 'L'); - i += has_L; - if (fmt[i] == '\0') - ((!!sizeof (struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"format %s ends " - "in %%\", 5), quote (fmt)), assume (false))" - ")"); - int _gl_dummy; })) ? ((error ( - 1 - , 0, - dcgettext (((void *)0), - "format %s ends in %%" - , 5) - , quote (fmt)), (( - 0 - ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( - 1 - , 0, - dcgettext (((void *)0), - "format %s ends in %%" - , 5) - , quote (fmt)), (( - 0 - ) ? (void) 0 : __builtin_unreachable ())))); - if (! strchr ("efgaEFGA", fmt[i])) - ((!!sizeof (struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"format %s has unknown %%%c " - "directive\", 5), quote (fmt), fmt[i]), assume (false))" - ")"); - int _gl_dummy; })) ? ((error ( - 1 - , 0, - dcgettext (((void *)0), - "format %s has unknown %%%c directive" - , 5) - , quote (fmt), fmt[i]), (( - 0 - ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( - 1 - , 0, - dcgettext (((void *)0), - "format %s has unknown %%%c directive" - , 5) - , quote (fmt), fmt[i]), (( - 0 - ) ? (void) 0 : __builtin_unreachable ())))) - ; - - for (i++; ; i += (fmt[i] == '%') + 1) - if (fmt[i] == '%' && fmt[i + 1] != '%') - ((!!sizeof (struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"format %s has too " - "many %% directives\", 5), quote (fmt)), assume (false))" - ")"); - int _gl_dummy; })) ? ((error ( - 1 - , 0, - dcgettext (((void *)0), - "format %s has too many %% directives" - , 5) - , quote (fmt)), (( - 0 - ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( - 1 - , 0, - dcgettext (((void *)0), - "format %s has too many %% directives" - , 5) - , quote (fmt)), (( - 0 - ) ? (void) 0 : __builtin_unreachable ())))) - ; - else if (fmt[i]) - suffix_len++; - else - { - size_t format_size = i + 1; - char *ldfmt = xmalloc(format_size + 1); - memcpy(ldfmt, fmt, length_modifier_offset); - ldfmt[length_modifier_offset] = 'L'; - strcpy(ldfmt + length_modifier_offset + 1, - fmt + length_modifier_offset + has_L); - layout->prefix_len = prefix_len; - layout->suffix_len = suffix_len; - return ldfmt; - } -} - -static void io_error(void) { - - clearerr_unlocked(stdout); - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static void print_numbers(char const *fmt, struct layout layout, - long double first, long double step, - long double last) { - - _Bool out_of_range = (step < 0 ? first < last : last < first); - - if (!out_of_range) { - long double x = first; - long double i; - - for (i = 1;; i++) { - long double x0 = x; - if (printf(fmt, x) < 0) - io_error(); - if (out_of_range) - break; - x = first + i * step; - out_of_range = (step < 0 ? x < last : last < x); - - if (out_of_range) { - - _Bool print_extra_number = 0; - long double x_val; - char *x_str; - int x_strlen; - if (locale_ok) - setlocale(1, "C"); - x_strlen = rpl_asprintf(&x_str, fmt, x); - if (locale_ok) - setlocale(1, ""); - if (x_strlen < 0) - xalloc_die(); - x_str[x_strlen - layout.suffix_len] = '\0'; - - if (xstrtold(x_str + layout.prefix_len, ((void *)0), &x_val, - cl_strtold) && - x_val == last) { - char *x0_str = ((void *)0); - int x0_strlen = rpl_asprintf(&x0_str, fmt, x0); - if (x0_strlen < 0) - xalloc_die(); - x0_str[x0_strlen - layout.suffix_len] = '\0'; - print_extra_number = !(strcmp(x0_str, x_str) == 0); - free(x0_str); - } - - free(x_str); - if (!print_extra_number) - break; - } - - if (fputs_unlocked(separator, stdout) == (-1)) - io_error(); - } - - if (fputs_unlocked(terminator, stdout) == (-1)) - io_error(); - } -} - -static char const *get_default_format(operand first, operand step, - operand last) { - static char format_buf[sizeof "%0.Lf" + - 2 * (((((sizeof(int) * 8) - (!((__typeof__(int))0 < - (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1)))]; - - int prec = (((first.precision) > (step.precision)) ? (first.precision) - : (step.precision)); - - if (prec != 0x7fffffff && last.precision != 0x7fffffff) { - if (equal_width) { - - size_t first_width = first.width + (prec - first.precision); - - size_t last_width = last.width + (prec - last.precision); - if (last.precision && prec == 0) - last_width--; - if (last.precision == 0 && prec) - last_width++; - if (first.precision == 0 && prec) - first_width++; - size_t width = - (((first_width) > (last_width)) ? (first_width) : (last_width)); - if (width <= 0x7fffffff) { - int w = width; - sprintf(format_buf, "%%0%d.%dLf", w, prec); - return format_buf; - } - } else { - sprintf(format_buf, "%%.%dLf", prec); - return format_buf; - } - } - - return "%Lg"; -} - -static void incr(char **s0, size_t *s_len) { - char *s = *s0; - char *endp = s + *s_len - 1; - - do { - if ((*endp)++ < '9') - return; - *endp-- = '0'; - } while (endp >= s); - *--(*s0) = '1'; - ++*s_len; -} - -static int cmp(char const *a, size_t a_len, char const *b, size_t b_len) { - if (a_len < b_len) - return -1; - if (b_len < a_len) - return 1; - return (memcmp(a, b, a_len)); -} - -__attribute__((__pure__)) static char const *trim_leading_zeros(char const *s) { - char const *p = s; - while (*s == '0') - ++s; - - if (!*s && s != p) - --s; - return s; -} - -static void seq_fast(char const *a, char const *b, uintmax_t step) { - - _Bool inf = (strcmp(b, "inf") == 0); - - a = trim_leading_zeros(a); - b = trim_leading_zeros(b); - - size_t p_len = strlen(a); - size_t q_len = inf ? 0 : strlen(b); - - size_t inc_size = - ((((((p_len + 1) > (q_len)) ? (p_len + 1) : (q_len))) > (31)) - ? ((((p_len + 1) > (q_len)) ? (p_len + 1) : (q_len))) - : (31)); - - _Static_assert(3 < 31 - 1, - "verify (" - "SEQ_FAST_STEP_LIMIT_DIGITS < INITIAL_ALLOC_DIGITS - 1" - ")"); - - char *p0 = xmalloc(inc_size + 1); - char *p = memcpy(p0 + inc_size - p_len, a, p_len + 1); - char *q; - char *q0; - if (!inf) { - q0 = xmalloc(inc_size + 1); - q = memcpy(q0 + inc_size - q_len, b, q_len + 1); - } else - q = q0 = ((void *)0); - - _Bool ok = inf || cmp(p, p_len, q, q_len) <= 0; - if (ok) { - - size_t buf_size = - (((8192) > ((inc_size + 1) * 2)) ? (8192) : ((inc_size + 1) * 2)); - char *buf = xmalloc(buf_size); - char const *buf_end = buf + buf_size; - - char *bufp = buf; - - bufp = mempcpy(bufp, p, p_len); - - while (1) { - for (uintmax_t n_incr = step; n_incr; n_incr--) - incr(&p, &p_len); - - if (!inf && 0 < cmp(p, p_len, q, q_len)) - break; - - *bufp++ = *separator; - - if (p_len == inc_size) { - inc_size *= 2; - p0 = xrealloc(p0, inc_size + 1); - p = memmove(p0 + p_len, p0, p_len + 1); - - if (buf_size < (inc_size + 1) * 2) { - size_t buf_offset = bufp - buf; - buf_size = (inc_size + 1) * 2; - buf = xrealloc(buf, buf_size); - buf_end = buf + buf_size; - bufp = buf + buf_offset; - } - } - - bufp = mempcpy(bufp, p, p_len); - - if (buf_end - (p_len + 1) < bufp) { - if (fwrite_unlocked(buf, bufp - buf, 1, stdout) != 1) - io_error(); - bufp = buf; - } - } - - *bufp++ = *terminator; - if (fwrite_unlocked(buf, bufp - buf, 1, stdout) != 1) - io_error(); - } - - if (ok) - exit(0); - - free(p0); - free(q0); -} - -__attribute__((__pure__)) static _Bool - -all_digits_p(char const *s) { - size_t n = strlen(s); - return ((unsigned int)(s[0]) - '0' <= 9) && n == strspn(s, "0123456789"); -} - -int main(int argc, char **argv) { - int optc; - operand first = {1, 1, 0}; - operand step = {1, 1, 0}; - operand last; - struct layout layout = {0, 0}; - - char const *format_str = ((void *)0); - - ; - set_program_name(argv[0]); - locale_ok = !!setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - equal_width = 0; - separator = "\n"; - - while (optind < argc) { - if (argv[optind][0] == '-' && ((optc = argv[optind][1]) == '.' || - ((unsigned int)(optc) - '0' <= 9))) { - - break; - } - - optc = getopt_long(argc, argv, "+f:s:w", long_options, ((void *)0)); - if (optc == -1) - break; - - switch (optc) { - case 'f': - format_str = optarg; - break; - - case 's': - separator = optarg; - break; - - case 'w': - equal_width = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "seq", "GNU coreutils", Version, ("Ulrich Drepper"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - unsigned int n_args = argc - optind; - if (n_args < 1) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - if (3 < n_args) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 3])); - usage(1); - } - - if (format_str) - format_str = long_double_format(format_str, &layout); - - if (format_str != ((void *)0) && equal_width) { - error(0, 0, - dcgettext(((void *)0), - "format string may not be specified" - " when printing equal width strings", - 5) - - ); - usage(1); - } - - _Bool fast_step_ok = 0; - if (n_args != 3 || - (all_digits_p(argv[optind + 1]) && - xstrtold(argv[optind + 1], ((void *)0), &step.value, cl_strtold) && - 0 < step.value && step.value <= 200)) - fast_step_ok = 1; - - if (all_digits_p(argv[optind]) && - (n_args == 1 || all_digits_p(argv[optind + 1])) && - (n_args < 3 || (fast_step_ok && all_digits_p(argv[optind + 2]))) && - !equal_width && !format_str && strlen(separator) == 1) { - char const *s1 = n_args == 1 ? "1" : argv[optind]; - char const *s2 = argv[optind + (n_args - 1)]; - seq_fast(s1, s2, step.value); - } - - last = scan_arg(argv[optind++]); - - if (optind < argc) { - first = last; - last = scan_arg(argv[optind++]); - - if (optind < argc) { - step = last; - if (step.value == 0) { - error(0, 0, - dcgettext(((void *)0), "invalid Zero increment value: %s", 5), - quote(argv[optind - 1])); - usage(1); - } - - last = scan_arg(argv[optind++]); - } - } - - if (first.precision == 0 && step.precision == 0 && last.precision == 0 && - ((first.value) * 0 == 0) && 0 <= first.value && 0 <= last.value && - 0 < step.value && step.value <= 200 && !equal_width && !format_str && - strlen(separator) == 1) { - char *s1; - char *s2; - if (rpl_asprintf(&s1, "%0.Lf", first.value) < 0) - xalloc_die(); - if (!((last.value) * 0 == 0)) - s2 = xstrdup("inf"); - else if (rpl_asprintf(&s2, "%0.Lf", last.value) < 0) - xalloc_die(); - - if (*s1 != '-' && *s2 != '-') - seq_fast(s1, s2, step.value); - - free(s1); - free(s2); - } - - if (format_str == ((void *)0)) - format_str = get_default_format(first, step, last); - - print_numbers(format_str, layout, first.value, step.value, last.value); - - exit(0); -} diff --git a/tests/source/coreutils/set-fields.c b/tests/source/coreutils/set-fields.c deleted file mode 100644 index ac6d8ed..0000000 --- a/tests/source/coreutils/set-fields.c +++ /dev/null @@ -1,7041 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -struct field_range_pair { - uintmax_t lo; - uintmax_t hi; -}; - -extern struct field_range_pair *frp; - -extern size_t n_frp; - -enum { - SETFLD_ALLOW_DASH = 0x01, - SETFLD_COMPLEMENT = 0x02, - SETFLD_ERRMSG_USE_POS = 0x04 - -}; - -extern void set_fields(char const *fieldstr, unsigned int options); - -struct field_range_pair *frp; - -size_t n_frp; - -static size_t n_frp_allocated; -static void add_range_pair(uintmax_t lo, uintmax_t hi) { - if (n_frp == n_frp_allocated) - frp = ((!!sizeof(struct { - _Static_assert(sizeof *(frp) != 1, - "verify_expr (" - "sizeof *(frp) != 1" - ", " - "x2nrealloc (frp, &n_frp_allocated, sizeof *(frp))" - ")"); - int _gl_dummy; - })) - ? (x2nrealloc(frp, &n_frp_allocated, sizeof *(frp))) - : (x2nrealloc(frp, &n_frp_allocated, sizeof *(frp)))); - frp[n_frp].lo = lo; - frp[n_frp].hi = hi; - ++n_frp; -} - -static int compare_ranges(const void *a, const void *b) { - int a_start = ((const struct field_range_pair *)a)->lo; - int b_start = ((const struct field_range_pair *)b)->lo; - return a_start < b_start ? -1 : a_start > b_start; -} - -static void complement_rp(void) { - struct field_range_pair *c = frp; - size_t n = n_frp; - - frp = ((void *)0); - n_frp = 0; - n_frp_allocated = 0; - - if (c[0].lo > 1) - add_range_pair(1, c[0].lo - 1); - - for (size_t i = 1; i < n; ++i) { - if (c[i - 1].hi + 1 == c[i].lo) - continue; - - add_range_pair(c[i - 1].hi + 1, c[i].lo - 1); - } - - if (c[n - 1].hi < (18446744073709551615UL)) - add_range_pair(c[n - 1].hi + 1, (18446744073709551615UL)); - - free(c); -} -void set_fields(char const *fieldstr, unsigned int options) { - uintmax_t initial = 1; - uintmax_t value = 0; - - _Bool lhs_specified = 0; - - _Bool rhs_specified = 0; - - _Bool dash_found = 0; - - _Bool in_digits = 0; - - if ((options & SETFLD_ALLOW_DASH) && (strcmp(fieldstr, "-") == 0)) { - value = 1; - lhs_specified = 1; - dash_found = 1; - fieldstr++; - } - - while (1) { - if (*fieldstr == '-') { - in_digits = 0; - - if (dash_found) - do { - error(0, 0, - ((options & SETFLD_ERRMSG_USE_POS) - ? dcgettext(((void *)0), "invalid byte or character range", - 5) - : dcgettext(((void *)0), "invalid field range", 5))); - usage(1); - } while (0) - - ; - - dash_found = 1; - fieldstr++; - - if (lhs_specified && !value) - do { - error( - 0, 0, - ((options & SETFLD_ERRMSG_USE_POS) - ? dcgettext(((void *)0), - "byte/character positions are numbered from 1", - 5) - : dcgettext(((void *)0), "fields are numbered from 1", 5))); - usage(1); - } while (0) - - ; - - initial = (lhs_specified ? value : 1); - value = 0; - } else if (*fieldstr == ',' || - ((*__ctype_b_loc())[(int)((to_uchar(*fieldstr)))] & - (unsigned short int)_ISblank) || - *fieldstr == '\0') { - in_digits = 0; - - if (dash_found) { - dash_found = 0; - - if (!lhs_specified && !rhs_specified) { - - if (options & SETFLD_ALLOW_DASH) - initial = 1; - else - do { - error(0, 0, - (dcgettext(((void *)0), "invalid range with no endpoint: -", - 5))); - usage(1); - } while (0); - } - - if (!rhs_specified) { - - add_range_pair(initial, (18446744073709551615UL)); - } else { - - if (value < initial) - do { - error(0, 0, - (dcgettext(((void *)0), "invalid decreasing range", 5))); - usage(1); - } while (0); - - add_range_pair(initial, value); - } - value = 0; - } else { - - if (value == 0) - do { - error(0, 0, - ((options & SETFLD_ERRMSG_USE_POS) - ? dcgettext( - ((void *)0), - "byte/character positions are numbered from 1", 5) - : dcgettext(((void *)0), "fields are numbered from 1", - 5))); - usage(1); - } while (0) - - ; - - add_range_pair(value, value); - value = 0; - } - - if (*fieldstr == '\0') - break; - - fieldstr++; - lhs_specified = 0; - rhs_specified = 0; - } else if (((unsigned int)(*fieldstr) - '0' <= 9)) { - - static char const *num_start; - if (!in_digits || !num_start) - num_start = fieldstr; - in_digits = 1; - - if (dash_found) - rhs_specified = 1; - else - lhs_specified = 1; - - if (!((void)(&(value) == (uintmax_t *)((void *)0)), - ((!!sizeof(struct { - _Static_assert( - !(!((uintmax_t)0 < (uintmax_t)-1)), - "verify_expr (" - "! TYPE_SIGNED (uintmax_t)" - ", " - "(((uintmax_t) -1 / 10 < (value) || (uintmax_t) ((value) * " - "10 + (*fieldstr - '0')) < (value)) ? false : (((value) = " - "(value) * 10 + (*fieldstr - '0')), true))" - ")"); - int _gl_dummy; - })) - ? ((((uintmax_t)-1 / 10 < (value) || - (uintmax_t)((value)*10 + (*fieldstr - '0')) < (value)) - ? 0 - : (((value) = (value)*10 + (*fieldstr - '0')), 1))) - : ((((uintmax_t)-1 / 10 < (value) || - (uintmax_t)((value)*10 + (*fieldstr - '0')) < (value)) - ? 0 - : (((value) = (value)*10 + (*fieldstr - '0')), - 1))))) || - value == (18446744073709551615UL)) { - - size_t len = strspn(num_start, "0123456789"); - char *bad_num = ximemdup0(num_start, len); - error(0, 0, - (options & SETFLD_ERRMSG_USE_POS) - ? dcgettext(((void *)0), - "byte/character offset %s is too large", 5) - - : dcgettext(((void *)0), "field number %s is too large", 5), - quote(bad_num)); - free(bad_num); - usage(1); - } - - fieldstr++; - } else { - error( - 0, 0, - (options & SETFLD_ERRMSG_USE_POS) - ? dcgettext(((void *)0), "invalid byte/character position %s", 5) - - : dcgettext(((void *)0), "invalid field value %s", 5), - quote(fieldstr)); - usage(1); - } - } - - if (!n_frp) - do { - error(0, 0, - ((options & SETFLD_ERRMSG_USE_POS) - ? dcgettext(((void *)0), - "missing list of byte/character positions", 5) - : dcgettext(((void *)0), "missing list of fields", 5))); - usage(1); - } while (0) - - ; - - qsort(frp, n_frp, sizeof(frp[0]), compare_ranges); - - for (size_t i = 0; i < n_frp; ++i) { - for (size_t j = i + 1; j < n_frp; ++j) { - if (frp[j].lo <= frp[i].hi) { - frp[i].hi = (((frp[j].hi) > (frp[i].hi)) ? (frp[j].hi) : (frp[i].hi)); - memmove(frp + j, frp + j + 1, (n_frp - j - 1) * sizeof *frp); - n_frp--; - j--; - } else - break; - } - } - - if (options & SETFLD_COMPLEMENT) - complement_rp(); - - ++n_frp; - frp = xrealloc(frp, n_frp * sizeof(struct field_range_pair)); - frp[n_frp - 1].lo = frp[n_frp - 1].hi = (18446744073709551615UL); -} diff --git a/tests/source/coreutils/sha1sum-digest.c b/tests/source/coreutils/sha1sum-digest.c deleted file mode 100644 index 482e8c8..0000000 --- a/tests/source/coreutils/sha1sum-digest.c +++ /dev/null @@ -1,7836 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -struct sha1_ctx { - uint32_t A; - uint32_t B; - uint32_t C; - uint32_t D; - uint32_t E; - - uint32_t total[2]; - uint32_t buflen; - uint32_t buffer[32]; -}; - -extern void sha1_init_ctx(struct sha1_ctx *ctx); - -extern void sha1_process_block(const void *buffer, size_t len, - struct sha1_ctx *ctx); - -extern void sha1_process_bytes(const void *buffer, size_t len, - struct sha1_ctx *ctx); - -extern void *sha1_finish_ctx(struct sha1_ctx *ctx, void *__restrict__ resbuf); - -extern void *sha1_read_ctx(const struct sha1_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha1_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern int sha1_stream(FILE *stream, void *resblock); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -static _Bool have_read_stdin; - -static size_t min_digest_line_length; - -static size_t digest_hex_bytes; - -static _Bool status_only = 0; - -static _Bool warn = 0; - -static _Bool ignore_missing = 0; - -static _Bool quiet = 0; - -static _Bool strict = 0; - -static int bsd_reversed = -1; - -static unsigned char digest_delim = '\n'; - -typedef void (*digest_output_fn)(char const *, int, void const *, - - _Bool, unsigned char, _Bool, uintmax_t); -enum { - IGNORE_MISSING_OPTION = 0x7f + 1, - STATUS_OPTION, - QUIET_OPTION, - STRICT_OPTION, - TAG_OPTION, - UNTAG_OPTION, - DEBUG_PROGRAM_OPTION, -}; - -static struct option const long_options[] = { - - {"check", 0, ((void *)0), 'c'}, - {"ignore-missing", 0, ((void *)0), IGNORE_MISSING_OPTION}, - {"quiet", 0, ((void *)0), QUIET_OPTION}, - {"status", 0, ((void *)0), STATUS_OPTION}, - {"warn", 0, ((void *)0), 'w'}, - {"strict", 0, ((void *)0), STRICT_OPTION}, - {"tag", 0, ((void *)0), TAG_OPTION}, - {"zero", 0, ((void *)0), 'z'}, - - {"binary", 0, ((void *)0), 'b'}, - {"text", 0, ((void *)0), 't'}, - - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - - printf(dcgettext(((void *)0), "Print or check %s (%d-bit) checksums.\n", 5) - - , - "SHA1", 160); - - emit_stdin_note(); - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode " - "(default unless reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -c, --check read checksums from the " - "FILEs and check them\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --tag create a BSD-style checksum\n", 5), - stdout) - - ; - - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -t, --text read in text mode " - "(default if reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked( - dcgettext(((void *)0), - " -t, --text read in text mode (default)\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -z, --zero end each output line " - "with NUL, not newline,\n " - " and disable file name escaping\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nThe following five options are useful only when verifying " - "checksums:\n --ignore-missing don't fail or report " - "status for missing files\n --quiet don't " - "print OK for each successfully verified file\n " - "--status don't output anything, status code shows " - "success\n --strict exit non-zero for " - "improperly formatted checksum lines\n -w, --warn " - " warn about improperly formatted checksum lines\n\n", - 5), - stdout); - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nThe sums are computed as described in %s.\n", 5) - - , - "FIPS-180-1"); - fputs_unlocked( - dcgettext( - ((void *)0), - "When checking, the input should be a former output of this " - "program.\nThe default mode is to print a line with: checksum, a " - "space,\na character indicating input mode ('*' for binary, ' ' " - "for text\nor where binary is insignificant), and name for each " - "FILE.\n\nNote: There is no difference between binary mode and " - "text mode on GNU systems.\n", - 5), - stdout) - - ; - - emit_ancillary_info("sha1sum"); - } - - exit(status); -} -static char *filename_unescape(char *s, size_t s_len) { - char *dst = s; - - for (size_t i = 0; i < s_len; i++) { - switch (s[i]) { - case '\\': - if (i == s_len - 1) { - - return ((void *)0); - } - ++i; - switch (s[i]) { - case 'n': - *dst++ = '\n'; - break; - case 'r': - *dst++ = '\r'; - break; - case '\\': - *dst++ = '\\'; - break; - default: - - return ((void *)0); - } - break; - - case '\0': - - return ((void *)0); - - default: - *dst++ = s[i]; - break; - } - } - if (dst < s + s_len) - *dst = '\0'; - - return s; -} - -__attribute__((__pure__)) static _Bool - -hex_digits(unsigned char const *s) { - for (unsigned int i = 0; i < digest_hex_bytes; i++) { - if (!((*__ctype_b_loc())[(int)((*s))] & (unsigned short int)_ISxdigit)) - return 0; - ++s; - } - return *s == '\0'; -} - -static _Bool - -bsd_split_3(char *s, size_t s_len, unsigned char **hex_digest, char **file_name, - _Bool escaped_filename) { - size_t i; - - if (s_len == 0) - return 0; - - i = s_len - 1; - while (i && s[i] != ')') - i--; - - if (s[i] != ')') - return 0; - - *file_name = s; - - if (escaped_filename && filename_unescape(s, i) == ((void *)0)) - return 0; - - s[i++] = '\0'; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - if (s[i] != '=') - return 0; - - i++; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - *hex_digest = (unsigned char *)&s[i]; - - return hex_digits(*hex_digest); -} -static _Bool - -split_3(char *s, size_t s_len, unsigned char **hex_digest, int *binary, - char **file_name) { - - _Bool escaped_filename = 0; - size_t algo_name_len; - - size_t i = 0; - while (((s[i]) == ' ' || (s[i]) == '\t')) - ++i; - - if (s[i] == '\\') { - ++i; - escaped_filename = 1; - } - algo_name_len = strlen("SHA1"); - if ((strncmp(s + i, "SHA1", algo_name_len) == 0)) { - i += algo_name_len; - if (s[i] == ' ') - ++i; - if (s[i] == '(') { - ++i; - *binary = 0; - return bsd_split_3(s + i, s_len - i, hex_digest, file_name, - escaped_filename); - } - return 0; - } - - if (s_len - i < min_digest_line_length + (s[i] == '\\')) - return 0; - - *hex_digest = (unsigned char *)&s[i]; - i += digest_hex_bytes; - if (!((s[i]) == ' ' || (s[i]) == '\t')) - return 0; - - s[i++] = '\0'; - - if (!hex_digits(*hex_digest)) - return 0; - - if ((s_len - i == 1) || (s[i] != ' ' && s[i] != '*')) { - - if (bsd_reversed == 0) - return 0; - bsd_reversed = 1; - } else if (bsd_reversed != 1) { - bsd_reversed = 0; - *binary = (s[i++] == '*'); - } - - *file_name = &s[i]; - - if (escaped_filename) - return filename_unescape(&s[i], s_len - i) != ((void *)0); - - return 1; -} - -static void print_filename(char const *file, _Bool escape) { - if (!escape) { - fputs_unlocked(file, stdout); - return; - } - - while (*file) { - switch (*file) { - case '\n': - fputs_unlocked("\\n", stdout); - break; - - case '\r': - fputs_unlocked("\\r", stdout); - break; - - case '\\': - fputs_unlocked("\\\\", stdout); - break; - - default: - putchar_unlocked(*file); - break; - } - file++; - } -} -static _Bool - -digest_file(char const *filename, int *binary, unsigned char *bin_result, - - _Bool *missing, uintmax_t *length) { - FILE *fp; - int err; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - *missing = 0; - - if (is_stdin) { - have_read_stdin = 1; - fp = stdin; - if (0 && *binary) { - if (*binary < 0) - *binary = !isatty(0); - if (*binary) - xset_binary_mode(0, 0); - } - } else { - fp = fopen_safer(filename, (0 && *binary ? "rb" : "r")); - if (fp == ((void *)0)) { - if (ignore_missing && (*__errno_location()) == 2) { - *missing = 1; - return 1; - } - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - } - - fadvise(fp, FADVISE_SEQUENTIAL); - err = sha1_stream(fp, bin_result); - - err = err ? (*__errno_location()) : 0; - if (is_stdin) - clearerr_unlocked(fp); - else if (rpl_fclose(fp) != 0 && !err) - err = (*__errno_location()); - - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return 1; -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - unsigned char const *bin_buffer = digest; - - _Bool needs_escape = - delim == '\n' && - (strchr(file, '\\') || strchr(file, '\n') || strchr(file, '\r')); - if (needs_escape) - putchar_unlocked('\\'); - - if (tagged) { - fputs_unlocked("SHA1", stdout); - fputs_unlocked(" (", stdout); - print_filename(file, needs_escape); - fputs_unlocked(") = ", stdout); - } - - for (size_t i = 0; i < (digest_hex_bytes / 2); ++i) - printf("%02x", bin_buffer[i]); - - if (!tagged) { - putchar_unlocked(' '); - - putchar_unlocked(binary_file ? '*' : ' '); - - print_filename(file, needs_escape); - } - - putchar_unlocked(delim); -} - -static _Bool - -digest_check(char const *checkfile_name) { - FILE *checkfile_stream; - uintmax_t n_misformatted_lines = 0; - uintmax_t n_improperly_formatted_lines = 0; - uintmax_t n_mismatched_checksums = 0; - uintmax_t n_open_or_read_failures = 0; - - _Bool properly_formatted_lines = 0; - - _Bool matched_checksums = 0; - unsigned char bin_buffer_unaligned[(160 / 8) + 4]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 4); - uintmax_t line_number; - char *line; - size_t line_chars_allocated; - - _Bool is_stdin = (strcmp(checkfile_name, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - checkfile_name = dcgettext(((void *)0), "standard input", 5); - checkfile_stream = stdin; - } else { - checkfile_stream = fopen_safer(checkfile_name, "r"); - if (checkfile_stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - return 0; - } - } - - line_number = 0; - line = ((void *)0); - line_chars_allocated = 0; - do { - char *filename; - int binary; - unsigned char *hex_digest; - ssize_t line_length; - - ++line_number; - if (line_number == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum " - "lines\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, checkfile_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - line_length = getline(&line, &line_chars_allocated, checkfile_stream); - if (line_length <= 0) - break; - - if (line[0] == ' continue; - - - line_length -= line[line_length - 1] == '\n'; - - line_length -= line[line_length - (0 < line_length)] == '\r'; - - - if (line_length == 0) - continue; - - line[line_length] = '\0'; - - if (! (split_3 (line, line_length, &hex_digest, &binary, &filename) - && ! (is_stdin && (strcmp (filename, "-") == 0)))) - { - ++n_misformatted_lines; - - if (warn) { - error(0, 0, - - dcgettext(((void *)0), - "%s: %" - "l" - "u" - ": improperly formatted %s checksum line", - 5) - - , - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name), - line_number, "SHA1"); - } - - ++n_improperly_formatted_lines; - } - else - { - static const char bin2hex[] = {'0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; - - _Bool ok; - - _Bool missing; - - _Bool needs_escape = !status_only && strchr(filename, '\n'); - - properly_formatted_lines = 1; - - uintmax_t length; - ok = digest_file(filename, &binary, bin_buffer, &missing, &length); - - if (!ok) { - ++n_open_or_read_failures; - if (!status_only) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - printf(": %s\n", dcgettext(((void *)0), "FAILED open or read", 5)); - } - } else if (ignore_missing && missing) { - - ; - } else { - size_t digest_bin_bytes = digest_hex_bytes / 2; - size_t cnt; - - for (cnt = 0; cnt < digest_bin_bytes; ++cnt) { - if ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt])) { - int __c = (hex_digest[2 * cnt]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt]); - } else - __res = (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt])]; - __res; - })) - - != bin2hex[bin_buffer[cnt] >> 4] || - ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt + 1]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt + 1])) { - int __c = (hex_digest[2 * cnt + 1]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt + 1]); - } else - __res = - (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt + 1])]; - __res; - })) - - != (bin2hex[bin_buffer[cnt] & 0xf]))) - break; - } - if (cnt != digest_bin_bytes) - ++n_mismatched_checksums; - else - matched_checksums = 1; - - if (!status_only) { - if (cnt != digest_bin_bytes || !quiet) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - } - - if (cnt != digest_bin_bytes) - printf(": %s\n", dcgettext(((void *)0), "FAILED", 5)); - else if (!quiet) - printf(": %s\n", dcgettext(((void *)0), "OK", 5)); - } - } - } - } while (!feof_unlocked(checkfile_stream) && - !ferror_unlocked(checkfile_stream)); - - free(line); - - int err = ferror_unlocked(checkfile_stream) ? 0 : -1; - if (is_stdin) - clearerr_unlocked(checkfile_stream); - else if (rpl_fclose(checkfile_stream) != 0 && err < 0) - err = (*__errno_location()); - - if (0 <= err) { - error( - 0, err, err ? "%s" : dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - return 0; - } - - if (!properly_formatted_lines) { - - error( - 0, 0, - dcgettext(((void *)0), "%s: no properly formatted checksum lines found", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - } else { - if (!status_only) { - if (n_misformatted_lines != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " line is improperly formatted", - "WARNING: %" - "l" - "u" - " lines are improperly formatted", - select_plural(n_misformatted_lines), 5) - - ), - n_misformatted_lines); - - if (n_open_or_read_failures != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " listed file could not be read", - "WARNING: %" - "l" - "u" - " listed files could not be read", - select_plural(n_open_or_read_failures), 5) - - ), - n_open_or_read_failures); - - if (n_mismatched_checksums != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " computed checksum did NOT match", - "WARNING: %" - "l" - "u" - " computed checksums did NOT match", - select_plural(n_mismatched_checksums), 5) - - ), - n_mismatched_checksums); - - if (ignore_missing && !matched_checksums) - error(0, 0, dcgettext(((void *)0), "%s: no file was verified", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - } - } - - return (properly_formatted_lines && matched_checksums && - n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && - (!strict || n_improperly_formatted_lines == 0)); -} - -int main(int argc, char **argv) { - unsigned char bin_buffer_unaligned[(160 / 8) + 4]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 4); - - _Bool do_check = 0; - int opt; - - _Bool ok = 1; - - int binary = -1; - - _Bool prefix_tag = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - setvbuf(stdout, ((void *)0), 1, 0); - char const *short_opts = "bctwz"; - - while ((opt = getopt_long(argc, argv, short_opts, long_options, - ((void *)0))) != -1) - switch (opt) { - case 'c': - do_check = 1; - break; - case STATUS_OPTION: - status_only = 1; - warn = 0; - quiet = 0; - break; - - case 'b': - binary = 1; - break; - case 't': - binary = 0; - break; - - case 'w': - status_only = 0; - warn = 1; - quiet = 0; - break; - case IGNORE_MISSING_OPTION: - ignore_missing = 1; - break; - case QUIET_OPTION: - status_only = 0; - warn = 0; - quiet = 1; - break; - case STRICT_OPTION: - strict = 1; - break; - - case TAG_OPTION: - prefix_tag = 1; - binary = 1; - break; - case 'z': - digest_delim = '\0'; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "sha1sum", "GNU coreutils", Version, - ("Ulrich Drepper"), ("Scott Miller"), ("David Madore"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - min_digest_line_length = ((160 / 4) + 1 + 1); - digest_hex_bytes = (160 / 4); - if (prefix_tag && !binary) { - - error(0, 0, - dcgettext(((void *)0), "--tag does not support --text mode", 5)); - usage(1); - } - - if (digest_delim != '\n' && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --zero option is not supported when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (prefix_tag && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --tag option is meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (0 <= binary && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --binary and --text options are meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (ignore_missing && !do_check) { - error(0, 0, - - dcgettext(((void *)0), - "the --ignore-missing option is meaningful only when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (status_only && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --status option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (warn && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --warn option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (quiet && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --quiet option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (strict & !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --strict option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (!0 && binary < 0) - binary = 0; - - char **operand_lim = argv + argc; - if (optind == argc) - *operand_lim++ = bad_cast("-"); - - for (char **operandp = argv + optind; operandp < operand_lim; operandp++) { - char *file = *operandp; - if (do_check) - ok &= digest_check(file); - else { - int binary_file = binary; - - _Bool missing; - uintmax_t length; - - if (!digest_file(file, &binary_file, bin_buffer, &missing, &length)) - ok = 0; - else { - output_file(file, binary_file, bin_buffer, prefix_tag, digest_delim, - optind != argc, length); - } - } - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/sha224sum-digest.c b/tests/source/coreutils/sha224sum-digest.c deleted file mode 100644 index c605756..0000000 --- a/tests/source/coreutils/sha224sum-digest.c +++ /dev/null @@ -1,7843 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -enum { SHA224_DIGEST_SIZE = 224 / 8 }; -enum { SHA256_DIGEST_SIZE = 256 / 8 }; -struct sha256_ctx { - uint32_t state[8]; - - uint32_t total[2]; - size_t buflen; - uint32_t buffer[32]; -}; - -extern void sha256_init_ctx(struct sha256_ctx *ctx); -extern void sha224_init_ctx(struct sha256_ctx *ctx); - -extern void sha256_process_block(const void *buffer, size_t len, - struct sha256_ctx *ctx); - -extern void sha256_process_bytes(const void *buffer, size_t len, - struct sha256_ctx *ctx); - -extern void *sha256_finish_ctx(struct sha256_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha224_finish_ctx(struct sha256_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha256_read_ctx(const struct sha256_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha224_read_ctx(const struct sha256_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha256_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern void *sha224_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern int sha256_stream(FILE *stream, void *resblock); -extern int sha224_stream(FILE *stream, void *resblock); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -static _Bool have_read_stdin; - -static size_t min_digest_line_length; - -static size_t digest_hex_bytes; - -static _Bool status_only = 0; - -static _Bool warn = 0; - -static _Bool ignore_missing = 0; - -static _Bool quiet = 0; - -static _Bool strict = 0; - -static int bsd_reversed = -1; - -static unsigned char digest_delim = '\n'; - -typedef void (*digest_output_fn)(char const *, int, void const *, - - _Bool, unsigned char, _Bool, uintmax_t); -enum { - IGNORE_MISSING_OPTION = 0x7f + 1, - STATUS_OPTION, - QUIET_OPTION, - STRICT_OPTION, - TAG_OPTION, - UNTAG_OPTION, - DEBUG_PROGRAM_OPTION, -}; - -static struct option const long_options[] = { - - {"check", 0, ((void *)0), 'c'}, - {"ignore-missing", 0, ((void *)0), IGNORE_MISSING_OPTION}, - {"quiet", 0, ((void *)0), QUIET_OPTION}, - {"status", 0, ((void *)0), STATUS_OPTION}, - {"warn", 0, ((void *)0), 'w'}, - {"strict", 0, ((void *)0), STRICT_OPTION}, - {"tag", 0, ((void *)0), TAG_OPTION}, - {"zero", 0, ((void *)0), 'z'}, - - {"binary", 0, ((void *)0), 'b'}, - {"text", 0, ((void *)0), 't'}, - - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - - printf(dcgettext(((void *)0), "Print or check %s (%d-bit) checksums.\n", 5) - - , - "SHA224", 224); - - emit_stdin_note(); - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode " - "(default unless reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -c, --check read checksums from the " - "FILEs and check them\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --tag create a BSD-style checksum\n", 5), - stdout) - - ; - - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -t, --text read in text mode " - "(default if reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked( - dcgettext(((void *)0), - " -t, --text read in text mode (default)\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -z, --zero end each output line " - "with NUL, not newline,\n " - " and disable file name escaping\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nThe following five options are useful only when verifying " - "checksums:\n --ignore-missing don't fail or report " - "status for missing files\n --quiet don't " - "print OK for each successfully verified file\n " - "--status don't output anything, status code shows " - "success\n --strict exit non-zero for " - "improperly formatted checksum lines\n -w, --warn " - " warn about improperly formatted checksum lines\n\n", - 5), - stdout); - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nThe sums are computed as described in %s.\n", 5) - - , - "RFC 3874"); - fputs_unlocked( - dcgettext( - ((void *)0), - "When checking, the input should be a former output of this " - "program.\nThe default mode is to print a line with: checksum, a " - "space,\na character indicating input mode ('*' for binary, ' ' " - "for text\nor where binary is insignificant), and name for each " - "FILE.\n\nNote: There is no difference between binary mode and " - "text mode on GNU systems.\n", - 5), - stdout) - - ; - - emit_ancillary_info("sha224sum"); - } - - exit(status); -} -static char *filename_unescape(char *s, size_t s_len) { - char *dst = s; - - for (size_t i = 0; i < s_len; i++) { - switch (s[i]) { - case '\\': - if (i == s_len - 1) { - - return ((void *)0); - } - ++i; - switch (s[i]) { - case 'n': - *dst++ = '\n'; - break; - case 'r': - *dst++ = '\r'; - break; - case '\\': - *dst++ = '\\'; - break; - default: - - return ((void *)0); - } - break; - - case '\0': - - return ((void *)0); - - default: - *dst++ = s[i]; - break; - } - } - if (dst < s + s_len) - *dst = '\0'; - - return s; -} - -__attribute__((__pure__)) static _Bool - -hex_digits(unsigned char const *s) { - for (unsigned int i = 0; i < digest_hex_bytes; i++) { - if (!((*__ctype_b_loc())[(int)((*s))] & (unsigned short int)_ISxdigit)) - return 0; - ++s; - } - return *s == '\0'; -} - -static _Bool - -bsd_split_3(char *s, size_t s_len, unsigned char **hex_digest, char **file_name, - _Bool escaped_filename) { - size_t i; - - if (s_len == 0) - return 0; - - i = s_len - 1; - while (i && s[i] != ')') - i--; - - if (s[i] != ')') - return 0; - - *file_name = s; - - if (escaped_filename && filename_unescape(s, i) == ((void *)0)) - return 0; - - s[i++] = '\0'; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - if (s[i] != '=') - return 0; - - i++; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - *hex_digest = (unsigned char *)&s[i]; - - return hex_digits(*hex_digest); -} -static _Bool - -split_3(char *s, size_t s_len, unsigned char **hex_digest, int *binary, - char **file_name) { - - _Bool escaped_filename = 0; - size_t algo_name_len; - - size_t i = 0; - while (((s[i]) == ' ' || (s[i]) == '\t')) - ++i; - - if (s[i] == '\\') { - ++i; - escaped_filename = 1; - } - algo_name_len = strlen("SHA224"); - if ((strncmp(s + i, "SHA224", algo_name_len) == 0)) { - i += algo_name_len; - if (s[i] == ' ') - ++i; - if (s[i] == '(') { - ++i; - *binary = 0; - return bsd_split_3(s + i, s_len - i, hex_digest, file_name, - escaped_filename); - } - return 0; - } - - if (s_len - i < min_digest_line_length + (s[i] == '\\')) - return 0; - - *hex_digest = (unsigned char *)&s[i]; - i += digest_hex_bytes; - if (!((s[i]) == ' ' || (s[i]) == '\t')) - return 0; - - s[i++] = '\0'; - - if (!hex_digits(*hex_digest)) - return 0; - - if ((s_len - i == 1) || (s[i] != ' ' && s[i] != '*')) { - - if (bsd_reversed == 0) - return 0; - bsd_reversed = 1; - } else if (bsd_reversed != 1) { - bsd_reversed = 0; - *binary = (s[i++] == '*'); - } - - *file_name = &s[i]; - - if (escaped_filename) - return filename_unescape(&s[i], s_len - i) != ((void *)0); - - return 1; -} - -static void print_filename(char const *file, _Bool escape) { - if (!escape) { - fputs_unlocked(file, stdout); - return; - } - - while (*file) { - switch (*file) { - case '\n': - fputs_unlocked("\\n", stdout); - break; - - case '\r': - fputs_unlocked("\\r", stdout); - break; - - case '\\': - fputs_unlocked("\\\\", stdout); - break; - - default: - putchar_unlocked(*file); - break; - } - file++; - } -} -static _Bool - -digest_file(char const *filename, int *binary, unsigned char *bin_result, - - _Bool *missing, uintmax_t *length) { - FILE *fp; - int err; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - *missing = 0; - - if (is_stdin) { - have_read_stdin = 1; - fp = stdin; - if (0 && *binary) { - if (*binary < 0) - *binary = !isatty(0); - if (*binary) - xset_binary_mode(0, 0); - } - } else { - fp = fopen_safer(filename, (0 && *binary ? "rb" : "r")); - if (fp == ((void *)0)) { - if (ignore_missing && (*__errno_location()) == 2) { - *missing = 1; - return 1; - } - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - } - - fadvise(fp, FADVISE_SEQUENTIAL); - err = sha224_stream(fp, bin_result); - - err = err ? (*__errno_location()) : 0; - if (is_stdin) - clearerr_unlocked(fp); - else if (rpl_fclose(fp) != 0 && !err) - err = (*__errno_location()); - - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return 1; -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - unsigned char const *bin_buffer = digest; - - _Bool needs_escape = - delim == '\n' && - (strchr(file, '\\') || strchr(file, '\n') || strchr(file, '\r')); - if (needs_escape) - putchar_unlocked('\\'); - - if (tagged) { - fputs_unlocked("SHA224", stdout); - fputs_unlocked(" (", stdout); - print_filename(file, needs_escape); - fputs_unlocked(") = ", stdout); - } - - for (size_t i = 0; i < (digest_hex_bytes / 2); ++i) - printf("%02x", bin_buffer[i]); - - if (!tagged) { - putchar_unlocked(' '); - - putchar_unlocked(binary_file ? '*' : ' '); - - print_filename(file, needs_escape); - } - - putchar_unlocked(delim); -} - -static _Bool - -digest_check(char const *checkfile_name) { - FILE *checkfile_stream; - uintmax_t n_misformatted_lines = 0; - uintmax_t n_improperly_formatted_lines = 0; - uintmax_t n_mismatched_checksums = 0; - uintmax_t n_open_or_read_failures = 0; - - _Bool properly_formatted_lines = 0; - - _Bool matched_checksums = 0; - unsigned char bin_buffer_unaligned[(224 / 8) + 4]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 4); - uintmax_t line_number; - char *line; - size_t line_chars_allocated; - - _Bool is_stdin = (strcmp(checkfile_name, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - checkfile_name = dcgettext(((void *)0), "standard input", 5); - checkfile_stream = stdin; - } else { - checkfile_stream = fopen_safer(checkfile_name, "r"); - if (checkfile_stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - return 0; - } - } - - line_number = 0; - line = ((void *)0); - line_chars_allocated = 0; - do { - char *filename; - int binary; - unsigned char *hex_digest; - ssize_t line_length; - - ++line_number; - if (line_number == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum " - "lines\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, checkfile_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - line_length = getline(&line, &line_chars_allocated, checkfile_stream); - if (line_length <= 0) - break; - - if (line[0] == ' continue; - - - line_length -= line[line_length - 1] == '\n'; - - line_length -= line[line_length - (0 < line_length)] == '\r'; - - - if (line_length == 0) - continue; - - line[line_length] = '\0'; - - if (! (split_3 (line, line_length, &hex_digest, &binary, &filename) - && ! (is_stdin && (strcmp (filename, "-") == 0)))) - { - ++n_misformatted_lines; - - if (warn) { - error(0, 0, - - dcgettext(((void *)0), - "%s: %" - "l" - "u" - ": improperly formatted %s checksum line", - 5) - - , - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name), - line_number, "SHA224"); - } - - ++n_improperly_formatted_lines; - } - else - { - static const char bin2hex[] = {'0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; - - _Bool ok; - - _Bool missing; - - _Bool needs_escape = !status_only && strchr(filename, '\n'); - - properly_formatted_lines = 1; - - uintmax_t length; - ok = digest_file(filename, &binary, bin_buffer, &missing, &length); - - if (!ok) { - ++n_open_or_read_failures; - if (!status_only) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - printf(": %s\n", dcgettext(((void *)0), "FAILED open or read", 5)); - } - } else if (ignore_missing && missing) { - - ; - } else { - size_t digest_bin_bytes = digest_hex_bytes / 2; - size_t cnt; - - for (cnt = 0; cnt < digest_bin_bytes; ++cnt) { - if ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt])) { - int __c = (hex_digest[2 * cnt]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt]); - } else - __res = (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt])]; - __res; - })) - - != bin2hex[bin_buffer[cnt] >> 4] || - ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt + 1]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt + 1])) { - int __c = (hex_digest[2 * cnt + 1]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt + 1]); - } else - __res = - (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt + 1])]; - __res; - })) - - != (bin2hex[bin_buffer[cnt] & 0xf]))) - break; - } - if (cnt != digest_bin_bytes) - ++n_mismatched_checksums; - else - matched_checksums = 1; - - if (!status_only) { - if (cnt != digest_bin_bytes || !quiet) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - } - - if (cnt != digest_bin_bytes) - printf(": %s\n", dcgettext(((void *)0), "FAILED", 5)); - else if (!quiet) - printf(": %s\n", dcgettext(((void *)0), "OK", 5)); - } - } - } - } while (!feof_unlocked(checkfile_stream) && - !ferror_unlocked(checkfile_stream)); - - free(line); - - int err = ferror_unlocked(checkfile_stream) ? 0 : -1; - if (is_stdin) - clearerr_unlocked(checkfile_stream); - else if (rpl_fclose(checkfile_stream) != 0 && err < 0) - err = (*__errno_location()); - - if (0 <= err) { - error( - 0, err, err ? "%s" : dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - return 0; - } - - if (!properly_formatted_lines) { - - error( - 0, 0, - dcgettext(((void *)0), "%s: no properly formatted checksum lines found", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - } else { - if (!status_only) { - if (n_misformatted_lines != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " line is improperly formatted", - "WARNING: %" - "l" - "u" - " lines are improperly formatted", - select_plural(n_misformatted_lines), 5) - - ), - n_misformatted_lines); - - if (n_open_or_read_failures != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " listed file could not be read", - "WARNING: %" - "l" - "u" - " listed files could not be read", - select_plural(n_open_or_read_failures), 5) - - ), - n_open_or_read_failures); - - if (n_mismatched_checksums != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " computed checksum did NOT match", - "WARNING: %" - "l" - "u" - " computed checksums did NOT match", - select_plural(n_mismatched_checksums), 5) - - ), - n_mismatched_checksums); - - if (ignore_missing && !matched_checksums) - error(0, 0, dcgettext(((void *)0), "%s: no file was verified", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - } - } - - return (properly_formatted_lines && matched_checksums && - n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && - (!strict || n_improperly_formatted_lines == 0)); -} - -int main(int argc, char **argv) { - unsigned char bin_buffer_unaligned[(224 / 8) + 4]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 4); - - _Bool do_check = 0; - int opt; - - _Bool ok = 1; - - int binary = -1; - - _Bool prefix_tag = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - setvbuf(stdout, ((void *)0), 1, 0); - char const *short_opts = "bctwz"; - - while ((opt = getopt_long(argc, argv, short_opts, long_options, - ((void *)0))) != -1) - switch (opt) { - case 'c': - do_check = 1; - break; - case STATUS_OPTION: - status_only = 1; - warn = 0; - quiet = 0; - break; - - case 'b': - binary = 1; - break; - case 't': - binary = 0; - break; - - case 'w': - status_only = 0; - warn = 1; - quiet = 0; - break; - case IGNORE_MISSING_OPTION: - ignore_missing = 1; - break; - case QUIET_OPTION: - status_only = 0; - warn = 0; - quiet = 1; - break; - case STRICT_OPTION: - strict = 1; - break; - - case TAG_OPTION: - prefix_tag = 1; - binary = 1; - break; - case 'z': - digest_delim = '\0'; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "sha224sum", "GNU coreutils", Version, - ("Ulrich Drepper"), ("Scott Miller"), ("David Madore"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - min_digest_line_length = ((224 / 4) + 1 + 1); - digest_hex_bytes = (224 / 4); - if (prefix_tag && !binary) { - - error(0, 0, - dcgettext(((void *)0), "--tag does not support --text mode", 5)); - usage(1); - } - - if (digest_delim != '\n' && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --zero option is not supported when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (prefix_tag && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --tag option is meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (0 <= binary && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --binary and --text options are meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (ignore_missing && !do_check) { - error(0, 0, - - dcgettext(((void *)0), - "the --ignore-missing option is meaningful only when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (status_only && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --status option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (warn && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --warn option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (quiet && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --quiet option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (strict & !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --strict option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (!0 && binary < 0) - binary = 0; - - char **operand_lim = argv + argc; - if (optind == argc) - *operand_lim++ = bad_cast("-"); - - for (char **operandp = argv + optind; operandp < operand_lim; operandp++) { - char *file = *operandp; - if (do_check) - ok &= digest_check(file); - else { - int binary_file = binary; - - _Bool missing; - uintmax_t length; - - if (!digest_file(file, &binary_file, bin_buffer, &missing, &length)) - ok = 0; - else { - output_file(file, binary_file, bin_buffer, prefix_tag, digest_delim, - optind != argc, length); - } - } - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/sha256sum-digest.c b/tests/source/coreutils/sha256sum-digest.c deleted file mode 100644 index d15aa4b..0000000 --- a/tests/source/coreutils/sha256sum-digest.c +++ /dev/null @@ -1,7843 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -enum { SHA224_DIGEST_SIZE = 224 / 8 }; -enum { SHA256_DIGEST_SIZE = 256 / 8 }; -struct sha256_ctx { - uint32_t state[8]; - - uint32_t total[2]; - size_t buflen; - uint32_t buffer[32]; -}; - -extern void sha256_init_ctx(struct sha256_ctx *ctx); -extern void sha224_init_ctx(struct sha256_ctx *ctx); - -extern void sha256_process_block(const void *buffer, size_t len, - struct sha256_ctx *ctx); - -extern void sha256_process_bytes(const void *buffer, size_t len, - struct sha256_ctx *ctx); - -extern void *sha256_finish_ctx(struct sha256_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha224_finish_ctx(struct sha256_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha256_read_ctx(const struct sha256_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha224_read_ctx(const struct sha256_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha256_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern void *sha224_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern int sha256_stream(FILE *stream, void *resblock); -extern int sha224_stream(FILE *stream, void *resblock); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -static _Bool have_read_stdin; - -static size_t min_digest_line_length; - -static size_t digest_hex_bytes; - -static _Bool status_only = 0; - -static _Bool warn = 0; - -static _Bool ignore_missing = 0; - -static _Bool quiet = 0; - -static _Bool strict = 0; - -static int bsd_reversed = -1; - -static unsigned char digest_delim = '\n'; - -typedef void (*digest_output_fn)(char const *, int, void const *, - - _Bool, unsigned char, _Bool, uintmax_t); -enum { - IGNORE_MISSING_OPTION = 0x7f + 1, - STATUS_OPTION, - QUIET_OPTION, - STRICT_OPTION, - TAG_OPTION, - UNTAG_OPTION, - DEBUG_PROGRAM_OPTION, -}; - -static struct option const long_options[] = { - - {"check", 0, ((void *)0), 'c'}, - {"ignore-missing", 0, ((void *)0), IGNORE_MISSING_OPTION}, - {"quiet", 0, ((void *)0), QUIET_OPTION}, - {"status", 0, ((void *)0), STATUS_OPTION}, - {"warn", 0, ((void *)0), 'w'}, - {"strict", 0, ((void *)0), STRICT_OPTION}, - {"tag", 0, ((void *)0), TAG_OPTION}, - {"zero", 0, ((void *)0), 'z'}, - - {"binary", 0, ((void *)0), 'b'}, - {"text", 0, ((void *)0), 't'}, - - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - - printf(dcgettext(((void *)0), "Print or check %s (%d-bit) checksums.\n", 5) - - , - "SHA256", 256); - - emit_stdin_note(); - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode " - "(default unless reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -c, --check read checksums from the " - "FILEs and check them\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --tag create a BSD-style checksum\n", 5), - stdout) - - ; - - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -t, --text read in text mode " - "(default if reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked( - dcgettext(((void *)0), - " -t, --text read in text mode (default)\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -z, --zero end each output line " - "with NUL, not newline,\n " - " and disable file name escaping\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nThe following five options are useful only when verifying " - "checksums:\n --ignore-missing don't fail or report " - "status for missing files\n --quiet don't " - "print OK for each successfully verified file\n " - "--status don't output anything, status code shows " - "success\n --strict exit non-zero for " - "improperly formatted checksum lines\n -w, --warn " - " warn about improperly formatted checksum lines\n\n", - 5), - stdout); - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nThe sums are computed as described in %s.\n", 5) - - , - "FIPS-180-2"); - fputs_unlocked( - dcgettext( - ((void *)0), - "When checking, the input should be a former output of this " - "program.\nThe default mode is to print a line with: checksum, a " - "space,\na character indicating input mode ('*' for binary, ' ' " - "for text\nor where binary is insignificant), and name for each " - "FILE.\n\nNote: There is no difference between binary mode and " - "text mode on GNU systems.\n", - 5), - stdout) - - ; - - emit_ancillary_info("sha256sum"); - } - - exit(status); -} -static char *filename_unescape(char *s, size_t s_len) { - char *dst = s; - - for (size_t i = 0; i < s_len; i++) { - switch (s[i]) { - case '\\': - if (i == s_len - 1) { - - return ((void *)0); - } - ++i; - switch (s[i]) { - case 'n': - *dst++ = '\n'; - break; - case 'r': - *dst++ = '\r'; - break; - case '\\': - *dst++ = '\\'; - break; - default: - - return ((void *)0); - } - break; - - case '\0': - - return ((void *)0); - - default: - *dst++ = s[i]; - break; - } - } - if (dst < s + s_len) - *dst = '\0'; - - return s; -} - -__attribute__((__pure__)) static _Bool - -hex_digits(unsigned char const *s) { - for (unsigned int i = 0; i < digest_hex_bytes; i++) { - if (!((*__ctype_b_loc())[(int)((*s))] & (unsigned short int)_ISxdigit)) - return 0; - ++s; - } - return *s == '\0'; -} - -static _Bool - -bsd_split_3(char *s, size_t s_len, unsigned char **hex_digest, char **file_name, - _Bool escaped_filename) { - size_t i; - - if (s_len == 0) - return 0; - - i = s_len - 1; - while (i && s[i] != ')') - i--; - - if (s[i] != ')') - return 0; - - *file_name = s; - - if (escaped_filename && filename_unescape(s, i) == ((void *)0)) - return 0; - - s[i++] = '\0'; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - if (s[i] != '=') - return 0; - - i++; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - *hex_digest = (unsigned char *)&s[i]; - - return hex_digits(*hex_digest); -} -static _Bool - -split_3(char *s, size_t s_len, unsigned char **hex_digest, int *binary, - char **file_name) { - - _Bool escaped_filename = 0; - size_t algo_name_len; - - size_t i = 0; - while (((s[i]) == ' ' || (s[i]) == '\t')) - ++i; - - if (s[i] == '\\') { - ++i; - escaped_filename = 1; - } - algo_name_len = strlen("SHA256"); - if ((strncmp(s + i, "SHA256", algo_name_len) == 0)) { - i += algo_name_len; - if (s[i] == ' ') - ++i; - if (s[i] == '(') { - ++i; - *binary = 0; - return bsd_split_3(s + i, s_len - i, hex_digest, file_name, - escaped_filename); - } - return 0; - } - - if (s_len - i < min_digest_line_length + (s[i] == '\\')) - return 0; - - *hex_digest = (unsigned char *)&s[i]; - i += digest_hex_bytes; - if (!((s[i]) == ' ' || (s[i]) == '\t')) - return 0; - - s[i++] = '\0'; - - if (!hex_digits(*hex_digest)) - return 0; - - if ((s_len - i == 1) || (s[i] != ' ' && s[i] != '*')) { - - if (bsd_reversed == 0) - return 0; - bsd_reversed = 1; - } else if (bsd_reversed != 1) { - bsd_reversed = 0; - *binary = (s[i++] == '*'); - } - - *file_name = &s[i]; - - if (escaped_filename) - return filename_unescape(&s[i], s_len - i) != ((void *)0); - - return 1; -} - -static void print_filename(char const *file, _Bool escape) { - if (!escape) { - fputs_unlocked(file, stdout); - return; - } - - while (*file) { - switch (*file) { - case '\n': - fputs_unlocked("\\n", stdout); - break; - - case '\r': - fputs_unlocked("\\r", stdout); - break; - - case '\\': - fputs_unlocked("\\\\", stdout); - break; - - default: - putchar_unlocked(*file); - break; - } - file++; - } -} -static _Bool - -digest_file(char const *filename, int *binary, unsigned char *bin_result, - - _Bool *missing, uintmax_t *length) { - FILE *fp; - int err; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - *missing = 0; - - if (is_stdin) { - have_read_stdin = 1; - fp = stdin; - if (0 && *binary) { - if (*binary < 0) - *binary = !isatty(0); - if (*binary) - xset_binary_mode(0, 0); - } - } else { - fp = fopen_safer(filename, (0 && *binary ? "rb" : "r")); - if (fp == ((void *)0)) { - if (ignore_missing && (*__errno_location()) == 2) { - *missing = 1; - return 1; - } - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - } - - fadvise(fp, FADVISE_SEQUENTIAL); - err = sha256_stream(fp, bin_result); - - err = err ? (*__errno_location()) : 0; - if (is_stdin) - clearerr_unlocked(fp); - else if (rpl_fclose(fp) != 0 && !err) - err = (*__errno_location()); - - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return 1; -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - unsigned char const *bin_buffer = digest; - - _Bool needs_escape = - delim == '\n' && - (strchr(file, '\\') || strchr(file, '\n') || strchr(file, '\r')); - if (needs_escape) - putchar_unlocked('\\'); - - if (tagged) { - fputs_unlocked("SHA256", stdout); - fputs_unlocked(" (", stdout); - print_filename(file, needs_escape); - fputs_unlocked(") = ", stdout); - } - - for (size_t i = 0; i < (digest_hex_bytes / 2); ++i) - printf("%02x", bin_buffer[i]); - - if (!tagged) { - putchar_unlocked(' '); - - putchar_unlocked(binary_file ? '*' : ' '); - - print_filename(file, needs_escape); - } - - putchar_unlocked(delim); -} - -static _Bool - -digest_check(char const *checkfile_name) { - FILE *checkfile_stream; - uintmax_t n_misformatted_lines = 0; - uintmax_t n_improperly_formatted_lines = 0; - uintmax_t n_mismatched_checksums = 0; - uintmax_t n_open_or_read_failures = 0; - - _Bool properly_formatted_lines = 0; - - _Bool matched_checksums = 0; - unsigned char bin_buffer_unaligned[(256 / 8) + 4]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 4); - uintmax_t line_number; - char *line; - size_t line_chars_allocated; - - _Bool is_stdin = (strcmp(checkfile_name, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - checkfile_name = dcgettext(((void *)0), "standard input", 5); - checkfile_stream = stdin; - } else { - checkfile_stream = fopen_safer(checkfile_name, "r"); - if (checkfile_stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - return 0; - } - } - - line_number = 0; - line = ((void *)0); - line_chars_allocated = 0; - do { - char *filename; - int binary; - unsigned char *hex_digest; - ssize_t line_length; - - ++line_number; - if (line_number == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum " - "lines\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, checkfile_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - line_length = getline(&line, &line_chars_allocated, checkfile_stream); - if (line_length <= 0) - break; - - if (line[0] == ' continue; - - - line_length -= line[line_length - 1] == '\n'; - - line_length -= line[line_length - (0 < line_length)] == '\r'; - - - if (line_length == 0) - continue; - - line[line_length] = '\0'; - - if (! (split_3 (line, line_length, &hex_digest, &binary, &filename) - && ! (is_stdin && (strcmp (filename, "-") == 0)))) - { - ++n_misformatted_lines; - - if (warn) { - error(0, 0, - - dcgettext(((void *)0), - "%s: %" - "l" - "u" - ": improperly formatted %s checksum line", - 5) - - , - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name), - line_number, "SHA256"); - } - - ++n_improperly_formatted_lines; - } - else - { - static const char bin2hex[] = {'0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; - - _Bool ok; - - _Bool missing; - - _Bool needs_escape = !status_only && strchr(filename, '\n'); - - properly_formatted_lines = 1; - - uintmax_t length; - ok = digest_file(filename, &binary, bin_buffer, &missing, &length); - - if (!ok) { - ++n_open_or_read_failures; - if (!status_only) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - printf(": %s\n", dcgettext(((void *)0), "FAILED open or read", 5)); - } - } else if (ignore_missing && missing) { - - ; - } else { - size_t digest_bin_bytes = digest_hex_bytes / 2; - size_t cnt; - - for (cnt = 0; cnt < digest_bin_bytes; ++cnt) { - if ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt])) { - int __c = (hex_digest[2 * cnt]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt]); - } else - __res = (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt])]; - __res; - })) - - != bin2hex[bin_buffer[cnt] >> 4] || - ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt + 1]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt + 1])) { - int __c = (hex_digest[2 * cnt + 1]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt + 1]); - } else - __res = - (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt + 1])]; - __res; - })) - - != (bin2hex[bin_buffer[cnt] & 0xf]))) - break; - } - if (cnt != digest_bin_bytes) - ++n_mismatched_checksums; - else - matched_checksums = 1; - - if (!status_only) { - if (cnt != digest_bin_bytes || !quiet) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - } - - if (cnt != digest_bin_bytes) - printf(": %s\n", dcgettext(((void *)0), "FAILED", 5)); - else if (!quiet) - printf(": %s\n", dcgettext(((void *)0), "OK", 5)); - } - } - } - } while (!feof_unlocked(checkfile_stream) && - !ferror_unlocked(checkfile_stream)); - - free(line); - - int err = ferror_unlocked(checkfile_stream) ? 0 : -1; - if (is_stdin) - clearerr_unlocked(checkfile_stream); - else if (rpl_fclose(checkfile_stream) != 0 && err < 0) - err = (*__errno_location()); - - if (0 <= err) { - error( - 0, err, err ? "%s" : dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - return 0; - } - - if (!properly_formatted_lines) { - - error( - 0, 0, - dcgettext(((void *)0), "%s: no properly formatted checksum lines found", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - } else { - if (!status_only) { - if (n_misformatted_lines != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " line is improperly formatted", - "WARNING: %" - "l" - "u" - " lines are improperly formatted", - select_plural(n_misformatted_lines), 5) - - ), - n_misformatted_lines); - - if (n_open_or_read_failures != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " listed file could not be read", - "WARNING: %" - "l" - "u" - " listed files could not be read", - select_plural(n_open_or_read_failures), 5) - - ), - n_open_or_read_failures); - - if (n_mismatched_checksums != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " computed checksum did NOT match", - "WARNING: %" - "l" - "u" - " computed checksums did NOT match", - select_plural(n_mismatched_checksums), 5) - - ), - n_mismatched_checksums); - - if (ignore_missing && !matched_checksums) - error(0, 0, dcgettext(((void *)0), "%s: no file was verified", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - } - } - - return (properly_formatted_lines && matched_checksums && - n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && - (!strict || n_improperly_formatted_lines == 0)); -} - -int main(int argc, char **argv) { - unsigned char bin_buffer_unaligned[(256 / 8) + 4]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 4); - - _Bool do_check = 0; - int opt; - - _Bool ok = 1; - - int binary = -1; - - _Bool prefix_tag = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - setvbuf(stdout, ((void *)0), 1, 0); - char const *short_opts = "bctwz"; - - while ((opt = getopt_long(argc, argv, short_opts, long_options, - ((void *)0))) != -1) - switch (opt) { - case 'c': - do_check = 1; - break; - case STATUS_OPTION: - status_only = 1; - warn = 0; - quiet = 0; - break; - - case 'b': - binary = 1; - break; - case 't': - binary = 0; - break; - - case 'w': - status_only = 0; - warn = 1; - quiet = 0; - break; - case IGNORE_MISSING_OPTION: - ignore_missing = 1; - break; - case QUIET_OPTION: - status_only = 0; - warn = 0; - quiet = 1; - break; - case STRICT_OPTION: - strict = 1; - break; - - case TAG_OPTION: - prefix_tag = 1; - binary = 1; - break; - case 'z': - digest_delim = '\0'; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "sha256sum", "GNU coreutils", Version, - ("Ulrich Drepper"), ("Scott Miller"), ("David Madore"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - min_digest_line_length = ((256 / 4) + 1 + 1); - digest_hex_bytes = (256 / 4); - if (prefix_tag && !binary) { - - error(0, 0, - dcgettext(((void *)0), "--tag does not support --text mode", 5)); - usage(1); - } - - if (digest_delim != '\n' && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --zero option is not supported when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (prefix_tag && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --tag option is meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (0 <= binary && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --binary and --text options are meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (ignore_missing && !do_check) { - error(0, 0, - - dcgettext(((void *)0), - "the --ignore-missing option is meaningful only when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (status_only && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --status option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (warn && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --warn option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (quiet && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --quiet option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (strict & !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --strict option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (!0 && binary < 0) - binary = 0; - - char **operand_lim = argv + argc; - if (optind == argc) - *operand_lim++ = bad_cast("-"); - - for (char **operandp = argv + optind; operandp < operand_lim; operandp++) { - char *file = *operandp; - if (do_check) - ok &= digest_check(file); - else { - int binary_file = binary; - - _Bool missing; - uintmax_t length; - - if (!digest_file(file, &binary_file, bin_buffer, &missing, &length)) - ok = 0; - else { - output_file(file, binary_file, bin_buffer, prefix_tag, digest_delim, - optind != argc, length); - } - } - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/sha384sum-digest.c b/tests/source/coreutils/sha384sum-digest.c deleted file mode 100644 index aad060c..0000000 --- a/tests/source/coreutils/sha384sum-digest.c +++ /dev/null @@ -1,7844 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -typedef uint64_t u64; - -enum { SHA384_DIGEST_SIZE = 384 / 8 }; -enum { SHA512_DIGEST_SIZE = 512 / 8 }; -struct sha512_ctx { - u64 state[8]; - - u64 total[2]; - size_t buflen; - u64 buffer[32]; -}; - -extern void sha512_init_ctx(struct sha512_ctx *ctx); -extern void sha384_init_ctx(struct sha512_ctx *ctx); - -extern void sha512_process_block(const void *buffer, size_t len, - struct sha512_ctx *ctx); - -extern void sha512_process_bytes(const void *buffer, size_t len, - struct sha512_ctx *ctx); - -extern void *sha512_finish_ctx(struct sha512_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha384_finish_ctx(struct sha512_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha512_read_ctx(const struct sha512_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha384_read_ctx(const struct sha512_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha512_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern void *sha384_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern int sha512_stream(FILE *stream, void *resblock); -extern int sha384_stream(FILE *stream, void *resblock); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -static _Bool have_read_stdin; - -static size_t min_digest_line_length; - -static size_t digest_hex_bytes; - -static _Bool status_only = 0; - -static _Bool warn = 0; - -static _Bool ignore_missing = 0; - -static _Bool quiet = 0; - -static _Bool strict = 0; - -static int bsd_reversed = -1; - -static unsigned char digest_delim = '\n'; - -typedef void (*digest_output_fn)(char const *, int, void const *, - - _Bool, unsigned char, _Bool, uintmax_t); -enum { - IGNORE_MISSING_OPTION = 0x7f + 1, - STATUS_OPTION, - QUIET_OPTION, - STRICT_OPTION, - TAG_OPTION, - UNTAG_OPTION, - DEBUG_PROGRAM_OPTION, -}; - -static struct option const long_options[] = { - - {"check", 0, ((void *)0), 'c'}, - {"ignore-missing", 0, ((void *)0), IGNORE_MISSING_OPTION}, - {"quiet", 0, ((void *)0), QUIET_OPTION}, - {"status", 0, ((void *)0), STATUS_OPTION}, - {"warn", 0, ((void *)0), 'w'}, - {"strict", 0, ((void *)0), STRICT_OPTION}, - {"tag", 0, ((void *)0), TAG_OPTION}, - {"zero", 0, ((void *)0), 'z'}, - - {"binary", 0, ((void *)0), 'b'}, - {"text", 0, ((void *)0), 't'}, - - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - - printf(dcgettext(((void *)0), "Print or check %s (%d-bit) checksums.\n", 5) - - , - "SHA384", 384); - - emit_stdin_note(); - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode " - "(default unless reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -c, --check read checksums from the " - "FILEs and check them\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --tag create a BSD-style checksum\n", 5), - stdout) - - ; - - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -t, --text read in text mode " - "(default if reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked( - dcgettext(((void *)0), - " -t, --text read in text mode (default)\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -z, --zero end each output line " - "with NUL, not newline,\n " - " and disable file name escaping\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nThe following five options are useful only when verifying " - "checksums:\n --ignore-missing don't fail or report " - "status for missing files\n --quiet don't " - "print OK for each successfully verified file\n " - "--status don't output anything, status code shows " - "success\n --strict exit non-zero for " - "improperly formatted checksum lines\n -w, --warn " - " warn about improperly formatted checksum lines\n\n", - 5), - stdout); - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nThe sums are computed as described in %s.\n", 5) - - , - "FIPS-180-2"); - fputs_unlocked( - dcgettext( - ((void *)0), - "When checking, the input should be a former output of this " - "program.\nThe default mode is to print a line with: checksum, a " - "space,\na character indicating input mode ('*' for binary, ' ' " - "for text\nor where binary is insignificant), and name for each " - "FILE.\n\nNote: There is no difference between binary mode and " - "text mode on GNU systems.\n", - 5), - stdout) - - ; - - emit_ancillary_info("sha384sum"); - } - - exit(status); -} -static char *filename_unescape(char *s, size_t s_len) { - char *dst = s; - - for (size_t i = 0; i < s_len; i++) { - switch (s[i]) { - case '\\': - if (i == s_len - 1) { - - return ((void *)0); - } - ++i; - switch (s[i]) { - case 'n': - *dst++ = '\n'; - break; - case 'r': - *dst++ = '\r'; - break; - case '\\': - *dst++ = '\\'; - break; - default: - - return ((void *)0); - } - break; - - case '\0': - - return ((void *)0); - - default: - *dst++ = s[i]; - break; - } - } - if (dst < s + s_len) - *dst = '\0'; - - return s; -} - -__attribute__((__pure__)) static _Bool - -hex_digits(unsigned char const *s) { - for (unsigned int i = 0; i < digest_hex_bytes; i++) { - if (!((*__ctype_b_loc())[(int)((*s))] & (unsigned short int)_ISxdigit)) - return 0; - ++s; - } - return *s == '\0'; -} - -static _Bool - -bsd_split_3(char *s, size_t s_len, unsigned char **hex_digest, char **file_name, - _Bool escaped_filename) { - size_t i; - - if (s_len == 0) - return 0; - - i = s_len - 1; - while (i && s[i] != ')') - i--; - - if (s[i] != ')') - return 0; - - *file_name = s; - - if (escaped_filename && filename_unescape(s, i) == ((void *)0)) - return 0; - - s[i++] = '\0'; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - if (s[i] != '=') - return 0; - - i++; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - *hex_digest = (unsigned char *)&s[i]; - - return hex_digits(*hex_digest); -} -static _Bool - -split_3(char *s, size_t s_len, unsigned char **hex_digest, int *binary, - char **file_name) { - - _Bool escaped_filename = 0; - size_t algo_name_len; - - size_t i = 0; - while (((s[i]) == ' ' || (s[i]) == '\t')) - ++i; - - if (s[i] == '\\') { - ++i; - escaped_filename = 1; - } - algo_name_len = strlen("SHA384"); - if ((strncmp(s + i, "SHA384", algo_name_len) == 0)) { - i += algo_name_len; - if (s[i] == ' ') - ++i; - if (s[i] == '(') { - ++i; - *binary = 0; - return bsd_split_3(s + i, s_len - i, hex_digest, file_name, - escaped_filename); - } - return 0; - } - - if (s_len - i < min_digest_line_length + (s[i] == '\\')) - return 0; - - *hex_digest = (unsigned char *)&s[i]; - i += digest_hex_bytes; - if (!((s[i]) == ' ' || (s[i]) == '\t')) - return 0; - - s[i++] = '\0'; - - if (!hex_digits(*hex_digest)) - return 0; - - if ((s_len - i == 1) || (s[i] != ' ' && s[i] != '*')) { - - if (bsd_reversed == 0) - return 0; - bsd_reversed = 1; - } else if (bsd_reversed != 1) { - bsd_reversed = 0; - *binary = (s[i++] == '*'); - } - - *file_name = &s[i]; - - if (escaped_filename) - return filename_unescape(&s[i], s_len - i) != ((void *)0); - - return 1; -} - -static void print_filename(char const *file, _Bool escape) { - if (!escape) { - fputs_unlocked(file, stdout); - return; - } - - while (*file) { - switch (*file) { - case '\n': - fputs_unlocked("\\n", stdout); - break; - - case '\r': - fputs_unlocked("\\r", stdout); - break; - - case '\\': - fputs_unlocked("\\\\", stdout); - break; - - default: - putchar_unlocked(*file); - break; - } - file++; - } -} -static _Bool - -digest_file(char const *filename, int *binary, unsigned char *bin_result, - - _Bool *missing, uintmax_t *length) { - FILE *fp; - int err; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - *missing = 0; - - if (is_stdin) { - have_read_stdin = 1; - fp = stdin; - if (0 && *binary) { - if (*binary < 0) - *binary = !isatty(0); - if (*binary) - xset_binary_mode(0, 0); - } - } else { - fp = fopen_safer(filename, (0 && *binary ? "rb" : "r")); - if (fp == ((void *)0)) { - if (ignore_missing && (*__errno_location()) == 2) { - *missing = 1; - return 1; - } - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - } - - fadvise(fp, FADVISE_SEQUENTIAL); - err = sha384_stream(fp, bin_result); - - err = err ? (*__errno_location()) : 0; - if (is_stdin) - clearerr_unlocked(fp); - else if (rpl_fclose(fp) != 0 && !err) - err = (*__errno_location()); - - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return 1; -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - unsigned char const *bin_buffer = digest; - - _Bool needs_escape = - delim == '\n' && - (strchr(file, '\\') || strchr(file, '\n') || strchr(file, '\r')); - if (needs_escape) - putchar_unlocked('\\'); - - if (tagged) { - fputs_unlocked("SHA384", stdout); - fputs_unlocked(" (", stdout); - print_filename(file, needs_escape); - fputs_unlocked(") = ", stdout); - } - - for (size_t i = 0; i < (digest_hex_bytes / 2); ++i) - printf("%02x", bin_buffer[i]); - - if (!tagged) { - putchar_unlocked(' '); - - putchar_unlocked(binary_file ? '*' : ' '); - - print_filename(file, needs_escape); - } - - putchar_unlocked(delim); -} - -static _Bool - -digest_check(char const *checkfile_name) { - FILE *checkfile_stream; - uintmax_t n_misformatted_lines = 0; - uintmax_t n_improperly_formatted_lines = 0; - uintmax_t n_mismatched_checksums = 0; - uintmax_t n_open_or_read_failures = 0; - - _Bool properly_formatted_lines = 0; - - _Bool matched_checksums = 0; - unsigned char bin_buffer_unaligned[(384 / 8) + 8]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 8); - uintmax_t line_number; - char *line; - size_t line_chars_allocated; - - _Bool is_stdin = (strcmp(checkfile_name, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - checkfile_name = dcgettext(((void *)0), "standard input", 5); - checkfile_stream = stdin; - } else { - checkfile_stream = fopen_safer(checkfile_name, "r"); - if (checkfile_stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - return 0; - } - } - - line_number = 0; - line = ((void *)0); - line_chars_allocated = 0; - do { - char *filename; - int binary; - unsigned char *hex_digest; - ssize_t line_length; - - ++line_number; - if (line_number == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum " - "lines\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, checkfile_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - line_length = getline(&line, &line_chars_allocated, checkfile_stream); - if (line_length <= 0) - break; - - if (line[0] == ' continue; - - - line_length -= line[line_length - 1] == '\n'; - - line_length -= line[line_length - (0 < line_length)] == '\r'; - - - if (line_length == 0) - continue; - - line[line_length] = '\0'; - - if (! (split_3 (line, line_length, &hex_digest, &binary, &filename) - && ! (is_stdin && (strcmp (filename, "-") == 0)))) - { - ++n_misformatted_lines; - - if (warn) { - error(0, 0, - - dcgettext(((void *)0), - "%s: %" - "l" - "u" - ": improperly formatted %s checksum line", - 5) - - , - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name), - line_number, "SHA384"); - } - - ++n_improperly_formatted_lines; - } - else - { - static const char bin2hex[] = {'0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; - - _Bool ok; - - _Bool missing; - - _Bool needs_escape = !status_only && strchr(filename, '\n'); - - properly_formatted_lines = 1; - - uintmax_t length; - ok = digest_file(filename, &binary, bin_buffer, &missing, &length); - - if (!ok) { - ++n_open_or_read_failures; - if (!status_only) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - printf(": %s\n", dcgettext(((void *)0), "FAILED open or read", 5)); - } - } else if (ignore_missing && missing) { - - ; - } else { - size_t digest_bin_bytes = digest_hex_bytes / 2; - size_t cnt; - - for (cnt = 0; cnt < digest_bin_bytes; ++cnt) { - if ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt])) { - int __c = (hex_digest[2 * cnt]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt]); - } else - __res = (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt])]; - __res; - })) - - != bin2hex[bin_buffer[cnt] >> 4] || - ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt + 1]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt + 1])) { - int __c = (hex_digest[2 * cnt + 1]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt + 1]); - } else - __res = - (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt + 1])]; - __res; - })) - - != (bin2hex[bin_buffer[cnt] & 0xf]))) - break; - } - if (cnt != digest_bin_bytes) - ++n_mismatched_checksums; - else - matched_checksums = 1; - - if (!status_only) { - if (cnt != digest_bin_bytes || !quiet) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - } - - if (cnt != digest_bin_bytes) - printf(": %s\n", dcgettext(((void *)0), "FAILED", 5)); - else if (!quiet) - printf(": %s\n", dcgettext(((void *)0), "OK", 5)); - } - } - } - } while (!feof_unlocked(checkfile_stream) && - !ferror_unlocked(checkfile_stream)); - - free(line); - - int err = ferror_unlocked(checkfile_stream) ? 0 : -1; - if (is_stdin) - clearerr_unlocked(checkfile_stream); - else if (rpl_fclose(checkfile_stream) != 0 && err < 0) - err = (*__errno_location()); - - if (0 <= err) { - error( - 0, err, err ? "%s" : dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - return 0; - } - - if (!properly_formatted_lines) { - - error( - 0, 0, - dcgettext(((void *)0), "%s: no properly formatted checksum lines found", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - } else { - if (!status_only) { - if (n_misformatted_lines != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " line is improperly formatted", - "WARNING: %" - "l" - "u" - " lines are improperly formatted", - select_plural(n_misformatted_lines), 5) - - ), - n_misformatted_lines); - - if (n_open_or_read_failures != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " listed file could not be read", - "WARNING: %" - "l" - "u" - " listed files could not be read", - select_plural(n_open_or_read_failures), 5) - - ), - n_open_or_read_failures); - - if (n_mismatched_checksums != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " computed checksum did NOT match", - "WARNING: %" - "l" - "u" - " computed checksums did NOT match", - select_plural(n_mismatched_checksums), 5) - - ), - n_mismatched_checksums); - - if (ignore_missing && !matched_checksums) - error(0, 0, dcgettext(((void *)0), "%s: no file was verified", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - } - } - - return (properly_formatted_lines && matched_checksums && - n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && - (!strict || n_improperly_formatted_lines == 0)); -} - -int main(int argc, char **argv) { - unsigned char bin_buffer_unaligned[(384 / 8) + 8]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 8); - - _Bool do_check = 0; - int opt; - - _Bool ok = 1; - - int binary = -1; - - _Bool prefix_tag = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - setvbuf(stdout, ((void *)0), 1, 0); - char const *short_opts = "bctwz"; - - while ((opt = getopt_long(argc, argv, short_opts, long_options, - ((void *)0))) != -1) - switch (opt) { - case 'c': - do_check = 1; - break; - case STATUS_OPTION: - status_only = 1; - warn = 0; - quiet = 0; - break; - - case 'b': - binary = 1; - break; - case 't': - binary = 0; - break; - - case 'w': - status_only = 0; - warn = 1; - quiet = 0; - break; - case IGNORE_MISSING_OPTION: - ignore_missing = 1; - break; - case QUIET_OPTION: - status_only = 0; - warn = 0; - quiet = 1; - break; - case STRICT_OPTION: - strict = 1; - break; - - case TAG_OPTION: - prefix_tag = 1; - binary = 1; - break; - case 'z': - digest_delim = '\0'; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "sha384sum", "GNU coreutils", Version, - ("Ulrich Drepper"), ("Scott Miller"), ("David Madore"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - min_digest_line_length = ((384 / 4) + 1 + 1); - digest_hex_bytes = (384 / 4); - if (prefix_tag && !binary) { - - error(0, 0, - dcgettext(((void *)0), "--tag does not support --text mode", 5)); - usage(1); - } - - if (digest_delim != '\n' && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --zero option is not supported when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (prefix_tag && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --tag option is meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (0 <= binary && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --binary and --text options are meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (ignore_missing && !do_check) { - error(0, 0, - - dcgettext(((void *)0), - "the --ignore-missing option is meaningful only when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (status_only && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --status option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (warn && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --warn option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (quiet && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --quiet option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (strict & !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --strict option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (!0 && binary < 0) - binary = 0; - - char **operand_lim = argv + argc; - if (optind == argc) - *operand_lim++ = bad_cast("-"); - - for (char **operandp = argv + optind; operandp < operand_lim; operandp++) { - char *file = *operandp; - if (do_check) - ok &= digest_check(file); - else { - int binary_file = binary; - - _Bool missing; - uintmax_t length; - - if (!digest_file(file, &binary_file, bin_buffer, &missing, &length)) - ok = 0; - else { - output_file(file, binary_file, bin_buffer, prefix_tag, digest_delim, - optind != argc, length); - } - } - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/sha512sum-digest.c b/tests/source/coreutils/sha512sum-digest.c deleted file mode 100644 index 19e6032..0000000 --- a/tests/source/coreutils/sha512sum-digest.c +++ /dev/null @@ -1,7844 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -typedef uint64_t u64; - -enum { SHA384_DIGEST_SIZE = 384 / 8 }; -enum { SHA512_DIGEST_SIZE = 512 / 8 }; -struct sha512_ctx { - u64 state[8]; - - u64 total[2]; - size_t buflen; - u64 buffer[32]; -}; - -extern void sha512_init_ctx(struct sha512_ctx *ctx); -extern void sha384_init_ctx(struct sha512_ctx *ctx); - -extern void sha512_process_block(const void *buffer, size_t len, - struct sha512_ctx *ctx); - -extern void sha512_process_bytes(const void *buffer, size_t len, - struct sha512_ctx *ctx); - -extern void *sha512_finish_ctx(struct sha512_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha384_finish_ctx(struct sha512_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha512_read_ctx(const struct sha512_ctx *ctx, - void *__restrict__ resbuf); -extern void *sha384_read_ctx(const struct sha512_ctx *ctx, - void *__restrict__ resbuf); - -extern void *sha512_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern void *sha384_buffer(const char *buffer, size_t len, - void *__restrict__ resblock); -extern int sha512_stream(FILE *stream, void *resblock); -extern int sha384_stream(FILE *stream, void *resblock); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -static _Bool have_read_stdin; - -static size_t min_digest_line_length; - -static size_t digest_hex_bytes; - -static _Bool status_only = 0; - -static _Bool warn = 0; - -static _Bool ignore_missing = 0; - -static _Bool quiet = 0; - -static _Bool strict = 0; - -static int bsd_reversed = -1; - -static unsigned char digest_delim = '\n'; - -typedef void (*digest_output_fn)(char const *, int, void const *, - - _Bool, unsigned char, _Bool, uintmax_t); -enum { - IGNORE_MISSING_OPTION = 0x7f + 1, - STATUS_OPTION, - QUIET_OPTION, - STRICT_OPTION, - TAG_OPTION, - UNTAG_OPTION, - DEBUG_PROGRAM_OPTION, -}; - -static struct option const long_options[] = { - - {"check", 0, ((void *)0), 'c'}, - {"ignore-missing", 0, ((void *)0), IGNORE_MISSING_OPTION}, - {"quiet", 0, ((void *)0), QUIET_OPTION}, - {"status", 0, ((void *)0), STATUS_OPTION}, - {"warn", 0, ((void *)0), 'w'}, - {"strict", 0, ((void *)0), STRICT_OPTION}, - {"tag", 0, ((void *)0), TAG_OPTION}, - {"zero", 0, ((void *)0), 'z'}, - - {"binary", 0, ((void *)0), 'b'}, - {"text", 0, ((void *)0), 't'}, - - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - - printf(dcgettext(((void *)0), "Print or check %s (%d-bit) checksums.\n", 5) - - , - "SHA512", 512); - - emit_stdin_note(); - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode " - "(default unless reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked(dcgettext(((void *)0), - " -b, --binary read in binary mode\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -c, --check read checksums from the " - "FILEs and check them\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --tag create a BSD-style checksum\n", 5), - stdout) - - ; - - if (0) - fputs_unlocked(dcgettext(((void *)0), - " -t, --text read in text mode " - "(default if reading tty stdin)\n", - 5), - stdout) - - ; - else - fputs_unlocked( - dcgettext(((void *)0), - " -t, --text read in text mode (default)\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -z, --zero end each output line " - "with NUL, not newline,\n " - " and disable file name escaping\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nThe following five options are useful only when verifying " - "checksums:\n --ignore-missing don't fail or report " - "status for missing files\n --quiet don't " - "print OK for each successfully verified file\n " - "--status don't output anything, status code shows " - "success\n --strict exit non-zero for " - "improperly formatted checksum lines\n -w, --warn " - " warn about improperly formatted checksum lines\n\n", - 5), - stdout); - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf(dcgettext(((void *)0), - "\nThe sums are computed as described in %s.\n", 5) - - , - "FIPS-180-2"); - fputs_unlocked( - dcgettext( - ((void *)0), - "When checking, the input should be a former output of this " - "program.\nThe default mode is to print a line with: checksum, a " - "space,\na character indicating input mode ('*' for binary, ' ' " - "for text\nor where binary is insignificant), and name for each " - "FILE.\n\nNote: There is no difference between binary mode and " - "text mode on GNU systems.\n", - 5), - stdout) - - ; - - emit_ancillary_info("sha512sum"); - } - - exit(status); -} -static char *filename_unescape(char *s, size_t s_len) { - char *dst = s; - - for (size_t i = 0; i < s_len; i++) { - switch (s[i]) { - case '\\': - if (i == s_len - 1) { - - return ((void *)0); - } - ++i; - switch (s[i]) { - case 'n': - *dst++ = '\n'; - break; - case 'r': - *dst++ = '\r'; - break; - case '\\': - *dst++ = '\\'; - break; - default: - - return ((void *)0); - } - break; - - case '\0': - - return ((void *)0); - - default: - *dst++ = s[i]; - break; - } - } - if (dst < s + s_len) - *dst = '\0'; - - return s; -} - -__attribute__((__pure__)) static _Bool - -hex_digits(unsigned char const *s) { - for (unsigned int i = 0; i < digest_hex_bytes; i++) { - if (!((*__ctype_b_loc())[(int)((*s))] & (unsigned short int)_ISxdigit)) - return 0; - ++s; - } - return *s == '\0'; -} - -static _Bool - -bsd_split_3(char *s, size_t s_len, unsigned char **hex_digest, char **file_name, - _Bool escaped_filename) { - size_t i; - - if (s_len == 0) - return 0; - - i = s_len - 1; - while (i && s[i] != ')') - i--; - - if (s[i] != ')') - return 0; - - *file_name = s; - - if (escaped_filename && filename_unescape(s, i) == ((void *)0)) - return 0; - - s[i++] = '\0'; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - if (s[i] != '=') - return 0; - - i++; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - *hex_digest = (unsigned char *)&s[i]; - - return hex_digits(*hex_digest); -} -static _Bool - -split_3(char *s, size_t s_len, unsigned char **hex_digest, int *binary, - char **file_name) { - - _Bool escaped_filename = 0; - size_t algo_name_len; - - size_t i = 0; - while (((s[i]) == ' ' || (s[i]) == '\t')) - ++i; - - if (s[i] == '\\') { - ++i; - escaped_filename = 1; - } - algo_name_len = strlen("SHA512"); - if ((strncmp(s + i, "SHA512", algo_name_len) == 0)) { - i += algo_name_len; - if (s[i] == ' ') - ++i; - if (s[i] == '(') { - ++i; - *binary = 0; - return bsd_split_3(s + i, s_len - i, hex_digest, file_name, - escaped_filename); - } - return 0; - } - - if (s_len - i < min_digest_line_length + (s[i] == '\\')) - return 0; - - *hex_digest = (unsigned char *)&s[i]; - i += digest_hex_bytes; - if (!((s[i]) == ' ' || (s[i]) == '\t')) - return 0; - - s[i++] = '\0'; - - if (!hex_digits(*hex_digest)) - return 0; - - if ((s_len - i == 1) || (s[i] != ' ' && s[i] != '*')) { - - if (bsd_reversed == 0) - return 0; - bsd_reversed = 1; - } else if (bsd_reversed != 1) { - bsd_reversed = 0; - *binary = (s[i++] == '*'); - } - - *file_name = &s[i]; - - if (escaped_filename) - return filename_unescape(&s[i], s_len - i) != ((void *)0); - - return 1; -} - -static void print_filename(char const *file, _Bool escape) { - if (!escape) { - fputs_unlocked(file, stdout); - return; - } - - while (*file) { - switch (*file) { - case '\n': - fputs_unlocked("\\n", stdout); - break; - - case '\r': - fputs_unlocked("\\r", stdout); - break; - - case '\\': - fputs_unlocked("\\\\", stdout); - break; - - default: - putchar_unlocked(*file); - break; - } - file++; - } -} -static _Bool - -digest_file(char const *filename, int *binary, unsigned char *bin_result, - - _Bool *missing, uintmax_t *length) { - FILE *fp; - int err; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - *missing = 0; - - if (is_stdin) { - have_read_stdin = 1; - fp = stdin; - if (0 && *binary) { - if (*binary < 0) - *binary = !isatty(0); - if (*binary) - xset_binary_mode(0, 0); - } - } else { - fp = fopen_safer(filename, (0 && *binary ? "rb" : "r")); - if (fp == ((void *)0)) { - if (ignore_missing && (*__errno_location()) == 2) { - *missing = 1; - return 1; - } - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - } - - fadvise(fp, FADVISE_SEQUENTIAL); - err = sha512_stream(fp, bin_result); - - err = err ? (*__errno_location()) : 0; - if (is_stdin) - clearerr_unlocked(fp); - else if (rpl_fclose(fp) != 0 && !err) - err = (*__errno_location()); - - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return 1; -} - -static void output_file(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - unsigned char const *bin_buffer = digest; - - _Bool needs_escape = - delim == '\n' && - (strchr(file, '\\') || strchr(file, '\n') || strchr(file, '\r')); - if (needs_escape) - putchar_unlocked('\\'); - - if (tagged) { - fputs_unlocked("SHA512", stdout); - fputs_unlocked(" (", stdout); - print_filename(file, needs_escape); - fputs_unlocked(") = ", stdout); - } - - for (size_t i = 0; i < (digest_hex_bytes / 2); ++i) - printf("%02x", bin_buffer[i]); - - if (!tagged) { - putchar_unlocked(' '); - - putchar_unlocked(binary_file ? '*' : ' '); - - print_filename(file, needs_escape); - } - - putchar_unlocked(delim); -} - -static _Bool - -digest_check(char const *checkfile_name) { - FILE *checkfile_stream; - uintmax_t n_misformatted_lines = 0; - uintmax_t n_improperly_formatted_lines = 0; - uintmax_t n_mismatched_checksums = 0; - uintmax_t n_open_or_read_failures = 0; - - _Bool properly_formatted_lines = 0; - - _Bool matched_checksums = 0; - unsigned char bin_buffer_unaligned[(512 / 8) + 8]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 8); - uintmax_t line_number; - char *line; - size_t line_chars_allocated; - - _Bool is_stdin = (strcmp(checkfile_name, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - checkfile_name = dcgettext(((void *)0), "standard input", 5); - checkfile_stream = stdin; - } else { - checkfile_stream = fopen_safer(checkfile_name, "r"); - if (checkfile_stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - return 0; - } - } - - line_number = 0; - line = ((void *)0); - line_chars_allocated = 0; - do { - char *filename; - int binary; - unsigned char *hex_digest; - ssize_t line_length; - - ++line_number; - if (line_number == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum " - "lines\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, checkfile_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - line_length = getline(&line, &line_chars_allocated, checkfile_stream); - if (line_length <= 0) - break; - - if (line[0] == ' continue; - - - line_length -= line[line_length - 1] == '\n'; - - line_length -= line[line_length - (0 < line_length)] == '\r'; - - - if (line_length == 0) - continue; - - line[line_length] = '\0'; - - if (! (split_3 (line, line_length, &hex_digest, &binary, &filename) - && ! (is_stdin && (strcmp (filename, "-") == 0)))) - { - ++n_misformatted_lines; - - if (warn) { - error(0, 0, - - dcgettext(((void *)0), - "%s: %" - "l" - "u" - ": improperly formatted %s checksum line", - 5) - - , - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name), - line_number, "SHA512"); - } - - ++n_improperly_formatted_lines; - } - else - { - static const char bin2hex[] = {'0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; - - _Bool ok; - - _Bool missing; - - _Bool needs_escape = !status_only && strchr(filename, '\n'); - - properly_formatted_lines = 1; - - uintmax_t length; - ok = digest_file(filename, &binary, bin_buffer, &missing, &length); - - if (!ok) { - ++n_open_or_read_failures; - if (!status_only) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - printf(": %s\n", dcgettext(((void *)0), "FAILED open or read", 5)); - } - } else if (ignore_missing && missing) { - - ; - } else { - size_t digest_bin_bytes = digest_hex_bytes / 2; - size_t cnt; - - for (cnt = 0; cnt < digest_bin_bytes; ++cnt) { - if ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt])) { - int __c = (hex_digest[2 * cnt]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt]); - } else - __res = (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt])]; - __res; - })) - - != bin2hex[bin_buffer[cnt] >> 4] || - ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt + 1]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt + 1])) { - int __c = (hex_digest[2 * cnt + 1]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt + 1]); - } else - __res = - (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt + 1])]; - __res; - })) - - != (bin2hex[bin_buffer[cnt] & 0xf]))) - break; - } - if (cnt != digest_bin_bytes) - ++n_mismatched_checksums; - else - matched_checksums = 1; - - if (!status_only) { - if (cnt != digest_bin_bytes || !quiet) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - } - - if (cnt != digest_bin_bytes) - printf(": %s\n", dcgettext(((void *)0), "FAILED", 5)); - else if (!quiet) - printf(": %s\n", dcgettext(((void *)0), "OK", 5)); - } - } - } - } while (!feof_unlocked(checkfile_stream) && - !ferror_unlocked(checkfile_stream)); - - free(line); - - int err = ferror_unlocked(checkfile_stream) ? 0 : -1; - if (is_stdin) - clearerr_unlocked(checkfile_stream); - else if (rpl_fclose(checkfile_stream) != 0 && err < 0) - err = (*__errno_location()); - - if (0 <= err) { - error( - 0, err, err ? "%s" : dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - return 0; - } - - if (!properly_formatted_lines) { - - error( - 0, 0, - dcgettext(((void *)0), "%s: no properly formatted checksum lines found", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - } else { - if (!status_only) { - if (n_misformatted_lines != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " line is improperly formatted", - "WARNING: %" - "l" - "u" - " lines are improperly formatted", - select_plural(n_misformatted_lines), 5) - - ), - n_misformatted_lines); - - if (n_open_or_read_failures != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " listed file could not be read", - "WARNING: %" - "l" - "u" - " listed files could not be read", - select_plural(n_open_or_read_failures), 5) - - ), - n_open_or_read_failures); - - if (n_mismatched_checksums != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " computed checksum did NOT match", - "WARNING: %" - "l" - "u" - " computed checksums did NOT match", - select_plural(n_mismatched_checksums), 5) - - ), - n_mismatched_checksums); - - if (ignore_missing && !matched_checksums) - error(0, 0, dcgettext(((void *)0), "%s: no file was verified", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - } - } - - return (properly_formatted_lines && matched_checksums && - n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && - (!strict || n_improperly_formatted_lines == 0)); -} - -int main(int argc, char **argv) { - unsigned char bin_buffer_unaligned[(512 / 8) + 8]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 8); - - _Bool do_check = 0; - int opt; - - _Bool ok = 1; - - int binary = -1; - - _Bool prefix_tag = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - setvbuf(stdout, ((void *)0), 1, 0); - char const *short_opts = "bctwz"; - - while ((opt = getopt_long(argc, argv, short_opts, long_options, - ((void *)0))) != -1) - switch (opt) { - case 'c': - do_check = 1; - break; - case STATUS_OPTION: - status_only = 1; - warn = 0; - quiet = 0; - break; - - case 'b': - binary = 1; - break; - case 't': - binary = 0; - break; - - case 'w': - status_only = 0; - warn = 1; - quiet = 0; - break; - case IGNORE_MISSING_OPTION: - ignore_missing = 1; - break; - case QUIET_OPTION: - status_only = 0; - warn = 0; - quiet = 1; - break; - case STRICT_OPTION: - strict = 1; - break; - - case TAG_OPTION: - prefix_tag = 1; - binary = 1; - break; - case 'z': - digest_delim = '\0'; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "sha512sum", "GNU coreutils", Version, - ("Ulrich Drepper"), ("Scott Miller"), ("David Madore"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - min_digest_line_length = ((512 / 4) + 1 + 1); - digest_hex_bytes = (512 / 4); - if (prefix_tag && !binary) { - - error(0, 0, - dcgettext(((void *)0), "--tag does not support --text mode", 5)); - usage(1); - } - - if (digest_delim != '\n' && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --zero option is not supported when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (prefix_tag && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --tag option is meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (0 <= binary && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --binary and --text options are meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (ignore_missing && !do_check) { - error(0, 0, - - dcgettext(((void *)0), - "the --ignore-missing option is meaningful only when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (status_only && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --status option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (warn && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --warn option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (quiet && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --quiet option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (strict & !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --strict option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (!0 && binary < 0) - binary = 0; - - char **operand_lim = argv + argc; - if (optind == argc) - *operand_lim++ = bad_cast("-"); - - for (char **operandp = argv + optind; operandp < operand_lim; operandp++) { - char *file = *operandp; - if (do_check) - ok &= digest_check(file); - else { - int binary_file = binary; - - _Bool missing; - uintmax_t length; - - if (!digest_file(file, &binary_file, bin_buffer, &missing, &length)) - ok = 0; - else { - output_file(file, binary_file, bin_buffer, prefix_tag, digest_delim, - optind != argc, length); - } - } - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/shred.c b/tests/source/coreutils/shred.c deleted file mode 100644 index 0084f43..0000000 --- a/tests/source/coreutils/shred.c +++ /dev/null @@ -1,8053 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -typedef long int __jmp_buf[8]; -struct __jmp_buf_tag { - - __jmp_buf __jmpbuf; - int __mask_was_saved; - __sigset_t __saved_mask; -}; - -typedef struct __jmp_buf_tag jmp_buf[1]; - -extern int setjmp(jmp_buf __env) __attribute__((__nothrow__)); - -extern int __sigsetjmp(struct __jmp_buf_tag __env[1], int __savemask) - __attribute__((__nothrow__)); - -extern int _setjmp(struct __jmp_buf_tag __env[1]) __attribute__((__nothrow__)); -extern void longjmp(struct __jmp_buf_tag __env[1], int __val) - __attribute__((__nothrow__)) __attribute__((__noreturn__)); - -extern void _longjmp(struct __jmp_buf_tag __env[1], int __val) - __attribute__((__nothrow__)) __attribute__((__noreturn__)); - -typedef struct __jmp_buf_tag sigjmp_buf[1]; -extern void siglongjmp(sigjmp_buf __env, int __val) __attribute__((__nothrow__)) -__attribute__((__noreturn__)); - -extern void longjmp(struct __jmp_buf_tag __env[1], - int __val) __asm__("" - "__longjmp_chk") - __attribute__((__nothrow__)) - - __attribute__((__noreturn__)); -extern void _longjmp(struct __jmp_buf_tag __env[1], - int __val) __asm__("" - "__longjmp_chk") - __attribute__((__nothrow__)) - - __attribute__((__noreturn__)); -extern void siglongjmp(struct __jmp_buf_tag __env[1], - int __val) __asm__("" - "__longjmp_chk") - __attribute__((__nothrow__)) - - __attribute__((__noreturn__)); - -struct winsize { - unsigned short int ws_row; - unsigned short int ws_col; - unsigned short int ws_xpixel; - unsigned short int ws_ypixel; -}; - -struct termio { - unsigned short int c_iflag; - unsigned short int c_oflag; - unsigned short int c_cflag; - unsigned short int c_lflag; - unsigned char c_line; - unsigned char c_cc[8]; -}; - -extern int ioctl(int __fd, unsigned long int __request, ...) - __attribute__((__nothrow__, __leaf__)); - -struct mtop { - short int mt_op; - int mt_count; -}; -struct mtget { - long int mt_type; - long int mt_resid; - - long int mt_dsreg; - long int mt_gstat; - long int mt_erreg; - - __daddr_t mt_fileno; - __daddr_t mt_blkno; -}; -struct mt_tape_info { - long int t_type; - char *t_name; -}; -struct mtpos { - long int mt_blkno; -}; - -struct mtconfiginfo { - long int mt_type; - long int ifc_type; - unsigned short int irqnr; - unsigned short int dmanr; - unsigned short int port; - - unsigned long int debug; - - unsigned have_dens : 1; - unsigned have_bsf : 1; - unsigned have_fsr : 1; - unsigned have_bsr : 1; - unsigned have_eod : 1; - unsigned have_seek : 1; - unsigned have_tell : 1; - unsigned have_ras1 : 1; - unsigned have_ras2 : 1; - unsigned have_ras3 : 1; - unsigned have_qfa : 1; - - unsigned pad1 : 5; - char reserved[10]; -}; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -inline void alignfree(void *ptr) { free(ptr); } - -inline __attribute__((__malloc__)) __attribute__((__alloc_size__(2))) - -void * -alignalloc(idx_t alignment, idx_t size) { - if ((size_t)-1 < alignment) - alignment = (size_t)-1; - if ((size_t)-1 < size) - size = (size_t)-1; - - return aligned_alloc(alignment, size); -} -void *xalignalloc(idx_t, idx_t) __attribute__((__malloc__)) -__attribute__((__alloc_size__(2))) __attribute__((__returns_nonnull__)); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int open_safer(char const *, int, ...); -int creat_safer(char const *, mode_t); - -int openat_safer(int, char const *, int, ...); - -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -enum { - - human_ceiling = 0, - - human_round_to_nearest = 1, - - human_floor = 2, - - human_group_digits = 4, - - human_suppress_point_zero = 8, - - human_autoscale = 16, - - human_base_1024 = 32, - - human_space_before_unit = 64, - - human_SI = 128, - - human_B = 256 -}; - -char *human_readable(uintmax_t, char *, int, uintmax_t, uintmax_t); - -enum strtol_error human_options(char const *, int *, uintmax_t *); - -struct randread_source; - -int randread_free(struct randread_source *) __attribute__((__nonnull__)); -struct randread_source *randread_new(char const *, size_t) - __attribute__((__malloc__)) __attribute__((__malloc__(randread_free, 1))); -void randread(struct randread_source *, void *, size_t) - __attribute__((__nonnull__)); -void randread_set_handler(struct randread_source *, void (*)(void const *)) - __attribute__((__nonnull__)); -void randread_set_handler_arg(struct randread_source *, void const *) - __attribute__((__nonnull__(1))); - -typedef uintmax_t randint; - -struct randint_source; - -void randint_free(struct randint_source *) __attribute__((__nonnull__)); -int randint_all_free(struct randint_source *) __attribute__((__nonnull__)); -struct randint_source *randint_new(struct randread_source *) - __attribute__((__malloc__)) __attribute__((__malloc__(randint_free, 1))) - __attribute__((__nonnull__)) __attribute__((__returns_nonnull__)); -struct randint_source *randint_all_new(char const *, size_t) - __attribute__((__malloc__)) - __attribute__((__malloc__(randint_all_free, 1))); -struct randread_source *randint_get_source(struct randint_source const *) - __attribute__((__nonnull__)) __attribute__((__pure__)); -randint randint_genmax(struct randint_source *, randint genmax) - __attribute__((__nonnull__)); - -static inline randint randint_choose(struct randint_source *s, - randint choices) { - return randint_genmax(s, choices - 1); -} - -extern int renameatu(int, char const *, int, char const *, unsigned int); - -enum { DEFAULT_PASSES = 3 }; - -enum { VERBOSE_UPDATE = 5 }; - -enum { SECTOR_SIZE = 512 }; -enum { SECTOR_MASK = SECTOR_SIZE - 1 }; -_Static_assert(0 < SECTOR_SIZE && (SECTOR_SIZE & SECTOR_MASK) == 0, - "verify (" - "0 < SECTOR_SIZE && (SECTOR_SIZE & SECTOR_MASK) == 0" - ")"); - -enum remove_method { - remove_none = 0, - remove_unlink, - remove_wipe, - remove_wipesync -}; - -static char const *const remove_args[] = {"unlink", "wipe", "wipesync", - ((void *)0) - -}; - -static enum remove_method const remove_methods[] = {remove_unlink, remove_wipe, - remove_wipesync}; - -struct Options { - - _Bool force; - size_t n_iterations; - off_t size; - enum remove_method remove_file; - - _Bool verbose; - - _Bool exact; - - _Bool zero_fill; -}; - -enum { RANDOM_SOURCE_OPTION = 0x7f + 1 }; - -static struct option const long_opts[] = { - {"exact", 0, ((void *)0), 'x'}, - {"force", 0, ((void *)0), 'f'}, - {"iterations", 1, ((void *)0), 'n'}, - {"size", 1, ((void *)0), 's'}, - {"random-source", 1, ((void *)0), RANDOM_SOURCE_OPTION}, - {"remove", 2, ((void *)0), 'u'}, - {"verbose", 0, ((void *)0), 'v'}, - {"zero", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... FILE...\n", 5), - program_name); - fputs_unlocked(dcgettext(((void *)0), - "Overwrite the specified FILE(s) repeatedly, in " - "order to make it harder\nfor even very expensive " - "hardware probing to recover the data.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), "\nIf FILE is -, shred standard output.\n", 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - printf(dcgettext(((void *)0), - " -f, --force change permissions to allow writing if " - "necessary\n -n, --iterations=N overwrite N times " - "instead of the default (%d)\n --random-source=FILE " - "get random bytes from FILE\n -s, --size=N shred this " - "many bytes (suffixes like K, M, G accepted)\n", - 5) - - , - DEFAULT_PASSES); - fputs_unlocked( - dcgettext( - ((void *)0), - " -u deallocate and remove file after overwriting\n " - " --remove[=HOW] like -u but give control on HOW to delete; " - "See below\n -v, --verbose show progress\n -x, --exact do " - "not round file sizes up to the next full block;\n " - " this is the default for non-regular files\n -z, --zero add " - "a final overwrite with zeros to hide shredding\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nDelete FILE(s) if --remove (-u) is specified. The default is " - "not to remove\nthe files because it is common to operate on " - "device files like /dev/hda,\nand those files usually should not " - "be removed.\nThe optional HOW parameter indicates how to remove a " - "directory entry:\n'unlink' => use a standard unlink call.\n'wipe' " - "=> also first obfuscate bytes in the name.\n'wipesync' => also " - "sync each obfuscated byte to the device.\nThe default mode is " - "'wipesync', but note it can be expensive.\n\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "CAUTION: shred assumes the file system and hardware overwrite " - "data in place.\nAlthough this is common, many platforms operate " - "otherwise. Also, backups\nand mirrors may contain unremovable " - "copies that will let a shredded file\nbe recovered later. See " - "the GNU coreutils manual for details.\n", - 5), - stdout) - - ; - emit_ancillary_info("shred"); - } - exit(status); -} - -static _Bool - -periodic_pattern(int type) { - if (type <= 0) - return 0; - - unsigned char r[3]; - unsigned int bits = type & 0xfff; - - bits |= bits << 12; - r[0] = (bits >> 4) & 255; - r[1] = (bits >> 8) & 255; - r[2] = bits & 255; - - return (r[0] != r[1]) || (r[0] != r[2]); -} - -static void fillpattern(int type, unsigned char *r, size_t size) { - size_t i; - unsigned int bits = type & 0xfff; - - bits |= bits << 12; - r[0] = (bits >> 4) & 255; - r[1] = (bits >> 8) & 255; - r[2] = bits & 255; - for (i = 3; i <= size / 2; i *= 2) - memcpy(r + i, r, i); - if (i < size) - memcpy(r + i, r, size - i); - - if (type & 0x1000) - for (i = 0; i < size; i += SECTOR_SIZE) - r[i] ^= 0x80; -} - -static void passname(unsigned char const *data, char name[7]) { - if (data) - sprintf(name, "%02x%02x%02x", data[0], data[1], data[2]); - else - memcpy(name, "random", 7); -} - -static _Bool - -ignorable_sync_errno(int errno_val) { - return (errno_val == 22 - - || errno_val == 9 - - || errno_val == 21); -} - -static int dosync(int fd, char const *qname) { - int err; - - if (fdatasync(fd) == 0) - return 0; - err = (*__errno_location()); - if (!ignorable_sync_errno(err)) { - error(0, err, dcgettext(((void *)0), "%s: fdatasync failed", 5), qname); - - (*__errno_location()) = err; - return -1; - } - - if (fsync(fd) == 0) - return 0; - err = (*__errno_location()); - if (!ignorable_sync_errno(err)) { - error(0, err, dcgettext(((void *)0), "%s: fsync failed", 5), qname); - - (*__errno_location()) = err; - return -1; - } - - sync(); - return 0; -} - -static void direct_mode(int fd, _Bool enable) { - if (040000) { - int fd_flags = rpl_fcntl(fd, 3); - if (0 < fd_flags) { - int new_flags = (enable ? (fd_flags | 040000) : (fd_flags & ~040000)); - if (new_flags != fd_flags) - - rpl_fcntl(fd, 4, new_flags); - } - } -} - -static _Bool - -dorewind(int fd, struct stat const *st) { - if (((((st->st_mode)) & 0170000) == (0020000))) { - - struct mtop op; - op.mt_op = 6; - op.mt_count = 1; - if (ioctl(fd, - (((1U) << (((0 + 8) + 8) + 14)) | ((('m')) << (0 + 8)) | - (((1)) << 0) | ((((sizeof(struct mtop)))) << ((0 + 8) + 8))), - &op) == 0) - return 1; - } - off_t offset = lseek(fd, 0, 0); - if (0 < offset) - - (*__errno_location()) = 22; - return offset == 0; -} - -static _Bool - -known(off_t size) { - return 0 <= size; -} -static int dopass(int fd, struct stat const *st, char const *qname, - off_t *sizep, int type, struct randread_source *s, - unsigned long int k, unsigned long int n) { - off_t size = *sizep; - off_t offset; - time_t thresh = 0; - time_t now = 0; - size_t lim; - size_t soff; - ssize_t ssize; - - size_t page_size = getpagesize(); - - _Static_assert((60 * 1024) % 3 == 0, "verify (" - "PERIODIC_OUTPUT_SIZE % 3 == 0" - ")"); - size_t output_size = periodic_pattern(type) ? (60 * 1024) : (64 * 1024); - - unsigned char *pbuf = xalignalloc(page_size, (((output_size + 2) / 3) * 3)); - - char pass_string[7]; - - _Bool write_error = 0; - - _Bool other_error = 0; - - char previous_offset_buf - [((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + 3) + - 1]; - char const *previous_human_offset; - - _Bool try_without_directio = 0 < size && size < output_size; - if (!try_without_directio) - direct_mode(fd, 1); - - if (!dorewind(fd, st)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: cannot rewind", 5), qname); - other_error = 1; - goto free_pattern_mem; - } - - if (type >= 0) { - lim = known(size) && size < (((output_size + 2) / 3) * 3) - ? size - : (((output_size + 2) / 3) * 3); - fillpattern(type, pbuf, lim); - passname(pbuf, pass_string); - } else { - passname(0, pass_string); - } - - if (n) { - error(0, 0, dcgettext(((void *)0), "%s: pass %lu/%lu (%s)...", 5), qname, k, - n, pass_string); - thresh = time(((void *)0)) + VERBOSE_UPDATE; - previous_human_offset = ""; - } - - offset = 0; - while (1) { - - lim = output_size; - if (known(size) && size - offset < output_size) { - if (size < offset) - break; - lim = size - offset; - if (!lim) - break; - } - if (type < 0) - randread(s, pbuf, lim); - - for (soff = 0; soff < lim; soff += ssize) { - ssize = write(fd, pbuf + soff, lim - soff); - if (0 < ssize) - ((ssize <= lim - soff) ? (void)0 : __builtin_unreachable()); - else { - if (!known(size) && (ssize == 0 || (*__errno_location()) == 28)) { - - if (soff <= - ((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * - 2 + - 1))) - - offset) - *sizep = size = offset + soff; - break; - } else { - int errnum = (*__errno_location()); - char buf[( - (((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - - if (!try_without_directio && (*__errno_location()) == 22) { - direct_mode(fd, 0); - ssize = 0; - try_without_directio = 1; - continue; - } - error(0, errnum, - dcgettext(((void *)0), "%s: error writing at offset %s", 5), - qname, umaxtostr(offset + soff, buf)); - - _Static_assert((60 * 1024) % SECTOR_SIZE == 0, - "verify (" - "PERIODIC_OUTPUT_SIZE % SECTOR_SIZE == 0" - ")"); - _Static_assert((64 * 1024) % SECTOR_SIZE == 0, - "verify (" - "NONPERIODIC_OUTPUT_SIZE % SECTOR_SIZE == 0" - ")"); - if (errnum == 5 && known(size) && (soff | SECTOR_MASK) < lim) { - size_t soff1 = (soff | SECTOR_MASK) + 1; - if (lseek(fd, offset + soff1, 0) != -1) { - - ssize = soff1 - soff; - write_error = 1; - continue; - } - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: lseek failed", 5), qname); - } - other_error = 1; - goto free_pattern_mem; - } - } - } - - if (((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1))) - - offset < - soff) { - error(0, 0, dcgettext(((void *)0), "%s: file too large", 5), qname); - other_error = 1; - goto free_pattern_mem; - } - - offset += soff; - - _Bool done = offset == size; - - if (n && ((done && *previous_human_offset) || - thresh <= (now = time(((void *)0))))) { - char offset_buf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - - 16 + 1 + 3) + - 1]; - char size_buf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - - 16 + 1 + 3) + - 1]; - int human_progress_opts = - (human_autoscale | human_SI | human_base_1024 | human_B); - char const *human_offset = human_readable( - offset, offset_buf, human_floor | human_progress_opts, 1, 1); - - if (done || !(strcmp(previous_human_offset, human_offset) == 0)) { - if (!known(size)) - error(0, 0, dcgettext(((void *)0), "%s: pass %lu/%lu (%s)...%s", 5), - qname, k, n, pass_string, human_offset); - else { - uintmax_t off = offset; - int percent = - (size == 0 - ? 100 - : (off <= ((uintmax_t)(!(!((uintmax_t)0 < (uintmax_t)-1)) - ? (uintmax_t)-1 - : ((((uintmax_t)1 - << ((sizeof(uintmax_t) * 8) - - 2)) - - 1) * - 2 + - 1))) / - 100 - ? off * 100 / size - : off / (size / 100))); - char const *human_size = human_readable( - size, size_buf, human_ceiling | human_progress_opts, 1, 1); - if (done) - human_offset = human_size; - error(0, 0, - dcgettext(((void *)0), "%s: pass %lu/%lu (%s)...%s/%s %d%%", 5), - qname, k, n, pass_string, human_offset, human_size, percent); - } - - strcpy(previous_offset_buf, human_offset); - previous_human_offset = previous_offset_buf; - thresh = now + VERBOSE_UPDATE; - if (dosync(fd, qname) != 0) { - if ((*__errno_location()) != 5) { - other_error = 1; - goto free_pattern_mem; - } - write_error = 1; - } - } - } - } - - if (dosync(fd, qname) != 0) { - if ((*__errno_location()) != 5) { - other_error = 1; - goto free_pattern_mem; - } - write_error = 1; - } - -free_pattern_mem: - alignfree(pbuf); - - return other_error ? -1 : write_error; -} -static int const patterns[] = { - -2, 2, 0x000, 0xFFF, 2, 0x555, 0xAAA, -1, 6, - 0x249, 0x492, 0x6DB, 0x924, 0xB6D, 0xDB6, 12, 0x111, 0x222, - 0x333, 0x444, 0x666, 0x777, 0x888, 0x999, 0xBBB, 0xCCC, 0xDDD, - 0xEEE, -1, - - 8, 0x1000, 0x1249, 0x1492, 0x16DB, 0x1924, 0x1B6D, 0x1DB6, 0x1FFF, - 14, 0x1111, 0x1222, 0x1333, 0x1444, 0x1555, 0x1666, 0x1777, 0x1888, - 0x1999, 0x1AAA, 0x1BBB, 0x1CCC, 0x1DDD, 0x1EEE, -1, 0}; - -static void genpattern(int *dest, size_t num, struct randint_source *s) { - size_t randpasses; - int const *p; - int *d; - size_t n; - size_t accum, top, swap; - int k; - - if (!num) - return; - - p = patterns; - randpasses = 0; - d = dest; - n = num; - - while (1) { - k = *p++; - if (!k) { - p = patterns; - } else if (k < 0) { - k = -k; - if ((size_t)k >= n) { - randpasses += n; - break; - } - randpasses += k; - n -= k; - } else if ((size_t)k <= n) { - memcpy(d, p, k * sizeof(int)); - p += k; - d += k; - n -= k; - } else if (n < 2 || 3 * n < (size_t)k) { - randpasses += n; - break; - } else { - do { - if (n == (size_t)k || randint_choose(s, k) < n) { - *d++ = *p; - n--; - } - p++; - k--; - } while (n); - break; - } - } - top = num - randpasses; - randpasses--; - accum = randpasses; - for (n = 0; n < num; n++) { - if (accum <= randpasses) { - accum += num - 1; - dest[top++] = dest[n]; - dest[n] = -1; - } else { - swap = n + randint_choose(s, top - n); - k = dest[n]; - dest[n] = dest[swap]; - dest[swap] = k; - } - accum -= randpasses; - } -} - -static _Bool - -do_wipefd(int fd, char const *qname, struct randint_source *s, - struct Options const *flags) { - size_t i; - struct stat st; - off_t size; - off_t i_size = 0; - unsigned long int n; - int *passarray; - - _Bool ok = 1; - struct randread_source *rs; - - n = 0; - if (flags->verbose) - n = flags->n_iterations + flags->zero_fill; - - if (fstat(fd, &st)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: fstat failed", 5), qname); - return 0; - } - - if ((((((st.st_mode)) & 0170000) == (0020000)) && isatty(fd)) || - ((((st.st_mode)) & 0170000) == (0010000)) - - || ((((st.st_mode)) & 0170000) == (0140000))) { - error(0, 0, dcgettext(((void *)0), "%s: invalid file type", 5), qname); - return 0; - } else if (((((st.st_mode)) & 0170000) == (0100000)) && st.st_size < 0) { - error(0, 0, dcgettext(((void *)0), "%s: file has negative size", 5), qname); - return 0; - } - - passarray = xnmalloc(flags->n_iterations, sizeof *passarray); - - size = flags->size; - if (size == -1) { - if (((((st.st_mode)) & 0170000) == (0100000))) { - size = st.st_size; - - if (!flags->exact) { - - off_t remainder = size % ((0 < (st).st_blksize && - (st).st_blksize <= ((size_t)-1) / 8 + 1) - ? (st).st_blksize - : 512); - if (size && size < ((0 < (st).st_blksize && - (st).st_blksize <= ((size_t)-1) / 8 + 1) - ? (st).st_blksize - : 512)) - i_size = size; - if (remainder != 0) { - off_t size_incr = - ((0 < (st).st_blksize && (st).st_blksize <= ((size_t)-1) / 8 + 1) - ? (st).st_blksize - : 512) - - remainder; - size += - (((size_incr) < - (((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * - 2 + - 1))) - - size)) - ? (size_incr) - : (((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - - 1) * - 2 + - 1))) - - size)); - } - } - } else { - - size = lseek(fd, 0, 2); - if (size <= 0) { - - size = -1; - } - } - } else if (((((st.st_mode)) & 0170000) == (0100000)) - - && st.st_size < (((((0 < (st).st_blksize && - (st).st_blksize <= ((size_t)-1) / 8 + 1) - ? (st).st_blksize - : 512)) < (size)) - ? (((0 < (st).st_blksize && - (st).st_blksize <= ((size_t)-1) / 8 + 1) - ? (st).st_blksize - : 512)) - : (size))) - i_size = st.st_size; - - genpattern(passarray, flags->n_iterations, s); - - rs = randint_get_source(s); - - while (1) { - off_t pass_size; - unsigned long int pn = n; - - if (i_size) { - pass_size = i_size; - i_size = 0; - pn = 0; - } else if (size) { - pass_size = size; - size = 0; - } - - else - break; - - for (i = 0; i < flags->n_iterations + flags->zero_fill; i++) { - int err = 0; - int type = i < flags->n_iterations ? passarray[i] : 0; - - err = dopass(fd, &st, qname, &pass_size, type, rs, i + 1, pn); - - if (err) { - ok = 0; - if (err < 0) - goto wipefd_out; - } - } - } - - if (flags->remove_file && ftruncate(fd, 0) != 0 && - (((((st.st_mode)) & 0170000) == (0100000)) || - ((&st)->st_mode - (&st)->st_mode))) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: error truncating", 5), qname); - ok = 0; - goto wipefd_out; - } - -wipefd_out: - free(passarray); - return ok; -} - -static _Bool - -wipefd(int fd, char const *qname, struct randint_source *s, - struct Options const *flags) { - int fd_flags = rpl_fcntl(fd, 3); - - if (fd_flags < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: fcntl failed", 5), qname); - return 0; - } - if (fd_flags & 02000) { - error(0, 0, - dcgettext(((void *)0), "%s: cannot shred append-only file descriptor", - 5), - qname); - return 0; - } - return do_wipefd(fd, qname, s, flags); -} - -static char const nameset[] = - "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_."; - -static _Bool - -incname(char *name, size_t len) { - while (len--) { - char const *p = strchr(nameset, name[len]); - - ((void)sizeof((p) ? 1 : 0), __extension__({ - if (p) - ; - else - __assert_fail("p", "src/shred.c", 1000, - __extension__ __PRETTY_FUNCTION__); - })); - - if (p[1]) { - name[len] = p[1]; - return 1; - } - - name[len] = nameset[0]; - } - - return 0; -} -static _Bool - -wipename(char *oldname, char const *qoldname, struct Options const *flags) { - char *newname = xstrdup(oldname); - char *base = last_component(newname); - char *dir = dir_name(newname); - char *qdir = - xstrdup(quotearg_n_style_colon(0, shell_escape_quoting_style, dir)); - - _Bool first = 1; - - _Bool ok = 1; - int dir_fd = -1; - - if (flags->remove_file == remove_wipesync) - dir_fd = open_safer(dir, 00 | 0200000 | 0400 | 04000); - - if (flags->verbose) - error(0, 0, dcgettext(((void *)0), "%s: removing", 5), qoldname); - - if (flags->remove_file != remove_unlink) - for (size_t len = base_len(base); len != 0; len--) { - memset(base, nameset[0], len); - base[len] = 0; - - _Bool rename_ok; - while (!(rename_ok = (renameatu(-100, oldname, -100, newname, - - (1 << 0)) == 0)) && - (*__errno_location()) == 17 && incname(base, len)) - continue; - if (rename_ok) { - if (0 <= dir_fd && dosync(dir_fd, qdir) != 0) - ok = 0; - if (flags->verbose) { - - char const *old = first ? qoldname : oldname; - error(0, 0, - - dcgettext(((void *)0), "%s: renamed to %s", 5), old, newname); - first = 0; - } - memcpy(oldname + (base - newname), base, len + 1); - } - } - - if (unlink(oldname) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: failed to remove", 5), qoldname); - ok = 0; - } else if (flags->verbose) - error(0, 0, dcgettext(((void *)0), "%s: removed", 5), qoldname); - if (0 <= dir_fd) { - if (dosync(dir_fd, qdir) != 0) - ok = 0; - if (close(dir_fd) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: failed to close", 5), qdir); - ok = 0; - } - } - free(newname); - free(dir); - free(qdir); - return ok; -} -static _Bool - -wipefile(char *name, char const *qname, struct randint_source *s, - struct Options const *flags) { - - _Bool ok; - int fd; - - fd = open_safer(name, 01 | 0400 | 0); - if (fd < 0 && ((*__errno_location()) == 13 && flags->force) && - chmod(name, 0200) == 0) - fd = open_safer(name, 01 | 0400 | 0); - if (fd < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: failed to open for writing", 5), qname); - return 0; - } - - ok = do_wipefd(fd, qname, s, flags); - if (close(fd) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: failed to close", 5), qname); - ok = 0; - } - if (ok && flags->remove_file) - ok = wipename(name, qname, flags); - return ok; -} - -static struct randint_source *randint_source; - -static void clear_random_data(void) { randint_all_free(randint_source); } - -int main(int argc, char **argv) { - - _Bool ok = 1; - struct Options flags = { - 0, - }; - char **file; - int n_files; - int c; - int i; - char const *random_source = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - flags.n_iterations = DEFAULT_PASSES; - flags.size = -1; - - while ((c = getopt_long(argc, argv, "fn:s:uvxz", long_opts, ((void *)0))) != - -1) { - switch (c) { - case 'f': - flags.force = 1; - break; - - case 'n': - flags.n_iterations = - xdectoumax(optarg, 0, - - ((((0x7fffffffffffffffL * 2UL + 1UL)) < - ((18446744073709551615UL) / sizeof(int))) - ? ((0x7fffffffffffffffL * 2UL + 1UL)) - : ((18446744073709551615UL) / sizeof(int))) - - , - "", - - dcgettext(((void *)0), "invalid number of passes", 5), 0); - break; - - case RANDOM_SOURCE_OPTION: - if (random_source && !(strcmp(random_source, optarg) == 0)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "random sources specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "multiple random sources specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "multiple random sources specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - random_source = optarg; - break; - - case 'u': - if (optarg == ((void *)0)) - flags.remove_file = remove_wipesync; - else - flags.remove_file = ((remove_methods)[__xargmatch_internal( - "--remove", optarg, remove_args, (void const *)(remove_methods), - sizeof *(remove_methods), argmatch_die, 1)]); - break; - - case 's': - flags.size = xnumtoumax( - optarg, 0, 0, - ((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1))), - "cbBkKMGTPEZY0", - - dcgettext(((void *)0), "invalid file size", 5), 0); - break; - - case 'v': - flags.verbose = 1; - break; - - case 'x': - flags.exact = 1; - break; - - case 'z': - flags.zero_fill = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "shred", "GNU coreutils", Version, ("Colin Plumb"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - file = argv + optind; - n_files = argc - optind; - - if (n_files == 0) { - error(0, 0, dcgettext(((void *)0), "missing file operand", 5)); - usage(1); - } - - randint_source = randint_all_new(random_source, (18446744073709551615UL)); - if (!randint_source) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "random_source ? random_source : \"getrandom\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - random_source ? random_source - : "getrandom")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - random_source ? random_source - : "getrandom")), - ((0) ? (void)0 : __builtin_unreachable())))); - atexit(clear_random_data); - - for (i = 0; i < n_files; i++) { - char *qname = - xstrdup(quotearg_n_style_colon(0, shell_escape_quoting_style, file[i])); - if ((strcmp(file[i], "-") == 0)) { - ok &= wipefd(1, qname, randint_source, &flags); - } else { - - ok &= wipefile(file[i], qname, randint_source, &flags); - } - free(qname); - } - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/shuf.c b/tests/source/coreutils/shuf.c deleted file mode 100644 index 31aa09e..0000000 --- a/tests/source/coreutils/shuf.c +++ /dev/null @@ -1,7592 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct linebuffer { - idx_t size; - idx_t length; - char *buffer; -}; - -void initbuffer(struct linebuffer *linebuffer); - -struct linebuffer *readlinebuffer_delim(struct linebuffer *linebuffer, - FILE *stream, char delimiter); - -struct linebuffer *readlinebuffer(struct linebuffer *linebuffer, FILE *stream); - -void freebuffer(struct linebuffer *); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct randread_source; - -int randread_free(struct randread_source *) __attribute__((__nonnull__)); -struct randread_source *randread_new(char const *, size_t) - __attribute__((__malloc__)) __attribute__((__malloc__(randread_free, 1))); -void randread(struct randread_source *, void *, size_t) - __attribute__((__nonnull__)); -void randread_set_handler(struct randread_source *, void (*)(void const *)) - __attribute__((__nonnull__)); -void randread_set_handler_arg(struct randread_source *, void const *) - __attribute__((__nonnull__(1))); - -typedef uintmax_t randint; - -struct randint_source; - -void randint_free(struct randint_source *) __attribute__((__nonnull__)); -int randint_all_free(struct randint_source *) __attribute__((__nonnull__)); -struct randint_source *randint_new(struct randread_source *) - __attribute__((__malloc__)) __attribute__((__malloc__(randint_free, 1))) - __attribute__((__nonnull__)) __attribute__((__returns_nonnull__)); -struct randint_source *randint_all_new(char const *, size_t) - __attribute__((__malloc__)) - __attribute__((__malloc__(randint_all_free, 1))); -struct randread_source *randint_get_source(struct randint_source const *) - __attribute__((__nonnull__)) __attribute__((__pure__)); -randint randint_genmax(struct randint_source *, randint genmax) - __attribute__((__nonnull__)); - -static inline randint randint_choose(struct randint_source *s, - randint choices) { - return randint_genmax(s, choices - 1); -} - -size_t randperm_bound(size_t, size_t) __attribute__((__const__)); -size_t *randperm_new(struct randint_source *, size_t, size_t) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); - -extern char *fread_file(FILE *stream, int flags, size_t *length) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); - -extern char *read_file(const char *filename, int flags, size_t *length) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -enum { RESERVOIR_LINES_INCREMENT = 1024 }; - -enum { RESERVOIR_MIN_INPUT = 8192 * 1024 }; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [FILE]\n or: %s -e [OPTION]... " - "[ARG]...\n or: %s -i LO-HI [OPTION]...\n", - 5) - - , - program_name, program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Write a random permutation of the input lines to " - "standard output.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -e, --echo treat each ARG as an input " - "line\n -i, --input-range=LO-HI treat each number LO " - "through HI as an input line\n -n, --head-count=COUNT " - "output at most COUNT lines\n -o, --output=FILE " - "write result to FILE instead of standard output\n " - "--random-source=FILE get random bytes from FILE\n -r, " - "--repeat output lines can be repeated\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero-terminated line delimiter is NUL, not newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("shuf"); - } - - exit(status); -} - -enum { RANDOM_SOURCE_OPTION = 0x7f + 1 }; - -static struct option const long_opts[] = { - {"echo", 0, ((void *)0), 'e'}, - {"input-range", 1, ((void *)0), 'i'}, - {"head-count", 1, ((void *)0), 'n'}, - {"output", 1, ((void *)0), 'o'}, - {"random-source", 1, ((void *)0), RANDOM_SOURCE_OPTION}, - {"repeat", 0, ((void *)0), 'r'}, - {"zero-terminated", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {0, 0, 0, 0}, -}; - -static void input_from_argv(char **operand, int n_operands, char eolbyte) { - char *p; - size_t size = n_operands; - int i; - - for (i = 0; i < n_operands; i++) - size += strlen(operand[i]); - p = xmalloc(size); - - for (i = 0; i < n_operands; i++) { - char *p1 = stpcpy(p, operand[i]); - operand[i] = p; - p = p1; - *p++ = eolbyte; - } - - operand[n_operands] = p; -} - -static char *next_line(char *line, char eolbyte) { - char *p = rawmemchr(line, eolbyte); - return p + 1; -} - -static off_t input_size(void) { - off_t file_size; - - struct stat stat_buf; - if (fstat(0, &stat_buf) != 0) - return ( - (off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + 1))); - if (usable_st_size(&stat_buf)) - file_size = stat_buf.st_size; - else - return ( - (off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + 1))); - - off_t input_offset = lseek(0, 0, 1); - if (input_offset < 0) - return ( - (off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + 1))); - - file_size -= input_offset; - - return file_size; -} - -static size_t read_input_reservoir_sampling(FILE *in, char eolbyte, size_t k, - struct randint_source *s, - struct linebuffer **out_rsrv) { - randint n_lines = 0; - size_t n_alloc_lines = - (((k) < (RESERVOIR_LINES_INCREMENT)) ? (k) : (RESERVOIR_LINES_INCREMENT)); - struct linebuffer *line = ((void *)0); - struct linebuffer *rsrv; - - rsrv = xcalloc(n_alloc_lines, sizeof(struct linebuffer)); - - while (n_lines < k && (line = readlinebuffer_delim(&rsrv[n_lines], in, - eolbyte)) != ((void *)0)) { - n_lines++; - - if (n_lines >= n_alloc_lines) { - n_alloc_lines += RESERVOIR_LINES_INCREMENT; - rsrv = xnrealloc(rsrv, n_alloc_lines, sizeof(struct linebuffer)); - memset(&rsrv[n_lines], 0, - RESERVOIR_LINES_INCREMENT * sizeof(struct linebuffer)); - } - } - - if (line != ((void *)0)) { - struct linebuffer dummy; - initbuffer(&dummy); - do { - randint j = randint_choose(s, n_lines + 1); - line = (j < k) ? (&rsrv[j]) : (&dummy); - } while (readlinebuffer_delim(line, in, eolbyte) != ((void *)0) && - n_lines++); - - if (!n_lines) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 75, dcgettext (((void *)0), \"too many " - "input lines\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 75, dcgettext(((void *)0), "too many input lines", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 75, dcgettext(((void *)0), "too many input lines", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - freebuffer(&dummy); - } - - if (ferror_unlocked(in)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - *out_rsrv = rsrv; - return (((k) < (n_lines)) ? (k) : (n_lines)); -} - -static int write_permuted_output_reservoir(size_t n_lines, - struct linebuffer *lines, - size_t const *permutation) { - for (size_t i = 0; i < n_lines; i++) { - const struct linebuffer *p = &lines[permutation[i]]; - if (fwrite_unlocked(p->buffer, sizeof(char), p->length, stdout) != - p->length) - return -1; - } - - return 0; -} - -static size_t read_input(FILE *in, char eolbyte, char ***pline) { - char *p; - char *buf = ((void *)0); - size_t used; - char *lim; - char **line; - size_t n_lines; - if (!(buf = fread_file(in, 0, &used))) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (used && buf[used - 1] != eolbyte) - buf[used++] = eolbyte; - - lim = buf + used; - - n_lines = 0; - for (p = buf; p < lim; p = next_line(p, eolbyte)) - n_lines++; - - *pline = line = xnmalloc(n_lines + 1, sizeof *line); - - line[0] = p = buf; - for (size_t i = 1; i <= n_lines; i++) - line[i] = p = next_line(p, eolbyte); - - return n_lines; -} - -static int write_permuted_lines(size_t n_lines, char *const *line, - size_t const *permutation) { - for (size_t i = 0; i < n_lines; i++) { - char *const *p = line + permutation[i]; - size_t len = p[1] - p[0]; - if (fwrite_unlocked(p[0], sizeof *p[0], len, stdout) != len) - return -1; - } - - return 0; -} - -static int write_permuted_numbers(size_t n_lines, size_t lo_input, - size_t const *permutation, char eolbyte) { - for (size_t i = 0; i < n_lines; i++) { - unsigned long int n = lo_input + permutation[i]; - if (printf("%lu%c", n, eolbyte) < 0) - return -1; - } - - return 0; -} - -static int write_random_numbers(struct randint_source *s, size_t count, - size_t lo_input, size_t hi_input, - char eolbyte) { - const randint range = hi_input - lo_input + 1; - - for (size_t i = 0; i < count; i++) { - unsigned long int j = lo_input + randint_choose(s, range); - if (printf("%lu%c", j, eolbyte) < 0) - return -1; - } - - return 0; -} - -static int write_random_lines(struct randint_source *s, size_t count, - char *const *lines, size_t n_lines) { - for (size_t i = 0; i < count; i++) { - const randint j = randint_choose(s, n_lines); - char *const *p = lines + j; - size_t len = p[1] - p[0]; - if (fwrite_unlocked(p[0], sizeof *p[0], len, stdout) != len) - return -1; - } - - return 0; -} - -int main(int argc, char **argv) { - - _Bool echo = 0; - - _Bool input_range = 0; - size_t lo_input = (18446744073709551615UL); - size_t hi_input = 0; - size_t head_lines = (18446744073709551615UL); - char const *outfile = ((void *)0); - char *random_source = ((void *)0); - char eolbyte = '\n'; - char **input_lines = ((void *)0); - - _Bool use_reservoir_sampling = 0; - - _Bool repeat = 0; - - int optc; - int n_operands; - char **operand; - size_t n_lines; - char **line = ((void *)0); - struct linebuffer *reservoir = ((void *)0); - struct randint_source *randint_source; - size_t *permutation = ((void *)0); - int i; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "ei:n:o:rz", long_opts, - ((void *)0))) != -1) - switch (optc) { - case 'e': - echo = 1; - break; - - case 'i': { - char *p = strchr(optarg, '-'); - char const *hi_optarg = optarg; - - _Bool invalid = !p; - - if (input_range) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "-i options specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "multiple -i options specified", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "multiple -i options specified", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - input_range = 1; - - if (p) { - *p = '\0'; - lo_input = - xdectoumax(optarg, 0, (18446744073709551615UL), "", - - dcgettext(((void *)0), "invalid input range", 5), 0); - *p = '-'; - hi_optarg = p + 1; - } - - hi_input = - xdectoumax(hi_optarg, 0, (18446744073709551615UL), "", - - dcgettext(((void *)0), "invalid input range", 5), 0); - - n_lines = hi_input - lo_input + 1; - invalid |= ((lo_input <= hi_input) == (n_lines == 0)); - if (invalid) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s: %s\", " - "dcgettext (((void *)0), \"invalid input range\", " - "5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s: %s", - dcgettext(((void *)0), "invalid input range", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s: %s", - dcgettext(((void *)0), "invalid input range", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - } break; - - case 'n': { - uintmax_t argval; - strtol_error e = xstrtoumax(optarg, ((void *)0), 10, &argval, ""); - - if (e == LONGINT_OK) - head_lines = (((head_lines) < (argval)) ? (head_lines) : (argval)); - else if (e != LONGINT_OVERFLOW) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid line " - "count: %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid line count: %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid line count: %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - } break; - - case 'o': - if (outfile && !(strcmp(outfile, optarg) == 0)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "output files specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "multiple output files specified", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "multiple output files specified", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - outfile = optarg; - break; - - case RANDOM_SOURCE_OPTION: - if (random_source && !(strcmp(random_source, optarg) == 0)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple " - "random sources specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "multiple random sources specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "multiple random sources specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - random_source = optarg; - break; - - case 'r': - repeat = 1; - break; - - case 'z': - eolbyte = '\0'; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "shuf", "GNU coreutils", Version, ("Paul Eggert"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - n_operands = argc - optind; - operand = argv + optind; - - if (echo && input_range) { - error(0, 0, dcgettext(((void *)0), "cannot combine -e and -i options", 5)); - usage(1); - } - if (input_range ? 0 < n_operands : !echo && 1 < n_operands) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(operand[!input_range])); - usage(1); - } - - if (head_lines == 0) { - n_lines = 0; - line = ((void *)0); - } else if (echo) { - input_from_argv(operand, n_operands, eolbyte); - n_lines = n_operands; - line = operand; - } else if (input_range) { - n_lines = hi_input - lo_input + 1; - line = ((void *)0); - } else { - - if (n_operands == 1 && !((strcmp(operand[0], "-") == 0) || - freopen_safer(operand[0], "r", stdin))) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, operand[0])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - operand[0])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - operand[0])), - ((0) ? (void)0 : __builtin_unreachable())))); - - fadvise(stdin, FADVISE_SEQUENTIAL); - - if (repeat || head_lines == (18446744073709551615UL) - - || input_size() <= RESERVOIR_MIN_INPUT) { - n_lines = read_input(stdin, eolbyte, &input_lines); - line = input_lines; - } else { - use_reservoir_sampling = 1; - n_lines = (18446744073709551615UL); - } - } - - size_t ahead_lines = repeat || head_lines < n_lines ? head_lines : n_lines; - - randint_source = randint_all_new( - random_source, (use_reservoir_sampling || repeat - ? (18446744073709551615UL) - - : randperm_bound(ahead_lines, n_lines))); - if (!randint_source) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "random_source ? random_source : \"getrandom\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - random_source ? random_source - : "getrandom")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - random_source ? random_source - : "getrandom")), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (use_reservoir_sampling) { - - n_lines = read_input_reservoir_sampling(stdin, eolbyte, ahead_lines, - randint_source, &reservoir); - ahead_lines = n_lines; - } - - if (!(head_lines == 0 || echo || input_range || rpl_fclose(stdin) == 0)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (!repeat) - permutation = randperm_new(randint_source, ahead_lines, n_lines); - - if (outfile && !freopen_safer(outfile, "w", stdout)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, outfile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - outfile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - outfile)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (repeat) { - if (head_lines == 0) - i = 0; - else { - if (n_lines == 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"no lines " - "to repeat\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "no lines to repeat", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "no lines to repeat", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (input_range) - i = write_random_numbers(randint_source, ahead_lines, lo_input, - hi_input, eolbyte); - else - i = write_random_lines(randint_source, ahead_lines, line, n_lines); - } - } else { - if (use_reservoir_sampling) - i = write_permuted_output_reservoir(n_lines, reservoir, permutation); - else if (input_range) - i = write_permuted_numbers(ahead_lines, lo_input, permutation, eolbyte); - else - i = write_permuted_lines(ahead_lines, line, permutation); - } - - if (i != 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - exit(0); -} diff --git a/tests/source/coreutils/sleep.c b/tests/source/coreutils/sleep.c deleted file mode 100644 index 186ffa2..0000000 --- a/tests/source/coreutils/sleep.c +++ /dev/null @@ -1,6907 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -double cl_strtod(char const *, char **__restrict__) - __attribute__((__nonnull__(1))); -long double cl_strtold(char const *, char **__restrict__) - __attribute__((__nonnull__(1))); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -int xnanosleep(double); - -_Bool xstrtod(const char *str, const char **ptr, double *result, - double (*convert)(char const *, char **)); - -_Bool xstrtold(const char *str, const char **ptr, long double *result, - long double (*convert)(char const *, char **)); -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext( - ((void *)0), - "Usage: %s NUMBER[SUFFIX]...\n or: %s OPTION\nPause for NUMBER " - "seconds. SUFFIX may be 's' for seconds (the default),\n'm' for " - "minutes, 'h' for hours or 'd' for days. NUMBER need not be " - "an\ninteger. Given two or more arguments, pause for the amount " - "of time\nspecified by the sum of their values.\n\n", - 5) - - , - program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("sleep"); - } - exit(status); -} - -static _Bool - -apply_suffix(double *x, char suffix_char) { - int multiplier; - - switch (suffix_char) { - case 0: - case 's': - multiplier = 1; - break; - case 'm': - multiplier = 60; - break; - case 'h': - multiplier = 60 * 60; - break; - case 'd': - multiplier = 60 * 60 * 24; - break; - default: - return 0; - } - - *x *= multiplier; - - return 1; -} - -int main(int argc, char **argv) { - double seconds = 0.0; - - _Bool ok = 1; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - parse_gnu_standard_options_only(argc, argv, "sleep", "GNU coreutils", Version, - 1, usage, ("Jim Meyering"), ("Paul Eggert"), - (char const *)((void *)0)); - - if (argc == 1) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - for (int i = optind; i < argc; i++) { - double s; - char const *p; - if (!(xstrtod(argv[i], &p, &s, cl_strtod) || (*__errno_location()) == 34) - - || !(0 <= s) - - || (*p && *(p + 1)) - - || !apply_suffix(&s, *p)) { - error(0, 0, dcgettext(((void *)0), "invalid time interval %s", 5), - quote(argv[i])); - ok = 0; - } - - seconds += s; - } - - if (!ok) - usage(1); - - if (xnanosleep(seconds)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot read realtime clock\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot read realtime clock", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot read realtime clock", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return 0; -} diff --git a/tests/source/coreutils/sort.c b/tests/source/coreutils/sort.c deleted file mode 100644 index 457e552..0000000 --- a/tests/source/coreutils/sort.c +++ /dev/null @@ -1,12704 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef long unsigned int size_t; - -typedef __time_t time_t; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; - -typedef __pid_t pid_t; - -struct sched_param { - int sched_priority; -}; - -extern int clone(int (*__fn)(void *__arg), void *__child_stack, int __flags, - void *__arg, ...) __attribute__((__nothrow__, __leaf__)); - -extern int unshare(int __flags) __attribute__((__nothrow__, __leaf__)); - -extern int sched_getcpu(void) __attribute__((__nothrow__, __leaf__)); - -extern int getcpu(unsigned int *, unsigned int *) - __attribute__((__nothrow__, __leaf__)); - -extern int setns(int __fd, int __nstype) __attribute__((__nothrow__, __leaf__)); - -typedef unsigned long int __cpu_mask; - -typedef struct { - __cpu_mask __bits[1024 / (8 * sizeof(__cpu_mask))]; -} cpu_set_t; - -extern int __sched_cpucount(size_t __setsize, const cpu_set_t *__setp) - __attribute__((__nothrow__, __leaf__)); -extern cpu_set_t *__sched_cpualloc(size_t __count) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern void __sched_cpufree(cpu_set_t *__set) - __attribute__((__nothrow__, __leaf__)); - -extern int sched_setparam(__pid_t __pid, const struct sched_param *__param) - __attribute__((__nothrow__, __leaf__)); - -extern int sched_getparam(__pid_t __pid, struct sched_param *__param) - __attribute__((__nothrow__, __leaf__)); - -extern int sched_setscheduler(__pid_t __pid, int __policy, - const struct sched_param *__param) - __attribute__((__nothrow__, __leaf__)); - -extern int sched_getscheduler(__pid_t __pid) - __attribute__((__nothrow__, __leaf__)); - -extern int sched_yield(void) __attribute__((__nothrow__, __leaf__)); - -extern int sched_get_priority_max(int __algorithm) - __attribute__((__nothrow__, __leaf__)); - -extern int sched_get_priority_min(int __algorithm) - __attribute__((__nothrow__, __leaf__)); - -extern int sched_rr_get_interval(__pid_t __pid, struct timespec *__t) - __attribute__((__nothrow__, __leaf__)); -extern int sched_setaffinity(__pid_t __pid, size_t __cpusetsize, - const cpu_set_t *__cpuset) - __attribute__((__nothrow__, __leaf__)); - -extern int sched_getaffinity(__pid_t __pid, size_t __cpusetsize, - cpu_set_t *__cpuset) - __attribute__((__nothrow__, __leaf__)); - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef long int __jmp_buf[8]; - -struct __jmp_buf_tag { - - __jmp_buf __jmpbuf; - int __mask_was_saved; - __sigset_t __saved_mask; -}; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -enum { - PTHREAD_CREATE_JOINABLE, - - PTHREAD_CREATE_DETACHED - -}; - -enum { - PTHREAD_MUTEX_TIMED_NP, - PTHREAD_MUTEX_RECURSIVE_NP, - PTHREAD_MUTEX_ERRORCHECK_NP, - PTHREAD_MUTEX_ADAPTIVE_NP - - , - PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, - PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, - PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, - PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL - - , - PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP - -}; - -enum { - PTHREAD_MUTEX_STALLED, - PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, - PTHREAD_MUTEX_ROBUST, - PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST -}; - -enum { PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT }; -enum { - PTHREAD_RWLOCK_PREFER_READER_NP, - PTHREAD_RWLOCK_PREFER_WRITER_NP, - PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, - PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP -}; -enum { - PTHREAD_INHERIT_SCHED, - - PTHREAD_EXPLICIT_SCHED - -}; - -enum { - PTHREAD_SCOPE_SYSTEM, - - PTHREAD_SCOPE_PROCESS - -}; - -enum { - PTHREAD_PROCESS_PRIVATE, - - PTHREAD_PROCESS_SHARED - -}; -struct _pthread_cleanup_buffer { - void (*__routine)(void *); - void *__arg; - int __canceltype; - struct _pthread_cleanup_buffer *__prev; -}; - -enum { - PTHREAD_CANCEL_ENABLE, - - PTHREAD_CANCEL_DISABLE - -}; -enum { - PTHREAD_CANCEL_DEFERRED, - - PTHREAD_CANCEL_ASYNCHRONOUS - -}; - -extern int pthread_create(pthread_t *__restrict __newthread, - const pthread_attr_t *__restrict __attr, - void *(*__start_routine)(void *), - void *__restrict __arg) __attribute__((__nothrow__)) -__attribute__((__nonnull__(1, 3))); - -extern void pthread_exit(void *__retval) __attribute__((__noreturn__)); - -extern int pthread_join(pthread_t __th, void **__thread_return); - -extern int pthread_tryjoin_np(pthread_t __th, void **__thread_return) - __attribute__((__nothrow__, __leaf__)); -extern int pthread_timedjoin_np(pthread_t __th, void **__thread_return, - const struct timespec *__abstime); -extern int pthread_clockjoin_np(pthread_t __th, void **__thread_return, - clockid_t __clockid, - const struct timespec *__abstime); -extern int pthread_detach(pthread_t __th) - __attribute__((__nothrow__, __leaf__)); - -extern pthread_t pthread_self(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int pthread_equal(pthread_t __thread1, pthread_t __thread2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int pthread_attr_init(pthread_attr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_attr_destroy(pthread_attr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_attr_getdetachstate(const pthread_attr_t *__attr, - int *__detachstate) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_attr_setdetachstate(pthread_attr_t *__attr, - int __detachstate) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_attr_getguardsize(const pthread_attr_t *__attr, - size_t *__guardsize) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_attr_setguardsize(pthread_attr_t *__attr, size_t __guardsize) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_attr_getschedparam(const pthread_attr_t *__restrict __attr, - struct sched_param *__restrict __param) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int -pthread_attr_setschedparam(pthread_attr_t *__restrict __attr, - const struct sched_param *__restrict __param) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_attr_getschedpolicy(const pthread_attr_t *__restrict __attr, - int *__restrict __policy) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_attr_setschedpolicy(pthread_attr_t *__attr, int __policy) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_attr_getinheritsched(const pthread_attr_t *__restrict __attr, - int *__restrict __inherit) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_attr_setinheritsched(pthread_attr_t *__attr, int __inherit) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_attr_getscope(const pthread_attr_t *__restrict __attr, - int *__restrict __scope) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_attr_setscope(pthread_attr_t *__attr, int __scope) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_attr_getstackaddr(const pthread_attr_t *__restrict __attr, - void **__restrict __stackaddr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__deprecated__)); - -extern int pthread_attr_setstackaddr(pthread_attr_t *__attr, void *__stackaddr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__deprecated__)); - -extern int pthread_attr_getstacksize(const pthread_attr_t *__restrict __attr, - size_t *__restrict __stacksize) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_attr_setstacksize(pthread_attr_t *__attr, size_t __stacksize) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_attr_getstack(const pthread_attr_t *__restrict __attr, - void **__restrict __stackaddr, - size_t *__restrict __stacksize) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int pthread_attr_setstack(pthread_attr_t *__attr, void *__stackaddr, - size_t __stacksize) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_attr_setaffinity_np(pthread_attr_t *__attr, - size_t __cpusetsize, - const cpu_set_t *__cpuset) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern int pthread_attr_getaffinity_np(const pthread_attr_t *__attr, - size_t __cpusetsize, cpu_set_t *__cpuset) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern int pthread_getattr_default_np(pthread_attr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_attr_setsigmask_np(pthread_attr_t *__attr, - const __sigset_t *sigmask); - -extern int pthread_attr_getsigmask_np(const pthread_attr_t *__attr, - __sigset_t *sigmask); - -extern int pthread_setattr_default_np(const pthread_attr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_getattr_np(pthread_t __th, pthread_attr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int pthread_setschedparam(pthread_t __target_thread, int __policy, - const struct sched_param *__param) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))); - -extern int pthread_getschedparam(pthread_t __target_thread, - int *__restrict __policy, - struct sched_param *__restrict __param) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int pthread_setschedprio(pthread_t __target_thread, int __prio) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_getname_np(pthread_t __target_thread, char *__buf, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int pthread_setname_np(pthread_t __target_thread, const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int pthread_getconcurrency(void) __attribute__((__nothrow__, __leaf__)); - -extern int pthread_setconcurrency(int __level) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_yield(void) __attribute__((__nothrow__, __leaf__)); - -extern int pthread_yield(void) __asm__("" - "sched_yield") - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__( - "pthread_yield is deprecated, use sched_yield instead"))); - -extern int pthread_setaffinity_np(pthread_t __th, size_t __cpusetsize, - const cpu_set_t *__cpuset) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))); - -extern int pthread_getaffinity_np(pthread_t __th, size_t __cpusetsize, - cpu_set_t *__cpuset) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))); -extern int pthread_once(pthread_once_t *__once_control, - void (*__init_routine)(void)) - __attribute__((__nonnull__(1, 2))); -extern int pthread_setcancelstate(int __state, int *__oldstate); - -extern int pthread_setcanceltype(int __type, int *__oldtype); - -extern int pthread_cancel(pthread_t __th); - -extern void pthread_testcancel(void); - -struct __cancel_jmp_buf_tag { - __jmp_buf __cancel_jmp_buf; - int __mask_was_saved; -}; - -typedef struct { - struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; - void *__pad[4]; -} __pthread_unwind_buf_t __attribute__((__aligned__)); -struct __pthread_cleanup_frame { - void (*__cancel_routine)(void *); - void *__cancel_arg; - int __do_it; - int __cancel_type; -}; -extern void __pthread_register_cancel(__pthread_unwind_buf_t *__buf); -extern void __pthread_unregister_cancel(__pthread_unwind_buf_t *__buf); -extern void __pthread_register_cancel_defer(__pthread_unwind_buf_t *__buf); -extern void __pthread_unregister_cancel_restore(__pthread_unwind_buf_t *__buf); - -extern void __pthread_unwind_next(__pthread_unwind_buf_t *__buf) - __attribute__((__noreturn__)) - - __attribute__((__weak__)) - - ; -extern int __sigsetjmp_cancel(struct __cancel_jmp_buf_tag __env[1], - int __savemask) __asm__("" - "__sigsetjmp") - __attribute__((__nothrow__)) - - __attribute__((__returns_twice__)); -extern int pthread_mutex_init(pthread_mutex_t *__mutex, - const pthread_mutexattr_t *__mutexattr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_mutex_destroy(pthread_mutex_t *__mutex) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_mutex_trylock(pthread_mutex_t *__mutex) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_mutex_lock(pthread_mutex_t *__mutex) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_mutex_timedlock(pthread_mutex_t *__restrict __mutex, - const struct timespec *__restrict __abstime) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1, 2))); -extern int pthread_mutex_clocklock(pthread_mutex_t *__restrict __mutex, - clockid_t __clockid, - const struct timespec *__restrict __abstime) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1, 3))); -extern int pthread_mutex_unlock(pthread_mutex_t *__mutex) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int -pthread_mutex_getprioceiling(const pthread_mutex_t *__restrict __mutex, - int *__restrict __prioceiling) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_mutex_setprioceiling(pthread_mutex_t *__restrict __mutex, - int __prioceiling, - int *__restrict __old_ceiling) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern int pthread_mutex_consistent(pthread_mutex_t *__mutex) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_mutex_consistent_np(pthread_mutex_t *) __asm__( - "" - "pthread_mutex_consistent") __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) -__attribute__((__deprecated__("pthread_mutex_consistent_np is deprecated, use " - "pthread_mutex_consistent"))); -extern int pthread_mutexattr_init(pthread_mutexattr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_mutexattr_destroy(pthread_mutexattr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int -pthread_mutexattr_getpshared(const pthread_mutexattr_t *__restrict __attr, - int *__restrict __pshared) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_mutexattr_setpshared(pthread_mutexattr_t *__attr, - int __pshared) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int -pthread_mutexattr_gettype(const pthread_mutexattr_t *__restrict __attr, - int *__restrict __kind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_mutexattr_settype(pthread_mutexattr_t *__attr, int __kind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int -pthread_mutexattr_getprotocol(const pthread_mutexattr_t *__restrict __attr, - int *__restrict __protocol) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_mutexattr_setprotocol(pthread_mutexattr_t *__attr, - int __protocol) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int -pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *__restrict __attr, - int *__restrict __prioceiling) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *__attr, - int __prioceiling) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_mutexattr_getrobust(const pthread_mutexattr_t *__attr, - int *__robustness) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_mutexattr_getrobust_np(pthread_mutexattr_t *, int *) __asm__( - "" - "pthread_mutexattr_getrobust") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__nonnull__(1))) -__attribute__((__deprecated__("pthread_mutexattr_getrobust_np is deprecated, " - "use pthread_mutexattr_getrobust"))); - -extern int pthread_mutexattr_setrobust(pthread_mutexattr_t *__attr, - int __robustness) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_mutexattr_setrobust_np(pthread_mutexattr_t *, int) __asm__( - "" - "pthread_mutexattr_setrobust") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__nonnull__(1))) -__attribute__((__deprecated__("pthread_mutexattr_setrobust_np is deprecated, " - "use pthread_mutexattr_setrobust"))); -extern int pthread_rwlock_init(pthread_rwlock_t *__restrict __rwlock, - const pthread_rwlockattr_t *__restrict __attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_rwlock_destroy(pthread_rwlock_t *__rwlock) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_rwlock_rdlock(pthread_rwlock_t *__rwlock) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_rwlock_tryrdlock(pthread_rwlock_t *__rwlock) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int -pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict __rwlock, - const struct timespec *__restrict __abstime) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1, 2))); -extern int -pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict __rwlock, - clockid_t __clockid, - const struct timespec *__restrict __abstime) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1, 3))); -extern int pthread_rwlock_wrlock(pthread_rwlock_t *__rwlock) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_rwlock_trywrlock(pthread_rwlock_t *__rwlock) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int -pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict __rwlock, - const struct timespec *__restrict __abstime) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1, 2))); -extern int -pthread_rwlock_clockwrlock(pthread_rwlock_t *__restrict __rwlock, - clockid_t __clockid, - const struct timespec *__restrict __abstime) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1, 3))); -extern int pthread_rwlock_unlock(pthread_rwlock_t *__rwlock) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_rwlockattr_init(pthread_rwlockattr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_rwlockattr_destroy(pthread_rwlockattr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int -pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *__restrict __attr, - int *__restrict __pshared) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *__attr, - int __pshared) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int -pthread_rwlockattr_getkind_np(const pthread_rwlockattr_t *__restrict __attr, - int *__restrict __pref) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_rwlockattr_setkind_np(pthread_rwlockattr_t *__attr, - int __pref) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_cond_init(pthread_cond_t *__restrict __cond, - const pthread_condattr_t *__restrict __cond_attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_cond_destroy(pthread_cond_t *__cond) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_cond_signal(pthread_cond_t *__cond) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_cond_broadcast(pthread_cond_t *__cond) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_cond_wait(pthread_cond_t *__restrict __cond, - pthread_mutex_t *__restrict __mutex) - __attribute__((__nonnull__(1, 2))); -extern int pthread_cond_timedwait(pthread_cond_t *__restrict __cond, - pthread_mutex_t *__restrict __mutex, - const struct timespec *__restrict __abstime) - __attribute__((__nonnull__(1, 2, 3))); -extern int pthread_cond_clockwait(pthread_cond_t *__restrict __cond, - pthread_mutex_t *__restrict __mutex, - __clockid_t __clock_id, - const struct timespec *__restrict __abstime) - __attribute__((__nonnull__(1, 2, 4))); -extern int pthread_condattr_init(pthread_condattr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_condattr_destroy(pthread_condattr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int -pthread_condattr_getpshared(const pthread_condattr_t *__restrict __attr, - int *__restrict __pshared) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_condattr_setpshared(pthread_condattr_t *__attr, - int __pshared) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int -pthread_condattr_getclock(const pthread_condattr_t *__restrict __attr, - __clockid_t *__restrict __clock_id) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_condattr_setclock(pthread_condattr_t *__attr, - __clockid_t __clock_id) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int pthread_spin_init(pthread_spinlock_t *__lock, int __pshared) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_spin_destroy(pthread_spinlock_t *__lock) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_spin_lock(pthread_spinlock_t *__lock) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_spin_trylock(pthread_spinlock_t *__lock) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_spin_unlock(pthread_spinlock_t *__lock) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_barrier_init(pthread_barrier_t *__restrict __barrier, - const pthread_barrierattr_t *__restrict __attr, - unsigned int __count) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_barrier_destroy(pthread_barrier_t *__barrier) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_barrier_wait(pthread_barrier_t *__barrier) - __attribute__((__nothrow__)) __attribute__((__nonnull__(1))); - -extern int pthread_barrierattr_init(pthread_barrierattr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_barrierattr_destroy(pthread_barrierattr_t *__attr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int -pthread_barrierattr_getpshared(const pthread_barrierattr_t *__restrict __attr, - int *__restrict __pshared) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int pthread_barrierattr_setpshared(pthread_barrierattr_t *__attr, - int __pshared) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int pthread_key_create(pthread_key_t *__key, - void (*__destr_function)(void *)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int pthread_key_delete(pthread_key_t __key) - __attribute__((__nothrow__, __leaf__)); - -extern void *pthread_getspecific(pthread_key_t __key) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_setspecific(pthread_key_t __key, const void *__pointer) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__none__, 2))); - -extern int pthread_getcpuclockid(pthread_t __thread_id, __clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int pthread_atfork(void (*__prepare)(void), void (*__parent)(void), - void (*__child)(void)) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); - -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum __rlimit_resource { - - RLIMIT_CPU = 0, - - RLIMIT_FSIZE = 1, - - RLIMIT_DATA = 2, - - RLIMIT_STACK = 3, - - RLIMIT_CORE = 4, - - __RLIMIT_RSS = 5, - - RLIMIT_NOFILE = 7, - __RLIMIT_OFILE = RLIMIT_NOFILE, - - RLIMIT_AS = 9, - - __RLIMIT_NPROC = 6, - - __RLIMIT_MEMLOCK = 8, - - __RLIMIT_LOCKS = 10, - - __RLIMIT_SIGPENDING = 11, - - __RLIMIT_MSGQUEUE = 12, - - __RLIMIT_NICE = 13, - - __RLIMIT_RTPRIO = 14, - - __RLIMIT_RTTIME = 15, - - __RLIMIT_NLIMITS = 16, - __RLIM_NLIMITS = __RLIMIT_NLIMITS - -}; -typedef __rlim_t rlim_t; - -typedef __rlim64_t rlim64_t; - -struct rlimit { - - rlim_t rlim_cur; - - rlim_t rlim_max; -}; - -struct rlimit64 { - - rlim64_t rlim_cur; - - rlim64_t rlim_max; -}; - -enum __rusage_who { - - RUSAGE_SELF = 0, - - RUSAGE_CHILDREN = -1 - - , - - RUSAGE_THREAD = 1 - -}; - -struct rusage { - - struct timeval ru_utime; - - struct timeval ru_stime; - - __extension__ union { - long int ru_maxrss; - __syscall_slong_t __ru_maxrss_word; - }; - - __extension__ union { - long int ru_ixrss; - __syscall_slong_t __ru_ixrss_word; - }; - - __extension__ union { - long int ru_idrss; - __syscall_slong_t __ru_idrss_word; - }; - - __extension__ union { - long int ru_isrss; - __syscall_slong_t __ru_isrss_word; - }; - - __extension__ union { - long int ru_minflt; - __syscall_slong_t __ru_minflt_word; - }; - - __extension__ union { - long int ru_majflt; - __syscall_slong_t __ru_majflt_word; - }; - - __extension__ union { - long int ru_nswap; - __syscall_slong_t __ru_nswap_word; - }; - - __extension__ union { - long int ru_inblock; - __syscall_slong_t __ru_inblock_word; - }; - - __extension__ union { - long int ru_oublock; - __syscall_slong_t __ru_oublock_word; - }; - - __extension__ union { - long int ru_msgsnd; - __syscall_slong_t __ru_msgsnd_word; - }; - - __extension__ union { - long int ru_msgrcv; - __syscall_slong_t __ru_msgrcv_word; - }; - - __extension__ union { - long int ru_nsignals; - __syscall_slong_t __ru_nsignals_word; - }; - - __extension__ union { - long int ru_nvcsw; - __syscall_slong_t __ru_nvcsw_word; - }; - - __extension__ union { - long int ru_nivcsw; - __syscall_slong_t __ru_nivcsw_word; - }; -}; - -enum __priority_which { - PRIO_PROCESS = 0, - - PRIO_PGRP = 1, - - PRIO_USER = 2 - -}; - -extern int prlimit(__pid_t __pid, enum __rlimit_resource __resource, - const struct rlimit *__new_limit, struct rlimit *__old_limit) - __attribute__((__nothrow__, __leaf__)); -extern int prlimit64(__pid_t __pid, enum __rlimit_resource __resource, - const struct rlimit64 *__new_limit, - struct rlimit64 *__old_limit) - __attribute__((__nothrow__, __leaf__)); - -typedef enum __rlimit_resource __rlimit_resource_t; -typedef enum __rusage_who __rusage_who_t; -typedef enum __priority_which __priority_which_t; -extern int getrlimit(__rlimit_resource_t __resource, struct rlimit *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int getrlimit64(__rlimit_resource_t __resource, - struct rlimit64 *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int setrlimit(__rlimit_resource_t __resource, - const struct rlimit *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int setrlimit64(__rlimit_resource_t __resource, - const struct rlimit64 *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int getrusage(__rusage_who_t __who, struct rusage *__usage) - __attribute__((__nothrow__, __leaf__)); -extern int getpriority(__priority_which_t __which, id_t __who) - __attribute__((__nothrow__, __leaf__)); - -extern int setpriority(__priority_which_t __which, id_t __who, int __prio) - __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -typedef enum { P_ALL, P_PID, P_PGID } idtype_t; -extern __pid_t wait(int *__stat_loc); -extern __pid_t waitpid(__pid_t __pid, int *__stat_loc, int __options); -extern int waitid(idtype_t __idtype, __id_t __id, siginfo_t *__infop, - int __options); - -struct rusage; - -extern __pid_t wait3(int *__stat_loc, int __options, struct rusage *__usage) - __attribute__((__nothrow__)); -extern __pid_t wait4(__pid_t __pid, int *__stat_loc, int __options, - struct rusage *__usage) __attribute__((__nothrow__)); - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); -int filevercmp(char const *a, char const *b) __attribute__((__pure__)); - -int filenvercmp(char const *a, ptrdiff_t alen, char const *b, ptrdiff_t blen) - __attribute__((__pure__)); -extern _Bool hard_locale(int category); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); - -struct heap; - -void heap_free(struct heap *) __attribute__((__nonnull__)); - -struct heap *heap_alloc(int (*)(void const *, void const *), size_t) - __attribute__((__malloc__)) __attribute__((__malloc__(heap_free, 1))) - __attribute__((__returns_nonnull__)); - -int heap_insert(struct heap *heap, void *item) __attribute__((__nonnull__)); -void *heap_remove_top(struct heap *heap) __attribute__((__nonnull__)); - -struct md5_ctx { - uint32_t A; - uint32_t B; - uint32_t C; - uint32_t D; - - uint32_t total[2]; - uint32_t buflen; - uint32_t buffer[32]; -}; -extern void md5_init_ctx(struct md5_ctx *ctx) - __attribute__((__nothrow__, __leaf__)); - -extern void md5_process_block(const void *buffer, size_t len, - struct md5_ctx *ctx) - __attribute__((__nothrow__, __leaf__)); - -extern void md5_process_bytes(const void *buffer, size_t len, - struct md5_ctx *ctx) - __attribute__((__nothrow__, __leaf__)); - -extern void *md5_finish_ctx(struct md5_ctx *ctx, void *__restrict__ resbuf) - - __attribute__((__nothrow__, __leaf__)); - -extern void *md5_read_ctx(const struct md5_ctx *ctx, void *__restrict__ resbuf) - - __attribute__((__nothrow__, __leaf__)); - -extern void *md5_buffer(const char *buffer, size_t len, - void *__restrict__ resblock) - __attribute__((__nothrow__, __leaf__)); -extern int md5_stream(FILE *stream, void *resblock) - __attribute__((__nothrow__, __leaf__)); -extern int gnu_mbswidth(const char *string, int flags); - -extern int mbsnwidth(const char *buf, size_t nbytes, int flags); -enum nproc_query { - NPROC_ALL, - NPROC_CURRENT, - NPROC_CURRENT_OVERRIDABLE - -}; - -extern unsigned long int num_processors(enum nproc_query query); -double physmem_total(void); -double physmem_available(void); -int posix2_version(void); - -struct randread_source; - -int randread_free(struct randread_source *) __attribute__((__nonnull__)); -struct randread_source *randread_new(char const *, size_t) - __attribute__((__malloc__)) __attribute__((__malloc__(randread_free, 1))); -void randread(struct randread_source *, void *, size_t) - __attribute__((__nonnull__)); -void randread_set_handler(struct randread_source *, void (*)(void const *)) - __attribute__((__nonnull__)); -void randread_set_handler_arg(struct randread_source *, void const *) - __attribute__((__nonnull__(1))); - -struct _obstack_chunk { - char *limit; - struct _obstack_chunk *prev; - char contents[]; -}; - -struct obstack { - size_t chunk_size; - struct _obstack_chunk *chunk; - char *object_base; - char *next_free; - char *chunk_limit; - union { - size_t i; - void *p; - } temp; - size_t alignment_mask; - - union { - void *(*plain)(size_t); - void *(*extra)(void *, size_t); - } chunkfun; - union { - void (*plain)(void *); - void (*extra)(void *, void *); - } freefun; - - void *extra_arg; - unsigned use_extra_arg : 1; - unsigned maybe_empty_object : 1; - - unsigned alloc_failed : 1; -}; - -extern void _obstack_newchunk(struct obstack *, size_t); -extern void _obstack_free(struct obstack *, void *); -extern int _obstack_begin(struct obstack *, size_t, size_t, void *(*)(size_t), - void (*)(void *)); -extern int _obstack_begin_1(struct obstack *, size_t, size_t, - void *(*)(void *, size_t), void (*)(void *, void *), - void *); -extern size_t _obstack_memory_used(struct obstack *) - - __attribute__((__pure__)); - -extern __attribute__((__noreturn__)) void (*obstack_alloc_failed_handler)(void); - -extern int obstack_exit_failure; - -struct Tokens { - size_t n_tok; - char **tok; - size_t *tok_len; - struct obstack o_data; - struct obstack o_tok; - struct obstack o_tok_len; -}; - -void readtokens0_init(struct Tokens *t); -void readtokens0_free(struct Tokens *t); - -_Bool readtokens0(FILE *in, struct Tokens *t); - -int mkstemp_safer(char *); - -int mkostemp_safer(char *, int); -int strintcmp(char const *, char const *) __attribute__((__nonnull__)) -__attribute__((__pure__)); -int strnumcmp(char const *, char const *, int, int) __attribute__((__nonnull__)) -__attribute__((__pure__)); - -int xmemcoll(char *__restrict__, size_t, char *__restrict__, size_t); -int xmemcoll0(char const *, size_t, char const *, size_t); -int xnanosleep(double); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -_Noreturn void xstrtol_fatal(enum strtol_error, int, char, - struct option const *, char const *); - -typedef void *nl_catd; - -typedef int nl_item; - -extern nl_catd catopen(const char *__cat_name, int __flag) - __attribute__((__nonnull__(1))); - -extern char *catgets(nl_catd __catalog, int __set, int __number, - const char *__string) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int catclose(nl_catd __catalog) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -enum { - - ABDAY_1 = (((2) << 16) | (0)), - - ABDAY_2, - - ABDAY_3, - - ABDAY_4, - - ABDAY_5, - - ABDAY_6, - - ABDAY_7, - - DAY_1, - - DAY_2, - - DAY_3, - - DAY_4, - - DAY_5, - - DAY_6, - - DAY_7, - - ABMON_1, - - ABMON_2, - - ABMON_3, - - ABMON_4, - - ABMON_5, - - ABMON_6, - - ABMON_7, - - ABMON_8, - - ABMON_9, - - ABMON_10, - - ABMON_11, - - ABMON_12, - - MON_1, - - MON_2, - - MON_3, - - MON_4, - - MON_5, - - MON_6, - - MON_7, - - MON_8, - - MON_9, - - MON_10, - - MON_11, - - MON_12, - - AM_STR, - - PM_STR, - - D_T_FMT, - - D_FMT, - - T_FMT, - - T_FMT_AMPM, - - ERA, - - __ERA_YEAR, - - ERA_D_FMT, - - ALT_DIGITS, - - ERA_D_T_FMT, - - ERA_T_FMT, - - _NL_TIME_ERA_NUM_ENTRIES, - _NL_TIME_ERA_ENTRIES, - - _NL_WABDAY_1, - _NL_WABDAY_2, - _NL_WABDAY_3, - _NL_WABDAY_4, - _NL_WABDAY_5, - _NL_WABDAY_6, - _NL_WABDAY_7, - - _NL_WDAY_1, - _NL_WDAY_2, - _NL_WDAY_3, - _NL_WDAY_4, - _NL_WDAY_5, - _NL_WDAY_6, - _NL_WDAY_7, - - _NL_WABMON_1, - _NL_WABMON_2, - _NL_WABMON_3, - _NL_WABMON_4, - _NL_WABMON_5, - _NL_WABMON_6, - _NL_WABMON_7, - _NL_WABMON_8, - _NL_WABMON_9, - _NL_WABMON_10, - _NL_WABMON_11, - _NL_WABMON_12, - - _NL_WMON_1, - _NL_WMON_2, - _NL_WMON_3, - _NL_WMON_4, - _NL_WMON_5, - _NL_WMON_6, - _NL_WMON_7, - _NL_WMON_8, - _NL_WMON_9, - _NL_WMON_10, - _NL_WMON_11, - _NL_WMON_12, - - _NL_WAM_STR, - _NL_WPM_STR, - - _NL_WD_T_FMT, - _NL_WD_FMT, - _NL_WT_FMT, - _NL_WT_FMT_AMPM, - - _NL_WERA_YEAR, - _NL_WERA_D_FMT, - _NL_WALT_DIGITS, - _NL_WERA_D_T_FMT, - _NL_WERA_T_FMT, - - _NL_TIME_WEEK_NDAYS, - _NL_TIME_WEEK_1STDAY, - _NL_TIME_WEEK_1STWEEK, - _NL_TIME_FIRST_WEEKDAY, - _NL_TIME_FIRST_WORKDAY, - _NL_TIME_CAL_DIRECTION, - _NL_TIME_TIMEZONE, - - _DATE_FMT, - - _NL_W_DATE_FMT, - - _NL_TIME_CODESET, - - __ALTMON_1, - __ALTMON_2, - __ALTMON_3, - __ALTMON_4, - __ALTMON_5, - __ALTMON_6, - __ALTMON_7, - __ALTMON_8, - __ALTMON_9, - __ALTMON_10, - __ALTMON_11, - __ALTMON_12, - _NL_WALTMON_1, - _NL_WALTMON_2, - _NL_WALTMON_3, - _NL_WALTMON_4, - _NL_WALTMON_5, - _NL_WALTMON_6, - _NL_WALTMON_7, - _NL_WALTMON_8, - _NL_WALTMON_9, - _NL_WALTMON_10, - _NL_WALTMON_11, - _NL_WALTMON_12, - - _NL_ABALTMON_1, - _NL_ABALTMON_2, - _NL_ABALTMON_3, - _NL_ABALTMON_4, - _NL_ABALTMON_5, - _NL_ABALTMON_6, - _NL_ABALTMON_7, - _NL_ABALTMON_8, - _NL_ABALTMON_9, - _NL_ABALTMON_10, - _NL_ABALTMON_11, - _NL_ABALTMON_12, - - _NL_WABALTMON_1, - _NL_WABALTMON_2, - _NL_WABALTMON_3, - _NL_WABALTMON_4, - _NL_WABALTMON_5, - _NL_WABALTMON_6, - _NL_WABALTMON_7, - _NL_WABALTMON_8, - _NL_WABALTMON_9, - _NL_WABALTMON_10, - _NL_WABALTMON_11, - _NL_WABALTMON_12, - - _NL_NUM_LC_TIME, - - _NL_COLLATE_NRULES = (((3) << 16) | (0)), - _NL_COLLATE_RULESETS, - _NL_COLLATE_TABLEMB, - _NL_COLLATE_WEIGHTMB, - _NL_COLLATE_EXTRAMB, - _NL_COLLATE_INDIRECTMB, - _NL_COLLATE_GAP1, - _NL_COLLATE_GAP2, - _NL_COLLATE_GAP3, - _NL_COLLATE_TABLEWC, - _NL_COLLATE_WEIGHTWC, - _NL_COLLATE_EXTRAWC, - _NL_COLLATE_INDIRECTWC, - _NL_COLLATE_SYMB_HASH_SIZEMB, - _NL_COLLATE_SYMB_TABLEMB, - _NL_COLLATE_SYMB_EXTRAMB, - _NL_COLLATE_COLLSEQMB, - _NL_COLLATE_COLLSEQWC, - _NL_COLLATE_CODESET, - _NL_NUM_LC_COLLATE, - - _NL_CTYPE_CLASS = (((0) << 16) | (0)), - _NL_CTYPE_TOUPPER, - _NL_CTYPE_GAP1, - _NL_CTYPE_TOLOWER, - _NL_CTYPE_GAP2, - _NL_CTYPE_CLASS32, - _NL_CTYPE_GAP3, - _NL_CTYPE_GAP4, - _NL_CTYPE_GAP5, - _NL_CTYPE_GAP6, - _NL_CTYPE_CLASS_NAMES, - _NL_CTYPE_MAP_NAMES, - _NL_CTYPE_WIDTH, - _NL_CTYPE_MB_CUR_MAX, - _NL_CTYPE_CODESET_NAME, - CODESET = _NL_CTYPE_CODESET_NAME, - - _NL_CTYPE_TOUPPER32, - _NL_CTYPE_TOLOWER32, - _NL_CTYPE_CLASS_OFFSET, - _NL_CTYPE_MAP_OFFSET, - _NL_CTYPE_INDIGITS_MB_LEN, - _NL_CTYPE_INDIGITS0_MB, - _NL_CTYPE_INDIGITS1_MB, - _NL_CTYPE_INDIGITS2_MB, - _NL_CTYPE_INDIGITS3_MB, - _NL_CTYPE_INDIGITS4_MB, - _NL_CTYPE_INDIGITS5_MB, - _NL_CTYPE_INDIGITS6_MB, - _NL_CTYPE_INDIGITS7_MB, - _NL_CTYPE_INDIGITS8_MB, - _NL_CTYPE_INDIGITS9_MB, - _NL_CTYPE_INDIGITS_WC_LEN, - _NL_CTYPE_INDIGITS0_WC, - _NL_CTYPE_INDIGITS1_WC, - _NL_CTYPE_INDIGITS2_WC, - _NL_CTYPE_INDIGITS3_WC, - _NL_CTYPE_INDIGITS4_WC, - _NL_CTYPE_INDIGITS5_WC, - _NL_CTYPE_INDIGITS6_WC, - _NL_CTYPE_INDIGITS7_WC, - _NL_CTYPE_INDIGITS8_WC, - _NL_CTYPE_INDIGITS9_WC, - _NL_CTYPE_OUTDIGIT0_MB, - _NL_CTYPE_OUTDIGIT1_MB, - _NL_CTYPE_OUTDIGIT2_MB, - _NL_CTYPE_OUTDIGIT3_MB, - _NL_CTYPE_OUTDIGIT4_MB, - _NL_CTYPE_OUTDIGIT5_MB, - _NL_CTYPE_OUTDIGIT6_MB, - _NL_CTYPE_OUTDIGIT7_MB, - _NL_CTYPE_OUTDIGIT8_MB, - _NL_CTYPE_OUTDIGIT9_MB, - _NL_CTYPE_OUTDIGIT0_WC, - _NL_CTYPE_OUTDIGIT1_WC, - _NL_CTYPE_OUTDIGIT2_WC, - _NL_CTYPE_OUTDIGIT3_WC, - _NL_CTYPE_OUTDIGIT4_WC, - _NL_CTYPE_OUTDIGIT5_WC, - _NL_CTYPE_OUTDIGIT6_WC, - _NL_CTYPE_OUTDIGIT7_WC, - _NL_CTYPE_OUTDIGIT8_WC, - _NL_CTYPE_OUTDIGIT9_WC, - _NL_CTYPE_TRANSLIT_TAB_SIZE, - _NL_CTYPE_TRANSLIT_FROM_IDX, - _NL_CTYPE_TRANSLIT_FROM_TBL, - _NL_CTYPE_TRANSLIT_TO_IDX, - _NL_CTYPE_TRANSLIT_TO_TBL, - _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN, - _NL_CTYPE_TRANSLIT_DEFAULT_MISSING, - _NL_CTYPE_TRANSLIT_IGNORE_LEN, - _NL_CTYPE_TRANSLIT_IGNORE, - _NL_CTYPE_MAP_TO_NONASCII, - _NL_CTYPE_NONASCII_CASE, - _NL_CTYPE_EXTRA_MAP_1, - _NL_CTYPE_EXTRA_MAP_2, - _NL_CTYPE_EXTRA_MAP_3, - _NL_CTYPE_EXTRA_MAP_4, - _NL_CTYPE_EXTRA_MAP_5, - _NL_CTYPE_EXTRA_MAP_6, - _NL_CTYPE_EXTRA_MAP_7, - _NL_CTYPE_EXTRA_MAP_8, - _NL_CTYPE_EXTRA_MAP_9, - _NL_CTYPE_EXTRA_MAP_10, - _NL_CTYPE_EXTRA_MAP_11, - _NL_CTYPE_EXTRA_MAP_12, - _NL_CTYPE_EXTRA_MAP_13, - _NL_CTYPE_EXTRA_MAP_14, - _NL_NUM_LC_CTYPE, - - __INT_CURR_SYMBOL = (((4) << 16) | (0)), - - __CURRENCY_SYMBOL, - - __MON_DECIMAL_POINT, - - __MON_THOUSANDS_SEP, - - __MON_GROUPING, - - __POSITIVE_SIGN, - - __NEGATIVE_SIGN, - - __INT_FRAC_DIGITS, - - __FRAC_DIGITS, - - __P_CS_PRECEDES, - - __P_SEP_BY_SPACE, - - __N_CS_PRECEDES, - - __N_SEP_BY_SPACE, - - __P_SIGN_POSN, - - __N_SIGN_POSN, - - _NL_MONETARY_CRNCYSTR, - - __INT_P_CS_PRECEDES, - - __INT_P_SEP_BY_SPACE, - - __INT_N_CS_PRECEDES, - - __INT_N_SEP_BY_SPACE, - - __INT_P_SIGN_POSN, - - __INT_N_SIGN_POSN, - - _NL_MONETARY_DUO_INT_CURR_SYMBOL, - _NL_MONETARY_DUO_CURRENCY_SYMBOL, - _NL_MONETARY_DUO_INT_FRAC_DIGITS, - _NL_MONETARY_DUO_FRAC_DIGITS, - _NL_MONETARY_DUO_P_CS_PRECEDES, - _NL_MONETARY_DUO_P_SEP_BY_SPACE, - _NL_MONETARY_DUO_N_CS_PRECEDES, - _NL_MONETARY_DUO_N_SEP_BY_SPACE, - _NL_MONETARY_DUO_INT_P_CS_PRECEDES, - _NL_MONETARY_DUO_INT_P_SEP_BY_SPACE, - _NL_MONETARY_DUO_INT_N_CS_PRECEDES, - _NL_MONETARY_DUO_INT_N_SEP_BY_SPACE, - _NL_MONETARY_DUO_P_SIGN_POSN, - _NL_MONETARY_DUO_N_SIGN_POSN, - _NL_MONETARY_DUO_INT_P_SIGN_POSN, - _NL_MONETARY_DUO_INT_N_SIGN_POSN, - _NL_MONETARY_UNO_VALID_FROM, - _NL_MONETARY_UNO_VALID_TO, - _NL_MONETARY_DUO_VALID_FROM, - _NL_MONETARY_DUO_VALID_TO, - _NL_MONETARY_CONVERSION_RATE, - _NL_MONETARY_DECIMAL_POINT_WC, - _NL_MONETARY_THOUSANDS_SEP_WC, - _NL_MONETARY_CODESET, - _NL_NUM_LC_MONETARY, - - __DECIMAL_POINT = (((1) << 16) | (0)), - - RADIXCHAR = __DECIMAL_POINT, - - __THOUSANDS_SEP, - - THOUSEP = __THOUSANDS_SEP, - - __GROUPING, - - _NL_NUMERIC_DECIMAL_POINT_WC, - _NL_NUMERIC_THOUSANDS_SEP_WC, - _NL_NUMERIC_CODESET, - _NL_NUM_LC_NUMERIC, - - __YESEXPR = (((5) << 16) | (0)), - - __NOEXPR, - - __YESSTR, - - __NOSTR, - - _NL_MESSAGES_CODESET, - _NL_NUM_LC_MESSAGES, - - _NL_PAPER_HEIGHT = (((7) << 16) | (0)), - _NL_PAPER_WIDTH, - _NL_PAPER_CODESET, - _NL_NUM_LC_PAPER, - - _NL_NAME_NAME_FMT = (((8) << 16) | (0)), - _NL_NAME_NAME_GEN, - _NL_NAME_NAME_MR, - _NL_NAME_NAME_MRS, - _NL_NAME_NAME_MISS, - _NL_NAME_NAME_MS, - _NL_NAME_CODESET, - _NL_NUM_LC_NAME, - - _NL_ADDRESS_POSTAL_FMT = (((9) << 16) | (0)), - _NL_ADDRESS_COUNTRY_NAME, - _NL_ADDRESS_COUNTRY_POST, - _NL_ADDRESS_COUNTRY_AB2, - _NL_ADDRESS_COUNTRY_AB3, - _NL_ADDRESS_COUNTRY_CAR, - _NL_ADDRESS_COUNTRY_NUM, - _NL_ADDRESS_COUNTRY_ISBN, - _NL_ADDRESS_LANG_NAME, - _NL_ADDRESS_LANG_AB, - _NL_ADDRESS_LANG_TERM, - _NL_ADDRESS_LANG_LIB, - _NL_ADDRESS_CODESET, - _NL_NUM_LC_ADDRESS, - - _NL_TELEPHONE_TEL_INT_FMT = (((10) << 16) | (0)), - _NL_TELEPHONE_TEL_DOM_FMT, - _NL_TELEPHONE_INT_SELECT, - _NL_TELEPHONE_INT_PREFIX, - _NL_TELEPHONE_CODESET, - _NL_NUM_LC_TELEPHONE, - - _NL_MEASUREMENT_MEASUREMENT = (((11) << 16) | (0)), - _NL_MEASUREMENT_CODESET, - _NL_NUM_LC_MEASUREMENT, - - _NL_IDENTIFICATION_TITLE = (((12) << 16) | (0)), - _NL_IDENTIFICATION_SOURCE, - _NL_IDENTIFICATION_ADDRESS, - _NL_IDENTIFICATION_CONTACT, - _NL_IDENTIFICATION_EMAIL, - _NL_IDENTIFICATION_TEL, - _NL_IDENTIFICATION_FAX, - _NL_IDENTIFICATION_LANGUAGE, - _NL_IDENTIFICATION_TERRITORY, - _NL_IDENTIFICATION_AUDIENCE, - _NL_IDENTIFICATION_APPLICATION, - _NL_IDENTIFICATION_ABBREVIATION, - _NL_IDENTIFICATION_REVISION, - _NL_IDENTIFICATION_DATE, - _NL_IDENTIFICATION_CATEGORY, - _NL_IDENTIFICATION_CODESET, - _NL_NUM_LC_IDENTIFICATION, - - _NL_NUM -}; -extern char *nl_langinfo(nl_item __item) __attribute__((__nothrow__, __leaf__)); - -extern char *nl_langinfo_l(nl_item __item, locale_t __l); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { SUBTHREAD_LINES_HEURISTIC = 128 * 1024 }; -_Static_assert(4 <= SUBTHREAD_LINES_HEURISTIC, "verify (" - "4 <= SUBTHREAD_LINES_HEURISTIC" - ")"); - -enum { DEFAULT_MAX_THREADS = 8 }; - -enum { - - SORT_OUT_OF_ORDER = 1, - - SORT_FAILURE = 2 -}; - -enum { - - MAX_FORK_TRIES_COMPRESS = 4, - - MAX_FORK_TRIES_DECOMPRESS = 9 -}; - -enum { - - MERGE_END = 0, - - MERGE_ROOT = 1 -}; - -static char decimal_point; - -static int thousands_sep; - -static _Bool thousands_sep_ignored; - -static _Bool hard_LC_COLLATE; - -static _Bool hard_LC_TIME; - -enum blanktype { bl_start, bl_end, bl_both }; - -static char eolchar = '\n'; - -struct line { - char *text; - size_t length; - char *keybeg; - char *keylim; -}; - -struct buffer { - char *buf; - - size_t used; - size_t nlines; - size_t alloc; - size_t left; - size_t line_bytes; - - _Bool eof; -}; - -struct keyfield { - size_t sword; - size_t schar; - size_t eword; - size_t echar; - - _Bool const *ignore; - char const *translate; - - _Bool skipsblanks; - - _Bool skipeblanks; - - _Bool numeric; - - _Bool random; - - _Bool general_numeric; - - _Bool human_numeric; - - _Bool month; - - _Bool reverse; - - _Bool version; - - _Bool traditional_used; - struct keyfield *next; -}; - -struct month { - char const *name; - int val; -}; - -struct merge_node { - struct line *lo; - struct line *hi; - struct line *end_lo; - struct line *end_hi; - struct line **dest; - size_t nlo; - size_t nhi; - struct merge_node *parent; - struct merge_node *lo_child; - struct merge_node *hi_child; - unsigned int level; - - _Bool queued; - pthread_mutex_t lock; -}; - -struct merge_node_queue { - struct heap *priority_queue; - pthread_mutex_t mutex; - pthread_cond_t cond; -}; - -static struct line saved_line; -static _Bool blanks[((0x7f * 2 + 1) + 1)]; - -static _Bool nonprinting[((0x7f * 2 + 1) + 1)]; - -static _Bool nondictionary[((0x7f * 2 + 1) + 1)]; - -static char fold_toupper[((0x7f * 2 + 1) + 1)]; - -static struct month monthtab[] = { - {"APR", 4}, {"AUG", 8}, {"DEC", 12}, {"FEB", 2}, {"JAN", 1}, {"JUL", 7}, - {"JUN", 6}, {"MAR", 3}, {"MAY", 5}, {"NOV", 11}, {"OCT", 10}, {"SEP", 9}}; -static size_t merge_buffer_size = - ((((2 + sizeof(struct line))) > (256 * 1024)) ? ((2 + sizeof(struct line))) - : (256 * 1024)); - -static size_t sort_size; -static char const **temp_dirs; - -static size_t temp_dir_count; - -static size_t temp_dir_alloc; - -static _Bool reverse; - -static _Bool stable; - -enum { NON_CHAR = 0x7f + 1 }; - -enum { TAB_DEFAULT = 0x7f + 1 }; - -static int tab = TAB_DEFAULT; - -static _Bool unique; - -static _Bool have_read_stdin; - -static struct keyfield *keylist; - -static char const *compress_program; - -static _Bool debug; - -static unsigned int nmerge = 16; - -static _Noreturn void async_safe_die(int errnum, char const *errstr) { - (__extension__({ - __typeof__(write(2, errstr, strlen(errstr))) __x = - (write(2, errstr, strlen(errstr))); - (void)__x; - })); - - if (errnum) { - char errbuf[((((((sizeof(errnum) * 8) - - (!((__typeof__(errnum))0 < (__typeof__(errnum))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(errnum))0 < (__typeof__(errnum))-1))) + - 1)]; - char *p = inttostr(errnum, errbuf); - (__extension__({ - __typeof__(write(2, ": errno ", 8)) __x = (write(2, ": errno ", 8)); - (void)__x; - })); - (__extension__({ - __typeof__(write(2, p, strlen(p))) __x = (write(2, p, strlen(p))); - (void)__x; - })); - } - - (__extension__({ - __typeof__(write(2, "\n", 1)) __x = (write(2, "\n", 1)); - (void)__x; - })); - - _exit(SORT_FAILURE); -} - -static void sort_die(char const *message, char const *file) { - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, (*__errno_location ()), \"%s: %s\", message, " - "quotearg_n_style_colon (0, shell_escape_quoting_style, file ? file : " - "dcgettext (((void *)0), \"standard output\", 5))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - SORT_FAILURE, (*__errno_location()), "%s: %s", message, - quotearg_n_style_colon( - 0, shell_escape_quoting_style, - file ? file : dcgettext(((void *)0), "standard output", 5))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - SORT_FAILURE, (*__errno_location()), "%s: %s", message, - quotearg_n_style_colon( - 0, shell_escape_quoting_style, - file ? file : dcgettext(((void *)0), "standard output", 5))), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [FILE]...\n or: %s [OPTION]... " - "--files0-from=F\n", - 5) - - , - program_name, program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Write sorted concatenation of all FILE(s) to standard output.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked(dcgettext(((void *)0), "Ordering options:\n\n", 5), stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -b, --ignore-leading-blanks ignore leading blanks\n -d, " - "--dictionary-order consider only blanks and " - "alphanumeric characters\n -f, --ignore-case fold " - "lower case to upper case characters\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -g, --general-numeric-sort compare according to general " - "numerical value\n -i, --ignore-nonprinting consider " - "only printable characters\n -M, --month-sort " - "compare (unknown) < 'JAN' < ... < 'DEC'\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -h, --human-numeric-sort compare human " - "readable numbers (e.g., 2K 1G)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -n, --numeric-sort compare according to string " - "numerical value\n -R, --random-sort shuffle, but " - "group identical keys. See shuf(1)\n " - "--random-source=FILE get random bytes from FILE\n -r, " - "--reverse reverse the result of comparisons\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --sort=WORD sort according to WORD:\n " - " general-numeric -g, " - "human-numeric -h, month -M,\n " - " numeric -n, random -R, version -V\n -V, --version-sort " - " natural sort of (version) numbers within text\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), "Other options:\n\n", 5), stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --batch-size=NMERGE merge at most NMERGE inputs at " - "once;\n for more use temp files\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -c, --check, --check=diagnose-first check for sorted " - "input; do not sort\n -C, --check=quiet, --check=silent " - "like -c, but do not report first bad line\n " - "--compress-program=PROG compress temporaries with PROG;\n " - " decompress them with PROG -d\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --debug annotate the part of the line " - "used to sort,\n and warn about " - "questionable usage to stderr\n --files0-from=F " - "read input from the files specified by\n " - " NUL-terminated names in file F;\n " - " If F is - then read names from standard input\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -k, --key=KEYDEF sort via a key; KEYDEF gives " - "location and type\n -m, --merge merge " - "already sorted files; do not sort\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -o, --output=FILE write result to FILE instead of " - "standard output\n -s, --stable stabilize sort " - "by disabling last-resort comparison\n -S, " - "--buffer-size=SIZE use SIZE for main memory buffer\n", - 5), - stdout) - - ; - printf( - dcgettext(((void *)0), - " -t, --field-separator=SEP use SEP instead of non-blank " - "to blank transition\n -T, --temporary-directory=DIR use " - "DIR for temporaries, not $TMPDIR or %s;\n " - " multiple options specify multiple directories\n " - " --parallel=N change the number of sorts run " - "concurrently to N\n -u, --unique with -c, " - "check for strict ordering;\n " - "without -c, output only the first of an equal run\n", - 5) - - , - "/tmp"); - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero-terminated line delimiter is NUL, not newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nKEYDEF is F[.C][OPTS][,F[.C][OPTS]] for start and stop " - "position, where F is a\nfield number and C a character position " - "in the field; both are origin 1, and\nthe stop position defaults " - "to the line's end. If neither -t nor -b is in\neffect, " - "characters in a field are counted from the beginning of the " - "preceding\nwhitespace. OPTS is one or more single-letter " - "ordering options [bdfgiMhnRrV],\nwhich override global ordering " - "options for that key. If no key is given, use\nthe entire line " - "as the key. Use --debug to diagnose incorrect key usage.\n\nSIZE " - "may be followed by the following multiplicative suffixes:\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "% 1% of memory, b 1, K 1024 (default), and so on for M, G, " - "T, P, E, Z, Y.\n\n*** WARNING ***\nThe locale specified by " - "the environment affects sort order.\nSet LC_ALL=C to get " - "the traditional sort order that uses\nnative byte values.\n", - 5), - stdout) - - ; - emit_ancillary_info("sort"); - } - - exit(status); -} - -enum { - CHECK_OPTION = 0x7f + 1, - COMPRESS_PROGRAM_OPTION, - DEBUG_PROGRAM_OPTION, - FILES0_FROM_OPTION, - NMERGE_OPTION, - RANDOM_SOURCE_OPTION, - SORT_OPTION, - PARALLEL_OPTION -}; - -static char const short_options[] = "-bcCdfghik:mMno:rRsS:t:T:uVy:z"; - -static struct option const long_options[] = { - {"ignore-leading-blanks", 0, ((void *)0), 'b'}, - {"check", 2, ((void *)0), CHECK_OPTION}, - {"compress-program", 1, ((void *)0), COMPRESS_PROGRAM_OPTION}, - {"debug", 0, ((void *)0), DEBUG_PROGRAM_OPTION}, - {"dictionary-order", 0, ((void *)0), 'd'}, - {"ignore-case", 0, ((void *)0), 'f'}, - {"files0-from", 1, ((void *)0), FILES0_FROM_OPTION}, - {"general-numeric-sort", 0, ((void *)0), 'g'}, - {"ignore-nonprinting", 0, ((void *)0), 'i'}, - {"key", 1, ((void *)0), 'k'}, - {"merge", 0, ((void *)0), 'm'}, - {"month-sort", 0, ((void *)0), 'M'}, - {"numeric-sort", 0, ((void *)0), 'n'}, - {"human-numeric-sort", 0, ((void *)0), 'h'}, - {"version-sort", 0, ((void *)0), 'V'}, - {"random-sort", 0, ((void *)0), 'R'}, - {"random-source", 1, ((void *)0), RANDOM_SOURCE_OPTION}, - {"sort", 1, ((void *)0), SORT_OPTION}, - {"output", 1, ((void *)0), 'o'}, - {"reverse", 0, ((void *)0), 'r'}, - {"stable", 0, ((void *)0), 's'}, - {"batch-size", 1, ((void *)0), NMERGE_OPTION}, - {"buffer-size", 1, ((void *)0), 'S'}, - {"field-separator", 1, ((void *)0), 't'}, - {"temporary-directory", 1, ((void *)0), 'T'}, - {"unique", 0, ((void *)0), 'u'}, - {"zero-terminated", 0, ((void *)0), 'z'}, - {"parallel", 1, ((void *)0), PARALLEL_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}, -}; - -static char const *const check_args[] = { - - "quiet", "silent", "diagnose-first", ((void *)0) - -}; -static char const check_types[] = { - - 'C', - 'C', - 'c', - -}; -static char const *const sort_args[] = { - - "general-numeric", "human-numeric", "month", "numeric", - "random", "version", ((void *)0) - -}; -static char const sort_types[] = { - - 'g', 'h', 'M', 'n', 'R', 'V', - -}; - -static sigset_t caught_signals; - -struct cs_status { - - _Bool valid; - sigset_t sigs; -}; - -static void cs_enter(struct cs_status *status) { - int ret = pthread_sigmask(0, &caught_signals, &status->sigs); - status->valid = ret == 0; -} - -static void cs_leave(struct cs_status const *status) { - if (status->valid) { - - pthread_sigmask(2, &status->sigs, ((void *)0)); - } -} - -enum { UNCOMPRESSED, UNREAPED, REAPED }; - -struct tempnode { - struct tempnode *volatile next; - pid_t pid; - char state; - char name[]; -}; -static struct tempnode *volatile temphead; -static struct tempnode *volatile *temptail = &temphead; - -struct sortfile { - - char const *name; - - struct tempnode *temp; -}; - -static Hash_table *proctab; - -enum { INIT_PROCTAB_SIZE = 47 }; - -static size_t proctab_hasher(void const *entry, size_t tabsize) { - struct tempnode const *node = entry; - return node->pid % tabsize; -} - -static _Bool - -proctab_comparator(void const *e1, void const *e2) { - struct tempnode const *n1 = e1; - struct tempnode const *n2 = e2; - return n1->pid == n2->pid; -} - -static pid_t nprocs; - -static _Bool delete_proc(pid_t); -static pid_t reap(pid_t pid) { - int status; - pid_t cpid = waitpid((pid ? pid : -1), &status, (pid ? 0 : 1)); - - if (cpid < 0) - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, (*__errno_location ()), dcgettext " - "(((void *)0), \"waiting for %s [-d]\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "compress_program)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, (*__errno_location()), - dcgettext(((void *)0), "waiting for %s [-d]", 5), - quotearg_style(shell_escape_always_quoting_style, - compress_program)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, (*__errno_location()), - dcgettext(((void *)0), "waiting for %s [-d]", 5), - quotearg_style(shell_escape_always_quoting_style, - compress_program)), - ((0) ? (void)0 : __builtin_unreachable())))); - else if (0 < cpid && (0 < pid || delete_proc(cpid))) { - if (!(((status)&0x7f) == 0) || (((status)&0xff00) >> 8)) - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s " - "[-d] terminated abnormally\", 5), quotearg_style " - "(shell_escape_always_quoting_style, " - "compress_program)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "%s [-d] terminated abnormally", 5), - quotearg_style(shell_escape_always_quoting_style, - compress_program)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "%s [-d] terminated abnormally", 5), - quotearg_style(shell_escape_always_quoting_style, - compress_program)), - ((0) ? (void)0 : __builtin_unreachable())))); - --nprocs; - } - - return cpid; -} - -static void register_proc(struct tempnode *temp) { - if (!proctab) { - proctab = hash_initialize(INIT_PROCTAB_SIZE, ((void *)0), proctab_hasher, - proctab_comparator, - - ((void *)0)); - if (!proctab) - xalloc_die(); - } - - temp->state = UNREAPED; - - if (!hash_insert(proctab, temp)) - xalloc_die(); -} - -static _Bool - -delete_proc(pid_t pid) { - struct tempnode test; - - test.pid = pid; - struct tempnode *node = hash_remove(proctab, &test); - if (!node) - return 0; - node->state = REAPED; - return 1; -} - -static void wait_proc(pid_t pid) { - if (delete_proc(pid)) - reap(pid); -} - -static void reap_exited(void) { - while (0 < nprocs && reap(0)) - continue; -} - -static void reap_some(void) { - reap(-1); - reap_exited(); -} - -static void reap_all(void) { - while (0 < nprocs) - reap(-1); -} - -static void cleanup(void) { - struct tempnode const *node; - - for (node = temphead; node; node = node->next) - unlink(node->name); - temphead = ((void *)0); -} - -static void exit_cleanup(void) { - if (temphead) { - - struct cs_status cs; - cs_enter(&cs); - cleanup(); - cs_leave(&cs); - } - - close_stdout(); -} - -static struct tempnode *create_temp_file(int *pfd, - _Bool survive_fd_exhaustion) { - static char const slashbase[] = "/sortXXXXXX"; - static size_t temp_dir_index; - int fd; - int saved_errno; - char const *temp_dir = temp_dirs[temp_dir_index]; - size_t len = strlen(temp_dir); - struct tempnode *node = - xmalloc(((__builtin_offsetof(struct tempnode, name) + - _Alignof(struct tempnode) - 1 + (len + sizeof slashbase)) & - ~(_Alignof(struct tempnode) - 1))); - char *file = node->name; - struct cs_status cs; - - memcpy(file, temp_dir, len); - memcpy(file + len, slashbase, sizeof slashbase); - node->next = ((void *)0); - if (++temp_dir_index == temp_dir_count) - temp_dir_index = 0; - - cs_enter(&cs); - fd = mkostemp_safer(file, 02000000); - if (0 <= fd) { - *temptail = node; - temptail = &node->next; - } - saved_errno = (*__errno_location()); - cs_leave(&cs); - - (*__errno_location()) = saved_errno; - - if (fd < 0) { - if (!(survive_fd_exhaustion && (*__errno_location()) == 24)) - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot create temporary file in %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, temp_dir)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - SORT_FAILURE, (*__errno_location()), - dcgettext(((void *)0), "cannot create temporary file in %s", - 5), - quotearg_style(shell_escape_always_quoting_style, temp_dir)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - SORT_FAILURE, (*__errno_location()), - dcgettext(((void *)0), "cannot create temporary file in %s", - 5), - quotearg_style(shell_escape_always_quoting_style, temp_dir)), - ((0) ? (void)0 : __builtin_unreachable())))); - free(node); - node = ((void *)0); - } - - *pfd = fd; - return node; -} - -static struct stat *get_outstatus(void) { - static int outstat_errno; - static struct stat outstat; - if (outstat_errno == 0) - outstat_errno = fstat(1, &outstat) == 0 ? -1 : (*__errno_location()); - return outstat_errno < 0 ? &outstat : ((void *)0); -} -static FILE *stream_open(char const *file, char const *how) { - FILE *fp; - - if (*how == 'r') { - if ((strcmp(file, "-") == 0)) { - have_read_stdin = 1; - fp = stdin; - } else { - int fd = open(file, 00 | 02000000); - fp = fd < 0 ? ((void *)0) : fdopen(fd, how); - } - fadvise(fp, FADVISE_SEQUENTIAL); - } else if (*how == 'w') { - if (file && ftruncate(1, 0) != 0) { - int ftruncate_errno = (*__errno_location()); - struct stat *outst = get_outstatus(); - if (!outst || ((((outst->st_mode)) & 0170000) == (0100000)) || - ((outst)->st_mode - (outst)->st_mode)) - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, ftruncate_errno, dcgettext (((void *)0), " - "\"%s: error truncating\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, ftruncate_errno, - dcgettext(((void *)0), "%s: error truncating", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, ftruncate_errno, - dcgettext(((void *)0), "%s: error truncating", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - file)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - fp = stdout; - } else - - ((void)sizeof((!"unexpected mode passed to stream_open") ? 1 : 0), - __extension__({ - if (!"unexpected mode passed to stream_open") - ; - else - __assert_fail("!\"unexpected mode passed to stream_open\"", - "src/sort.c", 981, __extension__ __PRETTY_FUNCTION__); - })); - - return fp; -} - -static FILE *xfopen(char const *file, char const *how) { - FILE *fp = stream_open(file, how); - if (!fp) - sort_die(dcgettext(((void *)0), "open failed", 5), file); - return fp; -} - -static void xfclose(FILE *fp, char const *file) { - switch (fileno(fp)) { - case 0: - - clearerr_unlocked(fp); - break; - - case 1: - - if (fflush_unlocked(fp) != 0) - sort_die(dcgettext(((void *)0), "fflush failed", 5), file); - break; - - default: - if (rpl_fclose(fp) != 0) - sort_die(dcgettext(((void *)0), "close failed", 5), file); - break; - } -} - -static void move_fd(int oldfd, int newfd) { - if (oldfd != newfd) { - - dup2(oldfd, newfd); - close(oldfd); - } -} - -static pid_t pipe_fork(int pipefds[2], size_t tries) { - - struct tempnode *saved_temphead; - int saved_errno; - double wait_retry = 0.25; - pid_t pid; - struct cs_status cs; - - if (rpl_pipe2(pipefds, 02000000) < 0) - return -1; - if (nmerge + 1 < nprocs) - reap_some(); - - while (tries--) { - - cs_enter(&cs); - saved_temphead = temphead; - temphead = ((void *)0); - - pid = fork(); - saved_errno = (*__errno_location()); - if (pid) - temphead = saved_temphead; - - cs_leave(&cs); - - (*__errno_location()) = saved_errno; - - if (0 <= pid || (*__errno_location()) != 11) - break; - else { - xnanosleep(wait_retry); - wait_retry *= 2; - reap_exited(); - } - } - - if (pid < 0) { - saved_errno = (*__errno_location()); - close(pipefds[0]); - close(pipefds[1]); - - (*__errno_location()) = saved_errno; - } else if (pid == 0) { - close(0); - close(1); - } else - ++nprocs; - - return pid; -} - -static struct tempnode *maybe_create_temp(FILE **pfp, - _Bool survive_fd_exhaustion) { - int tempfd; - struct tempnode *node = create_temp_file(&tempfd, survive_fd_exhaustion); - if (!node) - return ((void *)0); - - node->state = UNCOMPRESSED; - - if (compress_program) { - int pipefds[2]; - - node->pid = pipe_fork(pipefds, MAX_FORK_TRIES_COMPRESS); - if (0 < node->pid) { - close(tempfd); - close(pipefds[0]); - tempfd = pipefds[1]; - - register_proc(node); - } else if (node->pid == 0) { - - close(pipefds[1]); - move_fd(tempfd, 1); - move_fd(pipefds[0], 0); - - execlp(compress_program, compress_program, (char *)((void *)0)); - - async_safe_die((*__errno_location()), - "couldn't execute compress program"); - } - } - - *pfp = fdopen(tempfd, "w"); - if (!*pfp) - sort_die(dcgettext(((void *)0), "couldn't create temporary file", 5), - node->name); - - return node; -} - -static struct tempnode *create_temp(FILE **pfp) { - return maybe_create_temp(pfp, 0); -} - -static FILE *open_temp(struct tempnode *temp) { - int tempfd, pipefds[2]; - FILE *fp = ((void *)0); - - if (temp->state == UNREAPED) - wait_proc(temp->pid); - - tempfd = open(temp->name, 00); - if (tempfd < 0) - return ((void *)0); - - pid_t child = pipe_fork(pipefds, MAX_FORK_TRIES_DECOMPRESS); - - switch (child) { - case -1: - if ((*__errno_location()) != 24) - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void " - "*)0), \"couldn't create process for %s -d\", 5), quotearg_style " - "(shell_escape_always_quoting_style, compress_program)), assume " - "(false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, (*__errno_location()), - dcgettext(((void *)0), "couldn't create process for %s -d", - 5), - quotearg_style(shell_escape_always_quoting_style, - compress_program)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, (*__errno_location()), - dcgettext(((void *)0), "couldn't create process for %s -d", - 5), - quotearg_style(shell_escape_always_quoting_style, - compress_program)), - ((0) ? (void)0 : __builtin_unreachable())))); - close(tempfd); - - (*__errno_location()) = 24; - break; - - case 0: - - close(pipefds[0]); - move_fd(tempfd, 0); - move_fd(pipefds[1], 1); - - execlp(compress_program, compress_program, "-d", (char *)((void *)0)); - - async_safe_die((*__errno_location()), - "couldn't execute compress program (with -d)"); - - default: - temp->pid = child; - register_proc(temp); - close(tempfd); - close(pipefds[1]); - - fp = fdopen(pipefds[0], "r"); - if (!fp) { - int saved_errno = (*__errno_location()); - close(pipefds[0]); - - (*__errno_location()) = saved_errno; - } - break; - } - - return fp; -} - -static void add_temp_dir(char const *dir) { - if (temp_dir_count == temp_dir_alloc) - temp_dirs = - ((!!sizeof(struct { - _Static_assert( - sizeof *(temp_dirs) != 1, - "verify_expr (" - "sizeof *(temp_dirs) != 1" - ", " - "x2nrealloc (temp_dirs, &temp_dir_alloc, sizeof *(temp_dirs))" - ")"); - int _gl_dummy; - })) - ? (x2nrealloc(temp_dirs, &temp_dir_alloc, sizeof *(temp_dirs))) - : (x2nrealloc(temp_dirs, &temp_dir_alloc, sizeof *(temp_dirs)))); - - temp_dirs[temp_dir_count++] = dir; -} - -static void zaptemp(char const *name) { - struct tempnode *volatile *pnode; - struct tempnode *node; - struct tempnode *next; - int unlink_status; - int unlink_errno = 0; - struct cs_status cs; - - for (pnode = &temphead; (node = *pnode)->name != name; pnode = &node->next) - continue; - - if (node->state == UNREAPED) - wait_proc(node->pid); - - next = node->next; - cs_enter(&cs); - unlink_status = unlink(name); - unlink_errno = (*__errno_location()); - *pnode = next; - cs_leave(&cs); - - if (unlink_status != 0) - error(0, unlink_errno, - dcgettext(((void *)0), "warning: cannot remove: %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, name)); - if (!next) - temptail = pnode; - free(node); -} - -static int struct_month_cmp(void const *m1, void const *m2) { - struct month const *month1 = m1; - struct month const *month2 = m2; - return strcmp(month1->name, month2->name); -} - -static void inittables(void) { - size_t i; - - for (i = 0; i < ((0x7f * 2 + 1) + 1); ++i) { - blanks[i] = field_sep(i); - nonprinting[i] = - !((*__ctype_b_loc())[(int)((i))] & (unsigned short int)_ISprint); - nondictionary[i] = - !((*__ctype_b_loc())[(int)((i))] & (unsigned short int)_ISalnum) && - !field_sep(i); - fold_toupper[i] = (__extension__({ - int __res; - if (sizeof(i) > 1) { - if (__builtin_constant_p(i)) { - int __c = (i); - __res = __c < -128 || __c > 255 ? __c : (*__ctype_toupper_loc())[__c]; - } else - __res = toupper(i); - } else - __res = (*__ctype_toupper_loc())[(int)(i)]; - __res; - })); - } - - if (hard_LC_TIME) { - for (i = 0; i < 12; i++) { - char const *s; - size_t s_len; - size_t j, k; - char *name; - - s = nl_langinfo(ABMON_1 + i); - s_len = strlen(s); - monthtab[i].name = name = xmalloc(s_len + 1); - monthtab[i].val = i + 1; - - for (j = k = 0; j < s_len; j++) - if (!((*__ctype_b_loc())[(int)((to_uchar(s[j])))] & - (unsigned short int)_ISblank)) - name[k++] = fold_toupper[to_uchar(s[j])]; - name[k] = '\0'; - } - qsort(monthtab, 12, sizeof *monthtab, struct_month_cmp); - } -} - -static void specify_nmerge(int oi, char c, char const *s) { - uintmax_t n; - struct rlimit rlimit; - enum strtol_error e = xstrtoumax(s, ((void *)0), 10, &n, ""); - - unsigned int max_nmerge = - ((getrlimit(RLIMIT_NOFILE, &rlimit) == 0 ? rlimit.rlim_cur : 20) - 3); - - if (e == LONGINT_OK) { - nmerge = n; - if (nmerge != n) - e = LONGINT_OVERFLOW; - else { - if (nmerge < 2) { - error(0, 0, dcgettext(((void *)0), "invalid --%s argument %s", 5), - long_options[oi].name, quote(s)); - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"minimum --%s " - "argument is %s\", 5), long_options[oi].name, quote (\"2\")), " - "assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "minimum --%s argument is %s", 5), - long_options[oi].name, quote("2")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "minimum --%s argument is %s", 5), - long_options[oi].name, quote("2")), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } else if (max_nmerge < nmerge) { - e = LONGINT_OVERFLOW; - } else - return; - } - } - - if (e == LONGINT_OVERFLOW) { - char max_nmerge_buf[( - (((((sizeof(max_nmerge) * 8) - - (!((__typeof__(max_nmerge))0 < (__typeof__(max_nmerge))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(max_nmerge))0 < (__typeof__(max_nmerge))-1))) + - 1)]; - error(0, 0, dcgettext(((void *)0), "--%s argument %s too large", 5), - long_options[oi].name, quote(s)); - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"maximum --%s " - "argument with current rlimit is %s\", 5), long_options[oi].name, " - "uinttostr (max_nmerge, max_nmerge_buf)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "maximum --%s argument with current rlimit is %s", - 5), - long_options[oi].name, - uinttostr(max_nmerge, max_nmerge_buf)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "maximum --%s argument with current rlimit is %s", - 5), - long_options[oi].name, - uinttostr(max_nmerge, max_nmerge_buf)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } else - xstrtol_fatal(e, oi, c, long_options, s); -} - -static void specify_sort_size(int oi, char c, char const *s) { - uintmax_t n; - char *suffix; - enum strtol_error e = xstrtoumax(s, &suffix, 10, &n, "EgGkKmMPtTYZ"); - - if (e == LONGINT_OK && ((unsigned int)(suffix[-1]) - '0' <= 9)) { - if (n <= (18446744073709551615UL) / 1024) - n *= 1024; - else - e = LONGINT_OVERFLOW; - } - - if (e == LONGINT_INVALID_SUFFIX_CHAR && - ((unsigned int)(suffix[-1]) - '0' <= 9) && !suffix[1]) - switch (suffix[0]) { - case 'b': - e = LONGINT_OK; - break; - - case '%': { - double mem = physmem_total() * n / 100; - - if (mem < (18446744073709551615UL)) { - n = mem; - e = LONGINT_OK; - } else - e = LONGINT_OVERFLOW; - } break; - } - - if (e == LONGINT_OK) { - - if (n < sort_size) - return; - - sort_size = n; - if (sort_size == n) { - sort_size = (((sort_size) > ((nmerge * (2 + sizeof(struct line))))) - ? (sort_size) - : ((nmerge * (2 + sizeof(struct line))))); - return; - } - - e = LONGINT_OVERFLOW; - } - - xstrtol_fatal(e, oi, c, long_options, s); -} - -static size_t specify_nthreads(int oi, char c, char const *s) { - uintmax_t nthreads; - enum strtol_error e = xstrtoumax(s, ((void *)0), 10, &nthreads, ""); - if (e == LONGINT_OVERFLOW) - return (18446744073709551615UL); - if (e != LONGINT_OK) - xstrtol_fatal(e, oi, c, long_options, s); - if ((18446744073709551615UL) < nthreads) - nthreads = (18446744073709551615UL); - if (nthreads == 0) - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in " - "parallel must be nonzero\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "number in parallel must be nonzero", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "number in parallel must be nonzero", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - return nthreads; -} - -static size_t default_sort_size(void) { - - size_t size = (18446744073709551615UL); - struct rlimit rlimit; - if (getrlimit(RLIMIT_DATA, &rlimit) == 0 && rlimit.rlim_cur < size) - size = rlimit.rlim_cur; - - if (getrlimit(RLIMIT_AS, &rlimit) == 0 && rlimit.rlim_cur < size) - size = rlimit.rlim_cur; - - size /= 2; - - if (getrlimit(__RLIMIT_RSS, &rlimit) == 0 && rlimit.rlim_cur / 16 * 15 < size) - size = rlimit.rlim_cur / 16 * 15; - - double avail = physmem_available(); - double total = physmem_total(); - double mem = (((avail) > (total / 8)) ? (avail) : (total / 8)); - - if (total * 0.75 < size) - size = total * 0.75; - - if (mem < size) - size = mem; - return (((size) > ((nmerge * (2 + sizeof(struct line))))) - ? (size) - : ((nmerge * (2 + sizeof(struct line))))); -} -static size_t sort_buffer_size(FILE *const *fps, size_t nfps, - char *const *files, size_t nfiles, - size_t line_bytes) { - - static size_t size_bound; - - size_t worst_case_per_input_byte = line_bytes + 1; - - size_t size = worst_case_per_input_byte + 1; - - for (size_t i = 0; i < nfiles; i++) { - struct stat st; - off_t file_size; - size_t worst_case; - - if ((i < nfps ? fstat(fileno(fps[i]), &st) - : (strcmp(files[i], "-") == 0) ? fstat(0, &st) - : stat(files[i], &st)) != 0) - sort_die(dcgettext(((void *)0), "stat failed", 5), files[i]); - - if (((((st.st_mode)) & 0170000) == (0100000))) - file_size = st.st_size; - else { - - if (sort_size) - return sort_size; - file_size = (128 * 1024); - } - - if (!size_bound) { - size_bound = sort_size; - if (!size_bound) - size_bound = default_sort_size(); - } - - worst_case = file_size * worst_case_per_input_byte + 1; - if (file_size != worst_case / worst_case_per_input_byte || - size_bound - size <= worst_case) - return size_bound; - size += worst_case; - } - - return size; -} - -static void initbuf(struct buffer *buf, size_t line_bytes, size_t alloc) { - - while (1) { - alloc += sizeof(struct line) - alloc % sizeof(struct line); - buf->buf = malloc(alloc); - if (buf->buf) - break; - alloc /= 2; - if (alloc <= line_bytes + 1) - xalloc_die(); - } - - buf->line_bytes = line_bytes; - buf->alloc = alloc; - buf->used = buf->left = buf->nlines = 0; - buf->eof = 0; -} - -static inline struct line *buffer_linelim(struct buffer const *buf) { - void *linelim = buf->buf + buf->alloc; - return linelim; -} - -static char *begfield(struct line const *line, struct keyfield const *key) { - char *ptr = line->text, *lim = ptr + line->length - 1; - size_t sword = key->sword; - size_t schar = key->schar; - - if (tab != TAB_DEFAULT) - while (ptr < lim && sword--) { - while (ptr < lim && *ptr != tab) - ++ptr; - if (ptr < lim) - ++ptr; - } - else - while (ptr < lim && sword--) { - while (ptr < lim && blanks[to_uchar(*ptr)]) - ++ptr; - while (ptr < lim && !blanks[to_uchar(*ptr)]) - ++ptr; - } - - if (key->skipsblanks) - while (ptr < lim && blanks[to_uchar(*ptr)]) - ++ptr; - - ptr = (((lim) < (ptr + schar)) ? (lim) : (ptr + schar)); - - return ptr; -} - -__attribute__((__pure__)) static char *limfield(struct line const *line, - struct keyfield const *key) { - char *ptr = line->text, *lim = ptr + line->length - 1; - size_t eword = key->eword, echar = key->echar; - - if (echar == 0) - eword++; - if (tab != TAB_DEFAULT) - while (ptr < lim && eword--) { - while (ptr < lim && *ptr != tab) - ++ptr; - if (ptr < lim && (eword || echar)) - ++ptr; - } - else - while (ptr < lim && eword--) { - while (ptr < lim && blanks[to_uchar(*ptr)]) - ++ptr; - while (ptr < lim && !blanks[to_uchar(*ptr)]) - ++ptr; - } - if (echar != 0) { - - if (key->skipeblanks) - while (ptr < lim && blanks[to_uchar(*ptr)]) - ++ptr; - - ptr = (((lim) < (ptr + echar)) ? (lim) : (ptr + echar)); - } - - return ptr; -} - -static _Bool - -fillbuf(struct buffer *buf, FILE *fp, char const *file) { - struct keyfield const *key = keylist; - char eol = eolchar; - size_t line_bytes = buf->line_bytes; - size_t mergesize = merge_buffer_size - (2 + sizeof(struct line)); - - if (buf->eof) - return 0; - - if (buf->used != buf->left) { - memmove(buf->buf, buf->buf + buf->used - buf->left, buf->left); - buf->used = buf->left; - buf->nlines = 0; - } - - while (1) { - char *ptr = buf->buf + buf->used; - struct line *linelim = buffer_linelim(buf); - struct line *line = linelim - buf->nlines; - size_t avail = (char *)linelim - buf->nlines * line_bytes - ptr; - char *line_start = buf->nlines ? line->text + line->length : buf->buf; - - while (line_bytes + 1 < avail) { - - size_t readsize = (avail - 1) / (line_bytes + 1); - size_t bytes_read = fread_unlocked(ptr, 1, readsize, fp); - char *ptrlim = ptr + bytes_read; - char *p; - avail -= bytes_read; - - if (bytes_read != readsize) { - if (ferror_unlocked(fp)) - sort_die(dcgettext(((void *)0), "read failed", 5), file); - if (feof_unlocked(fp)) { - buf->eof = 1; - if (buf->buf == ptrlim) - return 0; - if (line_start != ptrlim && ptrlim[-1] != eol) - *ptrlim++ = eol; - } - } - - while ((p = memchr(ptr, eol, ptrlim - ptr))) { - - *p = '\0'; - ptr = p + 1; - line--; - line->text = line_start; - line->length = ptr - line_start; - mergesize = - (((mergesize) > (line->length)) ? (mergesize) : (line->length)); - avail -= line_bytes; - - if (key) { - - line->keylim = (key->eword == (18446744073709551615UL) - - ? p - : limfield(line, key)); - - if (key->sword != (18446744073709551615UL)) - line->keybeg = begfield(line, key); - else { - if (key->skipsblanks) - while (blanks[to_uchar(*line_start)]) - line_start++; - line->keybeg = line_start; - } - } - - line_start = ptr; - } - - ptr = ptrlim; - if (buf->eof) - break; - } - - buf->used = ptr - buf->buf; - buf->nlines = buffer_linelim(buf) - line; - if (buf->nlines != 0) { - buf->left = ptr - line_start; - merge_buffer_size = mergesize + (2 + sizeof(struct line)); - return 1; - } - - { - - size_t line_alloc = buf->alloc / sizeof(struct line); - buf->buf = x2nrealloc(buf->buf, &line_alloc, sizeof(struct line)); - buf->alloc = line_alloc * sizeof(struct line); - } - } -} - -static char const unit_order[((0x7f * 2 + 1) + 1)] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 3, - 0, 0, 0, 1, 0, 2, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 0, 8, 7, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 - -}; - -static char traverse_raw_number(char const **number) { - char const *p = *number; - char ch; - char max_digit = '\0'; - - _Bool ends_with_thousands_sep = 0; - - while (((unsigned int)(ch = *p++) - '0' <= 9)) { - if (max_digit < ch) - max_digit = ch; - - ends_with_thousands_sep = (*p == thousands_sep); - if (ends_with_thousands_sep) - ++p; - } - - if (ends_with_thousands_sep) { - - *number = p - 2; - return max_digit; - } - - if (ch == decimal_point) - while (((unsigned int)(ch = *p++) - '0' <= 9)) - if (max_digit < ch) - max_digit = ch; - - *number = p - 1; - return max_digit; -} - -__attribute__((__pure__)) static int find_unit_order(char const *number) { - - _Bool minus_sign = (*number == '-'); - char const *p = number + minus_sign; - char max_digit = traverse_raw_number(&p); - if ('0' < max_digit) { - unsigned char ch = *p; - int order = unit_order[ch]; - return (minus_sign ? -order : order); - } else - return 0; -} - -__attribute__((__pure__)) static int human_numcompare(char const *a, - char const *b) { - while (blanks[to_uchar(*a)]) - a++; - while (blanks[to_uchar(*b)]) - b++; - - int diff = find_unit_order(a) - find_unit_order(b); - return (diff ? diff : strnumcmp(a, b, decimal_point, thousands_sep)); -} - -__attribute__((__pure__)) static int numcompare(char const *a, char const *b) { - while (blanks[to_uchar(*a)]) - a++; - while (blanks[to_uchar(*b)]) - b++; - - return strnumcmp(a, b, decimal_point, thousands_sep); -} - -static int nan_compare(char const *sa, char const *sb) { - long double a; - memset(&a, 0, sizeof a); - a = strtold(sa, ((void *)0)); - - long double b; - memset(&b, 0, sizeof b); - b = strtold(sb, ((void *)0)); - - return memcmp(&a, &b, sizeof a); -} - -static int general_numcompare(char const *sa, char const *sb) { - - char *ea; - char *eb; - long double a = strtold(sa, &ea); - long double b = strtold(sb, &eb); - - if (sa == ea) - return sb == eb ? 0 : -1; - if (sb == eb) - return 1; - - return (a < b ? -1 - : a > b ? 1 - : a == b ? 0 - : b == b ? -1 - : a == a ? 1 - : nan_compare(sa, sb)); -} - -static int getmonth(char const *month, char **ea) { - size_t lo = 0; - size_t hi = 12; - - while (blanks[to_uchar(*month)]) - month++; - - do { - size_t ix = (lo + hi) / 2; - char const *m = month; - char const *n = monthtab[ix].name; - - for (;; m++, n++) { - if (!*n) { - if (ea) - *ea = (char *)m; - return monthtab[ix].val; - } - if (to_uchar(fold_toupper[to_uchar(*m)]) < to_uchar(*n)) { - hi = ix; - break; - } else if (to_uchar(fold_toupper[to_uchar(*m)]) > to_uchar(*n)) { - lo = ix + 1; - break; - } - } - } while (lo < hi); - - return 0; -} - -static struct md5_ctx random_md5_state; - -static void random_md5_state_init(char const *random_source) { - unsigned char buf[16]; - struct randread_source *r = randread_new(random_source, sizeof buf); - if (!r) - sort_die(dcgettext(((void *)0), "open failed", 5), - random_source ? random_source : "getrandom"); - randread(r, buf, sizeof buf); - if (randread_free(r) != 0) - sort_die(dcgettext(((void *)0), "close failed", 5), random_source); - md5_init_ctx(&random_md5_state); - md5_process_bytes(buf, sizeof buf, &random_md5_state); -} - -static size_t xstrxfrm(char *__restrict__ dest, char const *__restrict__ src, - size_t destsize) { - - (*__errno_location()) = 0; - size_t translated_size = strxfrm(dest, src, destsize); - - if ((*__errno_location())) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "string transformation failed", 5)); - error( - 0, 0, - dcgettext(((void *)0), "set LC_ALL='C' to work around the problem", 5)); - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"the " - "untransformed string was %s\", 5), quotearg_n_style (0, " - "locale_quoting_style, src)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "the untransformed string was %s", 5), - quotearg_n_style(0, locale_quoting_style, src)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "the untransformed string was %s", 5), - quotearg_n_style(0, locale_quoting_style, src)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - return translated_size; -} - -static int compare_random(char *__restrict__ texta, size_t lena, - char *__restrict__ textb, size_t lenb) { - - int xfrm_diff = 0; - - char stackbuf[4000]; - char *buf = stackbuf; - size_t bufsize = sizeof stackbuf; - void *allocated = ((void *)0); - uint32_t dig[2][16 / sizeof(uint32_t)]; - struct md5_ctx s[2]; - s[0] = s[1] = random_md5_state; - - if (hard_LC_COLLATE) { - char const *lima = texta + lena; - char const *limb = textb + lenb; - - while (1) { - size_t guess_bufsize = 3 * (lena + lenb) + 2; - if (bufsize < guess_bufsize) { - bufsize = (((guess_bufsize) > (bufsize * 3 / 2)) ? (guess_bufsize) - : (bufsize * 3 / 2)); - free(allocated); - buf = allocated = malloc(bufsize); - if (!buf) { - buf = stackbuf; - bufsize = sizeof stackbuf; - } - } - - size_t sizea = (texta < lima ? xstrxfrm(buf, texta, bufsize) + 1 : 0); - - _Bool a_fits = sizea <= bufsize; - size_t sizeb = - (textb < limb ? (xstrxfrm((a_fits ? buf + sizea : ((void *)0)), textb, - (a_fits ? bufsize - sizea : 0)) + - 1) - : 0); - - if (!(a_fits && sizea + sizeb <= bufsize)) { - bufsize = sizea + sizeb; - if (bufsize < (18446744073709551615UL) / 3) - bufsize = bufsize * 3 / 2; - free(allocated); - buf = allocated = xmalloc(bufsize); - if (texta < lima) - strxfrm(buf, texta, sizea); - if (textb < limb) - strxfrm(buf + sizea, textb, sizeb); - } - - if (texta < lima) - texta += strlen(texta) + 1; - if (textb < limb) - textb += strlen(textb) + 1; - if (!(texta < lima || textb < limb)) { - lena = sizea; - texta = buf; - lenb = sizeb; - textb = buf + sizea; - break; - } - - md5_process_bytes(buf, sizea, &s[0]); - md5_process_bytes(buf + sizea, sizeb, &s[1]); - - if (!xfrm_diff) { - xfrm_diff = - memcmp(buf, buf + sizea, (((sizea) < (sizeb)) ? (sizea) : (sizeb))); - if (!xfrm_diff) - xfrm_diff = (sizea > sizeb) - (sizea < sizeb); - } - } - } - - md5_process_bytes(texta, lena, &s[0]); - md5_finish_ctx(&s[0], dig[0]); - md5_process_bytes(textb, lenb, &s[1]); - md5_finish_ctx(&s[1], dig[1]); - int diff = memcmp(dig[0], dig[1], sizeof dig[0]); - - if (!diff) { - if (!xfrm_diff) { - xfrm_diff = memcmp(texta, textb, (((lena) < (lenb)) ? (lena) : (lenb))); - if (!xfrm_diff) - xfrm_diff = (lena > lenb) - (lena < lenb); - } - - diff = xfrm_diff; - } - - free(allocated); - - return diff; -} - -static size_t debug_width(char const *text, char const *lim) { - size_t width = mbsnwidth(text, lim - text, 0); - while (text < lim) - width += (*text++ == '\t'); - return width; -} - -static void mark_key(size_t offset, size_t width) { - while (offset--) - putchar_unlocked(' '); - - if (!width) - printf(dcgettext(((void *)0), "^ no match for key\n", 5)); - else { - do - putchar_unlocked('_'); - while (--width); - - putchar_unlocked('\n'); - } -} - -static inline _Bool - -key_numeric(struct keyfield const *key) { - return key->numeric || key->general_numeric || key->human_numeric; -} - -static void debug_key(struct line const *line, struct keyfield const *key) { - char *text = line->text; - char *beg = text; - char *lim = text + line->length - 1; - - if (key) { - if (key->sword != (18446744073709551615UL)) - beg = begfield(line, key); - if (key->eword != (18446744073709551615UL)) - lim = limfield(line, key); - - if ((key->skipsblanks && key->sword == (18446744073709551615UL)) || - key->month || key_numeric(key)) { - char saved = *lim; - *lim = '\0'; - - while (blanks[to_uchar(*beg)]) - beg++; - - char *tighter_lim = beg; - - if (lim < beg) - tighter_lim = lim; - else if (key->month) - getmonth(beg, &tighter_lim); - else if (key->general_numeric) - (__extension__({ - __typeof__(strtold(beg, &tighter_lim)) __x = - (strtold(beg, &tighter_lim)); - (void)__x; - })); - else if (key->numeric || key->human_numeric) { - char const *p = beg + (beg < lim && *beg == '-'); - char max_digit = traverse_raw_number(&p); - if ('0' <= max_digit) { - unsigned char ch = *p; - tighter_lim = (char *)p + (key->human_numeric && unit_order[ch]); - } - } else - tighter_lim = lim; - - *lim = saved; - lim = tighter_lim; - } - } - - size_t offset = debug_width(text, beg); - size_t width = debug_width(beg, lim); - mark_key(offset, width); -} - -static void debug_line(struct line const *line) { - struct keyfield const *key = keylist; - - do - debug_key(line, key); - while (key && ((key = key->next) || !(unique || stable))); -} - -static _Bool - -default_key_compare(struct keyfield const *key) { - return !(key->ignore || key->translate || key->skipsblanks || - key->skipeblanks || key_numeric(key) || key->month || key->version || - key->random - - ); -} - -static void key_to_opts(struct keyfield const *key, char *opts) { - if (key->skipsblanks || key->skipeblanks) - *opts++ = 'b'; - if (key->ignore == nondictionary) - *opts++ = 'd'; - if (key->translate) - *opts++ = 'f'; - if (key->general_numeric) - *opts++ = 'g'; - if (key->human_numeric) - *opts++ = 'h'; - if (key->ignore == nonprinting) - *opts++ = 'i'; - if (key->month) - *opts++ = 'M'; - if (key->numeric) - *opts++ = 'n'; - if (key->random) - *opts++ = 'R'; - if (key->reverse) - *opts++ = 'r'; - if (key->version) - *opts++ = 'V'; - *opts = '\0'; -} - -static void key_warnings(struct keyfield const *gkey, _Bool gkey_only) { - struct keyfield const *key; - struct keyfield ugkey = *gkey; - unsigned long keynum = 1; - - _Bool basic_numeric_field = 0; - - _Bool general_numeric_field = 0; - - _Bool basic_numeric_field_span = 0; - - _Bool general_numeric_field_span = 0; - - for (key = keylist; key; key = key->next, keynum++) { - if (key_numeric(key)) { - if (key->general_numeric) - general_numeric_field = 1; - else - basic_numeric_field = 1; - } - - if (key->traditional_used) { - size_t sword = key->sword; - size_t eword = key->eword; - char tmp[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - - char obuf[((((((sizeof(sword) * 8) - - (!((__typeof__(sword))0 < (__typeof__(sword))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(sword))0 < (__typeof__(sword))-1))) + - 1) * - 2 + - 4]; - char nbuf[((((((sizeof(sword) * 8) - - (!((__typeof__(sword))0 < (__typeof__(sword))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(sword))0 < (__typeof__(sword))-1))) + - 1) * - 2 + - 5]; - char *po = obuf; - char *pn = nbuf; - - if (sword == (18446744073709551615UL)) - sword++; - - po = stpcpy(stpcpy(po, "+"), umaxtostr(sword, tmp)); - pn = stpcpy(stpcpy(pn, "-k "), umaxtostr(sword + 1, tmp)); - if (key->eword != (18446744073709551615UL)) { - stpcpy(stpcpy(po, " -"), umaxtostr(eword + 1, tmp)); - stpcpy(stpcpy(pn, ","), - umaxtostr(eword + 1 + (key->echar == (18446744073709551615UL)), - tmp)); - } - error(0, 0, - dcgettext(((void *)0), - "obsolescent key %s used; consider %s instead", 5), - quote_n(0, obuf), quote_n(1, nbuf)); - } - - _Bool zero_width = - key->sword != (18446744073709551615UL) && key->eword < key->sword; - if (zero_width) - error(0, 0, - dcgettext(((void *)0), "key %lu has zero width and will be ignored", - 5), - keynum); - - _Bool implicit_skip = key_numeric(key) || key->month; - - _Bool line_offset = key->eword == 0 && key->echar != 0; - if (!zero_width && !gkey_only && tab == TAB_DEFAULT && !line_offset && - ((!key->skipsblanks && !implicit_skip) || - (!key->skipsblanks && key->schar) || - (!key->skipeblanks && key->echar))) - error(0, 0, - dcgettext(((void *)0), - "leading blanks are significant in key %lu; " - "consider also specifying 'b'", - 5) - - , - keynum); - - if (!gkey_only && key_numeric(key)) { - size_t sword = key->sword + 1; - size_t eword = key->eword + 1; - if (!sword) - sword++; - if (!eword || sword < eword) { - error(0, 0, - dcgettext(((void *)0), - "key %lu is numeric and spans multiple fields", 5), - keynum); - if (key->general_numeric) - general_numeric_field_span = 1; - else - basic_numeric_field_span = 1; - } - } - - if (ugkey.ignore && (ugkey.ignore == key->ignore)) - ugkey.ignore = ((void *)0); - if (ugkey.translate && (ugkey.translate == key->translate)) - ugkey.translate = ((void *)0); - ugkey.skipsblanks &= !key->skipsblanks; - ugkey.skipeblanks &= !key->skipeblanks; - ugkey.month &= !key->month; - ugkey.numeric &= !key->numeric; - ugkey.general_numeric &= !key->general_numeric; - ugkey.human_numeric &= !key->human_numeric; - ugkey.random &= !key->random; - ugkey.version &= !key->version; - ugkey.reverse &= !key->reverse; - } - - _Bool number_locale_warned = 0; - if (basic_numeric_field_span) { - if (tab == TAB_DEFAULT - ? thousands_sep != NON_CHAR && - (((*__ctype_b_loc())[(int)((to_uchar(thousands_sep)))] & - (unsigned short int)_ISblank)) - : tab == thousands_sep) { - error(0, 0, - - dcgettext(((void *)0), - "field separator %s is treated as a " - "group separator in numbers", - 5) - - , - quote(((char[]){thousands_sep, 0}))); - number_locale_warned = 1; - } - } - if (basic_numeric_field_span || general_numeric_field_span) { - if (tab == TAB_DEFAULT - ? thousands_sep != NON_CHAR && - (((*__ctype_b_loc())[(int)((to_uchar(decimal_point)))] & - (unsigned short int)_ISblank)) - : tab == decimal_point) { - error(0, 0, - - dcgettext(((void *)0), - "field separator %s is treated as a " - "decimal point in numbers", - 5) - - , - quote(((char[]){decimal_point, 0}))); - number_locale_warned = 1; - } else if (tab == '-') { - error(0, 0, - - dcgettext(((void *)0), - "field separator %s is treated as a " - "minus sign in numbers", - 5) - - , - quote(((char[]){tab, 0}))); - } else if (general_numeric_field_span && tab == '+') { - error(0, 0, - - dcgettext(((void *)0), - "field separator %s is treated as a " - "plus sign in numbers", - 5) - - , - quote(((char[]){tab, 0}))); - } - } - - if ((basic_numeric_field || general_numeric_field) && !number_locale_warned) { - error(0, 0, - - dcgettext(((void *)0), - "%snumbers use %s as a decimal point in this locale", 5), - tab == decimal_point ? "" : dcgettext(((void *)0), "note ", 5), - quote(((char[]){decimal_point, 0}))); - } - - if (basic_numeric_field && thousands_sep_ignored) { - error(0, 0, - - dcgettext(((void *)0), - "the multi-byte number group separator " - "in this locale is not supported", - 5) - - ); - } - - if (!default_key_compare(&ugkey) || - (ugkey.reverse && (stable || unique) && keylist)) { - - _Bool ugkey_reverse = ugkey.reverse; - if (!(stable || unique)) - ugkey.reverse = 0; - - char opts[sizeof short_options]; - key_to_opts(&ugkey, opts); - error(0, 0, - - dcngettext(((void *)0), "option '-%s' is ignored", - "options '-%s' are ignored", select_plural(strlen(opts)), - 5) - - , - opts); - ugkey.reverse = ugkey_reverse; - } - if (ugkey.reverse && !(stable || unique) && keylist) - error(0, 0, - dcgettext(((void *)0), - "option '-r' only applies to last-resort comparison", 5)); -} - -static int keycompare(struct line const *a, struct line const *b) { - struct keyfield *key = keylist; - - char *texta = a->keybeg; - char *textb = b->keybeg; - char *lima = a->keylim; - char *limb = b->keylim; - - int diff; - - while (1) { - char const *translate = key->translate; - - _Bool const *ignore = key->ignore; - - lima = (((texta) > (lima)) ? (texta) : (lima)); - limb = (((textb) > (limb)) ? (textb) : (limb)); - - size_t lena = lima - texta; - size_t lenb = limb - textb; - - if (hard_LC_COLLATE || key_numeric(key) || key->month || key->random || - key->version) { - char *ta; - char *tb; - size_t tlena; - size_t tlenb; - - char enda; - char endb; - void *allocated; - char stackbuf[4000]; - - if (ignore || translate) { - - size_t i; - - size_t size = lena + 1 + lenb + 1; - if (size <= sizeof stackbuf) - ta = stackbuf, allocated = ((void *)0); - else - ta = allocated = xmalloc(size); - tb = ta + lena + 1; - - for (tlena = i = 0; i < lena; i++) - if (!(ignore && ignore[to_uchar(texta[i])])) - ta[tlena++] = - (translate ? translate[to_uchar(texta[i])] : texta[i]); - ta[tlena] = '\0'; - - for (tlenb = i = 0; i < lenb; i++) - if (!(ignore && ignore[to_uchar(textb[i])])) - tb[tlenb++] = - (translate ? translate[to_uchar(textb[i])] : textb[i]); - tb[tlenb] = '\0'; - } else { - - ta = texta; - tlena = lena; - enda = ta[tlena]; - ta[tlena] = '\0'; - tb = textb; - tlenb = lenb; - endb = tb[tlenb]; - tb[tlenb] = '\0'; - } - - if (key->numeric) - diff = numcompare(ta, tb); - else if (key->general_numeric) - diff = general_numcompare(ta, tb); - else if (key->human_numeric) - diff = human_numcompare(ta, tb); - else if (key->month) - diff = getmonth(ta, ((void *)0)) - getmonth(tb, ((void *)0)); - else if (key->random) - diff = compare_random(ta, tlena, tb, tlenb); - else if (key->version) - diff = filenvercmp(ta, tlena, tb, tlenb); - else { - - if (tlena == 0) - diff = -((tlenb) != 0); - else if (tlenb == 0) - diff = 1; - else - diff = xmemcoll0(ta, tlena + 1, tb, tlenb + 1); - } - - if (ignore || translate) - free(allocated); - else { - ta[tlena] = enda; - tb[tlenb] = endb; - } - } else if (ignore) { - if (translate) - do { - while (1) { - while (texta < lima && ignore[to_uchar(*texta)]) - ++texta; - while (textb < limb && ignore[to_uchar(*textb)]) - ++textb; - if (!(texta < lima && textb < limb)) - break; - diff = to_uchar(translate[to_uchar(*texta)]) - - to_uchar(translate[to_uchar(*textb)]); - if (diff) - goto not_equal; - ++texta; - ++textb; - } - diff = (texta < lima) - (textb < limb); - } while (0); - else - do { - while (1) { - while (texta < lima && ignore[to_uchar(*texta)]) - ++texta; - while (textb < limb && ignore[to_uchar(*textb)]) - ++textb; - if (!(texta < lima && textb < limb)) - break; - diff = to_uchar(*texta) - to_uchar(*textb); - if (diff) - goto not_equal; - ++texta; - ++textb; - } - diff = (texta < lima) - (textb < limb); - } while (0); - } else if (lena == 0) - diff = -((lenb) != 0); - else if (lenb == 0) - goto greater; - else { - if (translate) { - while (texta < lima && textb < limb) { - diff = (to_uchar(translate[to_uchar(*texta++)]) - - to_uchar(translate[to_uchar(*textb++)])); - if (diff) - goto not_equal; - } - } else { - diff = memcmp(texta, textb, (((lena) < (lenb)) ? (lena) : (lenb))); - if (diff) - goto not_equal; - } - diff = lena < lenb ? -1 : lena != lenb; - } - - if (diff) - goto not_equal; - - key = key->next; - if (!key) - break; - - if (key->eword != (18446744073709551615UL)) - lima = limfield(a, key), limb = limfield(b, key); - else - lima = a->text + a->length - 1, limb = b->text + b->length - 1; - - if (key->sword != (18446744073709551615UL)) - texta = begfield(a, key), textb = begfield(b, key); - else { - texta = a->text, textb = b->text; - if (key->skipsblanks) { - while (texta < lima && blanks[to_uchar(*texta)]) - ++texta; - while (textb < limb && blanks[to_uchar(*textb)]) - ++textb; - } - } - } - - return 0; - -greater: - diff = 1; -not_equal: - return key->reverse ? -diff : diff; -} - -static int compare(struct line const *a, struct line const *b) { - int diff; - size_t alen, blen; - - if (keylist) { - diff = keycompare(a, b); - if (diff || unique || stable) - return diff; - } - - alen = a->length - 1, blen = b->length - 1; - - if (alen == 0) - diff = -((blen) != 0); - else if (blen == 0) - diff = 1; - else if (hard_LC_COLLATE) { - - diff = xmemcoll0(a->text, alen + 1, b->text, blen + 1); - } else if (!(diff = memcmp(a->text, b->text, - (((alen) < (blen)) ? (alen) : (blen))))) - diff = alen < blen ? -1 : alen != blen; - - return reverse ? -diff : diff; -} - -static void write_line(struct line const *line, FILE *fp, - char const *output_file) { - char *buf = line->text; - size_t n_bytes = line->length; - char *ebuf = buf + n_bytes; - - if (!output_file && debug) { - - char const *c = buf; - - while (c < ebuf) { - char wc = *c++; - if (wc == '\t') - wc = '>'; - else if (c == ebuf) - wc = '\n'; - if (fputc_unlocked(wc, fp) == (-1)) - sort_die(dcgettext(((void *)0), "write failed", 5), output_file); - } - - debug_line(line); - } else { - ebuf[-1] = eolchar; - if (fwrite_unlocked(buf, 1, n_bytes, fp) != n_bytes) - sort_die(dcgettext(((void *)0), "write failed", 5), output_file); - ebuf[-1] = '\0'; - } -} - -static _Bool - -check(char const *file_name, char checkonly) { - FILE *fp = xfopen(file_name, "r"); - struct buffer buf; - struct line temp; - size_t alloc = 0; - uintmax_t line_number = 0; - struct keyfield const *key = keylist; - - _Bool nonunique = !unique; - - _Bool ordered = 1; - - initbuf(&buf, sizeof(struct line), - - (((merge_buffer_size) > (sort_size)) ? (merge_buffer_size) - : (sort_size))); - temp.text = ((void *)0); - - while (fillbuf(&buf, fp, file_name)) { - struct line const *line = buffer_linelim(&buf); - struct line const *linebase = line - buf.nlines; - - if (alloc && nonunique <= compare(&temp, line - 1)) { - found_disorder : { - if (checkonly == 'c') { - struct line const *disorder_line = line - 1; - uintmax_t disorder_line_number = - buffer_linelim(&buf) - disorder_line + line_number; - char hr_buf[((((((sizeof(disorder_line_number) * 8) - - (!((__typeof__(disorder_line_number))0 < - (__typeof__(disorder_line_number))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(disorder_line_number))0 < - (__typeof__(disorder_line_number))-1))) + - 1)]; - fprintf(stderr, dcgettext(((void *)0), "%s: %s:%s: disorder: ", 5), - program_name, file_name, - umaxtostr(disorder_line_number, hr_buf)); - write_line(disorder_line, stderr, - dcgettext(((void *)0), "standard error", 5)); - } - - ordered = 0; - break; - } - } - - while (linebase < --line) - if (nonunique <= compare(line, line - 1)) - goto found_disorder; - - line_number += buf.nlines; - - if (alloc < line->length) { - do { - alloc *= 2; - if (!alloc) { - alloc = line->length; - break; - } - } while (alloc < line->length); - - free(temp.text); - temp.text = xmalloc(alloc); - } - memcpy(temp.text, line->text, line->length); - temp.length = line->length; - if (key) { - temp.keybeg = temp.text + (line->keybeg - line->text); - temp.keylim = temp.text + (line->keylim - line->text); - } - } - - xfclose(fp, file_name); - free(buf.buf); - free(temp.text); - return ordered; -} - -static size_t open_input_files(struct sortfile *files, size_t nfiles, - FILE ***pfps) { - FILE **fps = *pfps = xnmalloc(nfiles, sizeof *fps); - int i; - - for (i = 0; i < nfiles; i++) { - fps[i] = (files[i].temp && files[i].temp->state != UNCOMPRESSED - ? open_temp(files[i].temp) - : stream_open(files[i].name, "r")); - if (!fps[i]) - break; - } - - return i; -} -static void mergefps(struct sortfile *files, size_t ntemps, size_t nfiles, - FILE *ofp, char const *output_file, FILE **fps) { - struct buffer *buffer = xnmalloc(nfiles, sizeof *buffer); - - struct line saved; - struct line const *savedline = ((void *)0); - - size_t savealloc = 0; - struct line const **cur = xnmalloc(nfiles, sizeof *cur); - - struct line const **base = xnmalloc(nfiles, sizeof *base); - - size_t *ord = xnmalloc(nfiles, sizeof *ord); - - size_t i; - size_t j; - size_t t; - struct keyfield const *key = keylist; - saved.text = ((void *)0); - - for (i = 0; i < nfiles;) { - initbuf(&buffer[i], sizeof(struct line), - - (((merge_buffer_size) > (sort_size / nfiles)) - ? (merge_buffer_size) - : (sort_size / nfiles))); - if (fillbuf(&buffer[i], fps[i], files[i].name)) { - struct line const *linelim = buffer_linelim(&buffer[i]); - cur[i] = linelim - 1; - base[i] = linelim - buffer[i].nlines; - i++; - } else { - - xfclose(fps[i], files[i].name); - if (i < ntemps) { - ntemps--; - zaptemp(files[i].name); - } - free(buffer[i].buf); - --nfiles; - for (j = i; j < nfiles; ++j) { - files[j] = files[j + 1]; - fps[j] = fps[j + 1]; - } - } - } - - for (i = 0; i < nfiles; ++i) - ord[i] = i; - for (i = 1; i < nfiles; ++i) - if (0 < compare(cur[ord[i - 1]], cur[ord[i]])) - t = ord[i - 1], ord[i - 1] = ord[i], ord[i] = t, i = 0; - - while (nfiles) { - struct line const *smallest = cur[ord[0]]; - - if (unique) { - if (savedline && compare(savedline, smallest)) { - savedline = ((void *)0); - write_line(&saved, ofp, output_file); - } - if (!savedline) { - savedline = &saved; - if (savealloc < smallest->length) { - do - if (!savealloc) { - savealloc = smallest->length; - break; - } - while ((savealloc *= 2) < smallest->length); - - free(saved.text); - saved.text = xmalloc(savealloc); - } - saved.length = smallest->length; - memcpy(saved.text, smallest->text, saved.length); - if (key) { - saved.keybeg = saved.text + (smallest->keybeg - smallest->text); - saved.keylim = saved.text + (smallest->keylim - smallest->text); - } - } - } else - write_line(smallest, ofp, output_file); - - if (base[ord[0]] < smallest) - cur[ord[0]] = smallest - 1; - else { - if (fillbuf(&buffer[ord[0]], fps[ord[0]], files[ord[0]].name)) { - struct line const *linelim = buffer_linelim(&buffer[ord[0]]); - cur[ord[0]] = linelim - 1; - base[ord[0]] = linelim - buffer[ord[0]].nlines; - } else { - - for (i = 1; i < nfiles; ++i) - if (ord[i] > ord[0]) - --ord[i]; - --nfiles; - xfclose(fps[ord[0]], files[ord[0]].name); - if (ord[0] < ntemps) { - ntemps--; - zaptemp(files[ord[0]].name); - } - free(buffer[ord[0]].buf); - for (i = ord[0]; i < nfiles; ++i) { - fps[i] = fps[i + 1]; - files[i] = files[i + 1]; - buffer[i] = buffer[i + 1]; - cur[i] = cur[i + 1]; - base[i] = base[i + 1]; - } - for (i = 0; i < nfiles; ++i) - ord[i] = ord[i + 1]; - continue; - } - } - - { - size_t lo = 1; - size_t hi = nfiles; - size_t probe = lo; - size_t ord0 = ord[0]; - size_t count_of_smaller_lines; - - while (lo < hi) { - int cmp = compare(cur[ord0], cur[ord[probe]]); - if (cmp < 0 || (cmp == 0 && ord0 < ord[probe])) - hi = probe; - else - lo = probe + 1; - probe = (lo + hi) / 2; - } - - count_of_smaller_lines = lo - 1; - for (j = 0; j < count_of_smaller_lines; j++) - ord[j] = ord[j + 1]; - ord[count_of_smaller_lines] = ord0; - } - } - - if (unique && savedline) { - write_line(&saved, ofp, output_file); - free(saved.text); - } - - xfclose(ofp, output_file); - free(fps); - free(buffer); - free(ord); - free(base); - free(cur); -} -static size_t mergefiles(struct sortfile *files, size_t ntemps, size_t nfiles, - FILE *ofp, char const *output_file) { - FILE **fps; - size_t nopened = open_input_files(files, nfiles, &fps); - if (nopened < nfiles && nopened < 2) - sort_die(dcgettext(((void *)0), "open failed", 5), files[nopened].name); - mergefps(files, ntemps, nopened, ofp, output_file, fps); - return nopened; -} - -static void mergelines(struct line *__restrict__ t, size_t nlines, - struct line const *__restrict__ lo) { - size_t nlo = nlines / 2; - size_t nhi = nlines - nlo; - struct line *hi = t - nlo; - - while (1) - if (compare(lo - 1, hi - 1) <= 0) { - *--t = *--lo; - if (!--nlo) { - - return; - } - } else { - *--t = *--hi; - if (!--nhi) { - do - *--t = *--lo; - while (--nlo); - - return; - } - } -} -static void sequential_sort(struct line *__restrict__ lines, size_t nlines, - struct line *__restrict__ temp, _Bool to_temp) { - if (nlines == 2) { - - int swap = (0 < compare(&lines[-1], &lines[-2])); - if (to_temp) { - temp[-1] = lines[-1 - swap]; - temp[-2] = lines[-2 + swap]; - } else if (swap) { - temp[-1] = lines[-1]; - lines[-1] = lines[-2]; - lines[-2] = temp[-1]; - } - } else { - size_t nlo = nlines / 2; - size_t nhi = nlines - nlo; - struct line *lo = lines; - struct line *hi = lines - nlo; - - sequential_sort(hi, nhi, temp - (to_temp ? nlo : 0), to_temp); - if (1 < nlo) - sequential_sort(lo, nlo, temp, !to_temp); - else if (!to_temp) - temp[-1] = lo[-1]; - - struct line *dest; - struct line const *sorted_lo; - if (to_temp) { - dest = temp; - sorted_lo = lines; - } else { - dest = lines; - sorted_lo = temp; - } - mergelines(dest, nlines, sorted_lo); - } -} - -static struct merge_node *init_node(struct merge_node *__restrict__, - struct merge_node *__restrict__, - struct line *, size_t, size_t, _Bool); - -static struct merge_node *merge_tree_init(size_t nthreads, size_t nlines, - struct line *dest) { - struct merge_node *merge_tree = xmalloc(2 * sizeof *merge_tree * nthreads); - - struct merge_node *root = merge_tree; - root->lo = root->hi = root->end_lo = root->end_hi = ((void *)0); - root->dest = ((void *)0); - root->nlo = root->nhi = nlines; - root->parent = ((void *)0); - root->level = MERGE_END; - root->queued = 0; - pthread_mutex_init(&root->lock, ((void *)0)); - - init_node(root, root + 1, dest, nthreads, nlines, 0); - return merge_tree; -} - -static void merge_tree_destroy(size_t nthreads, struct merge_node *merge_tree) { - size_t n_nodes = nthreads * 2; - struct merge_node *node = merge_tree; - - while (n_nodes--) { - pthread_mutex_destroy(&node->lock); - node++; - } - - free(merge_tree); -} -static struct merge_node *init_node(struct merge_node *__restrict__ parent, - struct merge_node *__restrict__ node_pool, - struct line *dest, size_t nthreads, - size_t total_lines, _Bool is_lo_child) { - size_t nlines = (is_lo_child ? parent->nlo : parent->nhi); - size_t nlo = nlines / 2; - size_t nhi = nlines - nlo; - struct line *lo = dest - total_lines; - struct line *hi = lo - nlo; - struct line **parent_end = (is_lo_child ? &parent->end_lo : &parent->end_hi); - - struct merge_node *node = node_pool++; - node->lo = node->end_lo = lo; - node->hi = node->end_hi = hi; - node->dest = parent_end; - node->nlo = nlo; - node->nhi = nhi; - node->parent = parent; - node->level = parent->level + 1; - node->queued = 0; - pthread_mutex_init(&node->lock, ((void *)0)); - - if (nthreads > 1) { - size_t lo_threads = nthreads / 2; - size_t hi_threads = nthreads - lo_threads; - node->lo_child = node_pool; - node_pool = init_node(node, node_pool, lo, lo_threads, total_lines, 1); - node->hi_child = node_pool; - node_pool = init_node(node, node_pool, hi, hi_threads, total_lines, 0); - } else { - node->lo_child = ((void *)0); - node->hi_child = ((void *)0); - } - return node_pool; -} - -static int compare_nodes(void const *a, void const *b) { - struct merge_node const *nodea = a; - struct merge_node const *nodeb = b; - if (nodea->level == nodeb->level) - return (nodea->nlo + nodea->nhi) < (nodeb->nlo + nodeb->nhi); - return nodea->level < nodeb->level; -} - -static inline void lock_node(struct merge_node *node) { - pthread_mutex_lock(&node->lock); -} - -static inline void unlock_node(struct merge_node *node) { - pthread_mutex_unlock(&node->lock); -} - -static void queue_destroy(struct merge_node_queue *queue) { - heap_free(queue->priority_queue); - pthread_cond_destroy(&queue->cond); - pthread_mutex_destroy(&queue->mutex); -} - -static void queue_init(struct merge_node_queue *queue, size_t nthreads) { - - queue->priority_queue = heap_alloc(compare_nodes, 2 * nthreads); - pthread_mutex_init(&queue->mutex, ((void *)0)); - pthread_cond_init(&queue->cond, ((void *)0)); -} - -static void queue_insert(struct merge_node_queue *queue, - struct merge_node *node) { - pthread_mutex_lock(&queue->mutex); - heap_insert(queue->priority_queue, node); - node->queued = 1; - pthread_cond_signal(&queue->cond); - pthread_mutex_unlock(&queue->mutex); -} - -static struct merge_node *queue_pop(struct merge_node_queue *queue) { - struct merge_node *node; - pthread_mutex_lock(&queue->mutex); - while (!(node = heap_remove_top(queue->priority_queue))) - pthread_cond_wait(&queue->cond, &queue->mutex); - pthread_mutex_unlock(&queue->mutex); - lock_node(node); - node->queued = 0; - return node; -} -static void write_unique(struct line const *line, FILE *tfp, - char const *temp_output) { - if (unique) { - if (saved_line.text && !compare(line, &saved_line)) - return; - saved_line = *line; - } - - write_line(line, tfp, temp_output); -} -static void mergelines_node(struct merge_node *__restrict__ node, - size_t total_lines, FILE *tfp, - char const *temp_output) { - struct line *lo_orig = node->lo; - struct line *hi_orig = node->hi; - size_t to_merge = (((total_lines) >> (2 * ((node->level) + 1))) + 1); - size_t merged_lo; - size_t merged_hi; - - if (node->level > MERGE_ROOT) { - - struct line *dest = *node->dest; - while (node->lo != node->end_lo && node->hi != node->end_hi && to_merge--) - if (compare(node->lo - 1, node->hi - 1) <= 0) - *--dest = *--node->lo; - else - *--dest = *--node->hi; - - merged_lo = lo_orig - node->lo; - merged_hi = hi_orig - node->hi; - - if (node->nhi == merged_hi) - while (node->lo != node->end_lo && to_merge--) - *--dest = *--node->lo; - else if (node->nlo == merged_lo) - while (node->hi != node->end_hi && to_merge--) - *--dest = *--node->hi; - *node->dest = dest; - } else { - - while (node->lo != node->end_lo && node->hi != node->end_hi && to_merge--) { - if (compare(node->lo - 1, node->hi - 1) <= 0) - write_unique(--node->lo, tfp, temp_output); - else - write_unique(--node->hi, tfp, temp_output); - } - - merged_lo = lo_orig - node->lo; - merged_hi = hi_orig - node->hi; - - if (node->nhi == merged_hi) { - while (node->lo != node->end_lo && to_merge--) - write_unique(--node->lo, tfp, temp_output); - } else if (node->nlo == merged_lo) { - while (node->hi != node->end_hi && to_merge--) - write_unique(--node->hi, tfp, temp_output); - } - } - - merged_lo = lo_orig - node->lo; - merged_hi = hi_orig - node->hi; - node->nlo -= merged_lo; - node->nhi -= merged_hi; -} - -static void queue_check_insert(struct merge_node_queue *queue, - struct merge_node *node) { - if (!node->queued) { - - _Bool lo_avail = (node->lo - node->end_lo) != 0; - - _Bool hi_avail = (node->hi - node->end_hi) != 0; - if (lo_avail ? hi_avail || !node->nhi : hi_avail && !node->nlo) - queue_insert(queue, node); - } -} - -static void queue_check_insert_parent(struct merge_node_queue *queue, - struct merge_node *node) { - if (node->level > MERGE_ROOT) { - lock_node(node->parent); - queue_check_insert(queue, node->parent); - unlock_node(node->parent); - } else if (node->nlo + node->nhi == 0) { - - queue_insert(queue, node->parent); - } -} - -static void merge_loop(struct merge_node_queue *queue, size_t total_lines, - FILE *tfp, char const *temp_output) { - while (1) { - struct merge_node *node = queue_pop(queue); - - if (node->level == MERGE_END) { - unlock_node(node); - - queue_insert(queue, node); - break; - } - mergelines_node(node, total_lines, tfp, temp_output); - queue_check_insert(queue, node); - queue_check_insert_parent(queue, node); - - unlock_node(node); - } -} - -static void sortlines(struct line *__restrict__, size_t, size_t, - struct merge_node *, struct merge_node_queue *, FILE *, - char const *); - -struct thread_args { - - struct line *lines; - - size_t nthreads; - - size_t const total_lines; - - struct merge_node *const node; - - struct merge_node_queue *const queue; - - FILE *tfp; - char const *output_temp; -}; - -static void *sortlines_thread(void *data) { - struct thread_args const *args = data; - sortlines(args->lines, args->nthreads, args->total_lines, args->node, - args->queue, args->tfp, args->output_temp); - return ((void *)0); -} -static void sortlines(struct line *__restrict__ lines, size_t nthreads, - size_t total_lines, struct merge_node *node, - struct merge_node_queue *queue, FILE *tfp, - char const *temp_output) { - size_t nlines = node->nlo + node->nhi; - - size_t lo_threads = nthreads / 2; - size_t hi_threads = nthreads - lo_threads; - pthread_t thread; - struct thread_args args = {lines, lo_threads, total_lines, node->lo_child, - queue, tfp, temp_output}; - - if (nthreads > 1 && SUBTHREAD_LINES_HEURISTIC <= nlines && - pthread_create(&thread, ((void *)0), sortlines_thread, &args) == 0) { - sortlines(lines - node->nlo, hi_threads, total_lines, node->hi_child, queue, - tfp, temp_output); - pthread_join(thread, ((void *)0)); - } else { - - size_t nlo = node->nlo; - size_t nhi = node->nhi; - struct line *temp = lines - total_lines; - if (1 < nhi) - sequential_sort(lines - nlo, nhi, temp - nlo / 2, 0); - if (1 < nlo) - sequential_sort(lines, nlo, temp, 0); - - node->lo = lines; - node->hi = lines - nlo; - node->end_lo = lines - nlo; - node->end_hi = lines - nlo - nhi; - - queue_insert(queue, node); - merge_loop(queue, total_lines, tfp, temp_output); - } -} -static void avoid_trashing_input(struct sortfile *files, size_t ntemps, - size_t nfiles, char const *outfile) { - struct tempnode *tempcopy = ((void *)0); - - for (size_t i = ntemps; i < nfiles; i++) { - - _Bool is_stdin = (strcmp(files[i].name, "-") == 0); - - _Bool same; - struct stat instat; - - if (outfile && (strcmp(outfile, files[i].name) == 0) && !is_stdin) - same = 1; - else { - struct stat *outst = get_outstatus(); - if (!outst) - break; - - same = (((is_stdin ? fstat(0, &instat) : stat(files[i].name, &instat)) == - 0) && - ((instat).st_ino == (*outst).st_ino && - (instat).st_dev == (*outst).st_dev)); - } - - if (same) { - if (!tempcopy) { - FILE *tftp; - tempcopy = create_temp(&tftp); - mergefiles(&files[i], 0, 1, tftp, tempcopy->name); - } - - files[i].name = tempcopy->name; - files[i].temp = tempcopy; - } - } -} -static void check_inputs(char *const *files, size_t nfiles) { - for (size_t i = 0; i < nfiles; i++) { - if ((strcmp(files[i], "-") == 0)) - continue; - - if (euidaccess(files[i], 4) != 0) - sort_die(dcgettext(((void *)0), "cannot read", 5), files[i]); - } -} - -static void check_output(char const *outfile) { - if (outfile) { - int oflags = 01 | 0 | 02000000 | 0100; - int outfd = open(outfile, oflags, - (0400 | 0200 | (0400 >> 3) | (0200 >> 3) | - ((0400 >> 3) >> 3) | ((0200 >> 3) >> 3))); - if (outfd < 0) - sort_die(dcgettext(((void *)0), "open failed", 5), outfile); - move_fd(outfd, 1); - } -} - -static void merge(struct sortfile *files, size_t ntemps, size_t nfiles, - char const *output_file) { - while (nmerge < nfiles) { - - size_t in; - - size_t out; - - size_t remainder; - - size_t cheap_slots; - - for (out = in = 0; nmerge <= nfiles - in; out++) { - FILE *tfp; - struct tempnode *temp = create_temp(&tfp); - size_t num_merged = - mergefiles(&files[in], (((ntemps) < (nmerge)) ? (ntemps) : (nmerge)), - nmerge, tfp, temp->name); - ntemps -= (((ntemps) < (num_merged)) ? (ntemps) : (num_merged)); - files[out].name = temp->name; - files[out].temp = temp; - in += num_merged; - } - - remainder = nfiles - in; - cheap_slots = nmerge - out % nmerge; - - if (cheap_slots < remainder) { - - size_t nshortmerge = remainder - cheap_slots + 1; - FILE *tfp; - struct tempnode *temp = create_temp(&tfp); - size_t num_merged = mergefiles( - &files[in], (((ntemps) < (nshortmerge)) ? (ntemps) : (nshortmerge)), - nshortmerge, tfp, temp->name); - ntemps -= (((ntemps) < (num_merged)) ? (ntemps) : (num_merged)); - files[out].name = temp->name; - files[out++].temp = temp; - in += num_merged; - } - - memmove(&files[out], &files[in], (nfiles - in) * sizeof *files); - ntemps += out; - nfiles -= in - out; - } - - avoid_trashing_input(files, ntemps, nfiles, output_file); - - while (1) { - - FILE **fps; - size_t nopened = open_input_files(files, nfiles, &fps); - - if (nopened == nfiles) { - FILE *ofp = stream_open(output_file, "w"); - if (ofp) { - mergefps(files, ntemps, nfiles, ofp, output_file, fps); - break; - } - if ((*__errno_location()) != 24 || nopened <= 2) - sort_die(dcgettext(((void *)0), "open failed", 5), output_file); - } else if (nopened <= 2) - sort_die(dcgettext(((void *)0), "open failed", 5), files[nopened].name); - - FILE *tfp; - struct tempnode *temp; - do { - nopened--; - xfclose(fps[nopened], files[nopened].name); - temp = maybe_create_temp(&tfp, !(nopened <= 2)); - } while (!temp); - - mergefps(&files[0], (((ntemps) < (nopened)) ? (ntemps) : (nopened)), - nopened, tfp, temp->name, fps); - ntemps -= (((ntemps) < (nopened)) ? (ntemps) : (nopened)); - files[0].name = temp->name; - files[0].temp = temp; - - memmove(&files[1], &files[nopened], (nfiles - nopened) * sizeof *files); - ntemps++; - nfiles -= nopened - 1; - } -} - -static void sort(char *const *files, size_t nfiles, char const *output_file, - size_t nthreads) { - struct buffer buf; - size_t ntemps = 0; - - _Bool output_file_created = 0; - - buf.alloc = 0; - - while (nfiles) { - char const *temp_output; - char const *file = *files; - FILE *fp = xfopen(file, "r"); - FILE *tfp; - - size_t bytes_per_line; - if (nthreads > 1) { - - size_t tmp = 1; - size_t mult = 1; - while (tmp < nthreads) { - tmp *= 2; - mult++; - } - bytes_per_line = (mult * sizeof(struct line)); - } else - bytes_per_line = sizeof(struct line) * 3 / 2; - - if (!buf.alloc) - initbuf(&buf, bytes_per_line, - sort_buffer_size(&fp, 1, files, nfiles, bytes_per_line)); - buf.eof = 0; - files++; - nfiles--; - - while (fillbuf(&buf, fp, file)) { - struct line *line; - - if (buf.eof && nfiles && - (bytes_per_line + 1 < - (buf.alloc - buf.used - bytes_per_line * buf.nlines))) { - - buf.left = buf.used; - break; - } - - saved_line.text = ((void *)0); - line = buffer_linelim(&buf); - if (buf.eof && !nfiles && !ntemps && !buf.left) { - xfclose(fp, file); - tfp = xfopen(output_file, "w"); - temp_output = output_file; - output_file_created = 1; - } else { - ++ntemps; - temp_output = create_temp(&tfp)->name; - } - if (1 < buf.nlines) { - struct merge_node_queue queue; - queue_init(&queue, nthreads); - struct merge_node *merge_tree = - merge_tree_init(nthreads, buf.nlines, line); - - sortlines(line, nthreads, buf.nlines, merge_tree + 1, &queue, tfp, - temp_output); - - merge_tree_destroy(nthreads, merge_tree); - queue_destroy(&queue); - } else - write_unique(line - 1, tfp, temp_output); - - xfclose(tfp, temp_output); - - if (output_file_created) - goto finish; - } - xfclose(fp, file); - } - -finish: - free(buf.buf); - - if (!output_file_created) { - struct tempnode *node = temphead; - struct sortfile *tempfiles = xnmalloc(ntemps, sizeof *tempfiles); - for (size_t i = 0; node; i++) { - tempfiles[i].name = node->name; - tempfiles[i].temp = node; - node = node->next; - } - merge(tempfiles, ntemps, ntemps, output_file); - free(tempfiles); - } - - reap_all(); -} - -static void insertkey(struct keyfield *key_arg) { - struct keyfield **p; - struct keyfield *key = xmemdup(key_arg, sizeof *key); - - for (p = &keylist; *p; p = &(*p)->next) - continue; - *p = key; - key->next = ((void *)0); -} - -static void badfieldspec(char const *spec, char const *msgid) { - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: " - "invalid field specification %s\", 5), dcgettext (((void " - "*)0), msgid, 5), quote (spec)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - SORT_FAILURE, 0, - dcgettext(((void *)0), "%s: invalid field specification %s", 5), - dcgettext(((void *)0), msgid, 5), quote(spec)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - SORT_FAILURE, 0, - dcgettext(((void *)0), "%s: invalid field specification %s", 5), - dcgettext(((void *)0), msgid, 5), quote(spec)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static void incompatible_options(char const *opts) { - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"options " - "'-%s' are incompatible\", 5), (opts)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "options '-%s' are incompatible", 5), - (opts)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "options '-%s' are incompatible", 5), - (opts)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static void check_ordering_compatibility(void) { - struct keyfield *key; - - for (key = keylist; key; key = key->next) - if (1 < (key->numeric + key->general_numeric + key->human_numeric + - key->month + (key->version | key->random | !!key->ignore))) { - - char opts[sizeof short_options]; - - key->skipsblanks = key->skipeblanks = key->reverse = 0; - key_to_opts(key, opts); - incompatible_options(opts); - } -} - -static char const *parse_field_count(char const *string, size_t *val, - char const *msgid) { - char *suffix; - uintmax_t n; - - switch (xstrtoumax(string, &suffix, 10, &n, "")) { - case LONGINT_OK: - case LONGINT_INVALID_SUFFIX_CHAR: - *val = n; - if (*val == n) - break; - ; - case LONGINT_OVERFLOW: - case LONGINT_OVERFLOW | LONGINT_INVALID_SUFFIX_CHAR: - *val = (18446744073709551615UL); - break; - - case LONGINT_INVALID: - if (msgid) - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: " - "invalid count at start of %s\", 5), dcgettext (((void " - "*)0), msgid, 5), quote (string)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "%s: invalid count at start of %s", - 5), - dcgettext(((void *)0), msgid, 5), quote(string)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "%s: invalid count at start of %s", - 5), - dcgettext(((void *)0), msgid, 5), quote(string)), - ((0) ? (void)0 : __builtin_unreachable())))); - return ((void *)0); - } - - return suffix; -} - -static void sighandler(int sig) { - if (!1) - signal(sig, ((__sighandler_t)1)); - - cleanup(); - - signal(sig, ((__sighandler_t)0)); - raise(sig); -} - -static char *set_ordering(char const *s, struct keyfield *key, - enum blanktype blanktype) { - while (*s) { - switch (*s) { - case 'b': - if (blanktype == bl_start || blanktype == bl_both) - key->skipsblanks = 1; - if (blanktype == bl_end || blanktype == bl_both) - key->skipeblanks = 1; - break; - case 'd': - key->ignore = nondictionary; - break; - case 'f': - key->translate = fold_toupper; - break; - case 'g': - key->general_numeric = 1; - break; - case 'h': - key->human_numeric = 1; - break; - case 'i': - - if (!key->ignore) - key->ignore = nonprinting; - break; - case 'M': - key->month = 1; - break; - case 'n': - key->numeric = 1; - break; - case 'R': - key->random = 1; - break; - case 'r': - key->reverse = 1; - break; - case 'V': - key->version = 1; - break; - default: - return (char *)s; - } - ++s; - } - return (char *)s; -} - -static struct keyfield *key_init(struct keyfield *key) { - memset(key, 0, sizeof *key); - key->eword = (18446744073709551615UL); - return key; -} - -int main(int argc, char **argv) { - struct keyfield *key; - struct keyfield key_buf; - struct keyfield gkey; - - _Bool gkey_only = 0; - char const *s; - int c = 0; - char checkonly = 0; - - _Bool mergeonly = 0; - char *random_source = ((void *)0); - - _Bool need_random = 0; - size_t nthreads = 0; - size_t nfiles = 0; - - _Bool posixly_correct = (getenv("POSIXLY_CORRECT") != ((void *)0)); - int posix_ver = posix2_version(); - - _Bool traditional_usage = !(200112 <= posix_ver && posix_ver < 200809); - char **files; - char *files_from = ((void *)0); - struct Tokens tok; - char const *outfile = ((void *)0); - - _Bool locale_ok; - - ; - set_program_name(argv[0]); - locale_ok = !!setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(SORT_FAILURE); - - hard_LC_COLLATE = hard_locale(3); - - hard_LC_TIME = hard_locale(2); - - { - struct lconv const *locale = localeconv(); - - decimal_point = locale->decimal_point[0]; - if (!decimal_point || locale->decimal_point[1]) - decimal_point = '.'; - - thousands_sep = locale->thousands_sep[0]; - if (thousands_sep && locale->thousands_sep[1]) - thousands_sep_ignored = 1; - if (!thousands_sep || locale->thousands_sep[1]) - thousands_sep = NON_CHAR; - } - - have_read_stdin = 0; - inittables(); - - { - size_t i; - static int const sig[] = { - - 14, 1, 2, 13, 3, 15, - - 29, - - 27, - - 26, - - 24, - - 25, - - }; - enum { nsigs = (sizeof(sig) / sizeof *(sig)) }; - - struct sigaction act; - - sigemptyset(&caught_signals); - for (i = 0; i < nsigs; i++) { - sigaction(sig[i], ((void *)0), &act); - if (act.__sigaction_handler.sa_handler != ((__sighandler_t)1)) - sigaddset(&caught_signals, sig[i]); - } - - act.__sigaction_handler.sa_handler = sighandler; - act.sa_mask = caught_signals; - act.sa_flags = 0; - - for (i = 0; i < nsigs; i++) - if (sigismember(&caught_signals, sig[i])) - sigaction(sig[i], &act, ((void *)0)); - } - signal(17, ((__sighandler_t)0)); - - atexit(exit_cleanup); - - key_init(&gkey); - gkey.sword = (18446744073709551615UL); - - files = xnmalloc(argc, sizeof *files); - - while (1) { - - int oi = -1; - - if (c == -1 || - (posixly_correct && nfiles != 0 && - !(traditional_usage && !checkonly && optind != argc && - argv[optind][0] == '-' && argv[optind][1] == 'o' && - (argv[optind][2] || optind + 1 != argc))) || - ((c = getopt_long(argc, argv, short_options, long_options, &oi)) == - -1)) { - if (argc <= optind) - break; - files[nfiles++] = argv[optind++]; - } else - switch (c) { - case 1: - key = ((void *)0); - if (optarg[0] == '+') { - - _Bool minus_pos_usage = - (optind != argc && argv[optind][0] == '-' && - ((unsigned int)(argv[optind][1]) - '0' <= 9)); - traditional_usage |= minus_pos_usage && !posixly_correct; - if (traditional_usage) { - - key = key_init(&key_buf); - s = parse_field_count(optarg + 1, &key->sword, ((void *)0)); - if (s && *s == '.') - s = parse_field_count(s + 1, &key->schar, ((void *)0)); - if (!(key->sword || key->schar)) - key->sword = (18446744073709551615UL); - if (!s || *set_ordering(s, key, bl_start)) - key = ((void *)0); - else { - if (minus_pos_usage) { - char const *optarg1 = argv[optind++]; - s = parse_field_count(optarg1 + 1, &key->eword, - "invalid number after '-'"); - - ((void)sizeof((s) ? 1 : 0), __extension__({ - if (s) - ; - else - __assert_fail("s", "src/sort.c", 4449, - __extension__ __PRETTY_FUNCTION__); - })); - if (*s == '.') - s = parse_field_count(s + 1, &key->echar, - "invalid number after '.'"); - if (!key->echar && key->eword) { - - key->eword--; - } - if (*set_ordering(s, key, bl_end)) - badfieldspec(optarg1, "stray character in field spec"); - } - key->traditional_used = 1; - insertkey(key); - } - } - } - if (!key) - files[nfiles++] = optarg; - break; - - case SORT_OPTION: - c = ((sort_types)[__xargmatch_internal( - "--sort", optarg, sort_args, (void const *)(sort_types), - sizeof *(sort_types), argmatch_die, 1)]); - ; - case 'b': - case 'd': - case 'f': - case 'g': - case 'h': - case 'i': - case 'M': - case 'n': - case 'r': - case 'R': - case 'V': { - char str[2]; - str[0] = c; - str[1] = '\0'; - set_ordering(str, &gkey, bl_both); - } break; - - case CHECK_OPTION: - c = (optarg ? ((check_types)[__xargmatch_internal( - "--check", optarg, check_args, - (void const *)(check_types), sizeof *(check_types), - argmatch_die, 1)]) - : 'c'); - ; - case 'c': - case 'C': - if (checkonly && checkonly != c) - incompatible_options("cC"); - checkonly = c; - break; - - case COMPRESS_PROGRAM_OPTION: - if (compress_program && !(strcmp(compress_program, optarg) == 0)) - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple " - "compress programs specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "multiple compress programs specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "multiple compress programs specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - compress_program = optarg; - break; - - case DEBUG_PROGRAM_OPTION: - debug = 1; - break; - - case FILES0_FROM_OPTION: - files_from = optarg; - break; - - case 'k': - key = key_init(&key_buf); - - s = parse_field_count(optarg, &key->sword, - "invalid number at field start"); - if (!key->sword--) { - - badfieldspec(optarg, "field number is zero"); - } - if (*s == '.') { - s = parse_field_count(s + 1, &key->schar, "invalid number after '.'"); - if (!key->schar--) { - - badfieldspec(optarg, "character offset is zero"); - } - } - if (!(key->sword || key->schar)) - key->sword = (18446744073709551615UL); - s = set_ordering(s, key, bl_start); - if (*s != ',') { - key->eword = (18446744073709551615UL); - key->echar = 0; - } else { - - s = parse_field_count(s + 1, &key->eword, "invalid number after ','"); - if (!key->eword--) { - - badfieldspec(optarg, "field number is zero"); - } - if (*s == '.') { - s = parse_field_count(s + 1, &key->echar, - "invalid number after '.'"); - } - s = set_ordering(s, key, bl_end); - } - if (*s) - badfieldspec(optarg, "stray character in field spec"); - insertkey(key); - break; - - case 'm': - mergeonly = 1; - break; - - case NMERGE_OPTION: - specify_nmerge(oi, c, optarg); - break; - - case 'o': - if (outfile && !(strcmp(outfile, optarg) == 0)) - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple " - "output files specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "multiple output files specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "multiple output files specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - outfile = optarg; - break; - - case RANDOM_SOURCE_OPTION: - if (random_source && !(strcmp(random_source, optarg) == 0)) - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple " - "random sources specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "multiple random sources specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "multiple random sources specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - random_source = optarg; - break; - - case 's': - stable = 1; - break; - - case 'S': - specify_sort_size(oi, c, optarg); - break; - - case 't': { - char newtab = optarg[0]; - if (!newtab) - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), " - "\"empty tab\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "empty tab", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "empty tab", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (optarg[1]) { - if ((strcmp(optarg, "\\0") == 0)) - newtab = '\0'; - else { - - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), " - "\"multi-character tab %s\", 5), quote (optarg)), " - "assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "multi-character tab %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "multi-character tab %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } - if (tab != TAB_DEFAULT && tab != newtab) - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), " - "\"incompatible tabs\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "incompatible tabs", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "incompatible tabs", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - tab = newtab; - } break; - - case 'T': - add_temp_dir(optarg); - break; - - case PARALLEL_OPTION: - nthreads = specify_nthreads(oi, c, optarg); - break; - - case 'u': - unique = 1; - break; - - case 'y': - if (optarg == argv[optind - 1]) { - char const *p; - for (p = optarg; ((unsigned int)(*p) - '0' <= 9); p++) - continue; - optind -= (*p != '\0'); - } - break; - - case 'z': - eolchar = 0; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "sort", "GNU coreutils", Version, ("Mike Haertel"), - ("Paul Eggert"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(SORT_FAILURE); - } - } - - if (files_from) { - - if (nfiles) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quotearg_style(shell_escape_always_quoting_style, files[0])); - fprintf(stderr, "%s\n", - - dcgettext(((void *)0), - "file operands cannot be combined with --files0-from", - 5)); - usage(SORT_FAILURE); - } - - FILE *stream = xfopen(files_from, "r"); - - readtokens0_init(&tok); - - if (!readtokens0(stream, &tok)) - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read " - "file names from %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, files_from)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - SORT_FAILURE, 0, - dcgettext(((void *)0), "cannot read file names from %s", 5), - quotearg_style(shell_escape_always_quoting_style, - files_from)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - SORT_FAILURE, 0, - dcgettext(((void *)0), "cannot read file names from %s", 5), - quotearg_style(shell_escape_always_quoting_style, - files_from)), - ((0) ? (void)0 : __builtin_unreachable())))); - xfclose(stream, files_from); - - if (tok.n_tok) { - free(files); - files = tok.tok; - nfiles = tok.n_tok; - for (size_t i = 0; i < nfiles; i++) { - if ((strcmp(files[i], "-") == 0)) - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), " - "\"when reading file names from stdin, \" \"no file " - "name of %s allowed\", 5), quotearg_style " - "(shell_escape_always_quoting_style, files[i])), " - "assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "when reading file names from stdin, " - "no file name of %s allowed", - 5), - quotearg_style(shell_escape_always_quoting_style, - files[i])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "when reading file names from stdin, " - "no file name of %s allowed", - 5), - quotearg_style(shell_escape_always_quoting_style, - files[i])), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - else if (files[i][0] == '\0') { - - unsigned long int file_number = i + 1; - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s:%lu: " - "invalid zero-length file name\", 5), quotearg_n_style_colon " - "(0, shell_escape_quoting_style, files_from), file_number), " - "assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "%s:%lu: invalid zero-length file name", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - files_from), - file_number), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), - "%s:%lu: invalid zero-length file name", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - files_from), - file_number), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - } - } else - ((!!sizeof(struct { - _Static_assert( - SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from " - "%s\", 5), quotearg_style (shell_escape_always_quoting_style, " - "files_from)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "no input from %s", 5), - quotearg_style(shell_escape_always_quoting_style, - files_from)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(SORT_FAILURE, 0, - dcgettext(((void *)0), "no input from %s", 5), - quotearg_style(shell_escape_always_quoting_style, - files_from)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - for (key = keylist; key; key = key->next) { - if (default_key_compare(key) && !key->reverse) { - key->ignore = gkey.ignore; - key->translate = gkey.translate; - key->skipsblanks = gkey.skipsblanks; - key->skipeblanks = gkey.skipeblanks; - key->month = gkey.month; - key->numeric = gkey.numeric; - key->general_numeric = gkey.general_numeric; - key->human_numeric = gkey.human_numeric; - key->version = gkey.version; - key->random = gkey.random; - key->reverse = gkey.reverse; - } - - need_random |= key->random; - } - - if (!keylist && !default_key_compare(&gkey)) { - gkey_only = 1; - insertkey(&gkey); - need_random |= gkey.random; - } - - check_ordering_compatibility(); - - if (debug) { - if (checkonly || outfile) { - static char opts[] = "X --debug"; - opts[0] = (checkonly ? checkonly : 'o'); - incompatible_options(opts); - } - - if (locale_ok) - locale_ok = !!setlocale(3, ""); - if (!locale_ok) - error(0, 0, "%s", dcgettext(((void *)0), "failed to set locale", 5)); - if (hard_LC_COLLATE) - error(0, 0, - dcgettext(((void *)0), - "text ordering performed using %s sorting rules", 5), - quote(setlocale(3, ((void *)0)))); - else - error(0, 0, "%s", - - dcgettext(((void *)0), - "text ordering performed using simple byte comparison", - 5)); - - key_warnings(&gkey, gkey_only); - } - - reverse = gkey.reverse; - - if (need_random) - random_md5_state_init(random_source); - - if (temp_dir_count == 0) { - char const *tmp_dir = getenv("TMPDIR"); - add_temp_dir(tmp_dir ? tmp_dir : "/tmp"); - } - - if (nfiles == 0) { - nfiles = 1; - free(files); - files = xmalloc(sizeof *files); - *files = (char *)"-"; - } - - if (0 < sort_size) - sort_size = (((sort_size) > ((nmerge * (2 + sizeof(struct line))))) - ? (sort_size) - : ((nmerge * (2 + sizeof(struct line))))); - - if (checkonly) { - if (nfiles > 1) - ((!!sizeof(struct { - _Static_assert(SORT_FAILURE, - "verify_expr (" - "SORT_FAILURE" - ", " - "(error (SORT_FAILURE, 0, dcgettext (((void *)0), " - "\"extra operand %s not allowed with -%c\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "files[1]), checkonly), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - SORT_FAILURE, 0, - dcgettext(((void *)0), - "extra operand %s not allowed with -%c", 5), - quotearg_style(shell_escape_always_quoting_style, files[1]), - checkonly), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - SORT_FAILURE, 0, - dcgettext(((void *)0), - "extra operand %s not allowed with -%c", 5), - quotearg_style(shell_escape_always_quoting_style, files[1]), - checkonly), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (outfile) { - static char opts[] = {0, 'o', 0}; - opts[0] = checkonly; - incompatible_options(opts); - } - - exit(check(files[0], checkonly) ? 0 : SORT_OUT_OF_ORDER); - } - - check_inputs(files, nfiles); - - check_output(outfile); - - if (mergeonly) { - struct sortfile *sortfiles = xcalloc(nfiles, sizeof *sortfiles); - - for (size_t i = 0; i < nfiles; ++i) - sortfiles[i].name = files[i]; - - merge(sortfiles, 0, nfiles, outfile); - } else { - if (!nthreads) { - unsigned long int np = num_processors(NPROC_CURRENT_OVERRIDABLE); - nthreads = - (((np) < (DEFAULT_MAX_THREADS)) ? (np) : (DEFAULT_MAX_THREADS)); - } - - size_t nthreads_max = - (18446744073709551615UL) / (2 * sizeof(struct merge_node)); - nthreads = (((nthreads) < (nthreads_max)) ? (nthreads) : (nthreads_max)); - - sort(files, nfiles, outfile, nthreads); - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - sort_die(dcgettext(((void *)0), "close failed", 5), "-"); - - exit(0); -} diff --git a/tests/source/coreutils/split.c b/tests/source/coreutils/split.c deleted file mode 100644 index 50bdc5d..0000000 --- a/tests/source/coreutils/split.c +++ /dev/null @@ -1,9231 +0,0 @@ - - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef enum { P_ALL, P_PID, P_PGID } idtype_t; -extern __pid_t wait(int *__stat_loc); -extern __pid_t waitpid(__pid_t __pid, int *__stat_loc, int __options); -extern int waitid(idtype_t __idtype, __id_t __id, siginfo_t *__infop, - int __options); - -struct rusage; - -extern __pid_t wait3(int *__stat_loc, int __options, struct rusage *__usage) - __attribute__((__nothrow__)); -extern __pid_t wait4(__pid_t __pid, int *__stat_loc, int __options, - struct rusage *__usage) __attribute__((__nothrow__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -inline void alignfree(void *ptr) { free(ptr); } - -inline __attribute__((__malloc__)) __attribute__((__alloc_size__(2))) - -void * -alignalloc(idx_t alignment, idx_t size) { - if ((size_t)-1 < alignment) - alignment = (size_t)-1; - if ((size_t)-1 < size) - size = (size_t)-1; - - return aligned_alloc(alignment, size); -} -void *xalignalloc(idx_t, idx_t) __attribute__((__malloc__)) -__attribute__((__alloc_size__(2))) __attribute__((__returns_nonnull__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int fd_reopen(int, char const *, int, mode_t) __attribute__((__nonnull__)); - -int open_safer(char const *, int, ...); -int creat_safer(char const *, mode_t); - -int openat_safer(int, char const *, int, ...); -extern size_t full_write(int fd, const void *buf, size_t count); -enum { IO_BUFSIZE = 128 * 1024 }; -static inline idx_t io_blksize(struct stat sb) { - - return (((((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) / - 2 + - 1) < ((((IO_BUFSIZE) > (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))) - ? (IO_BUFSIZE) - : (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))))) - ? (((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) / - 2 + - 1) - : ((((IO_BUFSIZE) > (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))) - ? (IO_BUFSIZE) - : (((0 < (sb).st_blksize && - (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512))))) - - ; -} - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -extern size_t safe_read(int fd, void *buf, size_t count); - -int sig2str(int, char *); -int str2sig(char const *, int *); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -static char const *filter_command; - -static int filter_pid; - -static int *open_pipes; -static size_t open_pipes_alloc; -static size_t n_open_pipes; - -static sigset_t oldblocked; -static sigset_t newblocked; - -static char const *outbase; - -static char *outfile; - -static char *outfile_mid; - -static _Bool suffix_auto = 1; - -static size_t suffix_length; - -static char const *suffix_alphabet = "abcdefghijklmnopqrstuvwxyz"; - -static char const *numeric_suffix_start; - -static char const *additional_suffix; - -static char *infile; - -static struct stat in_stat_buf; - -static int output_desc = -1; - -static _Bool verbose; - -static _Bool elide_empty_files; - -static _Bool unbuffered; - -static int eolchar = -1; - -enum Split_type { - type_undef, - type_bytes, - type_byteslines, - type_lines, - type_digits, - type_chunk_bytes, - type_chunk_lines, - type_rr -}; - -enum { - VERBOSE_OPTION = 0x7f + 1, - FILTER_OPTION, - IO_BLKSIZE_OPTION, - ADDITIONAL_SUFFIX_OPTION -}; - -static struct option const longopts[] = { - {"bytes", 1, ((void *)0), 'b'}, - {"lines", 1, ((void *)0), 'l'}, - {"line-bytes", 1, ((void *)0), 'C'}, - {"number", 1, ((void *)0), 'n'}, - {"elide-empty-files", 0, ((void *)0), 'e'}, - {"unbuffered", 0, ((void *)0), 'u'}, - {"suffix-length", 1, ((void *)0), 'a'}, - {"additional-suffix", 1, ((void *)0), ADDITIONAL_SUFFIX_OPTION}, - {"numeric-suffixes", 2, ((void *)0), 'd'}, - {"hex-suffixes", 2, ((void *)0), 'x'}, - {"filter", 1, ((void *)0), FILTER_OPTION}, - {"verbose", 0, ((void *)0), VERBOSE_OPTION}, - {"separator", 1, ((void *)0), 't'}, - {"-io-blksize", 1, ((void *)0), IO_BLKSIZE_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static inline _Bool - -ignorable(int err) { - return filter_command && err == 32; -} - -static void set_suffix_length(uintmax_t n_units, enum Split_type split_type) { - - uintmax_t suffix_length_needed = 0; - - if (numeric_suffix_start) - suffix_auto = 0; - - if (split_type == type_chunk_bytes || split_type == type_chunk_lines || - split_type == type_rr) { - uintmax_t n_units_end = n_units - 1; - if (numeric_suffix_start) { - uintmax_t n_start; - strtol_error e = - xstrtoumax(numeric_suffix_start, ((void *)0), 10, &n_start, ""); - if (e == LONGINT_OK && n_start <= (18446744073709551615UL) - n_units) { - - if (n_start < n_units) - n_units_end += n_start; - } - } - size_t alphabet_len = strlen(suffix_alphabet); - do - suffix_length_needed++; - while (n_units_end /= alphabet_len); - - suffix_auto = 0; - } - - if (suffix_length) { - if (suffix_length < suffix_length_needed) { - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"the suffix " - "length needs to be at least %\"\"l\" \"u\", 5), " - "suffix_length_needed), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "the suffix length needs to be at least %" - "l" - "u", - 5), - suffix_length_needed), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "the suffix length needs to be at least %" - "l" - "u", - 5), - suffix_length_needed), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - suffix_auto = 0; - return; - } else - suffix_length = - (((2) > (suffix_length_needed)) ? (2) : (suffix_length_needed)); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE [PREFIX]]\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Output pieces of FILE to PREFIXaa, PREFIXab, ...;\ndefault " - "size is 1000 lines, and default PREFIX is 'x'.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fprintf( - stdout, - dcgettext( - ((void *)0), - " -a, --suffix-length=N generate suffixes of length N (default " - "%d)\n --additional-suffix=SUFFIX append an additional " - "SUFFIX to file names\n -b, --bytes=SIZE put SIZE bytes " - "per output file\n -C, --line-bytes=SIZE put at most SIZE bytes " - "of records per output file\n -d use numeric " - "suffixes starting at 0, not alphabetic\n " - "--numeric-suffixes[=FROM] same as -d, but allow setting the " - "start value\n -x use hex suffixes starting " - "at 0, not alphabetic\n --hex-suffixes[=FROM] same as -x, " - "but allow setting the start value\n -e, --elide-empty-files do " - "not generate empty output files with '-n'\n --filter=COMMAND " - " write to shell COMMAND; file name is $FILE\n -l, " - "--lines=NUMBER put NUMBER lines/records per output file\n " - "-n, --number=CHUNKS generate CHUNKS output files; see " - "explanation below\n -t, --separator=SEP use SEP instead of " - "newline as the record separator;\n " - "'\\0' (zero) specifies the NUL character\n -u, --unbuffered " - " immediately copy input to output with '-n r/...'\n", - 5), - 2); - fputs_unlocked( - dcgettext(((void *)0), - " --verbose print a diagnostic just before " - "each\n output file is opened\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_size_note(); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nCHUNKS may be:\n N split into N files based on size of " - "input\n K/N output Kth of N to stdout\n l/N split into " - "N files without splitting lines/records\n l/K/N output Kth of " - "N to stdout without splitting lines/records\n r/N like 'l' " - "but use round robin distribution\n r/K/N likewise but only " - "output Kth of N to stdout\n", - 5), - stdout) - - ; - emit_ancillary_info("split"); - } - exit(status); -} - -static off_t input_file_size(int fd, struct stat const *st, char *buf, - size_t bufsize) { - off_t cur = lseek(fd, 0, 1); - if (cur < 0) { - if ((*__errno_location()) == 29) - - (*__errno_location()) = 0; - return -1; - } - - off_t size = 0; - do { - size_t n_read = safe_read(fd, buf + size, bufsize - size); - if (n_read == 0) - return size; - if (n_read == ((size_t)-1)) - return -1; - size += n_read; - } while (size < bufsize); - - if (st->st_size == 0) { - - (*__errno_location()) = 75; - return -1; - } - - cur += size; - off_t end; - if (usable_st_size(st) && cur <= st->st_size) - end = st->st_size; - else { - end = lseek(fd, 0, 2); - if (end < 0) - return -1; - if (end != cur) { - if (lseek(fd, cur, 0) < 0) - return -1; - if (end < cur) - end = cur; - } - } - - size += end - cur; - if (size == - ((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1)))) { - - (*__errno_location()) = 75; - return -1; - } - - return size; -} - -static void next_file_name(void) { - - static size_t *sufindex; - static size_t outbase_length; - static size_t outfile_length; - static size_t addsuf_length; - - if (!outfile) { - - _Bool widen; - - new_name: - widen = !!outfile_length; - - if (!widen) { - - outbase_length = strlen(outbase); - addsuf_length = additional_suffix ? strlen(additional_suffix) : 0; - outfile_length = outbase_length + suffix_length + addsuf_length; - } else { - - outfile_length += 2; - suffix_length++; - } - - if (outfile_length + 1 < outbase_length) - xalloc_die(); - outfile = xrealloc(outfile, outfile_length + 1); - - if (!widen) - memcpy(outfile, outbase, outbase_length); - else { - - outfile[outbase_length] = suffix_alphabet[sufindex[0]]; - outbase_length++; - } - - outfile_mid = outfile + outbase_length; - memset(outfile_mid, suffix_alphabet[0], suffix_length); - if (additional_suffix) - memcpy(outfile_mid + suffix_length, additional_suffix, addsuf_length); - outfile[outfile_length] = 0; - - free(sufindex); - sufindex = xcalloc(suffix_length, sizeof *sufindex); - - if (numeric_suffix_start) { - - ((void)sizeof((!widen) ? 1 : 0), __extension__({ - if (!widen) - ; - else - __assert_fail("! widen", "src/split.c", 409, - __extension__ __PRETTY_FUNCTION__); - })); - - size_t i = strlen(numeric_suffix_start); - memcpy(outfile_mid + suffix_length - i, numeric_suffix_start, i); - - size_t *sufindex_end = sufindex + suffix_length; - while (i-- != 0) - *--sufindex_end = numeric_suffix_start[i] - '0'; - } - } else { - - size_t i = suffix_length; - while (i-- != 0) { - sufindex[i]++; - if (suffix_auto && i == 0 && !suffix_alphabet[sufindex[0] + 1]) - goto new_name; - outfile_mid[i] = suffix_alphabet[sufindex[i]]; - if (outfile_mid[i]) - return; - sufindex[i] = 0; - outfile_mid[i] = suffix_alphabet[sufindex[i]]; - } - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"output file " - "suffixes exhausted\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "output file suffixes exhausted", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "output file suffixes exhausted", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } -} - -static int create(char const *name) { - if (!filter_command) { - if (verbose) - fprintf(stdout, dcgettext(((void *)0), "creating file %s\n", 5), - quotearg_style(shell_escape_always_quoting_style, name)); - - int fd = open_safer(name, 01 | 0100 | 0, - (0400 | 0200 | (0400 >> 3) | (0200 >> 3) | - ((0400 >> 3) >> 3) | ((0200 >> 3) >> 3))); - if (fd < 0) - return fd; - struct stat out_stat_buf; - if (fstat(fd, &out_stat_buf) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to stat %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (((in_stat_buf).st_ino == (out_stat_buf).st_ino && - (in_stat_buf).st_dev == (out_stat_buf).st_dev)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s would overwrite " - "input; aborting\", 5), quotearg_style " - "(shell_escape_always_quoting_style, name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "%s would overwrite input; aborting", 5), - quotearg_style(shell_escape_always_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "%s would overwrite input; aborting", 5), - quotearg_style(shell_escape_always_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (ftruncate(fd, 0) != 0 && - (((((out_stat_buf.st_mode)) & 0170000) == (0100000)) || - ((&out_stat_buf)->st_mode - (&out_stat_buf)->st_mode))) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"%s: error truncating\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "%s: error truncating", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "%s: error truncating", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return fd; - } else { - int fd_pair[2]; - pid_t child_pid; - char const *shell_prog = getenv("SHELL"); - if (shell_prog == ((void *)0)) - shell_prog = "/bin/sh"; - if (setenv("FILE", name, 1) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to set FILE environment variable\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to set FILE environment variable", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to set FILE environment variable", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (verbose) - fprintf(stdout, dcgettext(((void *)0), "executing with FILE=%s\n", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, name)); - if (pipe(fd_pair) != 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to create pipe\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to create pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to create pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - child_pid = fork(); - if (child_pid == 0) { - - int j; - - for (j = 0; j < n_open_pipes; ++j) - if (close(open_pipes[j]) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"closing prior pipe\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing prior pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing prior pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (close(fd_pair[1])) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"closing output pipe\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing output pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing output pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (fd_pair[0] != 0) { - if (dup2(fd_pair[0], 0) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"moving input pipe\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "moving input pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "moving input pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (close(fd_pair[0]) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"closing input pipe\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing input pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "closing input pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - sigprocmask(2, &oldblocked, ((void *)0)); - execl(shell_prog, last_component(shell_prog), "-c", filter_command, - (char *)((void *)0)); - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"failed to run command: \\\"%s -c %s\\\"\", 5), " - "shell_prog, filter_command), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to run command: \"%s -c %s\"", 5), - shell_prog, filter_command), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "failed to run command: \"%s -c %s\"", 5), - shell_prog, filter_command), - ((0) ? (void)0 : __builtin_unreachable())))); - } - if (child_pid == -1) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"fork system call failed\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "fork system call failed", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "fork system call failed", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (close(fd_pair[0]) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to close input pipe\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to close input pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "failed to close input pipe", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - filter_pid = child_pid; - if (n_open_pipes == open_pipes_alloc) - open_pipes = - x2nrealloc(open_pipes, &open_pipes_alloc, sizeof *open_pipes); - open_pipes[n_open_pipes++] = fd_pair[1]; - return fd_pair[1]; - } -} - -static void closeout(FILE *fp, int fd, pid_t pid, char const *name) { - if (fp != ((void *)0) && rpl_fclose(fp) != 0 && - !ignorable((*__errno_location()))) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (fd >= 0) { - if (fp == ((void *)0) && close(fd) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, name)), - ((0) ? (void)0 : __builtin_unreachable())))); - int j; - for (j = 0; j < n_open_pipes; ++j) { - if (open_pipes[j] == fd) { - open_pipes[j] = open_pipes[--n_open_pipes]; - break; - } - } - } - if (pid > 0) { - int wstatus = 0; - if (waitpid(pid, &wstatus, 0) == -1 && (*__errno_location()) != 10) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"waiting for child process\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "waiting for child process", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "waiting for child process", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if ((((signed char)(((wstatus)&0x7f) + 1) >> 1) > 0)) { - int sig = ((wstatus)&0x7f); - if (sig != 13) { - char signame[( - (((sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)) > (((((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) + - 1))) - ? ((sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)) - : (((((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) + - 1)))]; - if (sig2str(sig, signame) != 0) - sprintf(signame, "%d", sig); - error(sig + 128, 0, - - dcgettext(((void *)0), "with FILE=%s, signal %s from command: %s", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, name), - signame, filter_command); - } - } else if ((((wstatus)&0x7f) == 0)) { - int ex = (((wstatus)&0xff00) >> 8); - if (ex != 0) - error( - ex, 0, - dcgettext(((void *)0), "with FILE=%s, exit %d from command: %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, name), ex, - filter_command); - } else { - - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"unknown status from " - "command (0x%X)\", 5), wstatus + 0u), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "unknown status from command (0x%X)", 5), - wstatus + 0u), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "unknown status from command (0x%X)", 5), - wstatus + 0u), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } -} - -static _Bool - -cwrite(_Bool new_file_flag, char const *bp, size_t bytes) { - if (new_file_flag) { - if (!bp && bytes == 0 && elide_empty_files) - return 1; - closeout(((void *)0), output_desc, filter_pid, outfile); - next_file_name(); - output_desc = create(outfile); - if (output_desc < 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, outfile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - outfile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - outfile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (full_write(output_desc, bp, bytes) == bytes) - return 1; - else { - if (!ignorable((*__errno_location()))) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, outfile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - outfile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - outfile)), - ((0) ? (void)0 : __builtin_unreachable())))); - return 0; - } -} - -static void bytes_split(uintmax_t n_bytes, char *buf, size_t bufsize, - size_t initial_read, uintmax_t max_files) { - size_t n_read; - - _Bool new_file_flag = 1; - - _Bool filter_ok = 1; - uintmax_t to_write = n_bytes; - uintmax_t opened = 0; - - _Bool eof; - - do { - if (initial_read != (18446744073709551615UL)) { - n_read = initial_read; - initial_read = (18446744073709551615UL); - eof = n_read < bufsize; - } else { - if (!filter_ok && lseek(0, to_write, 1) != -1) { - to_write = n_bytes; - new_file_flag = 1; - } - - n_read = safe_read(0, buf, bufsize); - if (n_read == ((size_t)-1)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, " - "shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - eof = n_read == 0; - } - char *bp_out = buf; - while (to_write <= n_read) { - if (filter_ok || new_file_flag) - filter_ok = cwrite(new_file_flag, bp_out, to_write); - opened += new_file_flag; - new_file_flag = !max_files || (opened < max_files); - if (!filter_ok && !new_file_flag) { - - n_read = 0; - eof = 1; - break; - } - bp_out += to_write; - n_read -= to_write; - to_write = n_bytes; - } - if (n_read != 0) { - if (filter_ok || new_file_flag) - filter_ok = cwrite(new_file_flag, bp_out, n_read); - opened += new_file_flag; - new_file_flag = 0; - if (!filter_ok && opened == max_files) { - - break; - } - to_write -= n_read; - } - } while (!eof); - - while (opened++ < max_files) - cwrite(1, ((void *)0), 0); -} - -static void lines_split(uintmax_t n_lines, char *buf, size_t bufsize) { - size_t n_read; - char *bp, *bp_out, *eob; - - _Bool new_file_flag = 1; - uintmax_t n = 0; - - do { - n_read = safe_read(0, buf, bufsize); - if (n_read == ((size_t)-1)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - bp = bp_out = buf; - eob = bp + n_read; - *eob = eolchar; - while (1) { - bp = rawmemchr(bp, eolchar); - if (bp == eob) { - if (eob != bp_out) { - size_t len = eob - bp_out; - cwrite(new_file_flag, bp_out, len); - new_file_flag = 0; - } - break; - } - - ++bp; - if (++n >= n_lines) { - cwrite(new_file_flag, bp_out, bp - bp_out); - bp_out = bp; - new_file_flag = 1; - n = 0; - } - } - } while (n_read); -} - -static void line_bytes_split(uintmax_t n_bytes, char *buf, size_t bufsize) { - size_t n_read; - uintmax_t n_out = 0; - size_t n_hold = 0; - char *hold = ((void *)0); - size_t hold_size = 0; - - _Bool split_line = 0; - - do { - n_read = safe_read(0, buf, bufsize); - if (n_read == ((size_t)-1)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - size_t n_left = n_read; - char *sob = buf; - while (n_left) { - size_t split_rest = 0; - char *eoc = ((void *)0); - char *eol; - - if (n_bytes - n_out - n_hold <= n_left) { - - split_rest = n_bytes - n_out - n_hold; - eoc = sob + split_rest - 1; - eol = memrchr(sob, eolchar, split_rest); - } else - eol = memrchr(sob, eolchar, n_left); - - if (n_hold && !(!eol && n_out)) { - cwrite(n_out == 0, hold, n_hold); - n_out += n_hold; - if (n_hold > bufsize) - hold = xrealloc(hold, bufsize); - n_hold = 0; - hold_size = bufsize; - } - - if (eol) { - split_line = 1; - size_t n_write = eol - sob + 1; - cwrite(n_out == 0, sob, n_write); - n_out += n_write; - n_left -= n_write; - sob += n_write; - if (eoc) - split_rest -= n_write; - } - - if (n_left && !split_line) { - size_t n_write = eoc ? split_rest : n_left; - cwrite(n_out == 0, sob, n_write); - n_out += n_write; - n_left -= n_write; - sob += n_write; - if (eoc) - split_rest -= n_write; - } - - if ((eoc && split_rest) || (!eoc && n_left)) { - size_t n_buf = eoc ? split_rest : n_left; - if (hold_size - n_hold < n_buf) { - if (hold_size <= (18446744073709551615UL) - bufsize) - hold_size += bufsize; - else - xalloc_die(); - hold = xrealloc(hold, hold_size); - } - memcpy(hold + n_hold, sob, n_buf); - n_hold += n_buf; - n_left -= n_buf; - sob += n_buf; - } - - if (eoc) { - n_out = 0; - split_line = 0; - } - } - } while (n_read); - - if (n_hold) - cwrite(n_out == 0, hold, n_hold); - - free(hold); -} -static void lines_chunk_split(uintmax_t k, uintmax_t n, char *buf, - size_t bufsize, size_t initial_read, - off_t file_size) { - - ((void)sizeof((n && k <= n && n <= file_size) ? 1 : 0), __extension__({ - if (n && k <= n && n <= file_size) - ; - else - __assert_fail("n && k <= n && n <= file_size", "src/split.c", 867, - __extension__ __PRETTY_FUNCTION__); - })); - - const off_t chunk_size = file_size / n; - uintmax_t chunk_no = 1; - off_t chunk_end = chunk_size - 1; - off_t n_written = 0; - - _Bool new_file_flag = 1; - - _Bool chunk_truncated = 0; - - if (k > 1) { - - off_t start = (k - 1) * chunk_size - 1; - if (start < initial_read) { - memmove(buf, buf + start, initial_read - start); - initial_read -= start; - } else { - if (lseek(0, start - initial_read, 1) < 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, " - "shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - initial_read = (18446744073709551615UL); - } - n_written = start; - chunk_no = k - 1; - chunk_end = chunk_no * chunk_size - 1; - } - - while (n_written < file_size) { - char *bp = buf, *eob; - size_t n_read; - if (initial_read != (18446744073709551615UL)) { - n_read = initial_read; - initial_read = (18446744073709551615UL); - } else { - n_read = safe_read(0, buf, bufsize); - if (n_read == ((size_t)-1)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, " - "shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - if (n_read == 0) - break; - n_read = (((n_read) < (file_size - n_written)) ? (n_read) - : (file_size - n_written)); - chunk_truncated = 0; - eob = buf + n_read; - - while (bp != eob) { - size_t to_write; - - _Bool next = 0; - - off_t skip = - (((n_read) < - ((((0) > (chunk_end - n_written)) ? (0) : (chunk_end - n_written)))) - ? (n_read) - : ((((0) > (chunk_end - n_written)) ? (0) - : (chunk_end - n_written)))); - char *bp_out = memchr(bp + skip, eolchar, n_read - skip); - if (bp_out) { - bp_out++; - next = 1; - } else - bp_out = eob; - to_write = bp_out - bp; - - if (k == chunk_no) { - - if (full_write(1, bp, to_write) != to_write) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else if (!k) - cwrite(new_file_flag, bp, to_write); - n_written += to_write; - bp += to_write; - n_read -= to_write; - new_file_flag = next; - - while (next || chunk_end <= n_written - 1) { - if (!next && bp == eob) { - - chunk_truncated = 1; - break; - } - chunk_no++; - if (k && chunk_no > k) - return; - if (chunk_no == n) - chunk_end = file_size - 1; - else - chunk_end += chunk_size; - if (chunk_end <= n_written - 1) { - if (!k) - cwrite(1, ((void *)0), 0); - } else - next = 0; - } - } - } - - if (chunk_truncated) - chunk_no++; - - while (!k && chunk_no++ <= n) - cwrite(1, ((void *)0), 0); -} - -static void bytes_chunk_extract(uintmax_t k, uintmax_t n, char *buf, - size_t bufsize, size_t initial_read, - off_t file_size) { - off_t start; - off_t end; - - ((void)sizeof((k && n && k <= n && n <= file_size) ? 1 : 0), __extension__({ - if (k && n && k <= n && n <= file_size) - ; - else - __assert_fail("k && n && k <= n && n <= file_size", "src/split.c", 996, - __extension__ __PRETTY_FUNCTION__); - })); - - start = (k - 1) * (file_size / n); - end = (k == n) ? file_size : k * (file_size / n); - - if (start < initial_read) { - memmove(buf, buf + start, initial_read - start); - initial_read -= start; - } else { - if (lseek(0, start - initial_read, 1) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - initial_read = (18446744073709551615UL); - } - - while (start < end) { - size_t n_read; - if (initial_read != (18446744073709551615UL)) { - n_read = initial_read; - initial_read = (18446744073709551615UL); - } else { - n_read = safe_read(0, buf, bufsize); - if (n_read == ((size_t)-1)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, " - "shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - if (n_read == 0) - break; - n_read = (((n_read) < (end - start)) ? (n_read) : (end - start)); - if (full_write(1, buf, n_read) != n_read && - !ignorable((*__errno_location()))) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, \"-\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, "-")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, "-")), - ((0) ? (void)0 : __builtin_unreachable())))); - start += n_read; - } -} - -typedef struct of_info { - char *of_name; - int ofd; - FILE *ofile; - int opid; -} of_t; - -enum { OFD_NEW = -1, OFD_APPEND = -2 }; - -static _Bool - -ofile_open(of_t *files, size_t i_check, size_t nfiles) { - - _Bool file_limit = 0; - - if (files[i_check].ofd <= OFD_NEW) { - int fd; - size_t i_reopen = i_check ? i_check - 1 : nfiles - 1; - - while (1) { - if (files[i_check].ofd == OFD_NEW) - fd = create(files[i_check].of_name); - else { - fd = open_safer(files[i_check].of_name, - - 01 | 0 | 02000 | 04000); - } - - if (-1 < fd) - break; - - if (!((*__errno_location()) == 24 || (*__errno_location()) == 23)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "files[i_check].of_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_check].of_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_check].of_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - file_limit = 1; - - while (files[i_reopen].ofd < 0) { - i_reopen = i_reopen ? i_reopen - 1 : nfiles - 1; - - if (i_reopen == i_check) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "files[i_check].of_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_check].of_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_check].of_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (rpl_fclose(files[i_reopen].ofile) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "files[i_reopen].of_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_reopen].of_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_reopen].of_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - files[i_reopen].ofile = ((void *)0); - files[i_reopen].ofd = OFD_APPEND; - } - - files[i_check].ofd = fd; - if (!(files[i_check].ofile = fdopen(fd, "a"))) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "files[i_check].of_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_check].of_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_check].of_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - files[i_check].opid = filter_pid; - filter_pid = 0; - } - - return file_limit; -} -static void lines_rr(uintmax_t k, uintmax_t n, char *buf, size_t bufsize, - of_t **filesp) { - - _Bool wrapped = 0; - - _Bool wrote = 0; - - _Bool file_limit; - size_t i_file; - of_t *files = ((void *)0); - uintmax_t line_no; - - if (k) - line_no = 1; - else { - if ((18446744073709551615UL) < n) - xalloc_die(); - files = *filesp = xnmalloc(n, sizeof *files); - - for (i_file = 0; i_file < n; i_file++) { - next_file_name(); - files[i_file].of_name = xstrdup(outfile); - files[i_file].ofd = OFD_NEW; - files[i_file].ofile = ((void *)0); - files[i_file].opid = 0; - } - i_file = 0; - file_limit = 0; - } - - while (1) { - char *bp = buf, *eob; - size_t n_read = safe_read(0, buf, bufsize); - if (n_read == ((size_t)-1)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - else if (n_read == 0) - break; - eob = buf + n_read; - - while (bp != eob) { - size_t to_write; - - _Bool next = 0; - - char *bp_out = memchr(bp, eolchar, eob - bp); - if (bp_out) { - bp_out++; - next = 1; - } else - bp_out = eob; - to_write = bp_out - bp; - - if (k) { - if (line_no == k && unbuffered) { - if (full_write(1, bp, to_write) != to_write) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else if (line_no == k && - fwrite_unlocked(bp, to_write, 1, stdout) != 1) { - clearerr_unlocked(stdout); - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - if (next) - line_no = (line_no == n) ? 1 : line_no + 1; - } else { - - file_limit |= ofile_open(files, i_file, n); - if (unbuffered) { - - if (full_write(files[i_file].ofd, bp, to_write) != to_write && - !ignorable((*__errno_location()))) { - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "files[i_file].of_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_file].of_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_file].of_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } else if (fwrite_unlocked(bp, to_write, 1, files[i_file].ofile) != 1 && - !ignorable((*__errno_location()))) { - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "files[i_file].of_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_file].of_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_file].of_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (!ignorable((*__errno_location()))) - wrote = 1; - - if (file_limit) { - if (rpl_fclose(files[i_file].ofile) != 0) { - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "files[i_file].of_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_file].of_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - files[i_file].of_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - files[i_file].ofile = ((void *)0); - files[i_file].ofd = OFD_APPEND; - } - if (next && ++i_file == n) { - wrapped = 1; - - if (!wrote) - goto no_filters; - wrote = 0; - i_file = 0; - } - } - - bp = bp_out; - } - } - -no_filters: - - if (!k) { - int ceiling = (wrapped ? n : i_file); - for (i_file = 0; i_file < n; i_file++) { - if (i_file >= ceiling && !elide_empty_files) - file_limit |= ofile_open(files, i_file, n); - if (files[i_file].ofd >= 0) - closeout(files[i_file].ofile, files[i_file].ofd, files[i_file].opid, - files[i_file].of_name); - files[i_file].ofd = OFD_APPEND; - } - } -} -static void parse_chunk(uintmax_t *k_units, uintmax_t *n_units, char *slash) { - *n_units = - xdectoumax(slash + 1, 1, (18446744073709551615UL), "", - - dcgettext(((void *)0), "invalid number of chunks", 5), 0); - if (slash != optarg) { - *slash = '\0'; - *k_units = xdectoumax(optarg, 1, *n_units, "", - - dcgettext(((void *)0), "invalid chunk number", 5), 0); - } -} - -int main(int argc, char **argv) { - enum Split_type split_type = type_undef; - idx_t in_blk_size = 0; - size_t page_size = getpagesize(); - uintmax_t k_units = 0; - uintmax_t n_units = 0; - - static char const multipliers[] = "bEGKkMmPTYZ0"; - int c; - int digits_optind = 0; - off_t file_size = - ((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + 1))); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - infile = bad_cast("-"); - outbase = bad_cast("x"); - - while (1) { - - int this_optind = optind ? optind : 1; - char *slash; - - c = getopt_long(argc, argv, "0123456789C:a:b:del:n:t:ux", longopts, - ((void *)0)); - if (c == -1) - break; - - switch (c) { - case 'a': - suffix_length = - xdectoumax(optarg, 0, (18446744073709551615UL) / sizeof(size_t), "", - dcgettext(((void *)0), "invalid suffix length", 5), 0); - break; - - case ADDITIONAL_SUFFIX_OPTION: - if (last_component(optarg) != optarg) { - error(0, 0, - - dcgettext(((void *)0), - "invalid suffix %s, contains directory separator", 5), - quote(optarg)); - usage(1); - } - additional_suffix = optarg; - break; - - case 'b': - if (split_type != type_undef) - do { - error(0, 0, - dcgettext(((void *)0), "cannot split in more than one way", 5)); - usage(1); - } while (0); - split_type = type_bytes; - - n_units = xdectoumax( - optarg, 1, - ((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1))), - multipliers, - - dcgettext(((void *)0), "invalid number of bytes", 5), 0); - break; - - case 'l': - if (split_type != type_undef) - do { - error(0, 0, - dcgettext(((void *)0), "cannot split in more than one way", 5)); - usage(1); - } while (0); - split_type = type_lines; - n_units = - xdectoumax(optarg, 1, (18446744073709551615UL), "", - - dcgettext(((void *)0), "invalid number of lines", 5), 0); - break; - - case 'C': - if (split_type != type_undef) - do { - error(0, 0, - dcgettext(((void *)0), "cannot split in more than one way", 5)); - usage(1); - } while (0); - split_type = type_byteslines; - n_units = xdectoumax( - optarg, 1, - ((((18446744073709551615UL)) < - (((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1))))) - ? ((18446744073709551615UL)) - : (((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - - 1) * - 2 + - 1))))), - multipliers, dcgettext(((void *)0), "invalid number of bytes", 5), 0); - break; - - case 'n': - if (split_type != type_undef) - do { - error(0, 0, - dcgettext(((void *)0), "cannot split in more than one way", 5)); - usage(1); - } while (0); - - while (((*__ctype_b_loc())[(int)((to_uchar(*optarg)))] & - (unsigned short int)_ISspace)) - optarg++; - if (strncmp(optarg, - "" - "r/" - "", - sizeof("r/") - 1) == 0) { - split_type = type_rr; - optarg += 2; - } else if (strncmp(optarg, - "" - "l/" - "", - sizeof("l/") - 1) == 0) { - split_type = type_chunk_lines; - optarg += 2; - } else - split_type = type_chunk_bytes; - if ((slash = strchr(optarg, '/'))) - parse_chunk(&k_units, &n_units, slash); - else - n_units = xdectoumax( - optarg, 1, (18446744073709551615UL), "", - - dcgettext(((void *)0), "invalid number of chunks", 5), 0); - break; - - case 'u': - unbuffered = 1; - break; - - case 't': { - char neweol = optarg[0]; - if (!neweol) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"empty " - "record separator\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "empty record separator", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "empty record separator", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (optarg[1]) { - if ((strcmp(optarg, "\\0") == 0)) - neweol = '\0'; - else { - - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multi-character " - "separator %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "multi-character separator %s", - 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "multi-character separator %s", - 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } - - if (0 <= eolchar && neweol != eolchar) { - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"multiple separator " - "characters specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "multiple separator characters specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "multiple separator characters specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - eolchar = neweol; - } break; - - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (split_type == type_undef) { - split_type = type_digits; - n_units = 0; - } - if (split_type != type_undef && split_type != type_digits) - do { - error(0, 0, - dcgettext(((void *)0), "cannot split in more than one way", 5)); - usage(1); - } while (0); - if (digits_optind != 0 && digits_optind != this_optind) - n_units = 0; - digits_optind = this_optind; - if (!((void)(&(n_units) == (uintmax_t *)((void *)0)), - ((!!sizeof(struct { - _Static_assert( - !(!((uintmax_t)0 < (uintmax_t)-1)), - "verify_expr (" - "! TYPE_SIGNED (uintmax_t)" - ", " - "(((uintmax_t) -1 / 10 < (n_units) || (uintmax_t) ((n_units) " - "* 10 + (c - '0')) < (n_units)) ? false : (((n_units) = " - "(n_units) * 10 + (c - '0')), true))" - ")"); - int _gl_dummy; - })) - ? ((((uintmax_t)-1 / 10 < (n_units) || - (uintmax_t)((n_units)*10 + (c - '0')) < (n_units)) - ? 0 - : (((n_units) = (n_units)*10 + (c - '0')), 1))) - : ((((uintmax_t)-1 / 10 < (n_units) || - (uintmax_t)((n_units)*10 + (c - '0')) < (n_units)) - ? 0 - : (((n_units) = (n_units)*10 + (c - '0')), 1)))))) { - char buffer[( - (((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"line " - "count option -%s%c... is too large\", 5), " - "umaxtostr (n_units, buffer), c), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "line count option -%s%c... is too large", 5), - umaxtostr(n_units, buffer), c), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "line count option -%s%c... is too large", 5), - umaxtostr(n_units, buffer), c), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - break; - - case 'd': - case 'x': - if (c == 'd') - suffix_alphabet = "0123456789"; - else - suffix_alphabet = "0123456789abcdef"; - if (optarg) { - if (strlen(optarg) != strspn(optarg, suffix_alphabet)) { - error(0, 0, - (c == 'd') - ? - - dcgettext(((void *)0), - "%s: invalid start value for numerical suffix", 5) - : - - dcgettext(((void *)0), - "%s: invalid start value for hexadecimal suffix", - 5), - quote(optarg)); - usage(1); - } else { - - while (*optarg == '0' && *(optarg + 1) != '\0') - optarg++; - numeric_suffix_start = optarg; - } - } - break; - - case 'e': - elide_empty_files = 1; - break; - - case FILTER_OPTION: - filter_command = optarg; - break; - - case IO_BLKSIZE_OPTION: - in_blk_size = xdectoumax( - optarg, 1, - ((((9223372036854775807L)) < ((18446744073709551615UL))) - ? ((9223372036854775807L)) - : ((18446744073709551615UL))) - - 1, - multipliers, dcgettext(((void *)0), "invalid IO block size", 5), 0); - break; - - case VERBOSE_OPTION: - verbose = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "split", "GNU coreutils", Version, - ("Torbjorn Granlund"), ("Richard M. Stallman"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (k_units != 0 && filter_command) { - error(0, 0, - dcgettext(((void *)0), - "--filter does not process a chunk extracted to stdout", - 5)); - usage(1); - } - - if (split_type == type_undef) { - split_type = type_lines; - n_units = 1000; - } - - if (n_units == 0) { - error(0, 0, "%s: %s", dcgettext(((void *)0), "invalid number of lines", 5), - quote("0")); - usage(1); - } - - if (eolchar < 0) - eolchar = '\n'; - - set_suffix_length(n_units, split_type); - - if (optind < argc) - infile = argv[optind++]; - - if (optind < argc) - outbase = argv[optind++]; - - if (optind < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind])); - usage(1); - } - - if (numeric_suffix_start && strlen(numeric_suffix_start) > suffix_length) { - error(0, 0, - dcgettext(((void *)0), - "numerical suffix start value is too large " - "for the suffix length", - 5) - - ); - usage(1); - } - - if (!(strcmp(infile, "-") == 0) && fd_reopen(0, infile, 00, 0) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot open %s for reading\", 5), quotearg_style " - "(shell_escape_always_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - - xset_binary_mode(0, 0); - - if (fstat(0, &in_stat_buf) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - - _Bool specified_buf_size = !!in_blk_size; - if (!specified_buf_size) - in_blk_size = io_blksize(in_stat_buf); - - char *buf = xalignalloc(page_size, in_blk_size + 1); - size_t initial_read = (18446744073709551615UL); - - if (split_type == type_chunk_bytes || split_type == type_chunk_lines) { - file_size = input_file_size(0, &in_stat_buf, buf, in_blk_size); - if (file_size < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"%s: cannot determine file size\", 5), quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "%s: cannot determine file size", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "%s: cannot determine file size", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - initial_read = - (((file_size) < (in_blk_size)) ? (file_size) : (in_blk_size)); - - if (((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1))) < n_units) { - char buffer[( - (((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 75, \"%s: %s\", dcgettext (((void *)0), " - "\"invalid number of chunks\", 5), quote (umaxtostr " - "(n_units, buffer))), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 75, "%s: %s", - dcgettext(((void *)0), "invalid number of chunks", 5), - quote(umaxtostr(n_units, buffer))), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 75, "%s: %s", - dcgettext(((void *)0), "invalid number of chunks", 5), - quote(umaxtostr(n_units, buffer))), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - file_size = (((file_size) > (n_units)) ? (file_size) : (n_units)); - } - - if (filter_command) { - struct sigaction act; - sigemptyset(&newblocked); - sigaction(13, ((void *)0), &act); - if (act.__sigaction_handler.sa_handler != ((__sighandler_t)1)) - sigaddset(&newblocked, 13); - sigprocmask(0, &newblocked, &oldblocked); - } - - switch (split_type) { - case type_digits: - case type_lines: - lines_split(n_units, buf, in_blk_size); - break; - - case type_bytes: - bytes_split(n_units, buf, in_blk_size, (18446744073709551615UL), 0); - break; - - case type_byteslines: - line_bytes_split(n_units, buf, in_blk_size); - break; - - case type_chunk_bytes: - if (k_units == 0) - bytes_split(file_size / n_units, buf, in_blk_size, initial_read, n_units); - else - bytes_chunk_extract(k_units, n_units, buf, in_blk_size, initial_read, - file_size); - break; - - case type_chunk_lines: - lines_chunk_split(k_units, n_units, buf, in_blk_size, initial_read, - file_size); - break; - - case type_rr: - - { - of_t *files; - lines_rr(k_units, n_units, buf, in_blk_size, &files); - } break; - - default: - abort(); - } - - if (close(0) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - closeout(((void *)0), output_desc, filter_pid, outfile); - - exit(0); -} diff --git a/tests/source/coreutils/stat.c b/tests/source/coreutils/stat.c deleted file mode 100644 index 2408f6a..0000000 --- a/tests/source/coreutils/stat.c +++ /dev/null @@ -1,9037 +0,0 @@ - -typedef long int ptrdiff_t; -typedef long unsigned int size_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct passwd { - char *pw_name; - char *pw_passwd; - - __uid_t pw_uid; - __gid_t pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; -extern void setpwent(void); - -extern void endpwent(void); - -extern struct passwd *getpwent(void); -extern struct passwd *fgetpwent(FILE *__stream) __attribute__((__nonnull__(1))); - -extern int putpwent(const struct passwd *__restrict __p, FILE *__restrict __f); - -extern struct passwd *getpwuid(__uid_t __uid); - -extern struct passwd *getpwnam(const char *__name) - __attribute__((__nonnull__(1))); -extern int getpwent_r(struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 4))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpwuid_r(__uid_t __uid, struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int getpwnam_r(const char *__restrict __name, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int fgetpwent_r(FILE *__restrict __stream, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int getpw(__uid_t __uid, char *__buffer); - -struct group { - char *gr_name; - char *gr_passwd; - __gid_t gr_gid; - char **gr_mem; -}; -extern void setgrent(void); - -extern void endgrent(void); - -extern struct group *getgrent(void); -extern struct group *fgetgrent(FILE *__stream); -extern int putgrent(const struct group *__restrict __p, FILE *__restrict __f); - -extern struct group *getgrgid(__gid_t __gid); - -extern struct group *getgrnam(const char *__name); -extern int getgrent_r(struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrgid_r(__gid_t __gid, struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int getgrnam_r(const char *__restrict __name, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); -extern int fgetgrent_r(FILE *__restrict __stream, - struct group *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct group **__restrict __result); - -extern int setgroups(size_t __n, const __gid_t *__groups) - __attribute__((__nothrow__, __leaf__)); -extern int getgrouplist(const char *__user, __gid_t __group, __gid_t *__groups, - int *__ngroups); -extern int initgroups(const char *__user, __gid_t __group); - -struct statfs { - __fsword_t f_type; - __fsword_t f_bsize; - - __fsblkcnt_t f_blocks; - __fsblkcnt_t f_bfree; - __fsblkcnt_t f_bavail; - __fsfilcnt_t f_files; - __fsfilcnt_t f_ffree; - - __fsid_t f_fsid; - __fsword_t f_namelen; - __fsword_t f_frsize; - __fsword_t f_flags; - __fsword_t f_spare[4]; -}; - -struct statfs64 { - __fsword_t f_type; - __fsword_t f_bsize; - __fsblkcnt64_t f_blocks; - __fsblkcnt64_t f_bfree; - __fsblkcnt64_t f_bavail; - __fsfilcnt64_t f_files; - __fsfilcnt64_t f_ffree; - __fsid_t f_fsid; - __fsword_t f_namelen; - __fsword_t f_frsize; - __fsword_t f_flags; - __fsword_t f_spare[4]; -}; - -extern int statfs(const char *__file, struct statfs *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int statfs64(const char *__file, struct statfs64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstatfs(int __fildes, struct statfs *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatfs64(int __fildes, struct statfs64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int is_selinux_enabled(void); - -extern int is_selinux_mls_enabled(void); - -typedef char *security_context_t - - __attribute__((deprecated)) - - ; - -extern void freecon(char *con); - -extern void freeconary(char **con); - -extern int getcon(char **con); -extern int getcon_raw(char **con); -extern int setcon(const char *con); -extern int setcon_raw(const char *con); - -extern int getpidcon(pid_t pid, char **con); -extern int getpidcon_raw(pid_t pid, char **con); - -extern int getprevcon(char **con); -extern int getprevcon_raw(char **con); - -extern int getexeccon(char **con); -extern int getexeccon_raw(char **con); - -extern int setexeccon(const char *con); -extern int setexeccon_raw(const char *con); - -extern int getfscreatecon(char **con); -extern int getfscreatecon_raw(char **con); - -extern int setfscreatecon(const char *context); -extern int setfscreatecon_raw(const char *context); - -extern int getkeycreatecon(char **con); -extern int getkeycreatecon_raw(char **con); - -extern int setkeycreatecon(const char *context); -extern int setkeycreatecon_raw(const char *context); - -extern int getsockcreatecon(char **con); -extern int getsockcreatecon_raw(char **con); - -extern int setsockcreatecon(const char *context); -extern int setsockcreatecon_raw(const char *context); - -extern int rpl_getfilecon(const char *path, char **con); -extern int getfilecon_raw(const char *path, char **con); -extern int rpl_lgetfilecon(const char *path, char **con); -extern int lgetfilecon_raw(const char *path, char **con); -extern int rpl_fgetfilecon(int fd, char **con); -extern int fgetfilecon_raw(int fd, char **con); - -extern int setfilecon(const char *path, const char *con); -extern int setfilecon_raw(const char *path, const char *con); -extern int lsetfilecon(const char *path, const char *con); -extern int lsetfilecon_raw(const char *path, const char *con); -extern int fsetfilecon(int fd, const char *con); -extern int fsetfilecon_raw(int fd, const char *con); - -extern int getpeercon(int fd, char **con); -extern int getpeercon_raw(int fd, char **con); - -typedef unsigned int access_vector_t; -typedef unsigned short security_class_t; - -struct av_decision { - access_vector_t allowed; - access_vector_t decided; - access_vector_t auditallow; - access_vector_t auditdeny; - unsigned int seqno; - unsigned int flags; -}; - -struct selinux_opt { - int type; - const char *value; -}; - -union selinux_callback { - - int - - __attribute__((format(printf, 2, 3))) - - (*func_log)(int type, const char *fmt, ...); - - int (*func_audit)(void *auditdata, security_class_t cls, char *msgbuf, - size_t msgbufsize); - - int (*func_validate)(char **ctx); - - int (*func_setenforce)(int enforcing); - - int (*func_policyload)(int seqno); -}; - -extern union selinux_callback selinux_get_callback(int type); -extern void selinux_set_callback(int type, union selinux_callback cb); -extern int security_compute_av(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_av_flags(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); -extern int security_compute_av_flags_raw(const char *scon, const char *tcon, - security_class_t tclass, - access_vector_t requested, - struct av_decision *avd); - -extern int security_compute_create(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_create_name(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); -extern int security_compute_create_name_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *objname, char **newcon); - -extern int security_compute_relabel(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_relabel_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_member(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); -extern int security_compute_member_raw(const char *scon, const char *tcon, - security_class_t tclass, char **newcon); - -extern int security_compute_user(const char *scon, const char *username, - char ***con); -extern int security_compute_user_raw(const char *scon, const char *username, - char ***con); - -extern int security_validatetrans(const char *scon, const char *tcon, - security_class_t tclass, const char *newcon); -extern int security_validatetrans_raw(const char *scon, const char *tcon, - security_class_t tclass, - const char *newcon); - -extern int security_load_policy(void *data, size_t len); - -extern int security_get_initial_context(const char *name, char **con); -extern int security_get_initial_context_raw(const char *name, char **con); -extern int selinux_mkload_policy(int preservebools); -extern int selinux_init_load_policy(int *enforce); - -typedef struct { - char *name; - int value; -} SELboolean; - -extern int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, - int permanent); - -extern int security_load_booleans(char *path) - - __attribute__((deprecated)) - - ; - -extern int security_check_context(const char *con); -extern int security_check_context_raw(const char *con); - -extern int security_canonicalize_context(const char *con, char **canoncon); -extern int security_canonicalize_context_raw(const char *con, char **canoncon); - -extern int security_getenforce(void); - -extern int security_setenforce(int value); - -extern int security_reject_unknown(void); - -extern int security_deny_unknown(void); - -extern int security_get_checkreqprot(void); - -extern int security_disable(void); - -extern int security_policyvers(void); - -extern int security_get_boolean_names(char ***names, int *len); - -extern int security_get_boolean_pending(const char *name); - -extern int security_get_boolean_active(const char *name); - -extern int security_set_boolean(const char *name, int value); - -extern int security_commit_booleans(void); - -struct security_class_mapping { - const char *name; - const char *perms[sizeof(access_vector_t) * 8 + 1]; -}; -extern int selinux_set_mapping(struct security_class_mapping *map); - -extern security_class_t mode_to_security_class(mode_t mode); - -extern security_class_t string_to_security_class(const char *name); -extern const char *security_class_to_string(security_class_t cls); - -extern const char *security_av_perm_to_string(security_class_t tclass, - access_vector_t perm); -extern access_vector_t string_to_av_perm(security_class_t tclass, - const char *name); - -extern int security_av_string(security_class_t tclass, access_vector_t av, - char **result); - -extern void print_access_vector(security_class_t tclass, access_vector_t av); - -extern void selinux_flush_class_cache(void); - -extern void set_matchpathcon_printf(void (*f)(const char *fmt, ...)); - -extern void set_matchpathcon_invalidcon(int (*f)(const char *path, - unsigned lineno, - char *context)); - -extern void set_matchpathcon_canoncon(int (*f)(const char *path, - unsigned lineno, - char **context)); - -extern void set_matchpathcon_flags(unsigned int flags); -extern int matchpathcon_init(const char *path) - - __attribute__(( - deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))) - - ; - -extern int matchpathcon_init_prefix(const char *path, const char *prefix); - -extern void matchpathcon_fini(void) - - __attribute__((deprecated("Use selabel_close"))) - - ; - -extern int realpath_not_final(const char *name, char *resolved_path); - -extern int matchpathcon(const char *path, mode_t mode, char **con) - - __attribute__((deprecated("Use selabel_lookup instead"))) - - ; - -extern int matchpathcon_index(const char *path, mode_t mode, char **con); - -extern int matchpathcon_filespec_add(ino_t ino, int specind, const char *file); - -extern void matchpathcon_filespec_destroy(void); - -extern void matchpathcon_filespec_eval(void); - -extern void matchpathcon_checkmatches(char *str); - -extern int matchmediacon(const char *media, char **con); - -extern int selinux_getenforcemode(int *enforce); - -extern char *selinux_boolean_sub(const char *boolean_name); - -extern int selinux_getpolicytype(char **policytype); - -extern const char *selinux_policy_root(void); - -extern int selinux_set_policy_root(const char *rootpath); - -extern const char *selinux_current_policy_path(void); -extern const char *selinux_binary_policy_path(void); -extern const char *selinux_failsafe_context_path(void); -extern const char *selinux_removable_context_path(void); -extern const char *selinux_default_context_path(void); -extern const char *selinux_user_contexts_path(void); -extern const char *selinux_file_context_path(void); -extern const char *selinux_file_context_homedir_path(void); -extern const char *selinux_file_context_local_path(void); -extern const char *selinux_file_context_subs_path(void); -extern const char *selinux_file_context_subs_dist_path(void); -extern const char *selinux_homedir_context_path(void); -extern const char *selinux_media_context_path(void); -extern const char *selinux_virtual_domain_context_path(void); -extern const char *selinux_virtual_image_context_path(void); -extern const char *selinux_lxc_contexts_path(void); -extern const char *selinux_x_context_path(void); -extern const char *selinux_sepgsql_context_path(void); -extern const char *selinux_openrc_contexts_path(void); -extern const char *selinux_openssh_contexts_path(void); -extern const char *selinux_snapperd_contexts_path(void); -extern const char *selinux_systemd_contexts_path(void); -extern const char *selinux_contexts_path(void); -extern const char *selinux_securetty_types_path(void); -extern const char *selinux_booleans_subs_path(void); - -extern const char *selinux_booleans_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_customizable_types_path(void); - -extern const char *selinux_users_path(void) - - __attribute__((deprecated)) - - ; -extern const char *selinux_usersconf_path(void); -extern const char *selinux_translations_path(void); -extern const char *selinux_colors_path(void); -extern const char *selinux_netfilter_context_path(void); -extern const char *selinux_path(void); -extern int selinux_check_access(const char *scon, const char *tcon, - const char *tclass, const char *perm, - void *auditdata); - -extern int selinux_check_passwd_access(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int checkPasswdAccess(access_vector_t requested) - - __attribute__((deprecated("Use selinux_check_access"))) - - ; - -extern int selinux_check_securetty_context(const char *tty_context); - -extern void set_selinuxmnt(const char *mnt); - -extern int selinuxfs_exists(void); - -extern void fini_selinuxmnt(void); - -extern int setexecfilecon(const char *filename, const char *fallback_type); - -extern int rpm_execcon(unsigned int verified, const char *filename, - char *const argv[], char *const envp[]) - - __attribute__((deprecated("Use setexecfilecon and execve"))) - - ; - -extern int is_context_customizable(const char *scontext); - -extern int selinux_trans_to_raw_context(const char *trans, char **rawp); -extern int selinux_raw_to_trans_context(const char *raw, char **transp); - -extern int selinux_raw_context_to_color(const char *raw, char **color_str); - -extern int getseuserbyname(const char *linuxuser, char **seuser, char **level); - -extern int getseuser(const char *username, const char *service, char **r_seuser, - char **r_level); - -extern int selinux_file_context_cmp(const char *a, const char *b); - -extern int selinux_file_context_verify(const char *path, mode_t mode); - -extern int selinux_lsetfilecon_default(const char *path); - -extern void selinux_reset_config(void); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern char *areadlink(char const *filename) - __attribute__((__malloc__(free, 1))); -extern char *areadlink_with_size(char const *filename, size_t size_hint) - __attribute__((__malloc__(free, 1))); - -extern char *areadlinkat(int fd, char const *filename) - __attribute__((__malloc__(free, 1))); - -extern char *areadlinkat_with_size(int fd, char const *filename, - size_t size_hint) - __attribute__((__malloc__(free, 1))); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -char const *file_type(struct stat const *) __attribute__((__pure__)); - -extern void strmode(mode_t mode, char *str); - -extern void filemodestring(struct stat const *statp, char *str); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct mount_entry { - char *me_devname; - char *me_mountdir; - char *me_mntroot; - - char *me_type; - dev_t me_dev; - unsigned int me_dummy : 1; - unsigned int me_remote : 1; - unsigned int me_type_malloced : 1; - struct mount_entry *me_next; -}; - -struct mount_entry *read_file_system_list(_Bool need_fs_type) - __attribute__((__malloc__)); -void free_mount_entry(struct mount_entry *entry); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -size_t nstrftime(char *__restrict__, size_t, char const *, struct tm const *, - timezone_t __tz, int __ns); - -extern char *find_mount_point(char const *, struct stat const *) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__nonnull__)); - -extern char *xasprintf(const char *format, ...) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) -__attribute__((__format__(__gnu_printf__, 1, 2))); -extern char *xvasprintf(const char *format, va_list args) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__format__(__gnu_printf__, 1, 0))); -static inline struct timespec -statx_timestamp_to_timespec(struct statx_timestamp tsx) { - struct timespec ts; - - ts.tv_sec = tsx.tv_sec; - ts.tv_nsec = tsx.tv_nsec; - return ts; -} - -static inline void statx_to_stat(struct statx *stx, struct stat *stat) { - stat->st_dev = gnu_dev_makedev(stx->stx_dev_major, stx->stx_dev_minor); - stat->st_ino = stx->stx_ino; - stat->st_mode = stx->stx_mode; - stat->st_nlink = stx->stx_nlink; - stat->st_uid = stx->stx_uid; - stat->st_gid = stx->stx_gid; - stat->st_rdev = gnu_dev_makedev(stx->stx_rdev_major, stx->stx_rdev_minor); - stat->st_size = stx->stx_size; - stat->st_blksize = stx->stx_blksize; - - stat->st_blocks = stx->stx_blocks; - stat->st_atim = statx_timestamp_to_timespec(stx->stx_atime); - stat->st_mtim = statx_timestamp_to_timespec(stx->stx_mtime); - stat->st_ctim = statx_timestamp_to_timespec(stx->stx_ctime); -} -static char const digits[] = "0123456789"; - -static char const printf_flags[] = "'-+ - - static char const fmt_terse_fs[] = "%n %i %l %t %s %S %b %f %a %c %d\n"; -static char const fmt_terse_regular[] = "%n %s %b %f %u %g %D %i %h %t %T" - " %X %Y %Z %W %o\n"; -static char const fmt_terse_selinux[] = "%n %s %b %f %u %g %D %i %h %t %T" - " %X %Y %Z %W %o %C\n"; - -enum { PRINTF_OPTION = 0x7f + 1 }; - -enum cached_mode { cached_default, cached_never, cached_always }; - -static char const *const cached_args[] = {"default", "never", "always", - ((void *)0) - -}; - -static enum cached_mode const cached_modes[] = {cached_default, cached_never, - cached_always}; - -static struct option const long_options[] = { - {"dereference", 0, ((void *)0), 'L'}, - {"file-system", 0, ((void *)0), 'f'}, - {"format", 1, ((void *)0), 'c'}, - {"printf", 1, ((void *)0), PRINTF_OPTION}, - {"terse", 0, ((void *)0), 't'}, - {"cached", 1, ((void *)0), 0}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static _Bool follow_links; - -static _Bool interpret_backslash_escapes; - -static char const *trailing_delim = ""; - -static char const *decimal_point; -static size_t decimal_point_len; - -static _Bool - -print_stat(char *pformat, size_t prefix_len, char mod, char m, int fd, - char const *filename, void const *data); - -static char const *human_fstype(struct statfs const *statfsbuf) { - - switch (statfsbuf->f_type) { - case 0x5A3C69F0: - return "aafs"; - case 0x61636673: - return "acfs"; - case 0xADF5: - return "adfs"; - case 0xADFF: - return "affs"; - case 0x5346414F: - return "afs"; - case 0x09041934: - return "anon-inode FS"; - case 0x61756673: - - return "aufs"; - case 0x0187: - return "autofs"; - case 0x13661366: - return "balloon-kvm-fs"; - case 0x42465331: - return "befs"; - case 0x62646576: - return "bdevfs"; - case 0x1BADFACE: - return "bfs"; - case 0x6C6F6F70: - return "binderfs"; - case 0xCAFE4A11: - return "bpf_fs"; - case 0x42494E4D: - return "binfmt_misc"; - case 0x9123683E: - return "btrfs"; - case 0x73727279: - return "btrfs_test"; - case 0x00C36400: - return "ceph"; - case 0x0027E0EB: - return "cgroupfs"; - case 0x63677270: - return "cgroup2fs"; - case 0xFF534D42: - return "cifs"; - case 0x73757245: - return "coda"; - case 0x012FF7B7: - return "coh"; - case 0x62656570: - return "configfs"; - case 0x28CD3D45: - return "cramfs"; - case 0x453DCD28: - return "cramfs-wend"; - case 0x64646178: - return "daxfs"; - case 0x64626720: - return "debugfs"; - case 0x1373: - return "devfs"; - case 0x454D444D: - return "devmem"; - case 0x1CD1: - return "devpts"; - case 0x444D4142: - return "dma-buf-fs"; - case 0xF15F: - return "ecryptfs"; - case 0xDE5E81E4: - return "efivarfs"; - case 0x00414A53: - return "efs"; - case 0xE0F5E1E2: - return "erofs"; - case 0x2011BAB0: - return "exfat"; - case 0x45584653: - return "exfs"; - case 0x5DF5: - return "exofs"; - case 0x137D: - return "ext"; - case 0xEF53: - return "ext2/ext3"; - case 0xEF51: - return "ext2"; - case 0xF2F52010: - return "f2fs"; - case 0x4006: - return "fat"; - case 0x19830326: - return "fhgfs"; - case 0x65735546: - return "fuseblk"; - case 0x65735543: - return "fusectl"; - case 0x0BAD1DEA: - return "futexfs"; - case 0x01161970: - return "gfs/gfs2"; - case 0x47504653: - return "gpfs"; - case 0x4244: - return "hfs"; - case 0x482B: - return "hfs+"; - case 0x4858: - return "hfsx"; - case 0x00C0FFEE: - return "hostfs"; - case 0xF995E849: - return "hpfs"; - case 0x958458F6: - return "hugetlbfs"; - case 0x11307854: - return "inodefs"; - case 0x013111A8: - return "ibrix"; - case 0x2BAD1DEA: - return "inotifyfs"; - case 0x9660: - return "isofs"; - case 0x4004: - return "isofs"; - case 0x4000: - return "isofs"; - case 0x07C0: - return "jffs"; - case 0x72B6: - return "jffs2"; - case 0x3153464A: - return "jfs"; - case 0x6B414653: - return "k-afs"; - case 0xC97E8168: - return "logfs"; - case 0x0BD00BD0: - return "lustre"; - case 0x5346314D: - return "m1fs"; - case 0x137F: - return "minix"; - case 0x138F: - return "minix (30 char.)"; - case 0x2468: - return "minix v2"; - case 0x2478: - return "minix v2 (30 char.)"; - case 0x4D5A: - return "minix3"; - case 0x19800202: - return "mqueue"; - case 0x4D44: - return "msdos"; - case 0x564C: - return "novell"; - case 0x6969: - return "nfs"; - case 0x6E667364: - return "nfsd"; - case 0x3434: - return "nilfs"; - case 0x6E736673: - return "nsfs"; - case 0x5346544E: - return "ntfs"; - case 0x9FA1: - return "openprom"; - case 0x7461636F: - return "ocfs2"; - case 0x794C7630: - - return "overlayfs"; - case 0xAAD7AAEA: - return "panfs"; - case 0x50495045: - - return "pipefs"; - case 0xC7571590: - return "ppc-cmm-fs"; - case 0x7C7C6673: - return "prl_fs"; - case 0x9FA0: - return "proc"; - case 0x6165676C: - return "pstorefs"; - case 0x002F: - return "qnx4"; - case 0x68191122: - return "qnx6"; - case 0x858458F6: - return "ramfs"; - case 0x07655821: - return "rdt"; - case 0x52654973: - return "reiserfs"; - case 0x7275: - return "romfs"; - case 0x67596969: - return "rpc_pipefs"; - case 0x5DCA2DF5: - return "sdcardfs"; - case 0x5345434D: - return "secretmem"; - case 0x73636673: - return "securityfs"; - case 0xF97CFF8C: - return "selinux"; - case 0x43415D53: - return "smackfs"; - case 0x517B: - return "smb"; - case 0xFE534D42: - return "smb2"; - case 0xBEEFDEAD: - return "snfs"; - case 0x534F434B: - return "sockfs"; - case 0x73717368: - return "squashfs"; - case 0x62656572: - return "sysfs"; - case 0x012FF7B6: - return "sysv2"; - case 0x012FF7B5: - return "sysv4"; - case 0x01021994: - return "tmpfs"; - case 0x74726163: - return "tracefs"; - case 0x24051905: - return "ubifs"; - case 0x15013346: - return "udf"; - case 0x00011954: - return "ufs"; - case 0x54190100: - return "ufs"; - case 0x9FA2: - return "usbdevfs"; - case 0x01021997: - return "v9fs"; - case 0x786F4256: - return "vboxsf"; - case 0xBACBACBC: - return "vmhgfs"; - case 0xA501FCF5: - - return "vxfs"; - case 0x565A4653: - return "vzfs"; - case 0x53464846: - return "wslfs"; - case 0xABBA1974: - return "xenfs"; - case 0x012FF7B4: - return "xenix"; - case 0x58465342: - return "xfs"; - case 0x012FD16D: - return "xia"; - case 0x0033: - return "z3fold"; - case 0x2FC12FC1: - return "zfs"; - case 0x5A4F4653: - return "zonefs"; - case 0x58295829: - return "zsmallocfs"; - default: { - unsigned long int type = statfsbuf->f_type; - static char buf[sizeof "UNKNOWN (0x%lx)" - 3 + (sizeof type * 8 + 3) / 4]; - sprintf(buf, "UNKNOWN (0x%lx)", type); - return buf; - } - } -} - -static char *human_access(struct stat const *statbuf) { - static char modebuf[12]; - filemodestring(statbuf, modebuf); - modebuf[10] = 0; - return modebuf; -} - -static char *human_time(struct timespec t) { - - static char str[((((((sizeof(intmax_t) * 8) - (!((__typeof__(intmax_t))0 < - (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1) + - (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) + - 1 + sizeof "-MM-DD HH:MM:SS.NNNNNNNNN +"]; - static timezone_t tz; - if (!tz) - tz = tzalloc(getenv("TZ")); - struct tm tm; - int ns = t.tv_nsec; - if (localtime_rz(tz, &t.tv_sec, &tm)) - nstrftime(str, sizeof str, "%Y-%m-%d %H:%M:%S.%N %z", &tm, tz, ns); - else { - char secbuf[((((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - 1)]; - sprintf(str, "%s.%09d", timetostr(t.tv_sec, secbuf), ns); - } - return str; -} - -static void make_format(char *pformat, size_t prefix_len, - char const *allowed_flags, char const *suffix) { - char *dst = pformat + 1; - char const *src; - char const *srclim = pformat + prefix_len; - for (src = dst; src < srclim && strchr(printf_flags, *src); src++) - if (strchr(allowed_flags, *src)) - *dst++ = *src; - while (src < srclim) - *dst++ = *src++; - strcpy(dst, suffix); -} - -static void out_string(char *pformat, size_t prefix_len, char const *arg) { - make_format(pformat, prefix_len, "-", "s"); - printf(pformat, arg); -} -static int out_int(char *pformat, size_t prefix_len, intmax_t arg) { - make_format(pformat, prefix_len, "'-+ 0", - "l" - "d"); - return printf(pformat, arg); -} -static int out_uint(char *pformat, size_t prefix_len, uintmax_t arg) { - make_format(pformat, prefix_len, "'-0", - "l" - "u"); - return printf(pformat, arg); -} -static void out_uint_o(char *pformat, size_t prefix_len, uintmax_t arg) { - make_format(pformat, prefix_len, - "- " l " " o " - ); - printf(pformat, arg); -} -static void out_uint_x(char *pformat, size_t prefix_len, uintmax_t arg) { - make_format(pformat, prefix_len, - "- " l " " x " - ); - printf(pformat, arg); -} -static int out_minus_zero(char *pformat, size_t prefix_len) { - make_format(pformat, prefix_len, "'-+ 0", ".0f"); - return printf(pformat, -0.25); -} - -static void out_epoch_sec(char *pformat, size_t prefix_len, - struct timespec arg) { - char *dot = memchr(pformat, '.', prefix_len); - size_t sec_prefix_len = prefix_len; - int width = 0; - int precision = 0; - - _Bool frac_left_adjust = 0; - - if (dot) { - sec_prefix_len = dot - pformat; - pformat[prefix_len] = '\0'; - - if (((unsigned int)(dot[1]) - '0' <= 9)) { - long int lprec = strtol(dot + 1, ((void *)0), 10); - precision = (lprec <= 0x7fffffff ? lprec : 0x7fffffff); - } else { - precision = 9; - } - - if (precision && ((unsigned int)(dot[-1]) - '0' <= 9)) { - - char *p = dot; - *dot = '\0'; - - do - --p; - while (((unsigned int)(p[-1]) - '0' <= 9)); - - long int lwidth = strtol(p, ((void *)0), 10); - width = (lwidth <= 0x7fffffff ? lwidth : 0x7fffffff); - if (1 < width) { - p += (*p == '0'); - sec_prefix_len = p - pformat; - int w_d = (decimal_point_len < width ? width - decimal_point_len : 0); - if (1 < w_d) { - int w = w_d - precision; - if (1 < w) { - char *dst = pformat; - for (char const *src = dst; src < p; src++) { - if (*src == '-') - frac_left_adjust = 1; - else - *dst++ = *src; - } - sec_prefix_len = (dst - pformat + - (frac_left_adjust ? 0 : sprintf(dst, "%d", w))); - } - } - } - } - } - - int divisor = 1; - for (int i = precision; i < 9; i++) - divisor *= 10; - int frac_sec = arg.tv_nsec / divisor; - int int_len; - - if ((!((time_t)0 < (time_t)-1))) { - - _Bool minus_zero = 0; - if (arg.tv_sec < 0 && arg.tv_nsec != 0) { - int frac_sec_modulus = 1000000000 / divisor; - frac_sec = (frac_sec_modulus - frac_sec - (arg.tv_nsec % divisor != 0)); - arg.tv_sec += (frac_sec != 0); - minus_zero = (arg.tv_sec == 0); - } - int_len = (minus_zero ? out_minus_zero(pformat, sec_prefix_len) - : out_int(pformat, sec_prefix_len, arg.tv_sec)); - } else - int_len = out_uint(pformat, sec_prefix_len, arg.tv_sec); - - if (precision) { - int prec = (precision < 9 ? precision : 9); - int trailing_prec = precision - prec; - int ilen = (int_len < 0 ? 0 : int_len); - int trailing_width = (ilen < width && decimal_point_len < width - ilen - ? width - ilen - decimal_point_len - prec - : 0); - printf("%s%.*d%-*.*d", decimal_point, prec, frac_sec, trailing_width, - trailing_prec, 0); - } -} - -static _Bool - -out_file_context(char *pformat, size_t prefix_len, char const *filename) { - char *scontext; - - _Bool fail = 0; - - if ((follow_links ? rpl_getfilecon(filename, &scontext) - : rpl_lgetfilecon(filename, &scontext)) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to get security context of %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - scontext = ((void *)0); - fail = 1; - } - strcpy(pformat + prefix_len, "s"); - printf(pformat, (scontext ? scontext : "?")); - if (scontext) - freecon(scontext); - return fail; -} - -static _Bool - -print_statfs(char *pformat, size_t prefix_len, char mod, char m, int fd, - char const *filename, void const *data) { - struct statfs const *statfsbuf = data; - - _Bool fail = 0; - - switch (m) { - case 'n': - out_string(pformat, prefix_len, filename); - break; - - case 'i': { - - typedef unsigned int fsid_word; - _Static_assert(_Alignof(struct statfs) % _Alignof(fsid_word) == 0, - "verify (" - "alignof (STRUCT_STATVFS) % alignof (fsid_word) == 0" - ")"); - _Static_assert( - __builtin_offsetof(struct statfs, f_fsid) % _Alignof(fsid_word) == 0, - "verify (" - "offsetof (STRUCT_STATVFS, f_fsid) % alignof (fsid_word) == 0" - ")"); - _Static_assert(sizeof statfsbuf->f_fsid % _Alignof(fsid_word) == 0, - "verify (" - "sizeof statfsbuf->f_fsid % alignof (fsid_word) == 0" - ")"); - fsid_word const *p = (fsid_word *)&statfsbuf->f_fsid; - - uintmax_t fsid = 0; - int words = sizeof statfsbuf->f_fsid / sizeof *p; - for (int i = 0; i < words && i * sizeof *p < sizeof fsid; i++) { - uintmax_t u = p[words - 1 - i]; - fsid |= u << (i * 8 * sizeof *p); - } - - out_uint_x(pformat, prefix_len, fsid); - } break; - - case 'l': - out_uint(pformat, prefix_len, ((statfsbuf)->f_namelen)); - break; - case 't': - - out_uint_x(pformat, prefix_len, statfsbuf->f_type); - - break; - case 'T': - out_string(pformat, prefix_len, human_fstype(statfsbuf)); - break; - case 'b': - out_int(pformat, prefix_len, statfsbuf->f_blocks); - break; - case 'f': - out_int(pformat, prefix_len, statfsbuf->f_bfree); - break; - case 'a': - out_int(pformat, prefix_len, statfsbuf->f_bavail); - break; - case 's': - out_uint(pformat, prefix_len, statfsbuf->f_bsize); - break; - case 'S': { - uintmax_t frsize = ((statfsbuf)->f_frsize); - if (!frsize) - frsize = statfsbuf->f_bsize; - out_uint(pformat, prefix_len, frsize); - } break; - case 'c': - out_uint(pformat, prefix_len, statfsbuf->f_files); - break; - case 'd': - out_int(pformat, prefix_len, statfsbuf->f_ffree); - break; - default: - fputc_unlocked('?', stdout); - break; - } - return fail; -} - -static char const *find_bind_mount(char const *name) { - char const *bind_mount = ((void *)0); - - static struct mount_entry *mount_list; - static _Bool tried_mount_list = 0; - if (!tried_mount_list) { - if (!(mount_list = read_file_system_list(0))) - error(0, (*__errno_location()), "%s", - dcgettext(((void *)0), "cannot read table of mounted file systems", - 5)); - tried_mount_list = 1; - } - - struct stat name_stats; - if (stat(name, &name_stats) != 0) - return ((void *)0); - - struct mount_entry *me; - for (me = mount_list; me; me = me->me_next) { - if (me->me_dummy && me->me_devname[0] == '/' && - (strcmp(me->me_mountdir, name) == 0)) { - struct stat dev_stats; - - if (stat(me->me_devname, &dev_stats) == 0 && - ((name_stats).st_ino == (dev_stats).st_ino && - (name_stats).st_dev == (dev_stats).st_dev)) { - bind_mount = me->me_devname; - break; - } - } - } - - return bind_mount; -} - -static _Bool - -out_mount_point(char const *filename, char *pformat, size_t prefix_len, - const struct stat *statp) { - - char const *np = "?", *bp = ((void *)0); - char *mp = ((void *)0); - - _Bool fail = 1; - - if (follow_links || !((((statp->st_mode)) & 0170000) == (0120000))) { - char *resolved = canonicalize_file_name(filename); - if (!resolved) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to canonicalize %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - goto print_mount_point; - } - bp = find_bind_mount(resolved); - free(resolved); - if (bp) { - fail = 0; - goto print_mount_point; - } - } - - if ((mp = find_mount_point(filename, statp))) { - - bp = find_bind_mount(mp); - fail = 0; - } - -print_mount_point: - - out_string(pformat, prefix_len, bp ? bp : mp ? mp : np); - free(mp); - return fail; -} - -static inline struct timespec neg_to_zero(struct timespec ts) { - if (0 <= ts.tv_nsec) - return ts; - struct timespec z = {0, 0}; - return z; -} - -static void getenv_quoting_style(void) { - char const *q_style = getenv("QUOTING_STYLE"); - if (q_style) { - int i = argmatch(q_style, quoting_style_args, - (void const *)(quoting_style_vals), - sizeof *(quoting_style_vals)); - if (0 <= i) - set_quoting_style(((void *)0), quoting_style_vals[i]); - else { - set_quoting_style(((void *)0), shell_escape_always_quoting_style); - error(0, 0, - dcgettext(((void *)0), - "ignoring invalid value of environment " - "variable QUOTING_STYLE: %s", - 5) - - , - quote(q_style)); - } - } else - set_quoting_style(((void *)0), shell_escape_always_quoting_style); -} - -static void print_esc_char(char c) { - switch (c) { - case 'a': - c = '\a'; - break; - case 'b': - c = '\b'; - break; - case 'e': - c = '\x1B'; - break; - case 'f': - c = '\f'; - break; - case 'n': - c = '\n'; - break; - case 'r': - c = '\r'; - break; - case 't': - c = '\t'; - break; - case 'v': - c = '\v'; - break; - case '"': - case '\\': - break; - default: - error(0, 0, - dcgettext(((void *)0), "warning: unrecognized escape '\\%c'", 5), c); - break; - } - putchar_unlocked(c); -} - -__attribute__((__pure__)) static size_t -format_code_offset(char const *directive) { - size_t len = strspn(directive + 1, printf_flags); - char const *fmt_char = directive + len + 1; - fmt_char += strspn(fmt_char, digits); - if (*fmt_char == '.') - fmt_char += 1 + strspn(fmt_char + 1, digits); - return fmt_char - directive; -} - -static _Bool - -print_it(char const *format, int fd, char const *filename, - - _Bool (*print_func)(char *, size_t, char, char, int, char const *, - void const *), - void const *data) { - - _Bool fail = 0; - - enum { - MAX_ADDITIONAL_BYTES = - ((((sizeof "l" - "d") > ((((sizeof "l" - "o") > ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))) - ? (sizeof "l" - "o") - : ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))))) - ? (sizeof "l" - "d") - : ((((sizeof "l" - "o") > ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))) - ? (sizeof "l" - "o") - : ((((sizeof "l" - "u") > (sizeof "l" - "x")) - ? (sizeof "l" - "u") - : (sizeof "l" - "x")))))) - - - 1) - }; - size_t n_alloc = strlen(format) + MAX_ADDITIONAL_BYTES + 1; - char *dest = xmalloc(n_alloc); - char const *b; - for (b = format; *b; b++) { - switch (*b) { - case '%': { - size_t len = format_code_offset(b); - char fmt_char = *(b + len); - char mod_char = 0; - memcpy(dest, b, len); - b += len; - - switch (fmt_char) { - case '\0': - --b; - ; - case '%': - if (1 < len) { - dest[len] = fmt_char; - dest[len + 1] = '\0'; - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: invalid " - "directive\", 5), quote (dest)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: invalid directive", 5), - quote(dest)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: invalid directive", 5), - quote(dest)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - putchar_unlocked('%'); - break; - case 'H': - case 'L': - mod_char = fmt_char; - fmt_char = *(b + 1); - if (print_func == print_stat && (fmt_char == 'd' || fmt_char == 'r')) { - b++; - } else { - fmt_char = mod_char; - mod_char = 0; - }; - default: - fail |= print_func(dest, len, mod_char, fmt_char, fd, filename, data); - break; - } - break; - } - - case '\\': - if (!interpret_backslash_escapes) { - putchar_unlocked('\\'); - break; - } - ++b; - if (('0' <= (*b) && (*b) <= '7')) { - int esc_value = ((*b) - '0'); - int esc_length = 1; - for (++b; esc_length < 3 && ('0' <= (*b) && (*b) <= '7'); - ++esc_length, ++b) { - esc_value = esc_value * 8 + ((*b) - '0'); - } - putchar_unlocked(esc_value); - --b; - } else if (*b == 'x' && ((*__ctype_b_loc())[(int)((to_uchar(b[1])))] & - (unsigned short int)_ISxdigit)) { - int esc_value = ((b[1]) >= 'a' && (b[1]) <= 'f' ? (b[1]) - 'a' + 10 - : (b[1]) >= 'A' && (b[1]) <= 'F' ? (b[1]) - 'A' + 10 - : (b[1]) - '0'); - - ++b; - if (((*__ctype_b_loc())[(int)((to_uchar(b[1])))] & - (unsigned short int)_ISxdigit)) { - ++b; - esc_value = - esc_value * 16 + ((*b) >= 'a' && (*b) <= 'f' ? (*b) - 'a' + 10 - : (*b) >= 'A' && (*b) <= 'F' ? (*b) - 'A' + 10 - : (*b) - '0'); - } - putchar_unlocked(esc_value); - } else if (*b == '\0') { - error(0, 0, - dcgettext(((void *)0), "warning: backslash at end of format", 5)); - putchar_unlocked('\\'); - - --b; - } else { - print_esc_char(*b); - } - break; - - default: - putchar_unlocked(*b); - break; - } - } - free(dest); - - fputs_unlocked(trailing_delim, stdout); - - return fail; -} - -static _Bool - -do_statfs(char const *filename, char const *format) { - struct statfs statfsbuf; - - if ((strcmp(filename, "-") == 0)) { - error(0, 0, - dcgettext(((void *)0), - "using %s to denote standard input does not work" - " in file system mode", - 5) - - , - quotearg_style(shell_escape_always_quoting_style, filename)); - return 0; - } - - if (statfs(filename, &statfsbuf) != 0) { - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "cannot read file system information for %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - return 0; - } - - _Bool fail = print_it(format, -1, filename, print_statfs, &statfsbuf); - return !fail; -} - -struct print_args { - struct stat *st; - struct timespec btime; -}; - -static _Bool dont_sync; - -static _Bool force_sync; - -static unsigned int fmt_to_mask(char fmt) { - switch (fmt) { - case 'N': - return 0x00000002U; - case 'd': - case 'D': - return 0x00000002U; - case 'i': - return 0x00000100U; - case 'a': - case 'A': - return 0x00000002U; - case 'f': - return 0x00000002U | 0x00000001U; - case 'F': - return 0x00000001U; - case 'h': - return 0x00000004U; - case 'u': - case 'U': - return 0x00000008U; - case 'g': - case 'G': - return 0x00000010U; - case 'm': - return 0x00000002U | 0x00000100U; - case 's': - return 0x00000200U; - case 't': - case 'T': - return 0x00000002U; - case 'b': - return 0x00000400U; - case 'w': - case 'W': - return 0x00000800U; - case 'x': - case 'X': - return 0x00000020U; - case 'y': - case 'Y': - return 0x00000040U; - case 'z': - case 'Z': - return 0x00000080U; - } - return 0; -} - -__attribute__((__pure__)) static unsigned int -format_to_mask(char const *format) { - unsigned int mask = 0; - char const *b; - - for (b = format; *b; b++) { - if (*b != '%') - continue; - - b += format_code_offset(b); - if (*b == '\0') - break; - mask |= fmt_to_mask(*b); - } - return mask; -} - -static _Bool - -do_stat(char const *filename, char const *format, char const *format2) { - int fd = (strcmp(filename, "-") == 0) ? 0 : -100; - int flags = 0; - struct stat st; - struct statx stx = { - 0, - }; - char const *pathname = filename; - struct print_args pa; - pa.st = &st; - pa.btime = (struct timespec){-1, -1}; - - if (-100 != fd) { - pathname = ""; - flags = 0x1000; - } else if (!follow_links) { - flags = 0x100; - } - - if (dont_sync) - flags |= 0x4000; - else if (force_sync) - flags |= 0x2000; - - if (!force_sync) - flags |= 0x800; - - fd = statx(fd, pathname, flags, format_to_mask(format), &stx); - if (fd < 0) { - if (flags & 0x1000) - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot stat standard input", 5)); - else - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot statx %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - return 0; - } - - if (((((stx.stx_mode)) & 0170000) == (0060000)) || - ((((stx.stx_mode)) & 0170000) == (0020000))) - format = format2; - - statx_to_stat(&stx, &st); - if (stx.stx_mask & 0x00000800U) - pa.btime = statx_timestamp_to_timespec(stx.stx_btime); - - _Bool fail = print_it(format, fd, filename, print_stat, &pa); - return !fail; -} -static _Bool - -print_stat(char *pformat, size_t prefix_len, char mod, char m, int fd, - char const *filename, void const *data) { - struct print_args *parg = (struct print_args *)data; - struct stat *statbuf = parg->st; - struct timespec btime = parg->btime; - struct passwd *pw_ent; - struct group *gw_ent; - - _Bool fail = 0; - - switch (m) { - case 'n': - out_string(pformat, prefix_len, filename); - break; - case 'N': - out_string(pformat, prefix_len, - quotearg_style(get_quoting_style(((void *)0)), filename)); - if (((((statbuf->st_mode)) & 0170000) == (0120000))) { - char *linkname = areadlink_with_size(filename, statbuf->st_size); - if (linkname == ((void *)0)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot read symbolic link %s", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - return 1; - } - printf(" -> "); - out_string(pformat, prefix_len, - quotearg_style(get_quoting_style(((void *)0)), linkname)); - free(linkname); - } - break; - case 'd': - if (mod == 'H') - out_uint(pformat, prefix_len, gnu_dev_major(statbuf->st_dev)); - else if (mod == 'L') - out_uint(pformat, prefix_len, gnu_dev_minor(statbuf->st_dev)); - else - out_uint(pformat, prefix_len, statbuf->st_dev); - break; - case 'D': - out_uint_x(pformat, prefix_len, statbuf->st_dev); - break; - case 'i': - out_uint(pformat, prefix_len, statbuf->st_ino); - break; - case 'a': - out_uint_o(pformat, prefix_len, - statbuf->st_mode & - (04000 | 02000 | 01000 | (0400 | 0200 | 0100) | - ((0400 | 0200 | 0100) >> 3) | - (((0400 | 0200 | 0100) >> 3) >> 3))); - break; - case 'A': - out_string(pformat, prefix_len, human_access(statbuf)); - break; - case 'f': - out_uint_x(pformat, prefix_len, statbuf->st_mode); - break; - case 'F': - out_string(pformat, prefix_len, file_type(statbuf)); - break; - case 'h': - out_uint(pformat, prefix_len, statbuf->st_nlink); - break; - case 'u': - out_uint(pformat, prefix_len, statbuf->st_uid); - break; - case 'U': - pw_ent = getpwuid(statbuf->st_uid); - out_string(pformat, prefix_len, pw_ent ? pw_ent->pw_name : "UNKNOWN"); - break; - case 'g': - out_uint(pformat, prefix_len, statbuf->st_gid); - break; - case 'G': - gw_ent = getgrgid(statbuf->st_gid); - out_string(pformat, prefix_len, gw_ent ? gw_ent->gr_name : "UNKNOWN"); - break; - case 'm': - fail |= out_mount_point(filename, pformat, prefix_len, statbuf); - break; - case 's': - out_int(pformat, prefix_len, statbuf->st_size); - break; - case 'r': - if (mod == 'H') - out_uint(pformat, prefix_len, gnu_dev_major(statbuf->st_rdev)); - else if (mod == 'L') - out_uint(pformat, prefix_len, gnu_dev_minor(statbuf->st_rdev)); - else - out_uint(pformat, prefix_len, statbuf->st_rdev); - break; - case 'R': - out_uint_x(pformat, prefix_len, statbuf->st_rdev); - break; - case 't': - out_uint_x(pformat, prefix_len, gnu_dev_major(statbuf->st_rdev)); - break; - case 'T': - out_uint_x(pformat, prefix_len, gnu_dev_minor(statbuf->st_rdev)); - break; - case 'B': - out_uint(pformat, prefix_len, 512); - break; - case 'b': - out_uint(pformat, prefix_len, ((*statbuf).st_blocks)); - break; - case 'o': - out_uint(pformat, prefix_len, - ((0 < (*statbuf).st_blksize && - (*statbuf).st_blksize <= ((size_t)-1) / 8 + 1) - ? (*statbuf).st_blksize - : 512)); - break; - case 'w': { - - if (btime.tv_nsec < 0) - out_string(pformat, prefix_len, "-"); - else - out_string(pformat, prefix_len, human_time(btime)); - } break; - case 'W': { - - out_epoch_sec(pformat, prefix_len, neg_to_zero(btime)); - } break; - case 'x': - out_string(pformat, prefix_len, human_time(get_stat_atime(statbuf))); - break; - case 'X': - out_epoch_sec(pformat, prefix_len, get_stat_atime(statbuf)); - break; - case 'y': - out_string(pformat, prefix_len, human_time(get_stat_mtime(statbuf))); - break; - case 'Y': - out_epoch_sec(pformat, prefix_len, get_stat_mtime(statbuf)); - break; - case 'z': - out_string(pformat, prefix_len, human_time(get_stat_ctime(statbuf))); - break; - case 'Z': - out_epoch_sec(pformat, prefix_len, get_stat_ctime(statbuf)); - break; - case 'C': - fail |= out_file_context(pformat, prefix_len, filename); - break; - default: - fputc_unlocked('?', stdout); - break; - } - return fail; -} - -static char *default_format(_Bool fs, _Bool terse, _Bool device) { - char *format; - if (fs) { - if (terse) - format = xstrdup(fmt_terse_fs); - else { - - format = - xstrdup(dcgettext(((void *)0), - " File: \"%n\"\n" - " ID: %-8i Namelen: %-7l Type: %T\n" - "Block size: %-10s Fundamental block size: %S\n" - "Blocks: Total: %-10b Free: %-10f Available: %a\n" - "Inodes: Total: %-10c Free: %d\n", - 5) - - ); - } - } else { - if (terse) { - if (0 < is_selinux_enabled()) - format = xstrdup(fmt_terse_selinux); - else - format = xstrdup(fmt_terse_regular); - } else { - char *temp; - - format = xstrdup(dcgettext( - ((void *)0), - " File: %N\n Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n", 5) - - ); - - temp = format; - if (device) { - - format = xasprintf("%s%s", format, - dcgettext(((void *)0), - "" - "Device: %Hd,%Ld\tInode: %-10i Links: " - "%-5h Device type: %Hr,%Lr\n", - 5) - - ); - } else { - - format = - xasprintf("%s%s", format, - dcgettext(((void *)0), - "" - "Device: %Hd,%Ld\tInode: %-10i Links: %h\n", - 5) - - ); - } - free(temp); - - temp = format; - - format = xasprintf( - "%s%s", format, - dcgettext(((void *)0), - "" - "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n", - 5) - - ); - free(temp); - - if (0 < is_selinux_enabled()) { - temp = format; - - format = xasprintf("%s%s", format, - dcgettext(((void *)0), "Context: %C\n", 5)); - free(temp); - } - - temp = format; - - format = xasprintf("%s%s", format, - - dcgettext(((void *)0), - "Access: %x\n" - "Modify: %y\n" - "Change: %z\n" - " Birth: %w\n", - 5) - - ); - free(temp); - } - } - return format; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... FILE...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), "Display file or file system status.\n", 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -L, --dereference follow links\n -f, --file-system " - " display file system status instead of file status\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --cached=MODE specify how to use " - "cached attributes;\n " - "useful on remote file systems. See MODE below\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -c --format=FORMAT use the specified FORMAT instead of the " - "default;\n output a newline after each " - "use of FORMAT\n --printf=FORMAT like --format, but " - "interpret backslash escapes,\n and do " - "not output a mandatory trailing newline;\n " - " if you want a newline, include \\n in FORMAT\n -t, --terse " - " print the information in terse form\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - - fputs_unlocked( - dcgettext(((void *)0), - "\nThe MODE argument of --cached can be: always, never, or " - "default.\n'always' will use cached attributes if available, " - "while\n'never' will try to synchronize with the latest " - "attributes, and\n'default' will leave it up to the " - "underlying file system.\n", - 5), - stdout) - - ; - - fputs_unlocked ( - dcgettext (((void *)0), - "\nThe valid format sequences for files (without --file-system):\n\n %a permission bits in octal (note ' , 5) - , - stdout - ) - - - - - - - - ; - fputs_unlocked ( - dcgettext (((void *)0), - " %d device number in decimal (st_dev)\n %D device number in hex (st_dev)\n %Hd major device number in decimal\n %Ld minor device number in decimal\n %f raw mode in hex\n %F file type\n %g group ID of owner\n %G group name of owner\n" - , 5) - , - stdout - ) - ; - fputs_unlocked ( - dcgettext (((void *)0), - " %h number of hard links\n %i inode number\n %m mount point\n %n file name\n %N quoted file name with dereference if symbolic link\n %o optimal I/O transfer size hint\n %s total size, in bytes\n %r device type in decimal (st_rdev)\n %R device type in hex (st_rdev)\n %Hr major device type in decimal, for character/block device special files\n %Lr minor device type in decimal, for character/block device special files\n %t major device type in hex, for character/block device special files\n %T minor device type in hex, for character/block device special files\n" - , 5) - , - stdout - ) - ; - fputs_unlocked ( - dcgettext (((void *)0), - " %u user ID of owner\n %U user name of owner\n %w time of file birth, human-readable; - if unknown\n %W time of file birth, seconds since Epoch; 0 if unknown\n %x time of last access, human-readable\n %X time of last access, seconds since Epoch\n %y time of last data modification, human-readable\n %Y time of last data modification, seconds since Epoch\n %z time of last status change, human-readable\n %Z time of last status change, seconds since Epoch\n\n" - , 5) - , - stdout - ) - ; - - fputs_unlocked ( - dcgettext (((void *)0), - "Valid format sequences for file systems:\n\n %a free blocks available to non-superuser\n %b total data blocks in file system\n %c total file nodes in file system\n %d free file nodes in file system\n %f free blocks in file system\n" - , 5) - , - stdout - ) - - - - - - - - ; - fputs_unlocked ( - dcgettext (((void *)0), - " %i file system ID in hex\n %l maximum length of filenames\n %n file name\n %s block size (for faster transfers)\n %S fundamental block size (for block counts)\n %t file system type in hex\n %T file system type in human readable form\n" - , 5) - , - stdout - ) - - - - - - - - ; - - printf ( - dcgettext (((void *)0), - "\n--terse is equivalent to the following FORMAT:\n %s" - , 5) - - - - , - - fmt_terse_selinux - - - - ); - - printf ( - dcgettext (((void *)0), - "--terse --file-system is equivalent to the following FORMAT:\n %s" - , 5) - - - - , fmt_terse_fs); - - printf ( - dcgettext (((void *)0), - "\n" "NOTE: your shell may have its own version of %s, which usually supersedes\n" "the version described here. Please refer to your shell's documentation\n" "for details about the options it supports.\n" - , 5) - , "stat"); - emit_ancillary_info ("stat"); - } - exit(status); -} - -int main(int argc, char *argv[]) { - int c; - - _Bool fs = 0; - - _Bool terse = 0; - char *format = ((void *)0); - char *format2; - - _Bool ok = 1; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - struct lconv const *locale = localeconv(); - decimal_point = (locale->decimal_point[0] ? locale->decimal_point : "."); - decimal_point_len = strlen(decimal_point); - - atexit(close_stdout); - - while ((c = getopt_long(argc, argv, "c:fLt", long_options, ((void *)0))) != - -1) { - switch (c) { - case PRINTF_OPTION: - format = optarg; - interpret_backslash_escapes = 1; - trailing_delim = ""; - break; - - case 'c': - format = optarg; - interpret_backslash_escapes = 0; - trailing_delim = "\n"; - break; - - case 'L': - follow_links = 1; - break; - - case 'f': - fs = 1; - break; - - case 't': - terse = 1; - break; - - case 0: - switch (((cached_modes)[__xargmatch_internal( - "--cached", optarg, cached_args, (void const *)(cached_modes), - sizeof *(cached_modes), argmatch_die, 1)])) { - case cached_never: - force_sync = 1; - dont_sync = 0; - break; - case cached_always: - force_sync = 0; - dont_sync = 1; - break; - case cached_default: - force_sync = 0; - dont_sync = 0; - } - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "stat", "GNU coreutils", Version, ("Michael Meskes"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (argc == optind) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - if (format) { - if (strstr(format, "%N")) - getenv_quoting_style(); - format2 = format; - } else { - format = default_format(fs, terse, 0); - format2 = default_format(fs, terse, 1); - } - - for (int i = optind; i < argc; i++) - ok &= (fs ? do_statfs(argv[i], format) : do_stat(argv[i], format, format2)); - - exit(ok ? 0 : 1); -} diff --git a/tests/source/coreutils/stdbuf.c b/tests/source/coreutils/stdbuf.c deleted file mode 100644 index ec0d8ee..0000000 --- a/tests/source/coreutils/stdbuf.c +++ /dev/null @@ -1,7862 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -extern char *xreadlink(char const *filename) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -inline _Bool - -c_isalnum(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isalpha(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isascii(int c) { - switch (c) { - case ' ': - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_isblank(int c) { - return c == ' ' || c == '\t'; -} - -inline _Bool - -c_iscntrl(int c) { - switch (c) { - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isgraph(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_islower(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isprint(int c) { - switch (c) { - case ' ': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_ispunct(int c) { - switch (c) { - case '!': - case '"': - case ' return 1; default: - return 0; - } -} - -inline _Bool - -c_isspace(int c) { - switch (c) { - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isupper(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isxdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline int c_tolower(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return c - 'A' + 'a'; - default: - return c; - } -} - -inline int c_toupper(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return c - 'a' + 'A'; - default: - return c; - } -} - -static char *program_path; - -static struct { - size_t size; - int optc; - char *optarg; -} stdbuf[3]; - -static struct option const longopts[] = { - {"input", 1, ((void *)0), 'i'}, - {"output", 1, ((void *)0), 'o'}, - {"error", 1, ((void *)0), 'e'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static int parse_size(char const *str, size_t *size) { - uintmax_t tmp_size; - enum strtol_error e = - xstrtoumax(str, ((void *)0), 10, &tmp_size, "EGkKMPTYZ0"); - if (e == LONGINT_OK && (18446744073709551615UL) < tmp_size) - e = LONGINT_OVERFLOW; - - if (e == LONGINT_OK) { - - (*__errno_location()) = 0; - *size = tmp_size; - return 0; - } - - (*__errno_location()) = (e == LONGINT_OVERFLOW ? 75 : (*__errno_location())); - return -1; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s OPTION... COMMAND\n", 5), - program_name); - fputs_unlocked(dcgettext(((void *)0), - "Run COMMAND, with modified buffering operations " - "for its standard streams.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " -i, --input=MODE adjust standard input stream buffering\n " - "-o, --output=MODE adjust standard output stream buffering\n -e, " - "--error=MODE adjust standard error stream buffering\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nIf MODE is 'L' the corresponding stream will be line " - "buffered.\nThis option is invalid with standard input.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nIf MODE is '0' the corresponding stream will be unbuffered.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nOtherwise MODE is a number which may be followed by one of the " - "following:\nKB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on " - "for G, T, P, E, Z, Y.\nBinary prefixes can be used, too: KiB=K, " - "MiB=M, and so on.\nIn this case the corresponding stream will be " - "fully buffered with the buffer\nsize set to MODE bytes.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nNOTE: If COMMAND adjusts the buffering of its standard " - "streams ('tee' does\nfor example) then that will override " - "corresponding changes by 'stdbuf'.\nAlso some filters (like " - "'dd' and 'cat' etc.) don't use streams for I/O,\nand are " - "thus unaffected by 'stdbuf' settings.\n", - 5), - stdout) - - ; - emit_ancillary_info("stdbuf"); - } - exit(status); -} - -static void set_program_path(char const *arg) { - if (strchr(arg, '/')) { - program_path = dir_name(arg); - } else { - char *path = xreadlink("/proc/self/exe"); - if (path) - program_path = dir_name(path); - else if ((path = getenv("PATH"))) { - char *dir; - path = xstrdup(path); - for (dir = strtok(path, ":"); dir != ((void *)0); - dir = strtok(((void *)0), ":")) { - char *candidate = file_name_concat(dir, arg, ((void *)0)); - if (access(candidate, 1) == 0) { - program_path = dir_name(candidate); - free(candidate); - break; - } - free(candidate); - } - } - free(path); - } -} - -static int optc_to_fileno(int c) { - int ret = -1; - - switch (c) { - case 'e': - ret = 2; - break; - case 'i': - ret = 0; - break; - case 'o': - ret = 1; - break; - } - - return ret; -} - -static void set_LD_PRELOAD(void) { - int ret; - - char const *preload_env = "LD_PRELOAD"; - - char *old_libs = getenv(preload_env); - char *LD_PRELOAD; - char const *const search_path[] = {program_path, - "/usr/local/libexec/coreutils", - - ((void *)0) - - }; - - char const *const *path = search_path; - char *libstdbuf; - - while (1) { - struct stat sb; - - if (!**path) { - libstdbuf = xstrdup("libstdbuf.so"); - break; - } - ret = rpl_asprintf(&libstdbuf, "%s/%s", *path, "libstdbuf.so"); - if (ret < 0) - xalloc_die(); - if (stat(libstdbuf, &sb) == 0) - break; - free(libstdbuf); - - ++path; - if (!*path) - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, 0, dcgettext (((void *)0), \"failed to " - "find %s\", 5), quote (\"libstdbuf.so\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, 0, - dcgettext(((void *)0), "failed to find %s", 5), - quote("libstdbuf.so")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, 0, - dcgettext(((void *)0), "failed to find %s", 5), - quote("libstdbuf.so")), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (old_libs) - ret = - rpl_asprintf(&LD_PRELOAD, "%s=%s:%s", preload_env, old_libs, libstdbuf); - else - ret = rpl_asprintf(&LD_PRELOAD, "%s=%s", preload_env, libstdbuf); - - if (ret < 0) - xalloc_die(); - - free(libstdbuf); - - ret = putenv(LD_PRELOAD); - - if (ret != 0) { - ((!!sizeof(struct { - _Static_assert(EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext " - "(((void *)0), \"failed to update the environment with " - "%s\", 5), quote (LD_PRELOAD)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "failed to update the environment with %s", 5), - quote(LD_PRELOAD)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "failed to update the environment with %s", 5), - quote(LD_PRELOAD)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } -} - -static _Bool - -set_libstdbuf_options(void) { - - _Bool env_set = 0; - - for (size_t i = 0; i < (sizeof(stdbuf) / sizeof *(stdbuf)); i++) { - if (stdbuf[i].optarg) { - char *var; - int ret; - - if (*stdbuf[i].optarg == 'L') - ret = rpl_asprintf( - &var, "%s%c=L", "_STDBUF_", - - (__extension__({ - int __res; - if (sizeof(stdbuf[i].optc) > 1) { - if (__builtin_constant_p(stdbuf[i].optc)) { - int __c = (stdbuf[i].optc); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_toupper_loc())[__c]; - } else - __res = toupper(stdbuf[i].optc); - } else - __res = (*__ctype_toupper_loc())[(int)(stdbuf[i].optc)]; - __res; - }))); - else - ret = rpl_asprintf( - &var, - "%s%c=%" - "l" - "u", - "_STDBUF_", - - (__extension__({ - int __res; - if (sizeof(stdbuf[i].optc) > 1) { - if (__builtin_constant_p(stdbuf[i].optc)) { - int __c = (stdbuf[i].optc); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_toupper_loc())[__c]; - } else - __res = toupper(stdbuf[i].optc); - } else - __res = (*__ctype_toupper_loc())[(int)(stdbuf[i].optc)]; - __res; - })), - (uintmax_t)stdbuf[i].size); - if (ret < 0) - xalloc_die(); - - if (putenv(var) != 0) { - ((!!sizeof(struct { - _Static_assert( - EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), dcgettext " - "(((void *)0), \"failed to update the environment with %s\", 5), " - "quote (var)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "failed to update the environment with %s", 5), - quote(var)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), - "failed to update the environment with %s", 5), - quote(var)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - env_set = 1; - } - } - - return env_set; -} - -int main(int argc, char **argv) { - int c; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(EXIT_CANCELED); - atexit(close_stdout); - - while ((c = getopt_long(argc, argv, "+i:o:e:", longopts, ((void *)0))) != - -1) { - int opt_fileno; - - switch (c) { - - case 'e': - case 'i': - case 'o': - opt_fileno = optc_to_fileno(c); - - ((void)sizeof( - (0 <= opt_fileno && opt_fileno < (sizeof(stdbuf) / sizeof *(stdbuf))) - ? 1 - : 0), - __extension__({ - if (0 <= opt_fileno && - opt_fileno < (sizeof(stdbuf) / sizeof *(stdbuf))) - ; - else - __assert_fail( - "0 <= opt_fileno && opt_fileno < ARRAY_CARDINALITY (stdbuf)", - "src/stdbuf.c", 336, __extension__ __PRETTY_FUNCTION__); - })); - stdbuf[opt_fileno].optc = c; - while (c_isspace(*optarg)) - optarg++; - stdbuf[opt_fileno].optarg = optarg; - if (c == 'i' && *optarg == 'L') { - - error(0, 0, - dcgettext(((void *)0), "line buffering stdin is meaningless", 5)); - usage(EXIT_CANCELED); - } - - if (!(strcmp(optarg, "L") == 0) && - parse_size(optarg, &stdbuf[opt_fileno].size) == -1) - ((!!sizeof(struct { - _Static_assert(EXIT_CANCELED, - "verify_expr (" - "EXIT_CANCELED" - ", " - "(error (EXIT_CANCELED, (*__errno_location ()), " - "dcgettext (((void *)0), \"invalid mode %s\", 5), " - "quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "invalid mode %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(EXIT_CANCELED, (*__errno_location()), - dcgettext(((void *)0), "invalid mode %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "stdbuf", "GNU coreutils", Version, ("Padraig Brady"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(EXIT_CANCELED); - } - } - - argv += optind; - argc -= optind; - - if (argc < 1) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(EXIT_CANCELED); - } - - if (!set_libstdbuf_options()) { - error( - 0, 0, - dcgettext(((void *)0), "you must specify a buffering mode option", 5)); - usage(EXIT_CANCELED); - } - - set_program_path(program_name); - if (!program_path) - program_path = xstrdup("/usr/local/lib/coreutils"); - set_LD_PRELOAD(); - free(program_path); - - execvp(*argv, argv); - - int exit_status = - (*__errno_location()) == 2 ? EXIT_ENOENT : EXIT_CANNOT_INVOKE; - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to run command %s", 5), quote(argv[0])); - return exit_status; -} diff --git a/tests/source/coreutils/stty.c b/tests/source/coreutils/stty.c deleted file mode 100644 index 71ee508..0000000 --- a/tests/source/coreutils/stty.c +++ /dev/null @@ -1,9113 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef unsigned char cc_t; -typedef unsigned int speed_t; -typedef unsigned int tcflag_t; - -struct termios { - tcflag_t c_iflag; - tcflag_t c_oflag; - tcflag_t c_cflag; - tcflag_t c_lflag; - cc_t c_line; - cc_t c_cc[32]; - speed_t c_ispeed; - speed_t c_ospeed; -}; - -extern speed_t cfgetospeed(const struct termios *__termios_p) - __attribute__((__nothrow__, __leaf__)); - -extern speed_t cfgetispeed(const struct termios *__termios_p) - __attribute__((__nothrow__, __leaf__)); - -extern int cfsetospeed(struct termios *__termios_p, speed_t __speed) - __attribute__((__nothrow__, __leaf__)); - -extern int cfsetispeed(struct termios *__termios_p, speed_t __speed) - __attribute__((__nothrow__, __leaf__)); - -extern int cfsetspeed(struct termios *__termios_p, speed_t __speed) - __attribute__((__nothrow__, __leaf__)); - -extern int tcgetattr(int __fd, struct termios *__termios_p) - __attribute__((__nothrow__, __leaf__)); - -extern int tcsetattr(int __fd, int __optional_actions, - const struct termios *__termios_p) - __attribute__((__nothrow__, __leaf__)); - -extern void cfmakeraw(struct termios *__termios_p) - __attribute__((__nothrow__, __leaf__)); - -extern int tcsendbreak(int __fd, int __duration) - __attribute__((__nothrow__, __leaf__)); - -extern int tcdrain(int __fd); - -extern int tcflush(int __fd, int __queue_selector) - __attribute__((__nothrow__, __leaf__)); - -extern int tcflow(int __fd, int __action) - __attribute__((__nothrow__, __leaf__)); - -extern __pid_t tcgetsid(int __fd) __attribute__((__nothrow__, __leaf__)); - -struct winsize { - unsigned short int ws_row; - unsigned short int ws_col; - unsigned short int ws_xpixel; - unsigned short int ws_ypixel; -}; - -struct termio { - unsigned short int c_iflag; - unsigned short int c_oflag; - unsigned short int c_cflag; - unsigned short int c_lflag; - unsigned char c_line; - unsigned char c_cc[8]; -}; - -extern int ioctl(int __fd, unsigned long int __request, ...) - __attribute__((__nothrow__, __leaf__)); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int fd_reopen(int, char const *, int, mode_t) __attribute__((__nonnull__)); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -enum speed_setting { input_speed, output_speed, both_speeds }; - -enum output_type { changed, all, recoverable }; - -enum mode_type { control, input, output, local, combination }; -struct mode_info { - char const *name; - enum mode_type type; - char flags; - unsigned long bits; - unsigned long mask; -}; - -static struct mode_info const mode_info[] = { - {"parenb", control, 4, 0000400, 0}, - {"parodd", control, 4, 0001000, 0}, - - {"cmspar", control, 4, 010000000000, 0}, - - {"cs5", control, 0, 0000000, 0000060}, - {"cs6", control, 0, 0000020, 0000060}, - {"cs7", control, 0, 0000040, 0000060}, - {"cs8", control, 0, 0000060, 0000060}, - {"hupcl", control, 4, 0002000, 0}, - {"hup", control, 4 | 8, 0002000, 0}, - {"cstopb", control, 4, 0000100, 0}, - {"cread", control, 1 | 4, 0000200, 0}, - {"clocal", control, 4, 0004000, 0}, - - {"crtscts", control, 4, 020000000000, 0}, - - {"ignbrk", input, 2 | 4, 0000001, 0}, - {"brkint", input, 1 | 4, 0000002, 0}, - {"ignpar", input, 4, 0000004, 0}, - {"parmrk", input, 4, 0000010, 0}, - {"inpck", input, 4, 0000020, 0}, - {"istrip", input, 4, 0000040, 0}, - {"inlcr", input, 2 | 4, 0000100, 0}, - {"igncr", input, 2 | 4, 0000200, 0}, - {"icrnl", input, 1 | 4, 0000400, 0}, - {"ixon", input, 4, 0002000, 0}, - {"ixoff", input, 2 | 4, 0010000, 0}, - {"tandem", input, 4 | 8, 0010000, 0}, - - {"iuclc", input, 2 | 4, 0001000, 0}, - - {"ixany", input, 2 | 4, 0004000, 0}, - - {"imaxbel", input, 1 | 4, 0020000, 0}, - - {"iutf8", input, 2 | 4, 0040000, 0}, - - {"opost", output, 1 | 4, 0000001, 0}, - - {"olcuc", output, 2 | 4, 0000002, 0}, - - {"ocrnl", output, 2 | 4, 0000010, 0}, - - {"onlcr", output, 1 | 4, 0000004, 0}, - - {"onocr", output, 2 | 4, 0000020, 0}, - - {"onlret", output, 2 | 4, 0000040, 0}, - - {"ofill", output, 2 | 4, 0000100, 0}, - - {"ofdel", output, 2 | 4, 0000200, 0}, - - {"nl1", output, 2, 0000400, 0000400}, - {"nl0", output, 1, 0000000, 0000400}, - - {"cr3", output, 2, 0003000, 0003000}, - {"cr2", output, 2, 0002000, 0003000}, - {"cr1", output, 2, 0001000, 0003000}, - {"cr0", output, 1, 0000000, 0003000}, - - {"tab3", output, 2, 0014000, 0014000}, - - {"tab2", output, 2, 0010000, 0014000}, - - {"tab1", output, 2, 0004000, 0014000}, - - {"tab0", output, 1, 0000000, 0014000}, - - {"bs1", output, 2, 0020000, 0020000}, - {"bs0", output, 1, 0000000, 0020000}, - - {"vt1", output, 2, 0040000, 0040000}, - {"vt0", output, 1, 0000000, 0040000}, - - {"ff1", output, 2, 0100000, 0100000}, - {"ff0", output, 1, 0000000, 0100000}, - - {"isig", local, 1 | 4, 0000001, 0}, - {"icanon", local, 1 | 4, 0000002, 0}, - - {"iexten", local, 1 | 4, 0100000, 0}, - - {"echo", local, 1 | 4, 0000010, 0}, - {"echoe", local, 1 | 4, 0000020, 0}, - {"crterase", local, 4 | 8, 0000020, 0}, - {"echok", local, 1 | 4, 0000040, 0}, - {"echonl", local, 2 | 4, 0000100, 0}, - {"noflsh", local, 2 | 4, 0000200, 0}, - - {"xcase", local, 2 | 4, 0000004, 0}, - - {"tostop", local, 2 | 4, 0000400, 0}, - - {"echoprt", local, 2 | 4, 0002000, 0}, - {"prterase", local, 4 | 8, 0002000, 0}, - - {"echoctl", local, 1 | 4, 0001000, 0}, - {"ctlecho", local, 4 | 8, 0001000, 0}, - - {"echoke", local, 1 | 4, 0004000, 0}, - {"crtkill", local, 4 | 8, 0004000, 0}, - - {"flusho", local, 2 | 4, 0010000, 0}, - - {"extproc", local, 2 | 4, 0200000, 0}, - - {"evenp", combination, 4 | 8, 0, 0}, - {"parity", combination, 4 | 8, 0, 0}, - {"oddp", combination, 4 | 8, 0, 0}, - {"nl", combination, 4 | 8, 0, 0}, - {"ek", combination, 8, 0, 0}, - {"sane", combination, 8, 0, 0}, - {"cooked", combination, 4 | 8, 0, 0}, - {"raw", combination, 4 | 8, 0, 0}, - {"pass8", combination, 4 | 8, 0, 0}, - {"litout", combination, 4 | 8, 0, 0}, - {"cbreak", combination, 4 | 8, 0, 0}, - - {"decctlq", combination, 4 | 8, 0, 0}, - - {"tabs", combination, 4 | 8, 0, 0}, - - {"lcase", combination, 4 | 8, 0, 0}, - {"LCASE", combination, 4 | 8, 0, 0}, - - {"crt", combination, 8, 0, 0}, - {"dec", combination, 8, 0, 0}, - - {((void *)0), control, 0, 0, 0}}; - -struct control_info { - char const *name; - cc_t saneval; - size_t offset; -}; - -static struct control_info const control_info[] = { - {"intr", ('c' & 037), 0}, - {"quit", 034, 1}, - {"erase", 0177, 2}, - {"kill", ('u' & 037), 3}, - {"eof", ('d' & 037), 4}, - {"eol", '\0', 11}, - - {"eol2", '\0', 16}, - - {"swtch", '\0', 7}, - - {"start", ('q' & 037), 8}, - {"stop", ('s' & 037), 9}, - {"susp", ('z' & 037), 10}, - - {"rprnt", ('r' & 037), 12}, - - {"werase", ('w' & 037), 14}, - - {"lnext", ('v' & 037), 15}, - - {"flush", (('o') & 0x1f), 13}, - {"discard", (('o') & 0x1f), 13}, - - {"min", 1, 6}, - {"time", 0, 5}, - {((void *)0), 0, 0}}; - -static char const *visible(cc_t ch); -static unsigned long int baud_to_value(speed_t speed); -static _Bool recover_mode(char const *arg, struct termios *mode); -static int screen_columns(void); -static _Bool set_mode(struct mode_info const *info, _Bool reversed, - struct termios *mode); -static unsigned long int integer_arg(char const *s, unsigned long int max); -static speed_t string_to_baud(char const *arg); -static tcflag_t *mode_type_flag(enum mode_type type, struct termios *mode); -static void display_all(struct termios *mode, char const *device_name); -static void display_changed(struct termios *mode); -static void display_recoverable(struct termios *mode); -static void display_settings(enum output_type output_type, struct termios *mode, - char const *device_name); -static void display_speed(struct termios *mode, _Bool fancy); -static void display_window_size(_Bool fancy, char const *device_name); -static void sane_mode(struct termios *mode); -static void set_control_char(struct control_info const *info, char const *arg, - struct termios *mode); -static void set_speed(enum speed_setting type, char const *arg, - struct termios *mode); -static void set_window_size(int rows, int cols, char const *device_name); - -static int max_col; - -static int current_col; - -static int tcsetattr_options = 1; - -static struct option const longopts[] = { - {"all", 0, ((void *)0), 'a'}, - {"save", 0, ((void *)0), 'g'}, - {"file", 1, ((void *)0), 'F'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -__attribute__((__format__(printf, 1, 2))) static void wrapf(char const *message, - ...) { - va_list args; - char *buf; - int buflen; - - __builtin_va_start(args, message); - buflen = rpl_vasprintf(&buf, message, args); - - __builtin_va_end(args); - - if (buflen < 0) - xalloc_die(); - - if (0 < current_col) { - if (max_col - current_col < buflen) { - putchar_unlocked('\n'); - current_col = 0; - } else { - putchar_unlocked(' '); - current_col++; - } - } - - fputs_unlocked(buf, stdout); - free(buf); - current_col += buflen; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [-F DEVICE | --file=DEVICE] [SETTING]...\n " - "or: %s [-F DEVICE | --file=DEVICE] [-a|--all]\n or: " - "%s [-F DEVICE | --file=DEVICE] [-g|--save]\n", - 5) - - , - program_name, program_name, program_name); - fputs_unlocked(dcgettext(((void *)0), - "Print or change terminal characteristics.\n", 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -a, --all print all current settings in " - "human-readable form\n -g, --save print all current " - "settings in a stty-readable form\n -F, --file=DEVICE open " - "and use the specified DEVICE instead of stdin\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - "\nOptional - before SETTING indicates negation. " - "An * marks non-POSIX\nsettings. The underlying " - "system defines which settings are available.\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), "\nSpecial characters:\n", 5), stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * discard CHAR CHAR will toggle discarding of output\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " eof CHAR CHAR will send an end of file (terminate " - "the input)\n eol CHAR CHAR will end the line\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * eol2 CHAR alternate CHAR for ending the line\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " erase CHAR CHAR will erase the last character typed\n " - " intr CHAR CHAR will send an interrupt signal\n kill " - "CHAR CHAR will erase the current line\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " * lnext CHAR CHAR will enter the next character quoted\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " quit CHAR CHAR will send a quit signal\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * rprnt CHAR CHAR will redraw the current line\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " start CHAR CHAR will restart the output after " - "stopping it\n stop CHAR CHAR will stop the output\n " - "susp CHAR CHAR will send a terminal stop signal\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " * swtch CHAR CHAR will switch to a different shell layer\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * werase CHAR CHAR will erase the last word typed\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - "\nSpecial settings:\n N set the " - "input and output speeds to N bauds\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * cols N tell the kernel that the terminal has N " - "columns\n * columns N same as cols N\n", - 5), - stdout) - - ; - - printf(dcgettext(((void *)0), - " * [-]drain wait for transmission before applying " - "settings (%s by default)\n", - 5) - - , - tcsetattr_options == 1 ? dcgettext(((void *)0), "on", 5) - : dcgettext(((void *)0), "off", 5)); - fputs_unlocked(dcgettext(((void *)0), - " ispeed N set the input speed to N\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), " * line N use line discipline N\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " min N with -icanon, set N characters minimum for a " - "completed read\n ospeed N set the output speed to N\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * rows N tell the kernel that the terminal has N " - "rows\n * size print the number of rows and columns " - "according to the kernel\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " speed print the terminal speed\n time N " - "with -icanon, set read timeout of N tenths of a second\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nControl settings:\n [-]clocal disable modem control " - "signals\n [-]cread allow input to be received\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]crtscts enable RTS/CTS handshaking\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " csN set character size to N bits, N in [5..8]\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " [-]cstopb use two stop bits per character (one with '-')\n " - " [-]hup send a hangup signal when the last process closes " - "the tty\n [-]hupcl same as [-]hup\n [-]parenb " - "generate parity bit in output and expect parity bit in input\n " - "[-]parodd set odd parity (or even parity with '-')\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * [-]cmspar use \"stick\" (mark/space) parity\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - "\nInput settings:\n [-]brkint breaks cause an " - "interrupt signal\n [-]icrnl translate carriage " - "return to newline\n [-]ignbrk ignore break " - "characters\n [-]igncr ignore carriage return\n " - "[-]ignpar ignore characters with parity errors\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]imaxbel beep and do not flush a full " - "input buffer on a character\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " [-]inlcr translate newline to carriage return\n " - "[-]inpck enable input parity checking\n [-]istrip " - " clear high (8th) bit of input characters\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " * [-]iutf8 assume input characters are UTF-8 encoded\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " * [-]iuclc translate uppercase characters to lowercase\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]ixany let any character restart " - "output, not only start character\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " [-]ixoff enable sending of start/stop characters\n " - " [-]ixon enable XON/XOFF flow control\n [-]parmrk " - " mark parity errors (with a 255-0-character sequence)\n " - "[-]tandem same as [-]ixoff\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), "\nOutput settings:\n", 5), stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * bsN backspace delay style, N in [0..1]\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * crN carriage return delay style, N in [0..3]\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * ffN form feed delay style, N in [0..1]\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * nlN newline delay style, N in [0..1]\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * [-]ocrnl translate carriage return to newline\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]ofdel use delete characters for fill " - "instead of NUL characters\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]ofill use fill (padding) characters " - "instead of timing for delays\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " * [-]olcuc translate lowercase characters to uppercase\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " * [-]onlcr translate newline to carriage return-newline\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * [-]onlret newline performs a carriage return\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]onocr do not print carriage returns " - "in the first column\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), " [-]opost postprocess output\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " * tabN horizontal tab delay style, N in [0..3]\n * tabs " - " same as tab0\n * -tabs same as tab3\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * vtN vertical tab delay style, N in [0..1]\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - "\nLocal settings:\n [-]crterase echo erase " - "characters as backspace-space-backspace\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " * crtkill kill all line by obeying the echoprt and " - "echoe settings\n * -crtkill kill all line by obeying " - "the echoctl and echok settings\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - " * [-]ctlecho echo control characters in hat notation ('^c')\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), " [-]echo echo input characters\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), " * [-]echoctl same as [-]ctlecho\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " [-]echoe same as [-]crterase\n [-]echok echo " - "a newline after a kill character\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), " * [-]echoke same as [-]crtkill\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " [-]echonl echo newline even if not " - "echoing other characters\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]echoprt echo erased characters " - "backward, between '\\' and '/'\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]extproc enable \"LINEMODE\"; useful " - "with high latency links\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), " * [-]flusho discard output\n", 5), stdout) - - ; - - printf(dcgettext(((void *)0), - " [-]icanon enable special characters: %s\n " - "[-]iexten enable non-POSIX special characters\n", - 5) - - , - "erase, kill" - - ", werase" - - ", rprnt" - - ); - fputs_unlocked( - dcgettext(((void *)0), - " [-]isig enable interrupt, quit, and suspend " - "special characters\n [-]noflsh disable flushing after " - "interrupt and quit special characters\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), " * [-]prterase same as [-]echoprt\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]tostop stop background jobs that try " - "to write to the terminal\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]xcase with icanon, escape with '\\' " - "for uppercase characters\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), "\nCombination settings:\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), " * [-]LCASE same as [-]lcase\n", 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " cbreak same as -icanon\n -cbreak " - " same as icanon\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " cooked same as brkint ignpar istrip icrnl ixon " - "opost isig\n icanon, eof and eol characters " - "to their default values\n -cooked same as raw\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), " crt same as %s\n", 5) - - , - "echoe" - - " echoctl" - - " echoke" - - ); - printf(dcgettext(((void *)0), - " dec same as %s intr ^c erase 0177\n " - " kill ^u\n", - 5) - - , - "echoe" - - " echoctl" - - " echoke" - - " -ixany" - - ); - - fputs_unlocked( - dcgettext(((void *)0), " * [-]decctlq same as [-]ixany\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " ek erase and kill characters to their default " - "values\n evenp same as parenb -parodd cs7\n " - "-evenp same as -parenb cs8\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " * [-]lcase same as xcase iuclc olcuc\n", 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - " litout same as -parenb -istrip -opost cs8\n " - "-litout same as parenb istrip opost cs7\n", - 5), - stdout) - - ; - printf(dcgettext( - ((void *)0), - " nl same as %s\n -nl same as %s\n", 5) - - , - "-icrnl" - - " -onlcr" - - , - "icrnl -inlcr -igncr" - - " onlcr" - - " -ocrnl" - - " -onlret" - - ); - fputs_unlocked( - dcgettext(((void *)0), - " oddp same as parenb parodd cs7\n -oddp " - " same as -parenb cs8\n [-]parity same as [-]evenp\n " - "pass8 same as -parenb -istrip cs8\n -pass8 " - "same as parenb istrip cs7\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - " raw same as -ignbrk -brkint -ignpar -parmrk " - "-inpck -istrip\n -inlcr -igncr -icrnl " - "-ixon -ixoff -icanon -opost\n -isig%s " - "min 1 time 0\n -raw same as cooked\n", - 5) - - , - - " -iuclc" - - " -ixany" - - " -imaxbel" - - " -xcase" - - ); - printf(dcgettext(((void *)0), - " sane same as cread -ignbrk brkint -inlcr " - "-igncr icrnl\n icanon iexten echo echoe " - "echok -echonl -noflsh\n %s\n " - " %s\n %s,\n all " - "special characters to their default values\n", - 5) - - , - "-ixoff" - - " -iutf8" - - " -iuclc" - - " -ixany" - - " imaxbel" - - " -xcase" - - " -olcuc" - - " -ocrnl" - - , - "opost" - - " -ofill" - - " onlcr" - - " -onocr" - - " -onlret" - - " nl0" - - " cr0" - - " tab0" - - " bs0" - - " vt0" - - " ff0" - - , - "isig" - - " -tostop" - - " -ofdel" - - " -echoprt" - - " echoctl" - - " echoke" - - " -extproc" - - " -flusho" - - ); - fputs_unlocked( - dcgettext(((void *)0), - "\nHandle the tty line connected to standard input. Without " - "arguments,\nprints baud rate, line discipline, and " - "deviations from stty sane. In\nsettings, CHAR is taken " - "literally, or coded as in ^c, 0x37, 0177 or\n127; special " - "values ^- or undef used to disable special characters.\n", - 5), - stdout) - - ; - emit_ancillary_info("stty"); - } - exit(status); -} - -static void apply_settings(_Bool checking, char const *device_name, - char *const *settings, int n_settings, - struct termios *mode, _Bool *speed_was_set, - - _Bool *require_set_attr) { - for (int k = 1; k < n_settings; k++) { - char const *arg = settings[k]; - - _Bool match_found = 0; - - _Bool not_set_attr = 0; - - _Bool reversed = 0; - int i; - - if (!arg) - continue; - - if (arg[0] == '-') { - ++arg; - reversed = 1; - } - if ((strcmp(arg, "drain") == 0)) { - tcsetattr_options = reversed ? 0 : 1; - continue; - } - for (i = 0; mode_info[i].name != ((void *)0); ++i) { - if ((strcmp(arg, mode_info[i].name) == 0)) { - if ((mode_info[i].flags & 16) == 0) { - match_found = set_mode(&mode_info[i], reversed, mode); - *require_set_attr = 1; - } else - match_found = not_set_attr = 1; - break; - } - } - if (!match_found && reversed) { - error(0, 0, dcgettext(((void *)0), "invalid argument %s", 5), - quote(arg - 1)); - usage(1); - } - if (!match_found) { - for (i = 0; control_info[i].name != ((void *)0); ++i) { - if ((strcmp(arg, control_info[i].name) == 0)) { - do { - if (k == n_settings - 1 || !settings[k + 1]) { - error(0, 0, dcgettext(((void *)0), "missing argument to %s", 5), - quote(arg)); - usage(1); - } - } while (0); - match_found = 1; - ++k; - set_control_char(&control_info[i], settings[k], mode); - *require_set_attr = 1; - break; - } - } - } - if (!match_found || not_set_attr) { - if ((strcmp(arg, "ispeed") == 0)) { - do { - if (k == n_settings - 1 || !settings[k + 1]) { - error(0, 0, dcgettext(((void *)0), "missing argument to %s", 5), - quote(arg)); - usage(1); - } - } while (0); - ++k; - if (checking) - continue; - set_speed(input_speed, settings[k], mode); - *speed_was_set = 1; - *require_set_attr = 1; - } else if ((strcmp(arg, "ospeed") == 0)) { - do { - if (k == n_settings - 1 || !settings[k + 1]) { - error(0, 0, dcgettext(((void *)0), "missing argument to %s", 5), - quote(arg)); - usage(1); - } - } while (0); - ++k; - if (checking) - continue; - set_speed(output_speed, settings[k], mode); - *speed_was_set = 1; - *require_set_attr = 1; - } else if ((strcmp(arg, "rows") == 0)) { - do { - if (k == n_settings - 1 || !settings[k + 1]) { - error(0, 0, dcgettext(((void *)0), "missing argument to %s", 5), - quote(arg)); - usage(1); - } - } while (0); - ++k; - if (checking) - continue; - set_window_size(integer_arg(settings[k], 0x7fffffff), -1, device_name); - } else if ((strcmp(arg, "cols") == 0) || (strcmp(arg, "columns") == 0)) { - do { - if (k == n_settings - 1 || !settings[k + 1]) { - error(0, 0, dcgettext(((void *)0), "missing argument to %s", 5), - quote(arg)); - usage(1); - } - } while (0); - ++k; - if (checking) - continue; - set_window_size(-1, integer_arg(settings[k], 0x7fffffff), device_name); - } else if ((strcmp(arg, "size") == 0)) { - if (checking) - continue; - max_col = screen_columns(); - current_col = 0; - display_window_size(0, device_name); - } - - else if ((strcmp(arg, "line") == 0)) { - unsigned long int value; - do { - if (k == n_settings - 1 || !settings[k + 1]) { - error(0, 0, dcgettext(((void *)0), "missing argument to %s", 5), - quote(arg)); - usage(1); - } - } while (0); - ++k; - mode->c_line = value = - integer_arg(settings[k], (0x7fffffffffffffffL * 2UL + 1UL)); - if (mode->c_line != value) - error(0, 0, dcgettext(((void *)0), "invalid line discipline %s", 5), - quote(settings[k])); - *require_set_attr = 1; - } - - else if ((strcmp(arg, "speed") == 0)) { - if (checking) - continue; - max_col = screen_columns(); - display_speed(mode, 0); - } else if (string_to_baud(arg) != (speed_t)-1) { - if (checking) - continue; - set_speed(both_speeds, arg, mode); - *speed_was_set = 1; - *require_set_attr = 1; - } else { - if (!recover_mode(arg, mode)) { - error(0, 0, dcgettext(((void *)0), "invalid argument %s", 5), - quote(arg)); - usage(1); - } - *require_set_attr = 1; - } - } - } -} - -int main(int argc, char **argv) { - - static struct termios mode; - - enum output_type output_type; - int optc; - int argi = 0; - int opti = 1; - - _Bool require_set_attr; - - _Bool speed_was_set; - - _Bool verbose_output; - - _Bool recoverable_output; - - _Bool noargs = 1; - char *file_name = ((void *)0); - char const *device_name; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - output_type = changed; - verbose_output = 0; - recoverable_output = 0; - - opterr = 0; - while ((optc = getopt_long(argc - argi, argv + argi, "-agF:", longopts, - ((void *)0))) != -1) { - switch (optc) { - case 'a': - verbose_output = 1; - output_type = all; - break; - - case 'g': - recoverable_output = 1; - output_type = recoverable; - break; - - case 'F': - if (file_name) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"only one " - "device may be specified\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "only one device may be specified", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "only one device may be specified", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - file_name = optarg; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "stty", "GNU coreutils", Version, ("David MacKenzie"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - - if (!(strcmp(argv[argi + opti], "-drain") == 0) && - !(strcmp(argv[argi + opti], "drain") == 0)) - noargs = 0; - - argi += opti; - - opti = 1; - optind = 0; - - break; - } - - while (opti < optind) - argv[argi + opti++] = ((void *)0); - } - - if (verbose_output && recoverable_output) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"the options " - "for verbose and stty-readable output styles are\\n\" " - "\"mutually exclusive\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "the options for verbose and stty-readable output " - "styles are\n" - "mutually exclusive", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "the options for verbose and stty-readable output " - "styles are\n" - "mutually exclusive", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - - if (!noargs && (verbose_output || recoverable_output)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"when specifying an " - "output style, modes may not be set\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "when specifying an output style, modes may not be set", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "when specifying an output style, modes may not be set", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - device_name = - file_name ? file_name : dcgettext(((void *)0), "standard input", 5); - - if (!noargs && !verbose_output && !recoverable_output) { - static struct termios check_mode; - apply_settings(1, device_name, argv, argc, &check_mode, &speed_was_set, - &require_set_attr); - } - - if (file_name) { - int fdflags; - if (fd_reopen(0, device_name, 00 | 04000, 0) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, device_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - if ((fdflags = rpl_fcntl(0, 3)) == -1 || - rpl_fcntl(0, 4, fdflags & ~04000) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"%s: " - "couldn't reset non-blocking mode\", 5), quotearg_n_style_colon " - "(0, shell_escape_quoting_style, device_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "%s: couldn't reset non-blocking mode", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "%s: couldn't reset non-blocking mode", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (tcgetattr(0, &mode)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, device_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (verbose_output || recoverable_output || noargs) { - max_col = screen_columns(); - current_col = 0; - display_settings(output_type, &mode, device_name); - return 0; - } - - speed_was_set = 0; - require_set_attr = 0; - apply_settings(0, device_name, argv, argc, &mode, &speed_was_set, - &require_set_attr); - - if (require_set_attr) { - - static struct termios new_mode; - - if (tcsetattr(0, tcsetattr_options, &mode)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, device_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (tcgetattr(0, &new_mode)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, device_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (memcmp(&mode, &new_mode, sizeof(mode)) != 0) { - new_mode.c_cflag &= (~002003600000); - if (speed_was_set || memcmp(&mode, &new_mode, sizeof(mode)) != 0) - - { - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: unable to perform " - "all requested operations\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, device_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "%s: unable to perform all requested operations", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "%s: unable to perform all requested operations", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - } - } - - return 0; -} - -static _Bool - -set_mode(struct mode_info const *info, _Bool reversed, struct termios *mode) { - tcflag_t *bitsp; - - if (reversed && (info->flags & 4) == 0) - return 0; - - bitsp = mode_type_flag(info->type, mode); - - if (bitsp == ((void *)0)) { - - if ((strcmp(info->name, "evenp") == 0) || - (strcmp(info->name, "parity") == 0)) { - if (reversed) - mode->c_cflag = (mode->c_cflag & ~0000400 & ~0000060) | 0000060; - else - mode->c_cflag = - (mode->c_cflag & ~0001000 & ~0000060) | 0000400 | 0000040; - } else if ((strcmp(info->name, "oddp") == 0)) { - if (reversed) - mode->c_cflag = (mode->c_cflag & ~0000400 & ~0000060) | 0000060; - else - mode->c_cflag = - (mode->c_cflag & ~0000060) | 0000040 | 0001000 | 0000400; - } else if ((strcmp(info->name, "nl") == 0)) { - if (reversed) { - mode->c_iflag = (mode->c_iflag | 0000400) & ~0000100 & ~0000200; - mode->c_oflag = (mode->c_oflag - - | 0000004 - - ) - - & ~0000010 - - & ~0000040 - - ; - } else { - mode->c_iflag = mode->c_iflag & ~0000400; - - mode->c_oflag = mode->c_oflag & ~0000004; - } - } else if ((strcmp(info->name, "ek") == 0)) { - mode->c_cc[2] = 0177; - mode->c_cc[3] = ('u' & 037); - } else if ((strcmp(info->name, "sane") == 0)) - sane_mode(mode); - else if ((strcmp(info->name, "cbreak") == 0)) { - if (reversed) - mode->c_lflag |= 0000002; - else - mode->c_lflag &= ~0000002; - } else if ((strcmp(info->name, "pass8") == 0)) { - if (reversed) { - mode->c_cflag = (mode->c_cflag & ~0000060) | 0000040 | 0000400; - mode->c_iflag |= 0000040; - } else { - mode->c_cflag = (mode->c_cflag & ~0000400 & ~0000060) | 0000060; - mode->c_iflag &= ~0000040; - } - } else if ((strcmp(info->name, "litout") == 0)) { - if (reversed) { - mode->c_cflag = (mode->c_cflag & ~0000060) | 0000040 | 0000400; - mode->c_iflag |= 0000040; - mode->c_oflag |= 0000001; - } else { - mode->c_cflag = (mode->c_cflag & ~0000400 & ~0000060) | 0000060; - mode->c_iflag &= ~0000040; - mode->c_oflag &= ~0000001; - } - } else if ((strcmp(info->name, "raw") == 0) || - (strcmp(info->name, "cooked") == 0)) { - if ((info->name[0] == 'r' && reversed) || - (info->name[0] == 'c' && !reversed)) { - - mode->c_iflag |= 0000002 | 0000004 | 0000040 | 0000400 | 0002000; - mode->c_oflag |= 0000001; - mode->c_lflag |= 0000001 | 0000002; - - } else { - - mode->c_iflag = 0; - mode->c_oflag &= ~0000001; - mode->c_lflag &= ~(0000001 | 0000002 - - | 0000004 - - ); - mode->c_cc[6] = 1; - mode->c_cc[5] = 0; - } - } - - else if ((strcmp(info->name, "decctlq") == 0)) { - if (reversed) - mode->c_iflag |= 0004000; - else - mode->c_iflag &= ~0004000; - } - - else if ((strcmp(info->name, "tabs") == 0)) { - if (reversed) - mode->c_oflag = (mode->c_oflag & ~0014000) | 0014000; - else - mode->c_oflag = (mode->c_oflag & ~0014000) | 0000000; - } else if ((strcmp(info->name, "lcase") == 0) || - (strcmp(info->name, "LCASE") == 0)) { - if (reversed) { - mode->c_lflag &= ~0000004; - mode->c_iflag &= ~0001000; - mode->c_oflag &= ~0000002; - } else { - mode->c_lflag |= 0000004; - mode->c_iflag |= 0001000; - mode->c_oflag |= 0000002; - } - } - - else if ((strcmp(info->name, "crt") == 0)) - mode->c_lflag |= 0000020 - - | 0001000 - - | 0004000 - - ; - else if ((strcmp(info->name, "dec") == 0)) { - mode->c_cc[0] = 3; - mode->c_cc[2] = 127; - mode->c_cc[3] = 21; - mode->c_lflag |= 0000020 - - | 0001000 - - | 0004000 - - ; - - mode->c_iflag &= ~0004000; - } - } else if (reversed) - *bitsp = *bitsp & ~info->mask & ~info->bits; - else - *bitsp = (*bitsp & ~info->mask) | info->bits; - - return 1; -} - -static void set_control_char(struct control_info const *info, char const *arg, - struct termios *mode) { - unsigned long int value; - - if ((strcmp(info->name, "min") == 0) || (strcmp(info->name, "time") == 0)) - value = integer_arg( - arg, - ((cc_t)(!(!((cc_t)0 < (cc_t)-1)) - ? (cc_t)-1 - : ((((cc_t)1 << ((sizeof(cc_t) * 8) - 2)) - 1) * 2 + 1)))); - else if (arg[0] == '\0' || arg[1] == '\0') - value = to_uchar(arg[0]); - else if ((strcmp(arg, "^-") == 0) || (strcmp(arg, "undef") == 0)) - value = '\0'; - else if (arg[0] == '^' && arg[1] != '\0') { - if (arg[1] == '?') - value = 127; - else - value = to_uchar(arg[1]) & ~0140; - } else - value = integer_arg( - arg, - ((cc_t)(!(!((cc_t)0 < (cc_t)-1)) - ? (cc_t)-1 - : ((((cc_t)1 << ((sizeof(cc_t) * 8) - 2)) - 1) * 2 + 1)))); - mode->c_cc[info->offset] = value; -} - -static void set_speed(enum speed_setting type, char const *arg, - struct termios *mode) { - speed_t baud; - - baud = string_to_baud(arg); - if (type == input_speed || type == both_speeds) - cfsetispeed(mode, baud); - if (type == output_speed || type == both_speeds) - cfsetospeed(mode, baud); -} - -static int get_win_size(int fd, struct winsize *win) { - int err = ioctl(fd, 0x5413, (char *)win); - return err; -} - -static void set_window_size(int rows, int cols, char const *device_name) { - struct winsize win; - - if (get_win_size(0, &win)) { - if ((*__errno_location()) != 22) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, device_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - memset(&win, 0, sizeof(win)); - } - - if (rows >= 0) - win.ws_row = rows; - if (cols >= 0) - win.ws_col = cols; - if (ioctl(0, 0x5414, (char *)&win)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, device_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static void display_window_size(_Bool fancy, char const *device_name) { - struct winsize win; - - if (get_win_size(0, &win)) { - if ((*__errno_location()) != 22) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, device_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (!fancy) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: no size " - "information for this device\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, device_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "%s: no size information for this device", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "%s: no size information for this device", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - device_name)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } else { - wrapf(fancy ? "rows %d; columns %d;" : "%d %d\n", win.ws_row, win.ws_col); - if (!fancy) - current_col = 0; - } -} - -static int screen_columns(void) { - - struct winsize win; - - if (get_win_size(1, &win) == 0 && 0 < win.ws_col) - return win.ws_col; - - { - - char *col_string = getenv("COLUMNS"); - long int n_columns; - if (!(col_string != ((void *)0) - - && - xstrtol(col_string, ((void *)0), 0, &n_columns, "") == LONGINT_OK && - 0 < n_columns && n_columns <= 0x7fffffff)) - n_columns = 80; - return n_columns; - } -} - -__attribute__((__pure__)) static tcflag_t * -mode_type_flag(enum mode_type type, struct termios *mode) { - switch (type) { - case control: - return &mode->c_cflag; - - case input: - return &mode->c_iflag; - - case output: - return &mode->c_oflag; - - case local: - return &mode->c_lflag; - - case combination: - return ((void *)0); - - default: - abort(); - } -} - -static void display_settings(enum output_type output_type, struct termios *mode, - char const *device_name) { - switch (output_type) { - case changed: - display_changed(mode); - break; - - case all: - display_all(mode, device_name); - break; - - case recoverable: - display_recoverable(mode); - break; - } -} - -static void display_changed(struct termios *mode) { - int i; - - _Bool empty_line; - tcflag_t *bitsp; - unsigned long mask; - enum mode_type prev_type = control; - - display_speed(mode, 1); - - wrapf("line = %d;", mode->c_line); - - putchar_unlocked('\n'); - current_col = 0; - - empty_line = 1; - for (i = 0; !(strcmp(control_info[i].name, "min") == 0); ++i) { - if (mode->c_cc[control_info[i].offset] == control_info[i].saneval) - continue; - - if ((strcmp(control_info[i].name, "flush") == 0)) - continue; - empty_line = 0; - wrapf("%s = %s;", control_info[i].name, - visible(mode->c_cc[control_info[i].offset])); - } - if ((mode->c_lflag & 0000002) == 0) { - wrapf("min = %lu; time = %lu;\n", (unsigned long int)mode->c_cc[6], - (unsigned long int)mode->c_cc[5]); - } else if (!empty_line) - putchar_unlocked('\n'); - current_col = 0; - - empty_line = 1; - for (i = 0; mode_info[i].name != ((void *)0); ++i) { - if (mode_info[i].flags & 8) - continue; - if (mode_info[i].type != prev_type) { - if (!empty_line) { - putchar_unlocked('\n'); - current_col = 0; - empty_line = 1; - } - prev_type = mode_info[i].type; - } - - bitsp = mode_type_flag(mode_info[i].type, mode); - mask = mode_info[i].mask ? mode_info[i].mask : mode_info[i].bits; - - ((void)sizeof((bitsp) ? 1 : 0), __extension__({ - if (bitsp) - ; - else - __assert_fail("bitsp", "src/stty.c", 1953, - __extension__ __PRETTY_FUNCTION__); - })); - - if ((*bitsp & mask) == mode_info[i].bits) { - if (mode_info[i].flags & 2) { - wrapf("%s", mode_info[i].name); - empty_line = 0; - } - } else if ((mode_info[i].flags & (1 | 4)) == (1 | 4)) { - wrapf("-%s", mode_info[i].name); - empty_line = 0; - } - } - if (!empty_line) - putchar_unlocked('\n'); - current_col = 0; -} - -static void display_all(struct termios *mode, char const *device_name) { - int i; - tcflag_t *bitsp; - unsigned long mask; - enum mode_type prev_type = control; - - display_speed(mode, 1); - - display_window_size(1, device_name); - - wrapf("line = %d;", mode->c_line); - - putchar_unlocked('\n'); - current_col = 0; - - for (i = 0; !(strcmp(control_info[i].name, "min") == 0); ++i) { - - if ((strcmp(control_info[i].name, "flush") == 0)) - continue; - wrapf("%s = %s;", control_info[i].name, - visible(mode->c_cc[control_info[i].offset])); - } - - wrapf("min = %lu; time = %lu;", (unsigned long int)mode->c_cc[6], - (unsigned long int)mode->c_cc[5]); - if (current_col != 0) - putchar_unlocked('\n'); - current_col = 0; - - for (i = 0; mode_info[i].name != ((void *)0); ++i) { - if (mode_info[i].flags & 8) - continue; - if (mode_info[i].type != prev_type) { - putchar_unlocked('\n'); - current_col = 0; - prev_type = mode_info[i].type; - } - - bitsp = mode_type_flag(mode_info[i].type, mode); - mask = mode_info[i].mask ? mode_info[i].mask : mode_info[i].bits; - - ((void)sizeof((bitsp) ? 1 : 0), __extension__({ - if (bitsp) - ; - else - __assert_fail("bitsp", "src/stty.c", 2037, - __extension__ __PRETTY_FUNCTION__); - })); - if ((*bitsp & mask) == mode_info[i].bits) - wrapf("%s", mode_info[i].name); - else if (mode_info[i].flags & 4) - wrapf("-%s", mode_info[i].name); - } - putchar_unlocked('\n'); - current_col = 0; -} - -static void display_speed(struct termios *mode, _Bool fancy) { - if (cfgetispeed(mode) == 0 || cfgetispeed(mode) == cfgetospeed(mode)) - wrapf(fancy ? "speed %lu baud;" : "%lu\n", - baud_to_value(cfgetospeed(mode))); - else - wrapf(fancy ? "ispeed %lu baud; ospeed %lu baud;" : "%lu %lu\n", - baud_to_value(cfgetispeed(mode)), baud_to_value(cfgetospeed(mode))); - if (!fancy) - current_col = 0; -} - -static void display_recoverable(struct termios *mode) { - printf("%lx:%lx:%lx:%lx", (unsigned long int)mode->c_iflag, - (unsigned long int)mode->c_oflag, (unsigned long int)mode->c_cflag, - (unsigned long int)mode->c_lflag); - for (size_t i = 0; i < 32; ++i) - printf(":%lx", (unsigned long int)mode->c_cc[i]); - putchar_unlocked('\n'); -} - -static int strtoul_tcflag_t(char const *s, int base, char **p, tcflag_t *result, - char delim) { - unsigned long ul; - - (*__errno_location()) = 0; - ul = strtoul(s, p, base); - if ((*__errno_location()) || **p != delim || *p == s || (tcflag_t)ul != ul) - return -1; - *result = ul; - return 0; -} - -static int strtoul_cc_t(char const *s, int base, char **p, cc_t *result, - char delim) { - unsigned long ul; - - (*__errno_location()) = 0; - ul = strtoul(s, p, base); - if ((*__errno_location()) || **p != delim || *p == s || (cc_t)ul != ul) - return -1; - *result = ul; - return 0; -} - -static _Bool - -recover_mode(char const *arg, struct termios *mode) { - tcflag_t flag[4]; - char const *s = arg; - size_t i; - for (i = 0; i < 4; i++) { - char *p; - if (strtoul_tcflag_t(s, 16, &p, flag + i, ':') != 0) - return 0; - s = p + 1; - } - mode->c_iflag = flag[0]; - mode->c_oflag = flag[1]; - mode->c_cflag = flag[2]; - mode->c_lflag = flag[3]; - - for (i = 0; i < 32; ++i) { - char *p; - char delim = i < 32 - 1 ? ':' : '\0'; - if (strtoul_cc_t(s, 16, &p, mode->c_cc + i, delim) != 0) - return 0; - s = p + 1; - } - - return 1; -} - -struct speed_map { - char const *string; - speed_t speed; - unsigned long int value; -}; - -static struct speed_map const speeds[] = {{"0", 0000000, 0}, - {"50", 0000001, 50}, - {"75", 0000002, 75}, - {"110", 0000003, 110}, - {"134", 0000004, 134}, - {"134.5", 0000004, 134}, - {"150", 0000005, 150}, - {"200", 0000006, 200}, - {"300", 0000007, 300}, - {"600", 0000010, 600}, - {"1200", 0000011, 1200}, - {"1800", 0000012, 1800}, - {"2400", 0000013, 2400}, - {"4800", 0000014, 4800}, - {"9600", 0000015, 9600}, - {"19200", 0000016, 19200}, - {"38400", 0000017, 38400}, - {"exta", 0000016, 19200}, - {"extb", 0000017, 38400}, - - {"57600", 0010001, 57600}, - - {"115200", 0010002, 115200}, - - {"230400", 0010003, 230400}, - - {"460800", 0010004, 460800}, - - {"500000", 0010005, 500000}, - - {"576000", 0010006, 576000}, - - {"921600", 0010007, 921600}, - - {"1000000", 0010010, 1000000}, - - {"1152000", 0010011, 1152000}, - - {"1500000", 0010012, 1500000}, - - {"2000000", 0010013, 2000000}, - - {"2500000", 0010014, 2500000}, - - {"3000000", 0010015, 3000000}, - - {"3500000", 0010016, 3500000}, - - {"4000000", 0010017, 4000000}, - - {((void *)0), 0, 0}}; - -__attribute__((__pure__)) static speed_t string_to_baud(char const *arg) { - for (int i = 0; speeds[i].string != ((void *)0); ++i) - if ((strcmp(arg, speeds[i].string) == 0)) - return speeds[i].speed; - return (speed_t)-1; -} - -__attribute__((__pure__)) static unsigned long int -baud_to_value(speed_t speed) { - for (int i = 0; speeds[i].string != ((void *)0); ++i) - if (speed == speeds[i].speed) - return speeds[i].value; - return 0; -} - -static void sane_mode(struct termios *mode) { - int i; - tcflag_t *bitsp; - - for (i = 0; control_info[i].name; ++i) { - - mode->c_cc[control_info[i].offset] = control_info[i].saneval; - } - - for (i = 0; mode_info[i].name != ((void *)0); ++i) { - if (mode_info[i].flags & 16) - continue; - - if (mode_info[i].flags & 1) { - bitsp = mode_type_flag(mode_info[i].type, mode); - - ((void)sizeof((bitsp) ? 1 : 0), __extension__({ - if (bitsp) - ; - else - __assert_fail("bitsp", "src/stty.c", 2252, - __extension__ __PRETTY_FUNCTION__); - })); - *bitsp = (*bitsp & ~mode_info[i].mask) | mode_info[i].bits; - } else if (mode_info[i].flags & 2) { - bitsp = mode_type_flag(mode_info[i].type, mode); - - ((void)sizeof((bitsp) ? 1 : 0), __extension__({ - if (bitsp) - ; - else - __assert_fail("bitsp", "src/stty.c", 2258, - __extension__ __PRETTY_FUNCTION__); - })); - *bitsp = *bitsp & ~mode_info[i].mask & ~mode_info[i].bits; - } - } -} - -static char const *visible(cc_t ch) { - static char buf[10]; - char *bpout = buf; - - if (ch == '\0') - return ""; - - if (ch >= 32) { - if (ch < 127) - *bpout++ = ch; - else if (ch == 127) { - *bpout++ = '^'; - *bpout++ = '?'; - } else { - *bpout++ = 'M'; - *bpout++ = '-'; - if (ch >= 128 + 32) { - if (ch < 128 + 127) - *bpout++ = ch - 128; - else { - *bpout++ = '^'; - *bpout++ = '?'; - } - } else { - *bpout++ = '^'; - *bpout++ = ch - 128 + 64; - } - } - } else { - *bpout++ = '^'; - *bpout++ = ch + 64; - } - *bpout = '\0'; - return (char const *)buf; -} - -static unsigned long int integer_arg(char const *s, unsigned long int maxval) { - return xnumtoumax(s, 0, 0, maxval, "bB", - dcgettext(((void *)0), "invalid integer argument", 5), 0); -} diff --git a/tests/source/coreutils/sum-digest.c b/tests/source/coreutils/sum-digest.c deleted file mode 100644 index 8aea3dc..0000000 --- a/tests/source/coreutils/sum-digest.c +++ /dev/null @@ -1,7680 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -extern int bsd_sum_stream(FILE *stream, void *resstream, uintmax_t *length); - -extern int sysv_sum_stream(FILE *stream, void *resstream, uintmax_t *length); - -typedef int (*sumfn)(FILE *, void *, uintmax_t *); - -extern void output_bsd(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -extern void output_sysv(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static _Bool have_read_stdin; - -static size_t min_digest_line_length; - -static size_t digest_hex_bytes; - -static _Bool status_only = 0; - -static _Bool warn = 0; - -static _Bool ignore_missing = 0; - -static _Bool quiet = 0; - -static _Bool strict = 0; - -static int bsd_reversed = -1; - -static unsigned char digest_delim = '\n'; - -typedef void (*digest_output_fn)(char const *, int, void const *, - - _Bool, unsigned char, _Bool, uintmax_t); - -enum Algorithm { - bsd, - sysv, -}; - -static enum Algorithm sum_algorithm; -static sumfn sumfns[] = { - bsd_sum_stream, - sysv_sum_stream, -}; -static digest_output_fn sum_output_fns[] = { - output_bsd, - output_sysv, -}; -enum { - IGNORE_MISSING_OPTION = 0x7f + 1, - STATUS_OPTION, - QUIET_OPTION, - STRICT_OPTION, - TAG_OPTION, - UNTAG_OPTION, - DEBUG_PROGRAM_OPTION, -}; - -static struct option const long_options[] = { - {"sysv", 0, ((void *)0), 's'}, - - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - - printf(dcgettext(((void *)0), "Print or check %s (%d-bit) checksums.\n", 5) - - , - "BSD", 16); - - emit_stdin_note(); - - fputs_unlocked(dcgettext(((void *)0), - "\n -r use BSD sum algorithm (the " - "default), use 1K blocks\n -s, --sysv use " - "System V sum algorithm, use 512 bytes blocks\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("sum"); - } - - exit(status); -} -static char *filename_unescape(char *s, size_t s_len) { - char *dst = s; - - for (size_t i = 0; i < s_len; i++) { - switch (s[i]) { - case '\\': - if (i == s_len - 1) { - - return ((void *)0); - } - ++i; - switch (s[i]) { - case 'n': - *dst++ = '\n'; - break; - case 'r': - *dst++ = '\r'; - break; - case '\\': - *dst++ = '\\'; - break; - default: - - return ((void *)0); - } - break; - - case '\0': - - return ((void *)0); - - default: - *dst++ = s[i]; - break; - } - } - if (dst < s + s_len) - *dst = '\0'; - - return s; -} - -__attribute__((__pure__)) static _Bool - -hex_digits(unsigned char const *s) { - for (unsigned int i = 0; i < digest_hex_bytes; i++) { - if (!((*__ctype_b_loc())[(int)((*s))] & (unsigned short int)_ISxdigit)) - return 0; - ++s; - } - return *s == '\0'; -} - -static _Bool - -bsd_split_3(char *s, size_t s_len, unsigned char **hex_digest, char **file_name, - _Bool escaped_filename) { - size_t i; - - if (s_len == 0) - return 0; - - i = s_len - 1; - while (i && s[i] != ')') - i--; - - if (s[i] != ')') - return 0; - - *file_name = s; - - if (escaped_filename && filename_unescape(s, i) == ((void *)0)) - return 0; - - s[i++] = '\0'; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - if (s[i] != '=') - return 0; - - i++; - - while (((s[i]) == ' ' || (s[i]) == '\t')) - i++; - - *hex_digest = (unsigned char *)&s[i]; - - return hex_digits(*hex_digest); -} -static _Bool - -split_3(char *s, size_t s_len, unsigned char **hex_digest, int *binary, - char **file_name) { - - _Bool escaped_filename = 0; - size_t algo_name_len; - - size_t i = 0; - while (((s[i]) == ' ' || (s[i]) == '\t')) - ++i; - - if (s[i] == '\\') { - ++i; - escaped_filename = 1; - } - algo_name_len = strlen("BSD"); - if ((strncmp(s + i, "BSD", algo_name_len) == 0)) { - i += algo_name_len; - if (s[i] == ' ') - ++i; - if (s[i] == '(') { - ++i; - *binary = 0; - return bsd_split_3(s + i, s_len - i, hex_digest, file_name, - escaped_filename); - } - return 0; - } - - if (s_len - i < min_digest_line_length + (s[i] == '\\')) - return 0; - - *hex_digest = (unsigned char *)&s[i]; - i += digest_hex_bytes; - if (!((s[i]) == ' ' || (s[i]) == '\t')) - return 0; - - s[i++] = '\0'; - - if (!hex_digits(*hex_digest)) - return 0; - - if ((s_len - i == 1) || (s[i] != ' ' && s[i] != '*')) { - - if (bsd_reversed == 0) - return 0; - bsd_reversed = 1; - } else if (bsd_reversed != 1) { - bsd_reversed = 0; - *binary = (s[i++] == '*'); - } - - *file_name = &s[i]; - - if (escaped_filename) - return filename_unescape(&s[i], s_len - i) != ((void *)0); - - return 1; -} - -static void print_filename(char const *file, _Bool escape) { - if (!escape) { - fputs_unlocked(file, stdout); - return; - } - - while (*file) { - switch (*file) { - case '\n': - fputs_unlocked("\\n", stdout); - break; - - case '\r': - fputs_unlocked("\\r", stdout); - break; - - case '\\': - fputs_unlocked("\\\\", stdout); - break; - - default: - putchar_unlocked(*file); - break; - } - file++; - } -} -static _Bool - -digest_file(char const *filename, int *binary, unsigned char *bin_result, - - _Bool *missing, uintmax_t *length) { - FILE *fp; - int err; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - *missing = 0; - - if (is_stdin) { - have_read_stdin = 1; - fp = stdin; - if (0 && *binary) { - if (*binary < 0) - *binary = !isatty(0); - if (*binary) - xset_binary_mode(0, 0); - } - } else { - fp = fopen_safer(filename, (0 && *binary ? "rb" : "r")); - if (fp == ((void *)0)) { - if (ignore_missing && (*__errno_location()) == 2) { - *missing = 1; - return 1; - } - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - } - - fadvise(fp, FADVISE_SEQUENTIAL); - - err = sumfns[sum_algorithm](fp, bin_result, length); - - err = err ? (*__errno_location()) : 0; - if (is_stdin) - clearerr_unlocked(fp); - else if (rpl_fclose(fp) != 0 && !err) - err = (*__errno_location()); - - if (err) { - error(0, err, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - return 0; - } - - return 1; -} -static _Bool - -digest_check(char const *checkfile_name) { - FILE *checkfile_stream; - uintmax_t n_misformatted_lines = 0; - uintmax_t n_improperly_formatted_lines = 0; - uintmax_t n_mismatched_checksums = 0; - uintmax_t n_open_or_read_failures = 0; - - _Bool properly_formatted_lines = 0; - - _Bool matched_checksums = 0; - unsigned char bin_buffer_unaligned[(16 / 8) + 4]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 4); - uintmax_t line_number; - char *line; - size_t line_chars_allocated; - - _Bool is_stdin = (strcmp(checkfile_name, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - checkfile_name = dcgettext(((void *)0), "standard input", 5); - checkfile_stream = stdin; - } else { - checkfile_stream = fopen_safer(checkfile_name, "r"); - if (checkfile_stream == ((void *)0)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - return 0; - } - } - - line_number = 0; - line = ((void *)0); - line_chars_allocated = 0; - do { - char *filename; - int binary; - unsigned char *hex_digest; - ssize_t line_length; - - ++line_number; - if (line_number == 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum " - "lines\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, checkfile_name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "%s: too many checksum lines", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)), - ((0) ? (void)0 : __builtin_unreachable())))); - - line_length = getline(&line, &line_chars_allocated, checkfile_stream); - if (line_length <= 0) - break; - - if (line[0] == ' continue; - - - line_length -= line[line_length - 1] == '\n'; - - line_length -= line[line_length - (0 < line_length)] == '\r'; - - - if (line_length == 0) - continue; - - line[line_length] = '\0'; - - if (! (split_3 (line, line_length, &hex_digest, &binary, &filename) - && ! (is_stdin && (strcmp (filename, "-") == 0)))) - { - ++n_misformatted_lines; - - if (warn) { - error(0, 0, - - dcgettext(((void *)0), - "%s: %" - "l" - "u" - ": improperly formatted %s checksum line", - 5) - - , - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name), - line_number, "BSD"); - } - - ++n_improperly_formatted_lines; - } - else - { - static const char bin2hex[] = {'0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; - - _Bool ok; - - _Bool missing; - - _Bool needs_escape = !status_only && strchr(filename, '\n'); - - properly_formatted_lines = 1; - - uintmax_t length; - ok = digest_file(filename, &binary, bin_buffer, &missing, &length); - - if (!ok) { - ++n_open_or_read_failures; - if (!status_only) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - printf(": %s\n", dcgettext(((void *)0), "FAILED open or read", 5)); - } - } else if (ignore_missing && missing) { - - ; - } else { - size_t digest_bin_bytes = digest_hex_bytes / 2; - size_t cnt; - - for (cnt = 0; cnt < digest_bin_bytes; ++cnt) { - if ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt])) { - int __c = (hex_digest[2 * cnt]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt]); - } else - __res = (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt])]; - __res; - })) - - != bin2hex[bin_buffer[cnt] >> 4] || - ((__extension__({ - int __res; - if (sizeof(hex_digest[2 * cnt + 1]) > 1) { - if (__builtin_constant_p(hex_digest[2 * cnt + 1])) { - int __c = (hex_digest[2 * cnt + 1]); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(hex_digest[2 * cnt + 1]); - } else - __res = - (*__ctype_tolower_loc())[(int)(hex_digest[2 * cnt + 1])]; - __res; - })) - - != (bin2hex[bin_buffer[cnt] & 0xf]))) - break; - } - if (cnt != digest_bin_bytes) - ++n_mismatched_checksums; - else - matched_checksums = 1; - - if (!status_only) { - if (cnt != digest_bin_bytes || !quiet) { - if (needs_escape) - putchar_unlocked('\\'); - print_filename(filename, needs_escape); - } - - if (cnt != digest_bin_bytes) - printf(": %s\n", dcgettext(((void *)0), "FAILED", 5)); - else if (!quiet) - printf(": %s\n", dcgettext(((void *)0), "OK", 5)); - } - } - } - } while (!feof_unlocked(checkfile_stream) && - !ferror_unlocked(checkfile_stream)); - - free(line); - - int err = ferror_unlocked(checkfile_stream) ? 0 : -1; - if (is_stdin) - clearerr_unlocked(checkfile_stream); - else if (rpl_fclose(checkfile_stream) != 0 && err < 0) - err = (*__errno_location()); - - if (0 <= err) { - error( - 0, err, err ? "%s" : dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - return 0; - } - - if (!properly_formatted_lines) { - - error( - 0, 0, - dcgettext(((void *)0), "%s: no properly formatted checksum lines found", - 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, checkfile_name)); - } else { - if (!status_only) { - if (n_misformatted_lines != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " line is improperly formatted", - "WARNING: %" - "l" - "u" - " lines are improperly formatted", - select_plural(n_misformatted_lines), 5) - - ), - n_misformatted_lines); - - if (n_open_or_read_failures != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " listed file could not be read", - "WARNING: %" - "l" - "u" - " listed files could not be read", - select_plural(n_open_or_read_failures), 5) - - ), - n_open_or_read_failures); - - if (n_mismatched_checksums != 0) - error(0, 0, - (dcngettext(((void *)0), - "WARNING: %" - "l" - "u" - " computed checksum did NOT match", - "WARNING: %" - "l" - "u" - " computed checksums did NOT match", - select_plural(n_mismatched_checksums), 5) - - ), - n_mismatched_checksums); - - if (ignore_missing && !matched_checksums) - error(0, 0, dcgettext(((void *)0), "%s: no file was verified", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - checkfile_name)); - } - } - - return (properly_formatted_lines && matched_checksums && - n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && - (!strict || n_improperly_formatted_lines == 0)); -} - -int main(int argc, char **argv) { - unsigned char bin_buffer_unaligned[(16 / 8) + 4]; - - unsigned char *bin_buffer = ptr_align(bin_buffer_unaligned, 4); - - _Bool do_check = 0; - int opt; - - _Bool ok = 1; - - int binary = -1; - - _Bool prefix_tag = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - setvbuf(stdout, ((void *)0), 1, 0); - - char const *short_opts = "rs"; - while ((opt = getopt_long(argc, argv, short_opts, long_options, - ((void *)0))) != -1) - switch (opt) { - case 'r': - sum_algorithm = bsd; - break; - - case 's': - sum_algorithm = sysv; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "sum", "GNU coreutils", Version, - ("Kayvan Aghaiepour"), ("David MacKenzie"), - (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - - min_digest_line_length = ((16 / 4) + 1 + 1); - digest_hex_bytes = (16 / 4); - if (prefix_tag && !binary) { - - error(0, 0, - dcgettext(((void *)0), "--tag does not support --text mode", 5)); - usage(1); - } - - if (digest_delim != '\n' && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --zero option is not supported when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (prefix_tag && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --tag option is meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (0 <= binary && do_check) { - error(0, 0, - dcgettext(((void *)0), - "the --binary and --text options are meaningless when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (ignore_missing && !do_check) { - error(0, 0, - - dcgettext(((void *)0), - "the --ignore-missing option is meaningful only when " - "verifying checksums", - 5) - - ); - usage(1); - } - - if (status_only && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --status option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (warn && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --warn option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (quiet && !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --quiet option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (strict & !do_check) { - error(0, 0, - - dcgettext( - ((void *)0), - "the --strict option is meaningful only when verifying checksums", - 5)); - usage(1); - } - - if (!0 && binary < 0) - binary = 0; - - char **operand_lim = argv + argc; - if (optind == argc) - *operand_lim++ = bad_cast("-"); - - for (char **operandp = argv + optind; operandp < operand_lim; operandp++) { - char *file = *operandp; - if (do_check) - ok &= digest_check(file); - else { - int binary_file = binary; - - _Bool missing; - uintmax_t length; - - if (!digest_file(file, &binary_file, bin_buffer, &missing, &length)) - ok = 0; - else { - sum_output_fns[sum_algorithm](file, binary_file, bin_buffer, prefix_tag, - digest_delim, optind != argc, length); - } - } - } - - if (have_read_stdin && rpl_fclose(stdin) == (-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/sum-sum.c b/tests/source/coreutils/sum-sum.c deleted file mode 100644 index 8ed8989..0000000 --- a/tests/source/coreutils/sum-sum.c +++ /dev/null @@ -1,6953 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); -enum { - - human_ceiling = 0, - - human_round_to_nearest = 1, - - human_floor = 2, - - human_group_digits = 4, - - human_suppress_point_zero = 8, - - human_autoscale = 16, - - human_base_1024 = 32, - - human_space_before_unit = 64, - - human_SI = 128, - - human_B = 256 -}; - -char *human_readable(uintmax_t, char *, int, uintmax_t, uintmax_t); - -enum strtol_error human_options(char const *, int *, uintmax_t *); -extern int bsd_sum_stream(FILE *stream, void *resstream, uintmax_t *length); - -extern int sysv_sum_stream(FILE *stream, void *resstream, uintmax_t *length); - -typedef int (*sumfn)(FILE *, void *, uintmax_t *); - -extern void output_bsd(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -extern void output_sysv(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length); - -int bsd_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - int ret = -1; - size_t sum, n; - int checksum = 0; - uintmax_t total_bytes = 0; - static const size_t buffer_length = 32768; - uint8_t *buffer = malloc(buffer_length); - - if (!buffer) - return -1; - - while (1) { - sum = 0; - - while (1) { - n = fread_unlocked(buffer + sum, 1, buffer_length - sum, stream); - sum += n; - - if (buffer_length == sum) - break; - - if (n == 0) { - if (ferror_unlocked(stream)) - goto cleanup_buffer; - goto final_process; - } - - if (feof_unlocked(stream)) - goto final_process; - } - - for (size_t i = 0; i < sum; i++) { - checksum = (checksum >> 1) + ((checksum & 1) << 15); - checksum += buffer[i]; - checksum &= 0xffff; - } - if (total_bytes + sum < total_bytes) { - - (*__errno_location()) = 75; - goto cleanup_buffer; - } - total_bytes += sum; - } - -final_process:; - - for (size_t i = 0; i < sum; i++) { - checksum = (checksum >> 1) + ((checksum & 1) << 15); - checksum += buffer[i]; - checksum &= 0xffff; - } - if (total_bytes + sum < total_bytes) { - - (*__errno_location()) = 75; - goto cleanup_buffer; - } - total_bytes += sum; - - memcpy(resstream, &checksum, sizeof checksum); - *length = total_bytes; - ret = 0; -cleanup_buffer: - free(buffer); - return ret; -} - -int sysv_sum_stream(FILE *stream, void *resstream, uintmax_t *length) { - int ret = -1; - size_t sum, n; - uintmax_t total_bytes = 0; - static const size_t buffer_length = 32768; - uint8_t *buffer = malloc(buffer_length); - - if (!buffer) - return -1; - - unsigned int s = 0; - - while (1) { - sum = 0; - - while (1) { - n = fread_unlocked(buffer + sum, 1, buffer_length - sum, stream); - sum += n; - - if (buffer_length == sum) - break; - - if (n == 0) { - if (ferror_unlocked(stream)) - goto cleanup_buffer; - goto final_process; - } - - if (feof_unlocked(stream)) - goto final_process; - } - - for (size_t i = 0; i < sum; i++) - s += buffer[i]; - if (total_bytes + sum < total_bytes) { - - (*__errno_location()) = 75; - goto cleanup_buffer; - } - total_bytes += sum; - } - -final_process:; - - for (size_t i = 0; i < sum; i++) - s += buffer[i]; - if (total_bytes + sum < total_bytes) { - - (*__errno_location()) = 75; - goto cleanup_buffer; - } - total_bytes += sum; - - int r = (s & 0xffff) + ((s & 0xffffffff) >> 16); - int checksum = (r & 0xffff) + (r >> 16); - - memcpy(resstream, &checksum, sizeof checksum); - *length = total_bytes; - ret = 0; -cleanup_buffer: - free(buffer); - return ret; -} - -void output_bsd(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - - char hbuf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 1]; - printf("%05d %5s", *(int *)digest, - human_readable(length, hbuf, human_ceiling, 1, 1024)); - if (args) - printf(" %s", file); - putchar_unlocked(delim); -} - -void output_sysv(char const *file, int binary_file, void const *digest, - - _Bool tagged, unsigned char delim, _Bool args, - uintmax_t length) { - - char hbuf[((2 * sizeof(uintmax_t) * 8 * 146 / 485 + 1) * (16 + 1) - 16 + 1 + - 3) + - 1]; - printf("%d %s", *(int *)digest, - human_readable(length, hbuf, human_ceiling, 1, 512)); - if (args) - printf(" %s", file); - putchar_unlocked(delim); -} diff --git a/tests/source/coreutils/sync.c b/tests/source/coreutils/sync.c deleted file mode 100644 index 89ba0ac..0000000 --- a/tests/source/coreutils/sync.c +++ /dev/null @@ -1,7016 +0,0 @@ - - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; -enum sync_mode { MODE_FILE, MODE_DATA, MODE_FILE_SYSTEM, MODE_SYNC }; - -static struct option const long_options[] = { - {"data", 0, ((void *)0), 'd'}, - {"file-system", 0, ((void *)0), 'f'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION] [FILE]...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Synchronize cached writes to persistent storage\n\nIf one " - "or more files are specified, sync only them,\nor their " - "containing file systems.\n\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " -d, --data sync only file data, no " - "unneeded metadata\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -f, --file-system sync the file systems " - "that contain the files\n", - 5), - stdout) - - ; - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("sync"); - } - exit(status); -} - -static _Bool - -sync_arg(enum sync_mode mode, char const *file) { - - _Bool ret = 1; - int open_flags = 00 | 04000; - int fd; - fd = open(file, open_flags); - if (fd < 0) { - - int rd_errno = (*__errno_location()); - if (open_flags != (01 | 04000)) - fd = open(file, 01 | 04000); - if (fd < 0) { - error(0, rd_errno, dcgettext(((void *)0), "error opening %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - return 0; - } - } - - int fdflags = rpl_fcntl(fd, 3); - if (fdflags == -1 || rpl_fcntl(fd, 4, fdflags & ~04000) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "couldn't reset non-blocking mode %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - ret = 0; - } - - if (ret == 1) { - int sync_status = -1; - - switch (mode) { - case MODE_DATA: - sync_status = fdatasync(fd); - break; - - case MODE_FILE: - sync_status = fsync(fd); - break; - - case MODE_FILE_SYSTEM: - sync_status = syncfs(fd); - break; - - default: - - ((void)sizeof(("invalid sync_mode") ? 1 : 0), __extension__({ - if ("invalid sync_mode") - ; - else - __assert_fail("\"invalid sync_mode\"", "src/sync.c", 152, - __extension__ __PRETTY_FUNCTION__); - })); - } - - if (sync_status < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error syncing %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - ret = 0; - } - } - - if (close(fd) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to close %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - ret = 0; - } - - return ret; -} - -int main(int argc, char **argv) { - int c; - - _Bool args_specified; - - _Bool arg_data = 0, arg_file_system = 0; - enum sync_mode mode; - - _Bool ok = 1; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((c = getopt_long(argc, argv, "df", long_options, ((void *)0))) != -1) { - switch (c) { - case 'd': - arg_data = 1; - break; - - case 'f': - arg_file_system = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "sync", "GNU coreutils", Version, ("Jim Meyering"), - ("Giuseppe Scrivano"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - args_specified = optind < argc; - - if (arg_data && arg_file_system) { - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot specify " - "both --data and --file-system\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "cannot specify both --data and --file-system", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "cannot specify both --data and --file-system", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (!args_specified && arg_data) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"--data needs " - "at least one argument\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "--data needs at least one argument", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "--data needs at least one argument", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (!args_specified || (arg_file_system && !1)) - mode = MODE_SYNC; - else if (arg_file_system) - mode = MODE_FILE_SYSTEM; - else if (!arg_data) - mode = MODE_FILE; - else - mode = MODE_DATA; - - if (mode == MODE_SYNC) - sync(); - else { - for (; optind < argc; optind++) - ok &= sync_arg(mode, argv[optind]); - } - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/tac.c b/tests/source/coreutils/tac.c deleted file mode 100644 index a461825..0000000 --- a/tests/source/coreutils/tac.c +++ /dev/null @@ -1,7470 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -typedef unsigned int __re_size_t; -typedef unsigned long int __re_long_size_t; - -typedef long int s_reg_t; -typedef unsigned long int active_reg_t; - -typedef unsigned long int reg_syntax_t; -extern reg_syntax_t re_syntax_options; -typedef enum { - _REG_ENOSYS = -1, - _REG_NOERROR = 0, - _REG_NOMATCH, - - _REG_BADPAT, - _REG_ECOLLATE, - _REG_ECTYPE, - _REG_EESCAPE, - _REG_ESUBREG, - _REG_EBRACK, - _REG_EPAREN, - _REG_EBRACE, - _REG_BADBR, - _REG_ERANGE, - _REG_ESPACE, - _REG_BADRPT, - - _REG_EEND, - _REG_ESIZE, - _REG_ERPAREN -} reg_errcode_t; -struct re_pattern_buffer { - - struct re_dfa_t *buffer; - - __re_long_size_t allocated; - - __re_long_size_t used; - - reg_syntax_t syntax; - - char *fastmap; - - unsigned char *translate; - - size_t re_nsub; - - unsigned can_be_null : 1; - unsigned regs_allocated : 2; - - unsigned fastmap_accurate : 1; - - unsigned no_sub : 1; - - unsigned not_bol : 1; - - unsigned not_eol : 1; - - unsigned newline_anchor : 1; -}; - -typedef struct re_pattern_buffer regex_t; -typedef int regoff_t; - -struct re_registers { - __re_size_t num_regs; - regoff_t *start; - regoff_t *end; -}; -typedef struct { - regoff_t rm_so; - regoff_t rm_eo; -} regmatch_t; -extern reg_syntax_t re_set_syntax(reg_syntax_t __syntax); -extern const char *re_compile_pattern(const char *__pattern, size_t __length, - struct re_pattern_buffer *__buffer) - - __attribute__((__access__(__read_only__, 1, 2))); - -extern int re_compile_fastmap(struct re_pattern_buffer *__buffer); - -extern regoff_t re_search(struct re_pattern_buffer *__buffer, - const char *__String, regoff_t __length, - regoff_t __start, regoff_t __range, - struct re_registers *__regs) - - __attribute__((__access__(__read_only__, 2, 3))); - -extern regoff_t re_search_2(struct re_pattern_buffer *__buffer, - const char *__string1, regoff_t __length1, - const char *__string2, regoff_t __length2, - regoff_t __start, regoff_t __range, - struct re_registers *__regs, regoff_t __stop) - - __attribute__((__access__(__read_only__, 2, 3))) - __attribute__((__access__(__read_only__, 4, 5))); - -extern regoff_t re_match(struct re_pattern_buffer *__buffer, - const char *__String, regoff_t __length, - regoff_t __start, struct re_registers *__regs) - - __attribute__((__access__(__read_only__, 2, 3))); - -extern regoff_t -re_match_2(struct re_pattern_buffer *__buffer, const char *__string1, - regoff_t __length1, const char *__string2, regoff_t __length2, - regoff_t __start, struct re_registers *__regs, regoff_t __stop) - - __attribute__((__access__(__read_only__, 2, 3))) - __attribute__((__access__(__read_only__, 4, 5))); -extern void re_set_registers(struct re_pattern_buffer *__buffer, - struct re_registers *__regs, - __re_size_t __num_regs, regoff_t *__starts, - regoff_t *__ends); -extern int regcomp(regex_t *__restrict __preg, const char *__restrict __pattern, - int __cflags); - -extern int regexec(const regex_t *__restrict __preg, - const char *__restrict __String, size_t __nmatch, - regmatch_t __pmatch[__restrict - - __nmatch], - int __eflags); - -extern size_t regerror(int __errcode, const regex_t *__restrict __preg, - char *__restrict __errbuf, size_t __errbuf_size) - - __attribute__((__access__(__write_only__, 3, 4))); - -extern void regfree(regex_t *__preg); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -char *file_name_concat(char const *dir, char const *base, char **base_in_result) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *mfile_name_concat(char const *dir, char const *base, - char **base_in_result) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -extern size_t safe_read(int fd, void *buf, size_t count); - -int mkstemp_safer(char *); - -int mkostemp_safer(char *, int); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static char const *separator; - -static _Bool have_read_stdin = 0; - -static _Bool separator_ends_record; - -static size_t sentinel_length; - -static size_t match_length; - -static char *G_buffer; - -static size_t read_size; - -static size_t G_buffer_size; - -static struct re_pattern_buffer compiled_separator; -static char compiled_separator_fastmap[(0x7f * 2 + 1) + 1]; -static struct re_registers regs; - -static struct option const longopts[] = { - {"before", 0, ((void *)0), 'b'}, - {"regex", 0, ((void *)0), 'r'}, - {"separator", 1, ((void *)0), 's'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Write each FILE to standard output, last line first.\n", 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -b, --before attach the separator before " - "instead of after\n -r, --regex interpret the " - "separator as a regular expression\n -s, --separator=STRING " - " use STRING as the separator instead of newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("tac"); - } - exit(status); -} - -static void output(char const *start, char const *past_end) { - static char buffer[8192]; - static size_t bytes_in_buffer = 0; - size_t bytes_to_add = past_end - start; - size_t bytes_available = 8192 - bytes_in_buffer; - - if (start == 0) { - fwrite_unlocked(buffer, 1, bytes_in_buffer, stdout); - bytes_in_buffer = 0; - return; - } - - while (bytes_to_add >= bytes_available) { - memcpy(buffer + bytes_in_buffer, start, bytes_available); - bytes_to_add -= bytes_available; - start += bytes_available; - fwrite_unlocked(buffer, 1, 8192, stdout); - bytes_in_buffer = 0; - bytes_available = 8192; - } - - memcpy(buffer + bytes_in_buffer, start, bytes_to_add); - bytes_in_buffer += bytes_to_add; -} - -static _Bool - -tac_seekable(int input_fd, char const *file, off_t file_pos) { - - char *match_start; - - char *past_end; - - size_t saved_record_size; - - _Bool first_time = 1; - char first_char = *separator; - char const *separator1 = separator + 1; - size_t match_length1 = match_length - 1; - - size_t remainder = file_pos % read_size; - if (remainder != 0) { - file_pos -= remainder; - if (lseek(input_fd, file_pos, 0) < 0) - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: seek failed", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - } - - while ((saved_record_size = safe_read(input_fd, G_buffer, read_size)) == 0 && - file_pos != 0) { - off_t rsize = read_size; - if (lseek(input_fd, -rsize, 1) < 0) - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: seek failed", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - file_pos -= read_size; - } - - while (saved_record_size == read_size) { - size_t nread = safe_read(input_fd, G_buffer, read_size); - if (nread == 0) - break; - saved_record_size = nread; - if (saved_record_size == ((size_t)-1)) - break; - file_pos += nread; - } - - if (saved_record_size == ((size_t)-1)) { - error(0, (*__errno_location()), dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } - - match_start = past_end = G_buffer + saved_record_size; - - if (sentinel_length) - match_start -= match_length1; - - while (1) { - - if (sentinel_length == 0) { - size_t i = match_start - G_buffer; - regoff_t ri = i; - regoff_t range = 1 - ri; - regoff_t ret; - - if (1 < range) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"record " - "too large\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "record too large", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "record too large", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (range == 1 || ((ret = re_search(&compiled_separator, G_buffer, i, - i - 1, range, ®s)) == -1)) - match_start = G_buffer - 1; - else if (ret == -2) { - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"error in " - "regular expression search\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "error in regular expression search", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "error in regular expression search", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else { - match_start = G_buffer + regs.start[0]; - match_length = regs.end[0] - regs.start[0]; - } - } else { - - while (*--match_start != first_char || - (match_length1 && - !(strncmp(match_start + 1, separator1, match_length1) == 0))) - ; - } - - if (match_start < G_buffer) { - if (file_pos == 0) { - - output(G_buffer, past_end); - return 1; - } - - saved_record_size = past_end - G_buffer; - if (saved_record_size > read_size) { - - char *newbuffer; - size_t offset = sentinel_length ? sentinel_length : 1; - size_t old_G_buffer_size = G_buffer_size; - - read_size *= 2; - G_buffer_size = read_size * 2 + sentinel_length + 2; - if (G_buffer_size < old_G_buffer_size) - xalloc_die(); - newbuffer = xrealloc(G_buffer - offset, G_buffer_size); - newbuffer += offset; - G_buffer = newbuffer; - } - - if (file_pos >= read_size) - file_pos -= read_size; - else { - read_size = file_pos; - file_pos = 0; - } - if (lseek(input_fd, file_pos, 0) < 0) - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: seek failed", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - - memmove(G_buffer + read_size, G_buffer, saved_record_size); - past_end = G_buffer + read_size + saved_record_size; - - if (sentinel_length) - match_start = G_buffer + read_size; - else - match_start = past_end; - - if (safe_read(input_fd, G_buffer, read_size) != read_size) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } - } else { - - if (separator_ends_record) { - char *match_end = match_start + match_length; - - if (!first_time || match_end != past_end) - output(match_end, past_end); - past_end = match_end; - first_time = 0; - } else { - output(match_start, past_end); - past_end = match_start; - } - - if (sentinel_length > 0) - match_start -= match_length - 1; - } - } -} -static void record_or_unlink_tempfile(char const *fn, FILE *fp) { unlink(fn); } - -static _Bool - -temp_stream(FILE **fp, char **file_name) { - static char *tempfile = ((void *)0); - static FILE *tmp_fp; - if (tempfile == ((void *)0)) { - char const *t = getenv("TMPDIR"); - char const *tempdir = t ? t : "/tmp"; - tempfile = mfile_name_concat(tempdir, "tacXXXXXX", ((void *)0)); - if (tempdir == ((void *)0)) { - error(0, 0, dcgettext(((void *)0), "memory exhausted", 5)); - return 0; - } - int fd = mkstemp_safer(tempfile); - if (fd < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to create temporary file in %s", 5), - quotearg_style(shell_escape_always_quoting_style, tempdir)); - goto Reset; - } - - tmp_fp = fdopen(fd, (0 ? "w+b" : "w+")); - if (!tmp_fp) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to open %s for writing", 5), - quotearg_style(shell_escape_always_quoting_style, tempfile)); - close(fd); - unlink(tempfile); - Reset: - free(tempfile); - tempfile = ((void *)0); - return 0; - } - - record_or_unlink_tempfile(tempfile, tmp_fp); - } else { - clearerr_unlocked(tmp_fp); - if (rpl_fseeko(tmp_fp, 0, 0) < 0 || ftruncate(fileno(tmp_fp), 0) < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to rewind stream for %s", 5), - quotearg_style(shell_escape_always_quoting_style, tempfile)); - return 0; - } - } - - *fp = tmp_fp; - *file_name = tempfile; - return 1; -} - -static off_t copy_to_temp(FILE **g_tmp, char **g_tempfile, int input_fd, - char const *file) { - FILE *fp; - char *file_name; - uintmax_t bytes_copied = 0; - if (!temp_stream(&fp, &file_name)) - return -1; - - while (1) { - size_t bytes_read = safe_read(input_fd, G_buffer, read_size); - if (bytes_read == 0) - break; - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return -1; - } - - if (fwrite_unlocked(G_buffer, 1, bytes_read, fp) != bytes_read) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: write error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file_name)); - return -1; - } - - bytes_copied += bytes_read; - } - - if (fflush_unlocked(fp) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: write error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file_name)); - return -1; - } - - *g_tmp = fp; - *g_tempfile = file_name; - return bytes_copied; -} - -static _Bool - -tac_nonseekable(int input_fd, char const *file) { - FILE *tmp_stream; - char *tmp_file; - off_t bytes_copied = copy_to_temp(&tmp_stream, &tmp_file, input_fd, file); - if (bytes_copied < 0) - return 0; - - _Bool ok = tac_seekable(fileno(tmp_stream), tmp_file, bytes_copied); - return ok; -} - -static _Bool - -tac_file(char const *filename) { - - _Bool ok; - off_t file_size; - int fd; - - _Bool is_stdin = (strcmp(filename, "-") == 0); - - if (is_stdin) { - have_read_stdin = 1; - fd = 0; - filename = dcgettext(((void *)0), "standard input", 5); - xset_binary_mode(0, 0); - } else { - fd = open(filename, 00 | 0); - if (fd < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, filename)); - return 0; - } - } - - file_size = lseek(fd, 0, 2); - - ok = (file_size < 0 || isatty(fd) ? tac_nonseekable(fd, filename) - : tac_seekable(fd, filename, file_size)); - - if (!is_stdin && close(fd) != 0) { - error(0, (*__errno_location()), dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, filename)); - ok = 0; - } - return ok; -} - -int main(int argc, char **argv) { - char const *error_message; - int optc; - - _Bool ok; - size_t half_buffer_size; - - static char const *const default_file_list[] = {"-", ((void *)0)}; - char const *const *file; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - separator = "\n"; - sentinel_length = 1; - separator_ends_record = 1; - - while ((optc = getopt_long(argc, argv, "brs:", longopts, ((void *)0))) != - -1) { - switch (optc) { - case 'b': - separator_ends_record = 0; - break; - case 'r': - sentinel_length = 0; - break; - case 's': - separator = optarg; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "tac", "GNU coreutils", Version, ("Jay Lepreau"), - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - default: - usage(1); - } - } - - if (sentinel_length == 0) { - if (*separator == 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"separator " - "cannot be empty\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "separator cannot be empty", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "separator cannot be empty", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - compiled_separator.buffer = ((void *)0); - compiled_separator.allocated = 0; - compiled_separator.fastmap = compiled_separator_fastmap; - compiled_separator.translate = ((void *)0); - error_message = - re_compile_pattern(separator, strlen(separator), &compiled_separator); - if (error_message) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, \"%s\", (error_message)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, "%s", (error_message)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, "%s", (error_message)), - ((0) ? (void)0 : __builtin_unreachable())))); - } else - match_length = sentinel_length = *separator ? strlen(separator) : 1; - - read_size = 8192; - while (sentinel_length >= read_size / 2) { - if ((18446744073709551615UL) / 2 < read_size) - xalloc_die(); - read_size *= 2; - } - half_buffer_size = read_size + sentinel_length + 1; - G_buffer_size = 2 * half_buffer_size; - if (!(read_size < half_buffer_size && half_buffer_size < G_buffer_size)) - xalloc_die(); - G_buffer = xmalloc(G_buffer_size); - if (sentinel_length) { - memcpy(G_buffer, separator, sentinel_length + 1); - G_buffer += sentinel_length; - } else { - ++G_buffer; - } - - file = - (optind < argc ? (char const *const *)&argv[optind] : default_file_list); - - xset_binary_mode(1, 0); - - { - ok = 1; - for (size_t i = 0; file[i]; ++i) - ok &= tac_file(file[i]); - } - - output((char *)((void *)0), (char *)((void *)0)); - - if (have_read_stdin && close(0) < 0) { - error(0, (*__errno_location()), "-"); - ok = 0; - } - - exit(ok ? 0 : 1); -} diff --git a/tests/source/coreutils/tail.c b/tests/source/coreutils/tail.c deleted file mode 100644 index 69ebecf..0000000 --- a/tests/source/coreutils/tail.c +++ /dev/null @@ -1,9717 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); -double cl_strtod(char const *, char **__restrict__) - __attribute__((__nonnull__(1))); -long double cl_strtold(char const *, char **__restrict__) - __attribute__((__nonnull__(1))); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int open_safer(char const *, int, ...); -int creat_safer(char const *, mode_t); - -int openat_safer(int, char const *, int, ...); -int isapipe(int fd); -int posix2_version(void); -extern size_t safe_read(int fd, void *buf, size_t count); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -int xnanosleep(double); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -_Bool xstrtod(const char *str, const char **ptr, double *result, - double (*convert)(char const *, char **)); - -_Bool xstrtold(const char *str, const char **ptr, long double *result, - long double (*convert)(char const *, char **)); - -struct hash_tuning { - - float shrink_threshold; - float shrink_factor; - float growth_threshold; - float growth_factor; - - _Bool is_n_buckets; -}; - -typedef struct hash_tuning Hash_tuning; - -struct hash_table; - -typedef struct hash_table Hash_table; -extern size_t hash_get_n_buckets(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_buckets_used(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_n_entries(const Hash_table *table) - __attribute__((__pure__)); - -extern size_t hash_get_max_bucket_length(const Hash_table *table) - __attribute__((__pure__)); - -extern _Bool hash_table_ok(const Hash_table *table) __attribute__((__pure__)); - -extern void hash_print_statistics(const Hash_table *table, FILE *stream); - -extern void *hash_lookup(const Hash_table *table, const void *entry); -extern void *hash_get_first(const Hash_table *table) __attribute__((__pure__)); - -extern void *hash_get_next(const Hash_table *table, const void *entry); - -extern size_t hash_get_entries(const Hash_table *table, void **buffer, - size_t buffer_size); - -typedef _Bool (*Hash_processor)(void *entry, void *processor_data); -extern size_t hash_do_for_each(const Hash_table *table, - Hash_processor processor, void *processor_data); - -extern size_t hash_string(const char *string, size_t n_buckets) - __attribute__((__pure__)); - -extern void hash_reset_tuning(Hash_tuning *tuning); - -typedef size_t (*Hash_hasher)(const void *entry, size_t table_size); -typedef _Bool (*Hash_comparator)(const void *entry1, const void *entry2); -typedef void (*Hash_data_freer)(void *entry); - -extern void hash_free(Hash_table *table); - -extern Hash_table * -hash_initialize(size_t candidate, const Hash_tuning *tuning, Hash_hasher hasher, - Hash_comparator comparator, Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))); - -extern Hash_table *hash_xinitialize(size_t candidate, const Hash_tuning *tuning, - Hash_hasher hasher, - Hash_comparator comparator, - Hash_data_freer data_freer) - __attribute__((__malloc__)) __attribute__((__malloc__(hash_free, 1))) - __attribute__((__returns_nonnull__)); - -extern void hash_clear(Hash_table *table); - -extern _Bool hash_rehash(Hash_table *table, size_t candidate); - -extern void *hash_insert(Hash_table *table, const void *entry); - -extern void *hash_xinsert(Hash_table *table, const void *entry); -extern int hash_insert_if_absent(Hash_table *table, const void *entry, - const void **matched_ent); - -extern void *hash_remove(Hash_table *table, const void *entry); - -extern void *hash_delete(Hash_table *table, const void *entry); - -enum { - IN_CLOEXEC = 02000000, - - IN_NONBLOCK = 00004000 - -}; - -struct inotify_event { - int wd; - uint32_t mask; - uint32_t cookie; - uint32_t len; - char name[]; -}; - -extern int inotify_init(void) __attribute__((__nothrow__, __leaf__)); - -extern int inotify_init1(int __flags) __attribute__((__nothrow__, __leaf__)); - -extern int inotify_add_watch(int __fd, const char *__name, uint32_t __mask) - __attribute__((__nothrow__, __leaf__)); - -extern int inotify_rm_watch(int __fd, int __wd) - __attribute__((__nothrow__, __leaf__)); - -typedef unsigned long int nfds_t; - -struct pollfd { - int fd; - short int events; - short int revents; -}; - -extern int poll(struct pollfd *__fds, nfds_t __nfds, int __timeout) - __attribute__((__access__(__write_only__, 1, 2))); -extern int ppoll(struct pollfd *__fds, nfds_t __nfds, - const struct timespec *__timeout, const __sigset_t *__ss) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int __poll_alias(struct pollfd *__fds, nfds_t __nfds, - int __timeout) __asm__("" - "poll"); -extern int __poll_chk(struct pollfd *__fds, nfds_t __nfds, int __timeout, - long unsigned int __fdslen) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __poll_chk_warn(struct pollfd *__fds, nfds_t __nfds, int __timeout, - long unsigned int __fdslen) __asm__("" - "__poll_chk") - - __attribute__((__warning__( - "poll called with fds buffer too small file nfds entries"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__access__(__write_only__, 1, 2))) int -poll(struct pollfd *__fds, nfds_t __nfds, int __timeout) { - return ((((__typeof(__nfds))0 < (__typeof(__nfds))-1 || - (__builtin_constant_p(__nfds) && (__nfds) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nfds)) <= - (__builtin_object_size(__fds, 2 > 1)) / (sizeof(*__fds)))) && - (((long unsigned int)(__nfds)) <= - (__builtin_object_size(__fds, 2 > 1)) / (sizeof(*__fds)))) - ? __poll_alias(__fds, __nfds, __timeout) - : ((((__typeof(__nfds))0 < (__typeof(__nfds))-1 || - (__builtin_constant_p(__nfds) && (__nfds) > 0)) && - __builtin_constant_p((((long unsigned int)(__nfds)) <= - (__builtin_object_size(__fds, 2 > 1)) / - (sizeof(*__fds)))) && - !(((long unsigned int)(__nfds)) <= - (__builtin_object_size(__fds, 2 > 1)) / (sizeof(*__fds)))) - ? __poll_chk_warn(__fds, __nfds, __timeout, - __builtin_object_size(__fds, 2 > 1)) - : __poll_chk(__fds, __nfds, __timeout, - __builtin_object_size(__fds, 2 > 1)))) - - ; -} - -extern int __ppoll_alias(struct pollfd *__fds, nfds_t __nfds, - const struct timespec *__timeout, - const __sigset_t *__ss) __asm__("" - "ppoll") - - ; -extern int __ppoll_chk(struct pollfd *__fds, nfds_t __nfds, - const struct timespec *__timeout, const __sigset_t *__ss, - long unsigned int __fdslen) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __ppoll_chk_warn(struct pollfd *__fds, nfds_t __nfds, - const struct timespec *__timeout, - const __sigset_t *__ss, - long unsigned int __fdslen) __asm__("" - "__ppoll_chk") - - __attribute__((__warning__( - "ppoll called with fds buffer too small file nfds entries"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__access__(__write_only__, 1, 2))) int -ppoll(struct pollfd *__fds, nfds_t __nfds, const struct timespec *__timeout, - const __sigset_t *__ss) { - return ((((__typeof(__nfds))0 < (__typeof(__nfds))-1 || - (__builtin_constant_p(__nfds) && (__nfds) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nfds)) <= - (__builtin_object_size(__fds, 2 > 1)) / (sizeof(*__fds)))) && - (((long unsigned int)(__nfds)) <= - (__builtin_object_size(__fds, 2 > 1)) / (sizeof(*__fds)))) - ? __ppoll_alias(__fds, __nfds, __timeout, __ss) - : ((((__typeof(__nfds))0 < (__typeof(__nfds))-1 || - (__builtin_constant_p(__nfds) && (__nfds) > 0)) && - __builtin_constant_p((((long unsigned int)(__nfds)) <= - (__builtin_object_size(__fds, 2 > 1)) / - (sizeof(*__fds)))) && - !(((long unsigned int)(__nfds)) <= - (__builtin_object_size(__fds, 2 > 1)) / (sizeof(*__fds)))) - ? __ppoll_chk_warn(__fds, __nfds, __timeout, __ss, - __builtin_object_size(__fds, 2 > 1)) - : __ppoll_chk(__fds, __nfds, __timeout, __ss, - __builtin_object_size(__fds, 2 > 1)))) - - ; -} - -static inline int is_local_fs_type(unsigned long int magic) { - switch (magic) { - case 0x5A3C69F0: - return 1; - case 0x61636673: - return 0; - case 0xADF5: - return 1; - case 0xADFF: - return 1; - case 0x5346414F: - return 0; - case 0x09041934: - return 1; - case 0x61756673: - return 0; - case 0x0187: - return 1; - case 0x13661366: - return 1; - case 0x42465331: - return 1; - case 0x62646576: - return 1; - case 0x1BADFACE: - return 1; - case 0x6C6F6F70: - return 1; - case 0xCAFE4A11: - return 1; - case 0x42494E4D: - return 1; - case 0x9123683E: - return 1; - case 0x73727279: - return 1; - case 0x00C36400: - return 0; - case 0x0027E0EB: - return 1; - case 0x63677270: - return 1; - case 0xFF534D42: - return 0; - case 0x73757245: - return 0; - case 0x012FF7B7: - return 1; - case 0x62656570: - return 1; - case 0x28CD3D45: - return 1; - case 0x453DCD28: - return 1; - case 0x64646178: - return 1; - case 0x64626720: - return 1; - case 0x1373: - return 1; - case 0x454D444D: - return 1; - case 0x1CD1: - return 1; - case 0x444D4142: - return 1; - case 0xF15F: - return 1; - case 0xDE5E81E4: - return 1; - case 0x00414A53: - return 1; - case 0xE0F5E1E2: - return 1; - case 0x2011BAB0: - return 1; - case 0x45584653: - return 1; - case 0x5DF5: - return 1; - case 0x137D: - return 1; - case 0xEF53: - return 1; - case 0xEF51: - return 1; - case 0xF2F52010: - return 1; - case 0x4006: - return 1; - case 0x19830326: - return 0; - case 0x65735546: - return 0; - case 0x65735543: - return 0; - case 0x0BAD1DEA: - return 1; - case 0x01161970: - return 0; - case 0x47504653: - return 0; - case 0x4244: - return 1; - case 0x482B: - return 1; - case 0x4858: - return 1; - case 0x00C0FFEE: - return 1; - case 0xF995E849: - return 1; - case 0x958458F6: - return 1; - case 0x11307854: - return 1; - case 0x013111A8: - return 0; - case 0x2BAD1DEA: - return 1; - case 0x9660: - return 1; - case 0x4004: - return 1; - case 0x4000: - return 1; - case 0x07C0: - return 1; - case 0x72B6: - return 1; - case 0x3153464A: - return 1; - case 0x6B414653: - return 0; - case 0xC97E8168: - return 1; - case 0x0BD00BD0: - return 0; - case 0x5346314D: - return 1; - case 0x137F: - return 1; - case 0x138F: - return 1; - case 0x2468: - return 1; - case 0x2478: - return 1; - case 0x4D5A: - return 1; - case 0x19800202: - return 1; - case 0x4D44: - return 1; - case 0x564C: - return 0; - case 0x6969: - return 0; - case 0x6E667364: - return 0; - case 0x3434: - return 1; - case 0x6E736673: - return 1; - case 0x5346544E: - return 1; - case 0x9FA1: - return 1; - case 0x7461636F: - return 0; - case 0x794C7630: - return 0; - case 0xAAD7AAEA: - return 0; - case 0x50495045: - return 0; - case 0xC7571590: - return 1; - case 0x7C7C6673: - return 0; - case 0x9FA0: - return 1; - case 0x6165676C: - return 1; - case 0x002F: - return 1; - case 0x68191122: - return 1; - case 0x858458F6: - return 1; - case 0x07655821: - return 1; - case 0x52654973: - return 1; - case 0x7275: - return 1; - case 0x67596969: - return 1; - case 0x5DCA2DF5: - return 1; - case 0x5345434D: - return 1; - case 0x73636673: - return 1; - case 0xF97CFF8C: - return 1; - case 0x43415D53: - return 1; - case 0x517B: - return 0; - case 0xFE534D42: - return 0; - case 0xBEEFDEAD: - return 0; - case 0x534F434B: - return 1; - case 0x73717368: - return 1; - case 0x62656572: - return 1; - case 0x012FF7B6: - return 1; - case 0x012FF7B5: - return 1; - case 0x01021994: - return 1; - case 0x74726163: - return 1; - case 0x24051905: - return 1; - case 0x15013346: - return 1; - case 0x00011954: - return 1; - case 0x54190100: - return 1; - case 0x9FA2: - return 1; - case 0x01021997: - return 1; - case 0x786F4256: - return 0; - case 0xBACBACBC: - return 0; - case 0xA501FCF5: - return 0; - case 0x565A4653: - return 1; - case 0x53464846: - return 1; - case 0xABBA1974: - return 1; - case 0x012FF7B4: - return 1; - case 0x58465342: - return 1; - case 0x012FD16D: - return 1; - case 0x0033: - return 1; - case 0x2FC12FC1: - return 1; - case 0x5A4F4653: - return 1; - case 0x58295829: - return 1; - default: - return -1; - } -} - -struct statfs { - __fsword_t f_type; - __fsword_t f_bsize; - - __fsblkcnt_t f_blocks; - __fsblkcnt_t f_bfree; - __fsblkcnt_t f_bavail; - __fsfilcnt_t f_files; - __fsfilcnt_t f_ffree; - - __fsid_t f_fsid; - __fsword_t f_namelen; - __fsword_t f_frsize; - __fsword_t f_flags; - __fsword_t f_spare[4]; -}; - -struct statfs64 { - __fsword_t f_type; - __fsword_t f_bsize; - __fsblkcnt64_t f_blocks; - __fsblkcnt64_t f_bfree; - __fsblkcnt64_t f_bavail; - __fsfilcnt64_t f_files; - __fsfilcnt64_t f_ffree; - __fsid_t f_fsid; - __fsword_t f_namelen; - __fsword_t f_frsize; - __fsword_t f_flags; - __fsword_t f_spare[4]; -}; - -extern int statfs(const char *__file, struct statfs *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int statfs64(const char *__file, struct statfs64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstatfs(int __fildes, struct statfs *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatfs64(int __fildes, struct statfs64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -enum Follow_mode { - - Follow_name = 1, - - Follow_descriptor = 2 -}; - -static char const *const follow_mode_string[] = {"descriptor", "name", - ((void *)0) - -}; - -static enum Follow_mode const follow_mode_map[] = { - Follow_descriptor, - Follow_name, -}; - -struct File_spec { - - char *name; - - off_t size; - struct timespec mtime; - dev_t dev; - ino_t ino; - mode_t mode; - - _Bool ignore; - - _Bool remote; - - _Bool tailable; - - int fd; - - int errnum; - - int blocking; - - int wd; - - int parent_wd; - - size_t basename_start; - - uintmax_t n_unchanged_stats; -}; - -static _Bool reopen_inaccessible_files; - -static _Bool count_lines; - -static enum Follow_mode follow_mode = Follow_descriptor; - -static _Bool forever; - -static _Bool monitor_output; - -static _Bool from_start; - -static _Bool print_headers; - -static char line_end; - -enum header_mode { multiple_files, always, never }; - -static uintmax_t max_n_unchanged_stats_between_opens = 5; - -static pid_t pid; - -static _Bool have_read_stdin; - -static _Bool presume_input_pipe; - -static _Bool disable_inotify; - -enum { - RETRY_OPTION = 0x7f + 1, - MAX_UNCHANGED_STATS_OPTION, - PID_OPTION, - PRESUME_INPUT_PIPE_OPTION, - LONG_FOLLOW_OPTION, - DISABLE_INOTIFY_OPTION -}; - -static struct option const long_options[] = { - {"bytes", 1, ((void *)0), 'c'}, - {"follow", 2, ((void *)0), LONG_FOLLOW_OPTION}, - {"lines", 1, ((void *)0), 'n'}, - {"max-unchanged-stats", 1, ((void *)0), MAX_UNCHANGED_STATS_OPTION}, - {"-disable-inotify", 0, ((void *)0), DISABLE_INOTIFY_OPTION}, - {"pid", 1, ((void *)0), PID_OPTION}, - {"-presume-input-pipe", 0, ((void *)0), PRESUME_INPUT_PIPE_OPTION}, - {"quiet", 0, ((void *)0), 'q'}, - {"retry", 0, ((void *)0), RETRY_OPTION}, - {"silent", 0, ((void *)0), 'q'}, - {"sleep-interval", 1, ((void *)0), 's'}, - {"verbose", 0, ((void *)0), 'v'}, - {"zero-terminated", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - printf(dcgettext(((void *)0), - "Print the last %d lines of each FILE to standard " - "output.\nWith more than one FILE, precede each with a " - "header giving the file name.\n", - 5) - - , - 10); - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -c, --bytes=[+]NUM output the last NUM bytes; or " - "use -c +NUM to\n output " - "starting with byte NUM of each file\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -f, --follow[={name|descriptor}]\n " - " output appended data as the file grows;\n " - " an absent option argument means 'descriptor'\n " - " -F same as --follow=name --retry\n", - 5), - stdout) - - ; - printf( - dcgettext( - ((void *)0), - " -n, --lines=[+]NUM output the last NUM lines, instead of " - "the last %d;\n or use -n +NUM to " - "output starting with line NUM\n --max-unchanged-stats=N\n " - " with --follow=name, reopen a FILE which " - "has not\n changed size after N " - "(default %d) iterations\n to see if " - "it has been unlinked or renamed\n " - "(this is the usual case of rotated log files);\n " - " with inotify, this option is rarely useful\n", - 5), - - 10, 5); - fputs_unlocked( - dcgettext(((void *)0), - " --pid=PID with -f, terminate after process " - "ID, PID dies\n -q, --quiet, --silent never output " - "headers giving file names\n --retry keep " - "trying to open a file if it is inaccessible\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -s, --sleep-interval=N with -f, sleep for approximately " - "N seconds\n (default 1.0) " - "between iterations;\n with " - "inotify and --pid=P, check process P at\n " - " least once every N seconds\n -v, --verbose " - " always output headers giving file names\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero-terminated line delimiter is NUL, not newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nNUM may have a multiplier suffix:\nb 512, kB 1000, K " - "1024, MB 1000*1000, M 1024*1024,\nGB 1000*1000*1000, G " - "1024*1024*1024, and so on for T, P, E, Z, Y.\nBinary " - "prefixes can be used, too: KiB=K, MiB=M, and so on.\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "With --follow (-f), tail defaults to following the file " - "descriptor, which\nmeans that even if a tail'ed file is renamed, " - "tail will continue to track\nits end. This default behavior is " - "not desirable when you really want to\ntrack the actual name of " - "the file, not the file descriptor (e.g., log\nrotation). Use " - "--follow=name in that case. That causes tail to track the\nnamed " - "file in a way that accommodates renaming, removal and creation.\n", - 5), - stdout) - - ; - emit_ancillary_info("tail"); - } - exit(status); -} - -static void die_pipe(void) { - raise(13); - exit(1); -} - -static void check_output_alive(void) { - if (!monitor_output) - return; - - struct pollfd pfd; - pfd.fd = 1; - pfd.events = pfd.revents = 0; - - if (poll(&pfd, 1, 0) >= 0 && (pfd.revents & (0x008 | 0x010))) - die_pipe(); -} - -static _Bool - -valid_file_spec(struct File_spec const *f) { - - return ((f->fd == -1) ^ (f->errnum == 0)); -} - -static char const *pretty_name(struct File_spec const *f) { - return ((strcmp(f->name, "-") == 0) - ? dcgettext(((void *)0), "standard input", 5) - : f->name); -} - -static void record_open_fd(struct File_spec *f, int fd, off_t size, - struct stat const *st, int blocking) { - f->fd = fd; - f->size = size; - f->mtime = get_stat_mtime(st); - f->dev = st->st_dev; - f->ino = st->st_ino; - f->mode = st->st_mode; - f->blocking = blocking; - f->n_unchanged_stats = 0; - f->ignore = 0; -} - -static void close_fd(int fd, char const *filename) { - if (fd != -1 && fd != 0 && close(fd)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "closing %s (fd=%d)", 5), - quotearg_style(shell_escape_always_quoting_style, filename), fd); - } -} - -static void write_header(char const *pretty_filename) { - static _Bool first_file = 1; - - printf("%s==> %s <==\n", (first_file ? "" : "\n"), pretty_filename); - first_file = 0; -} - -static void xwrite_stdout(char const *buffer, size_t n_bytes) { - if (n_bytes > 0 && fwrite_unlocked(buffer, 1, n_bytes, stdout) < n_bytes) { - clearerr_unlocked(stdout); - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"error writing %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, \"standard " - "output\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "error writing %s", 5), - quotearg_style(shell_escape_always_quoting_style, - "standard output")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "error writing %s", 5), - quotearg_style(shell_escape_always_quoting_style, - "standard output")), - ((0) ? (void)0 : __builtin_unreachable())))); - } -} - -static uintmax_t dump_remainder(_Bool want_header, char const *pretty_filename, - int fd, uintmax_t n_bytes) { - uintmax_t n_written; - uintmax_t n_remaining = n_bytes; - - n_written = 0; - while (1) { - char buffer[8192]; - size_t n = (((n_remaining) < (8192)) ? (n_remaining) : (8192)); - size_t bytes_read = safe_read(fd, buffer, n); - if (bytes_read == ((size_t)-1)) { - if ((*__errno_location()) != 11) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"error reading %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, " - "pretty_filename)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, - pretty_filename)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, - pretty_filename)), - ((0) ? (void)0 : __builtin_unreachable())))); - break; - } - if (bytes_read == 0) - break; - if (want_header) { - write_header(pretty_filename); - want_header = 0; - } - xwrite_stdout(buffer, bytes_read); - n_written += bytes_read; - if (n_bytes != (18446744073709551615UL)) { - n_remaining -= bytes_read; - if (n_remaining == 0 || n_bytes == ((18446744073709551615UL) - 1)) - break; - } - } - - return n_written; -} - -static off_t xlseek(int fd, off_t offset, int whence, char const *filename) { - off_t new_offset = lseek(fd, offset, whence); - char buf[((((((sizeof(offset) * 8) - - (!((__typeof__(offset))0 < (__typeof__(offset))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(offset))0 < (__typeof__(offset))-1))) + - 1)]; - char *s; - - if (0 <= new_offset) - return new_offset; - - s = offtostr(offset, buf); - switch (whence) { - case 0: - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: cannot seek to offset %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, filename), s); - break; - case 1: - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s: cannot seek to relative offset %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, filename), s); - break; - case 2: - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "%s: cannot seek to end-relative offset %s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, filename), s); - break; - default: - abort(); - } - - exit(1); -} -static _Bool - -file_lines(char const *pretty_filename, int fd, uintmax_t n_lines, - off_t start_pos, off_t end_pos, uintmax_t *read_pos) { - char buffer[8192]; - size_t bytes_read; - off_t pos = end_pos; - - if (n_lines == 0) - return 1; - - bytes_read = (pos - start_pos) % 8192; - if (bytes_read == 0) - bytes_read = 8192; - - pos -= bytes_read; - xlseek(fd, pos, 0, pretty_filename); - bytes_read = safe_read(fd, buffer, bytes_read); - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_filename)); - return 0; - } - *read_pos = pos + bytes_read; - - if (bytes_read && buffer[bytes_read - 1] != line_end) - --n_lines; - - do { - - size_t n = bytes_read; - while (n) { - char const *nl; - nl = memrchr(buffer, line_end, n); - if (nl == ((void *)0)) - break; - n = nl - buffer; - if (n_lines-- == 0) { - - xwrite_stdout(nl + 1, bytes_read - (n + 1)); - *read_pos += dump_remainder(0, pretty_filename, fd, - end_pos - (pos + bytes_read)); - return 1; - } - } - - if (pos == start_pos) { - - xlseek(fd, start_pos, 0, pretty_filename); - *read_pos = start_pos + dump_remainder(0, pretty_filename, fd, end_pos); - return 1; - } - pos -= 8192; - xlseek(fd, pos, 0, pretty_filename); - - bytes_read = safe_read(fd, buffer, 8192); - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_filename)); - return 0; - } - - *read_pos = pos + bytes_read; - } while (bytes_read > 0); - - return 1; -} - -static _Bool - -pipe_lines(char const *pretty_filename, int fd, uintmax_t n_lines, - uintmax_t *read_pos) { - struct linebuffer { - char buffer[8192]; - size_t nbytes; - size_t nlines; - struct linebuffer *next; - }; - typedef struct linebuffer LBUFFER; - LBUFFER *first, *last, *tmp; - size_t total_lines = 0; - - _Bool ok = 1; - size_t n_read; - - first = last = xmalloc(sizeof(LBUFFER)); - first->nbytes = first->nlines = 0; - first->next = ((void *)0); - tmp = xmalloc(sizeof(LBUFFER)); - - while (1) { - n_read = safe_read(fd, tmp->buffer, 8192); - if (n_read == 0 || n_read == ((size_t)-1)) - break; - tmp->nbytes = n_read; - *read_pos += n_read; - tmp->nlines = 0; - tmp->next = ((void *)0); - - { - char const *buffer_end = tmp->buffer + n_read; - char const *p = tmp->buffer; - while ((p = memchr(p, line_end, buffer_end - p))) { - ++p; - ++tmp->nlines; - } - } - total_lines += tmp->nlines; - - if (tmp->nbytes + last->nbytes < 8192) { - memcpy(&last->buffer[last->nbytes], tmp->buffer, tmp->nbytes); - last->nbytes += tmp->nbytes; - last->nlines += tmp->nlines; - } else { - - last = last->next = tmp; - if (total_lines - first->nlines > n_lines) { - tmp = first; - total_lines -= first->nlines; - first = first->next; - } else - tmp = xmalloc(sizeof(LBUFFER)); - } - } - - free(tmp); - - if (n_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_filename)); - ok = 0; - goto free_lbuffers; - } - - if (last->nbytes == 0) - goto free_lbuffers; - - if (n_lines == 0) - goto free_lbuffers; - - if (last->buffer[last->nbytes - 1] != line_end) { - ++last->nlines; - ++total_lines; - } - - for (tmp = first; total_lines - tmp->nlines > n_lines; tmp = tmp->next) - total_lines -= tmp->nlines; - - { - char const *beg = tmp->buffer; - char const *buffer_end = tmp->buffer + tmp->nbytes; - if (total_lines > n_lines) { - - size_t j; - for (j = total_lines - n_lines; j; --j) { - beg = rawmemchr(beg, line_end); - ++beg; - } - } - - xwrite_stdout(beg, buffer_end - beg); - } - - for (tmp = tmp->next; tmp; tmp = tmp->next) - xwrite_stdout(tmp->buffer, tmp->nbytes); - -free_lbuffers: - while (first) { - tmp = first->next; - free(first); - first = tmp; - } - return ok; -} - -static _Bool - -pipe_bytes(char const *pretty_filename, int fd, uintmax_t n_bytes, - uintmax_t *read_pos) { - struct charbuffer { - char buffer[8192]; - size_t nbytes; - struct charbuffer *next; - }; - typedef struct charbuffer CBUFFER; - CBUFFER *first, *last, *tmp; - size_t i; - size_t total_bytes = 0; - - _Bool ok = 1; - size_t n_read; - - first = last = xmalloc(sizeof(CBUFFER)); - first->nbytes = 0; - first->next = ((void *)0); - tmp = xmalloc(sizeof(CBUFFER)); - - while (1) { - n_read = safe_read(fd, tmp->buffer, 8192); - if (n_read == 0 || n_read == ((size_t)-1)) - break; - *read_pos += n_read; - tmp->nbytes = n_read; - tmp->next = ((void *)0); - - total_bytes += tmp->nbytes; - - if (tmp->nbytes + last->nbytes < 8192) { - memcpy(&last->buffer[last->nbytes], tmp->buffer, tmp->nbytes); - last->nbytes += tmp->nbytes; - } else { - - last = last->next = tmp; - if (total_bytes - first->nbytes > n_bytes) { - tmp = first; - total_bytes -= first->nbytes; - first = first->next; - } else { - tmp = xmalloc(sizeof(CBUFFER)); - } - } - } - - free(tmp); - - if (n_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_filename)); - ok = 0; - goto free_cbuffers; - } - - for (tmp = first; total_bytes - tmp->nbytes > n_bytes; tmp = tmp->next) - total_bytes -= tmp->nbytes; - - if (total_bytes > n_bytes) - i = total_bytes - n_bytes; - else - i = 0; - xwrite_stdout(&tmp->buffer[i], tmp->nbytes - i); - - for (tmp = tmp->next; tmp; tmp = tmp->next) - xwrite_stdout(tmp->buffer, tmp->nbytes); - -free_cbuffers: - while (first) { - tmp = first->next; - free(first); - first = tmp; - } - return ok; -} - -static int start_bytes(char const *pretty_filename, int fd, uintmax_t n_bytes, - uintmax_t *read_pos) { - char buffer[8192]; - - while (0 < n_bytes) { - size_t bytes_read = safe_read(fd, buffer, 8192); - if (bytes_read == 0) - return -1; - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_filename)); - return 1; - } - *read_pos += bytes_read; - if (bytes_read <= n_bytes) - n_bytes -= bytes_read; - else { - size_t n_remaining = bytes_read - n_bytes; - - xwrite_stdout(&buffer[n_bytes], n_remaining); - break; - } - } - - return 0; -} - -static int start_lines(char const *pretty_filename, int fd, uintmax_t n_lines, - uintmax_t *read_pos) { - if (n_lines == 0) - return 0; - - while (1) { - char buffer[8192]; - size_t bytes_read = safe_read(fd, buffer, 8192); - if (bytes_read == 0) - return -1; - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_filename)); - return 1; - } - - char *buffer_end = buffer + bytes_read; - - *read_pos += bytes_read; - - char *p = buffer; - while ((p = memchr(p, line_end, buffer_end - p))) { - ++p; - if (--n_lines == 0) { - if (p < buffer_end) - xwrite_stdout(p, buffer_end - p); - return 0; - } - } - } -} - -static _Bool - -fremote(int fd, char const *name) { - - _Bool remote = 1; - - struct statfs buf; - int err = fstatfs(fd, &buf); - if (err != 0) { - - if ((*__errno_location()) != 38) - error(0, (*__errno_location()), - dcgettext(((void *)0), - "cannot determine location of %s. " - "reverting to polling", - 5) - - , - quotearg_style(shell_escape_always_quoting_style, name)); - } else { - switch (is_local_fs_type(buf.f_type)) { - case 0: - break; - case -1: - - break; - case 1: - remote = 0; - break; - default: - - ((void)sizeof((!"unexpected return value from is_local_fs_type") ? 1 : 0), - __extension__({ - if (!"unexpected return value from is_local_fs_type") - ; - else - __assert_fail("!\"unexpected return value from is_local_fs_type\"", - "src/tail.c", 972, __extension__ __PRETTY_FUNCTION__); - })); - } - } - - return remote; -} - -static void recheck(struct File_spec *f, _Bool blocking) { - struct stat new_stats; - - _Bool ok = 1; - - _Bool is_stdin = ((strcmp(f->name, "-") == 0)); - - _Bool was_tailable = f->tailable; - int prev_errnum = f->errnum; - - _Bool new_file; - int fd = (is_stdin ? 0 - - : open_safer(f->name, 00 | (blocking ? 0 : 04000))); - - ((void)sizeof((valid_file_spec(f)) ? 1 : 0), __extension__({ - if (valid_file_spec(f)) - ; - else - __assert_fail("valid_file_spec (f)", "src/tail.c", 994, - __extension__ __PRETTY_FUNCTION__); - })); - - f->tailable = !(reopen_inaccessible_files && fd == -1); - - if (!disable_inotify && !lstat(f->name, &new_stats) && - ((((new_stats.st_mode)) & 0170000) == (0120000))) { - - ok = 0; - f->errnum = -1; - f->ignore = 1; - - error(0, 0, - dcgettext(((void *)0), - "%s has been replaced with an untailable symbolic link", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_name(f))); - } else if (fd == -1 || fstat(fd, &new_stats) < 0) { - ok = 0; - f->errnum = (*__errno_location()); - if (!f->tailable) { - if (was_tailable) { - - error( - 0, f->errnum, - dcgettext(((void *)0), "%s has become inaccessible", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_name(f))); - } else { - } - } else if (prev_errnum != (*__errno_location())) - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - pretty_name(f))); - } else if (!(((((new_stats.st_mode)) & 0170000) == (0100000)) || - ((((new_stats.st_mode)) & 0170000) == (0010000)) || - ((((new_stats.st_mode)) & 0170000) == (0140000)) || - ((((new_stats.st_mode)) & 0170000) == (0020000)))) { - ok = 0; - f->errnum = -1; - f->tailable = 0; - f->ignore = !(reopen_inaccessible_files && follow_mode == Follow_name); - if (was_tailable || prev_errnum != f->errnum) - error(0, 0, - dcgettext(((void *)0), - "%s has been replaced with an untailable file%s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_name(f)), - f->ignore ? dcgettext(((void *)0), "; giving up on this name", 5) - : ""); - } else if ((f->remote = fremote(fd, pretty_name(f))) && !disable_inotify) { - ok = 0; - f->errnum = -1; - error(0, 0, - dcgettext(((void *)0), - "%s has been replaced with an untailable remote file", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_name(f))); - f->ignore = 1; - f->remote = 1; - } else { - f->errnum = 0; - } - - new_file = 0; - if (!ok) { - close_fd(fd, pretty_name(f)); - close_fd(f->fd, pretty_name(f)); - f->fd = -1; - } else if (prev_errnum && prev_errnum != 2) { - new_file = 1; - - ((void)sizeof((f->fd == -1) ? 1 : 0), __extension__({ - if (f->fd == -1) - ; - else - __assert_fail("f->fd == -1", "src/tail.c", 1071, - __extension__ __PRETTY_FUNCTION__); - })); - error(0, 0, dcgettext(((void *)0), "%s has become accessible", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_name(f))); - } else if (f->fd == -1) { - - new_file = 1; - - error(0, 0, - - dcgettext(((void *)0), "%s has appeared; following new file", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_name(f))); - } else if (f->ino != new_stats.st_ino || f->dev != new_stats.st_dev) { - - new_file = 1; - - error( - 0, 0, - - dcgettext(((void *)0), "%s has been replaced; following new file", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_name(f))); - - close_fd(f->fd, pretty_name(f)); - - } else { - - close_fd(fd, pretty_name(f)); - } - - if (new_file) { - - record_open_fd(f, fd, 0, &new_stats, (is_stdin ? -1 : blocking)); - xlseek(fd, 0, 0, pretty_name(f)); - } -} - -static _Bool - -any_live_files(const struct File_spec *f, size_t n_files) { - - if (reopen_inaccessible_files && follow_mode == Follow_name) - return 1; - - for (size_t i = 0; i < n_files; i++) { - if (0 <= f[i].fd) - return 1; - else { - if (!f[i].ignore && reopen_inaccessible_files) - return 1; - } - } - - return 0; -} -static void tail_forever(struct File_spec *f, size_t n_files, - double sleep_interval) { - - _Bool blocking = - (pid == 0 && follow_mode == Follow_descriptor && n_files == 1 && - f[0].fd != -1 && !((((f[0].mode)) & 0170000) == (0100000))); - size_t last; - - _Bool writer_is_dead = 0; - - last = n_files - 1; - - while (1) { - size_t i; - - _Bool any_input = 0; - - for (i = 0; i < n_files; i++) { - int fd; - char const *name; - mode_t mode; - struct stat stats; - uintmax_t bytes_read; - - if (f[i].ignore) - continue; - - if (f[i].fd < 0) { - recheck(&f[i], blocking); - continue; - } - - fd = f[i].fd; - name = pretty_name(&f[i]); - mode = f[i].mode; - - if (f[i].blocking != blocking) { - int old_flags = rpl_fcntl(fd, 3); - int new_flags = old_flags | (blocking ? 0 : 04000); - if (old_flags < 0 || - (new_flags != old_flags && rpl_fcntl(fd, 4, new_flags) == -1)) { - - if (((((f[i].mode)) & 0170000) == (0100000)) && - (*__errno_location()) == 1) { - - } else - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"%s: cannot change nonblocking mode\", 5), " - "quotearg_n_style_colon (0, shell_escape_quoting_style, " - "name)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "%s: cannot change nonblocking mode", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - name)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "%s: cannot change nonblocking mode", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - name)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } else - f[i].blocking = blocking; - } - - if (!f[i].blocking) { - if (fstat(fd, &stats) != 0) { - f[i].fd = -1; - f[i].errnum = (*__errno_location()); - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, name)); - close(fd); - continue; - } - - if (f[i].mode == stats.st_mode && - (!((((stats.st_mode)) & 0170000) == (0100000)) || - f[i].size == stats.st_size) && - timespec_cmp(f[i].mtime, get_stat_mtime(&stats)) == 0) { - if ((max_n_unchanged_stats_between_opens <= - f[i].n_unchanged_stats++) && - follow_mode == Follow_name) { - recheck(&f[i], f[i].blocking); - f[i].n_unchanged_stats = 0; - } - continue; - } - - f[i].mtime = get_stat_mtime(&stats); - f[i].mode = stats.st_mode; - - f[i].n_unchanged_stats = 0; - - if (((((mode)) & 0170000) == (0100000)) && stats.st_size < f[i].size) { - error(0, 0, dcgettext(((void *)0), "%s: file truncated", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, name)); - - xlseek(fd, 0, 0, name); - f[i].size = 0; - } - - if (i != last) { - if (print_headers) - write_header(name); - last = i; - } - } - - uintmax_t bytes_to_read; - if (f[i].blocking) - bytes_to_read = ((18446744073709551615UL) - 1); - else if (((((mode)) & 0170000) == (0100000)) && f[i].remote) - bytes_to_read = stats.st_size - f[i].size; - else - bytes_to_read = (18446744073709551615UL); - - bytes_read = dump_remainder(0, name, fd, bytes_to_read); - - any_input |= (bytes_read != 0); - f[i].size += bytes_read; - } - - if (!any_live_files(f, n_files)) { - error(0, 0, dcgettext(((void *)0), "no files remaining", 5)); - break; - } - - if ((!any_input || blocking) && fflush_unlocked(stdout) != 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - check_output_alive(); - - if (!any_input) { - if (writer_is_dead) - break; - - writer_is_dead = (pid != 0 && kill(pid, 0) != 0 - - && (*__errno_location()) != 1); - - if (!writer_is_dead && xnanosleep(sleep_interval)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot read realtime clock\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot read realtime clock", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot read realtime clock", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } -} - -static _Bool - -any_remote_file(const struct File_spec *f, size_t n_files) { - for (size_t i = 0; i < n_files; i++) - if (0 <= f[i].fd && f[i].remote) - return 1; - return 0; -} - -static _Bool - -any_non_remote_file(const struct File_spec *f, size_t n_files) { - for (size_t i = 0; i < n_files; i++) - if (0 <= f[i].fd && !f[i].remote) - return 1; - return 0; -} - -static _Bool - -any_symlinks(const struct File_spec *f, size_t n_files) { - struct stat st; - for (size_t i = 0; i < n_files; i++) - if (lstat(f[i].name, &st) == 0 && ((((st.st_mode)) & 0170000) == (0120000))) - return 1; - return 0; -} - -static _Bool - -any_non_regular_fifo(const struct File_spec *f, size_t n_files) { - for (size_t i = 0; i < n_files; i++) - if (0 <= f[i].fd && !((((f[i].mode)) & 0170000) == (0100000)) && - !((((f[i].mode)) & 0170000) == (0010000))) - return 1; - return 0; -} - -static _Bool - -tailable_stdin(const struct File_spec *f, size_t n_files) { - for (size_t i = 0; i < n_files; i++) - if (!f[i].ignore && (strcmp(f[i].name, "-") == 0)) - return 1; - return 0; -} - -static size_t wd_hasher(const void *entry, size_t tabsize) { - const struct File_spec *spec = entry; - return spec->wd % tabsize; -} - -static _Bool - -wd_comparator(const void *e1, const void *e2) { - const struct File_spec *spec1 = e1; - const struct File_spec *spec2 = e2; - return spec1->wd == spec2->wd; -} - -static void check_fspec(struct File_spec *fspec, - struct File_spec **prev_fspec) { - struct stat stats; - char const *name; - - if (fspec->fd == -1) - return; - - name = pretty_name(fspec); - - if (fstat(fspec->fd, &stats) != 0) { - fspec->errnum = (*__errno_location()); - close_fd(fspec->fd, name); - fspec->fd = -1; - return; - } - - if (((((fspec->mode)) & 0170000) == (0100000)) && - stats.st_size < fspec->size) { - error(0, 0, dcgettext(((void *)0), "%s: file truncated", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, name)); - xlseek(fspec->fd, 0, 0, name); - fspec->size = 0; - } else if (((((fspec->mode)) & 0170000) == (0100000)) && - stats.st_size == fspec->size && - timespec_cmp(fspec->mtime, get_stat_mtime(&stats)) == 0) - return; - - _Bool want_header = print_headers && (fspec != *prev_fspec); - - uintmax_t bytes_read = dump_remainder(want_header, name, fspec->fd, - - (18446744073709551615UL)); - fspec->size += bytes_read; - - if (bytes_read) { - *prev_fspec = fspec; - if (fflush_unlocked(stdout) != 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } -} - -static void tail_forever_inotify(int wd, struct File_spec *f, size_t n_files, - double sleep_interval, - Hash_table **wd_to_namep) { - - unsigned int max_realloc = 3; - - Hash_table *wd_to_name; - - _Bool found_watchable_file = 0; - - _Bool tailed_but_unwatchable = 0; - - _Bool found_unwatchable_dir = 0; - - _Bool no_inotify_resources = 0; - - _Bool writer_is_dead = 0; - struct File_spec *prev_fspec; - size_t evlen = 0; - char *evbuf; - size_t evbuf_off = 0; - size_t len = 0; - - wd_to_name = hash_initialize(n_files, ((void *)0), wd_hasher, wd_comparator, - ((void *)0)); - if (!wd_to_name) - xalloc_die(); - *wd_to_namep = wd_to_name; - - uint32_t inotify_wd_mask = 0x00000002; - - if (follow_mode == Follow_name) - inotify_wd_mask |= (0x00000004 | 0x00000400 | 0x00000800); - - size_t i; - for (i = 0; i < n_files; i++) { - if (!f[i].ignore) { - size_t fnlen = strlen(f[i].name); - if (evlen < fnlen) - evlen = fnlen; - - f[i].wd = -1; - - if (follow_mode == Follow_name) { - size_t dirlen = dir_len(f[i].name); - char prev = f[i].name[dirlen]; - f[i].basename_start = last_component(f[i].name) - f[i].name; - - f[i].name[dirlen] = '\0'; - - f[i].parent_wd = inotify_add_watch(wd, dirlen ? f[i].name : ".", - (0x00000100 | 0x00000200 - - | 0x00000080 | 0x00000004 - - | 0x00000400)); - - f[i].name[dirlen] = prev; - - if (f[i].parent_wd < 0) { - if ((*__errno_location()) != 28) - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot watch parent directory of %s", - 5), - quotearg_style(shell_escape_always_quoting_style, f[i].name)); - else - error(0, 0, - dcgettext(((void *)0), "inotify resources exhausted", 5)); - found_unwatchable_dir = 1; - - break; - } - } - - f[i].wd = inotify_add_watch(wd, f[i].name, inotify_wd_mask); - - if (f[i].wd < 0) { - if (f[i].fd != -1) - tailed_but_unwatchable = 1; - if ((*__errno_location()) == 28 || (*__errno_location()) == 12) { - no_inotify_resources = 1; - error(0, 0, dcgettext(((void *)0), "inotify resources exhausted", 5)); - break; - } else if ((*__errno_location()) != f[i].errnum) - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot watch %s", 5), - quotearg_style(shell_escape_always_quoting_style, f[i].name)); - continue; - } - - if (hash_insert(wd_to_name, &(f[i])) == ((void *)0)) - xalloc_die(); - - found_watchable_file = 1; - } - } - - if (no_inotify_resources || found_unwatchable_dir || - (follow_mode == Follow_descriptor && tailed_but_unwatchable)) - return; - if (follow_mode == Follow_descriptor && !found_watchable_file) - exit(1); - - prev_fspec = &(f[n_files - 1]); - - for (i = 0; i < n_files; i++) { - if (!f[i].ignore) { - - if (follow_mode == Follow_name) - recheck(&(f[i]), 0); - else if (f[i].fd != -1) { - - struct stat stats; - - if (stat(f[i].name, &stats) == 0 && - (f[i].dev != stats.st_dev || f[i].ino != stats.st_ino)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "%s was replaced", 5), - quotearg_style(shell_escape_always_quoting_style, - pretty_name(&(f[i])))); - return; - } - } - - check_fspec(&f[i], &prev_fspec); - } - } - - evlen += sizeof(struct inotify_event) + 1; - evbuf = xmalloc(evlen); - - while (1) { - struct File_spec *fspec; - struct inotify_event *ev; - void *void_ev; - - if (follow_mode == Follow_name && !reopen_inaccessible_files && - hash_get_n_entries(wd_to_name) == 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"no files " - "remaining\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "no files remaining", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "no files remaining", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (len <= evbuf_off) { - - int file_change; - struct pollfd pfd[2]; - do { - - int delay = -1; - - if (pid) { - if (writer_is_dead) - exit(0); - - writer_is_dead = (kill(pid, 0) != 0 && (*__errno_location()) != 1); - - if (writer_is_dead || sleep_interval <= 0) - delay = 0; - else if (sleep_interval < 0x7fffffff / 1000 - 1) { - - double ddelay = sleep_interval * 1000; - delay = ddelay; - delay += delay < ddelay; - } - } - - pfd[0].fd = wd; - pfd[0].events = 0x001; - pfd[1].fd = 1; - pfd[1].events = pfd[1].revents = 0; - file_change = poll(pfd, monitor_output + 1, delay); - } while (file_change == 0); - - if (file_change < 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"error waiting for inotify and " - "output events\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "error waiting for inotify and output events", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), - "error waiting for inotify and output events", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (pfd[1].revents) - die_pipe(); - - len = safe_read(wd, evbuf, evlen); - evbuf_off = 0; - - if ((len == 0 || (len == ((size_t)-1) && (*__errno_location()) == 22)) && - max_realloc--) { - len = 0; - evlen *= 2; - evbuf = xrealloc(evbuf, evlen); - continue; - } - - if (len == 0 || len == ((size_t)-1)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"error reading inotify event\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "error reading inotify event", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "error reading inotify event", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - void_ev = evbuf + evbuf_off; - ev = void_ev; - evbuf_off += sizeof(*ev) + ev->len; - - if ((ev->mask & 0x00000400) && !ev->len) { - for (i = 0; i < n_files; i++) { - if (ev->wd == f[i].parent_wd) { - error(0, 0, - - dcgettext(((void *)0), - "directory containing watched file was removed", 5)); - return; - } - } - } - - if (ev->len) { - size_t j; - for (j = 0; j < n_files; j++) { - - if (f[j].parent_wd == ev->wd && - (strcmp(ev->name, f[j].name + f[j].basename_start) == 0)) - break; - } - - if (j == n_files) - continue; - - fspec = &(f[j]); - - int new_wd = -1; - - _Bool deleting = !!(ev->mask & 0x00000200); - - if (!deleting) { - - new_wd = inotify_add_watch(wd, f[j].name, inotify_wd_mask); - } - - if (!deleting && new_wd < 0) { - if ((*__errno_location()) == 28 || (*__errno_location()) == 12) { - error(0, 0, dcgettext(((void *)0), "inotify resources exhausted", 5)); - return; - } else { - - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot watch %s", 5), - quotearg_style(shell_escape_always_quoting_style, f[j].name)); - } - } - - _Bool new_watch; - new_watch = (!deleting) && (fspec->wd < 0 || new_wd != fspec->wd); - - if (new_watch) { - if (0 <= fspec->wd) { - inotify_rm_watch(wd, fspec->wd); - hash_remove(wd_to_name, fspec); - } - - fspec->wd = new_wd; - - if (new_wd == -1) - continue; - - struct File_spec *prev = hash_remove(wd_to_name, fspec); - if (prev && prev != fspec) { - if (follow_mode == Follow_name) - recheck(prev, 0); - prev->wd = -1; - close_fd(prev->fd, pretty_name(prev)); - } - - if (hash_insert(wd_to_name, fspec) == ((void *)0)) - xalloc_die(); - } - - if (follow_mode == Follow_name) - recheck(fspec, 0); - } else { - struct File_spec key; - key.wd = ev->wd; - fspec = hash_lookup(wd_to_name, &key); - } - - if (!fspec) - continue; - - if (ev->mask & (0x00000004 | 0x00000200 | 0x00000400 | 0x00000800)) { - - if (ev->mask & 0x00000400) { - inotify_rm_watch(wd, fspec->wd); - hash_remove(wd_to_name, fspec); - } - recheck(fspec, 0); - - continue; - } - check_fspec(fspec, &prev_fspec); - } -} - -static _Bool - -tail_bytes(char const *pretty_filename, int fd, uintmax_t n_bytes, - uintmax_t *read_pos) { - struct stat stats; - - if (fstat(fd, &stats)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot fstat %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_filename)); - return 0; - } - - if (from_start) { - if (!presume_input_pipe && - n_bytes <= - ((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1))) && - ((((((stats.st_mode)) & 0170000) == (0100000)) - - && xlseek(fd, n_bytes, 1, pretty_filename) >= 0) || - lseek(fd, n_bytes, 1) != -1)) - *read_pos += n_bytes; - else { - int t = start_bytes(pretty_filename, fd, n_bytes, read_pos); - if (t) - return t < 0; - } - n_bytes = (18446744073709551615UL); - } else { - off_t end_pos = -1; - off_t current_pos = -1; - - if (!presume_input_pipe && - n_bytes <= - ((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1)))) { - if (usable_st_size(&stats)) - end_pos = stats.st_size; - else if ((current_pos = lseek(fd, -n_bytes, 2)) != -1) - end_pos = current_pos + n_bytes; - } - if (end_pos <= (off_t)((0 < (stats).st_blksize && - (stats).st_blksize <= ((size_t)-1) / 8 + 1) - ? (stats).st_blksize - : 512)) - return pipe_bytes(pretty_filename, fd, n_bytes, read_pos); - if (current_pos == -1) - current_pos = xlseek(fd, 0, 1, pretty_filename); - if (current_pos < end_pos) { - off_t bytes_remaining = end_pos - current_pos; - - if (n_bytes < bytes_remaining) { - current_pos = end_pos - n_bytes; - xlseek(fd, current_pos, 0, pretty_filename); - } - } - *read_pos = current_pos; - } - - *read_pos += dump_remainder(0, pretty_filename, fd, n_bytes); - return 1; -} - -static _Bool - -tail_lines(char const *pretty_filename, int fd, uintmax_t n_lines, - uintmax_t *read_pos) { - struct stat stats; - - if (fstat(fd, &stats)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot fstat %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_filename)); - return 0; - } - - if (from_start) { - int t = start_lines(pretty_filename, fd, n_lines, read_pos); - if (t) - return t < 0; - *read_pos += - dump_remainder(0, pretty_filename, fd, (18446744073709551615UL)); - } else { - off_t start_pos = -1; - off_t end_pos; - - if (!presume_input_pipe && ((((stats.st_mode)) & 0170000) == (0100000)) - - && (start_pos = lseek(fd, 0, 1)) != -1 && - start_pos < (end_pos = lseek(fd, 0, 2))) { - *read_pos = end_pos; - if (end_pos != 0 && !file_lines(pretty_filename, fd, n_lines, start_pos, - end_pos, read_pos)) - return 0; - } else { - - if (start_pos != -1) - xlseek(fd, start_pos, 0, pretty_filename); - - return pipe_lines(pretty_filename, fd, n_lines, read_pos); - } - } - return 1; -} -static _Bool - -tail(char const *filename, int fd, uintmax_t n_units, uintmax_t *read_pos) { - *read_pos = 0; - if (count_lines) - return tail_lines(filename, fd, n_units, read_pos); - else - return tail_bytes(filename, fd, n_units, read_pos); -} - -static _Bool - -tail_file(struct File_spec *f, uintmax_t n_units) { - int fd; - - _Bool ok; - - _Bool is_stdin = ((strcmp(f->name, "-") == 0)); - - if (is_stdin) { - have_read_stdin = 1; - fd = 0; - xset_binary_mode(0, 0); - } else - fd = open_safer(f->name, 00 | 0); - - f->tailable = !(reopen_inaccessible_files && fd == -1); - - if (fd == -1) { - if (forever) { - f->fd = -1; - f->errnum = (*__errno_location()); - f->ignore = !reopen_inaccessible_files; - f->ino = 0; - f->dev = 0; - } - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_name(f))); - ok = 0; - } else { - uintmax_t read_pos; - - if (print_headers) - write_header(pretty_name(f)); - ok = tail(pretty_name(f), fd, n_units, &read_pos); - if (forever) { - struct stat stats; - - f->errnum = ok - 1; - if (fstat(fd, &stats) < 0) { - ok = 0; - f->errnum = (*__errno_location()); - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_name(f))); - } else if (!(((((stats.st_mode)) & 0170000) == (0100000)) || - ((((stats.st_mode)) & 0170000) == (0010000)) || - ((((stats.st_mode)) & 0170000) == (0140000)) || - ((((stats.st_mode)) & 0170000) == (0020000)))) { - ok = 0; - f->errnum = -1; - f->tailable = 0; - f->ignore = !reopen_inaccessible_files; - error(0, 0, - dcgettext(((void *)0), - "%s: cannot follow end of this type of file%s", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, - pretty_name(f)), - f->ignore ? dcgettext(((void *)0), "; giving up on this name", 5) - : ""); - } - - if (!ok) { - f->ignore = !reopen_inaccessible_files; - close_fd(fd, pretty_name(f)); - f->fd = -1; - } else { - - record_open_fd(f, fd, read_pos, &stats, (is_stdin ? -1 : 1)); - f->remote = fremote(fd, pretty_name(f)); - } - } else { - if (!is_stdin && close(fd)) { - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, pretty_name(f))); - ok = 0; - } - } - } - - return ok; -} -static _Bool - -parse_obsolete_option(int argc, char *const *argv, uintmax_t *n_units) { - char const *p; - char const *n_string; - char const *n_string_end; - int default_count = 10; - - _Bool t_from_start; - - _Bool t_count_lines = 1; - - _Bool t_forever = 0; - - if (!(argc == 2 || (argc == 3 && !(argv[2][0] == '-' && argv[2][1])) || - (3 <= argc && argc <= 4 && (strcmp(argv[2], "--") == 0)))) - return 0; - - int posix_ver = posix2_version(); - - _Bool obsolete_usage = posix_ver < 200112; - - _Bool traditional_usage = obsolete_usage || 200809 <= posix_ver; - p = argv[1]; - - switch (*p++) { - default: - return 0; - - case '+': - - if (!traditional_usage) - return 0; - - t_from_start = 1; - break; - - case '-': - - if (!obsolete_usage && !p[p[0] == 'c']) - return 0; - - t_from_start = 0; - break; - } - - n_string = p; - while (((unsigned int)(*p) - '0' <= 9)) - p++; - n_string_end = p; - - switch (*p) { - case 'b': - default_count *= 512; - ; - case 'c': - t_count_lines = 0; - ; - case 'l': - p++; - break; - } - - if (*p == 'f') { - t_forever = 1; - ++p; - } - - if (*p) - return 0; - - if (n_string == n_string_end) - *n_units = default_count; - else if ((xstrtoumax(n_string, ((void *)0), 10, n_units, "b") & - ~LONGINT_INVALID_SUFFIX_CHAR) != LONGINT_OK) { - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s: %s\", dcgettext (((void " - "*)0), \"invalid number\", 5), quote (argv[1])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s: %s", - dcgettext(((void *)0), "invalid number", 5), quote(argv[1])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s: %s", - dcgettext(((void *)0), "invalid number", 5), quote(argv[1])), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - from_start = t_from_start; - count_lines = t_count_lines; - forever = t_forever; - - return 1; -} - -static void parse_options(int argc, char **argv, uintmax_t *n_units, - enum header_mode *header_mode, - double *sleep_interval) { - int c; - - while ((c = getopt_long(argc, argv, "c:n:fFqs:vz0123456789", long_options, - ((void *)0))) != -1) { - switch (c) { - case 'F': - forever = 1; - follow_mode = Follow_name; - reopen_inaccessible_files = 1; - break; - - case 'c': - case 'n': - count_lines = (c == 'n'); - if (*optarg == '+') - from_start = 1; - else if (*optarg == '-') - ++optarg; - - *n_units = xdectoumax( - optarg, 0, (18446744073709551615UL), "bkKmMGTPEZY0", - count_lines ? dcgettext(((void *)0), "invalid number of lines", 5) - - : dcgettext(((void *)0), "invalid number of bytes", 5), - 0); - break; - - case 'f': - case LONG_FOLLOW_OPTION: - forever = 1; - if (optarg == ((void *)0)) - follow_mode = Follow_descriptor; - else - follow_mode = ((follow_mode_map)[__xargmatch_internal( - "--follow", optarg, follow_mode_string, - (void const *)(follow_mode_map), sizeof *(follow_mode_map), - argmatch_die, 1)]); - break; - - case RETRY_OPTION: - reopen_inaccessible_files = 1; - break; - - case MAX_UNCHANGED_STATS_OPTION: - - max_n_unchanged_stats_between_opens = xdectoumax( - optarg, 0, (18446744073709551615UL), "", - - dcgettext(((void *)0), - "invalid maximum number of unchanged stats between opens", - 5), - 0); - break; - - case DISABLE_INOTIFY_OPTION: - disable_inotify = 1; - break; - - case PID_OPTION: - pid = xdectoumax( - optarg, 0, - ((pid_t)(!(!((pid_t)0 < (pid_t)-1)) - ? (pid_t)-1 - : ((((pid_t)1 << ((sizeof(pid_t) * 8) - 2)) - 1) * 2 + - 1))), - "", dcgettext(((void *)0), "invalid PID", 5), 0); - break; - - case PRESUME_INPUT_PIPE_OPTION: - presume_input_pipe = 1; - break; - - case 'q': - *header_mode = never; - break; - - case 's': { - double s; - if (!(xstrtod(optarg, ((void *)0), &s, cl_strtod) && 0 <= s)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid number of " - "seconds: %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext(((void *)0), "invalid number of seconds: %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext(((void *)0), "invalid number of seconds: %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - *sleep_interval = s; - } break; - - case 'v': - *header_mode = always; - break; - - case 'z': - line_end = '\0'; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "tail", "GNU coreutils", Version, ("Paul Rubin"), - ("David MacKenzie"), ("Ian Lance Taylor"), ("Jim Meyering"), - (char *)((void *)0)); - exit(0); - break; - ; - - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"option used " - "in invalid context -- %c\", 5), c), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "option used in invalid context -- %c", 5), - c), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "option used in invalid context -- %c", 5), - c), - ((0) ? (void)0 : __builtin_unreachable())))); - - default: - usage(1); - } - } - - if (reopen_inaccessible_files) { - if (!forever) { - reopen_inaccessible_files = 0; - error(0, 0, - dcgettext(((void *)0), - "warning: --retry ignored; --retry is useful" - " only when following", - 5) - - ); - } else if (follow_mode == Follow_descriptor) - error(0, 0, - dcgettext(((void *)0), - "warning: --retry only effective for the initial open", - 5)); - } - - if (pid && !forever) - error(0, 0, - - dcgettext( - ((void *)0), - "warning: PID ignored; --pid=PID is useful only when following", - 5)); - else if (pid && kill(pid, 0) != 0 && (*__errno_location()) == 38) { - error(0, 0, - dcgettext(((void *)0), - "warning: --pid=PID is not supported on this system", 5)); - pid = 0; - } -} - -static size_t ignore_fifo_and_pipe(struct File_spec *f, size_t n_files) { - - size_t n_viable = 0; - - for (size_t i = 0; i < n_files; i++) { - - _Bool is_a_fifo_or_pipe = - ((strcmp(f[i].name, "-") == 0) && !f[i].ignore && 0 <= f[i].fd && - (((((f[i].mode)) & 0170000) == (0010000)) - - || (1 != 1 && isapipe(f[i].fd)))); - if (is_a_fifo_or_pipe) { - f[i].fd = -1; - f[i].ignore = 1; - } else - ++n_viable; - } - - return n_viable; -} - -int main(int argc, char **argv) { - enum header_mode header_mode = multiple_files; - - _Bool ok = 1; - - uintmax_t n_units = 10; - size_t n_files; - char **file; - struct File_spec *F; - size_t i; - - _Bool obsolete_option; - - double sleep_interval = 1.0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - have_read_stdin = 0; - - count_lines = 1; - forever = from_start = print_headers = 0; - line_end = '\n'; - obsolete_option = parse_obsolete_option(argc, argv, &n_units); - argc -= obsolete_option; - argv += obsolete_option; - parse_options(argc, argv, &n_units, &header_mode, &sleep_interval); - - if (from_start) { - if (n_units) - --n_units; - } - - if (optind < argc) { - n_files = argc - optind; - file = argv + optind; - } else { - static char *dummy_stdin = (char *)"-"; - n_files = 1; - file = &dummy_stdin; - } - - { - - _Bool found_hyphen = 0; - - for (i = 0; i < n_files; i++) - if ((strcmp(file[i], "-") == 0)) - found_hyphen = 1; - - if (found_hyphen && follow_mode == Follow_name) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot follow %s by " - "name\", 5), quotearg_style (shell_escape_always_quoting_style, " - "\"-\")), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "cannot follow %s by name", 5), - quotearg_style(shell_escape_always_quoting_style, "-")), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "cannot follow %s by name", 5), - quotearg_style(shell_escape_always_quoting_style, "-")), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (forever && found_hyphen) { - struct stat in_stat; - - _Bool blocking_stdin; - blocking_stdin = (pid == 0 && follow_mode == Follow_descriptor && - n_files == 1 && !fstat(0, &in_stat) && - !((((in_stat.st_mode)) & 0170000) == (0100000))); - - if (!blocking_stdin && isatty(0)) - error(0, 0, - dcgettext(((void *)0), - "warning: following standard input" - " indefinitely is ineffective", - 5) - - ); - } - } - - if (!n_units && !forever && !from_start) - return 0; - - F = xnmalloc(n_files, sizeof *F); - for (i = 0; i < n_files; i++) - F[i].name = file[i]; - - if (header_mode == always || (header_mode == multiple_files && n_files > 1)) - print_headers = 1; - - xset_binary_mode(1, 0); - - for (i = 0; i < n_files; i++) - ok &= tail_file(&F[i], n_units); - - if (forever && ignore_fifo_and_pipe(F, n_files)) { - - struct stat out_stat; - if (fstat(1, &out_stat) < 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard output\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard output", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard output", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - monitor_output = (((((out_stat.st_mode)) & 0170000) == (0010000)) - - || (1 != 1 && isapipe(1))); - if (!disable_inotify && - (tailable_stdin(F, n_files) || any_remote_file(F, n_files) || - !any_non_remote_file(F, n_files) || any_symlinks(F, n_files) || - any_non_regular_fifo(F, n_files) || - (!ok && follow_mode == Follow_descriptor))) - disable_inotify = 1; - - if (!disable_inotify) { - int wd = inotify_init(); - if (0 <= wd) { - - if (fflush_unlocked(stdout) != 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - Hash_table *ht; - tail_forever_inotify(wd, F, n_files, sleep_interval, &ht); - hash_free(ht); - close(wd); - - (*__errno_location()) = 0; - } - error(0, (*__errno_location()), - dcgettext(((void *)0), - "inotify cannot be used, reverting to polling", 5)); - } - - disable_inotify = 1; - tail_forever(F, n_files, sleep_interval); - } - - if (have_read_stdin && close(0) < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"-\"), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable())))); - exit(ok ? 0 : 1); -} diff --git a/tests/source/coreutils/tee.c b/tests/source/coreutils/tee.c deleted file mode 100644 index 35e9b75..0000000 --- a/tests/source/coreutils/tee.c +++ /dev/null @@ -1,7097 +0,0 @@ - - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static _Bool tee_files(int nfiles, char **files); - -static _Bool append; - -static _Bool ignore_interrupts; - -enum output_error { - output_error_sigpipe, - output_error_warn, - output_error_warn_nopipe, - output_error_exit, - output_error_exit_nopipe -}; - -static enum output_error output_error; - -static struct option const long_options[] = { - {"append", 0, ((void *)0), 'a'}, - {"ignore-interrupts", 0, ((void *)0), 'i'}, - {"output-error", 2, ((void *)0), 'p'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static char const *const output_error_args[] = {"warn", "warn-nopipe", "exit", - "exit-nopipe", ((void *)0) - -}; -static enum output_error const output_error_types[] = { - output_error_warn, output_error_warn_nopipe, output_error_exit, - output_error_exit_nopipe}; -_Static_assert((sizeof(output_error_args) / sizeof *(output_error_args)) == - (sizeof(output_error_types) / sizeof *(output_error_types)) + - 1, - "verify (" - "ARRAY_CARDINALITY (output_error_args) == ARRAY_CARDINALITY " - "(output_error_types) + 1" - ")"); - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5), - program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Copy standard input to each FILE, and also to standard " - "output.\n\n -a, --append append to the given " - "FILEs, do not overwrite\n -i, --ignore-interrupts ignore " - "interrupt signals\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -p diagnose errors writing to non " - "pipes\n --output-error[=MODE] set behavior on write " - "error. See MODE below\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nMODE determines behavior with write errors on the outputs:\n " - "warn diagnose errors writing to any output\n " - "warn-nopipe diagnose errors writing to any output not a pipe\n " - " exit exit on error writing to any output\n " - "exit-nopipe exit on error writing to any output not a " - "pipe\nThe default MODE for the -p option is 'warn-nopipe'.\nThe " - "default operation when --output-error is not specified, is " - "to\nexit immediately on error writing to a pipe, and diagnose " - "errors\nwriting to non pipe outputs.\n", - 5), - stdout); - emit_ancillary_info("tee"); - } - exit(status); -} - -int main(int argc, char **argv) { - - _Bool ok; - int optc; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - append = 0; - ignore_interrupts = 0; - - while ((optc = getopt_long(argc, argv, "aip", long_options, ((void *)0))) != - -1) { - switch (optc) { - case 'a': - append = 1; - break; - - case 'i': - ignore_interrupts = 1; - break; - - case 'p': - if (optarg) - output_error = ((output_error_types)[__xargmatch_internal( - "--output-error", optarg, output_error_args, - (void const *)(output_error_types), sizeof *(output_error_types), - argmatch_die, 1)]); - else - output_error = output_error_warn_nopipe; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "tee", "GNU coreutils", Version, ("Mike Parker"), - ("Richard M. Stallman"), ("David MacKenzie"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (ignore_interrupts) - signal(2, ((__sighandler_t)1)); - - if (output_error != output_error_sigpipe) - signal(13, ((__sighandler_t)1)); - - ok = tee_files(argc - optind, &argv[optind]); - if (close(0) != 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", dcgettext " - "(((void *)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} - -static _Bool - -tee_files(int nfiles, char **files) { - size_t n_outputs = 0; - FILE **descriptors; - char buffer[8192]; - ssize_t bytes_read = 0; - int i; - - _Bool ok = 1; - char const *mode_string = (0 - - ? (append ? "ab" : "wb") - : (append ? "a" : "w")); - - xset_binary_mode(0, 0); - xset_binary_mode(1, 0); - fadvise(stdin, FADVISE_SEQUENTIAL); - - descriptors = xnmalloc(nfiles + 1, sizeof *descriptors); - files--; - descriptors[0] = stdout; - files[0] = bad_cast(dcgettext(((void *)0), "standard output", 5)); - setvbuf(stdout, ((void *)0), 2, 0); - n_outputs++; - - for (i = 1; i <= nfiles; i++) { - - descriptors[i] = fopen_safer(files[i], mode_string); - if (descriptors[i] == ((void *)0)) { - error(output_error == output_error_exit || - output_error == output_error_exit_nopipe, - - (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, files[i])); - ok = 0; - } else { - setvbuf(descriptors[i], ((void *)0), 2, 0); - n_outputs++; - } - } - - while (n_outputs) { - bytes_read = read(0, buffer, sizeof buffer); - if (bytes_read < 0 && (*__errno_location()) == 4) - continue; - if (bytes_read <= 0) - break; - - for (i = 0; i <= nfiles; i++) - if (descriptors[i] && - fwrite_unlocked(buffer, bytes_read, 1, descriptors[i]) != 1) { - int w_errno = (*__errno_location()); - - _Bool fail = - (*__errno_location()) != 32 || (output_error == output_error_exit || - output_error == output_error_warn); - if (descriptors[i] == stdout) - clearerr_unlocked(stdout); - if (fail) { - error( - output_error == output_error_exit || - output_error == output_error_exit_nopipe, - w_errno, "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, files[i])); - } - descriptors[i] = ((void *)0); - if (fail) - ok = 0; - n_outputs--; - } - } - - if (bytes_read == -1) { - error(0, (*__errno_location()), dcgettext(((void *)0), "read error", 5)); - ok = 0; - } - - for (i = 1; i <= nfiles; i++) - if (descriptors[i] && rpl_fclose(descriptors[i]) != 0) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, files[i])); - ok = 0; - } - - free(descriptors); - - return ok; -} diff --git a/tests/source/coreutils/test.c b/tests/source/coreutils/test.c deleted file mode 100644 index f9dd6cf..0000000 --- a/tests/source/coreutils/test.c +++ /dev/null @@ -1,7557 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -int strintcmp(char const *, char const *) __attribute__((__nonnull__)) -__attribute__((__pure__)); -int strnumcmp(char const *, char const *, int, int) __attribute__((__nonnull__)) -__attribute__((__pure__)); - -extern void verror(int __status, int __errnum, const char *__format, - va_list __args) - __attribute__((__format__(__gnu_printf__, 3, 0))); -extern void verror_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, - va_list __args) - __attribute__((__format__(__gnu_printf__, 5, 0))); - -enum { TEST_TRUE, TEST_FALSE, TEST_FAILURE }; -static int pos; -static int argc; -static char **argv; - -static _Bool unary_operator(void); -static _Bool binary_operator(_Bool); -static _Bool two_arguments(void); -static _Bool three_arguments(void); -static _Bool posixtest(int); - -static _Bool expr(void); -static _Bool term(void); -static _Bool and (void); -static _Bool or (void); - -static void beyond(void); - -__attribute__((__format__(printf, 1, 2))) static _Noreturn void -test_syntax_error(char const *format, ...) { - va_list ap; - - __builtin_va_start(ap, format); - verror(0, 0, format, ap); - exit(TEST_FAILURE); -} - -static void advance(_Bool f) { - ++pos; - - if (f && pos >= argc) - beyond(); -} - -static void unary_advance(void) { - advance(1); - ++pos; -} - -static void beyond(void) { - test_syntax_error(dcgettext(((void *)0), "missing argument after %s", 5), - quote(argv[argc - 1])); -} - -static char const *find_int(char const *string) { - char const *p; - char const *number_start; - - for (p = string; ((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISblank); - p++) - continue; - - if (*p == '+') { - p++; - number_start = p; - } else { - number_start = p; - p += (*p == '-'); - } - - if (((unsigned int)(*p++) - '0' <= 9)) { - while (((unsigned int)(*p) - '0' <= 9)) - p++; - while (((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISblank)) - p++; - if (!*p) - return number_start; - } - - test_syntax_error(dcgettext(((void *)0), "invalid integer %s", 5), - quote(string)); -} - -static _Bool - -get_mtime(char const *filename, struct timespec *mtime) { - struct stat finfo; - - _Bool ok = (stat(filename, &finfo) == 0); - if (ok) - *mtime = get_stat_mtime(&finfo); - return ok; -} - -static _Bool - -binop(char const *s) { - return (((strcmp(s, "=") == 0)) || ((strcmp(s, "!=") == 0)) || - ((strcmp(s, "==") == 0)) || ((strcmp(s, "-nt") == 0)) || - ((strcmp(s, "-ot") == 0)) || ((strcmp(s, "-ef") == 0)) || - ((strcmp(s, "-eq") == 0)) || ((strcmp(s, "-ne") == 0)) || - ((strcmp(s, "-lt") == 0)) || ((strcmp(s, "-le") == 0)) || - ((strcmp(s, "-gt") == 0)) || ((strcmp(s, "-ge") == 0))); -} -static _Bool - -term(void) { - - _Bool value; - - _Bool negated = 0; - - while (pos < argc && argv[pos][0] == '!' && argv[pos][1] == '\0') { - advance(1); - negated = !negated; - } - - if (pos >= argc) - beyond(); - - if (argv[pos][0] == '(' && argv[pos][1] == '\0') { - int nargs; - - advance(1); - - for (nargs = 1; - pos + nargs < argc && !(strcmp(argv[pos + nargs], ")") == 0); nargs++) - if (nargs == 4) { - nargs = argc - pos; - break; - } - - value = posixtest(nargs); - if (argv[pos] == 0) - test_syntax_error(dcgettext(((void *)0), "%s expected", 5), quote(")")); - else if (argv[pos][0] != ')' || argv[pos][1]) - test_syntax_error(dcgettext(((void *)0), "%s expected, found %s", 5), - quote_n(0, ")"), quote_n(1, argv[pos])); - advance(0); - } - - else if (4 <= argc - pos && (strcmp(argv[pos], "-l") == 0) && - binop(argv[pos + 2])) - value = binary_operator(1); - else if (3 <= argc - pos && binop(argv[pos + 1])) - value = binary_operator(0); - - else if (argv[pos][0] == '-' && argv[pos][1] && argv[pos][2] == '\0') - value = unary_operator(); - else { - value = (argv[pos][0] != '\0'); - advance(0); - } - - return negated ^ value; -} - -static _Bool - -binary_operator(_Bool l_is_l) { - int op; - struct stat stat_buf, stat_spare; - - _Bool r_is_l; - - if (l_is_l) - advance(0); - op = pos + 1; - - if ((op < argc - 2) && (strcmp(argv[op + 1], "-l") == 0)) { - r_is_l = 1; - advance(0); - } else - r_is_l = 0; - - if (argv[op][0] == '-') { - - if ((((argv[op][1] == 'l' || argv[op][1] == 'g') && - (argv[op][2] == 'e' || argv[op][2] == 't')) || - (argv[op][1] == 'e' && argv[op][2] == 'q') || - (argv[op][1] == 'n' && argv[op][2] == 'e')) && - !argv[op][3]) { - char lbuf[((((((sizeof(uintmax_t) * 8) - (!((__typeof__(uintmax_t))0 < - (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - char rbuf[((((((sizeof(uintmax_t) * 8) - (!((__typeof__(uintmax_t))0 < - (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - char const *l = (l_is_l ? umaxtostr(strlen(argv[op - 1]), lbuf) - : find_int(argv[op - 1])); - char const *r = (r_is_l ? umaxtostr(strlen(argv[op + 2]), rbuf) - : find_int(argv[op + 1])); - int cmp = strintcmp(l, r); - - _Bool xe_operator = (argv[op][2] == 'e'); - pos += 3; - return (argv[op][1] == 'l' ? cmp < xe_operator - : argv[op][1] == 'g' ? cmp > -xe_operator - : (cmp != 0) == xe_operator); - } - - switch (argv[op][1]) { - default: - break; - - case 'n': - if (argv[op][2] == 't' && !argv[op][3]) { - - struct timespec lt, rt; - - _Bool le, re; - pos += 3; - if (l_is_l || r_is_l) - test_syntax_error( - dcgettext(((void *)0), "-nt does not accept -l", 5)); - le = get_mtime(argv[op - 1], <); - re = get_mtime(argv[op + 1], &rt); - return le && (!re || timespec_cmp(lt, rt) > 0); - } - break; - - case 'e': - if (argv[op][2] == 'f' && !argv[op][3]) { - - pos += 3; - if (l_is_l || r_is_l) - test_syntax_error( - dcgettext(((void *)0), "-ef does not accept -l", 5)); - return (stat(argv[op - 1], &stat_buf) == 0 && - stat(argv[op + 1], &stat_spare) == 0 && - stat_buf.st_dev == stat_spare.st_dev && - stat_buf.st_ino == stat_spare.st_ino); - } - break; - - case 'o': - if ('t' == argv[op][2] && '\000' == argv[op][3]) { - - struct timespec lt, rt; - - _Bool le, re; - pos += 3; - if (l_is_l || r_is_l) - test_syntax_error( - dcgettext(((void *)0), "-ot does not accept -l", 5)); - le = get_mtime(argv[op - 1], <); - re = get_mtime(argv[op + 1], &rt); - return re && (!le || timespec_cmp(lt, rt) < 0); - } - break; - } - - test_syntax_error(dcgettext(((void *)0), "%s: unknown binary operator", 5), - quote(argv[op])); - } - - if (argv[op][0] == '=' && - (!argv[op][1] || ((argv[op][1] == '=') && !argv[op][2]))) { - - _Bool value = (strcmp(argv[pos], argv[pos + 2]) == 0); - pos += 3; - return value; - } - - if ((strcmp(argv[op], "!=") == 0)) { - - _Bool value = !(strcmp(argv[pos], argv[pos + 2]) == 0); - pos += 3; - return value; - } - - abort(); -} - -static _Bool - -unary_operator(void) { - struct stat stat_buf; - - switch (argv[pos][1]) { - default: - test_syntax_error(dcgettext(((void *)0), "%s: unary operator expected", 5), - quote(argv[pos])); - return 0; - - case 'e': - unary_advance(); - return stat(argv[pos - 1], &stat_buf) == 0; - - case 'r': - unary_advance(); - return euidaccess(argv[pos - 1], 4) == 0; - - case 'w': - unary_advance(); - return euidaccess(argv[pos - 1], 2) == 0; - - case 'x': - unary_advance(); - return euidaccess(argv[pos - 1], 1) == 0; - - case 'N': { - unary_advance(); - if (stat(argv[pos - 1], &stat_buf) != 0) - return 0; - struct timespec atime = get_stat_atime(&stat_buf); - struct timespec mtime = get_stat_mtime(&stat_buf); - return (timespec_cmp(mtime, atime) > 0); - } - - case 'O': { - unary_advance(); - if (stat(argv[pos - 1], &stat_buf) != 0) - return 0; - - (*__errno_location()) = 0; - uid_t euid = geteuid(); - uid_t NO_UID = -1; - return !(euid == NO_UID && (*__errno_location())) && - euid == stat_buf.st_uid; - } - - case 'G': { - unary_advance(); - if (stat(argv[pos - 1], &stat_buf) != 0) - return 0; - - (*__errno_location()) = 0; - gid_t egid = getegid(); - gid_t NO_GID = -1; - return !(egid == NO_GID && (*__errno_location())) && - egid == stat_buf.st_gid; - } - - case 'f': - unary_advance(); - - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0100000))); - - case 'd': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0040000))); - - case 's': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && 0 < stat_buf.st_size); - - case 'S': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0140000))); - - case 'c': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0020000))); - - case 'b': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0060000))); - - case 'p': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0010000))); - - case 'L': - - case 'h': - unary_advance(); - return (lstat(argv[pos - 1], &stat_buf) == 0 && - ((((stat_buf.st_mode)) & 0170000) == (0120000))); - - case 'u': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && (stat_buf.st_mode & 04000)); - - case 'g': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && (stat_buf.st_mode & 02000)); - - case 'k': - unary_advance(); - return (stat(argv[pos - 1], &stat_buf) == 0 && (stat_buf.st_mode & 01000)); - - case 't': { - long int fd; - char const *arg; - unary_advance(); - arg = find_int(argv[pos - 1]); - - (*__errno_location()) = 0; - fd = strtol(arg, ((void *)0), 10); - return ((*__errno_location()) != 34 && 0 <= fd && fd <= 0x7fffffff && - isatty(fd)); - } - - case 'n': - unary_advance(); - return argv[pos - 1][0] != 0; - - case 'z': - unary_advance(); - return argv[pos - 1][0] == '\0'; - } -} - -static _Bool - - and (void) { - - _Bool value = 1; - - while (1) { - value &= term(); - if (!(pos < argc && (strcmp(argv[pos], "-a") == 0))) - return value; - advance(0); - } -} - -static _Bool - - or (void) { - - _Bool value = 0; - - while (1) { - value |= and(); - if (!(pos < argc && (strcmp(argv[pos], "-o") == 0))) - return value; - advance(0); - } -} - -static _Bool - -expr(void) { - if (pos >= argc) - beyond(); - - return or (); -} - -static _Bool - -one_argument(void) { - return argv[pos++][0] != '\0'; -} - -static _Bool - -two_arguments(void) { - - _Bool value; - - if ((strcmp(argv[pos], "!") == 0)) { - advance(0); - value = !one_argument(); - } else if (argv[pos][0] == '-' && argv[pos][1] != '\0' && - argv[pos][2] == '\0') { - value = unary_operator(); - } else - beyond(); - return (value); -} - -static _Bool - -three_arguments(void) { - - _Bool value; - - if (binop(argv[pos + 1])) - value = binary_operator(0); - else if ((strcmp(argv[pos], "!") == 0)) { - advance(1); - value = !two_arguments(); - } else if ((strcmp(argv[pos], "(") == 0) && - (strcmp(argv[pos + 2], ")") == 0)) { - advance(0); - value = one_argument(); - advance(0); - } else if ((strcmp(argv[pos + 1], "-a") == 0) || - (strcmp(argv[pos + 1], "-o") == 0)) - value = expr(); - else - test_syntax_error(dcgettext(((void *)0), "%s: binary operator expected", 5), - quote(argv[pos + 1])); - return (value); -} - -static _Bool - -posixtest(int nargs) { - - _Bool value; - - switch (nargs) { - case 1: - value = one_argument(); - break; - - case 2: - value = two_arguments(); - break; - - case 3: - value = three_arguments(); - break; - - case 4: - if ((strcmp(argv[pos], "!") == 0)) { - advance(1); - value = !three_arguments(); - break; - } - if ((strcmp(argv[pos], "(") == 0) && (strcmp(argv[pos + 3], ")") == 0)) { - advance(0); - value = two_arguments(); - advance(0); - break; - }; - case 5: - default: - if (nargs <= 0) - abort(); - value = expr(); - } - - return (value); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - fputs_unlocked(dcgettext(((void *)0), - "Usage: test EXPRESSION\n or: test\n or: [ " - "EXPRESSION ]\n or: [ ]\n or: [ OPTION\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "Exit with the status determined by EXPRESSION.\n\n", 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - "\nAn omitted EXPRESSION defaults to false. " - "Otherwise,\nEXPRESSION is true or false and sets " - "exit status. It is one of:\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n ( EXPRESSION ) EXPRESSION is true\n ! " - "EXPRESSION EXPRESSION is false\n " - "EXPRESSION1 -a EXPRESSION2 both EXPRESSION1 and " - "EXPRESSION2 are true\n EXPRESSION1 -o EXPRESSION2 either " - "EXPRESSION1 or EXPRESSION2 is true\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n -n STRING the length of STRING is nonzero\n " - "STRING equivalent to -n STRING\n -z STRING " - " the length of STRING is zero\n STRING1 = STRING2 " - " the strings are equal\n STRING1 != STRING2 the strings " - "are not equal\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n INTEGER1 -eq INTEGER2 INTEGER1 is equal to INTEGER2\n " - " INTEGER1 -ge INTEGER2 INTEGER1 is greater than or equal " - "to INTEGER2\n INTEGER1 -gt INTEGER2 INTEGER1 is greater " - "than INTEGER2\n INTEGER1 -le INTEGER2 INTEGER1 is less " - "than or equal to INTEGER2\n INTEGER1 -lt INTEGER2 " - "INTEGER1 is less than INTEGER2\n INTEGER1 -ne INTEGER2 " - "INTEGER1 is not equal to INTEGER2\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\n FILE1 -ef FILE2 FILE1 and FILE2 have the same device and " - "inode numbers\n FILE1 -nt FILE2 FILE1 is newer (modification " - "date) than FILE2\n FILE1 -ot FILE2 FILE1 is older than FILE2\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n -b FILE FILE exists and is block special\n -c FILE " - " FILE exists and is character special\n -d FILE " - "FILE exists and is a directory\n -e FILE FILE exists\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -f FILE FILE exists and is a regular file\n -g FILE " - " FILE exists and is set-group-ID\n -G FILE FILE " - "exists and is owned by the effective group ID\n -h FILE " - " FILE exists and is a symbolic link (same as -L)\n -k FILE " - " FILE exists and has its sticky bit set\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -L FILE FILE exists and is a symbolic link (same as -h)\n " - "-N FILE FILE exists and has been modified since it was last " - "read\n -O FILE FILE exists and is owned by the effective " - "user ID\n -p FILE FILE exists and is a named pipe\n -r FILE " - " FILE exists and the user has read access\n -s FILE FILE " - "exists and has a size greater than zero\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -S FILE FILE exists and is a socket\n -t FD " - "file descriptor FD is opened on a terminal\n -u FILE " - "FILE exists and its set-user-ID bit is set\n -w FILE " - "FILE exists and the user has write access\n -x FILE " - "FILE exists and the user has execute (or search) access\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nExcept for -h and -L, all FILE-related tests dereference " - "symbolic links.\nBeware that parentheses need to be escaped " - "(e.g., by backslashes) for shells.\nINTEGER may also be -l " - "STRING, which evaluates to the length of STRING.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - "\nNOTE: Binary -a and -o are inherently ambiguous. Use 'test " - "EXPR1 && test\nEXPR2' or 'test EXPR1 || test EXPR2' instead.\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - "\nNOTE: [ honors the --help and --version " - "options, but test does not.\ntest treats each of " - "those as it treats any other nonempty STRING.\n", - 5), - stdout) - - ; - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your " - "shell's documentation\n" - "for details about the options it supports.\n", - 5), - dcgettext(((void *)0), "test and/or [", 5)); - emit_ancillary_info("test"); - } - exit(status); -} -int main(int margc, char **margv) { - - _Bool value; - ; - set_program_name(margv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(TEST_FAILURE); - atexit(close_stdout); - - argv = margv; - - if (0) { - - if (margc == 2) { - if ((strcmp(margv[1], "--help") == 0)) - usage(0); - - if ((strcmp(margv[1], "--version") == 0)) { - version_etc(stdout, "test", "GNU coreutils", Version, - ("Kevin Braunsdorf"), ("Matthew Bradburn"), - (char *)((void *)0)); - return 0; - } - } - if (margc < 2 || !(strcmp(margv[margc - 1], "]") == 0)) - test_syntax_error(dcgettext(((void *)0), "missing %s", 5), quote("]")); - - --margc; - } - - argc = margc; - pos = 1; - - if (pos >= argc) - return TEST_FALSE; - - value = posixtest(argc - 1); - - if (pos != argc) - test_syntax_error(dcgettext(((void *)0), "extra argument %s", 5), - quote(argv[pos])); - - return value ? TEST_TRUE : TEST_FALSE; -} diff --git a/tests/source/coreutils/timeout.c b/tests/source/coreutils/timeout.c deleted file mode 100644 index db68aa0..0000000 --- a/tests/source/coreutils/timeout.c +++ /dev/null @@ -1,7492 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct prctl_mm_map { - __u64 start_code; - __u64 end_code; - __u64 start_data; - __u64 end_data; - __u64 start_brk; - __u64 brk; - __u64 start_stack; - __u64 arg_start; - __u64 arg_end; - __u64 env_start; - __u64 env_end; - __u64 *auxv; - __u32 auxv_size; - __u32 exe_fd; -}; - -extern int prctl(int __option, ...) __attribute__((__nothrow__, __leaf__)); - -typedef enum { P_ALL, P_PID, P_PGID } idtype_t; -extern __pid_t wait(int *__stat_loc); -extern __pid_t waitpid(__pid_t __pid, int *__stat_loc, int __options); -extern int waitid(idtype_t __idtype, __id_t __id, siginfo_t *__infop, - int __options); - -struct rusage; - -extern __pid_t wait3(int *__stat_loc, int __options, struct rusage *__usage) - __attribute__((__nothrow__)); -extern __pid_t wait4(__pid_t __pid, int *__stat_loc, int __options, - struct rusage *__usage) __attribute__((__nothrow__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -double cl_strtod(char const *, char **__restrict__) - __attribute__((__nonnull__(1))); -long double cl_strtold(char const *, char **__restrict__) - __attribute__((__nonnull__(1))); - -_Bool xstrtod(const char *str, const char **ptr, double *result, - double (*convert)(char const *, char **)); - -_Bool xstrtold(const char *str, const char **ptr, long double *result, - long double (*convert)(char const *, char **)); - -int sig2str(int, char *); -int str2sig(char const *, int *); -extern int operand2sig(char const *operand, char *signame) - __attribute__((__nonnull__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -enum __rlimit_resource { - - RLIMIT_CPU = 0, - - RLIMIT_FSIZE = 1, - - RLIMIT_DATA = 2, - - RLIMIT_STACK = 3, - - RLIMIT_CORE = 4, - - __RLIMIT_RSS = 5, - - RLIMIT_NOFILE = 7, - __RLIMIT_OFILE = RLIMIT_NOFILE, - - RLIMIT_AS = 9, - - __RLIMIT_NPROC = 6, - - __RLIMIT_MEMLOCK = 8, - - __RLIMIT_LOCKS = 10, - - __RLIMIT_SIGPENDING = 11, - - __RLIMIT_MSGQUEUE = 12, - - __RLIMIT_NICE = 13, - - __RLIMIT_RTPRIO = 14, - - __RLIMIT_RTTIME = 15, - - __RLIMIT_NLIMITS = 16, - __RLIM_NLIMITS = __RLIMIT_NLIMITS - -}; -typedef __rlim_t rlim_t; - -typedef __rlim64_t rlim64_t; - -struct rlimit { - - rlim_t rlim_cur; - - rlim_t rlim_max; -}; - -struct rlimit64 { - - rlim64_t rlim_cur; - - rlim64_t rlim_max; -}; - -enum __rusage_who { - - RUSAGE_SELF = 0, - - RUSAGE_CHILDREN = -1 - - , - - RUSAGE_THREAD = 1 - -}; - -struct rusage { - - struct timeval ru_utime; - - struct timeval ru_stime; - - __extension__ union { - long int ru_maxrss; - __syscall_slong_t __ru_maxrss_word; - }; - - __extension__ union { - long int ru_ixrss; - __syscall_slong_t __ru_ixrss_word; - }; - - __extension__ union { - long int ru_idrss; - __syscall_slong_t __ru_idrss_word; - }; - - __extension__ union { - long int ru_isrss; - __syscall_slong_t __ru_isrss_word; - }; - - __extension__ union { - long int ru_minflt; - __syscall_slong_t __ru_minflt_word; - }; - - __extension__ union { - long int ru_majflt; - __syscall_slong_t __ru_majflt_word; - }; - - __extension__ union { - long int ru_nswap; - __syscall_slong_t __ru_nswap_word; - }; - - __extension__ union { - long int ru_inblock; - __syscall_slong_t __ru_inblock_word; - }; - - __extension__ union { - long int ru_oublock; - __syscall_slong_t __ru_oublock_word; - }; - - __extension__ union { - long int ru_msgsnd; - __syscall_slong_t __ru_msgsnd_word; - }; - - __extension__ union { - long int ru_msgrcv; - __syscall_slong_t __ru_msgrcv_word; - }; - - __extension__ union { - long int ru_nsignals; - __syscall_slong_t __ru_nsignals_word; - }; - - __extension__ union { - long int ru_nvcsw; - __syscall_slong_t __ru_nvcsw_word; - }; - - __extension__ union { - long int ru_nivcsw; - __syscall_slong_t __ru_nivcsw_word; - }; -}; - -enum __priority_which { - PRIO_PROCESS = 0, - - PRIO_PGRP = 1, - - PRIO_USER = 2 - -}; - -extern int prlimit(__pid_t __pid, enum __rlimit_resource __resource, - const struct rlimit *__new_limit, struct rlimit *__old_limit) - __attribute__((__nothrow__, __leaf__)); -extern int prlimit64(__pid_t __pid, enum __rlimit_resource __resource, - const struct rlimit64 *__new_limit, - struct rlimit64 *__old_limit) - __attribute__((__nothrow__, __leaf__)); - -typedef enum __rlimit_resource __rlimit_resource_t; -typedef enum __rusage_who __rusage_who_t; -typedef enum __priority_which __priority_which_t; -extern int getrlimit(__rlimit_resource_t __resource, struct rlimit *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int getrlimit64(__rlimit_resource_t __resource, - struct rlimit64 *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int setrlimit(__rlimit_resource_t __resource, - const struct rlimit *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int setrlimit64(__rlimit_resource_t __resource, - const struct rlimit64 *__rlimits) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int getrusage(__rusage_who_t __who, struct rusage *__usage) - __attribute__((__nothrow__, __leaf__)); -extern int getpriority(__priority_which_t __which, id_t __who) - __attribute__((__nothrow__, __leaf__)); - -extern int setpriority(__priority_which_t __which, id_t __who, int __prio) - __attribute__((__nothrow__, __leaf__)); - -static int timed_out; -static int term_signal = 15; -static pid_t monitored_pid; -static double kill_after; -static _Bool foreground; -static _Bool preserve_status; -static _Bool verbose; -static char const *command; - -enum { FOREGROUND_OPTION = 0x7f + 1, PRESERVE_STATUS_OPTION }; - -static struct option const long_options[] = { - {"kill-after", 1, ((void *)0), 'k'}, - {"signal", 1, ((void *)0), 's'}, - {"verbose", 0, ((void *)0), 'v'}, - {"foreground", 0, ((void *)0), FOREGROUND_OPTION}, - {"preserve-status", 0, ((void *)0), PRESERVE_STATUS_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static void settimeout(double duration, _Bool warn) { - - struct timespec ts = dtotimespec(duration); - struct itimerspec its = {{0, 0}, ts}; - timer_t timerid; - if (timer_create(0, ((void *)0), &timerid) == 0) { - if (timer_settime(timerid, 0, &its, ((void *)0)) == 0) - return; - else { - if (warn) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: timer_settime", 5)); - timer_delete(timerid); - } - } else if (warn && (*__errno_location()) != 38) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: timer_create", 5)); - unsigned int timeint; - if ((0x7fffffff * 2U + 1U) <= duration) - timeint = (0x7fffffff * 2U + 1U); - else { - unsigned int duration_floor = duration; - timeint = duration_floor + (duration_floor < duration); - } - alarm(timeint); -} - -static int send_sig(pid_t where, int sig) { - - if (where == 0) - signal(sig, ((__sighandler_t)1)); - return kill(where, sig); -} - -static void chld(int sig) {} - -static void cleanup(int sig) { - if (sig == 14) { - timed_out = 1; - sig = term_signal; - } - if (monitored_pid) { - if (kill_after) { - int saved_errno = (*__errno_location()); - - term_signal = 9; - settimeout(kill_after, 0); - kill_after = 0; - - (*__errno_location()) = saved_errno; - } - - if (verbose) { - char signame[( - (((sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)) > (((((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) + - 1))) - ? ((sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)) - : (((((((sizeof(int) * 8) - - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) + - 1)))]; - if (sig2str(sig, signame) != 0) - snprintf(signame, sizeof signame, "%d", sig); - error(0, 0, dcgettext(((void *)0), "sending signal %s to command %s", 5), - signame, quote(command)); - } - send_sig(monitored_pid, sig); - - if (!foreground) { - send_sig(0, sig); - if (sig != 9 && sig != 18) { - send_sig(monitored_pid, 18); - send_sig(0, 18); - } - } - } else - _exit(128 + sig); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION] DURATION COMMAND [ARG]...\n or: %s " - "[OPTION]\n", - 5) - - , - program_name, program_name); - - fputs_unlocked( - dcgettext( - ((void *)0), - "Start COMMAND, and kill it if still running after DURATION.\n", 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext( - ((void *)0), - " --preserve-status\n exit with the same " - "status as COMMAND, even when the\n command " - "times out\n --foreground\n when not running " - "timeout directly from a shell prompt,\n allow " - "COMMAND to read from the TTY and get TTY signals;\n " - " in this mode, children of COMMAND will not be timed out\n " - "-k, --kill-after=DURATION\n also send a KILL " - "signal if COMMAND is still running\n this long " - "after the initial signal was sent\n -s, --signal=SIGNAL\n " - " specify the signal to be sent on timeout;\n " - " SIGNAL may be a name like 'HUP' or a number;\n " - " see 'kill -l' for a list of signals\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " -v, --verbose diagnose to stderr any signal " - "sent upon timeout\n", - 5), - stdout); - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - - fputs_unlocked( - dcgettext(((void *)0), - "\nDURATION is a floating point number with an optional " - "suffix:\n's' for seconds (the default), 'm' for minutes, " - "'h' for hours or 'd' for days.\nA duration of 0 disables " - "the associated timeout.\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext( - ((void *)0), - "\nUpon timeout, send the TERM signal to COMMAND, if no other " - "SIGNAL specified.\nThe TERM signal kills any process that does " - "not block or catch that signal.\nIt may be necessary to use the " - "KILL signal, since this signal can't be caught.\n", - 5), - stdout) - - ; - - fputs_unlocked( - dcgettext(((void *)0), - "\nEXIT status:\n 124 if COMMAND times out, and " - "--preserve-status is not specified\n 125 if the timeout " - "command itself fails\n 126 if COMMAND is found but cannot " - "be invoked\n 127 if COMMAND cannot be found\n 137 if " - "COMMAND (or timeout itself) is sent the KILL (9) signal " - "(128+9)\n - the exit status of COMMAND otherwise\n", - 5), - stdout) - - ; - - emit_ancillary_info("timeout"); - } - exit(status); -} - -static _Bool - -apply_time_suffix(double *x, char suffix_char) { - int multiplier; - - switch (suffix_char) { - case 0: - case 's': - multiplier = 1; - break; - case 'm': - multiplier = 60; - break; - case 'h': - multiplier = 60 * 60; - break; - case 'd': - multiplier = 60 * 60 * 24; - break; - default: - return 0; - } - - *x *= multiplier; - - return 1; -} - -static double parse_duration(char const *str) { - double duration; - char const *ep; - - if (!(xstrtod(str, &ep, &duration, cl_strtod) || (*__errno_location()) == 34) - - || !(0 <= duration) - - || (*ep && *(ep + 1)) - - || !apply_time_suffix(&duration, *ep)) { - error(0, 0, dcgettext(((void *)0), "invalid time interval %s", 5), - quote(str)); - usage(EXIT_CANCELED); - } - - return duration; -} - -static void unblock_signal(int sig) { - sigset_t unblock_set; - sigemptyset(&unblock_set); - sigaddset(&unblock_set, sig); - if (sigprocmask(1, &unblock_set, ((void *)0)) != 0) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: sigprocmask", 5)); -} - -static void install_sigchld(void) { - struct sigaction sa; - sigemptyset(&sa.sa_mask); - sa.__sigaction_handler.sa_handler = chld; - sa.sa_flags = 0x10000000; - - sigaction(17, &sa, ((void *)0)); - - unblock_signal(17); -} - -static void install_cleanup(int sigterm) { - struct sigaction sa; - sigemptyset(&sa.sa_mask); - sa.__sigaction_handler.sa_handler = cleanup; - sa.sa_flags = 0x10000000; - - sigaction(14, &sa, ((void *)0)); - sigaction(2, &sa, ((void *)0)); - sigaction(3, &sa, ((void *)0)); - sigaction(1, &sa, ((void *)0)); - sigaction(15, &sa, ((void *)0)); - sigaction(sigterm, &sa, ((void *)0)); -} - -static void block_cleanup_and_chld(int sigterm, sigset_t *old_set) { - sigset_t block_set; - sigemptyset(&block_set); - - sigaddset(&block_set, 14); - sigaddset(&block_set, 2); - sigaddset(&block_set, 3); - sigaddset(&block_set, 1); - sigaddset(&block_set, 15); - sigaddset(&block_set, sigterm); - - sigaddset(&block_set, 17); - - if (sigprocmask(0, &block_set, old_set) != 0) - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: sigprocmask", 5)); -} - -static _Bool - -disable_core_dumps(void) { - - if (prctl(4, 0) == 0) - return 1; - error(0, (*__errno_location()), - dcgettext(((void *)0), "warning: disabling core dumps failed", 5)); - return 0; -} - -int main(int argc, char **argv) { - double timeout; - char signame[( - sizeof "SIGRTMAX" + - (((((sizeof(int) * 8) - (!((__typeof__(int))0 < (__typeof__(int))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(int))0 < (__typeof__(int))-1))) - - 1)]; - int c; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(EXIT_CANCELED); - atexit(close_stdout); - - while ((c = getopt_long(argc, argv, "+k:s:v", long_options, ((void *)0))) != - -1) { - switch (c) { - case 'k': - kill_after = parse_duration(optarg); - break; - - case 's': - term_signal = operand2sig(optarg, signame); - if (term_signal == -1) - usage(EXIT_CANCELED); - break; - - case 'v': - verbose = 1; - break; - - case FOREGROUND_OPTION: - foreground = 1; - break; - - case PRESERVE_STATUS_OPTION: - preserve_status = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "timeout", "GNU coreutils", Version, - ("Padraig Brady"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(EXIT_CANCELED); - break; - } - } - - if (argc - optind < 2) - usage(EXIT_CANCELED); - - timeout = parse_duration(argv[optind++]); - - argv += optind; - command = argv[0]; - - if (!foreground) - setpgid(0, 0); - - install_cleanup(term_signal); - signal(21, ((__sighandler_t)1)); - signal(22, ((__sighandler_t)1)); - install_sigchld(); - - monitored_pid = fork(); - if (monitored_pid == -1) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "fork system call failed", 5)); - return EXIT_CANCELED; - } else if (monitored_pid == 0) { - - signal(21, ((__sighandler_t)0)); - signal(22, ((__sighandler_t)0)); - - execvp(argv[0], argv); - - int exit_status = - (*__errno_location()) == 2 ? EXIT_ENOENT : EXIT_CANNOT_INVOKE; - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to run command %s", 5), - quote(command)); - return exit_status; - } else { - pid_t wait_result; - int status; - - unblock_signal(14); - - settimeout(timeout, 1); - - sigset_t cleanup_set; - block_cleanup_and_chld(term_signal, &cleanup_set); - - while ((wait_result = waitpid(monitored_pid, &status, 1)) == 0) - sigsuspend(&cleanup_set); - - if (wait_result < 0) { - - error(0, (*__errno_location()), - dcgettext(((void *)0), "error waiting for command", 5)); - status = EXIT_CANCELED; - } else { - if ((((status)&0x7f) == 0)) - status = (((status)&0xff00) >> 8); - else if ((((signed char)(((status)&0x7f) + 1) >> 1) > 0)) { - int sig = ((status)&0x7f); - if (((status)&0x80)) - error(0, 0, - dcgettext(((void *)0), "the monitored command dumped core", 5)); - if (!timed_out && disable_core_dumps()) { - - signal(sig, ((__sighandler_t)0)); - unblock_signal(sig); - raise(sig); - } - - if (timed_out && sig == 9) - preserve_status = 1; - status = sig + 128; - } else { - - error(0, 0, - dcgettext(((void *)0), "unknown status from command (%d)", 5), - status); - status = 1; - } - } - - if (timed_out && !preserve_status) - status = EXIT_TIMEDOUT; - return status; - } -} diff --git a/tests/source/coreutils/touch.c b/tests/source/coreutils/touch.c deleted file mode 100644 index c01bd82..0000000 --- a/tests/source/coreutils/touch.c +++ /dev/null @@ -1,7312 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -int fd_reopen(int, char const *, int, mode_t) __attribute__((__nonnull__)); - -_Bool parse_datetime(struct timespec *__restrict__, char const *, - struct timespec const *); - -_Bool parse_datetime2(struct timespec *__restrict__, char const *, - struct timespec const *, unsigned int flags, timezone_t, - char const *); - -_Bool posixtime(time_t *p, const char *s, unsigned int syntax_bits); -int posix2_version(void); - -inline long int __attribute__((__pure__)) -get_stat_atime_ns(struct stat const *st) { - - return ((st)->st_atim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_ctime_ns(struct stat const *st) { - - return ((st)->st_ctim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_mtime_ns(struct stat const *st) { - - return ((st)->st_mtim).tv_nsec; -} - -inline long int __attribute__((__pure__)) -get_stat_birthtime_ns(struct stat const *st) { - - return 0; -} - -inline struct timespec __attribute__((__pure__)) -get_stat_atime(struct stat const *st) { - - return ((st)->st_atim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_ctime(struct stat const *st) { - - return ((st)->st_ctim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_mtime(struct stat const *st) { - - return ((st)->st_mtim); -} - -inline struct timespec __attribute__((__pure__)) -get_stat_birthtime(struct stat const *st) { - struct timespec t; - t.tv_sec = -1; - t.tv_nsec = -1; - return t; -} - -inline int stat_time_normalize(int result, struct stat *st) { return result; } - -int fdutimens(int, char const *, struct timespec const[2]); -int utimens(char const *, struct timespec const[2]); -int lutimens(char const *, struct timespec const[2]); - -int fdutimensat(int fd, int dir, char const *name, struct timespec const[2], - int atflag); - -inline int lutimensat(int dir, char const *file, - struct timespec const times[2]) { - return utimensat(dir, file, times, 0x100); -} - -static int change_times; - -static _Bool no_create; - -static _Bool use_ref; - -static _Bool no_dereference; - -static _Bool amtime_now; - -static struct timespec newtime[2]; - -static char *ref_file; - -enum { TIME_OPTION = 0x7f + 1 }; - -static struct option const longopts[] = { - {"time", 1, ((void *)0), TIME_OPTION}, - {"no-create", 0, ((void *)0), 'c'}, - {"date", 1, ((void *)0), 'd'}, - {"reference", 1, ((void *)0), 'r'}, - {"no-dereference", 0, ((void *)0), 'h'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static char const *const time_args[] = {"atime", "access", "use", "mtime", - "modify", ((void *)0) - -}; - -static int const time_masks[] = {1, 1, 1, 2, 2}; - -static void get_reldate(struct timespec *result, char const *flex_date, - struct timespec const *now) { - if (!parse_datetime(result, flex_date, now)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid date " - "format %s\", 5), quote (flex_date)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "invalid date format %s", 5), - quote(flex_date)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "invalid date format %s", 5), - quote(flex_date)), - ((0) ? (void)0 : __builtin_unreachable())))); -} - -static _Bool - -touch(char const *file) { - int fd = -1; - int open_errno = 0; - struct timespec const *t = newtime; - - if ((strcmp(file, "-") == 0)) - fd = 1; - else if (!(no_create || no_dereference)) { - - fd = fd_reopen(0, file, - - 01 | 0100 | 04000 | 0400, - (0400 | 0200 | (0400 >> 3) | (0200 >> 3) | - ((0400 >> 3) >> 3) | ((0200 >> 3) >> 3))); - if (fd < 0) - open_errno = (*__errno_location()); - } - - if (change_times != (1 | 2)) { - - if (change_times == 2) - newtime[0].tv_nsec = ((1l << 30) - 2l); - else { - - ((void)sizeof((change_times == 1) ? 1 : 0), __extension__({ - if (change_times == 1) - ; - else - __assert_fail("change_times == CH_ATIME", "src/touch.c", 147, - __extension__ __PRETTY_FUNCTION__); - })); - newtime[1].tv_nsec = ((1l << 30) - 2l); - } - } - - if (amtime_now) { - - t = ((void *)0); - } - - char const *file_opt = fd == 1 ? ((void *)0) : file; - int atflag = no_dereference ? 0x100 : 0; - int utime_errno = - (fdutimensat(fd, -100, file_opt, t, atflag) == 0 ? 0 - : (*__errno_location())); - - if (fd == 0) { - if (close(0) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to close %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - return 0; - } - } else if (fd == 1) { - - if (utime_errno == 9 && no_create) - return 1; - } - - if (utime_errno != 0) { - - struct stat st; - if (open_errno && !(open_errno == 21 - - || (open_errno == 22 - - && stat(file, &st) == 0 && - ((((st.st_mode)) & 0170000) == (0040000))))) { - - error(0, open_errno, dcgettext(((void *)0), "cannot touch %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - } else { - if (no_create && utime_errno == 2) - return 1; - error(0, utime_errno, dcgettext(((void *)0), "setting times of %s", 5), - quotearg_style(shell_escape_always_quoting_style, file)); - } - return 0; - } - - return 1; -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... FILE...\n", 5), - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Update the access and modification times of each FILE to the " - "current time.\n\nA FILE argument that does not exist is created " - "empty, unless -c or -h\nis supplied.\n\nA FILE argument string of " - "- is handled specially and causes touch to\nchange the times of " - "the file associated with standard output.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -a change only the access time\n -c, " - "--no-create do not create any files\n -d, " - "--date=STRING parse STRING and use it instead of " - "current time\n -f (ignored)\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -h, --no-dereference affect each symbolic link instead " - "of any referenced\n file (useful " - "only on systems that can change the\n " - " timestamps of a symlink)\n -m change " - "only the modification time\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -r, --reference=FILE use this file's times instead of current " - "time\n -t STAMP use [[CC]YY]MMDDhhmm[.ss] instead " - "of current time\n --time=WORD change the specified " - "time:\n WORD is access, atime, or use: " - "equivalent to -a\n WORD is modify or " - "mtime: equivalent to -m\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - "\nNote that the -d and -t options accept " - "different time-date formats.\n", - 5), - stdout) - - ; - emit_ancillary_info("touch"); - } - exit(status); -} - -int main(int argc, char **argv) { - int c; - - _Bool date_set = 0; - - _Bool ok = 1; - char const *flex_date = ((void *)0); - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - change_times = 0; - no_create = use_ref = 0; - - while ((c = getopt_long(argc, argv, "acd:fhmr:t:", longopts, ((void *)0))) != - -1) { - switch (c) { - case 'a': - change_times |= 1; - break; - - case 'c': - no_create = 1; - break; - - case 'd': - flex_date = optarg; - break; - - case 'f': - break; - - case 'h': - no_dereference = 1; - break; - - case 'm': - change_times |= 2; - break; - - case 'r': - use_ref = 1; - ref_file = optarg; - break; - - case 't': - if (!posixtime(&newtime[0].tv_sec, optarg, 0 | 2 | 4)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"invalid date " - "format %s\", 5), quote (optarg)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "invalid date format %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "invalid date format %s", 5), - quote(optarg)), - ((0) ? (void)0 : __builtin_unreachable())))); - newtime[0].tv_nsec = 0; - newtime[1] = newtime[0]; - date_set = 1; - break; - - case TIME_OPTION: - change_times |= ((time_masks)[__xargmatch_internal( - "--time", optarg, time_args, (void const *)(time_masks), - sizeof *(time_masks), argmatch_die, 1)]); - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "touch", "GNU coreutils", Version, ("Paul Rubin"), - ("Arnold Robbins"), ("Jim Kingdon"), ("David MacKenzie"), - ("Randy Smith"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (change_times == 0) - change_times = 1 | 2; - - if (date_set && (use_ref || flex_date)) { - error(0, 0, - dcgettext(((void *)0), - "cannot specify times from more than one source", 5)); - usage(1); - } - - if (use_ref) { - struct stat ref_stats; - - if (no_dereference ? lstat(ref_file, &ref_stats) - : stat(ref_file, &ref_stats)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"failed to get attributes of %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, ref_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, ref_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "failed to get attributes of %s", 5), - quotearg_style(shell_escape_always_quoting_style, ref_file)), - ((0) ? (void)0 : __builtin_unreachable())))); - newtime[0] = get_stat_atime(&ref_stats); - newtime[1] = get_stat_mtime(&ref_stats); - date_set = 1; - if (flex_date) { - if (change_times & 1) - get_reldate(&newtime[0], flex_date, &newtime[0]); - if (change_times & 2) - get_reldate(&newtime[1], flex_date, &newtime[1]); - } - } else { - if (flex_date) { - struct timespec now; - gettime(&now); - get_reldate(&newtime[0], flex_date, &now); - newtime[1] = newtime[0]; - date_set = 1; - - if (change_times == (1 | 2) && newtime[0].tv_sec == now.tv_sec && - newtime[0].tv_nsec == now.tv_nsec) { - - struct timespec notnow, notnow1; - notnow.tv_sec = now.tv_sec ^ 1; - notnow.tv_nsec = now.tv_nsec; - get_reldate(¬now1, flex_date, ¬now); - if (notnow1.tv_sec == notnow.tv_sec && - notnow1.tv_nsec == notnow.tv_nsec) - date_set = 0; - } - } - } - - if (!date_set && 2 <= argc - optind && posix2_version() < 200112 && - posixtime(&newtime[0].tv_sec, argv[optind], 1 | 8)) { - newtime[0].tv_nsec = 0; - newtime[1] = newtime[0]; - date_set = 1; - - if (!getenv("POSIXLY_CORRECT")) { - struct tm const *tm = localtime(&newtime[0].tv_sec); - - if (tm) - error(0, 0, - - dcgettext(((void *)0), - "warning: 'touch %s' is obsolete; use " - "'touch -t %04ld%02d%02d%02d%02d.%02d'", - 5) - - , - argv[optind], tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, - tm->tm_hour, tm->tm_min, tm->tm_sec); - } - - optind++; - } - - if (!date_set) { - if (change_times == (1 | 2)) - amtime_now = 1; - else - newtime[1].tv_nsec = newtime[0].tv_nsec = ((1l << 30) - 1l); - } - - if (optind == argc) { - error(0, 0, dcgettext(((void *)0), "missing file operand", 5)); - usage(1); - } - - for (; optind < argc; ++optind) - ok &= touch(argv[optind]); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/tr.c b/tests/source/coreutils/tr.c deleted file mode 100644 index 294afff..0000000 --- a/tests/source/coreutils/tr.c +++ /dev/null @@ -1,8638 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -extern size_t safe_read(int fd, void *buf, size_t count); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -enum { N_CHARS = (0x7f * 2 + 1) + 1 }; - -typedef uintmax_t count; -enum Char_class { - CC_ALNUM = 0, - CC_ALPHA = 1, - CC_BLANK = 2, - CC_CNTRL = 3, - CC_DIGIT = 4, - CC_GRAPH = 5, - CC_LOWER = 6, - CC_PRINT = 7, - CC_PUNCT = 8, - CC_SPACE = 9, - CC_UPPER = 10, - CC_XDIGIT = 11, - CC_NO_CLASS = 9999 -}; - -enum Upper_Lower_class { UL_LOWER, UL_UPPER, UL_NONE }; - -enum Range_element_type { - RE_NORMAL_CHAR, - RE_RANGE, - RE_CHAR_CLASS, - RE_EQUIV_CLASS, - RE_REPEATED_CHAR -}; - -struct List_element { - enum Range_element_type type; - struct List_element *next; - union { - unsigned char normal_char; - struct { - unsigned char first_char; - unsigned char last_char; - } range; - enum Char_class char_class; - unsigned char equiv_code; - struct { - unsigned char the_repeated_char; - count repeat_count; - } repeated_char; - } u; -}; -struct Spec_list { - - struct List_element *head; - - struct List_element *tail; - - count state; - - count length; - - size_t n_indefinite_repeats; - - struct List_element *indefinite_repeat_element; - - _Bool has_equiv_class; - - _Bool has_char_class; - - _Bool has_restricted_char_class; -}; - -struct E_string { - char *s; - - _Bool *escaped; - size_t len; -}; - -static inline _Bool - -es_match(struct E_string const *es, size_t i, char c) { - return es->s[i] == c && !es->escaped[i]; -} - -static _Bool squeeze_repeats = 0; - -static _Bool delete = 0; - -static _Bool complement = 0; -static _Bool truncate_set1 = 0; - -static _Bool translating; - -static char io_buf[8192]; - -static char const *const char_class_name[] = { - "alnum", "alpha", "blank", "cntrl", "digit", "graph", - "lower", "print", "punct", "space", "upper", "xdigit"}; - -static _Bool in_squeeze_set[N_CHARS]; - -static _Bool in_delete_set[N_CHARS]; - -static char xlate[N_CHARS]; - -static struct option const long_options[] = { - {"complement", 0, ((void *)0), 'c'}, - {"delete", 0, ((void *)0), 'd'}, - {"squeeze-repeats", 0, ((void *)0), 's'}, - {"truncate-set1", 0, ((void *)0), 't'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext(((void *)0), "Usage: %s [OPTION]... STRING1 [STRING2]\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Translate, squeeze, and/or delete characters from standard " - "input,\nwriting to standard output. STRING1 and STRING2 specify " - "arrays of\ncharacters ARRAY1 and ARRAY2 that control the " - "action.\n\n -c, -C, --complement use the complement of " - "ARRAY1\n -d, --delete delete characters in ARRAY1, do " - "not translate\n -s, --squeeze-repeats replace each sequence of " - "a repeated character\n that is listed " - "in the last specified ARRAY,\n with a " - "single occurrence of that character\n -t, --truncate-set1 " - "first truncate ARRAY1 to length of ARRAY2\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - "\nARRAYs are specified as strings of characters. Most " - "represent themselves.\nInterpreted sequences are:\n\n " - "\\NNN character with octal value NNN (1 to 3 " - "octal digits)\n \\\\ backslash\n \\a " - " audible BEL\n \\b backspace\n \\f " - " form feed\n \\n new line\n \\r " - " return\n \\t horizontal tab\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " \\v vertical tab\n CHAR1-CHAR2 all characters " - "from CHAR1 to CHAR2 in ascending order\n [CHAR*] in " - "ARRAY2, copies of CHAR until length of ARRAY1\n [CHAR*REPEAT] " - "REPEAT copies of CHAR, REPEAT octal if starting with 0\n " - "[:alnum:] all letters and digits\n [:alpha:] all " - "letters\n [:blank:] all horizontal whitespace\n [:cntrl:] " - " all control characters\n [:digit:] all digits\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - " [:graph:] all printable characters, not including space\n " - " [:lower:] all lower case letters\n [:print:] all " - "printable characters, including space\n [:punct:] all " - "punctuation characters\n [:space:] all horizontal or " - "vertical whitespace\n [:upper:] all upper case letters\n " - "[:xdigit:] all hexadecimal digits\n [=CHAR=] all " - "characters which are equivalent to CHAR\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nTranslation occurs if -d is not given and both STRING1 and " - "STRING2 appear.\n-t may be used only when translating. ARRAY2 is " - "extended to length of\nARRAY1 by repeating its last character as " - "necessary. Excess characters\nof ARRAY2 are ignored. Character " - "classes expand in unspecified order;\nwhile translating, " - "[:lower:] and [:upper:] may be used in pairs to\nspecify case " - "conversion. Squeezing occurs after translation or deletion.\n", - 5), - stdout) - - ; - emit_ancillary_info("tr"); - } - exit(status); -} - -static inline _Bool - -is_equiv_class_member(unsigned char equiv_class, unsigned char c) { - return (equiv_class == c); -} - -__attribute__((__pure__)) static _Bool - -is_char_class_member(enum Char_class char_class, unsigned char c) { - int result; - - switch (char_class) { - case CC_ALNUM: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISalnum); - break; - case CC_ALPHA: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISalpha); - break; - case CC_BLANK: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISblank); - break; - case CC_CNTRL: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_IScntrl); - break; - case CC_DIGIT: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISdigit); - break; - case CC_GRAPH: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISgraph); - break; - case CC_LOWER: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISlower); - break; - case CC_PRINT: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISprint); - break; - case CC_PUNCT: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISpunct); - break; - case CC_SPACE: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISspace); - break; - case CC_UPPER: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISupper); - break; - case CC_XDIGIT: - result = ((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISxdigit); - break; - default: - abort(); - } - - return !!result; -} - -static void es_free(struct E_string *es) { - free(es->s); - free(es->escaped); -} -static _Bool - -unquote(char const *s, struct E_string *es) { - size_t len = strlen(s); - - es->s = xmalloc(len); - es->escaped = xcalloc(len, sizeof es->escaped[0]); - - unsigned int j = 0; - for (unsigned int i = 0; s[i]; i++) { - unsigned char c; - int oct_digit; - - switch (s[i]) { - case '\\': - es->escaped[j] = 1; - switch (s[i + 1]) { - case '\\': - c = '\\'; - break; - case 'a': - c = '\a'; - break; - case 'b': - c = '\b'; - break; - case 'f': - c = '\f'; - break; - case 'n': - c = '\n'; - break; - case 'r': - c = '\r'; - break; - case 't': - c = '\t'; - break; - case 'v': - c = '\v'; - break; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - c = s[i + 1] - '0'; - oct_digit = s[i + 2] - '0'; - if (0 <= oct_digit && oct_digit <= 7) { - c = 8 * c + oct_digit; - ++i; - oct_digit = s[i + 2] - '0'; - if (0 <= oct_digit && oct_digit <= 7) { - if (8 * c + oct_digit < N_CHARS) { - c = 8 * c + oct_digit; - ++i; - } else { - error( - 0, 0, - dcgettext( - ((void *)0), - "warning: the ambiguous octal escape \\%c%c%c is " - "being\n\tinterpreted as the 2-byte sequence \\0%c%c, %c", - 5) - - , - s[i], s[i + 1], s[i + 2], s[i], s[i + 1], s[i + 2]); - } - } - } - break; - case '\0': - error(0, 0, - dcgettext(((void *)0), - "warning: an unescaped backslash " - "at end of string is not portable", - 5) - - ); - - es->escaped[j] = 0; - i--; - c = '\\'; - break; - default: - c = s[i + 1]; - break; - } - ++i; - es->s[j++] = c; - break; - default: - es->s[j++] = s[i]; - break; - } - } - es->len = j; - return 1; -} - -__attribute__((__pure__)) static enum Char_class -look_up_char_class(char const *class_str, size_t len) { - enum Char_class i; - - for (i = 0; i < (sizeof(char_class_name) / sizeof *(char_class_name)); i++) - if ((strncmp(class_str, char_class_name[i], len) == 0) && - strlen(char_class_name[i]) == len) - return i; - return CC_NO_CLASS; -} - -static char *make_printable_char(unsigned char c) { - char *buf = xmalloc(5); - - if (((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISprint)) { - buf[0] = c; - buf[1] = '\0'; - } else { - sprintf(buf, "\\%03o", c); - } - return buf; -} -static char *make_printable_str(char const *s, size_t len) { - - char *printable_buf = xnmalloc(len + 1, 4); - char *p = printable_buf; - - for (size_t i = 0; i < len; i++) { - char buf[5]; - char const *tmp = ((void *)0); - unsigned char c = s[i]; - - switch (c) { - case '\\': - tmp = "\\"; - break; - case '\a': - tmp = "\\a"; - break; - case '\b': - tmp = "\\b"; - break; - case '\f': - tmp = "\\f"; - break; - case '\n': - tmp = "\\n"; - break; - case '\r': - tmp = "\\r"; - break; - case '\t': - tmp = "\\t"; - break; - case '\v': - tmp = "\\v"; - break; - default: - if (((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISprint)) { - buf[0] = c; - buf[1] = '\0'; - } else - sprintf(buf, "\\%03o", c); - tmp = buf; - break; - } - p = stpcpy(p, tmp); - } - return printable_buf; -} - -static void append_normal_char(struct Spec_list *list, unsigned char c) { - struct List_element *new = xmalloc(sizeof *new); - new->next = ((void *)0); - new->type = RE_NORMAL_CHAR; - new->u.normal_char = c; - - ((void)sizeof((list->tail) ? 1 : 0), __extension__({ - if (list->tail) - ; - else - __assert_fail("list->tail", "src/tr.c", 649, - __extension__ __PRETTY_FUNCTION__); - })); - list->tail->next = new; - list->tail = new; -} - -static _Bool - -append_range(struct Spec_list *list, unsigned char first, unsigned char last) { - if (last < first) { - char *tmp1 = make_printable_char(first); - char *tmp2 = make_printable_char(last); - - error(0, 0, - - dcgettext(((void *)0), - "range-endpoints of '%s-%s' are in reverse collating " - "sequence order", - 5), - tmp1, tmp2); - free(tmp1); - free(tmp2); - return 0; - } - struct List_element *new = xmalloc(sizeof *new); - new->next = ((void *)0); - new->type = RE_RANGE; - new->u.range.first_char = first; - new->u.range.last_char = last; - - ((void)sizeof((list->tail) ? 1 : 0), __extension__({ - if (list->tail) - ; - else - __assert_fail("list->tail", "src/tr.c", 679, - __extension__ __PRETTY_FUNCTION__); - })); - list->tail->next = new; - list->tail = new; - return 1; -} - -static _Bool - -append_char_class(struct Spec_list *list, char const *char_class_str, - size_t len) { - enum Char_class char_class = look_up_char_class(char_class_str, len); - if (char_class == CC_NO_CLASS) - return 0; - struct List_element *new = xmalloc(sizeof *new); - new->next = ((void *)0); - new->type = RE_CHAR_CLASS; - new->u.char_class = char_class; - - ((void)sizeof((list->tail) ? 1 : 0), __extension__({ - if (list->tail) - ; - else - __assert_fail("list->tail", "src/tr.c", 701, - __extension__ __PRETTY_FUNCTION__); - })); - list->tail->next = new; - list->tail = new; - return 1; -} - -static void append_repeated_char(struct Spec_list *list, unsigned char the_char, - count repeat_count) { - struct List_element *new = xmalloc(sizeof *new); - new->next = ((void *)0); - new->type = RE_REPEATED_CHAR; - new->u.repeated_char.the_repeated_char = the_char; - new->u.repeated_char.repeat_count = repeat_count; - - ((void)sizeof((list->tail) ? 1 : 0), __extension__({ - if (list->tail) - ; - else - __assert_fail("list->tail", "src/tr.c", 721, - __extension__ __PRETTY_FUNCTION__); - })); - list->tail->next = new; - list->tail = new; -} - -static _Bool - -append_equiv_class(struct Spec_list *list, char const *equiv_class_str, - size_t len) { - if (len != 1) - return 0; - - struct List_element *new = xmalloc(sizeof *new); - new->next = ((void *)0); - new->type = RE_EQUIV_CLASS; - new->u.equiv_code = *equiv_class_str; - - ((void)sizeof((list->tail) ? 1 : 0), __extension__({ - if (list->tail) - ; - else - __assert_fail("list->tail", "src/tr.c", 743, - __extension__ __PRETTY_FUNCTION__); - })); - list->tail->next = new; - list->tail = new; - return 1; -} - -static _Bool - -find_closing_delim(const struct E_string *es, size_t start_idx, - char pre_bracket_char, size_t *result_idx) { - for (size_t i = start_idx; i < es->len - 1; i++) - if (es->s[i] == pre_bracket_char && es->s[i + 1] == ']' && - !es->escaped[i] && !es->escaped[i + 1]) { - *result_idx = i; - return 1; - } - return 0; -} -static int find_bracketed_repeat(const struct E_string *es, size_t start_idx, - unsigned char *char_to_repeat, - count *repeat_count, - size_t *closing_bracket_idx) { - - ((void)sizeof((start_idx + 1 < es->len) ? 1 : 0), __extension__({ - if (start_idx + 1 < es->len) - ; - else - __assert_fail("start_idx + 1 < es->len", "src/tr.c", 784, - __extension__ __PRETTY_FUNCTION__); - })); - if (!es_match(es, start_idx + 1, '*')) - return -1; - - for (size_t i = start_idx + 2; i < es->len && !es->escaped[i]; i++) { - if (es->s[i] == ']') { - size_t digit_str_len = i - start_idx - 2; - - *char_to_repeat = es->s[start_idx]; - if (digit_str_len == 0) { - - *repeat_count = 0; - } else { - - char const *digit_str = &es->s[start_idx + 2]; - char *d_end; - if ((xstrtoumax(digit_str, &d_end, *digit_str == '0' ? 8 : 10, - repeat_count, ((void *)0)) != LONGINT_OK) || - ((18446744073709551615UL) - 1) < *repeat_count || - digit_str + digit_str_len != d_end) { - char *tmp = make_printable_str(digit_str, digit_str_len); - error(0, 0, - - dcgettext(((void *)0), - "invalid repeat count %s in [c*n] construct", 5), - quote(tmp)); - free(tmp); - return -2; - } - } - *closing_bracket_idx = i; - return 0; - } - } - return -1; -} - -__attribute__((__pure__)) static _Bool - -star_digits_closebracket(const struct E_string *es, size_t idx) { - if (!es_match(es, idx, '*')) - return 0; - - for (size_t i = idx + 1; i < es->len; i++) - if (!((unsigned int)(to_uchar(es->s[i])) - '0' <= 9) || es->escaped[i]) - return es_match(es, i, ']'); - return 0; -} -static _Bool - -build_spec_list(const struct E_string *es, struct Spec_list *result) { - char const *p = es->s; - - size_t i; - for (i = 0; i + 2 < es->len;) { - if (es_match(es, i, '[')) { - - _Bool matched_multi_char_construct; - size_t closing_bracket_idx; - unsigned char char_to_repeat; - count repeat_count; - int err; - - matched_multi_char_construct = 1; - if (es_match(es, i + 1, ':') || es_match(es, i + 1, '=')) { - size_t closing_delim_idx; - - if (find_closing_delim(es, i + 2, p[i + 1], &closing_delim_idx)) { - size_t opnd_str_len = closing_delim_idx - 1 - (i + 2) + 1; - char const *opnd_str = p + i + 2; - - if (opnd_str_len == 0) { - if (p[i + 1] == ':') - error(0, 0, - dcgettext(((void *)0), - "missing character class name '[::]'", 5)); - else - error(0, 0, - - dcgettext(((void *)0), - "missing equivalence class character '[==]'", 5)); - return 0; - } - - if (p[i + 1] == ':') { - - if (!append_char_class(result, opnd_str, opnd_str_len)) { - if (star_digits_closebracket(es, i + 2)) - goto try_bracketed_repeat; - else { - char *tmp = make_printable_str(opnd_str, opnd_str_len); - error(0, 0, - dcgettext(((void *)0), "invalid character class %s", 5), - quote(tmp)); - free(tmp); - return 0; - } - } - } else { - - if (!append_equiv_class(result, opnd_str, opnd_str_len)) { - if (star_digits_closebracket(es, i + 2)) - goto try_bracketed_repeat; - else { - char *tmp = make_printable_str(opnd_str, opnd_str_len); - error(0, 0, - - dcgettext(((void *)0), - "%s: equivalence class operand must be a " - "single character", - 5), - tmp); - free(tmp); - return 0; - } - } - } - - i = closing_delim_idx + 2; - continue; - } - } - - try_bracketed_repeat: - - err = find_bracketed_repeat(es, i + 1, &char_to_repeat, &repeat_count, - &closing_bracket_idx); - if (err == 0) { - append_repeated_char(result, char_to_repeat, repeat_count); - i = closing_bracket_idx + 1; - } else if (err == -1) { - matched_multi_char_construct = 0; - } else { - - return 0; - } - - if (matched_multi_char_construct) - continue; - } - - if (es_match(es, i + 1, '-')) { - if (!append_range(result, p[i], p[i + 2])) - return 0; - i += 3; - } else { - append_normal_char(result, p[i]); - ++i; - } - } - - for (; i < es->len; i++) - append_normal_char(result, p[i]); - - return 1; -} - -static void skip_construct(struct Spec_list *s) { - s->tail = s->tail->next; - s->state = (((18446744073709551615UL) - 1) + 1); -} -static int get_next(struct Spec_list *s, enum Upper_Lower_class *class) { - struct List_element *p; - int return_val; - int i; - - if (class) - *class = UL_NONE; - - if (s->state == ((18446744073709551615UL) - 1)) { - s->tail = s->head->next; - s->state = (((18446744073709551615UL) - 1) + 1); - } - - p = s->tail; - if (p == ((void *)0)) - return -1; - - switch (p->type) { - case RE_NORMAL_CHAR: - return_val = p->u.normal_char; - s->state = (((18446744073709551615UL) - 1) + 1); - s->tail = p->next; - break; - - case RE_RANGE: - if (s->state == (((18446744073709551615UL) - 1) + 1)) - s->state = p->u.range.first_char; - else - ++(s->state); - return_val = s->state; - if (s->state == p->u.range.last_char) { - s->tail = p->next; - s->state = (((18446744073709551615UL) - 1) + 1); - } - break; - - case RE_CHAR_CLASS: - if (class) { - switch (p->u.char_class) { - case CC_LOWER: - *class = UL_LOWER; - break; - case CC_UPPER: - *class = UL_UPPER; - break; - default: - break; - } - } - - if (s->state == (((18446744073709551615UL) - 1) + 1)) { - for (i = 0; i < N_CHARS; i++) - if (is_char_class_member(p->u.char_class, i)) - break; - - ((void)sizeof((i < N_CHARS) ? 1 : 0), __extension__({ - if (i < N_CHARS) - ; - else - __assert_fail("i < N_CHARS", "src/tr.c", 1079, - __extension__ __PRETTY_FUNCTION__); - })); - s->state = i; - } - - ((void)sizeof((is_char_class_member(p->u.char_class, s->state)) ? 1 : 0), - __extension__({ - if (is_char_class_member(p->u.char_class, s->state)) - ; - else - __assert_fail("is_char_class_member (p->u.char_class, s->state)", - "src/tr.c", 1082, __extension__ __PRETTY_FUNCTION__); - })); - return_val = s->state; - for (i = s->state + 1; i < N_CHARS; i++) - if (is_char_class_member(p->u.char_class, i)) - break; - if (i < N_CHARS) - s->state = i; - else { - s->tail = p->next; - s->state = (((18446744073709551615UL) - 1) + 1); - } - break; - - case RE_EQUIV_CLASS: - - return_val = p->u.equiv_code; - s->state = (((18446744073709551615UL) - 1) + 1); - s->tail = p->next; - break; - - case RE_REPEATED_CHAR: - - if (p->u.repeated_char.repeat_count == 0) { - s->tail = p->next; - s->state = (((18446744073709551615UL) - 1) + 1); - return_val = get_next(s, class); - } else { - if (s->state == (((18446744073709551615UL) - 1) + 1)) { - s->state = 0; - } - ++(s->state); - return_val = p->u.repeated_char.the_repeated_char; - if (s->state == p->u.repeated_char.repeat_count) { - s->tail = p->next; - s->state = (((18446744073709551615UL) - 1) + 1); - } - } - break; - - default: - abort(); - } - - return return_val; -} - -static int card_of_complement(struct Spec_list *s) { - int c; - int cardinality = N_CHARS; - - _Bool in_set[N_CHARS] = { - 0, - }; - - s->state = ((18446744073709551615UL) - 1); - while ((c = get_next(s, ((void *)0))) != -1) { - cardinality -= (!in_set[c]); - in_set[c] = 1; - } - return cardinality; -} -static void validate_case_classes(struct Spec_list *s1, struct Spec_list *s2) { - size_t n_upper = 0; - size_t n_lower = 0; - int c1 = 0; - int c2 = 0; - count old_s1_len = s1->length; - count old_s2_len = s2->length; - struct List_element *s1_tail = s1->tail; - struct List_element *s2_tail = s2->tail; - - _Bool s1_new_element = 1; - - _Bool s2_new_element = 1; - - if (complement || !s2->has_char_class) - return; - - for (int i = 0; i < N_CHARS; i++) { - if (((*__ctype_b_loc())[(int)((i))] & (unsigned short int)_ISupper)) - n_upper++; - if (((*__ctype_b_loc())[(int)((i))] & (unsigned short int)_ISlower)) - n_lower++; - } - - s1->state = ((18446744073709551615UL) - 1); - s2->state = ((18446744073709551615UL) - 1); - - while (c1 != -1 && c2 != -1) { - enum Upper_Lower_class class_s1, class_s2; - - c1 = get_next(s1, &class_s1); - c2 = get_next(s2, &class_s2); - - if (s2_new_element && class_s2 != UL_NONE && - !(s1_new_element && class_s1 != UL_NONE)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"misaligned [:upper:] " - "and/or [:lower:] construct\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "misaligned [:upper:] and/or [:lower:] construct", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "misaligned [:upper:] and/or [:lower:] construct", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (class_s2 != UL_NONE) { - skip_construct(s1); - skip_construct(s2); - - s1->length -= (class_s1 == UL_UPPER ? n_upper : n_lower) - 1; - s2->length -= (class_s2 == UL_UPPER ? n_upper : n_lower) - 1; - } - - s1_new_element = s1->state == (((18446744073709551615UL) - 1) + 1); - s2_new_element = s2->state == (((18446744073709551615UL) - 1) + 1); - } - - ((void)sizeof((old_s1_len >= s1->length && old_s2_len >= s2->length) ? 1 : 0), - __extension__({ - if (old_s1_len >= s1->length && old_s2_len >= s2->length) - ; - else - __assert_fail("old_s1_len >= s1->length && old_s2_len >= s2->length", - "src/tr.c", 1224, __extension__ __PRETTY_FUNCTION__); - })); - - s1->tail = s1_tail; - s2->tail = s2_tail; -} -static void get_spec_stats(struct Spec_list *s) { - struct List_element *p; - count length = 0; - - s->n_indefinite_repeats = 0; - s->has_equiv_class = 0; - s->has_restricted_char_class = 0; - s->has_char_class = 0; - for (p = s->head->next; p; p = p->next) { - count len = 0; - count new_length; - - switch (p->type) { - case RE_NORMAL_CHAR: - len = 1; - break; - - case RE_RANGE: - - ((void)sizeof((p->u.range.last_char >= p->u.range.first_char) ? 1 : 0), - __extension__({ - if (p->u.range.last_char >= p->u.range.first_char) - ; - else - __assert_fail("p->u.range.last_char >= p->u.range.first_char", - "src/tr.c", 1265, __extension__ __PRETTY_FUNCTION__); - })); - len = p->u.range.last_char - p->u.range.first_char + 1; - break; - - case RE_CHAR_CLASS: - s->has_char_class = 1; - for (int i = 0; i < N_CHARS; i++) - if (is_char_class_member(p->u.char_class, i)) - ++len; - switch (p->u.char_class) { - case CC_UPPER: - case CC_LOWER: - break; - default: - s->has_restricted_char_class = 1; - break; - } - break; - - case RE_EQUIV_CLASS: - for (int i = 0; i < N_CHARS; i++) - if (is_equiv_class_member(p->u.equiv_code, i)) - ++len; - s->has_equiv_class = 1; - break; - - case RE_REPEATED_CHAR: - if (p->u.repeated_char.repeat_count > 0) - len = p->u.repeated_char.repeat_count; - else { - s->indefinite_repeat_element = p; - ++(s->n_indefinite_repeats); - } - break; - - default: - abort(); - } - - new_length = length + len; - if (!(length <= new_length && new_length <= ((18446744073709551615UL) - 1))) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"too many " - "characters in set\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "too many characters in set", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "too many characters in set", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - length = new_length; - } - - s->length = length; -} - -static void get_s1_spec_stats(struct Spec_list *s1) { - get_spec_stats(s1); - if (complement) - s1->length = card_of_complement(s1); -} - -static void get_s2_spec_stats(struct Spec_list *s2, count len_s1) { - get_spec_stats(s2); - if (len_s1 >= s2->length && s2->n_indefinite_repeats == 1) { - s2->indefinite_repeat_element->u.repeated_char.repeat_count = - len_s1 - s2->length; - s2->length = len_s1; - } -} - -static void spec_init(struct Spec_list *spec_list) { - struct List_element *new = xmalloc(sizeof *new); - spec_list->head = spec_list->tail = new; - spec_list->head->next = ((void *)0); -} - -static _Bool - -parse_str(char const *s, struct Spec_list *spec_list) { - struct E_string es; - - _Bool ok = unquote(s, &es) && build_spec_list(&es, spec_list); - es_free(&es); - return ok; -} -static void string2_extend(const struct Spec_list *s1, struct Spec_list *s2) { - struct List_element *p; - unsigned char char_to_repeat; - - ((void)sizeof((translating) ? 1 : 0), __extension__({ - if (translating) - ; - else - __assert_fail("translating", "src/tr.c", 1377, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof((s1->length > s2->length) ? 1 : 0), __extension__({ - if (s1->length > s2->length) - ; - else - __assert_fail("s1->length > s2->length", "src/tr.c", 1378, - __extension__ __PRETTY_FUNCTION__); - })); - - ((void)sizeof((s2->length > 0) ? 1 : 0), __extension__({ - if (s2->length > 0) - ; - else - __assert_fail("s2->length > 0", "src/tr.c", 1379, - __extension__ __PRETTY_FUNCTION__); - })); - - p = s2->tail; - switch (p->type) { - case RE_NORMAL_CHAR: - char_to_repeat = p->u.normal_char; - break; - case RE_RANGE: - char_to_repeat = p->u.range.last_char; - break; - case RE_CHAR_CLASS: - - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"when translating with " - "string1 longer than string2,\\nthe latter string must not end " - "with a character class\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext( - ((void *)0), - "when translating with string1 longer than string2,\nthe " - "latter string must not end with a character class", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext( - ((void *)0), - "when translating with string1 longer than string2,\nthe " - "latter string must not end with a character class", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - - case RE_REPEATED_CHAR: - char_to_repeat = p->u.repeated_char.the_repeated_char; - break; - - case RE_EQUIV_CLASS: - - abort(); - - default: - abort(); - } - - append_repeated_char(s2, char_to_repeat, s1->length - s2->length); - s2->length = s1->length; -} - -static _Bool - -homogeneous_spec_list(struct Spec_list *s) { - int b, c; - - s->state = ((18446744073709551615UL) - 1); - - if ((b = get_next(s, ((void *)0))) == -1) - return 0; - - while ((c = get_next(s, ((void *)0))) != -1) - if (c != b) - return 0; - - return 1; -} -static void validate(struct Spec_list *s1, struct Spec_list *s2) { - get_s1_spec_stats(s1); - if (s1->n_indefinite_repeats > 0) { - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"the [c*] repeat " - "construct may not appear in string1\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "the [c*] repeat construct may not appear in string1", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "the [c*] repeat construct may not appear in string1", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (s2) { - get_s2_spec_stats(s2, s1->length); - - if (s2->n_indefinite_repeats > 1) { - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"only one [c*] repeat " - "construct may appear in string2\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "only one [c*] repeat construct may appear in string2", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "only one [c*] repeat construct may appear in string2", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (translating) { - if (s2->has_equiv_class) { - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"[=c=] expressions may " - "not appear in string2 when translating\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "[=c=] expressions may not appear in string2 " - "when translating", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "[=c=] expressions may not appear in string2 " - "when translating", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - if (s2->has_restricted_char_class) { - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"when translating, " - "the only character classes that may appear in\\nstring2 are " - "'upper' and 'lower'\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext( - ((void *)0), - "when translating, the only character classes that " - "may appear in\nstring2 are 'upper' and 'lower'", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext( - ((void *)0), - "when translating, the only character classes that " - "may appear in\nstring2 are 'upper' and 'lower'", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - - validate_case_classes(s1, s2); - - if (s1->length > s2->length) { - if (!truncate_set1) { - - if (s2->length == 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"when not truncating " - "set1, string2 must be non-empty\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "when not truncating set1, string2 must " - "be non-empty", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "when not truncating set1, string2 must " - "be non-empty", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - string2_extend(s1, s2); - } - } - - if (complement && s1->has_char_class && - !(s2->length == s1->length && homogeneous_spec_list(s2))) { - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"when translating " - "with complemented character classes,\\nstring2 must map all " - "characters in the domain to one\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "when translating with complemented character " - "classes,\nstring2 must map all characters in " - "the domain to one", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "when translating with complemented character " - "classes,\nstring2 must map all characters in " - "the domain to one", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - } else - - { - if (s2->n_indefinite_repeats > 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"the [c*] construct may " - "appear in string2 only when translating\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "the [c*] construct may appear in string2 " - "only when translating", - 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "the [c*] construct may appear in string2 " - "only when translating", - 5)), - ((0) ? (void)0 : __builtin_unreachable())))) - - ; - } - } -} -static void squeeze_filter(char *buf, size_t size, - size_t (*reader)(char *, size_t)) { - - const int NOT_A_CHAR = 0x7fffffff; - - int char_to_squeeze = NOT_A_CHAR; - size_t i = 0; - size_t nr = 0; - - while (1) { - if (i >= nr) { - nr = reader(buf, size); - if (nr == 0) - break; - i = 0; - } - - size_t begin = i; - - if (char_to_squeeze == NOT_A_CHAR) { - size_t out_len; - for (; i < nr && !in_squeeze_set[to_uchar(buf[i])]; i += 2) - continue; - - if (i == nr && in_squeeze_set[to_uchar(buf[i - 1])]) - --i; - - if (i >= nr) - out_len = nr - begin; - else { - char_to_squeeze = buf[i]; - - out_len = i - begin + 1; - - if (i > 0 && buf[i - 1] == char_to_squeeze) - --out_len; - - ++i; - } - if (out_len > 0 && - fwrite_unlocked(&buf[begin], 1, out_len, stdout) != out_len) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (char_to_squeeze != NOT_A_CHAR) { - - for (; i < nr && buf[i] == char_to_squeeze; i++) - continue; - if (i < nr) - char_to_squeeze = NOT_A_CHAR; - } - } -} - -static size_t plain_read(char *buf, size_t size) { - size_t nr = safe_read(0, buf, size); - if (nr == ((size_t)-1)) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"read error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "read error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - return nr; -} - -static size_t read_and_delete(char *buf, size_t size) { - size_t n_saved; - - do { - size_t nr = plain_read(buf, size); - - if (nr == 0) - return 0; - - size_t i; - for (i = 0; i < nr && !in_delete_set[to_uchar(buf[i])]; i++) - continue; - n_saved = i; - - for (++i; i < nr; i++) - if (!in_delete_set[to_uchar(buf[i])]) - buf[n_saved++] = buf[i]; - } while (n_saved == 0); - - return n_saved; -} - -static size_t read_and_xlate(char *buf, size_t size) { - size_t bytes_read = plain_read(buf, size); - - for (size_t i = 0; i < bytes_read; i++) - buf[i] = xlate[to_uchar(buf[i])]; - - return bytes_read; -} - -static void set_initialize(struct Spec_list *s, _Bool complement_this_set, - _Bool *in_set) { - int c; - - s->state = ((18446744073709551615UL) - 1); - while ((c = get_next(s, ((void *)0))) != -1) - in_set[c] = 1; - if (complement_this_set) - for (size_t i = 0; i < N_CHARS; i++) - in_set[i] = (!in_set[i]); -} - -int main(int argc, char **argv) { - int c; - int non_option_args; - int min_operands; - int max_operands; - struct Spec_list buf1, buf2; - struct Spec_list *s1 = &buf1; - struct Spec_list *s2 = &buf2; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((c = getopt_long(argc, argv, "+AcCdst", long_options, ((void *)0))) != - -1) { - switch (c) { - case 'A': - - setlocale(3, "C"); - setlocale(0, "C"); - break; - - case 'c': - case 'C': - complement = 1; - break; - - case 'd': - delete = 1; - break; - - case 's': - squeeze_repeats = 1; - break; - - case 't': - truncate_set1 = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "tr", "GNU coreutils", Version, ("Jim Meyering"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - break; - } - } - - non_option_args = argc - optind; - translating = (non_option_args == 2 && !delete); - min_operands = 1 + (delete == squeeze_repeats); - max_operands = 1 + (delete <= squeeze_repeats); - - if (non_option_args < min_operands) { - if (non_option_args == 0) - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - else { - error(0, 0, dcgettext(((void *)0), "missing operand after %s", 5), - quote(argv[argc - 1])); - fprintf(stderr, "%s\n", - - dcgettext(((void *)0), - squeeze_repeats - ? "Two strings must be given when " - "both deleting and squeezing repeats." - : "Two strings must be given when translating.", - 5) - - ); - } - usage(1); - } - - if (max_operands < non_option_args) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + max_operands])); - if (non_option_args == 2) - fprintf(stderr, "%s\n", - - dcgettext(((void *)0), - "Only one string may be given when " - "deleting without squeezing repeats.", - 5) - - ); - usage(1); - } - - spec_init(s1); - if (!parse_str(argv[optind], s1)) - exit(1); - - if (non_option_args == 2) { - spec_init(s2); - if (!parse_str(argv[optind + 1], s2)) - exit(1); - } else - s2 = ((void *)0); - - validate(s1, s2); - - xset_binary_mode(0, 0); - xset_binary_mode(1, 0); - fadvise(stdin, FADVISE_SEQUENTIAL); - - if (squeeze_repeats && non_option_args == 1) { - set_initialize(s1, complement, in_squeeze_set); - squeeze_filter(io_buf, sizeof io_buf, plain_read); - } else if (delete &&non_option_args == 1) { - set_initialize(s1, complement, in_delete_set); - - while (1) { - size_t nr = read_and_delete(io_buf, sizeof io_buf); - if (nr == 0) - break; - if (fwrite_unlocked(io_buf, 1, nr, stdout) != nr) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } else if (squeeze_repeats && delete &&non_option_args == 2) { - set_initialize(s1, complement, in_delete_set); - set_initialize(s2, 0, in_squeeze_set); - squeeze_filter(io_buf, sizeof io_buf, read_and_delete); - } else if (translating) { - if (complement) { - - _Bool *in_s1 = in_delete_set; - - set_initialize(s1, 0, in_s1); - s2->state = ((18446744073709551615UL) - 1); - for (int i = 0; i < N_CHARS; i++) - xlate[i] = i; - for (int i = 0; i < N_CHARS; i++) { - if (!in_s1[i]) { - int ch = get_next(s2, ((void *)0)); - - ((void)sizeof((ch != -1 || truncate_set1) ? 1 : 0), __extension__({ - if (ch != -1 || truncate_set1) - ; - else - __assert_fail("ch != -1 || truncate_set1", "src/tr.c", 1840, - __extension__ __PRETTY_FUNCTION__); - })); - if (ch == -1) { - - break; - } - xlate[i] = ch; - } - } - } else { - int c1, c2; - enum Upper_Lower_class class_s1; - enum Upper_Lower_class class_s2; - - for (int i = 0; i < N_CHARS; i++) - xlate[i] = i; - s1->state = ((18446744073709551615UL) - 1); - s2->state = ((18446744073709551615UL) - 1); - while (1) { - c1 = get_next(s1, &class_s1); - c2 = get_next(s2, &class_s2); - - if (class_s1 == UL_LOWER && class_s2 == UL_UPPER) { - for (int i = 0; i < N_CHARS; i++) - if (((*__ctype_b_loc())[(int)((i))] & (unsigned short int)_ISlower)) - xlate[i] = (__extension__({ - int __res; - if (sizeof(i) > 1) { - if (__builtin_constant_p(i)) { - int __c = (i); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_toupper_loc())[__c]; - } else - __res = toupper(i); - } else - __res = (*__ctype_toupper_loc())[(int)(i)]; - __res; - })); - } else if (class_s1 == UL_UPPER && class_s2 == UL_LOWER) { - for (int i = 0; i < N_CHARS; i++) - if (((*__ctype_b_loc())[(int)((i))] & (unsigned short int)_ISupper)) - xlate[i] = (__extension__({ - int __res; - if (sizeof(i) > 1) { - if (__builtin_constant_p(i)) { - int __c = (i); - __res = __c < -128 || __c > 255 - ? __c - : (*__ctype_tolower_loc())[__c]; - } else - __res = tolower(i); - } else - __res = (*__ctype_tolower_loc())[(int)(i)]; - __res; - })); - } else { - - if (c1 == -1 || c2 == -1) - break; - xlate[c1] = c2; - } - - if (class_s2 != UL_NONE) { - skip_construct(s1); - skip_construct(s2); - } - } - - ((void)sizeof((c1 == -1 || truncate_set1) ? 1 : 0), __extension__({ - if (c1 == -1 || truncate_set1) - ; - else - __assert_fail("c1 == -1 || truncate_set1", "src/tr.c", 1893, - __extension__ __PRETTY_FUNCTION__); - })); - } - if (squeeze_repeats) { - set_initialize(s2, 0, in_squeeze_set); - squeeze_filter(io_buf, sizeof io_buf, read_and_xlate); - } else { - while (1) { - size_t bytes_read = read_and_xlate(io_buf, sizeof io_buf); - if (bytes_read == 0) - break; - if (fwrite_unlocked(io_buf, 1, bytes_read, stdout) != bytes_read) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext " - "(((void *)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - } - } - - if (close(0) != 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"standard input\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "standard input", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - exit(0); -} diff --git a/tests/source/coreutils/true.c b/tests/source/coreutils/true.c deleted file mode 100644 index 1756b4f..0000000 --- a/tests/source/coreutils/true.c +++ /dev/null @@ -1,6788 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -void usage(int status) { - printf(dcgettext( - ((void *)0), - "Usage: %s [ignored command line arguments]\n or: %s OPTION\n", - 5) - - , - program_name, program_name); - printf("%s\n\n", - - dcgettext(((void *)0), - 0 == 0 ? "Exit with a status code indicating success." - : "Exit with a status code indicating failure.", - 5) - - ); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", 5), - stdout); - printf(dcgettext(((void *)0), - "\n" - "NOTE: your shell may have its own version of %s, which " - "usually supersedes\n" - "the version described here. Please refer to your shell's " - "documentation\n" - "for details about the options it supports.\n", - 5), - "true"); - emit_ancillary_info("true"); - exit(status); -} - -int main(int argc, char **argv) { - - if (argc == 2) { - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - if ((strcmp(argv[1], "--help") == 0)) - usage(0); - - if ((strcmp(argv[1], "--version") == 0)) - version_etc(stdout, "true", "GNU coreutils", Version, ("Jim Meyering"), - (char *)((void *)0)); - } - - return 0; -} diff --git a/tests/source/coreutils/truncate.c b/tests/source/coreutils/truncate.c deleted file mode 100644 index 0997a0e..0000000 --- a/tests/source/coreutils/truncate.c +++ /dev/null @@ -1,7229 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -intmax_t xdectoimax(char const *n_str, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); -uintmax_t xdectoumax(char const *n_str, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 5))); - -intmax_t xnumtoimax(char const *n_str, int base, intmax_t min, intmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); -uintmax_t xnumtoumax(char const *n_str, int base, uintmax_t min, uintmax_t max, - char const *suffixes, char const *err, int err_exit) - __attribute__((__nonnull__(1, 6))); - -static _Bool no_create; - -static _Bool block_mode; - -static char const *ref_file; - -static struct option const longopts[] = { - {"no-create", 0, ((void *)0), 'c'}, - {"io-blocks", 0, ((void *)0), 'o'}, - {"reference", 1, ((void *)0), 'r'}, - {"size", 1, ((void *)0), 's'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -typedef enum { rm_abs = 0, rm_rel, rm_min, rm_max, rm_rdn, rm_rup } rel_mode_t; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s OPTION... FILE...\n", 5), - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Shrink or extend the size of each FILE to the specified size\n\nA " - "FILE argument that does not exist is created.\n\nIf a FILE is " - "larger than the specified size, the extra data is lost.\nIf a " - "FILE is shorter, it is extended and the sparse extended part " - "(hole)\nreads as zero bytes.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -c, --no-create do not create any files\n", 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -o, --io-blocks treat SIZE as number of " - "IO blocks instead of bytes\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -r, --reference=RFILE base size on RFILE\n -s, --size=SIZE " - " set or adjust the file size by SIZE bytes\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_size_note(); - fputs_unlocked( - dcgettext(((void *)0), - "\nSIZE may also be prefixed by one of the following " - "modifying characters:\n'+' extend by, '-' reduce by, '<' at " - "most, '>' at least,\n'/' round down to multiple of, '%' " - "round up to multiple of.\n", - 5), - stdout) - - ; - emit_ancillary_info("truncate"); - } - exit(status); -} - -static _Bool - -do_ftruncate(int fd, char const *fname, off_t ssize, off_t rsize, - rel_mode_t rel_mode) { - struct stat sb; - off_t nsize; - - if ((block_mode || (rel_mode && rsize < 0)) && fstat(fd, &sb) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot fstat %s", 5), - quotearg_style(shell_escape_always_quoting_style, fname)); - return 0; - } - if (block_mode) { - ptrdiff_t blksize = - ((0 < (sb).st_blksize && (sb).st_blksize <= ((size_t)-1) / 8 + 1) - ? (sb).st_blksize - : 512); - intmax_t ssize0 = ssize; - if (__builtin_mul_overflow(ssize, blksize, &ssize)) { - error(0, 0, - - dcgettext(((void *)0), - "overflow in %" - "l" - "d" - " * %" - "l" - "d" - " byte blocks for file %s", - 5) - - , - ssize0, blksize, - quotearg_style(shell_escape_always_quoting_style, fname)); - return 0; - } - } - if (rel_mode) { - off_t fsize; - - if (0 <= rsize) - fsize = rsize; - else { - if (usable_st_size(&sb)) { - fsize = sb.st_size; - if (fsize < 0) { - - error(0, 0, - dcgettext(((void *)0), - "%s has unusable, apparently negative size", 5), - quotearg_style(shell_escape_always_quoting_style, fname)); - return 0; - } - } else { - fsize = lseek(fd, 0, 2); - if (fsize < 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot get the size of %s", 5), - quotearg_style(shell_escape_always_quoting_style, fname)); - return 0; - } - } - } - - if (rel_mode == rm_min) - nsize = (((fsize) > (ssize)) ? (fsize) : (ssize)); - else if (rel_mode == rm_max) - nsize = (((fsize) < (ssize)) ? (fsize) : (ssize)); - else if (rel_mode == rm_rdn) - - nsize = fsize - fsize % ssize; - else { - if (rel_mode == rm_rup) { - - off_t r = fsize % ssize; - ssize = r == 0 ? 0 : ssize - r; - } - if (__builtin_add_overflow(fsize, ssize, &nsize)) { - error(0, 0, - dcgettext(((void *)0), "overflow extending size of file %s", 5), - quotearg_style(shell_escape_always_quoting_style, fname)); - return 0; - } - } - } else - nsize = ssize; - if (nsize < 0) - nsize = 0; - - if (ftruncate(fd, nsize) != 0) { - intmax_t s = nsize; - error(0, (*__errno_location()), - dcgettext(((void *)0), - "failed to truncate %s at %" - "l" - "d" - " bytes", - 5), - quotearg_style(shell_escape_always_quoting_style, fname), s); - return 0; - } - - return 1; -} - -int main(int argc, char **argv) { - - _Bool got_size = 0; - off_t size = 0; - off_t rsize = -1; - rel_mode_t rel_mode = rm_abs; - int c; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((c = getopt_long(argc, argv, "cor:s:", longopts, ((void *)0))) != -1) { - switch (c) { - case 'c': - no_create = 1; - break; - - case 'o': - block_mode = 1; - break; - - case 'r': - ref_file = optarg; - break; - - case 's': - - while (((*__ctype_b_loc())[(int)((to_uchar(*optarg)))] & - (unsigned short int)_ISspace)) - optarg++; - switch (*optarg) { - case '<': - rel_mode = rm_max; - optarg++; - break; - case '>': - rel_mode = rm_min; - optarg++; - break; - case '/': - rel_mode = rm_rdn; - optarg++; - break; - case '%': - rel_mode = rm_rup; - optarg++; - break; - } - - while (((*__ctype_b_loc())[(int)((to_uchar(*optarg)))] & - (unsigned short int)_ISspace)) - optarg++; - if (*optarg == '+' || *optarg == '-') { - if (rel_mode) { - error(0, 0, - dcgettext(((void *)0), "multiple relative modifiers specified", - 5)); - - usage(1); - } - rel_mode = rm_rel; - } - - size = xdectoimax( - optarg, - ((off_t) ~( - (off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1)))), - ((off_t)(!(!((off_t)0 < (off_t)-1)) - ? (off_t)-1 - : ((((off_t)1 << ((sizeof(off_t) * 8) - 2)) - 1) * 2 + - 1))), - "EgGkKmMPtTYZ0", - - dcgettext(((void *)0), "Invalid number", 5), 0); - - if ((rel_mode == rm_rup || rel_mode == rm_rdn) && size == 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"division " - "by zero\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "division by zero", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "division by zero", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - got_size = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "truncate", "GNU coreutils", Version, - ("Padraig Brady"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - argv += optind; - argc -= optind; - - if (!ref_file && !got_size) { - error(0, 0, dcgettext(((void *)0), "you must specify either %s or %s", 5), - quote_n(0, "--size"), quote_n(1, "--reference")); - usage(1); - } - - if (ref_file && got_size && !rel_mode) { - error(0, 0, - dcgettext(((void *)0), "you must specify a relative %s with %s", 5), - quote_n(0, "--size"), quote_n(1, "--reference")); - usage(1); - } - - if (block_mode && !got_size) { - error(0, 0, dcgettext(((void *)0), "%s was specified but %s was not", 5), - quote_n(0, "--io-blocks"), quote_n(1, "--size")); - usage(1); - } - - if (argc < 1) { - error(0, 0, dcgettext(((void *)0), "missing file operand", 5)); - usage(1); - } - - if (ref_file) { - struct stat sb; - off_t file_size = -1; - if (stat(ref_file, &sb) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot stat %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, ref_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "cannot stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, ref_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "cannot stat %s", 5), - quotearg_style(shell_escape_always_quoting_style, ref_file)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (usable_st_size(&sb)) - file_size = sb.st_size; - else { - int ref_fd = open(ref_file, 00); - if (0 <= ref_fd) { - off_t file_end = lseek(ref_fd, 0, 2); - int saved_errno = (*__errno_location()); - close(ref_fd); - if (0 <= file_end) - file_size = file_end; - else { - - (*__errno_location()) = saved_errno; - } - } - } - if (file_size < 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), " - "\"cannot get the size of %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, ref_file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "cannot get the size of %s", 5), - quotearg_style(shell_escape_always_quoting_style, ref_file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "cannot get the size of %s", 5), - quotearg_style(shell_escape_always_quoting_style, ref_file)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (!got_size) - size = file_size; - else - rsize = file_size; - } - - int oflags = 01 | (no_create ? 0 : 0100) | 04000; - - _Bool errors = 0; - - for (char const *fname; (fname = *argv); argv++) { - int fd = open(fname, oflags, - (0400 | 0200 | (0400 >> 3) | (0200 >> 3) | - ((0400 >> 3) >> 3) | ((0200 >> 3) >> 3))); - if (fd < 0) { - - if (!(no_create && (*__errno_location()) == 2)) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for writing", 5), - quotearg_style(shell_escape_always_quoting_style, fname)); - errors = 1; - } - } else { - errors |= !do_ftruncate(fd, fname, size, rsize, rel_mode); - if (close(fd) != 0) { - error(0, (*__errno_location()), - dcgettext(((void *)0), "failed to close %s", 5), - quotearg_style(shell_escape_always_quoting_style, fname)); - errors = 1; - } - } - } - - return errors ? 1 : 0; -} diff --git a/tests/source/coreutils/tsort.c b/tests/source/coreutils/tsort.c deleted file mode 100644 index 461bb5c..0000000 --- a/tests/source/coreutils/tsort.c +++ /dev/null @@ -1,7304 +0,0 @@ - - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -struct tokenbuffer { - size_t size; - char *buffer; -}; -typedef struct tokenbuffer token_buffer; - -void init_tokenbuffer(token_buffer *tokenbuffer); - -size_t readtoken(FILE *stream, const char *delim, size_t n_delim, - token_buffer *tokenbuffer); -size_t readtokens(FILE *stream, size_t projected_n_tokens, const char *delim, - size_t n_delim, char ***tokens_out, size_t **token_lengths); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -struct successor { - struct item *suc; - struct successor *next; -}; - -struct item { - char const *str; - struct item *left, *right; - signed char balance; - - _Bool printed; - size_t count; - struct item *qlink; - struct successor *top; -}; - -static struct item *head = ((void *)0); - -static struct item *zeros = ((void *)0); - -static struct item *loop = ((void *)0); - -static size_t n_strings = 0; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION] [FILE]\nWrite totally ordered list " - "consistent with the partial ordering in FILE.\n", - 5) - - , - program_name); - - emit_stdin_note(); - - fputs_unlocked(dcgettext(((void *)0), "\n", 5), stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("tsort"); - } - - exit(status); -} - -static struct item *new_item(char const *str) { - - struct item *k = xzalloc(sizeof *k); - if (str) - k->str = xstrdup(str); - return k; -} -static struct item *search_item(struct item *root, char const *str) { - struct item *p, *q, *r, *s, *t; - int a; - - ((void)sizeof((root) ? 1 : 0), __extension__({ - if (root) - ; - else - __assert_fail("root", "src/tsort.c", 126, - __extension__ __PRETTY_FUNCTION__); - })); - - if (root->right == ((void *)0)) - return (root->right = new_item(str)); - - t = root; - s = p = root->right; - - while (1) { - - ((void)sizeof((str && p && p->str) ? 1 : 0), __extension__({ - if (str && p && p->str) - ; - else - __assert_fail("str && p && p->str", "src/tsort.c", 140, - __extension__ __PRETTY_FUNCTION__); - })); - a = strcmp(str, p->str); - if (a == 0) - return p; - - if (a < 0) - q = p->left; - else - q = p->right; - - if (q == ((void *)0)) { - - q = new_item(str); - - if (a < 0) - p->left = q; - else - p->right = q; - - ((void)sizeof((str && s && s->str && !(strcmp(str, s->str) == 0)) ? 1 - : 0), - __extension__({ - if (str && s && s->str && !(strcmp(str, s->str) == 0)) - ; - else - __assert_fail("str && s && s->str && !STREQ (str, s->str)", - "src/tsort.c", 163, __extension__ __PRETTY_FUNCTION__); - })); - if (strcmp(str, s->str) < 0) { - r = p = s->left; - a = -1; - } else { - r = p = s->right; - a = 1; - } - - while (p != q) { - - ((void)sizeof((str && p && p->str && !(strcmp(str, p->str) == 0)) ? 1 - : 0), - __extension__({ - if (str && p && p->str && !(strcmp(str, p->str) == 0)) - ; - else - __assert_fail("str && p && p->str && !STREQ (str, p->str)", - "src/tsort.c", 177, - __extension__ __PRETTY_FUNCTION__); - })); - if (strcmp(str, p->str) < 0) { - p->balance = -1; - p = p->left; - } else { - p->balance = 1; - p = p->right; - } - } - - if (s->balance == 0 || s->balance == -a) { - s->balance += a; - return q; - } - - if (r->balance == a) { - - p = r; - if (a < 0) { - s->left = r->right; - r->right = s; - } else { - s->right = r->left; - r->left = s; - } - s->balance = r->balance = 0; - } else { - - if (a < 0) { - p = r->right; - r->right = p->left; - p->left = r; - s->left = p->right; - p->right = s; - } else { - p = r->left; - r->left = p->right; - p->right = r; - s->right = p->left; - p->left = s; - } - - s->balance = 0; - r->balance = 0; - if (p->balance == a) - s->balance = -a; - else if (p->balance == -a) - r->balance = a; - p->balance = 0; - } - - if (s == t->right) - t->right = p; - else - t->left = p; - - return q; - } - - if (q->balance) { - t = p; - s = q; - } - - p = q; - } -} - -static void record_relation(struct item *j, struct item *k) { - struct successor *p; - - if (!(strcmp(j->str, k->str) == 0)) { - k->count++; - p = xmalloc(sizeof *p); - p->suc = k; - p->next = j->top; - j->top = p; - } -} - -static _Bool - -count_items(struct item *unused) { - n_strings++; - return 0; -} - -static _Bool - -scan_zeros(struct item *k) { - - if (k->count == 0 && !k->printed) { - if (head == ((void *)0)) - head = k; - else - zeros->qlink = k; - - zeros = k; - } - - return 0; -} -static _Bool - -detect_loop(struct item *k) { - if (k->count > 0) { - - if (loop == ((void *)0)) - - loop = k; - else { - struct successor **p = &k->top; - - while (*p) { - if ((*p)->suc == loop) { - if (k->qlink) { - - while (loop) { - struct item *tmp = loop->qlink; - - error(0, 0, "%s", (loop->str)); - - if (loop == k) { - - struct successor *s = *p; - s->suc->count--; - *p = s->next; - free(s); - break; - } - - loop->qlink = ((void *)0); - loop = tmp; - } - - while (loop) { - struct item *tmp = loop->qlink; - - loop->qlink = ((void *)0); - loop = tmp; - } - - return 1; - } else { - k->qlink = loop; - loop = k; - break; - } - } - - p = &(*p)->next; - } - } - } - - return 0; -} - -static _Bool - -recurse_tree(struct item *root, _Bool (*action)(struct item *)) { - if (root->left == ((void *)0) && root->right == ((void *)0)) - return (*action)(root); - else { - if (root->left != ((void *)0)) - if (recurse_tree(root->left, action)) - return 1; - if ((*action)(root)) - return 1; - if (root->right != ((void *)0)) - if (recurse_tree(root->right, action)) - return 1; - } - - return 0; -} - -static void walk_tree(struct item *root, _Bool (*action)(struct item *)) { - if (root->right) - recurse_tree(root->right, action); -} - -static _Noreturn void tsort(char const *file) { - - _Bool ok = 1; - struct item *root; - struct item *j = ((void *)0); - struct item *k = ((void *)0); - token_buffer tokenbuffer; - - _Bool is_stdin = (strcmp(file, "-") == 0); - - root = new_item(((void *)0)); - - if (!is_stdin && !freopen_safer(file, "r", stdin)) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)), - ((0) ? (void)0 : __builtin_unreachable())))); - - fadvise(stdin, FADVISE_SEQUENTIAL); - - init_tokenbuffer(&tokenbuffer); - - while (1) { - - size_t len = readtoken(stdin, " \t\n", sizeof(" \t\n") - 1, &tokenbuffer); - if (len == (size_t)-1) - break; - - ((void)sizeof((len != 0) ? 1 : 0), __extension__({ - if (len != 0) - ; - else - __assert_fail("len != 0", "src/tsort.c", 458, - __extension__ __PRETTY_FUNCTION__); - })); - - k = search_item(root, tokenbuffer.buffer); - if (j) { - - record_relation(j, k); - k = ((void *)0); - } - - j = k; - } - - if (k != ((void *)0)) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"%s: input contains an " - "odd number of tokens\", 5), quotearg_n_style_colon (0, " - "shell_escape_quoting_style, file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), - "%s: input contains an odd number of tokens", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), - "%s: input contains an odd number of tokens", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)), - ((0) ? (void)0 : __builtin_unreachable())))); - - walk_tree(root, count_items); - - while (n_strings > 0) { - - walk_tree(root, scan_zeros); - - while (head) { - struct successor *p = head->top; - - puts(head->str); - head->printed = 1; - n_strings--; - - while (p) { - p->suc->count--; - if (p->suc->count == 0) { - zeros->qlink = p->suc; - zeros = p->suc; - } - - p = p->next; - } - - head = head->qlink; - } - - if (n_strings > 0) { - - error(0, 0, dcgettext(((void *)0), "%s: input contains a loop:", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - ok = 0; - - do - walk_tree(root, detect_loop); - while (loop); - } - } - - if (rpl_fclose(stdin) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", is_stdin ? dcgettext " - "(((void *)0), \"standard input\", 5) : quotearg_n_style_colon " - "(0, shell_escape_quoting_style, file)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - is_stdin ? dcgettext(((void *)0), "standard input", 5) - : quotearg_n_style_colon( - 0, shell_escape_quoting_style, file)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - is_stdin ? dcgettext(((void *)0), "standard input", 5) - : quotearg_n_style_colon( - 0, shell_escape_quoting_style, file)), - ((0) ? (void)0 : __builtin_unreachable())))); - - exit(ok ? 0 : 1); -} - -int main(int argc, char **argv) { - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - parse_gnu_standard_options_only(argc, argv, "tsort", "GNU coreutils", Version, - 1, usage, ("Mark Kettenis"), - (char const *)((void *)0)); - - if (1 < argc - optind) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 1])); - usage(1); - } - - tsort(optind == argc ? "-" : argv[optind]); -} diff --git a/tests/source/coreutils/tty.c b/tests/source/coreutils/tty.c deleted file mode 100644 index a971473..0000000 --- a/tests/source/coreutils/tty.c +++ /dev/null @@ -1,6879 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -enum { TTY_STDIN_NOTTY = 1, TTY_FAILURE = 2, TTY_WRITE_ERROR = 3 }; - -static _Bool silent; - -static struct option const longopts[] = { - {"silent", 0, ((void *)0), 's'}, - {"quiet", 0, ((void *)0), 's'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]...\n", 5), program_name); - fputs_unlocked(dcgettext(((void *)0), - "Print the file name of the terminal connected to " - "standard input.\n\n -s, --silent, --quiet " - "print nothing, only return an exit status\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("tty"); - } - exit(status); -} - -int main(int argc, char **argv) { - int optc; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - initialize_exit_failure(TTY_WRITE_ERROR); - atexit(close_stdout); - - silent = 0; - - while ((optc = getopt_long(argc, argv, "s", longopts, ((void *)0))) != -1) { - switch (optc) { - case 's': - silent = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "tty", "GNU coreutils", Version, ("David MacKenzie"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(TTY_FAILURE); - } - } - - if (optind < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind])); - usage(TTY_FAILURE); - } - - (*__errno_location()) = 2; - - if (silent) - return isatty(0) ? 0 : TTY_STDIN_NOTTY; - - int status = 0; - char const *tty = ttyname(0); - - if (!tty) { - tty = dcgettext(((void *)0), "not a tty", 5); - status = TTY_STDIN_NOTTY; - } - - puts(tty); - return status; -} diff --git a/tests/source/coreutils/uname-uname.c b/tests/source/coreutils/uname-uname.c deleted file mode 100644 index 19b6627..0000000 --- a/tests/source/coreutils/uname-uname.c +++ /dev/null @@ -1,4 +0,0 @@ - - -extern int uname_mode; -int uname_mode = 1; diff --git a/tests/source/coreutils/uname.c b/tests/source/coreutils/uname.c deleted file mode 100644 index 83d8933..0000000 --- a/tests/source/coreutils/uname.c +++ /dev/null @@ -1,7049 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct utsname { - - char sysname[65]; - - char nodename[65]; - - char release[65]; - - char version[65]; - - char machine[65]; - - char domainname[65]; -}; -extern int uname(struct utsname *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -extern int uname_mode; -static struct option const uname_long_options[] = { - {"all", 0, ((void *)0), 'a'}, - {"kernel-name", 0, ((void *)0), 's'}, - {"sysname", 0, ((void *)0), 's'}, - {"nodename", 0, ((void *)0), 'n'}, - {"kernel-release", 0, ((void *)0), 'r'}, - {"release", 0, ((void *)0), 'r'}, - {"kernel-version", 0, ((void *)0), 'v'}, - {"machine", 0, ((void *)0), 'm'}, - {"processor", 0, ((void *)0), 'p'}, - {"hardware-platform", 0, ((void *)0), 'i'}, - {"operating-system", 0, ((void *)0), 'o'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static struct option const arch_long_options[] = { - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]...\n", 5), program_name); - - if (uname_mode == 1) { - fputs_unlocked( - dcgettext( - ((void *)0), - "Print certain system information. With no OPTION, same as " - "-s.\n\n -a, --all print all information, in the " - "following order,\n except omit -p " - "and -i if unknown:\n -s, --kernel-name print the kernel " - "name\n -n, --nodename print the network node " - "hostname\n -r, --kernel-release print the kernel release\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -v, --kernel-version print the kernel version\n " - "-m, --machine print the machine hardware " - "name\n -p, --processor print the processor type " - "(non-portable)\n -i, --hardware-platform print the " - "hardware platform (non-portable)\n -o, " - "--operating-system print the operating system\n", - 5), - stdout) - - ; - } else { - fputs_unlocked( - dcgettext(((void *)0), "Print machine architecture.\n\n", 5), stdout) - - ; - } - - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info((uname_mode == 1 ? "uname" : "arch")); - } - exit(status); -} - -static void print_element(char const *element) { - static _Bool printed; - if (printed) - putchar_unlocked(' '); - printed = 1; - fputs_unlocked(element, stdout); -} - -static void print_element_env(char const *element, char const *envvar) { - print_element(element); -} - -static int decode_switches(int argc, char **argv) { - int c; - unsigned int toprint = 0; - - if (uname_mode == 2) { - while ((c = getopt_long(argc, argv, "", arch_long_options, ((void *)0))) != - -1) { - switch (c) { - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, (uname_mode == 1 ? "uname" : "arch"), - "GNU coreutils", Version, "David MacKenzie", "Karel Zak", - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - toprint = 16; - } else { - while ((c = getopt_long(argc, argv, "asnrvmpio", uname_long_options, - ((void *)0))) != -1) { - switch (c) { - case 'a': - toprint = (0x7fffffff * 2U + 1U); - break; - - case 's': - toprint |= 1; - break; - - case 'n': - toprint |= 2; - break; - - case 'r': - toprint |= 4; - break; - - case 'v': - toprint |= 8; - break; - - case 'm': - toprint |= 16; - break; - - case 'p': - toprint |= 32; - break; - - case 'i': - toprint |= 64; - break; - - case 'o': - toprint |= 128; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, (uname_mode == 1 ? "uname" : "arch"), - "GNU coreutils", Version, ("David MacKenzie"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - } - - if (argc != optind) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind])); - usage(1); - } - - return toprint; -} - -int main(int argc, char **argv) { - static char const unknown[] = "unknown"; - - unsigned int toprint = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - toprint = decode_switches(argc, argv); - - if (toprint == 0) - toprint = 1; - - if (toprint & (1 | 2 | 4 | 8 | 16)) { - struct utsname name; - - if (uname(&name) == -1) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot get system name\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get system name", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot get system name", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (toprint & 1) - print_element_env(name.sysname, "UNAME_SYSNAME"); - if (toprint & 2) - print_element_env(name.nodename, "UNAME_NODENAME"); - if (toprint & 4) - print_element_env(name.release, "UNAME_RELEASE"); - if (toprint & 8) - print_element_env(name.version, "UNAME_VERSION"); - if (toprint & 16) - print_element_env(name.machine, "UNAME_MACHINE"); - } - - if (toprint & 32) { - char const *element = unknown; - if (!(toprint == (0x7fffffff * 2U + 1U) && element == unknown)) - print_element(element); - } - - if (toprint & 64) { - char const *element = unknown; - if (!(toprint == (0x7fffffff * 2U + 1U) && element == unknown)) - print_element(element); - } - - if (toprint & 128) - print_element("GNU/Linux"); - - putchar_unlocked('\n'); - - return 0; -} diff --git a/tests/source/coreutils/unexpand.c b/tests/source/coreutils/unexpand.c deleted file mode 100644 index b6f823b..0000000 --- a/tests/source/coreutils/unexpand.c +++ /dev/null @@ -1,7127 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern _Bool convert_entire_line; - -extern size_t max_column_width; - -extern int exit_status; - -extern void add_tab_stop(uintmax_t tabval); - -extern void parse_tab_stops(char const *stops) __attribute__((__nonnull__)); - -extern uintmax_t get_next_tab_column(const uintmax_t column, size_t *tab_index, - - _Bool *last_tab) - __attribute__((__nonnull__(3))); - -extern void finalize_tab_stops(void); - -extern void set_file_list(char **file_list); - -extern FILE *next_file(FILE *fp); - -extern void cleanup_file_list_stdin(void); - -extern void emit_tab_list_info(void); -enum { CONVERT_FIRST_ONLY_OPTION = 0x7f + 1 }; - -static struct option const longopts[] = { - {"tabs", 1, ((void *)0), 't'}, - {"all", 0, ((void *)0), 'a'}, - {"first-only", 0, ((void *)0), CONVERT_FIRST_ONLY_OPTION}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]...\n", 5) - - , - program_name); - fputs_unlocked(dcgettext(((void *)0), - "Convert blanks in each FILE to tabs, writing to " - "standard output.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - emit_mandatory_arg_note(); - - fputs_unlocked( - dcgettext(((void *)0), - " -a, --all convert all blanks, instead of just " - "initial blanks\n --first-only convert only leading " - "sequences of blanks (overrides -a)\n -t, --tabs=N have " - "tabs N characters apart instead of 8 (enables -a)\n", - 5), - stdout) - - ; - emit_tab_list_info(); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("unexpand"); - } - exit(status); -} - -static void unexpand(void) { - - FILE *fp = next_file(((void *)0)); - - char *pending_blank; - - if (!fp) - return; - - pending_blank = xmalloc(max_column_width); - - while (1) { - - int c; - - _Bool convert = 1; - - uintmax_t column = 0; - - uintmax_t next_tab_column = 0; - - size_t tab_index = 0; - - _Bool one_blank_before_tab_stop = 0; - - _Bool prev_blank = 1; - - size_t pending = 0; - - do { - while ((c = getc_unlocked(fp)) < 0 && (fp = next_file(fp))) - continue; - - if (convert) { - - _Bool blank = - !!((*__ctype_b_loc())[(int)((c))] & (unsigned short int)_ISblank); - - if (blank) { - - _Bool last_tab; - - next_tab_column = get_next_tab_column(column, &tab_index, &last_tab); - - if (last_tab) - convert = 0; - - if (convert) { - if (next_tab_column < column) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"input " - "line is too long\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext(((void *)0), "input line is too long", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext(((void *)0), "input line is too long", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (c == '\t') { - column = next_tab_column; - - if (pending) - pending_blank[0] = '\t'; - } else { - column++; - - if (!(prev_blank && column == next_tab_column)) { - - if (column == next_tab_column) - one_blank_before_tab_stop = 1; - pending_blank[pending++] = c; - prev_blank = 1; - continue; - } - - pending_blank[0] = c = '\t'; - } - - pending = one_blank_before_tab_stop; - } - } else if (c == '\b') { - - column -= !!column; - next_tab_column = column; - tab_index -= !!tab_index; - } else { - column++; - if (!column) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"input " - "line is too long\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "input line is too long", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "input line is too long", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - if (pending) { - if (pending > 1 && one_blank_before_tab_stop) - pending_blank[0] = '\t'; - if (fwrite_unlocked(pending_blank, 1, pending, stdout) != pending) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - pending = 0; - one_blank_before_tab_stop = 0; - } - - prev_blank = blank; - convert &= convert_entire_line || blank; - } - - if (c < 0) { - free(pending_blank); - return; - } - - if (putchar_unlocked(c) < 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"write error\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "write error", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } while (c != '\n'); - } -} - -int main(int argc, char **argv) { - - _Bool have_tabval = 0; - uintmax_t tabval = 0; - int c; - - _Bool convert_first_only = 0; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((c = getopt_long(argc, argv, ",0123456789at:", longopts, - ((void *)0))) != -1) { - switch (c) { - case '?': - usage(1); - case 'a': - convert_entire_line = 1; - break; - case 't': - convert_entire_line = 1; - parse_tab_stops(optarg); - break; - case CONVERT_FIRST_ONLY_OPTION: - convert_first_only = 1; - break; - case ',': - if (have_tabval) - add_tab_stop(tabval); - have_tabval = 0; - break; - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - case GETOPT_VERSION_CHAR: - version_etc(stdout, "unexpand", "GNU coreutils", Version, - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - default: - if (!have_tabval) { - tabval = 0; - have_tabval = 1; - } - if (!((void)(&(tabval) == (uintmax_t *)((void *)0)), - ((!!sizeof(struct { - _Static_assert(!(!((uintmax_t)0 < (uintmax_t)-1)), - "verify_expr (" - "! TYPE_SIGNED (uintmax_t)" - ", " - "(((uintmax_t) -1 / 10 < (tabval) || (uintmax_t) " - "((tabval) * 10 + (c - '0')) < (tabval)) ? false " - ": (((tabval) = (tabval) * 10 + (c - '0')), true))" - ")"); - int _gl_dummy; - })) - ? ((((uintmax_t)-1 / 10 < (tabval) || - (uintmax_t)((tabval)*10 + (c - '0')) < (tabval)) - ? 0 - : (((tabval) = (tabval)*10 + (c - '0')), 1))) - : ((((uintmax_t)-1 / 10 < (tabval) || - (uintmax_t)((tabval)*10 + (c - '0')) < (tabval)) - ? 0 - : (((tabval) = (tabval)*10 + (c - '0')), 1)))))) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"tab stop " - "value is too large\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, 0, - dcgettext(((void *)0), "tab stop value is too large", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, 0, - dcgettext(((void *)0), "tab stop value is too large", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - break; - } - } - - if (convert_first_only) - convert_entire_line = 0; - - if (have_tabval) - add_tab_stop(tabval); - - finalize_tab_stops(); - - set_file_list((optind < argc) ? &argv[optind] : ((void *)0)); - - unexpand(); - - cleanup_file_list_stdin(); - - return exit_status; -} diff --git a/tests/source/coreutils/uniq.c b/tests/source/coreutils/uniq.c deleted file mode 100644 index fe9c55c..0000000 --- a/tests/source/coreutils/uniq.c +++ /dev/null @@ -1,7546 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; - -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __pid_t pid_t; - -typedef __id_t id_t; - -typedef __ssize_t ssize_t; - -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef long unsigned int size_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -typedef __builtin_va_list __gnuc_va_list; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -ptrdiff_t argmatch(char const *arg, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -ptrdiff_t argmatch_exact(char const *arg, char const *const *arglist) - __attribute__((__pure__)); -typedef void (*argmatch_exit_fn)(void); -extern argmatch_exit_fn argmatch_die; - -void argmatch_invalid(char const *context, char const *value, - ptrdiff_t problem); -void argmatch_valid(char const *const *arglist, void const *vallist, - size_t valsize); -ptrdiff_t __xargmatch_internal(char const *context, char const *arg, - char const *const *arglist, void const *vallist, - size_t valsize, argmatch_exit_fn exit_fn, - - _Bool allow_abbreviation); -char const *argmatch_to_argument(void const *value, char const *const *arglist, - void const *vallist, size_t valsize) - __attribute__((__pure__)); - -struct linebuffer { - idx_t size; - idx_t length; - char *buffer; -}; - -void initbuffer(struct linebuffer *linebuffer); - -struct linebuffer *readlinebuffer_delim(struct linebuffer *linebuffer, - FILE *stream, char delimiter); - -struct linebuffer *readlinebuffer(struct linebuffer *linebuffer, FILE *stream); - -void freebuffer(struct linebuffer *); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); -int posix2_version(void); - -FILE *fopen_safer(char const *, char const *) - - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))); - -FILE *freopen_safer(char const *, char const *, FILE *) - - __attribute__((__nonnull__(2, 3))); -enum strtol_error { - LONGINT_OK = 0, - - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = - (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -}; -typedef enum strtol_error strtol_error; - -strtol_error xstrtol(const char *, char **, int, long int *, const char *); -strtol_error xstrtoul(const char *, char **, int, unsigned long int *, - const char *); -strtol_error xstrtoll(const char *, char **, int, long long int *, - const char *); -strtol_error xstrtoull(const char *, char **, int, unsigned long long int *, - const char *); -strtol_error xstrtoimax(const char *, char **, int, intmax_t *, const char *); -strtol_error xstrtoumax(const char *, char **, int, uintmax_t *, const char *); - -int memcasecmp(const void *vs1, const void *vs2, size_t n) - __attribute__((__pure__)); -static size_t skip_fields; - -static size_t skip_chars; - -static size_t check_chars; - -enum countmode { count_occurrences, count_none }; - -static enum countmode countmode; - -static _Bool output_unique; -static _Bool output_first_repeated; -static _Bool output_later_repeated; - -static _Bool ignore_case; - -enum delimit_method { - - DM_NONE, - - DM_PREPEND, - - DM_SEPARATE -}; - -static char const *const delimit_method_string[] = {"none", "prepend", - "separate", ((void *)0) - -}; - -static enum delimit_method const delimit_method_map[] = {DM_NONE, DM_PREPEND, - DM_SEPARATE}; - -static enum delimit_method delimit_groups; - -enum grouping_method { - - GM_NONE, - - GM_PREPEND, - - GM_APPEND, - - GM_SEPARATE, - - GM_BOTH -}; - -static char const *const grouping_method_string[] = { - "prepend", "append", "separate", "both", ((void *)0) - -}; - -static enum grouping_method const grouping_method_map[] = { - GM_PREPEND, GM_APPEND, GM_SEPARATE, GM_BOTH}; - -static enum grouping_method grouping = GM_NONE; - -enum { GROUP_OPTION = 0x7f + 1 }; - -static struct option const longopts[] = { - {"count", 0, ((void *)0), 'c'}, - {"repeated", 0, ((void *)0), 'd'}, - {"all-repeated", 2, ((void *)0), 'D'}, - {"group", 2, ((void *)0), GROUP_OPTION}, - {"ignore-case", 0, ((void *)0), 'i'}, - {"unique", 0, ((void *)0), 'u'}, - {"skip-fields", 1, ((void *)0), 'f'}, - {"skip-chars", 1, ((void *)0), 's'}, - {"check-chars", 1, ((void *)0), 'w'}, - {"zero-terminated", 0, ((void *)0), 'z'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [INPUT [OUTPUT]]\n", 5) - - , - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Filter adjacent matching lines from INPUT (or standard " - "input),\nwriting to OUTPUT (or standard output).\n\nWith no " - "options, matching lines are merged to the first occurrence.\n", - 5), - stdout) - - ; - - emit_mandatory_arg_note(); - - fputs_unlocked(dcgettext(((void *)0), - " -c, --count prefix lines by the " - "number of occurrences\n -d, --repeated " - "only print duplicate lines, one for each group\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -D print all duplicate lines\n " - "--all-repeated[=METHOD] like -D, but allow separating groups\n " - " with an empty line;\n " - " METHOD={none(default),prepend,separate}\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -f, --skip-fields=N avoid comparing the first N fields\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " --group[=METHOD] show all items, separating groups " - "with an empty line;\n " - "METHOD={separate(default),prepend,append,both}\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -i, --ignore-case ignore differences in case when " - "comparing\n -s, --skip-chars=N avoid comparing the first N " - "characters\n -u, --unique only print unique lines\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -z, --zero-terminated line delimiter is NUL, not newline\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " -w, --check-chars=N compare no more than N " - "characters in lines\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext( - ((void *)0), - "\nA field is a run of blanks (usually spaces and/or TABs), then " - "non-blank\ncharacters. Fields are skipped before chars.\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\nNote: 'uniq' does not detect repeated lines unless they " - "are adjacent.\nYou may want to sort the input first, or use " - "'sort -u' without 'uniq'.\n", - 5), - stdout) - - ; - emit_ancillary_info("uniq"); - } - exit(status); -} - -static _Bool - -strict_posix2(void) { - int posix_ver = posix2_version(); - return 200112 <= posix_ver && posix_ver < 200809; -} - -static size_t size_opt(char const *opt, char const *msgid) { - uintmax_t size; - - switch (xstrtoumax(opt, ((void *)0), 10, &size, "")) { - case LONGINT_OK: - case LONGINT_OVERFLOW: - break; - - default: - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, \"%s: %s\", opt, dcgettext (((void " - "*)0), msgid, 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, "%s: %s", opt, dcgettext(((void *)0), msgid, 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, "%s: %s", opt, dcgettext(((void *)0), msgid, 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - return (((size) < ((18446744073709551615UL))) ? (size) - : ((18446744073709551615UL))); -} - -__attribute__((__pure__)) static char * -find_field(struct linebuffer const *line) { - size_t count; - char const *lp = line->buffer; - size_t size = line->length - 1; - size_t i = 0; - - for (count = 0; count < skip_fields && i < size; count++) { - while (i < size && field_sep(lp[i])) - i++; - while (i < size && !field_sep(lp[i])) - i++; - } - - i += (((skip_chars) < (size - i)) ? (skip_chars) : (size - i)); - - return line->buffer + i; -} - -static _Bool - -different(char *old, char *new, size_t oldlen, size_t newlen) { - if (check_chars < oldlen) - oldlen = check_chars; - if (check_chars < newlen) - newlen = check_chars; - - if (ignore_case) - return oldlen != newlen || memcasecmp(old, new, oldlen); - else - return oldlen != newlen || memcmp(old, new, oldlen); -} - -static void writeline(struct linebuffer const *line, - - _Bool match, uintmax_t linecount) { - if (!(linecount == 0 ? output_unique - : !match ? output_first_repeated - : output_later_repeated)) - return; - - if (countmode == count_occurrences) - printf("%7" - "l" - "u" - " ", - linecount + 1); - - fwrite_unlocked(line->buffer, sizeof(char), line->length, stdout); -} - -static void check_file(char const *infile, char const *outfile, - char delimiter) { - struct linebuffer lb1, lb2; - struct linebuffer *thisline, *prevline; - - if (!((strcmp(infile, "-") == 0) || freopen_safer(infile, "r", stdin))) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, infile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - if (!((strcmp(outfile, "-") == 0) || freopen_safer(outfile, "w", stdout))) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, outfile)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - outfile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - outfile)), - ((0) ? (void)0 : __builtin_unreachable())))); - - fadvise(stdin, FADVISE_SEQUENTIAL); - - thisline = &lb1; - prevline = &lb2; - - initbuffer(thisline); - initbuffer(prevline); - if (output_unique && output_first_repeated && countmode == count_none) { - char *prevfield = ((void *)0); - size_t prevlen; - - _Bool first_group_printed = 0; - - while (!feof_unlocked(stdin)) { - char *thisfield; - size_t thislen; - - _Bool new_group; - - if (readlinebuffer_delim(thisline, stdin, delimiter) == 0) - break; - - thisfield = find_field(thisline); - thislen = thisline->length - 1 - (thisfield - thisline->buffer); - - new_group = - (!prevfield || different(thisfield, prevfield, thislen, prevlen)); - - if (new_group && grouping != GM_NONE && - (grouping == GM_PREPEND || grouping == GM_BOTH || - (first_group_printed && - (grouping == GM_APPEND || grouping == GM_SEPARATE)))) - putchar_unlocked(delimiter); - - if (new_group || grouping != GM_NONE) { - fwrite_unlocked(thisline->buffer, sizeof(char), thisline->length, - stdout); - - do { - struct linebuffer *_tmp; - _tmp = (prevline); - (prevline) = (thisline); - (thisline) = _tmp; - } while (0); - prevfield = thisfield; - prevlen = thislen; - first_group_printed = 1; - } - } - if ((grouping == GM_BOTH || grouping == GM_APPEND) && first_group_printed) - putchar_unlocked(delimiter); - } else { - char *prevfield; - size_t prevlen; - uintmax_t match_count = 0; - - _Bool first_delimiter = 1; - - if (readlinebuffer_delim(prevline, stdin, delimiter) == 0) - goto closefiles; - prevfield = find_field(prevline); - prevlen = prevline->length - 1 - (prevfield - prevline->buffer); - - while (!feof_unlocked(stdin)) { - - _Bool match; - char *thisfield; - size_t thislen; - if (readlinebuffer_delim(thisline, stdin, delimiter) == 0) { - if (ferror_unlocked(stdin)) - goto closefiles; - break; - } - thisfield = find_field(thisline); - thislen = thisline->length - 1 - (thisfield - thisline->buffer); - match = !different(thisfield, prevfield, thislen, prevlen); - match_count += match; - - if (match_count == (18446744073709551615UL)) { - if (count_occurrences) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"too " - "many repeated lines\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "too many repeated lines", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "too many repeated lines", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - match_count--; - } - - if (delimit_groups != DM_NONE) { - if (!match) { - if (match_count) - first_delimiter = 0; - } else if (match_count == 1) { - if ((delimit_groups == DM_PREPEND) || - (delimit_groups == DM_SEPARATE && !first_delimiter)) - putchar_unlocked(delimiter); - } - } - - if (!match || output_later_repeated) { - writeline(prevline, match, match_count); - do { - struct linebuffer *_tmp; - _tmp = (prevline); - (prevline) = (thisline); - (thisline) = _tmp; - } while (0); - prevfield = thisfield; - prevlen = thislen; - if (!match) - match_count = 0; - } - } - - writeline(prevline, 0, match_count); - } - -closefiles: - if (ferror_unlocked(stdin) || rpl_fclose(stdin) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), " - "quotearg_style (shell_escape_always_quoting_style, infile)), " - "assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, infile)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, dcgettext(((void *)0), "error reading %s", 5), - quotearg_style(shell_escape_always_quoting_style, infile)), - ((0) ? (void)0 : __builtin_unreachable())))); - - free(lb1.buffer); - free(lb2.buffer); -} - -enum Skip_field_option_type { SFO_NONE, SFO_OBSOLETE, SFO_NEW }; - -int main(int argc, char **argv) { - int optc = 0; - - _Bool posixly_correct = (getenv("POSIXLY_CORRECT") != ((void *)0)); - enum Skip_field_option_type skip_field_option_type = SFO_NONE; - unsigned int nfiles = 0; - char const *file[2]; - char delimiter = '\n'; - - _Bool output_option_used = 0; - - file[0] = file[1] = "-"; - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - skip_chars = 0; - skip_fields = 0; - check_chars = (18446744073709551615UL); - output_unique = output_first_repeated = 1; - output_later_repeated = 0; - countmode = count_none; - delimit_groups = DM_NONE; - - while (1) { - - if (optc == -1 || (posixly_correct && nfiles != 0) || - ((optc = getopt_long(argc, argv, "-0123456789Dcdf:is:uw:z", longopts, - ((void *)0))) == -1)) { - if (argc <= optind) - break; - if (nfiles == 2) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind])); - usage(1); - } - file[nfiles++] = argv[optind++]; - } else - switch (optc) { - case 1: { - uintmax_t size; - if (optarg[0] == '+' && !strict_posix2() && - xstrtoumax(optarg, ((void *)0), 10, &size, "") == LONGINT_OK && - size <= (18446744073709551615UL)) - skip_chars = size; - else if (nfiles == 2) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(optarg)); - usage(1); - } else - file[nfiles++] = optarg; - } break; - - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': { - if (skip_field_option_type == SFO_NEW) - skip_fields = 0; - - if (!((void)(&(skip_fields) == (size_t *)((void *)0)), - ((!!sizeof(struct { - _Static_assert(!(!((size_t)0 < (size_t)-1)), - "verify_expr (" - "! TYPE_SIGNED (size_t)" - ", " - "(((size_t) -1 / 10 < (skip_fields) || (size_t) " - "((skip_fields) * 10 + (optc - '0')) < " - "(skip_fields)) ? false : (((skip_fields) = " - "(skip_fields) * 10 + (optc - '0')), true))" - ")"); - int _gl_dummy; - })) - ? ((((size_t)-1 / 10 < (skip_fields) || - (size_t)((skip_fields)*10 + (optc - '0')) < - (skip_fields)) - ? 0 - : (((skip_fields) = (skip_fields)*10 + (optc - '0')), - 1))) - : ((((size_t)-1 / 10 < (skip_fields) || - (size_t)((skip_fields)*10 + (optc - '0')) < - (skip_fields)) - ? 0 - : (((skip_fields) = (skip_fields)*10 + (optc - '0')), - 1)))))) - skip_fields = (18446744073709551615UL); - - skip_field_option_type = SFO_OBSOLETE; - } break; - - case 'c': - countmode = count_occurrences; - output_option_used = 1; - break; - - case 'd': - output_unique = 0; - output_option_used = 1; - break; - - case 'D': - output_unique = 0; - output_later_repeated = 1; - if (optarg == ((void *)0)) - delimit_groups = DM_NONE; - else - delimit_groups = ((delimit_method_map)[__xargmatch_internal( - "--all-repeated", optarg, delimit_method_string, - (void const *)(delimit_method_map), sizeof *(delimit_method_map), - argmatch_die, 1)]) - - ; - output_option_used = 1; - break; - - case GROUP_OPTION: - if (optarg == ((void *)0)) - grouping = GM_SEPARATE; - else - grouping = ((grouping_method_map)[__xargmatch_internal( - "--group", optarg, grouping_method_string, - (void const *)(grouping_method_map), - sizeof *(grouping_method_map), argmatch_die, 1)]) - - ; - break; - - case 'f': - skip_field_option_type = SFO_NEW; - skip_fields = size_opt(optarg, "invalid number of fields to skip"); - break; - - case 'i': - ignore_case = 1; - break; - - case 's': - skip_chars = size_opt(optarg, "invalid number of bytes to skip"); - break; - - case 'u': - output_first_repeated = 0; - output_option_used = 1; - break; - - case 'w': - check_chars = size_opt(optarg, "invalid number of bytes to compare"); - break; - - case 'z': - delimiter = '\0'; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "uniq", "GNU coreutils", Version, - ("Richard M. Stallman"), ("David MacKenzie"), - (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (grouping != GM_NONE && output_option_used) { - error(0, 0, - dcgettext(((void *)0), - "--group is mutually exclusive with -c/-d/-D/-u", 5)); - usage(1); - } - - if (grouping != GM_NONE && countmode != count_none) { - error(0, 0, - - dcgettext(((void *)0), - "grouping and printing repeat counts is meaningless", 5)); - usage(1); - } - - if (countmode == count_occurrences && output_later_repeated) { - error(0, 0, - - dcgettext( - ((void *)0), - "printing all duplicated lines and repeat counts is meaningless", - 5)); - usage(1); - } - - check_file(file[0], file[1], delimiter); - - return 0; -} diff --git a/tests/source/coreutils/unlink.c b/tests/source/coreutils/unlink.c deleted file mode 100644 index a80fc61..0000000 --- a/tests/source/coreutils/unlink.c +++ /dev/null @@ -1,6853 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s FILE\n or: %s OPTION\n", 5) - - , - program_name, program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Call the unlink function to remove the specified FILE.\n\n", - 5), - stdout); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("unlink"); - } - exit(status); -} - -int main(int argc, char **argv) { - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - parse_gnu_standard_options_only(argc, argv, "unlink", "GNU coreutils", - Version, 1, usage, ("Michael Stone"), - (char const *)((void *)0)); - - if (argc < optind + 1) { - error(0, 0, dcgettext(((void *)0), "missing operand", 5)); - usage(1); - } - - if (optind + 1 < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 1])); - usage(1); - } - - if (unlink(argv[optind]) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot " - "unlink %s\", 5), quotearg_style (shell_escape_always_quoting_style, " - "argv[optind])), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot unlink %s", 5), - quotearg_style(shell_escape_always_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot unlink %s", 5), - quotearg_style(shell_escape_always_quoting_style, - argv[optind])), - ((0) ? (void)0 : __builtin_unreachable())))); - - return 0; -} diff --git a/tests/source/coreutils/uptime.c b/tests/source/coreutils/uptime.c deleted file mode 100644 index 2d2d0b1..0000000 --- a/tests/source/coreutils/uptime.c +++ /dev/null @@ -1,7123 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); -extern double c_strtod(char const *nptr, char **endptr); -extern long double c_strtold(char const *nptr, char **endptr); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct lastlog { - - int32_t ll_time; - - char ll_line[32]; - char ll_host[256]; -}; - -struct exit_status { - short int e_termination; - short int e_exit; -}; - -struct utmp { - short int ut_type; - pid_t ut_pid; - char ut_line[32] __attribute__((__nonstring__)); - char ut_id[4] __attribute__((__nonstring__)); - char ut_user[32] __attribute__((__nonstring__)); - char ut_host[256] __attribute__((__nonstring__)); - struct exit_status ut_exit; - - int32_t ut_session; - struct { - int32_t tv_sec; - int32_t tv_usec; - } ut_tv; - - int32_t ut_addr_v6[4]; - char __glibc_reserved[20]; -}; -extern int login_tty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern void login(const struct utmp *__entry) - __attribute__((__nothrow__, __leaf__)); - -extern int logout(const char *__ut_line) __attribute__((__nothrow__, __leaf__)); - -extern void logwtmp(const char *__ut_line, const char *__ut_name, - const char *__ut_host) - __attribute__((__nothrow__, __leaf__)); - -extern void updwtmp(const char *__wtmp_file, const struct utmp *__utmp) - __attribute__((__nothrow__, __leaf__)); - -extern int utmpname(const char *__file) __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutent(void) __attribute__((__nothrow__, __leaf__)); - -extern void setutent(void) __attribute__((__nothrow__, __leaf__)); - -extern void endutent(void) __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutid(const struct utmp *__id) - __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutline(const struct utmp *__line) - __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *pututline(const struct utmp *__utmp_ptr) - __attribute__((__nothrow__, __leaf__)); - -extern int getutent_r(struct utmp *__buffer, struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -extern int getutid_r(const struct utmp *__id, struct utmp *__buffer, - struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -extern int getutline_r(const struct utmp *__line, struct utmp *__buffer, - struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -struct __exit_status { - - short int e_termination; - short int e_exit; -}; - -struct utmpx { - short int ut_type; - __pid_t ut_pid; - char ut_line[32] __attribute__((__nonstring__)); - char ut_id[4] __attribute__((__nonstring__)); - char ut_user[32] __attribute__((__nonstring__)); - char ut_host[256] __attribute__((__nonstring__)); - struct __exit_status ut_exit; - - __int32_t ut_session; - struct { - __int32_t tv_sec; - __int32_t tv_usec; - } ut_tv; - - __int32_t ut_addr_v6[4]; - char __glibc_reserved[20]; -}; -struct utmp; - -extern void setutxent(void); - -extern void endutxent(void); - -extern struct utmpx *getutxent(void); - -extern struct utmpx *getutxid(const struct utmpx *__id); - -extern struct utmpx *getutxline(const struct utmpx *__line); - -extern struct utmpx *pututxline(const struct utmpx *__utmpx); -extern int utmpxname(const char *__file); - -extern void updwtmpx(const char *__wtmpx_file, const struct utmpx *__utmpx); -extern void getutmp(const struct utmpx *__utmpx, struct utmp *__utmp); - -extern void getutmpx(const struct utmp *__utmp, struct utmpx *__utmpx); - -typedef struct utmpx STRUCT_UTMP; - -enum { UT_USER_SIZE = sizeof(((STRUCT_UTMP *)0)->ut_user) }; -enum { READ_UTMP_CHECK_PIDS = 1, READ_UTMP_USER_PROCESS = 2 }; - -char *extract_trimmed_name(const STRUCT_UTMP *ut) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -int read_utmp(char const *file, size_t *n_entries, STRUCT_UTMP **utmp_buf, - int options); - -size_t fprintftime(FILE *fp, char const *fmt, struct tm const *tm, - timezone_t zone, int nanoseconds); -static void print_uptime(size_t n, const STRUCT_UTMP *this) { - size_t entries = 0; - time_t boot_time = 0; - time_t time_now; - time_t uptime = 0; - long int updays; - int uphours; - int upmins; - struct tm *tmn; - double avg[3]; - int loads; - - FILE *fp; - - fp = fopen("/proc/uptime", "r"); - if (fp != ((void *)0)) { - char buf[8192]; - char *b = fgets_unlocked(buf, 8192, fp); - if (b == buf) { - char *end_ptr; - double upsecs = c_strtod(buf, &end_ptr); - if (buf != end_ptr) - uptime = - (0 <= upsecs && - upsecs < - ((time_t)(!(!((time_t)0 < (time_t)-1)) - ? (time_t)-1 - : ((((time_t)1 - << ((sizeof(time_t) * 8) - 2)) - - 1) * - 2 + - 1))) - ? upsecs - : -1); - } - - rpl_fclose(fp); - } - while (n--) { - entries += (((this)->ut_user)[0] && (((this)->ut_type == (7)) || - (0 && ((this)->ut_tv.tv_sec) != 0))); - if (((this)->ut_type == (2))) - boot_time = ((this)->ut_tv.tv_sec); - ++this; - } - - time_now = time(((void *)0)); - - if (uptime == 0) - - { - if (boot_time == 0) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"couldn't get boot time\", 5)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "couldn't get boot time", 5)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "couldn't get boot time", 5)), - ((0) ? (void)0 : __builtin_unreachable())))); - uptime = time_now - boot_time; - } - updays = uptime / 86400; - uphours = (uptime - (updays * 86400)) / 3600; - upmins = (uptime - (updays * 86400) - (uphours * 3600)) / 60; - tmn = localtime(&time_now); - - if (tmn) - - fprintftime(stdout, dcgettext(((void *)0), " %H:%M:%S ", 5), tmn, 0, 0); - else - printf(dcgettext(((void *)0), " ??:???? ", 5)); - if (uptime == (time_t)-1) - printf(dcgettext(((void *)0), "up ???? days ??:??, ", 5)); - else { - if (0 < updays) - printf(dcngettext(((void *)0), "up %ld day %2d:%02d, ", - "up %ld days %2d:%02d, ", select_plural(updays), 5) - - , - updays, uphours, upmins); - else - printf(dcgettext(((void *)0), "up %2d:%02d, ", 5), uphours, upmins); - } - printf(dcngettext(((void *)0), "%lu user", "%lu users", - select_plural(entries), 5), - (unsigned long int)entries); - - loads = getloadavg(avg, 3); - - if (loads == -1) - putchar_unlocked('\n'); - else { - if (loads > 0) - printf(dcgettext(((void *)0), ", load average: %.2f", 5), avg[0]); - if (loads > 1) - printf(", %.2f", avg[1]); - if (loads > 2) - printf(", %.2f", avg[2]); - if (loads > 0) - putchar_unlocked('\n'); - } -} - -static _Noreturn void uptime(char const *filename, int options) { - size_t n_users; - STRUCT_UTMP *utmp_buf = ((void *)0); - - if (read_utmp(filename, &n_users, &utmp_buf, options) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, filename)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - filename)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - filename)), - ((0) ? (void)0 : __builtin_unreachable())))); - - print_uptime(n_users, utmp_buf); - - exit(0); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]\n", 5), - program_name); - printf(dcgettext( - ((void *)0), - "Print the current time, the length of time the system has been " - "up,\nthe number of users on the system, and the average number of " - "jobs\nin the run queue over the last 1, 5 and 15 minutes.", - 5) - - ); - - printf(dcgettext(((void *)0), - " Processes in\nan uninterruptible sleep state also " - "contribute to the load average.\n", - 5) - - ); - - printf(dcgettext( - ((void *)0), - "If FILE is not specified, use %s. %s as FILE is common.\n\n", - 5) - - , - - "/var/run/utmp", "/var/log/wtmp"); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("uptime"); - } - exit(status); -} - -int main(int argc, char **argv) { - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - parse_gnu_standard_options_only(argc, argv, "uptime", "GNU coreutils", - Version, 1, usage, ("Joseph Arceneaux"), - ("David MacKenzie"), ("Kaveh Ghazi"), - (char const *)((void *)0)); - - switch (argc - optind) { - case 0: - uptime("/var/run/utmp", READ_UTMP_CHECK_PIDS); - break; - - case 1: - uptime(argv[optind], 0); - break; - - default: - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 1])); - usage(1); - } -} diff --git a/tests/source/coreutils/users.c b/tests/source/coreutils/users.c deleted file mode 100644 index 7080b73..0000000 --- a/tests/source/coreutils/users.c +++ /dev/null @@ -1,7029 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -struct lastlog { - - int32_t ll_time; - - char ll_line[32]; - char ll_host[256]; -}; - -struct exit_status { - short int e_termination; - short int e_exit; -}; - -struct utmp { - short int ut_type; - pid_t ut_pid; - char ut_line[32] __attribute__((__nonstring__)); - char ut_id[4] __attribute__((__nonstring__)); - char ut_user[32] __attribute__((__nonstring__)); - char ut_host[256] __attribute__((__nonstring__)); - struct exit_status ut_exit; - - int32_t ut_session; - struct { - int32_t tv_sec; - int32_t tv_usec; - } ut_tv; - - int32_t ut_addr_v6[4]; - char __glibc_reserved[20]; -}; -extern int login_tty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern void login(const struct utmp *__entry) - __attribute__((__nothrow__, __leaf__)); - -extern int logout(const char *__ut_line) __attribute__((__nothrow__, __leaf__)); - -extern void logwtmp(const char *__ut_line, const char *__ut_name, - const char *__ut_host) - __attribute__((__nothrow__, __leaf__)); - -extern void updwtmp(const char *__wtmp_file, const struct utmp *__utmp) - __attribute__((__nothrow__, __leaf__)); - -extern int utmpname(const char *__file) __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutent(void) __attribute__((__nothrow__, __leaf__)); - -extern void setutent(void) __attribute__((__nothrow__, __leaf__)); - -extern void endutent(void) __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutid(const struct utmp *__id) - __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutline(const struct utmp *__line) - __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *pututline(const struct utmp *__utmp_ptr) - __attribute__((__nothrow__, __leaf__)); - -extern int getutent_r(struct utmp *__buffer, struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -extern int getutid_r(const struct utmp *__id, struct utmp *__buffer, - struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -extern int getutline_r(const struct utmp *__line, struct utmp *__buffer, - struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -struct __exit_status { - - short int e_termination; - short int e_exit; -}; - -struct utmpx { - short int ut_type; - __pid_t ut_pid; - char ut_line[32] __attribute__((__nonstring__)); - char ut_id[4] __attribute__((__nonstring__)); - char ut_user[32] __attribute__((__nonstring__)); - char ut_host[256] __attribute__((__nonstring__)); - struct __exit_status ut_exit; - - __int32_t ut_session; - struct { - __int32_t tv_sec; - __int32_t tv_usec; - } ut_tv; - - __int32_t ut_addr_v6[4]; - char __glibc_reserved[20]; -}; -struct utmp; - -extern void setutxent(void); - -extern void endutxent(void); - -extern struct utmpx *getutxent(void); - -extern struct utmpx *getutxid(const struct utmpx *__id); - -extern struct utmpx *getutxline(const struct utmpx *__line); - -extern struct utmpx *pututxline(const struct utmpx *__utmpx); -extern int utmpxname(const char *__file); - -extern void updwtmpx(const char *__wtmpx_file, const struct utmpx *__utmpx); -extern void getutmp(const struct utmpx *__utmpx, struct utmp *__utmp); - -extern void getutmpx(const struct utmp *__utmp, struct utmpx *__utmpx); - -typedef struct utmpx STRUCT_UTMP; - -enum { UT_USER_SIZE = sizeof(((STRUCT_UTMP *)0)->ut_user) }; -enum { READ_UTMP_CHECK_PIDS = 1, READ_UTMP_USER_PROCESS = 2 }; - -char *extract_trimmed_name(const STRUCT_UTMP *ut) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -int read_utmp(char const *file, size_t *n_entries, STRUCT_UTMP **utmp_buf, - int options); -static int userid_compare(const void *v_a, const void *v_b) { - char **a = (char **)v_a; - char **b = (char **)v_b; - return strcmp(*a, *b); -} - -static void list_entries_users(size_t n, const STRUCT_UTMP *this) { - char **u = xnmalloc(n, sizeof *u); - size_t i; - size_t n_entries = 0; - - while (n--) { - if ((((this)->ut_user)[0] && - (((this)->ut_type == (7)) || (0 && ((this)->ut_tv.tv_sec) != 0)))) { - char *trimmed_name; - - trimmed_name = extract_trimmed_name(this); - - u[n_entries] = trimmed_name; - ++n_entries; - } - this ++; - } - - qsort(u, n_entries, sizeof(u[0]), userid_compare); - - for (i = 0; i < n_entries; i++) { - char c = (i < n_entries - 1 ? ' ' : '\n'); - fputs_unlocked(u[i], stdout); - putchar_unlocked(c); - } - - for (i = 0; i < n_entries; i++) - free(u[i]); - free(u); -} - -static void users(char const *filename, int options) { - size_t n_users; - STRUCT_UTMP *utmp_buf; - - if (read_utmp(filename, &n_users, &utmp_buf, options) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, filename)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - filename)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - filename)), - ((0) ? (void)0 : __builtin_unreachable())))); - - list_entries_users(n_users, utmp_buf); - - free(utmp_buf); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]... [FILE]\n", 5), - program_name); - printf( - dcgettext(((void *)0), - "Output who is currently logged in according to FILE.\nIf " - "FILE is not specified, use %s. %s as FILE is common.\n\n", - 5) - - , - - "/var/run/utmp", "/var/log/wtmp"); - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("users"); - } - exit(status); -} - -int main(int argc, char **argv) { - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - parse_gnu_standard_options_only( - argc, argv, "users", "GNU coreutils", Version, 1, usage, - ("Joseph Arceneaux"), ("David MacKenzie"), (char const *)((void *)0)); - - switch (argc - optind) { - case 0: - users("/var/run/utmp", READ_UTMP_CHECK_PIDS); - break; - - case 1: - users(argv[optind], 0); - break; - - default: - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 1])); - usage(1); - } - - return 0; -} diff --git a/tests/source/coreutils/version.c b/tests/source/coreutils/version.c deleted file mode 100644 index 8d9a874..0000000 --- a/tests/source/coreutils/version.c +++ /dev/null @@ -1 +0,0 @@ -char const *Version = "9.1"; diff --git a/tests/source/coreutils/wc.c b/tests/source/coreutils/wc.c deleted file mode 100644 index 0ac3b37..0000000 --- a/tests/source/coreutils/wc.c +++ /dev/null @@ -1,9330 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef unsigned int wint_t; - -typedef __mbstate_t mbstate_t; - -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -struct tm; - -extern wchar_t *wcscpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcscat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern wchar_t *wcsncat(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int wcscmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcsncmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int wcscasecmp(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int wcscasecmp_l(const wchar_t *__s1, const wchar_t *__s2, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcsncasecmp_l(const wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll(const wchar_t *__s1, const wchar_t *__s2) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wcscoll_l(const wchar_t *__s1, const wchar_t *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsxfrm_l(wchar_t *__s1, const wchar_t *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcsdup(const wchar_t *__s) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(__builtin_free, 1))); -extern wchar_t *wcschr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsrchr(const wchar_t *__wcs, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcschrnul(const wchar_t *__s, wchar_t __wc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcscspn(const wchar_t *__wcs, const wchar_t *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsspn(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcspbrk(const wchar_t *__wcs, const wchar_t *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wcsstr(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wcstok(wchar_t *__restrict __s, - const wchar_t *__restrict __delim, - wchar_t **__restrict __ptr) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcslen(const wchar_t *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); -extern wchar_t *wcswcs(const wchar_t *__haystack, const wchar_t *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern size_t wcsnlen(const wchar_t *__s, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); -extern wchar_t *wmemchr(const wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern int wmemcmp(const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)); - -extern wchar_t *wmemcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmemset(wchar_t *__s, wchar_t __c, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wmempcpy(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t btowc(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int wctob(wint_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int mbsinit(const mbstate_t *__ps) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)); - -extern size_t mbrtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n, mbstate_t *__restrict __p) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcrtomb(char *__restrict __s, wchar_t __wc, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t __mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbrlen(const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); -extern size_t mbsrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbsnrtowcs(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsnrtombs(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps) - __attribute__((__nothrow__, __leaf__)); - -extern int wcwidth(wchar_t __c) __attribute__((__nothrow__, __leaf__)); - -extern int wcswidth(const wchar_t *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern double wcstod(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long double wcstold(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)); -extern long int wcstol(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoq(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstouq(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base) __attribute__((__nothrow__, __leaf__)); - -extern long int wcstol_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern unsigned long int wcstoul_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern long long int wcstoll_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -__extension__ extern unsigned long long int -wcstoull_l(const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern double wcstod_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern float wcstof_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern long double wcstold_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern _Float32 wcstof32_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64 wcstof64_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float128 wcstof128_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float32x wcstof32x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern _Float64x wcstof64x_l(const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *wcpcpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *wcpncpy(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern __FILE *open_wmemstream(wchar_t **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(rpl_fclose, 1))); - -extern int fwide(__FILE *__fp, int __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fwprintf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wprintf(const wchar_t *__restrict __format, ...); - -extern int swprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwprintf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwprintf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswprintf(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); - -extern int wscanf(const wchar_t *__restrict __format, ...); - -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)); -extern int fwscanf(__FILE *__restrict __stream, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_fwscanf") - - ; -extern int wscanf(const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_wscanf") - - ; -extern int swscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - ...) __asm__("" - "__isoc99_swscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg); - -extern int vwscanf(const wchar_t *__restrict __format, __gnuc_va_list __arg); - -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int vfwscanf(__FILE *__restrict __s, const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfwscanf") - - ; -extern int vwscanf(const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vwscanf") - - ; -extern int vswscanf(const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vswscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wint_t fgetwc(__FILE *__stream); -extern wint_t getwc(__FILE *__stream); - -extern wint_t getwchar(void); - -extern wint_t fputwc(wchar_t __wc, __FILE *__stream); -extern wint_t putwc(wchar_t __wc, __FILE *__stream); - -extern wint_t putwchar(wchar_t __wc); - -extern wchar_t *fgetws(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws(const wchar_t *__restrict __ws, __FILE *__restrict __stream); - -extern wint_t ungetwc(wint_t __wc, __FILE *__stream); -extern wint_t getwc_unlocked(__FILE *__stream); -extern wint_t getwchar_unlocked(void); - -extern wint_t fgetwc_unlocked(__FILE *__stream); - -extern wint_t fputwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwc_unlocked(wchar_t __wc, __FILE *__stream); -extern wint_t putwchar_unlocked(wchar_t __wc); -extern wchar_t *fgetws_unlocked(wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -extern int fputws_unlocked(const wchar_t *__restrict __ws, - __FILE *__restrict __stream); - -extern size_t wcsftime(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern size_t wcsftime_l(wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern wchar_t *__wmemcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmemcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmemcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemmove_chk(wchar_t *__s1, const wchar_t *__s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemmove_alias(wchar_t *__s1, const wchar_t *__s2, - size_t __n) __asm__("" - "wmemmove") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmemmove_chk_warn(wchar_t *__s1, const wchar_t *__s2, - size_t __n, - size_t __ns1) __asm__("" - "__wmemmove_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemmove called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemmove(wchar_t *__s1, const wchar_t *__s2, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmemmove_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmemmove_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmempcpy_chk(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmempcpy_alias(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n) __asm__("" - "wmempcpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wmempcpy_chk_warn(wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __asm__("" - "__wmempcpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmempcpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmempcpy(wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) - -{ - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_alias(__s1, __s2, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s1, 0)) / (sizeof(wchar_t)))) - ? __wmempcpy_chk_warn(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))) - : __wmempcpy_chk(__s1, __s2, __n, - (__builtin_object_size(__s1, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wmemset_chk(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_alias(wchar_t *__s, wchar_t __c, - size_t __n) __asm__("" - "wmemset") - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wmemset_chk_warn(wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) __asm__("" - "__wmemset_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wmemset called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wmemset(wchar_t *__s, wchar_t __c, size_t __n) { - return ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_alias(__s, __c, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__s, 0)) / (sizeof(wchar_t)))) - ? __wmemset_chk_warn(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))) - : __wmemset_chk(__s, __c, __n, - (__builtin_object_size(__s, 0)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscpy_alias(__dest, __src); -} - -extern wchar_t *__wcpcpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcpcpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcpcpy") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpcpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcpcpy_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcpcpy_alias(__dest, __src); -} - -extern wchar_t *__wcsncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcsncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcsncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcsncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcsncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcsncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcpncpy_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcpncpy_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcpncpy") - __attribute__((__nothrow__, __leaf__)) - - ; -extern wchar_t *__wcpncpy_chk_warn(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __asm__("" - "__wcpncpy_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "wcpncpy called with length bigger than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcpncpy(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - return ( - (((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_alias(__dest, __src, __n) - : ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= - (__builtin_object_size(__dest, 2 > 1)) / (sizeof(wchar_t)))) - ? __wcpncpy_chk_warn(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))) - : __wcpncpy_chk(__dest, __src, __n, - (__builtin_object_size(__dest, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern wchar_t *__wcscat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t * -__wcscat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __asm__("" - "wcscat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcscat(wchar_t *__restrict __dest, const wchar_t *__restrict __src) { - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcscat_chk(__dest, __src, sz / sizeof(wchar_t)); - return __wcscat_alias(__dest, __src); -} - -extern wchar_t *__wcsncat_chk(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) - __attribute__((__nothrow__, __leaf__)); -extern wchar_t *__wcsncat_alias(wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __asm__("" - "wcsncat") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -wchar_t *__attribute__((__nothrow__, __leaf__)) -wcsncat(wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) - -{ - size_t sz = __builtin_object_size(__dest, 2 > 1); - if (sz != (size_t)-1) - return __wcsncat_chk(__dest, __src, __n, sz / sizeof(wchar_t)); - return __wcsncat_alias(__dest, __src, __n); -} - -extern int __swprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int __swprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - ...) __asm__("" - "swprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -swprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - ...) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __swprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, - __builtin_va_arg_pack()); - return __swprintf_alias(__s, __n, __fmt, __builtin_va_arg_pack()); -} -extern int __vswprintf_chk(wchar_t *__restrict __s, size_t __n, int __flag, - size_t __s_len, const wchar_t *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)); - -extern int __vswprintf_alias(wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) __asm__("" - "vswprintf") - __attribute__((__nothrow__, __leaf__)) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -vswprintf(wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) - -{ - size_t sz = __builtin_object_size(__s, 2 > 1); - if (sz != (size_t)-1 || 2 > 1) - return __vswprintf_chk(__s, __n, 2 - 1, sz / sizeof(wchar_t), __fmt, __ap); - return __vswprintf_alias(__s, __n, __fmt, __ap); -} - -extern int __fwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, ...); -extern int __wprintf_chk(int __flag, const wchar_t *__restrict __format, ...); -extern int __vfwprintf_chk(__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, - __gnuc_va_list __ap); -extern int __vwprintf_chk(int __flag, const wchar_t *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -wprintf(const wchar_t *__restrict __fmt, ...) { - return __wprintf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) { - return __fwprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vwprintf(const wchar_t *__restrict __fmt, __gnuc_va_list __ap) { - return __vwprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfwprintf(__FILE *__restrict __stream, const wchar_t *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfwprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern wchar_t *__fgetws_chk(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws") - - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_chk_warn(wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgetws called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern wchar_t *__fgetws_unlocked_chk(wchar_t *__restrict __s, size_t __size, - int __n, __FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern wchar_t * -__fgetws_unlocked_alias(wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream) __asm__("" - "fgetws_unlocked") - - __attribute__((__warn_unused_result__)); -extern wchar_t *__fgetws_unlocked_chk_warn( - wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __asm__("" - "__fgetws_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgetws_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) wchar_t * -fgetws_unlocked(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(wchar_t))))) - return __fgetws_unlocked_chk_warn(__s, sz / sizeof(wchar_t), __n, __stream); - return __fgetws_unlocked_chk(__s, sz / sizeof(wchar_t), __n, __stream); -} - -extern size_t __wcrtomb_chk(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __p, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern size_t __wcrtomb_alias(char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __ps) __asm__("" - "wcrtomb") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcrtomb(char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) - -{ - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wcrtomb_chk(__s, __wchar, __ps, __builtin_object_size(__s, 2 > 1)); - return __wcrtomb_alias(__s, __wchar, __ps); -} - -extern size_t __mbsrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __mbsrtowcs_alias(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsrtowcs_chk_warn(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsrtowcs_chk(__dst, __src, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t __wcsrtombs_alias(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __wcsrtombs_chk_warn(char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_alias(__dst, __src, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsrtombs_chk_warn(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsrtombs_chk(__dst, __src, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern size_t __mbsnrtowcs_chk(wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__mbsnrtowcs_alias(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "mbsnrtowcs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t __mbsnrtowcs_chk_warn( - wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__mbsnrtowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbsnrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - mbsnrtowcs(wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_alias(__dst, __src, __nmc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbsnrtowcs_chk_warn(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbsnrtowcs_chk(__dst, __src, __nmc, __len, __ps, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcsnrtombs_chk(char *__restrict __dst, - const wchar_t **__restrict __src, size_t __nwc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)); -extern size_t -__wcsnrtombs_alias(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, - mbstate_t *__restrict __ps) __asm__("" - "wcsnrtombs") - __attribute__((__nothrow__, __leaf__)) - - ; -extern size_t -__wcsnrtombs_chk_warn(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __asm__("" - "__wcsnrtombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcsnrtombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - wcsnrtombs(char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_alias(__dst, __src, __nwc, __len, __ps) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcsnrtombs_chk_warn(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)) - : __wcsnrtombs_chk(__dst, __src, __nwc, __len, __ps, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrtowc(wchar_t *__restrict__ pwc, const char *__restrict__ s, - size_t n, mbstate_t *__restrict__ ps) - - ; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern size_t rpl_mbrlen(const char *__restrict__ s, size_t n, - mbstate_t *__restrict__ ps); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; -extern wchar_t *wcsdup(const wchar_t *s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -typedef unsigned long int wctype_t; -enum { - __ISwupper = 0, - __ISwlower = 1, - __ISwalpha = 2, - __ISwdigit = 3, - __ISwxdigit = 4, - __ISwspace = 5, - __ISwprint = 6, - __ISwgraph = 7, - __ISwblank = 8, - __ISwcntrl = 9, - __ISwpunct = 10, - __ISwalnum = 11, - - _ISwupper = - ((__ISwupper) < 8 - ? (int)((1UL << (__ISwupper)) << 24) - : ((__ISwupper) < 16 - ? (int)((1UL << (__ISwupper)) << 8) - : ((__ISwupper) < 24 ? (int)((1UL << (__ISwupper)) >> 8) - : (int)((1UL << (__ISwupper)) >> 24)))), - _ISwlower = - ((__ISwlower) < 8 - ? (int)((1UL << (__ISwlower)) << 24) - : ((__ISwlower) < 16 - ? (int)((1UL << (__ISwlower)) << 8) - : ((__ISwlower) < 24 ? (int)((1UL << (__ISwlower)) >> 8) - : (int)((1UL << (__ISwlower)) >> 24)))), - _ISwalpha = - ((__ISwalpha) < 8 - ? (int)((1UL << (__ISwalpha)) << 24) - : ((__ISwalpha) < 16 - ? (int)((1UL << (__ISwalpha)) << 8) - : ((__ISwalpha) < 24 ? (int)((1UL << (__ISwalpha)) >> 8) - : (int)((1UL << (__ISwalpha)) >> 24)))), - _ISwdigit = - ((__ISwdigit) < 8 - ? (int)((1UL << (__ISwdigit)) << 24) - : ((__ISwdigit) < 16 - ? (int)((1UL << (__ISwdigit)) << 8) - : ((__ISwdigit) < 24 ? (int)((1UL << (__ISwdigit)) >> 8) - : (int)((1UL << (__ISwdigit)) >> 24)))), - _ISwxdigit = - ((__ISwxdigit) < 8 ? (int)((1UL << (__ISwxdigit)) << 24) - : ((__ISwxdigit) < 16 - ? (int)((1UL << (__ISwxdigit)) << 8) - : ((__ISwxdigit) < 24 - ? (int)((1UL << (__ISwxdigit)) >> 8) - : (int)((1UL << (__ISwxdigit)) >> 24)))), - _ISwspace = - ((__ISwspace) < 8 - ? (int)((1UL << (__ISwspace)) << 24) - : ((__ISwspace) < 16 - ? (int)((1UL << (__ISwspace)) << 8) - : ((__ISwspace) < 24 ? (int)((1UL << (__ISwspace)) >> 8) - : (int)((1UL << (__ISwspace)) >> 24)))), - _ISwprint = - ((__ISwprint) < 8 - ? (int)((1UL << (__ISwprint)) << 24) - : ((__ISwprint) < 16 - ? (int)((1UL << (__ISwprint)) << 8) - : ((__ISwprint) < 24 ? (int)((1UL << (__ISwprint)) >> 8) - : (int)((1UL << (__ISwprint)) >> 24)))), - _ISwgraph = - ((__ISwgraph) < 8 - ? (int)((1UL << (__ISwgraph)) << 24) - : ((__ISwgraph) < 16 - ? (int)((1UL << (__ISwgraph)) << 8) - : ((__ISwgraph) < 24 ? (int)((1UL << (__ISwgraph)) >> 8) - : (int)((1UL << (__ISwgraph)) >> 24)))), - _ISwblank = - ((__ISwblank) < 8 - ? (int)((1UL << (__ISwblank)) << 24) - : ((__ISwblank) < 16 - ? (int)((1UL << (__ISwblank)) << 8) - : ((__ISwblank) < 24 ? (int)((1UL << (__ISwblank)) >> 8) - : (int)((1UL << (__ISwblank)) >> 24)))), - _ISwcntrl = - ((__ISwcntrl) < 8 - ? (int)((1UL << (__ISwcntrl)) << 24) - : ((__ISwcntrl) < 16 - ? (int)((1UL << (__ISwcntrl)) << 8) - : ((__ISwcntrl) < 24 ? (int)((1UL << (__ISwcntrl)) >> 8) - : (int)((1UL << (__ISwcntrl)) >> 24)))), - _ISwpunct = - ((__ISwpunct) < 8 - ? (int)((1UL << (__ISwpunct)) << 24) - : ((__ISwpunct) < 16 - ? (int)((1UL << (__ISwpunct)) << 8) - : ((__ISwpunct) < 24 ? (int)((1UL << (__ISwpunct)) >> 8) - : (int)((1UL << (__ISwpunct)) >> 24)))), - _ISwalnum = - ((__ISwalnum) < 8 - ? (int)((1UL << (__ISwalnum)) << 24) - : ((__ISwalnum) < 16 - ? (int)((1UL << (__ISwalnum)) << 8) - : ((__ISwalnum) < 24 ? (int)((1UL << (__ISwalnum)) >> 8) - : (int)((1UL << (__ISwalnum)) >> 24)))) -}; - -extern int iswalnum(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswalpha(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswcntrl(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswdigit(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswgraph(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswlower(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswprint(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswpunct(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswspace(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswupper(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswxdigit(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern int iswblank(wint_t __wc) __attribute__((__nothrow__, __leaf__)); -extern wctype_t wctype(const char *__property) - __attribute__((__nothrow__, __leaf__)); - -extern int iswctype(wint_t __wc, wctype_t __desc) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towlower(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -extern wint_t towupper(wint_t __wc) __attribute__((__nothrow__, __leaf__)); - -typedef const __int32_t *wctrans_t; - -extern wctrans_t wctrans(const char *__property) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towctrans(wint_t __wc, wctrans_t __desc) - __attribute__((__nothrow__, __leaf__)); - -extern int iswalnum_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswalpha_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswcntrl_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswdigit_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswgraph_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswlower_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswprint_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswpunct_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswspace_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswupper_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswxdigit_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswblank_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wctype_t wctype_l(const char *__property, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int iswctype_l(wint_t __wc, wctype_t __desc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towlower_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towupper_l(wint_t __wc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wctrans_t wctrans_l(const char *__property, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern wint_t towctrans_l(wint_t __wc, wctrans_t __desc, locale_t __locale) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -struct argv_iterator; - -enum argv_iter_err { AI_ERR_OK = 1, AI_ERR_EOF, AI_ERR_MEM, AI_ERR_READ }; - -void argv_iter_free(struct argv_iterator *) - - __attribute__((__nonnull__(1))); - -struct argv_iterator *argv_iter_init_argv(char **argv) - - __attribute__((__nonnull__(1))) - __attribute__((__malloc__(argv_iter_free, 1))); -struct argv_iterator *argv_iter_init_stream(FILE *fp) - - __attribute__((__nonnull__(1))) - __attribute__((__malloc__(argv_iter_free, 1))); -char *argv_iter(struct argv_iterator *, enum argv_iter_err *) - - __attribute__((__nonnull__(1, 2))); -size_t argv_iter_n_args(struct argv_iterator const *) __attribute__((__pure__)) -__attribute__((__nonnull__(1))); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -typedef enum { - FADVISE_NORMAL = 0, - FADVISE_SEQUENTIAL = 2, - FADVISE_NOREUSE = 5, - FADVISE_DONTNEED = 4, - FADVISE_WILLNEED = 3, - FADVISE_RANDOM = 1 - -} fadvice_t; -void fdadvise(int fd, off_t offset, off_t len, fadvice_t advice); -void fadvise(FILE *fp, fadvice_t advice); - -struct mbchar { - const char *ptr; - size_t bytes; - - _Bool wc_valid; - wchar_t wc; - char buf[24]; -}; - -typedef struct mbchar mbchar_t; -inline int mb_width_aux(wint_t wc) { - int w = wcwidth(wc); - - return (w >= 0 ? w : iswcntrl(wc) ? 0 : 1); -} -inline void mb_copy(mbchar_t *new_mbc, const mbchar_t *old_mbc) { - if (old_mbc->ptr == &old_mbc->buf[0]) { - memcpy(&new_mbc->buf[0], &old_mbc->buf[0], old_mbc->bytes); - new_mbc->ptr = &new_mbc->buf[0]; - } else - new_mbc->ptr = old_mbc->ptr; - new_mbc->bytes = old_mbc->bytes; - if ((new_mbc->wc_valid = old_mbc->wc_valid)) - new_mbc->wc = old_mbc->wc; -} -extern const unsigned int is_basic_table[]; - -inline _Bool - -is_basic(char c) { - return (is_basic_table[(unsigned char)c >> 5] >> ((unsigned char)c & 31)) & 1; -} - -double physmem_total(void); -double physmem_available(void); - -struct _obstack_chunk { - char *limit; - struct _obstack_chunk *prev; - char contents[]; -}; - -struct obstack { - size_t chunk_size; - struct _obstack_chunk *chunk; - char *object_base; - char *next_free; - char *chunk_limit; - union { - size_t i; - void *p; - } temp; - size_t alignment_mask; - - union { - void *(*plain)(size_t); - void *(*extra)(void *, size_t); - } chunkfun; - union { - void (*plain)(void *); - void (*extra)(void *, void *); - } freefun; - - void *extra_arg; - unsigned use_extra_arg : 1; - unsigned maybe_empty_object : 1; - - unsigned alloc_failed : 1; -}; - -extern void _obstack_newchunk(struct obstack *, size_t); -extern void _obstack_free(struct obstack *, void *); -extern int _obstack_begin(struct obstack *, size_t, size_t, void *(*)(size_t), - void (*)(void *)); -extern int _obstack_begin_1(struct obstack *, size_t, size_t, - void *(*)(void *, size_t), void (*)(void *, void *), - void *); -extern size_t _obstack_memory_used(struct obstack *) - - __attribute__((__pure__)); - -extern __attribute__((__noreturn__)) void (*obstack_alloc_failed_handler)(void); - -extern int obstack_exit_failure; - -struct Tokens { - size_t n_tok; - char **tok; - size_t *tok_len; - struct obstack o_data; - struct obstack o_tok; - struct obstack o_tok_len; -}; - -void readtokens0_init(struct Tokens *t); -void readtokens0_free(struct Tokens *t); - -_Bool readtokens0(FILE *in, struct Tokens *t); -extern size_t safe_read(int fd, void *buf, size_t count); - -inline int __gl_setmode(int mode) { return 0; } -inline int set_binary_mode(int fd, int mode) { return __gl_setmode(fd, mode); } - -inline void xset_binary_mode_error(void) {} - -inline void xset_binary_mode(int fd, int mode) { - if (set_binary_mode(fd, mode) < 0) - xset_binary_mode_error(); -} - -static __inline unsigned int __get_cpuid_max(unsigned int __ext, - unsigned int *__sig) { - unsigned int __eax, __ebx, __ecx, __edx; - __asm__ __volatile__("cpuid\n\t" - : "=a"(__eax), "=b"(__ebx), "=c"(__ecx), "=d"(__edx) - : "0"(__ext)); - - if (__sig) - *__sig = __ebx; - - return __eax; -} - -static __inline int __get_cpuid(unsigned int __leaf, unsigned int *__eax, - unsigned int *__ebx, unsigned int *__ecx, - unsigned int *__edx) { - unsigned int __ext = __leaf & 0x80000000; - unsigned int __maxlevel = __get_cpuid_max(__ext, 0); - - if (__maxlevel == 0 || __maxlevel < __leaf) - return 0; - - __asm__ __volatile__("cpuid\n\t" - : "=a"(*__eax), "=b"(*__ebx), "=c"(*__ecx), "=d"(*__edx) - : "0"(__leaf)); - return 1; -} - -static __inline int __get_cpuid_count(unsigned int __leaf, - unsigned int __subleaf, - unsigned int *__eax, unsigned int *__ebx, - unsigned int *__ecx, - unsigned int *__edx) { - unsigned int __ext = __leaf & 0x80000000; - unsigned int __maxlevel = __get_cpuid_max(__ext, 0); - - if (__maxlevel == 0 || __maxlevel < __leaf) - return 0; - - __asm__ __volatile__("cpuid\n\t" - : "=a"(*__eax), "=b"(*__ebx), "=c"(*__ecx), "=d"(*__edx) - : "0"(__leaf), "2"(__subleaf)); - return 1; -} - -static __inline void __cpuidex(int __cpuid_info[4], int __leaf, int __subleaf) { - __asm__ __volatile__("cpuid\n\t" - : "=a"(__cpuid_info[0]), "=b"(__cpuid_info[1]), - "=c"(__cpuid_info[2]), "=d"(__cpuid_info[3]) - : "0"(__leaf), "2"(__subleaf)); -} - -static _Bool - -wc_lines(char const *file, int fd, uintmax_t *lines_out, uintmax_t *bytes_out); - -extern _Bool - -wc_lines_avx2(char const *file, int fd, uintmax_t *lines_out, - uintmax_t *bytes_out); - -static _Bool - - (*wc_lines_p)(char const *file, int fd, uintmax_t *lines_out, - uintmax_t *bytes_out) = wc_lines; - -static _Bool debug; - -static uintmax_t total_lines; -static uintmax_t total_words; -static uintmax_t total_chars; -static uintmax_t total_bytes; -static uintmax_t max_line_length; - -static _Bool print_lines, print_words, print_chars, print_bytes; -static _Bool print_linelength; - -static int number_width; - -static _Bool have_read_stdin; - -static size_t page_size; - -static _Bool posixly_correct; - -struct fstatus { - - int failed; - - struct stat st; -}; - -enum { - DEBUG_PROGRAM_OPTION = 0x7f + 1, - FILES0_FROM_OPTION, -}; - -static struct option const longopts[] = { - {"bytes", 0, ((void *)0), 'c'}, - {"chars", 0, ((void *)0), 'm'}, - {"lines", 0, ((void *)0), 'l'}, - {"words", 0, ((void *)0), 'w'}, - {"debug", 0, ((void *)0), DEBUG_PROGRAM_OPTION}, - {"files0-from", 1, ((void *)0), FILES0_FROM_OPTION}, - {"max-line-length", 0, ((void *)0), 'L'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static _Bool - -avx2_supported(void) { - unsigned int eax = 0; - unsigned int ebx = 0; - unsigned int ecx = 0; - unsigned int edx = 0; - - _Bool getcpuid_ok = 0; - - _Bool avx_enabled = 0; - - if (__get_cpuid(1, &eax, &ebx, &ecx, &edx)) { - getcpuid_ok = 1; - if (ecx & (1 << 27)) - avx_enabled = 1; - } - - if (avx_enabled) { - eax = ebx = ecx = edx = 0; - if (!__get_cpuid_count(7, 0, &eax, &ebx, &ecx, &edx)) - getcpuid_ok = 0; - else { - if (!(ebx & (1 << 5))) - avx_enabled = 0; - } - } - - if (!getcpuid_ok) { - if (debug) - error(0, 0, "%s", dcgettext(((void *)0), "failed to get cpuid", 5)); - return 0; - } else if (!avx_enabled) { - if (debug) - error(0, 0, "%s", dcgettext(((void *)0), "avx2 support not detected", 5)); - return 0; - } else { - if (debug) - error(0, 0, "%s", - dcgettext(((void *)0), "using avx2 hardware support", 5)); - return 1; - } -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [FILE]...\n or: %s [OPTION]... " - "--files0-from=F\n", - 5) - - , - program_name, program_name); - fputs_unlocked( - dcgettext(((void *)0), - "Print newline, word, and byte counts for each FILE, and a " - "total line if\nmore than one FILE is specified. A word is " - "a non-zero-length sequence of\nprintable characters " - "delimited by white space.\n", - 5), - stdout) - - ; - - emit_stdin_note(); - - fputs_unlocked( - dcgettext(((void *)0), - "\nThe options below may be used to select which counts are " - "printed, always in\nthe following order: newline, word, " - "character, byte, maximum line length.\n -c, --bytes " - " print the byte counts\n -m, --chars print " - "the character counts\n -l, --lines print the " - "newline counts\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --files0-from=F read input from the files specified by\n " - " NUL-terminated names in file F;\n " - " If F is - then read names from standard " - "input\n -L, --max-line-length print the maximum display width\n " - " -w, --words print the word counts\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("wc"); - } - exit(status); -} - -__attribute__((__pure__)) static int iswnbspace(wint_t wc) { - return !posixly_correct && - (wc == 0x00A0 || wc == 0x2007 || wc == 0x202F || wc == 0x2060); -} - -static int isnbspace(int c) { return iswnbspace(btowc(c)); } - -static void write_counts(uintmax_t lines, uintmax_t words, uintmax_t chars, - uintmax_t bytes, uintmax_t linelength, - char const *file) { - static char const format_sp_int[] = " %*s"; - char const *format_int = format_sp_int + 1; - char buf[((((((sizeof(uintmax_t) * 8) - - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(uintmax_t))0 < (__typeof__(uintmax_t))-1))) + - 1)]; - - if (print_lines) { - printf(format_int, number_width, umaxtostr(lines, buf)); - format_int = format_sp_int; - } - if (print_words) { - printf(format_int, number_width, umaxtostr(words, buf)); - format_int = format_sp_int; - } - if (print_chars) { - printf(format_int, number_width, umaxtostr(chars, buf)); - format_int = format_sp_int; - } - if (print_bytes) { - printf(format_int, number_width, umaxtostr(bytes, buf)); - format_int = format_sp_int; - } - if (print_linelength) { - printf(format_int, number_width, umaxtostr(linelength, buf)); - } - if (file) - printf(" %s", strchr(file, '\n') ? quotearg_n_style_colon( - 0, shell_escape_quoting_style, file) - : file); - putchar_unlocked('\n'); -} - -static _Bool - -wc_lines(char const *file, int fd, uintmax_t *lines_out, uintmax_t *bytes_out) { - size_t bytes_read; - uintmax_t lines, bytes; - char buf[(16 * 1024) + 1]; - - _Bool long_lines = 0; - - if (!lines_out || !bytes_out) { - return 0; - } - - lines = bytes = 0; - - while ((bytes_read = safe_read(fd, buf, (16 * 1024))) > 0) { - - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } - - bytes += bytes_read; - - char *p = buf; - char *end = buf + bytes_read; - uintmax_t plines = lines; - - if (!long_lines) { - - while (p != end) - lines += *p++ == '\n'; - } else { - - *end = '\n'; - while ((p = rawmemchr(p, '\n')) < end) { - ++p; - ++lines; - } - } - - if (lines - plines <= bytes_read / 15) - long_lines = 1; - else - long_lines = 0; - } - - *bytes_out = bytes; - *lines_out = lines; - - return 1; -} - -static _Bool - -wc(int fd, char const *file_x, struct fstatus *fstatus, off_t current_pos) { - - _Bool ok = 1; - char buf[(16 * 1024) + 1]; - size_t bytes_read; - uintmax_t lines, words, chars, bytes, linelength; - - _Bool count_bytes, count_chars, count_complicated; - char const *file = - file_x ? file_x : dcgettext(((void *)0), "standard input", 5); - - lines = words = chars = bytes = linelength = 0; - - if ((__ctype_get_mb_cur_max()) > 1) { - count_bytes = print_bytes; - count_chars = print_chars; - } else - - { - count_bytes = print_bytes || print_chars; - count_chars = 0; - } - count_complicated = print_words || print_linelength; - - if (!count_bytes || count_chars || print_lines || count_complicated) - fdadvise(fd, 0, 0, FADVISE_SEQUENTIAL); - if (count_bytes && !count_chars && !print_lines && !count_complicated) { - - _Bool skip_read = 0; - - if (0 < fstatus->failed) - fstatus->failed = fstat(fd, &fstatus->st); - - if (!fstatus->failed && usable_st_size(&fstatus->st) && - 0 <= fstatus->st.st_size) { - size_t end_pos = fstatus->st.st_size; - if (current_pos < 0) - current_pos = lseek(fd, 0, 1); - - if (end_pos % page_size) { - bytes = end_pos < current_pos ? 0 : end_pos - current_pos; - skip_read = 1; - } else { - off_t hi_pos = - end_pos - - end_pos % (((0 < (fstatus->st).st_blksize && - (fstatus->st).st_blksize <= ((size_t)-1) / 8 + 1) - ? (fstatus->st).st_blksize - : 512) + - 1); - if (0 <= current_pos && current_pos < hi_pos && - 0 <= lseek(fd, hi_pos, 1)) - bytes = hi_pos - current_pos; - } - } - - if (!skip_read) { - fdadvise(fd, 0, 0, FADVISE_SEQUENTIAL); - while ((bytes_read = safe_read(fd, buf, (16 * 1024))) > 0) { - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - ok = 0; - break; - } - bytes += bytes_read; - } - } - } else if (!count_chars && !count_complicated) { - - if (avx2_supported()) - wc_lines_p = wc_lines_avx2; - - ok = wc_lines_p(file, fd, &lines, &bytes); - } - - else if ((__ctype_get_mb_cur_max()) > 1) { - - _Bool in_word = 0; - uintmax_t linepos = 0; - mbstate_t state = { - 0, - }; - - _Bool in_shift = 0; - size_t prev = 0; - - while ((bytes_read = safe_read(fd, buf + prev, (16 * 1024) - prev)) > 0) { - char const *p; - - mbstate_t backup_state; - - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - ok = 0; - break; - } - - bytes += bytes_read; - p = buf; - bytes_read += prev; - do { - wchar_t wide_char; - size_t n; - - _Bool wide = 1; - - if (!in_shift && is_basic(*p)) { - - n = 1; - wide_char = *p; - wide = 0; - } else { - in_shift = 1; - - backup_state = state; - - n = rpl_mbrtowc(&wide_char, p, bytes_read, &state); - if (n == (size_t)-2) { - - state = backup_state; - - break; - } - if (n == (size_t)-1) { - - p++; - bytes_read--; - continue; - } - if (mbsinit(&state)) - in_shift = 0; - if (n == 0) { - wide_char = 0; - n = 1; - } - } - - switch (wide_char) { - case '\n': - lines++; - ; - case '\r': - case '\f': - if (linepos > linelength) - linelength = linepos; - linepos = 0; - goto mb_word_separator; - case '\t': - linepos += 8 - (linepos % 8); - goto mb_word_separator; - case ' ': - linepos++; - ; - case '\v': - mb_word_separator: - words += in_word; - in_word = 0; - break; - default: - if (wide && iswprint(wide_char)) { - - if (print_linelength) { - int width = wcwidth(wide_char); - if (width > 0) - linepos += width; - } - if (iswspace(wide_char) || iswnbspace(wide_char)) - goto mb_word_separator; - in_word = 1; - } else if (!wide && ((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISprint)) { - linepos++; - if (((*__ctype_b_loc())[(int)((to_uchar(*p)))] & - (unsigned short int)_ISspace)) - goto mb_word_separator; - in_word = 1; - } - break; - } - - p += n; - bytes_read -= n; - chars++; - } while (bytes_read > 0); - - if (bytes_read > 0) { - if (bytes_read == (16 * 1024)) { - - p++; - bytes_read--; - } - memmove(buf, p, bytes_read); - } - prev = bytes_read; - } - if (linepos > linelength) - linelength = linepos; - words += in_word; - } - - else { - - _Bool in_word = 0; - uintmax_t linepos = 0; - - while ((bytes_read = safe_read(fd, buf, (16 * 1024))) > 0) { - char const *p = buf; - if (bytes_read == ((size_t)-1)) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - ok = 0; - break; - } - - bytes += bytes_read; - do { - switch (*p++) { - case '\n': - lines++; - ; - case '\r': - case '\f': - if (linepos > linelength) - linelength = linepos; - linepos = 0; - goto word_separator; - case '\t': - linepos += 8 - (linepos % 8); - goto word_separator; - case ' ': - linepos++; - ; - case '\v': - word_separator: - words += in_word; - in_word = 0; - break; - default: - if (((*__ctype_b_loc())[(int)((to_uchar(p[-1])))] & - (unsigned short int)_ISprint)) { - linepos++; - if (((*__ctype_b_loc())[(int)((to_uchar(p[-1])))] & - (unsigned short int)_ISspace) - - || isnbspace(to_uchar(p[-1]))) - goto word_separator; - in_word = 1; - } - break; - } - } while (--bytes_read); - } - if (linepos > linelength) - linelength = linepos; - words += in_word; - } - - if (count_chars < print_chars) - chars = bytes; - - write_counts(lines, words, chars, bytes, linelength, file_x); - total_lines += lines; - total_words += words; - total_chars += chars; - total_bytes += bytes; - if (linelength > max_line_length) - max_line_length = linelength; - - return ok; -} - -static _Bool - -wc_file(char const *file, struct fstatus *fstatus) { - if (!file || (strcmp(file, "-") == 0)) { - have_read_stdin = 1; - xset_binary_mode(0, 0); - return wc(0, file, fstatus, -1); - } else { - int fd = open(file, 00 | 0); - if (fd == -1) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } else { - - _Bool ok = wc(fd, file, fstatus, 0); - if (close(fd) != 0) { - error(0, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, file)); - return 0; - } - return ok; - } - } -} - -static struct fstatus *get_input_fstatus(size_t nfiles, char *const *file) { - struct fstatus *fstatus = xnmalloc(nfiles ? nfiles : 1, sizeof *fstatus); - - if (nfiles == 0 || (nfiles == 1 && ((print_lines + print_words + print_chars + - print_bytes + print_linelength) == 1))) - fstatus[0].failed = 1; - else { - for (size_t i = 0; i < nfiles; i++) - fstatus[i].failed = (!file[i] || (strcmp(file[i], "-") == 0) - ? fstat(0, &fstatus[i].st) - : stat(file[i], &fstatus[i].st)); - } - - return fstatus; -} - -__attribute__((__pure__)) static int -compute_number_width(size_t nfiles, struct fstatus const *fstatus) { - int width = 1; - - if (0 < nfiles && fstatus[0].failed <= 0) { - int minimum_width = 1; - uintmax_t regular_total = 0; - - for (size_t i = 0; i < nfiles; i++) - if (!fstatus[i].failed) { - if (((((fstatus[i].st.st_mode)) & 0170000) == (0100000))) - regular_total += fstatus[i].st.st_size; - else - minimum_width = 7; - } - - for (; 10 <= regular_total; regular_total /= 10) - width++; - if (width < minimum_width) - width = minimum_width; - } - - return width; -} - -int main(int argc, char **argv) { - - _Bool ok; - int optc; - size_t nfiles; - char **files; - char *files_from = ((void *)0); - struct fstatus *fstatus; - struct Tokens tok; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - page_size = getpagesize(); - - setvbuf(stdout, ((void *)0), 1, 0); - - posixly_correct = (getenv("POSIXLY_CORRECT") != ((void *)0)); - - print_lines = print_words = print_chars = print_bytes = 0; - print_linelength = 0; - total_lines = total_words = total_chars = total_bytes = max_line_length = 0; - - while ((optc = getopt_long(argc, argv, "clLmw", longopts, ((void *)0))) != -1) - switch (optc) { - case 'c': - print_bytes = 1; - break; - - case 'm': - print_chars = 1; - break; - - case 'l': - print_lines = 1; - break; - - case 'w': - print_words = 1; - break; - - case 'L': - print_linelength = 1; - break; - - case DEBUG_PROGRAM_OPTION: - debug = 1; - break; - - case FILES0_FROM_OPTION: - files_from = optarg; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "wc", "GNU coreutils", Version, ("Paul Rubin"), - ("David MacKenzie"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - - if (!(print_lines || print_words || print_chars || print_bytes || - print_linelength)) - print_lines = print_words = print_bytes = 1; - - _Bool read_tokens = 0; - struct argv_iterator *ai; - if (files_from) { - FILE *stream; - - if (optind < argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quotearg_style(shell_escape_always_quoting_style, argv[optind])); - fprintf(stderr, "%s\n", - - dcgettext(((void *)0), - "file operands cannot be combined with --files0-from", - 5)); - usage(1); - } - - if ((strcmp(files_from, "-") == 0)) - stream = stdin; - else { - stream = fopen(files_from, "r"); - if (stream == ((void *)0)) - ((!!sizeof(struct { - _Static_assert(1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot open %s for reading\", 5), " - "quotearg_style (shell_escape_always_quoting_style, " - "files_from)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, - files_from)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), - dcgettext(((void *)0), "cannot open %s for reading", 5), - quotearg_style(shell_escape_always_quoting_style, - files_from)), - ((0) ? (void)0 : __builtin_unreachable())))); - } - - struct stat st; - if (fstat(fileno(stream), &st) == 0 && - ((((st.st_mode)) & 0170000) == (0100000)) - - && st.st_size <= (((10 * 1024 * 1024) < (physmem_available() / 2)) - ? (10 * 1024 * 1024) - : (physmem_available() / 2))) { - read_tokens = 1; - readtokens0_init(&tok); - if (!readtokens0(stream, &tok) || rpl_fclose(stream) != 0) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, 0, dcgettext (((void *)0), \"cannot " - "read file names from %s\", 5), quotearg_style " - "(shell_escape_always_quoting_style, files_from)), " - "assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, 0, - dcgettext(((void *)0), "cannot read file names from %s", - 5), - quotearg_style(shell_escape_always_quoting_style, - files_from)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, 0, - dcgettext(((void *)0), "cannot read file names from %s", - 5), - quotearg_style(shell_escape_always_quoting_style, - files_from)), - ((0) ? (void)0 : __builtin_unreachable())))); - files = tok.tok; - nfiles = tok.n_tok; - ai = argv_iter_init_argv(files); - } else { - files = ((void *)0); - nfiles = 0; - ai = argv_iter_init_stream(stream); - } - } else { - static char *stdin_only[] = {((void *)0)}; - files = (optind < argc ? argv + optind : stdin_only); - nfiles = (optind < argc ? argc - optind : 1); - ai = argv_iter_init_argv(files); - } - - if (!ai) - xalloc_die(); - - fstatus = get_input_fstatus(nfiles, files); - number_width = compute_number_width(nfiles, fstatus); - - ok = 1; - for (int i = 0;; i++) { - - _Bool skip_file = 0; - enum argv_iter_err ai_err; - char *file_name = argv_iter(ai, &ai_err); - if (!file_name) { - switch (ai_err) { - case AI_ERR_EOF: - goto argv_iter_done; - case AI_ERR_READ: - error( - 0, (*__errno_location()), - dcgettext(((void *)0), "%s: read error", 5), - quotearg_n_style_colon(0, shell_escape_quoting_style, files_from)); - ok = 0; - goto argv_iter_done; - case AI_ERR_MEM: - xalloc_die(); - default: - - ((void)sizeof((!"unexpected error code from argv_iter") ? 1 : 0), - __extension__({ - if (!"unexpected error code from argv_iter") - ; - else - __assert_fail("!\"unexpected error code from argv_iter\"", - "src/wc.c", 938, __extension__ __PRETTY_FUNCTION__); - })); - } - } - if (files_from && (strcmp(files_from, "-") == 0) && - (strcmp(file_name, "-") == 0)) { - - error(0, 0, - dcgettext(((void *)0), - "when reading file names from stdin, " - "no file name of %s allowed", - 5) - - , - quotearg_style(shell_escape_always_quoting_style, file_name)); - skip_file = 1; - } - - if (!file_name[0]) { - - if (files_from == ((void *)0)) - error(0, 0, "%s", - dcgettext(((void *)0), "invalid zero-length file name", 5)); - else { - - unsigned long int file_number = argv_iter_n_args(ai); - error(0, 0, "%s:%lu: %s", - quotearg_n_style_colon(0, shell_escape_quoting_style, files_from), - file_number, - dcgettext(((void *)0), "invalid zero-length file name", 5)); - } - skip_file = 1; - } - - if (skip_file) - ok = 0; - else - ok &= wc_file(file_name, &fstatus[nfiles ? i : 0]); - - if (!nfiles) - fstatus[0].failed = 1; - } -argv_iter_done: - - if (ok && !files_from && argv_iter_n_args(ai) == 0) - ok &= wc_file(((void *)0), &fstatus[0]); - - if (read_tokens) - readtokens0_free(&tok); - - if (1 < argv_iter_n_args(ai)) - write_counts(total_lines, total_words, total_chars, total_bytes, - max_line_length, dcgettext(((void *)0), "total", 5)); - - argv_iter_free(ai); - - free(fstatus); - - if (have_read_stdin && close(0) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"-\"), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "-"), - ((0) ? (void)0 : __builtin_unreachable())))); - - return ok ? 0 : 1; -} diff --git a/tests/source/coreutils/who.c b/tests/source/coreutils/who.c deleted file mode 100644 index 2174f38..0000000 --- a/tests/source/coreutils/who.c +++ /dev/null @@ -1,8262 +0,0 @@ - - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -struct option { - const char *name; - - int has_arg; - int *flag; - int val; -}; - -extern int getopt_long(int ___argc, char *const *___argv, - const char *__shortopts, const struct option *__longopts, - int *__longind) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 3))); -extern int getopt_long_only(int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert_perror_fail(int __errnum, const char *__file, - unsigned int __line, const char *__function) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -extern void __assert(const char *__assertion, const char *__file, int __line) - __attribute__((__nothrow__, __leaf__)) __attribute__((__noreturn__)); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -inline _Bool - -c_isalnum(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isalpha(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isascii(int c) { - switch (c) { - case ' ': - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_isblank(int c) { - return c == ' ' || c == '\t'; -} - -inline _Bool - -c_iscntrl(int c) { - switch (c) { - case '\a': - case '\b': - case '\f': - case '\n': - case '\r': - case '\t': - case '\v': - case '\x00': - case '\x01': - case '\x02': - case '\x03': - case '\x04': - case '\x05': - case '\x06': - case '\x0e': - case '\x0f': - case '\x10': - case '\x11': - case '\x12': - case '\x13': - case '\x14': - case '\x15': - case '\x16': - case '\x17': - case '\x18': - case '\x19': - case '\x1a': - case '\x1b': - case '\x1c': - case '\x1d': - case '\x1e': - case '\x1f': - case '\x7f': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isgraph(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_islower(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isprint(int c) { - switch (c) { - case ' ': - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - case '!': - case '"': - case ' case ' a ' + (' A ' - ' a '): case ' b ' + (' A ' - ' a '): case ' c ' + (' A ' - ' a '): case ' d ' + (' A ' - ' a '): case ' e ' + (' A ' - ' a '): case ' f ' + (' A ' - ' a '): case ' g ' + (' A ' - ' a '): case ' h ' + (' A ' - ' a '): case ' i ' + (' A ' - ' a '): case ' j ' + (' A ' - ' a '): case ' k ' + (' A ' - ' a '): case ' l ' + (' A ' - ' a '): case ' m ' + (' A ' - ' a '): case ' n ' + (' A ' - ' a '): case ' o ' + (' A ' - ' a '): case ' p ' + (' A ' - ' a '): case ' q ' + (' A ' - ' a '): case ' r ' + (' A ' - ' a '): case ' s ' + (' A ' - ' a '): case ' t ' + (' A ' - ' a '): case ' u' + (' A ' - ' a '): case ' v ' + (' A ' - ' a '): case ' w ' + (' A ' - ' a '): case ' x ' + (' A ' - ' a '): case ' y ' + (' A ' - ' a '): case ' z ' + (' A ' - ' a'): return 1; - default: - return 0; - } -} - -inline _Bool - -c_ispunct(int c) { - switch (c) { - case '!': - case '"': - case ' return 1; default: - return 0; - } -} - -inline _Bool - -c_isspace(int c) { - switch (c) { - case ' ': - case '\t': - case '\n': - case '\v': - case '\f': - case '\r': - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isupper(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline _Bool - -c_isxdigit(int c) { - switch (c) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - return 1; - default: - return 0; - } -} - -inline int c_tolower(int c) { - switch (c) { - case 'a' + ('A' - 'a'): - case 'b' + ('A' - 'a'): - case 'c' + ('A' - 'a'): - case 'd' + ('A' - 'a'): - case 'e' + ('A' - 'a'): - case 'f' + ('A' - 'a'): - case 'g' + ('A' - 'a'): - case 'h' + ('A' - 'a'): - case 'i' + ('A' - 'a'): - case 'j' + ('A' - 'a'): - case 'k' + ('A' - 'a'): - case 'l' + ('A' - 'a'): - case 'm' + ('A' - 'a'): - case 'n' + ('A' - 'a'): - case 'o' + ('A' - 'a'): - case 'p' + ('A' - 'a'): - case 'q' + ('A' - 'a'): - case 'r' + ('A' - 'a'): - case 's' + ('A' - 'a'): - case 't' + ('A' - 'a'): - case 'u' + ('A' - 'a'): - case 'v' + ('A' - 'a'): - case 'w' + ('A' - 'a'): - case 'x' + ('A' - 'a'): - case 'y' + ('A' - 'a'): - case 'z' + ('A' - 'a'): - return c - 'A' + 'a'; - default: - return c; - } -} - -inline int c_toupper(int c) { - switch (c) { - case 'a' + (0): - case 'b' + (0): - case 'c' + (0): - case 'd' + (0): - case 'e' + (0): - case 'f' + (0): - case 'g' + (0): - case 'h' + (0): - case 'i' + (0): - case 'j' + (0): - case 'k' + (0): - case 'l' + (0): - case 'm' + (0): - case 'n' + (0): - case 'o' + (0): - case 'p' + (0): - case 'q' + (0): - case 'r' + (0): - case 's' + (0): - case 't' + (0): - case 'u' + (0): - case 'v' + (0): - case 'w' + (0): - case 'x' + (0): - case 'y' + (0): - case 'z' + (0): - return c - 'a' + 'A'; - default: - return c; - } -} - -char *canon_host(char const *host) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -char *canon_host_r(char const *host, int *cherror) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); - -const char *ch_strerror(void); - -struct lastlog { - - int32_t ll_time; - - char ll_line[32]; - char ll_host[256]; -}; - -struct exit_status { - short int e_termination; - short int e_exit; -}; - -struct utmp { - short int ut_type; - pid_t ut_pid; - char ut_line[32] __attribute__((__nonstring__)); - char ut_id[4] __attribute__((__nonstring__)); - char ut_user[32] __attribute__((__nonstring__)); - char ut_host[256] __attribute__((__nonstring__)); - struct exit_status ut_exit; - - int32_t ut_session; - struct { - int32_t tv_sec; - int32_t tv_usec; - } ut_tv; - - int32_t ut_addr_v6[4]; - char __glibc_reserved[20]; -}; -extern int login_tty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern void login(const struct utmp *__entry) - __attribute__((__nothrow__, __leaf__)); - -extern int logout(const char *__ut_line) __attribute__((__nothrow__, __leaf__)); - -extern void logwtmp(const char *__ut_line, const char *__ut_name, - const char *__ut_host) - __attribute__((__nothrow__, __leaf__)); - -extern void updwtmp(const char *__wtmp_file, const struct utmp *__utmp) - __attribute__((__nothrow__, __leaf__)); - -extern int utmpname(const char *__file) __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutent(void) __attribute__((__nothrow__, __leaf__)); - -extern void setutent(void) __attribute__((__nothrow__, __leaf__)); - -extern void endutent(void) __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutid(const struct utmp *__id) - __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *getutline(const struct utmp *__line) - __attribute__((__nothrow__, __leaf__)); - -extern struct utmp *pututline(const struct utmp *__utmp_ptr) - __attribute__((__nothrow__, __leaf__)); - -extern int getutent_r(struct utmp *__buffer, struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -extern int getutid_r(const struct utmp *__id, struct utmp *__buffer, - struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -extern int getutline_r(const struct utmp *__line, struct utmp *__buffer, - struct utmp **__result) - __attribute__((__nothrow__, __leaf__)); - -struct __exit_status { - - short int e_termination; - short int e_exit; -}; - -struct utmpx { - short int ut_type; - __pid_t ut_pid; - char ut_line[32] __attribute__((__nonstring__)); - char ut_id[4] __attribute__((__nonstring__)); - char ut_user[32] __attribute__((__nonstring__)); - char ut_host[256] __attribute__((__nonstring__)); - struct __exit_status ut_exit; - - __int32_t ut_session; - struct { - __int32_t tv_sec; - __int32_t tv_usec; - } ut_tv; - - __int32_t ut_addr_v6[4]; - char __glibc_reserved[20]; -}; -struct utmp; - -extern void setutxent(void); - -extern void endutxent(void); - -extern struct utmpx *getutxent(void); - -extern struct utmpx *getutxid(const struct utmpx *__id); - -extern struct utmpx *getutxline(const struct utmpx *__line); - -extern struct utmpx *pututxline(const struct utmpx *__utmpx); -extern int utmpxname(const char *__file); - -extern void updwtmpx(const char *__wtmpx_file, const struct utmpx *__utmpx); -extern void getutmp(const struct utmpx *__utmpx, struct utmp *__utmp); - -extern void getutmpx(const struct utmp *__utmp, struct utmpx *__utmpx); - -typedef struct utmpx STRUCT_UTMP; - -enum { UT_USER_SIZE = sizeof(((STRUCT_UTMP *)0)->ut_user) }; -enum { READ_UTMP_CHECK_PIDS = 1, READ_UTMP_USER_PROCESS = 2 }; - -char *extract_trimmed_name(const STRUCT_UTMP *ut) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -int read_utmp(char const *file, size_t *n_entries, STRUCT_UTMP **utmp_buf, - int options); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -extern _Bool hard_locale(int category); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); -static _Bool do_lookup; - -static _Bool short_list; - -static _Bool short_output; - -static _Bool include_idle; - -static _Bool include_heading; - -static _Bool include_mesg; - -static _Bool include_exit; - -static _Bool need_boottime; - -static _Bool need_deadprocs; - -static _Bool need_login; - -static _Bool need_initspawn; - -static _Bool need_clockchange; - -static _Bool need_runlevel; - -static _Bool need_users; - -static _Bool my_line_only; - -static char const *time_format; -static int time_format_width; - -enum { LOOKUP_OPTION = 0x7f + 1 }; - -static struct option const longopts[] = { - {"all", 0, ((void *)0), 'a'}, - {"boot", 0, ((void *)0), 'b'}, - {"count", 0, ((void *)0), 'q'}, - {"dead", 0, ((void *)0), 'd'}, - {"heading", 0, ((void *)0), 'H'}, - {"login", 0, ((void *)0), 'l'}, - {"lookup", 0, ((void *)0), LOOKUP_OPTION}, - {"message", 0, ((void *)0), 'T'}, - {"mesg", 0, ((void *)0), 'T'}, - {"process", 0, ((void *)0), 'p'}, - {"runlevel", 0, ((void *)0), 'r'}, - {"short", 0, ((void *)0), 's'}, - {"time", 0, ((void *)0), 't'}, - {"users", 0, ((void *)0), 'u'}, - {"writable", 0, ((void *)0), 'T'}, - {"help", 0, ((void *)0), GETOPT_HELP_CHAR}, - {"version", 0, ((void *)0), GETOPT_VERSION_CHAR}, - {((void *)0), 0, ((void *)0), 0}}; - -static char const *idle_string(time_t when, time_t boottime) { - static time_t now = ((time_t) ~( - (time_t)(!(!((time_t)0 < (time_t)-1)) - ? (time_t)-1 - : ((((time_t)1 << ((sizeof(time_t) * 8) - 2)) - 1) * 2 + - 1)))); - - if (now == - ((time_t) ~( - (time_t)(!(!((time_t)0 < (time_t)-1)) - ? (time_t)-1 - : ((((time_t)1 << ((sizeof(time_t) * 8) - 2)) - 1) * 2 + - 1))))) - time(&now); - - if (boottime < when && now - 24 * 60 * 60 < when && when <= now) { - int seconds_idle = now - when; - if (seconds_idle < 60) - return " . "; - else { - static char idle_hhmm[6]; - - ((void)sizeof((seconds_idle / (60 * 60) < 24) ? 1 : 0), __extension__({ - if (seconds_idle / (60 * 60) < 24) - ; - else - __assert_fail("seconds_idle / (60 * 60) < 24", "src/who.c", 205, - __extension__ __PRETTY_FUNCTION__); - })); - sprintf(idle_hhmm, "%02d:%02d", seconds_idle / (60 * 60), - (seconds_idle % (60 * 60)) / 60); - return idle_hhmm; - } - } - - return dcgettext(((void *)0), " old ", 5); -} - -static char const *time_string(const STRUCT_UTMP *utmp_ent) { - static char buf[(((((sizeof(intmax_t) * 8) - - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(intmax_t))0 < (__typeof__(intmax_t))-1))) + - sizeof "-%m-%d %H:%M"]; - - time_t t = ((utmp_ent)->ut_tv.tv_sec); - struct tm *tmp = localtime(&t); - - if (tmp) { - strftime(buf, sizeof buf, time_format, tmp); - return buf; - } else - return timetostr(t, buf); -} - -static void print_line(int userlen, char const *user, const char state, - int linelen, char const *line, char const *time_str, - char const *idle, char const *pid, char const *comment, - char const *exitstr) { - static char mesg[3] = {' ', 'x', '\0'}; - char *buf; - char x_idle[1 + 6 + 1]; - char x_pid[1 + - (((((sizeof(pid_t) * 8) - - (!((__typeof__(pid_t))0 < (__typeof__(pid_t))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(pid_t))0 < (__typeof__(pid_t))-1))) + - 1]; - char *x_exitstr; - int err; - - mesg[1] = state; - - if (include_idle && !short_output && strlen(idle) < sizeof x_idle - 1) - sprintf(x_idle, " %-6s", idle); - else - *x_idle = '\0'; - - if (!short_output && strlen(pid) < sizeof x_pid - 1) - sprintf(x_pid, " %10s", pid); - else - *x_pid = '\0'; - - x_exitstr = xmalloc( - include_exit - ? 1 + (((12) > (strlen(exitstr))) ? (12) : (strlen(exitstr))) + 1 - : 1); - if (include_exit) - sprintf(x_exitstr, " %-12s", exitstr); - else - *x_exitstr = '\0'; - - err = rpl_asprintf(&buf, - "%-8.*s" - "%s" - " %-12.*s" - " %-*s" - "%s" - "%s" - " %-8s" - "%s", - userlen, user ? user : " .", include_mesg ? mesg : "", - linelen, line, time_format_width, time_str, x_idle, x_pid, - - comment, x_exitstr); - if (err == -1) - xalloc_die(); - - { - - char *p = buf + strlen(buf); - while (*--p == ' ') - ; - *(p + 1) = '\0'; - } - - puts(buf); - free(buf); - free(x_exitstr); -} - -static _Bool - -is_tty_writable(struct stat const *pstat) { - return pstat->st_mode & (0200 >> 3); -} - -static void print_user(const STRUCT_UTMP *utmp_ent, time_t boottime) { - struct stat stats; - time_t last_change; - char mesg; - char idlestr[6 + 1]; - static char *hoststr; - - static size_t hostlen; - - char line[sizeof(utmp_ent->ut_line) + (sizeof("/dev/") - 1) + 1]; - char *p = line; - char pidstr[(((((sizeof(utmp_ent->ut_pid) * 8) - - (!((__typeof__(utmp_ent->ut_pid))0 < - (__typeof__(utmp_ent->ut_pid))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(utmp_ent->ut_pid))0 < - (__typeof__(utmp_ent->ut_pid))-1))) + - 1]; - sprintf(pidstr, "%ld", (long int)(utmp_ent->ut_pid)); - - if (!(((utmp_ent->ut_line)[0]) == '/')) - p = stpcpy(p, "/dev/"); - stzncpy(p, utmp_ent->ut_line, sizeof(utmp_ent->ut_line)); - - if (stat(line, &stats) == 0) { - mesg = is_tty_writable(&stats) ? '+' : '-'; - last_change = stats.st_atim.tv_sec; - } else { - mesg = '?'; - last_change = 0; - } - - if (last_change) - sprintf(idlestr, "%.*s", 6, idle_string(last_change, boottime)); - else - sprintf(idlestr, " ?"); - - if (utmp_ent->ut_host[0]) { - char ut_host[sizeof(utmp_ent->ut_host) + 1]; - char *host = ((void *)0); - char *display = ((void *)0); - - stzncpy(ut_host, utmp_ent->ut_host, sizeof(utmp_ent->ut_host)); - - display = strchr(ut_host, ':'); - if (display) - *display++ = '\0'; - - if (*ut_host && do_lookup) { - - host = canon_host(ut_host); - } - - if (!host) - host = ut_host; - - if (display) { - if (hostlen < strlen(host) + strlen(display) + 4) { - hostlen = strlen(host) + strlen(display) + 4; - free(hoststr); - hoststr = xmalloc(hostlen); - } - sprintf(hoststr, "(%s:%s)", host, display); - } else { - if (hostlen < strlen(host) + 3) { - hostlen = strlen(host) + 3; - free(hoststr); - hoststr = xmalloc(hostlen); - } - sprintf(hoststr, "(%s)", host); - } - - if (host != ut_host) - free(host); - } else { - if (hostlen < 1) { - hostlen = 1; - free(hoststr); - hoststr = xmalloc(hostlen); - } - *hoststr = '\0'; - } - - print_line(sizeof((utmp_ent)->ut_user), ((utmp_ent)->ut_user), mesg, - sizeof utmp_ent->ut_line, utmp_ent->ut_line, time_string(utmp_ent), - idlestr, pidstr, hoststr ? hoststr : "", ""); -} - -static void print_boottime(const STRUCT_UTMP *utmp_ent) { - print_line(-1, "", ' ', -1, dcgettext(((void *)0), "system boot", 5), - time_string(utmp_ent), "", "", "", ""); -} - -static char *make_id_equals_comment(STRUCT_UTMP const *utmp_ent) { - size_t utmpsize = sizeof((utmp_ent)->ut_id); - char *comment = - xmalloc(strlen(dcgettext(((void *)0), "id=", 5)) + utmpsize + 1); - - char *p = stpcpy(comment, dcgettext(((void *)0), "id=", 5)); - stzncpy(p, ((utmp_ent)->ut_id), utmpsize); - return comment; -} - -static void print_deadprocs(const STRUCT_UTMP *utmp_ent) { - static char *exitstr; - char *comment = make_id_equals_comment(utmp_ent); - char pidstr[(((((sizeof(utmp_ent->ut_pid) * 8) - - (!((__typeof__(utmp_ent->ut_pid))0 < - (__typeof__(utmp_ent->ut_pid))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(utmp_ent->ut_pid))0 < - (__typeof__(utmp_ent->ut_pid))-1))) + - 1]; - sprintf(pidstr, "%ld", (long int)(utmp_ent->ut_pid)); - - if (!exitstr) - exitstr = - xmalloc(strlen(dcgettext(((void *)0), "term=", 5)) + - (((((sizeof(((utmp_ent)->ut_exit.e_termination)) * 8) - - (!((__typeof__(((utmp_ent)->ut_exit.e_termination)))0 < - (__typeof__(((utmp_ent)->ut_exit.e_termination)))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(((utmp_ent)->ut_exit.e_termination)))0 < - (__typeof__(((utmp_ent)->ut_exit.e_termination)))-1))) + - 1 + strlen(dcgettext(((void *)0), "exit=", 5)) + - (((((sizeof(((utmp_ent)->ut_exit.e_exit)) * 8) - - (!((__typeof__(((utmp_ent)->ut_exit.e_exit)))0 < - (__typeof__(((utmp_ent)->ut_exit.e_exit)))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(((utmp_ent)->ut_exit.e_exit)))0 < - (__typeof__(((utmp_ent)->ut_exit.e_exit)))-1))) + - 1); - sprintf(exitstr, "%s%d %s%d", dcgettext(((void *)0), "term=", 5), - ((utmp_ent)->ut_exit.e_termination), - - dcgettext(((void *)0), "exit=", 5), ((utmp_ent)->ut_exit.e_exit)); - - print_line(-1, "", ' ', sizeof utmp_ent->ut_line, utmp_ent->ut_line, - time_string(utmp_ent), "", pidstr, comment, exitstr); - free(comment); -} - -static void print_login(const STRUCT_UTMP *utmp_ent) { - char *comment = make_id_equals_comment(utmp_ent); - char pidstr[(((((sizeof(utmp_ent->ut_pid) * 8) - - (!((__typeof__(utmp_ent->ut_pid))0 < - (__typeof__(utmp_ent->ut_pid))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(utmp_ent->ut_pid))0 < - (__typeof__(utmp_ent->ut_pid))-1))) + - 1]; - sprintf(pidstr, "%ld", (long int)(utmp_ent->ut_pid)); - - print_line(-1, dcgettext(((void *)0), "LOGIN", 5), ' ', - sizeof utmp_ent->ut_line, utmp_ent->ut_line, time_string(utmp_ent), - "", pidstr, comment, ""); - free(comment); -} - -static void print_initspawn(const STRUCT_UTMP *utmp_ent) { - char *comment = make_id_equals_comment(utmp_ent); - char pidstr[(((((sizeof(utmp_ent->ut_pid) * 8) - - (!((__typeof__(utmp_ent->ut_pid))0 < - (__typeof__(utmp_ent->ut_pid))-1))) * - 146 + - 484) / - 485) + - (!((__typeof__(utmp_ent->ut_pid))0 < - (__typeof__(utmp_ent->ut_pid))-1))) + - 1]; - sprintf(pidstr, "%ld", (long int)(utmp_ent->ut_pid)); - - print_line(-1, "", ' ', sizeof utmp_ent->ut_line, utmp_ent->ut_line, - time_string(utmp_ent), "", pidstr, comment, ""); - free(comment); -} - -static void print_clockchange(const STRUCT_UTMP *utmp_ent) { - - print_line(-1, "", ' ', -1, dcgettext(((void *)0), "clock change", 5), - time_string(utmp_ent), "", "", "", ""); -} - -static void print_runlevel(const STRUCT_UTMP *utmp_ent) { - static char *runlevline, *comment; - unsigned char last = ((utmp_ent)->ut_pid) / 256; - unsigned char curr = ((utmp_ent)->ut_pid) % 256; - - if (!runlevline) - runlevline = xmalloc(strlen(dcgettext(((void *)0), "run-level", 5)) + 3); - sprintf(runlevline, "%s %c", dcgettext(((void *)0), "run-level", 5), curr); - - if (!comment) - comment = xmalloc(strlen(dcgettext(((void *)0), "last=", 5)) + 2); - sprintf(comment, "%s%c", dcgettext(((void *)0), "last=", 5), - (last == 'N') ? 'S' : last); - - print_line(-1, "", ' ', -1, runlevline, time_string(utmp_ent), "", "", - c_isprint(last) ? comment : "", ""); - - return; -} - -static void list_entries_who(size_t n, const STRUCT_UTMP *utmp_buf) { - unsigned long int entries = 0; - char const *separator = ""; - - while (n--) { - if ((((utmp_buf)->ut_user)[0] && - (((utmp_buf)->ut_type == (7)) || - (0 && ((utmp_buf)->ut_tv.tv_sec) != 0)))) { - char *trimmed_name; - - trimmed_name = extract_trimmed_name(utmp_buf); - - printf("%s%s", separator, trimmed_name); - free(trimmed_name); - separator = " "; - entries++; - } - utmp_buf++; - } - printf ( - dcgettext (((void *)0), - "\n , 5) - , entries); -} - -static void print_heading(void) { - print_line( - -1, dcgettext(((void *)0), "NAME", 5), ' ', -1, - dcgettext(((void *)0), "LINE", 5), dcgettext(((void *)0), "TIME", 5), - dcgettext(((void *)0), "IDLE", 5), - - dcgettext(((void *)0), "PID", 5), dcgettext(((void *)0), "COMMENT", 5), - dcgettext(((void *)0), "EXIT", 5)); -} - -static void scan_entries(size_t n, const STRUCT_UTMP *utmp_buf) { - char *ttyname_b = ((void *)0); - time_t boottime = ((time_t) ~( - (time_t)(!(!((time_t)0 < (time_t)-1)) - ? (time_t)-1 - : ((((time_t)1 << ((sizeof(time_t) * 8) - 2)) - 1) * 2 + - 1)))); - - if (include_heading) - print_heading(); - - if (my_line_only) { - ttyname_b = ttyname(0); - if (!ttyname_b) - return; - if (strncmp(ttyname_b, - "" - "/dev/" - "", - sizeof("/dev/") - 1) == 0) - ttyname_b += (sizeof("/dev/") - 1); - } - - while (n--) { - if (!my_line_only || (strncmp(ttyname_b, utmp_buf->ut_line, - sizeof(utmp_buf->ut_line)) == 0)) { - if (need_users && (((utmp_buf)->ut_user)[0] && - (((utmp_buf)->ut_type == (7)) || - (0 && ((utmp_buf)->ut_tv.tv_sec) != 0)))) - print_user(utmp_buf, boottime); - else if (need_runlevel && ((utmp_buf)->ut_type == (1))) - print_runlevel(utmp_buf); - else if (need_boottime && ((utmp_buf)->ut_type == (2))) - print_boottime(utmp_buf); - - else if (need_clockchange && ((utmp_buf)->ut_type == (3))) - print_clockchange(utmp_buf); - else if (need_initspawn && ((utmp_buf)->ut_type == (5))) - print_initspawn(utmp_buf); - else if (need_login && ((utmp_buf)->ut_type == (6))) - print_login(utmp_buf); - else if (need_deadprocs && ((utmp_buf)->ut_type == (8))) - print_deadprocs(utmp_buf); - } - - if (((utmp_buf)->ut_type == (2))) - boottime = ((utmp_buf)->ut_tv.tv_sec); - - utmp_buf++; - } -} - -static void who(char const *filename, int options) { - size_t n_users; - STRUCT_UTMP *utmp_buf; - - if (read_utmp(filename, &n_users, &utmp_buf, options) != 0) - ((!!sizeof(struct { - _Static_assert( - 1, - "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon " - "(0, shell_escape_quoting_style, filename)), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - filename)), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error(1, (*__errno_location()), "%s", - quotearg_n_style_colon(0, shell_escape_quoting_style, - filename)), - ((0) ? (void)0 : __builtin_unreachable())))); - - if (short_list) - list_entries_who(n_users, utmp_buf); - else - scan_entries(n_users, utmp_buf); - - free(utmp_buf); -} - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), - "Usage: %s [OPTION]... [ FILE | ARG1 ARG2 ]\n", 5), - program_name); - fputs_unlocked( - dcgettext( - ((void *)0), - "Print information about users who are currently logged in.\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - "\n -a, --all same as -b -d --login -p -r -t -T " - "-u\n -b, --boot time of last system boot\n -d, " - "--dead print dead processes\n -H, --heading " - "print line of column headings\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -l, --login print system login processes\n", 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " --lookup attempt to canonicalize hostnames via DNS\n " - "-m only hostname and user associated with stdin\n " - "-p, --process print active processes spawned by init\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext( - ((void *)0), - " -q, --count all login names and number of users logged " - "on\n -r, --runlevel print current runlevel\n -s, --short " - " print only name, line, and time (default)\n -t, --time " - "print last system clock change\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " -T, -w, --mesg add user's message status as +, - or " - "?\n -u, --users list users logged in\n " - "--message same as -T\n --writable same as -T\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - printf( - dcgettext( - ((void *)0), - "\nIf FILE is not specified, use %s. %s as FILE is common.\nIf " - "ARG1 ARG2 given, -m presumed: 'am i' or 'mom likes' are usual.\n", - 5) - - , - "/var/run/utmp", "/var/log/wtmp"); - emit_ancillary_info("who"); - } - exit(status); -} - -int main(int argc, char **argv) { - int optc; - - _Bool assumptions = 1; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - while ((optc = getopt_long(argc, argv, "abdlmpqrstuwHT", longopts, - ((void *)0))) != -1) { - switch (optc) { - case 'a': - need_boottime = 1; - need_deadprocs = 1; - need_login = 1; - need_initspawn = 1; - need_runlevel = 1; - need_clockchange = 1; - need_users = 1; - include_mesg = 1; - include_idle = 1; - include_exit = 1; - assumptions = 0; - break; - - case 'b': - need_boottime = 1; - assumptions = 0; - break; - - case 'd': - need_deadprocs = 1; - include_idle = 1; - include_exit = 1; - assumptions = 0; - break; - - case 'H': - include_heading = 1; - break; - - case 'l': - need_login = 1; - include_idle = 1; - assumptions = 0; - break; - - case 'm': - my_line_only = 1; - break; - - case 'p': - need_initspawn = 1; - assumptions = 0; - break; - - case 'q': - short_list = 1; - break; - - case 'r': - need_runlevel = 1; - include_idle = 1; - assumptions = 0; - break; - - case 's': - short_output = 1; - break; - - case 't': - need_clockchange = 1; - assumptions = 0; - break; - - case 'T': - case 'w': - include_mesg = 1; - break; - - case 'u': - need_users = 1; - include_idle = 1; - assumptions = 0; - break; - - case LOOKUP_OPTION: - do_lookup = 1; - break; - - case GETOPT_HELP_CHAR: - usage(0); - break; - ; - - case GETOPT_VERSION_CHAR: - version_etc(stdout, "who", "GNU coreutils", Version, ("Joseph Arceneaux"), - ("David MacKenzie"), ("Michael Stone"), (char *)((void *)0)); - exit(0); - break; - ; - - default: - usage(1); - } - } - - if (assumptions) { - need_users = 1; - short_output = 1; - } - - if (include_exit) { - short_output = 0; - } - - if (hard_locale(2)) { - time_format = "%Y-%m-%d %H:%M"; - time_format_width = 4 + 1 + 2 + 1 + 2 + 1 + 2 + 1 + 2; - } else { - time_format = "%b %e %H:%M"; - time_format_width = 3 + 1 + 2 + 1 + 2 + 1 + 2; - } - - switch (argc - optind) { - case 2: - my_line_only = 1; - ; - case -1: - case 0: - who("/var/run/utmp", READ_UTMP_CHECK_PIDS); - break; - - case 1: - who(argv[optind], 0); - break; - - default: - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind + 2])); - usage(1); - } - - return 0; -} diff --git a/tests/source/coreutils/whoami.c b/tests/source/coreutils/whoami.c deleted file mode 100644 index f35f695..0000000 --- a/tests/source/coreutils/whoami.c +++ /dev/null @@ -1,6901 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct passwd { - char *pw_name; - char *pw_passwd; - - __uid_t pw_uid; - __gid_t pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; -extern void setpwent(void); - -extern void endpwent(void); - -extern struct passwd *getpwent(void); -extern struct passwd *fgetpwent(FILE *__stream) __attribute__((__nonnull__(1))); - -extern int putpwent(const struct passwd *__restrict __p, FILE *__restrict __f); - -extern struct passwd *getpwuid(__uid_t __uid); - -extern struct passwd *getpwnam(const char *__name) - __attribute__((__nonnull__(1))); -extern int getpwent_r(struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 4))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpwuid_r(__uid_t __uid, struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int getpwnam_r(const char *__restrict __name, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int fgetpwent_r(FILE *__restrict __stream, - struct passwd *__restrict __resultbuf, - char *__restrict __buffer, size_t __buflen, - struct passwd **__restrict __result) - __attribute__((__nonnull__(1, 2, 3, 5))) - __attribute__((__access__(__write_only__, 3, 4))); -extern int getpw(__uid_t __uid, char *__buffer); - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; - -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -extern struct quoting_options quote_quoting_options; - -char const *quote_n_mem(int n, char const *arg, size_t argsize); - -char const *quote_mem(char const *arg, size_t argsize); - -char const *quote_n(int n, char const *arg); - -char const *quote(char const *arg); - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf(dcgettext(((void *)0), "Usage: %s [OPTION]...\n", 5), program_name); - fputs_unlocked(dcgettext(((void *)0), - "Print the user name associated with the current " - "effective user ID.\nSame as id -un.\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("whoami"); - } - exit(status); -} - -int main(int argc, char **argv) { - struct passwd *pw; - uid_t uid; - uid_t NO_UID = -1; - - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - parse_gnu_standard_options_only(argc, argv, "whoami", "GNU coreutils", - Version, 1, usage, ("Richard Mlynarik"), - (char const *)((void *)0)); - - if (optind != argc) { - error(0, 0, dcgettext(((void *)0), "extra operand %s", 5), - quote(argv[optind])); - usage(1); - } - - (*__errno_location()) = 0; - uid = geteuid(); - pw = (uid == NO_UID && (*__errno_location()) ? ((void *)0) : getpwuid(uid)); - if (!pw) - ((!!sizeof(struct { - _Static_assert(1, "verify_expr (" - "1" - ", " - "(error (1, (*__errno_location ()), dcgettext (((void " - "*)0), \"cannot find name for user ID %lu\", 5), " - "(unsigned long int) uid), assume (false))" - ")"); - int _gl_dummy; - })) - ? ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "cannot find name for user ID %lu", 5), - (unsigned long int)uid), - ((0) ? (void)0 : __builtin_unreachable()))) - : ((error( - 1, (*__errno_location()), - dcgettext(((void *)0), "cannot find name for user ID %lu", 5), - (unsigned long int)uid), - ((0) ? (void)0 : __builtin_unreachable())))); - puts(pw->pw_name); - return 0; -} diff --git a/tests/source/coreutils/yes.c b/tests/source/coreutils/yes.c deleted file mode 100644 index 7a3a3c3..0000000 --- a/tests/source/coreutils/yes.c +++ /dev/null @@ -1,6855 +0,0 @@ - - -typedef long unsigned int size_t; - -typedef __builtin_va_list __gnuc_va_list; - -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; - -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; - -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; - -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; - -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; - -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; - -typedef int __daddr_t; -typedef int __key_t; - -typedef int __clockid_t; - -typedef void *__timer_t; - -typedef long int __blksize_t; - -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; - -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; - -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; - -typedef long int __fsword_t; - -typedef long int __ssize_t; - -typedef long int __syscall_slong_t; - -typedef unsigned long int __syscall_ulong_t; - -typedef __off64_t __loff_t; -typedef char *__caddr_t; - -typedef long int __intptr_t; - -typedef unsigned int __socklen_t; - -typedef int __sig_atomic_t; - -typedef struct { - int __count; - union { - unsigned int __wch; - char __wchb[4]; - } __value; -} __mbstate_t; - -typedef struct _G_fpos_t { - __off_t __pos; - __mbstate_t __state; -} __fpos_t; -typedef struct _G_fpos64_t { - __off64_t __pos; - __mbstate_t __state; -} __fpos64_t; - -struct _IO_FILE; -typedef struct _IO_FILE __FILE; - -struct _IO_FILE; - -typedef struct _IO_FILE FILE; -struct _IO_FILE; -struct _IO_marker; -struct _IO_codecvt; -struct _IO_wide_data; - -typedef void _IO_lock_t; - -struct _IO_FILE { - int _flags; - - char *_IO_read_ptr; - char *_IO_read_end; - char *_IO_read_base; - char *_IO_write_base; - char *_IO_write_ptr; - char *_IO_write_end; - char *_IO_buf_base; - char *_IO_buf_end; - - char *_IO_save_base; - char *_IO_backup_base; - char *_IO_save_end; - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; - int _flags2; - __off_t _old_offset; - - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - _IO_lock_t *_lock; - - __off64_t _offset; - - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t __pad5; - int _mode; - - char _unused2[15 * sizeof(int) - 4 * sizeof(void *) - sizeof(size_t)]; -}; - -typedef __ssize_t cookie_read_function_t(void *__cookie, char *__buf, - size_t __nbytes); - -typedef __ssize_t cookie_write_function_t(void *__cookie, const char *__buf, - size_t __nbytes); - -typedef int cookie_seek_function_t(void *__cookie, __off64_t *__pos, int __w); - -typedef int cookie_close_function_t(void *__cookie); - -typedef struct _IO_cookie_io_functions_t { - cookie_read_function_t *read; - cookie_write_function_t *write; - cookie_seek_function_t *seek; - cookie_close_function_t *close; -} cookie_io_functions_t; - -typedef __gnuc_va_list va_list; -typedef __off_t off_t; - -typedef __off64_t off64_t; - -typedef __ssize_t ssize_t; - -typedef __fpos_t fpos_t; - -typedef __fpos64_t fpos64_t; -extern FILE *stdin; -extern FILE *stdout; -extern FILE *stderr; - -extern int remove(const char *__filename) - __attribute__((__nothrow__, __leaf__)); - -extern int rename(const char *__old, const char *__new) - __attribute__((__nothrow__, __leaf__)); - -extern int renameat(int __oldfd, const char *__old, int __newfd, - const char *__new) __attribute__((__nothrow__, __leaf__)); -extern int renameat2(int __oldfd, const char *__old, int __newfd, - const char *__new, unsigned int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int fclose(FILE *__stream); -extern FILE *tmpfile(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *tmpfile64(void) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern char *tmpnam(char[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern char *tmpnam_r(char __s[20]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *tempnam(const char *__dir, const char *__pfx) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__warn_unused_result__)) - __attribute__((__malloc__(__builtin_free, 1))); - -extern int fflush(FILE *__stream); -extern int fflush_unlocked(FILE *__stream); -extern int fcloseall(void); -extern FILE *fopen(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); - -extern FILE *freopen(const char *__restrict __filename, - const char *__restrict __modes, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern FILE *fopen64(const char *__restrict __filename, - const char *__restrict __modes) __attribute__((__malloc__)) -__attribute__((__malloc__(fclose, 1))) __attribute__((__warn_unused_result__)); -extern FILE *freopen64(const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern FILE *fdopen(int __fd, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fopencookie(void *__restrict __magic_cookie, - const char *__restrict __modes, - cookie_io_functions_t __io_funcs) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *fmemopen(void *__s, size_t __len, const char *__modes) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); - -extern FILE *open_memstream(char **__bufloc, size_t *__sizeloc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__malloc__(fclose, 1))) - __attribute__((__warn_unused_result__)); -extern void setbuf(FILE *__restrict __stream, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern int setvbuf(FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern void setbuffer(FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __attribute__((__nothrow__, __leaf__)); - -extern void setlinebuf(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int fprintf(FILE *__restrict __stream, const char *__restrict __format, - ...); - -extern int printf(const char *__restrict __format, ...); - -extern int sprintf(char *__restrict __s, const char *__restrict __format, ...) - __attribute__((__nothrow__)); - -extern int vfprintf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg); - -extern int vprintf(const char *__restrict __format, __gnuc_va_list __arg); - -extern int vsprintf(char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__)); - -extern int snprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 4))); - -extern int vsnprintf(char *__restrict __s, size_t __maxlen, - const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 3, 0))); - -extern int vasprintf(char **__restrict __ptr, const char *__restrict __f, - __gnuc_va_list __arg) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))) -__attribute__((__warn_unused_result__)); -extern int __asprintf(char **__restrict __ptr, const char *__restrict __fmt, - ...) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 3))) -__attribute__((__warn_unused_result__)); -extern int asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int vdprintf(int __fd, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 2, 0))); -extern int dprintf(int __fd, const char *__restrict __fmt, ...) - __attribute__((__format__(__printf__, 2, 3))); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __attribute__((__warn_unused_result__)); - -extern int scanf(const char *__restrict __format, ...) - __attribute__((__warn_unused_result__)); - -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)); - -extern int fscanf(FILE *__restrict __stream, const char *__restrict __format, - ...) __asm__("" - "__isoc99_fscanf") - - __attribute__((__warn_unused_result__)); -extern int scanf(const char *__restrict __format, ...) __asm__("" - "__isoc99_scanf") - __attribute__((__warn_unused_result__)); -extern int sscanf(const char *__restrict __s, const char *__restrict __format, - ...) __asm__("" - "__isoc99_sscanf") - __attribute__((__nothrow__, __leaf__)) - - ; -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); - -extern int vscanf(const char *__restrict __format, __gnuc_va_list __arg) - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); - -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__scanf__, 2, 0))); - -extern int vfscanf(FILE *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vfscanf") - - __attribute__((__format__(__scanf__, 2, 0))) - __attribute__((__warn_unused_result__)); -extern int vscanf(const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vscanf") - - __attribute__((__format__(__scanf__, 1, 0))) - __attribute__((__warn_unused_result__)); -extern int vsscanf(const char *__restrict __s, const char *__restrict __format, - __gnuc_va_list __arg) __asm__("" - "__isoc99_vsscanf") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__format__(__scanf__, 2, 0))); -extern int fgetc(FILE *__stream); -extern int getc(FILE *__stream); - -extern int getchar(void); - -extern int getc_unlocked(FILE *__stream); -extern int getchar_unlocked(void); -extern int fgetc_unlocked(FILE *__stream); -extern int fputc(int __c, FILE *__stream); -extern int putc(int __c, FILE *__stream); - -extern int putchar(int __c); -extern int fputc_unlocked(int __c, FILE *__stream); - -extern int putc_unlocked(int __c, FILE *__stream); -extern int putchar_unlocked(int __c); - -extern int getw(FILE *__stream); - -extern int putw(int __w, FILE *__stream); - -extern char *fgets(char *__restrict __s, int __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *fgets_unlocked(char *__restrict __s, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern __ssize_t __getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern __ssize_t getdelim(char **__restrict __lineptr, size_t *__restrict __n, - int __delimiter, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern __ssize_t getline(char **__restrict __lineptr, size_t *__restrict __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern int fputs(const char *__restrict __s, FILE *__restrict __stream); - -extern int puts(const char *__s); - -extern int ungetc(int __c, FILE *__stream); - -extern size_t fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); - -extern size_t fwrite(const void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __s); -extern int fputs_unlocked(const char *__restrict __s, - FILE *__restrict __stream); -extern size_t fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t fwrite_unlocked(const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); - -extern int fseek(FILE *__stream, long int __off, int __whence); - -extern long int ftell(FILE *__stream) __attribute__((__warn_unused_result__)); - -extern void rewind(FILE *__stream); -extern int fseeko(FILE *__stream, __off_t __off, int __whence); - -extern __off_t ftello(FILE *__stream) __attribute__((__warn_unused_result__)); -extern int fgetpos(FILE *__restrict __stream, fpos_t *__restrict __pos); - -extern int fsetpos(FILE *__stream, const fpos_t *__pos); -extern int fseeko64(FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64(FILE *__stream) - __attribute__((__warn_unused_result__)); -extern int fgetpos64(FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64(FILE *__stream, const fpos64_t *__pos); - -extern void clearerr(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int feof(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ferror(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void clearerr_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)); -extern int feof_unlocked(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern int ferror_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern void perror(const char *__s); - -extern int fileno(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int fileno_unlocked(FILE *__stream) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int pclose(FILE *__stream); - -extern FILE *popen(const char *__command, const char *__modes) - __attribute__((__malloc__)) __attribute__((__malloc__(pclose, 1))) - __attribute__((__warn_unused_result__)); - -extern char *ctermid(char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1))); - -extern char *cuserid(char *__s) __attribute__((__access__(__write_only__, 1))); - -struct obstack; - -extern int obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __attribute__((__nothrow__)) __attribute__((__format__(__printf__, 2, 3))); -extern int obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __format, - __gnuc_va_list __args) __attribute__((__nothrow__)) -__attribute__((__format__(__printf__, 2, 0))); - -extern void flockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); - -extern int ftrylockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void funlockfile(FILE *__stream) __attribute__((__nothrow__, __leaf__)); -extern int __uflow(FILE *); -extern int __overflow(FILE *, int); - -extern int __sprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern int __vsprintf_chk(char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - sprintf(char *__restrict __s, const char *__restrict __fmt, ...) { - return __builtin___sprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsprintf(char *__restrict __s, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsprintf_chk(__s, 2 - 1, __builtin_object_size(__s, 2 > 1), - __fmt, __ap); -} - -extern int __snprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __vsnprintf_chk(char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - __gnuc_va_list __ap) - __attribute__((__nothrow__, __leaf__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) int __attribute__((__nothrow__, __leaf__)) -snprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) - -{ - return __builtin___snprintf_chk(__s, __n, 2 - 1, - __builtin_object_size(__s, 2 > 1), __fmt, - __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vsnprintf(char *__restrict __s, size_t __n, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __builtin___vsnprintf_chk( - __s, __n, 2 - 1, __builtin_object_size(__s, 2 > 1), __fmt, __ap); -} - -extern int __fprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk(int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk(FILE *__restrict __stream, int __flag, - const char *__restrict __format, __gnuc_va_list __ap); -extern int __vprintf_chk(int __flag, const char *__restrict __format, - __gnuc_va_list __ap); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -fprintf(FILE *__restrict __stream, const char *__restrict __fmt, ...) { - return __fprintf_chk(__stream, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -printf(const char *__restrict __fmt, ...) { - return __printf_chk(2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vprintf(const char *__restrict __fmt, __gnuc_va_list __ap) { - - return __vprintf_chk(2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vfprintf(FILE *__restrict __stream, const char *__restrict __fmt, - __gnuc_va_list __ap) { - return __vfprintf_chk(__stream, 2 - 1, __fmt, __ap); -} - -extern int __dprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__((__format__(__printf__, 3, 4))); -extern int __vdprintf_chk(int __fd, int __flag, const char *__restrict __fmt, - __gnuc_va_list __arg) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -dprintf(int __fd, const char *__restrict __fmt, ...) { - return __dprintf_chk(__fd, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -vdprintf(int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { - return __vdprintf_chk(__fd, 2 - 1, __fmt, __ap); -} - -extern int __asprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 4))) - __attribute__((__warn_unused_result__)); -extern int __vasprintf_chk(char **__restrict __ptr, int __flag, - const char *__restrict __fmt, __gnuc_va_list __arg) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))) - __attribute__((__warn_unused_result__)); -extern int __obstack_printf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format__(__printf__, 3, 4))); -extern int __obstack_vprintf_chk(struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - __gnuc_va_list __args) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__format__(__printf__, 3, 0))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) { - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - __asprintf(char **__restrict __ptr, const char *__restrict __fmt, ...) - -{ - return __asprintf_chk(__ptr, 2 - 1, __fmt, __builtin_va_arg_pack()); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_printf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...) - -{ - return __obstack_printf_chk(__obstack, 2 - 1, __fmt, __builtin_va_arg_pack()); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - vasprintf(char **__restrict __ptr, const char *__restrict __fmt, - __gnuc_va_list __ap) - -{ - return __vasprintf_chk(__ptr, 2 - 1, __fmt, __ap); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - obstack_vprintf(struct obstack *__restrict __obstack, - const char *__restrict __fmt, __gnuc_va_list __ap) - -{ - return __obstack_vprintf_chk(__obstack, 2 - 1, __fmt, __ap); -} -extern char *__fgets_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char *__fgets_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_chk_warn(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("fgets called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_chk_warn(__s, sz, __n, __stream); - return __fgets_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t __fread_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_chk_warn(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread called with bigger size * nmemb than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_alias(__ptr, __size, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_chk(__ptr, sz, __size, __n, __stream); -} - -extern char *__fgets_unlocked_chk(char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 3))); -extern char * -__fgets_unlocked_alias(char *__restrict __s, int __n, - FILE *__restrict __stream) __asm__("" - "fgets_unlocked") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__fgets_unlocked_chk_warn( - char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __asm__("" - "__fgets_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fgets_unlocked called with bigger size than length " - "of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1, 2))) char * -fgets_unlocked(char *__restrict __s, int __n, FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__s, 2 > 1); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - (((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_alias(__s, __n, __stream); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__n)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(__n)) <= (sz) / (sizeof(char))))) - return __fgets_unlocked_chk_warn(__s, sz, __n, __stream); - return __fgets_unlocked_chk(__s, sz, __n, __stream); -} - -extern size_t __fread_unlocked_chk(void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) - __attribute__((__warn_unused_result__)); -extern size_t -__fread_unlocked_alias(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "fread_unlocked") - - __attribute__((__warn_unused_result__)); -extern size_t __fread_unlocked_chk_warn( - void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, - FILE *__restrict __stream) __asm__("" - "__fread_unlocked_chk") - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) size_t -fread_unlocked(void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) { - size_t sz = __builtin_object_size(__ptr, 0); - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - (((long unsigned int)(__n)) <= (sz) / (__size)))) { - return __fread_unlocked_alias(__ptr, __size, __n, __stream); - } - if ((((__typeof(__n))0 < (__typeof(__n))-1 || - (__builtin_constant_p(__n) && (__n) > 0)) && - __builtin_constant_p((((long unsigned int)(__n)) <= (sz) / (__size))) && - !(((long unsigned int)(__n)) <= (sz) / (__size)))) - return __fread_unlocked_chk_warn(__ptr, sz, __size, __n, __stream); - return __fread_unlocked_chk(__ptr, sz, __size, __n, __stream); -} - -typedef long int ptrdiff_t; -typedef int wchar_t; -typedef struct { - long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); - long double __max_align_ld - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; - -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; - -typedef __loff_t loff_t; - -typedef __ino_t ino_t; - -typedef __ino64_t ino64_t; - -typedef __dev_t dev_t; - -typedef __gid_t gid_t; - -typedef __mode_t mode_t; - -typedef __nlink_t nlink_t; - -typedef __uid_t uid_t; -typedef __pid_t pid_t; - -typedef __id_t id_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; - -typedef __key_t key_t; - -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; - -typedef __timer_t timer_t; - -typedef __useconds_t useconds_t; - -typedef __suseconds_t suseconds_t; - -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; - -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; - -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; - -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - - return __builtin_bswap16(__bsx); -} - -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - - return __builtin_bswap32(__bsx); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - - return __builtin_bswap64(__bsx); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { return __x; } - -static __inline __uint32_t __uint32_identity(__uint32_t __x) { return __x; } - -static __inline __uint64_t __uint64_identity(__uint64_t __x) { return __x; } - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; - -typedef __sigset_t sigset_t; - -struct timeval { - - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - - __time_t tv_sec; - - __syscall_slong_t tv_nsec; -}; -typedef long int __fd_mask; -typedef struct { - - __fd_mask fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; - -} fd_set; - -typedef __fd_mask fd_mask; - -extern int select(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); -extern int pselect(int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -extern long int __fdelt_chk(long int __d); -extern long int __fdelt_warn(long int __d) - __attribute__((__warning__("bit outside of fd_set selected"))); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; - -typedef __blksize_t blksize_t; - -typedef __blkcnt_t blkcnt_t; - -typedef __fsblkcnt_t fsblkcnt_t; - -typedef __fsfilcnt_t fsfilcnt_t; -typedef __blkcnt64_t blkcnt64_t; -typedef __fsblkcnt64_t fsblkcnt64_t; -typedef __fsfilcnt64_t fsfilcnt64_t; - -typedef union { - __extension__ unsigned long long int __value64; - struct { - unsigned int __low; - unsigned int __high; - } __value32; -} __atomic_wide_counter; - -typedef struct __pthread_internal_list { - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; - -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - - unsigned int __nusers; - - int __kind; - - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - - int __cur_writer; - int __shared; - signed char __rwelision; - - unsigned char __pad1[7]; - - unsigned long int __pad2; - - unsigned int __flags; -}; - -struct __pthread_cond_s { - __atomic_wide_counter __wseq; - __atomic_wide_counter __g1_start; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; - -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; - -typedef struct { - int __data; -} __once_flag; - -typedef unsigned long int pthread_t; - -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; - -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; - -typedef unsigned int pthread_key_t; - -typedef int pthread_once_t; - -union pthread_attr_t { - char __size[56]; - long int __align; -}; - -typedef union pthread_attr_t pthread_attr_t; - -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; - -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; - -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; - -typedef volatile int pthread_spinlock_t; - -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; - -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; - -extern int rpl_fclose(FILE *stream) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fdopen(int fd, const char *mode) __attribute__((__nonnull__(2))) -__attribute__((__malloc__(rpl_fclose, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fflush(FILE *gl_stream); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *fopen(const char *__restrict__ filename, - const char *__restrict__ mode) - __attribute__((__nonnull__(1, 2))) - __attribute__((__malloc__(rpl_fclose, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int fpurge(FILE *gl_stream) __attribute__((__nonnull__(1))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseek(FILE *fp, long offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fseeko(FILE *fp, off_t offset, int whence) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern FILE *tmpfile(void) __attribute__((__malloc__(rpl_fclose, 1))) - -; -extern int rpl_asprintf(char **result, const char *format, ...) - __attribute__((__format__(__gnu_printf__, 2, 3))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int rpl_vasprintf(char **result, const char *format, va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_vfprintf(FILE *__restrict__ fp, const char *__restrict__ format, - va_list args) - __attribute__((__format__(__gnu_printf__, 2, 0))) - __attribute__((__nonnull__(1, 2))) - - ; - -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int rpl_vprintf(const char *__restrict__ format, va_list args) - __attribute__((__format__(__gnu_printf__, 1, 0))) - __attribute__((__nonnull__(1))) - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timex { - unsigned int modes; - __syscall_slong_t offset; - __syscall_slong_t freq; - __syscall_slong_t maxerror; - __syscall_slong_t esterror; - int status; - __syscall_slong_t constant; - __syscall_slong_t precision; - __syscall_slong_t tolerance; - struct timeval time; - __syscall_slong_t tick; - __syscall_slong_t ppsfreq; - __syscall_slong_t jitter; - int shift; - __syscall_slong_t stabil; - __syscall_slong_t jitcnt; - __syscall_slong_t calcnt; - __syscall_slong_t errcnt; - __syscall_slong_t stbcnt; - - int tai; - - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; - int : 32; -}; - -extern int clock_adjtime(__clockid_t __clock_id, struct timex *__utx) - __attribute__((__nothrow__, __leaf__)); - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - - long int tm_gmtoff; - const char *tm_zone; -}; - -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - - struct __locale_data *__locales[13]; - - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - const char *__names[13]; -}; - -typedef struct __locale_struct *__locale_t; - -typedef __locale_t locale_t; - -extern clock_t clock(void) __attribute__((__nothrow__, __leaf__)); - -extern time_t time(time_t *__timer) __attribute__((__nothrow__, __leaf__)); - -extern double difftime(time_t __time1, time_t __time0) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern time_t mktime(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern size_t strftime(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime(const char *__restrict __s, const char *__restrict __fmt, - struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern size_t strftime_l(char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, locale_t __loc) - __attribute__((__nothrow__, __leaf__)); - -extern char *strptime_l(const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - locale_t __loc) __attribute__((__nothrow__, __leaf__)); - -extern struct tm *gmtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern struct tm *gmtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); - -extern struct tm *localtime_r(const time_t *__restrict __timer, - struct tm *__restrict __tp) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime(const struct tm *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime(const time_t *__timer) - __attribute__((__nothrow__, __leaf__)); -extern char *asctime_r(const struct tm *__restrict __tp, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); - -extern char *ctime_r(const time_t *__restrict __timer, char *__restrict __buf) - __attribute__((__nothrow__, __leaf__)); -extern char *__tzname[2]; -extern int __daylight; -extern long int __timezone; - -extern char *tzname[2]; - -extern void tzset(void) __attribute__((__nothrow__, __leaf__)); - -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); - -extern time_t timelocal(struct tm *__tp) __attribute__((__nothrow__, __leaf__)); -extern int dysize(int __year) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -extern int nanosleep(const struct timespec *__requested_time, - struct timespec *__remaining); - -extern int clock_getres(clockid_t __clock_id, struct timespec *__res) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_gettime(clockid_t __clock_id, struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); - -extern int clock_settime(clockid_t __clock_id, const struct timespec *__tp) - __attribute__((__nothrow__, __leaf__)); -extern int clock_nanosleep(clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t *__clock_id) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_create(clockid_t __clock_id, struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_delete(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_settime(timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) - __attribute__((__nothrow__, __leaf__)); - -extern int timer_gettime(timer_t __timerid, struct itimerspec *__value) - __attribute__((__nothrow__, __leaf__)); -extern int timer_getoverrun(timer_t __timerid) - __attribute__((__nothrow__, __leaf__)); - -extern int timespec_get(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int timespec_getres(struct timespec *__ts, int __base) - __attribute__((__nothrow__, __leaf__)); -extern int getdate_err; -extern struct tm *getdate(const char *__string); -extern int getdate_r(const char *__restrict __string, - struct tm *__restrict __resbufp); - -struct __time_t_must_be_integral { - unsigned int __floating_time_t_unsupported : (time_t)1; -}; -extern int rpl_nanosleep(struct timespec const *__rqtp, struct timespec *__rmtp) - __attribute__((__nonnull__(1))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -typedef struct tm_zone *timezone_t; -extern timezone_t tzalloc(char const *__name); -extern int _gl_cxxalias_dummy; - -extern void tzfree(timezone_t __tz); -extern int _gl_cxxalias_dummy; - -extern struct tm *localtime_rz(timezone_t __tz, - time_t const *__restrict__ __timer, - struct tm *__restrict__ __result) - __attribute__((__nonnull__(2, 3))) - - ; -extern int _gl_cxxalias_dummy - - ; - -extern time_t mktime_z(timezone_t __tz, struct tm *__restrict__ __tm) - __attribute__((__nonnull__(2))) - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -struct stat { - - __dev_t st_dev; - - __ino_t st_ino; - - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - - __dev_t st_rdev; - - __off_t st_size; - - __blksize_t st_blksize; - - __blkcnt_t st_blocks; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; - -struct stat64 { - - __dev_t st_dev; - - __ino64_t st_ino; - __nlink_t st_nlink; - __mode_t st_mode; - - __uid_t st_uid; - __gid_t st_gid; - - int __pad0; - __dev_t st_rdev; - __off_t st_size; - - __blksize_t st_blksize; - __blkcnt64_t st_blocks; - - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; - __syscall_slong_t __glibc_reserved[3]; -}; -extern int stat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int fstat(int __fd, struct stat *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int stat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int fstat64(int __fd, struct stat64 *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int fstatat(int __fd, const char *__restrict __file, - struct stat *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int fstatat64(int __fd, const char *__restrict __file, - struct stat64 *__restrict __buf, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern int lstat(const char *__restrict __file, struct stat *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int lstat64(const char *__restrict __file, - struct stat64 *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int chmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int lchmod(const char *__file, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int fchmod(int __fd, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)); - -extern int fchmodat(int __fd, const char *__file, __mode_t __mode, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern __mode_t umask(__mode_t __mask) __attribute__((__nothrow__, __leaf__)); - -extern __mode_t getumask(void) __attribute__((__nothrow__, __leaf__)); - -extern int mkdir(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkdirat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mknod(const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mknodat(int __fd, const char *__path, __mode_t __mode, __dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int mkfifo(const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int mkfifoat(int __fd, const char *__path, __mode_t __mode) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int utimensat(int __fd, const char *__path, - const struct timespec __times[2], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); -extern int futimens(int __fd, const struct timespec __times[2]) - __attribute__((__nothrow__, __leaf__)); - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; - -typedef struct { - unsigned long fds_bits[1024 / (8 * sizeof(long))]; -} __kernel_fd_set; - -typedef void (*__kernel_sighandler_t)(int); - -typedef int __kernel_key_t; -typedef int __kernel_mqd_t; - -typedef unsigned short __kernel_old_uid_t; -typedef unsigned short __kernel_old_gid_t; - -typedef unsigned long __kernel_old_dev_t; - -typedef long __kernel_long_t; -typedef unsigned long __kernel_ulong_t; - -typedef __kernel_ulong_t __kernel_ino_t; - -typedef unsigned int __kernel_mode_t; - -typedef int __kernel_pid_t; - -typedef int __kernel_ipc_pid_t; - -typedef unsigned int __kernel_uid_t; -typedef unsigned int __kernel_gid_t; - -typedef __kernel_long_t __kernel_suseconds_t; - -typedef int __kernel_daddr_t; - -typedef unsigned int __kernel_uid32_t; -typedef unsigned int __kernel_gid32_t; -typedef __kernel_ulong_t __kernel_size_t; -typedef __kernel_long_t __kernel_ssize_t; -typedef __kernel_long_t __kernel_ptrdiff_t; - -typedef struct { - int val[2]; -} __kernel_fsid_t; - -typedef __kernel_long_t __kernel_off_t; -typedef long long __kernel_loff_t; -typedef __kernel_long_t __kernel_old_time_t; -typedef __kernel_long_t __kernel_time_t; -typedef long long __kernel_time64_t; -typedef __kernel_long_t __kernel_clock_t; -typedef int __kernel_timer_t; -typedef int __kernel_clockid_t; -typedef char *__kernel_caddr_t; -typedef unsigned short __kernel_uid16_t; -typedef unsigned short __kernel_gid16_t; -typedef __u16 __le16; -typedef __u16 __be16; -typedef __u32 __le32; -typedef __u32 __be32; -typedef __u64 __le64; -typedef __u64 __be64; - -typedef __u16 __sum16; -typedef __u32 __wsum; -typedef unsigned __poll_t; -struct statx_timestamp { - __s64 tv_sec; - __u32 tv_nsec; - __s32 __reserved; -}; -struct statx { - - __u32 stx_mask; - __u32 stx_blksize; - __u64 stx_attributes; - - __u32 stx_nlink; - __u32 stx_uid; - __u32 stx_gid; - __u16 stx_mode; - __u16 __spare0[1]; - - __u64 stx_ino; - __u64 stx_size; - __u64 stx_blocks; - __u64 stx_attributes_mask; - - struct statx_timestamp stx_atime; - struct statx_timestamp stx_btime; - struct statx_timestamp stx_ctime; - struct statx_timestamp stx_mtime; - - __u32 stx_rdev_major; - __u32 stx_rdev_minor; - __u32 stx_dev_major; - __u32 stx_dev_minor; - - __u64 stx_mnt_id; - __u64 __spare2; - - __u64 __spare3[12]; -}; - -int statx(int __dirfd, const char *__restrict __path, int __flags, - unsigned int __mask, struct statx *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 5))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_mknod(char const *file, mode_t mode, dev_t dev) - __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern long int __sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -typedef __sig_atomic_t sig_atomic_t; - -union sigval { - int sival_int; - void *sival_ptr; -}; - -typedef union sigval __sigval_t; -typedef struct { - int si_signo; - - int si_errno; - - int si_code; - - int __pad0; - - union { - int _pad[((128 / sizeof(int)) - 4)]; - - struct { - __pid_t si_pid; - __uid_t si_uid; - } _kill; - - struct { - int si_tid; - int si_overrun; - __sigval_t si_sigval; - } _timer; - - struct { - __pid_t si_pid; - __uid_t si_uid; - __sigval_t si_sigval; - } _rt; - - struct { - __pid_t si_pid; - __uid_t si_uid; - int si_status; - __clock_t si_utime; - __clock_t si_stime; - } _sigchld; - - struct { - void *si_addr; - - short int si_addr_lsb; - union { - - struct { - void *_lower; - void *_upper; - } _addr_bnd; - - __uint32_t _pkey; - } _bounds; - } _sigfault; - - struct { - long int si_band; - int si_fd; - } _sigpoll; - - struct { - void *_call_addr; - int _syscall; - unsigned int _arch; - } _sigsys; - - } _sifields; -} siginfo_t; -enum { - SI_ASYNCNL = -60, - SI_DETHREAD = -7, - - SI_TKILL, - SI_SIGIO, - - SI_ASYNCIO, - SI_MESGQ, - SI_TIMER, - - SI_QUEUE, - SI_USER, - SI_KERNEL = 0x80 -}; - -enum { - ILL_ILLOPC = 1, - - ILL_ILLOPN, - - ILL_ILLADR, - - ILL_ILLTRP, - - ILL_PRVOPC, - - ILL_PRVREG, - - ILL_COPROC, - - ILL_BADSTK, - - ILL_BADIADDR - -}; - -enum { - FPE_INTDIV = 1, - - FPE_INTOVF, - - FPE_FLTDIV, - - FPE_FLTOVF, - - FPE_FLTUND, - - FPE_FLTRES, - - FPE_FLTINV, - - FPE_FLTSUB, - - FPE_FLTUNK = 14, - - FPE_CONDTRAP - -}; - -enum { - SEGV_MAPERR = 1, - - SEGV_ACCERR, - - SEGV_BNDERR, - - SEGV_PKUERR, - - SEGV_ACCADI, - - SEGV_ADIDERR, - - SEGV_ADIPERR, - - SEGV_MTEAERR, - - SEGV_MTESERR - -}; - -enum { - BUS_ADRALN = 1, - - BUS_ADRERR, - - BUS_OBJERR, - - BUS_MCEERR_AR, - - BUS_MCEERR_AO - -}; - -enum { - TRAP_BRKPT = 1, - - TRAP_TRACE, - - TRAP_BRANCH, - - TRAP_HWBKPT, - - TRAP_UNK - -}; - -enum { - CLD_EXITED = 1, - - CLD_KILLED, - - CLD_DUMPED, - - CLD_TRAPPED, - - CLD_STOPPED, - - CLD_CONTINUED - -}; - -enum { - POLL_IN = 1, - - POLL_OUT, - - POLL_MSG, - - POLL_ERR, - - POLL_PRI, - - POLL_HUP - -}; - -typedef __sigval_t sigval_t; - -typedef struct sigevent { - __sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union { - int _pad[((64 / sizeof(int)) - 4)]; - - __pid_t _tid; - - struct { - void (*_function)(__sigval_t); - pthread_attr_t *_attribute; - } _sigev_thread; - } _sigev_un; -} sigevent_t; -enum { - SIGEV_SIGNAL = 0, - - SIGEV_NONE, - - SIGEV_THREAD, - - SIGEV_THREAD_ID = 4 - -}; - -typedef void (*__sighandler_t)(int); - -extern __sighandler_t __sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t sysv_signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t signal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int kill(__pid_t __pid, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int killpg(__pid_t __pgrp, int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern int raise(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern __sighandler_t ssignal(int __sig, __sighandler_t __handler) - __attribute__((__nothrow__, __leaf__)); -extern int gsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern void psignal(int __sig, const char *__s); - -extern void psiginfo(const siginfo_t *__pinfo, const char *__s); -extern int sigpause(int __sig) __asm__("__xpg_sigpause") - __attribute__((__deprecated__("Use the sigsuspend function instead"))); -extern int sigblock(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int sigsetmask(int __mask) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); - -extern int siggetmask(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__)); -typedef __sighandler_t sighandler_t; - -typedef __sighandler_t sig_t; - -extern int sigemptyset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigfillset(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigaddset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigdelset(sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigismember(const sigset_t *__set, int __signo) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigisemptyset(const sigset_t *__set) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int sigandset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int sigorset(sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(1, 2, 3))); - -struct sigaction { - - union { - - __sighandler_t sa_handler; - - void (*sa_sigaction)(int, siginfo_t *, void *); - } __sigaction_handler; - - __sigset_t sa_mask; - - int sa_flags; - - void (*sa_restorer)(void); -}; - -extern int sigprocmask(int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) - __attribute__((__nothrow__, __leaf__)); - -extern int sigsuspend(const sigset_t *__set) __attribute__((__nonnull__(1))); - -extern int sigaction(int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) - __attribute__((__nothrow__, __leaf__)); - -extern int sigpending(sigset_t *__set) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int sigwait(const sigset_t *__restrict __set, int *__restrict __sig) - __attribute__((__nonnull__(1, 2))); - -extern int sigwaitinfo(const sigset_t *__restrict __set, - siginfo_t *__restrict __info) - __attribute__((__nonnull__(1))); - -extern int sigtimedwait(const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __attribute__((__nonnull__(1))); -extern int sigqueue(__pid_t __pid, int __sig, const union sigval __val) - __attribute__((__nothrow__, __leaf__)); - -struct _fpx_sw_bytes { - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t __glibc_reserved1[7]; -}; - -struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short __glibc_reserved1[3]; -}; - -struct _xmmreg { - __uint32_t element[4]; -}; -struct _fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -struct sigcontext { - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union { - struct _fpstate *fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1[8]; -}; - -struct _xsave_hdr { - __uint64_t xstate_bv; - __uint64_t __glibc_reserved1[2]; - __uint64_t __glibc_reserved2[5]; -}; - -struct _ymmh_state { - __uint32_t ymmh_space[64]; -}; - -struct _xstate { - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -extern int sigreturn(struct sigcontext *__scp) - __attribute__((__nothrow__, __leaf__)); - -typedef struct { - void *ss_sp; - int ss_flags; - size_t ss_size; -} stack_t; - -__extension__ typedef long long int greg_t; -typedef greg_t gregset_t[23]; - -enum { - REG_R8 = 0, - - REG_R9, - - REG_R10, - - REG_R11, - - REG_R12, - - REG_R13, - - REG_R14, - - REG_R15, - - REG_RDI, - - REG_RSI, - - REG_RBP, - - REG_RBX, - - REG_RDX, - - REG_RAX, - - REG_RCX, - - REG_RSP, - - REG_RIP, - - REG_EFL, - - REG_CSGSFS, - - REG_ERR, - - REG_TRAPNO, - - REG_OLDMASK, - - REG_CR2 - -}; - -struct _libc_fpxreg { - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int __glibc_reserved1[3]; -}; - -struct _libc_xmmreg { - __uint32_t element[4]; -}; - -struct _libc_fpstate { - - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t __glibc_reserved1[24]; -}; - -typedef struct _libc_fpstate *fpregset_t; - -typedef struct { - gregset_t gregs; - - fpregset_t fpregs; - __extension__ unsigned long long __reserved1[8]; -} mcontext_t; - -typedef struct ucontext_t { - unsigned long int uc_flags; - struct ucontext_t *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - __extension__ unsigned long long int __ssp[4]; -} ucontext_t; - -extern int siginterrupt(int __sig, int __interrupt) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__deprecated__("Use sigaction with SA_RESTART instead"))); - -typedef __intptr_t intptr_t; - -typedef __socklen_t socklen_t; -extern int access(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int euidaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int eaccess(const char *__name, int __type) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int execveat(int __fd, const char *__path, char *const __argv[], - char *const __envp[], int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int faccessat(int __fd, const char *__file, int __type, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); -extern __off_t lseek(int __fd, __off_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); -extern __off64_t lseek64(int __fd, __off64_t __offset, int __whence) - __attribute__((__nothrow__, __leaf__)); - -extern int close(int __fd); - -extern void closefrom(int __lowfd) __attribute__((__nothrow__, __leaf__)); - -extern ssize_t read(int __fd, void *__buf, size_t __nbytes) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t write(int __fd, const void *__buf, size_t __n) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite(int __fd, const void *__buf, size_t __n, __off_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); -extern ssize_t pread64(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern ssize_t pwrite64(int __fd, const void *__buf, size_t __n, - __off64_t __offset) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 2, 3))); - -extern int pipe(int __pipedes[2]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int pipe2(int __pipedes[2], int __flags) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern unsigned int alarm(unsigned int __seconds) - __attribute__((__nothrow__, __leaf__)); -extern unsigned int sleep(unsigned int __seconds); - -extern __useconds_t ualarm(__useconds_t __value, __useconds_t __interval) - __attribute__((__nothrow__, __leaf__)); - -extern int usleep(__useconds_t __useconds); -extern int pause(void); - -extern int chown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchown(int __fd, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int lchown(const char *__file, __uid_t __owner, __gid_t __group) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int fchownat(int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)); - -extern int chdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int fchdir(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); -extern char *getcwd(char *__buf, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern char *get_current_dir_name(void) __attribute__((__nothrow__, __leaf__)); - -extern char *getwd(char *__buf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 1))); - -extern int dup(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int dup2(int __fd, int __fd2) __attribute__((__nothrow__, __leaf__)); - -extern int dup3(int __fd, int __fd2, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern char **__environ; - -extern char **environ; - -extern int execve(const char *__path, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int fexecve(int __fd, char *const __argv[], char *const __envp[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int execv(const char *__path, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execle(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execl(const char *__path, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvp(const char *__file, char *const __argv[]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execlp(const char *__file, const char *__arg, ...) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int execvpe(const char *__file, char *const __argv[], - char *const __envp[]) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int nice(int __inc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void _exit(int __status) __attribute__((__noreturn__)); - -enum { - _PC_LINK_MAX, - - _PC_MAX_CANON, - - _PC_MAX_INPUT, - - _PC_NAME_MAX, - - _PC_PATH_MAX, - - _PC_PIPE_BUF, - - _PC_CHOWN_RESTRICTED, - - _PC_NO_TRUNC, - - _PC_VDISABLE, - - _PC_SYNC_IO, - - _PC_ASYNC_IO, - - _PC_PRIO_IO, - - _PC_SOCK_MAXBUF, - - _PC_FILESIZEBITS, - - _PC_REC_INCR_XFER_SIZE, - - _PC_REC_MAX_XFER_SIZE, - - _PC_REC_MIN_XFER_SIZE, - - _PC_REC_XFER_ALIGN, - - _PC_ALLOC_SIZE_MIN, - - _PC_SYMLINK_MAX, - - _PC_2_SYMLINKS - -}; - -enum { - _SC_ARG_MAX, - - _SC_CHILD_MAX, - - _SC_CLK_TCK, - - _SC_NGROUPS_MAX, - - _SC_OPEN_MAX, - - _SC_STREAM_MAX, - - _SC_TZNAME_MAX, - - _SC_JOB_CONTROL, - - _SC_SAVED_IDS, - - _SC_REALTIME_SIGNALS, - - _SC_PRIORITY_SCHEDULING, - - _SC_TIMERS, - - _SC_ASYNCHRONOUS_IO, - - _SC_PRIORITIZED_IO, - - _SC_SYNCHRONIZED_IO, - - _SC_FSYNC, - - _SC_MAPPED_FILES, - - _SC_MEMLOCK, - - _SC_MEMLOCK_RANGE, - - _SC_MEMORY_PROTECTION, - - _SC_MESSAGE_PASSING, - - _SC_SEMAPHORES, - - _SC_SHARED_MEMORY_OBJECTS, - - _SC_AIO_LISTIO_MAX, - - _SC_AIO_MAX, - - _SC_AIO_PRIO_DELTA_MAX, - - _SC_DELAYTIMER_MAX, - - _SC_MQ_OPEN_MAX, - - _SC_MQ_PRIO_MAX, - - _SC_VERSION, - - _SC_PAGESIZE, - - _SC_RTSIG_MAX, - - _SC_SEM_NSEMS_MAX, - - _SC_SEM_VALUE_MAX, - - _SC_SIGQUEUE_MAX, - - _SC_TIMER_MAX, - - _SC_BC_BASE_MAX, - - _SC_BC_DIM_MAX, - - _SC_BC_SCALE_MAX, - - _SC_BC_STRING_MAX, - - _SC_COLL_WEIGHTS_MAX, - - _SC_EQUIV_CLASS_MAX, - - _SC_EXPR_NEST_MAX, - - _SC_LINE_MAX, - - _SC_RE_DUP_MAX, - - _SC_CHARCLASS_NAME_MAX, - - _SC_2_VERSION, - - _SC_2_C_BIND, - - _SC_2_C_DEV, - - _SC_2_FORT_DEV, - - _SC_2_FORT_RUN, - - _SC_2_SW_DEV, - - _SC_2_LOCALEDEF, - - _SC_PII, - - _SC_PII_XTI, - - _SC_PII_SOCKET, - - _SC_PII_INTERNET, - - _SC_PII_OSI, - - _SC_POLL, - - _SC_SELECT, - - _SC_UIO_MAXIOV, - - _SC_IOV_MAX = _SC_UIO_MAXIOV, - - _SC_PII_INTERNET_STREAM, - - _SC_PII_INTERNET_DGRAM, - - _SC_PII_OSI_COTS, - - _SC_PII_OSI_CLTS, - - _SC_PII_OSI_M, - - _SC_T_IOV_MAX, - - _SC_THREADS, - - _SC_THREAD_SAFE_FUNCTIONS, - - _SC_GETGR_R_SIZE_MAX, - - _SC_GETPW_R_SIZE_MAX, - - _SC_LOGIN_NAME_MAX, - - _SC_TTY_NAME_MAX, - - _SC_THREAD_DESTRUCTOR_ITERATIONS, - - _SC_THREAD_KEYS_MAX, - - _SC_THREAD_STACK_MIN, - - _SC_THREAD_THREADS_MAX, - - _SC_THREAD_ATTR_STACKADDR, - - _SC_THREAD_ATTR_STACKSIZE, - - _SC_THREAD_PRIORITY_SCHEDULING, - - _SC_THREAD_PRIO_INHERIT, - - _SC_THREAD_PRIO_PROTECT, - - _SC_THREAD_PROCESS_SHARED, - - _SC_NPROCESSORS_CONF, - - _SC_NPROCESSORS_ONLN, - - _SC_PHYS_PAGES, - - _SC_AVPHYS_PAGES, - - _SC_ATEXIT_MAX, - - _SC_PASS_MAX, - - _SC_XOPEN_VERSION, - - _SC_XOPEN_XCU_VERSION, - - _SC_XOPEN_UNIX, - - _SC_XOPEN_CRYPT, - - _SC_XOPEN_ENH_I18N, - - _SC_XOPEN_SHM, - - _SC_2_CHAR_TERM, - - _SC_2_C_VERSION, - - _SC_2_UPE, - - _SC_XOPEN_XPG2, - - _SC_XOPEN_XPG3, - - _SC_XOPEN_XPG4, - - _SC_CHAR_BIT, - - _SC_CHAR_MAX, - - _SC_CHAR_MIN, - - _SC_INT_MAX, - - _SC_INT_MIN, - - _SC_LONG_BIT, - - _SC_WORD_BIT, - - _SC_MB_LEN_MAX, - - _SC_NZERO, - - _SC_SSIZE_MAX, - - _SC_SCHAR_MAX, - - _SC_SCHAR_MIN, - - _SC_SHRT_MAX, - - _SC_SHRT_MIN, - - _SC_UCHAR_MAX, - - _SC_UINT_MAX, - - _SC_ULONG_MAX, - - _SC_USHRT_MAX, - - _SC_NL_ARGMAX, - - _SC_NL_LANGMAX, - - _SC_NL_MSGMAX, - - _SC_NL_NMAX, - - _SC_NL_SETMAX, - - _SC_NL_TEXTMAX, - - _SC_XBS5_ILP32_OFF32, - - _SC_XBS5_ILP32_OFFBIG, - - _SC_XBS5_LP64_OFF64, - - _SC_XBS5_LPBIG_OFFBIG, - - _SC_XOPEN_LEGACY, - - _SC_XOPEN_REALTIME, - - _SC_XOPEN_REALTIME_THREADS, - - _SC_ADVISORY_INFO, - - _SC_BARRIERS, - - _SC_BASE, - - _SC_C_LANG_SUPPORT, - - _SC_C_LANG_SUPPORT_R, - - _SC_CLOCK_SELECTION, - - _SC_CPUTIME, - - _SC_THREAD_CPUTIME, - - _SC_DEVICE_IO, - - _SC_DEVICE_SPECIFIC, - - _SC_DEVICE_SPECIFIC_R, - - _SC_FD_MGMT, - - _SC_FIFO, - - _SC_PIPE, - - _SC_FILE_ATTRIBUTES, - - _SC_FILE_LOCKING, - - _SC_FILE_SYSTEM, - - _SC_MONOTONIC_CLOCK, - - _SC_MULTI_PROCESS, - - _SC_SINGLE_PROCESS, - - _SC_NETWORKING, - - _SC_READER_WRITER_LOCKS, - - _SC_SPIN_LOCKS, - - _SC_REGEXP, - - _SC_REGEX_VERSION, - - _SC_SHELL, - - _SC_SIGNALS, - - _SC_SPAWN, - - _SC_SPORADIC_SERVER, - - _SC_THREAD_SPORADIC_SERVER, - - _SC_SYSTEM_DATABASE, - - _SC_SYSTEM_DATABASE_R, - - _SC_TIMEOUTS, - - _SC_TYPED_MEMORY_OBJECTS, - - _SC_USER_GROUPS, - - _SC_USER_GROUPS_R, - - _SC_2_PBS, - - _SC_2_PBS_ACCOUNTING, - - _SC_2_PBS_LOCATE, - - _SC_2_PBS_MESSAGE, - - _SC_2_PBS_TRACK, - - _SC_SYMLOOP_MAX, - - _SC_STREAMS, - - _SC_2_PBS_CHECKPOINT, - - _SC_V6_ILP32_OFF32, - - _SC_V6_ILP32_OFFBIG, - - _SC_V6_LP64_OFF64, - - _SC_V6_LPBIG_OFFBIG, - - _SC_HOST_NAME_MAX, - - _SC_TRACE, - - _SC_TRACE_EVENT_FILTER, - - _SC_TRACE_INHERIT, - - _SC_TRACE_LOG, - - _SC_LEVEL1_ICACHE_SIZE, - - _SC_LEVEL1_ICACHE_ASSOC, - - _SC_LEVEL1_ICACHE_LINESIZE, - - _SC_LEVEL1_DCACHE_SIZE, - - _SC_LEVEL1_DCACHE_ASSOC, - - _SC_LEVEL1_DCACHE_LINESIZE, - - _SC_LEVEL2_CACHE_SIZE, - - _SC_LEVEL2_CACHE_ASSOC, - - _SC_LEVEL2_CACHE_LINESIZE, - - _SC_LEVEL3_CACHE_SIZE, - - _SC_LEVEL3_CACHE_ASSOC, - - _SC_LEVEL3_CACHE_LINESIZE, - - _SC_LEVEL4_CACHE_SIZE, - - _SC_LEVEL4_CACHE_ASSOC, - - _SC_LEVEL4_CACHE_LINESIZE, - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, - - _SC_RAW_SOCKETS, - - _SC_V7_ILP32_OFF32, - - _SC_V7_ILP32_OFFBIG, - - _SC_V7_LP64_OFF64, - - _SC_V7_LPBIG_OFFBIG, - - _SC_SS_REPL_MAX, - - _SC_TRACE_EVENT_NAME_MAX, - - _SC_TRACE_NAME_MAX, - - _SC_TRACE_SYS_MAX, - - _SC_TRACE_USER_EVENT_MAX, - - _SC_XOPEN_STREAMS, - - _SC_THREAD_ROBUST_PRIO_INHERIT, - - _SC_THREAD_ROBUST_PRIO_PROTECT, - - _SC_MINSIGSTKSZ, - - _SC_SIGSTKSZ - -}; - -enum { - _CS_PATH, - - _CS_V6_WIDTH_RESTRICTED_ENVS, - - _CS_GNU_LIBC_VERSION, - - _CS_GNU_LIBPTHREAD_VERSION, - - _CS_V5_WIDTH_RESTRICTED_ENVS, - - _CS_V7_WIDTH_RESTRICTED_ENVS, - - _CS_LFS_CFLAGS = 1000, - - _CS_LFS_LDFLAGS, - - _CS_LFS_LIBS, - - _CS_LFS_LINTFLAGS, - - _CS_LFS64_CFLAGS, - - _CS_LFS64_LDFLAGS, - - _CS_LFS64_LIBS, - - _CS_LFS64_LINTFLAGS, - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, - - _CS_XBS5_ILP32_OFF32_LDFLAGS, - - _CS_XBS5_ILP32_OFF32_LIBS, - - _CS_XBS5_ILP32_OFF32_LINTFLAGS, - - _CS_XBS5_ILP32_OFFBIG_CFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, - - _CS_XBS5_ILP32_OFFBIG_LIBS, - - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, - - _CS_XBS5_LP64_OFF64_CFLAGS, - - _CS_XBS5_LP64_OFF64_LDFLAGS, - - _CS_XBS5_LP64_OFF64_LIBS, - - _CS_XBS5_LP64_OFF64_LINTFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, - - _CS_XBS5_LPBIG_OFFBIG_LIBS, - - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFF32_LIBS, - - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V6_LP64_OFF64_CFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V6_LP64_OFF64_LIBS, - - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFF32_LIBS, - - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, - - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, - - _CS_POSIX_V7_LP64_OFF64_CFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, - - _CS_POSIX_V7_LP64_OFF64_LIBS, - - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, - - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, - - _CS_V6_ENV, - - _CS_V7_ENV - -}; - -extern long int pathconf(const char *__path, int __name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int fpathconf(int __fd, int __name) - __attribute__((__nothrow__, __leaf__)); - -extern long int sysconf(int __name) __attribute__((__nothrow__, __leaf__)); - -extern size_t confstr(int __name, char *__buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern __pid_t getpid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getppid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t __getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getpgid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern int setpgid(__pid_t __pid, __pid_t __pgid) - __attribute__((__nothrow__, __leaf__)); -extern int setpgrp(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t setsid(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t getsid(__pid_t __pid) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t getuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __uid_t geteuid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getgid(void) __attribute__((__nothrow__, __leaf__)); - -extern __gid_t getegid(void) __attribute__((__nothrow__, __leaf__)); - -extern int getgroups(int __size, __gid_t __list[]) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); - -extern int group_member(__gid_t __gid) __attribute__((__nothrow__, __leaf__)); - -extern int setuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setreuid(__uid_t __ruid, __uid_t __euid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int seteuid(__uid_t __uid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setgid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int setregid(__gid_t __rgid, __gid_t __egid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setegid(__gid_t __gid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getresuid(__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __attribute__((__nothrow__, __leaf__)); - -extern int getresgid(__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __attribute__((__nothrow__, __leaf__)); - -extern int setresuid(__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int setresgid(__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __pid_t fork(void) __attribute__((__nothrow__)); - -extern __pid_t vfork(void) __attribute__((__nothrow__, __leaf__)); - -extern __pid_t _Fork(void) __attribute__((__nothrow__, __leaf__)); - -extern char *ttyname(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int isatty(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int ttyslot(void) __attribute__((__nothrow__, __leaf__)); - -extern int link(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern int linkat(int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))) - __attribute__((__warn_unused_result__)); - -extern int symlink(const char *__from, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlink(const char *__restrict __path, char *__restrict __buf, - size_t __len) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -__attribute__((__access__(__write_only__, 2, 3))); - -extern int symlinkat(const char *__from, int __tofd, const char *__to) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))) - __attribute__((__warn_unused_result__)); - -extern ssize_t readlinkat(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); - -extern int unlink(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int unlinkat(int __fd, const char *__name, int __flag) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int rmdir(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern __pid_t tcgetpgrp(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int tcsetpgrp(int __fd, __pid_t __pgrp_id) - __attribute__((__nothrow__, __leaf__)); - -extern char *getlogin(void); - -extern int getlogin_r(char *__name, size_t __name_len) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int setlogin(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern char *optarg; -extern int optind; - -extern int opterr; - -extern int optopt; -extern int getopt(int ___argc, char *const *___argv, const char *__shortopts) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern int gethostname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern int sethostname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int sethostid(long int __id) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int getdomainname(char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int setdomainname(const char *__name, size_t __len) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__read_only__, 1, 2))); - -extern int vhangup(void) __attribute__((__nothrow__, __leaf__)); - -extern int revoke(const char *__file) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern int profil(unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int acct(const char *__name) __attribute__((__nothrow__, __leaf__)); - -extern char *getusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void endusershell(void) __attribute__((__nothrow__, __leaf__)); -extern void setusershell(void) __attribute__((__nothrow__, __leaf__)); - -extern int daemon(int __nochdir, int __noclose) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern int chroot(const char *__path) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *getpass(const char *__prompt) __attribute__((__nonnull__(1))); - -extern int fsync(int __fd); - -extern int syncfs(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern long int gethostid(void); - -extern void sync(void) __attribute__((__nothrow__, __leaf__)); - -extern int getpagesize(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int getdtablesize(void) __attribute__((__nothrow__, __leaf__)); -extern int truncate(const char *__file, __off_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int truncate64(const char *__file, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int ftruncate(int __fd, __off_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int ftruncate64(int __fd, __off64_t __length) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int brk(void *__addr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern void *sbrk(intptr_t __delta) __attribute__((__nothrow__, __leaf__)); -extern long int syscall(long int __sysno, ...) - __attribute__((__nothrow__, __leaf__)); -extern int lockf(int __fd, int __cmd, __off_t __len) - __attribute__((__warn_unused_result__)); -extern int lockf64(int __fd, int __cmd, __off64_t __len) - __attribute__((__warn_unused_result__)); -ssize_t copy_file_range(int __infd, __off64_t *__pinoff, int __outfd, - __off64_t *__poutoff, size_t __length, - unsigned int __flags); - -extern int fdatasync(int __fildes); -extern char *crypt(const char *__key, const char *__salt) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void swab(const void *__restrict __from, void *__restrict __to, - ssize_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__read_only__, 1, 3))) -__attribute__((__access__(__write_only__, 2, 3))); -int getentropy(void *__buffer, size_t __length) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int close_range(unsigned int __fd, unsigned int __max_fd, int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern ssize_t __read_chk(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_alias(int __fd, void *__buf, - size_t __nbytes) __asm__("" - "read") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __read_chk_warn(int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __asm__("" - "__read_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("read called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -read(int __fd, void *__buf, size_t __nbytes) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_alias(__fd, __buf, __nbytes) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __read_chk_warn(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)) - : __read_chk(__fd, __buf, __nbytes, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __pread_chk(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_chk(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_alias(int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __asm__("" - "pread") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread64_alias(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __asm__("" - "pread64") - - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __pread_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off_t __offset, - size_t __bufsize) __asm__("" - "__pread_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread called with bigger length than size of " - "the destination buffer"))); -extern ssize_t __pread64_chk_warn(int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, - size_t __bufsize) __asm__("" - "__pread64_chk") - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("pread64 called with bigger length than size of " - "the destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread(int __fd, void *__buf, size_t __nbytes, __off_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) ssize_t -pread64(int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { - return ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_alias(__fd, __buf, __nbytes, __offset) - : ((((__typeof(__nbytes))0 < (__typeof(__nbytes))-1 || - (__builtin_constant_p(__nbytes) && (__nbytes) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) && - !(((long unsigned int)(__nbytes)) <= - (__builtin_object_size(__buf, 0)) / (sizeof(char)))) - ? __pread64_chk_warn(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)) - : __pread64_chk(__fd, __buf, __nbytes, __offset, - __builtin_object_size(__buf, 0)))) - - ; -} - -extern ssize_t __readlink_chk(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_alias(const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlink") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern ssize_t __readlink_chk_warn(const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlink_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlink called with bigger length " - "than size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1, 2))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlink(const char *__restrict __path, char *__restrict __buf, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_alias(__path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlink_chk_warn(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlink_chk(__path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern ssize_t __readlinkat_chk(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t __readlinkat_alias(int __fd, const char *__restrict __path, - char *__restrict __buf, - size_t __len) __asm__("" - "readlinkat") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 3, 4))); -extern ssize_t -__readlinkat_chk_warn(int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) __asm__("" - "__readlinkat_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("readlinkat called with bigger " - "length than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(2, 3))) __attribute__((__warn_unused_result__)) -ssize_t __attribute__((__nothrow__, __leaf__)) -readlinkat(int __fd, const char *__restrict __path, char *__restrict __buf, - size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_alias(__fd, __path, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __readlinkat_chk_warn(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __readlinkat_chk(__fd, __path, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getcwd_chk(char *__buf, size_t __size, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_alias(char *__buf, size_t __size) __asm__("" - "getcwd") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__getcwd_chk_warn(char *__buf, size_t __size, - size_t __buflen) __asm__("" - "__getcwd_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getcwd caller with bigger length than size of " - "destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getcwd(char *__buf, size_t __size) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_alias(__buf, __size) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getcwd_chk_warn(__buf, __size, - __builtin_object_size(__buf, 2 > 1)) - : __getcwd_chk(__buf, __size, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern char *__getwd_chk(char *__buf, size_t buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern char *__getwd_warn(char *__buf) __asm__("" - "getwd") - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__warning__("please use getcwd instead, as getwd " - "doesn't specify buffer size"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__nonnull__(1))) __attribute__((__deprecated__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -getwd(char *__buf) { - if (__builtin_object_size(__buf, 2 > 1) != (size_t)-1) - return __getwd_chk(__buf, __builtin_object_size(__buf, 2 > 1)); - return __getwd_warn(__buf); -} - -extern size_t __confstr_chk(int __name, char *__buf, size_t __len, - size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_alias(int __name, char *__buf, - size_t __len) __asm__("" - "confstr") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 2, 3))); -extern size_t __confstr_chk_warn(int __name, char *__buf, size_t __len, - size_t __buflen) __asm__("" - "__confstr_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warning__( - "confstr called with bigger length than size of destination " - "buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) size_t - __attribute__((__nothrow__, __leaf__)) - confstr(int __name, char *__buf, size_t __len) { - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_alias(__name, __buf, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __confstr_chk_warn(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)) - : __confstr_chk(__name, __buf, __len, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getgroups_chk(int __size, __gid_t __list[], size_t __listlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int __getgroups_alias(int __size, __gid_t __list[]) __asm__("" - "getgroups") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 1))); -extern int -__getgroups_chk_warn(int __size, __gid_t __list[], size_t __listlen) __asm__( - "" - "__getgroups_chk") __attribute__((__nothrow__, __leaf__)) - -__attribute__((__warn_unused_result__)) -__attribute__((__warning__("getgroups called with bigger group count than what " - "can fit into destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getgroups(int __size, __gid_t __list[]) { - return ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) && - (((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_alias(__size, __list) - : ((((__typeof(__size))0 < (__typeof(__size))-1 || - (__builtin_constant_p(__size) && (__size) > 0)) && - __builtin_constant_p((((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / - (sizeof(__gid_t)))) && - !(((long unsigned int)(__size)) <= - (__builtin_object_size(__list, 2 > 1)) / (sizeof(__gid_t)))) - ? __getgroups_chk_warn( - __size, __list, __builtin_object_size(__list, 2 > 1)) - : __getgroups_chk(__size, __list, - __builtin_object_size(__list, 2 > 1)))) - - ; -} - -extern int __ttyname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ttyname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ttyname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))); -extern int __ttyname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ttyname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ttyname_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ttyname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ttyname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ttyname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getlogin_r_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getlogin_r_alias(char *__buf, - size_t __buflen) __asm__("" - "getlogin_r") - __attribute__((__nonnull__(1))); -extern int __getlogin_r_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getlogin_r_chk") - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("getlogin_r called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -getlogin_r(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getlogin_r_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __getlogin_r_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __gethostname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_alias(char *__buf, - size_t __buflen) __asm__("" - "gethostname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __gethostname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__gethostname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) - __attribute__((__warning__("gethostname called with bigger buflen than " - "size of destination buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - gethostname(char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __gethostname_chk_warn( - __buf, __buflen, __builtin_object_size(__buf, 2 > 1)) - : __gethostname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __getdomainname_chk(char *__buf, size_t __buflen, size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int __getdomainname_alias(char *__buf, - size_t __buflen) __asm__("" - "getdomainname") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 1, 2))); -extern int -__getdomainname_chk_warn(char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__getdomainname_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)) - __attribute__((__warning__("getdomainname called with bigger " - "buflen than size of destination " - "buffer"))) - - ; - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - getdomainname(char *__buf, size_t __buflen) { - return ( - (((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_alias(__buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __getdomainname_chk_warn(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __getdomainname_chk(__buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern __pid_t gettid(void) __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int rpl_pipe2(int fd[2], int flags) __attribute__((__nonnull__(1))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { - SS_ONSTACK = 1, - - SS_DISABLE - -}; - -extern int sigaltstack(const stack_t *__restrict __ss, - stack_t *__restrict __oss) - __attribute__((__nothrow__, __leaf__)); - -struct sigstack { - void *ss_sp; - int ss_onstack; -}; - -extern int sigstack(struct sigstack *__ss, struct sigstack *__oss) - __attribute__((__nothrow__, __leaf__)) __attribute__((__deprecated__)); - -extern int sighold(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigrelse(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the sigprocmask function instead"))); - -extern int sigignore(int __sig) __attribute__((__nothrow__, __leaf__)) -__attribute__((__deprecated__("Use the signal function instead"))); - -extern __sighandler_t sigset(int __sig, __sighandler_t __disp) - __attribute__((__nothrow__, __leaf__)) __attribute__(( - __deprecated__("Use the signal and sigprocmask functions instead"))); - -extern int pthread_sigmask(int __how, const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_kill(pthread_t __threadid, int __signo) - __attribute__((__nothrow__, __leaf__)); - -extern int pthread_sigqueue(pthread_t __threadid, int __signo, - const union sigval __value) - __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmin(void) __attribute__((__nothrow__, __leaf__)); - -extern int __libc_current_sigrtmax(void) __attribute__((__nothrow__, __leaf__)); - -extern int tgkill(__pid_t __tgid, __pid_t __tid, int __signal); - -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; - -typedef void (*_gl_function_taking_int_returning_void_t)(int); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; -extern int gettimeofday(struct timeval *__restrict __tv, void *__restrict __tz) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int settimeofday(const struct timeval *__tv, const struct timezone *__tz) - __attribute__((__nothrow__, __leaf__)); - -extern int adjtime(const struct timeval *__delta, struct timeval *__olddelta) - __attribute__((__nothrow__, __leaf__)); -enum __itimer_which { - - ITIMER_REAL = 0, - - ITIMER_VIRTUAL = 1, - - ITIMER_PROF = 2 - -}; - -struct itimerval { - - struct timeval it_interval; - - struct timeval it_value; -}; - -typedef enum __itimer_which __itimer_which_t; - -extern int getitimer(__itimer_which_t __which, struct itimerval *__value) - __attribute__((__nothrow__, __leaf__)); - -extern int setitimer(__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) - __attribute__((__nothrow__, __leaf__)); - -extern int utimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern int lutimes(const char *__file, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int futimes(int __fd, const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); -extern int futimesat(int __fd, const char *__file, - const struct timeval __tvp[2]) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern unsigned int gnu_dev_major(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern unsigned int gnu_dev_minor(__dev_t __dev) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern __dev_t gnu_dev_makedev(unsigned int __major, unsigned int __minor) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern void *memcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern void *memmove(void *__dest, const void *__src, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *memccpy(void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))) -__attribute__((__access__(__write_only__, 1, 4))); - -extern void *memset(void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int memcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int __memcmpeq(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern void *memchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *rawmemchr(const void *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern void *memrchr(const void *__s, int __c, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_only__, 1, 3))); - -extern char *strcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern char *strcat(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strncat(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strcmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcoll(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strxfrm(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern int strcoll_l(const char *__s1, const char *__s2, locale_t __l) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern size_t strxfrm_l(char *__dest, const char *__src, size_t __n, - locale_t __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(2, 4))) -__attribute__((__access__(__write_only__, 1, 3))); - -extern char *strdup(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__nonnull__(1))); - -extern char *strndup(const char *__string, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__nonnull__(1))); -extern char *strchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strrchr(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *strchrnul(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern size_t strcspn(const char *__s, const char *__reject) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern size_t strspn(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strpbrk(const char *__s, const char *__accept) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern char *strstr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strtok(char *__restrict __s, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *__strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); - -extern char *strtok_r(char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 3))); -extern char *strcasestr(const char *__haystack, const char *__needle) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void *memmem(const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 3))) - __attribute__((__access__(__read_only__, 1, 2))) - __attribute__((__access__(__read_only__, 3, 4))); - -extern void *__mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern void *mempcpy(void *__restrict __dest, const void *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern size_t strlen(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))); - -extern size_t strnlen(const char *__string, size_t __maxlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern char *strerror(int __errnum) __attribute__((__nothrow__, __leaf__)); -extern char *strerror_r(int __errnum, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__warn_unused_result__)) - __attribute__((__access__(__write_only__, 2, 3))); - -extern const char *strerrordesc_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern const char *strerrorname_np(int __err) - __attribute__((__nothrow__, __leaf__)); - -extern char *strerror_l(int __errnum, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int bcmp(const void *__s1, const void *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern void bcopy(const void *__src, void *__dest, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void bzero(void *__s, size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern char *index(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); -extern char *rindex(const char *__s, int __c) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))); - -extern int ffs(int __i) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern int ffsl(long int __l) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern int strcasecmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strncasecmp(const char *__s1, const char *__s2, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern int strcasecmp_l(const char *__s1, const char *__s2, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2, 3))); - -extern int strncasecmp_l(const char *__s1, const char *__s2, size_t __n, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 4))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - bcopy(const void *__src, void *__dest, size_t __len) { - (void)__builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) bzero(void *__dest, size_t __len) { - (void)__builtin___memset_chk(__dest, '\0', __len, - __builtin_object_size(__dest, 0)); -} - -extern void explicit_bzero(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern char *strsep(char **__restrict __stringp, const char *__restrict __delim) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *strsignal(int __sig) __attribute__((__nothrow__, __leaf__)); - -extern const char *sigabbrev_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern const char *sigdescr_np(int __sig) - __attribute__((__nothrow__, __leaf__)); - -extern char *__stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern char *stpcpy(char *__restrict __dest, const char *__restrict __src) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern char *__stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); -extern char *stpncpy(char *__restrict __dest, const char *__restrict __src, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 2))); - -extern int strverscmp(const char *__s1, const char *__s2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern char *strfry(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void *memfrob(void *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__read_write__, 1, 2))); -extern char *basename(const char *__filename) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___memcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memmove(void *__dest, const void *__src, size_t __len) { - return __builtin___memmove_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -mempcpy(void *__restrict __dest, const void *__restrict __src, size_t __len) - -{ - return __builtin___mempcpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 0)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) void *__attribute__((__nothrow__, __leaf__)) -memset(void *__dest, int __ch, size_t __len) { - return __builtin___memset_chk(__dest, __ch, __len, - __builtin_object_size(__dest, 0)); -} - -void __explicit_bzero_chk(void *__dest, size_t __len, size_t __destlen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__access__(__write_only__, 1, 2))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) void - __attribute__((__nothrow__, __leaf__)) - explicit_bzero(void *__dest, size_t __len) { - __explicit_bzero_chk(__dest, __len, __builtin_object_size(__dest, 0)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpcpy(char *__restrict __dest, const char *__restrict __src) { - return __builtin___stpcpy_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncpy(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncpy_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -stpncpy(char *__dest, const char *__src, size_t __n) { - return __builtin___stpncpy_chk(__dest, __src, __n, - __builtin_object_size(__dest, 2 > 1)); -} -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strcat(char *__restrict __dest, const char *__restrict __src) { - return __builtin___strcat_chk(__dest, __src, - __builtin_object_size(__dest, 2 > 1)); -} - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) -__attribute__((__artificial__)) char *__attribute__((__nothrow__, __leaf__)) -strncat(char *__restrict __dest, const char *__restrict __src, size_t __len) - -{ - return __builtin___strncat_chk(__dest, __src, __len, - __builtin_object_size(__dest, 2 > 1)); -} - -extern void free(void *); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern char *strdup(char const *__s) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *strndup(char const *__s, size_t __n) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern size_t mbslen(const char *string) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbschr(const char *string, int c) __attribute__((__pure__)) -__attribute__((__nonnull__(1))) - -; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *mbsstr(const char *haystack, const char *needle) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int mbscasecmp(const char *s1, const char *s2) - - __attribute__((__pure__)) - - __attribute__((__nonnull__(1, 2))); -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern int *__errno_location(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern char *program_invocation_name; -extern char *program_invocation_short_name; - -typedef int error_t; - -typedef struct { - int quot; - int rem; -} div_t; - -typedef struct { - long int quot; - long int rem; -} ldiv_t; - -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern double atof(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern int atoi(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int atol(const char *__nptr) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -__extension__ extern long long int atoll(const char *__nptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern double strtod(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern float strtof(const char *__restrict __nptr, char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long double strtold(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern _Float32 strtof32(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64 strtof64(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float128 strtof128(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float32x strtof32x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern _Float64x strtof64x(const char *__restrict __nptr, - char **__restrict __endptr) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern long int strtol(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern unsigned long int strtoul(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtouq(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern long long int -strtoll(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -__extension__ extern unsigned long long int -strtoull(const char *__restrict __nptr, char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int strfromd(char *__dest, size_t __size, const char *__format, - double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf(char *__dest, size_t __size, const char *__format, - float __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfroml(char *__dest, size_t __size, const char *__format, - long double __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern int strfromf32(char *__dest, size_t __size, const char *__format, - _Float32 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64(char *__dest, size_t __size, const char *__format, - _Float64 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf128(char *__dest, size_t __size, const char *__format, - _Float128 __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf32x(char *__dest, size_t __size, const char *__format, - _Float32x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); - -extern int strfromf64x(char *__dest, size_t __size, const char *__format, - _Float64x __f) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3))); -extern long int strtol_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -extern unsigned long int strtoul_l(const char *__restrict __nptr, - char **__restrict __endptr, int __base, - locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern long long int strtoll_l(const char *__restrict __nptr, - char **__restrict __endptr, - int __base, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 4))); - -__extension__ extern unsigned long long int -strtoull_l(const char *__restrict __nptr, char **__restrict __endptr, - int __base, locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 4))); - -extern double strtod_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern float strtof_l(const char *__restrict __nptr, char **__restrict __endptr, - locale_t __loc) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1, 3))); - -extern long double strtold_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern _Float32 strtof32_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64 strtof64_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float128 strtof128_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float32x strtof32x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); - -extern _Float64x strtof64x_l(const char *__restrict __nptr, - char **__restrict __endptr, locale_t __loc) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 3))); -extern char *l64a(long int __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern long int a64l(const char *__s) __attribute__((__nothrow__, __leaf__)) -__attribute__((__pure__)) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); - -extern long int random(void) __attribute__((__nothrow__, __leaf__)); - -extern void srandom(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern char *initstate(unsigned int __seed, char *__statebuf, size_t __statelen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern char *setstate(char *__statebuf) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -struct random_data { - int32_t *fptr; - int32_t *rptr; - int32_t *state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t *end_ptr; -}; - -extern int random_r(struct random_data *__restrict __buf, - int32_t *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srandom_r(unsigned int __seed, struct random_data *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int initstate_r(unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int setstate_r(char *__restrict __statebuf, - struct random_data *__restrict __buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int rand(void) __attribute__((__nothrow__, __leaf__)); - -extern void srand(unsigned int __seed) __attribute__((__nothrow__, __leaf__)); - -extern int rand_r(unsigned int *__seed) __attribute__((__nothrow__, __leaf__)); - -extern double drand48(void) __attribute__((__nothrow__, __leaf__)); -extern double erand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int lrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int nrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int mrand48(void) __attribute__((__nothrow__, __leaf__)); -extern long int jrand48(unsigned short int __xsubi[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void srand48(long int __seedval) __attribute__((__nothrow__, __leaf__)); -extern unsigned short int *seed48(unsigned short int __seed16v[3]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; - -extern int drand48_r(struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int erand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int nrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int mrand48_r(struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); -extern int jrand48_r(unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int srand48_r(long int __seedval, struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int seed48_r(unsigned short int __seed16v[3], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern int lcong48_r(unsigned short int __param[7], - struct drand48_data *__buffer) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2))); - -extern void *malloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern void *calloc(size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_size__(1, 2))) - __attribute__((__warn_unused_result__)); - -extern void *realloc(void *__ptr, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2))); - -extern void free(void *__ptr) __attribute__((__nothrow__, __leaf__)); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)) - __attribute__((__alloc_size__(2, 3))) - __attribute__((__malloc__(__builtin_free, 1))); - -extern void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__malloc__(reallocarray, 1))); -extern void *valloc(size_t __size) __attribute__((__nothrow__, __leaf__)) -__attribute__((__malloc__)) __attribute__((__alloc_size__(1))) -__attribute__((__warn_unused_result__)); - -extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern void *aligned_alloc(size_t __alignment, size_t __size) - __attribute__((__nothrow__, __leaf__)) __attribute__((__malloc__)) - __attribute__((__alloc_align__(1))) __attribute__((__alloc_size__(2))) - __attribute__((__warn_unused_result__)); - -extern void abort(void) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern int atexit(void (*__func)(void)) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int at_quick_exit(void (*__func)(void)) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern int on_exit(void (*__func)(int __status, void *__arg), void *__arg) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern void exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void quick_exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern void _Exit(int __status) __attribute__((__nothrow__, __leaf__)) -__attribute__((__noreturn__)); - -extern char *getenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); - -extern char *secure_getenv(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); - -extern int putenv(char *__string) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int setenv(const char *__name, const char *__value, int __replace) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int unsetenv(const char *__name) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int clearenv(void) __attribute__((__nothrow__, __leaf__)); -extern char *mktemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int mkstemp(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemp64(char *__template) __attribute__((__nonnull__(1))) -__attribute__((__warn_unused_result__)); -extern int mkstemps(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkstemps64(char *__template, int __suffixlen) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern char *mkdtemp(char *__template) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemp64(char *__template, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int mkostemps64(char *__template, int __suffixlen, int __flags) - __attribute__((__nonnull__(1))) __attribute__((__warn_unused_result__)); -extern int system(const char *__command) - __attribute__((__warn_unused_result__)); - -extern char *canonicalize_file_name(const char *__name) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__malloc__)) __attribute__((__malloc__(__builtin_free, 1))) - __attribute__((__warn_unused_result__)); -extern char *realpath(const char *__restrict __name, - char *__restrict __resolved) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -typedef int (*__compar_fn_t)(const void *, const void *); - -typedef __compar_fn_t comparison_fn_t; - -typedef int (*__compar_d_fn_t)(const void *, const void *, void *); - -extern void *bsearch(const void *__key, const void *__base, size_t __nmemb, - size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 2, 5))) - __attribute__((__warn_unused_result__)); - -extern void qsort(void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 4))); - -extern void qsort_r(void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __attribute__((__nonnull__(1, 4))); - -extern int abs(int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); -extern long int labs(long int __x) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)) __attribute__((__warn_unused_result__)); - -__extension__ extern long long int llabs(long long int __x) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -extern div_t div(int __numer, int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern ldiv_t ldiv(long int __numer, long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); - -__extension__ extern lldiv_t lldiv(long long int __numer, long long int __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)) - __attribute__((__warn_unused_result__)); -extern char *ecvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *fcvt(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(3, 4))) __attribute__((__warn_unused_result__)); - -extern char *gcvt(double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern char *qecvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qfcvt(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3, 4))) - __attribute__((__warn_unused_result__)); -extern char *qgcvt(long double __value, int __ndigit, char *__buf) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(3))) - __attribute__((__warn_unused_result__)); - -extern int ecvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r(double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int qecvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r(long double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, size_t __len) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__nonnull__(3, 4, 5))); - -extern int mblen(const char *__s, size_t __n) - __attribute__((__nothrow__, __leaf__)); - -extern int mbtowc(wchar_t *__restrict __pwc, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)); - -extern int wctomb(char *__s, wchar_t __wchar) - __attribute__((__nothrow__, __leaf__)); - -extern size_t mbstowcs(wchar_t *__restrict __pwcs, const char *__restrict __s, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__read_only__, 2))); - -extern size_t wcstombs(char *__restrict __s, const wchar_t *__restrict __pwcs, - size_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__access__(__write_only__, 1, 3))) -__attribute__((__access__(__read_only__, 2))); - -extern int rpmatch(const char *__response) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))) - __attribute__((__warn_unused_result__)); -extern int getsubopt(char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1, 2, 3))) - __attribute__((__warn_unused_result__)); - -extern int posix_openpt(int __oflag) __attribute__((__warn_unused_result__)); - -extern int grantpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern int unlockpt(int __fd) __attribute__((__nothrow__, __leaf__)); - -extern char *ptsname(int __fd) __attribute__((__nothrow__, __leaf__)) -__attribute__((__warn_unused_result__)); - -extern int ptsname_r(int __fd, char *__buf, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); - -extern int getpt(void); - -extern int getloadavg(double __loadavg[], int __nelem) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern char *__realpath_chk(const char *__restrict __name, - char *__restrict __resolved, size_t __resolvedlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern char *__realpath_alias(const char *__restrict __name, - char *__restrict __resolved) __asm__("" - "realpath") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)); -extern char *__realpath_chk_warn(const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __asm__("" - "__realpath_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__warn_unused_result__)) __attribute__(( - __warning__("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) char *__attribute__((__nothrow__, - __leaf__)) -realpath(const char *__restrict __name, char *__restrict __resolved) { - size_t sz = __builtin_object_size(__resolved, 2 > 1); - - if (sz == (size_t)-1) - return __realpath_alias(__name, __resolved); - - if ((((__typeof(4096))0 < (__typeof(4096))-1 || - (__builtin_constant_p(4096) && (4096) > 0)) && - __builtin_constant_p( - (((long unsigned int)(4096)) <= (sz) / (sizeof(char)))) && - !(((long unsigned int)(4096)) <= (sz) / (sizeof(char))))) - return __realpath_chk_warn(__name, __resolved, sz); - - return __realpath_chk(__name, __resolved, sz); -} - -extern int __ptsname_r_chk(int __fd, char *__buf, size_t __buflen, - size_t __nreal) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_alias(int __fd, char *__buf, - size_t __buflen) __asm__("" - "ptsname_r") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__access__(__write_only__, 2, 3))); -extern int __ptsname_r_chk_warn(int __fd, char *__buf, size_t __buflen, - size_t __nreal) __asm__("" - "__ptsname_r_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__nonnull__(2))) - __attribute__((__warning__("ptsname_r called with buflen bigger than " - "size of buf"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int - __attribute__((__nothrow__, __leaf__)) - ptsname_r(int __fd, char *__buf, size_t __buflen) { - return ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_alias(__fd, __buf, __buflen) - : ((((__typeof(__buflen))0 < (__typeof(__buflen))-1 || - (__builtin_constant_p(__buflen) && (__buflen) > 0)) && - __builtin_constant_p((((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__buflen)) <= - (__builtin_object_size(__buf, 2 > 1)) / (sizeof(char)))) - ? __ptsname_r_chk_warn(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)) - : __ptsname_r_chk(__fd, __buf, __buflen, - __builtin_object_size(__buf, 2 > 1)))) - - ; -} - -extern int __wctomb_chk(char *__s, wchar_t __wchar, size_t __buflen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); -extern int __wctomb_alias(char *__s, wchar_t __wchar) __asm__("" - "wctomb") - __attribute__((__nothrow__, __leaf__)) - __attribute__((__warn_unused_result__)); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -__attribute__((__warn_unused_result__)) int - __attribute__((__nothrow__, __leaf__)) wctomb(char *__s, wchar_t __wchar) { - - if (__builtin_object_size(__s, 2 > 1) != (size_t)-1 && - 16 > __builtin_object_size(__s, 2 > 1)) - return __wctomb_chk(__s, __wchar, __builtin_object_size(__s, 2 > 1)); - return __wctomb_alias(__s, __wchar); -} - -extern size_t __mbstowcs_chk(wchar_t *__restrict __dst, - const char *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_alias(wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len) __asm__("" - "mbstowcs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __mbstowcs_chk_warn( - wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__mbstowcs_chk") __attribute__((__nothrow__, - __leaf__)) - -__attribute__((__warning__("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -mbstowcs(wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) - -{ - return ( - (((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(wchar_t)))) - ? __mbstowcs_chk_warn(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))) - : __mbstowcs_chk(__dst, __src, __len, - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(wchar_t))))) - - ; -} - -extern size_t __wcstombs_chk(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) - __attribute__((__nothrow__, __leaf__)) - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_alias(char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len) __asm__("" - "wcstombs") - __attribute__((__nothrow__, __leaf__)) - - __attribute__((__access__(__write_only__, 1, 3))) - __attribute__((__access__(__read_only__, 2))); -extern size_t __wcstombs_chk_warn(char *__restrict __dst, - const wchar_t *__restrict __src, size_t __len, - size_t __dstlen) __asm__("" - "__wcstombs_chk") - __attribute__((__nothrow__, __leaf__)) - - __attribute__(( - __warning__("wcstombs called with dst buffer smaller than len"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) -size_t __attribute__((__nothrow__, __leaf__)) -wcstombs(char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) - -{ - return ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p( - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) && - (((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_alias(__dst, __src, __len) - : ((((__typeof(__len))0 < (__typeof(__len))-1 || - (__builtin_constant_p(__len) && (__len) > 0)) && - __builtin_constant_p((((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / - (sizeof(char)))) && - !(((long unsigned int)(__len)) <= - (__builtin_object_size(__dst, 2 > 1)) / (sizeof(char)))) - ? __wcstombs_chk_warn(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)) - : __wcstombs_chk(__dst, __src, __len, - __builtin_object_size(__dst, 2 > 1)))) - - ; -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *aligned_alloc(size_t alignment, size_t size) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - - ; -extern void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern char *canonicalize_file_name(const char *name) - __attribute__((__nonnull__(1))) __attribute__((__malloc__)) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern void *malloc(size_t size) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern void *realloc(void *ptr, size_t size) - __attribute__((__malloc__(free, 1))) - - ; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy - - ; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -extern char const *Version; - -enum { - EXIT_TIMEDOUT = 124, - EXIT_CANCELED = 125, - EXIT_CANNOT_INVOKE = 126, - EXIT_ENOENT = 127 -}; - -extern int volatile exit_failure; - -static inline void initialize_exit_failure(int status) { - if (status != 1) - exit_failure = status; -} - -struct flock { - short int l_type; - short int l_whence; - - __off_t l_start; - __off_t l_len; - - __pid_t l_pid; -}; - -struct flock64 { - short int l_type; - short int l_whence; - __off64_t l_start; - __off64_t l_len; - __pid_t l_pid; -}; - -struct iovec { - void *iov_base; - size_t iov_len; -}; -enum __pid_type { - F_OWNER_TID = 0, - F_OWNER_PID, - F_OWNER_PGRP, - F_OWNER_GID = F_OWNER_PGRP -}; - -struct f_owner_ex { - enum __pid_type type; - __pid_t pid; -}; - -struct file_handle { - unsigned int handle_bytes; - int handle_type; - - unsigned char f_handle[0]; -}; - -extern __ssize_t readahead(int __fd, __off64_t __offset, size_t __count) - __attribute__((__nothrow__, __leaf__)); - -extern int sync_file_range(int __fd, __off64_t __offset, __off64_t __count, - unsigned int __flags); - -extern __ssize_t vmsplice(int __fdout, const struct iovec *__iov, - size_t __count, unsigned int __flags); - -extern __ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, - __off64_t *__offout, size_t __len, - unsigned int __flags); - -extern __ssize_t tee(int __fdin, int __fdout, size_t __len, - unsigned int __flags); - -extern int fallocate(int __fd, int __mode, __off_t __offset, __off_t __len); -extern int fallocate64(int __fd, int __mode, __off64_t __offset, - __off64_t __len); - -extern int name_to_handle_at(int __dfd, const char *__name, - struct file_handle *__handle, int *__mnt_id, - int __flags) - __attribute__((__nothrow__, __leaf__)); - -extern int open_by_handle_at(int __mountdirfd, struct file_handle *__handle, - int __flags); - -extern int fcntl(int __fd, int __cmd, ...); -extern int fcntl64(int __fd, int __cmd, ...); -extern int open(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int open64(const char *__file, int __oflag, ...) - __attribute__((__nonnull__(1))); -extern int openat(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int openat64(int __fd, const char *__file, int __oflag, ...) - __attribute__((__nonnull__(2))); -extern int creat(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int creat64(const char *__file, mode_t __mode) - __attribute__((__nonnull__(1))); -extern int posix_fadvise(int __fd, off_t __offset, off_t __len, int __advise) - __attribute__((__nothrow__, __leaf__)); -extern int posix_fadvise64(int __fd, off64_t __offset, off64_t __len, - int __advise) __attribute__((__nothrow__, __leaf__)); -extern int posix_fallocate(int __fd, off_t __offset, off_t __len); -extern int posix_fallocate64(int __fd, off64_t __offset, off64_t __len); - -extern int __open_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open_alias(const char *__path, int __oflag, ...) __asm__("" - "open") - __attribute__((__nonnull__(1))); - -extern void __open_too_many_args(void) __attribute__(( - __error__("open can be called either with 2 or 3 arguments, not more"))); -extern void __open_missing_mode(void) __attribute__((__error__( - "open with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open_missing_mode(); - return __open_2(__path, __oflag); - } - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open_2(__path, __oflag); - - return __open_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __open64_2(const char *__path, int __oflag) - __attribute__((__nonnull__(1))); -extern int __open64_alias(const char *__path, int __oflag, - ...) __asm__("" - "open64") - __attribute__((__nonnull__(1))); -extern void __open64_too_many_args(void) __attribute__(( - __error__("open64 can be called either with 2 or 3 arguments, not more"))); -extern void __open64_missing_mode(void) __attribute__((__error__( - "open64 with O_CREAT or O_TMPFILE in second argument needs 3 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -open64(const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __open64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __open64_missing_mode(); - return __open64_2(__path, __oflag); - } - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __open64_2(__path, __oflag); - - return __open64_alias(__path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat") - - __attribute__((__nonnull__(2))); -extern void __openat_too_many_args(void) __attribute__(( - __error__("openat can be called either with 3 or 4 arguments, not more"))); -extern void __openat_missing_mode(void) __attribute__((__error__( - "openat with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat_missing_mode(); - return __openat_2(__fd, __path, __oflag); - } - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat_2(__fd, __path, __oflag); - - return __openat_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int __openat64_2(int __fd, const char *__path, int __oflag) - __attribute__((__nonnull__(2))); -extern int __openat64_alias(int __fd, const char *__path, int __oflag, - ...) __asm__("" - "openat64") - - __attribute__((__nonnull__(2))); -extern void __openat64_too_many_args(void) __attribute__((__error__( - "openat64 can be called either with 3 or 4 arguments, not more"))); -extern void __openat64_missing_mode(void) __attribute__((__error__( - "openat64 with O_CREAT or O_TMPFILE in third argument needs 4 arguments"))); - -extern __inline __attribute__((__always_inline__)) -__attribute__((__gnu_inline__)) __attribute__((__artificial__)) int -openat64(int __fd, const char *__path, int __oflag, ...) { - if (__builtin_va_arg_pack_len() > 1) - __openat64_too_many_args(); - - if (__builtin_constant_p(__oflag)) { - if ((((__oflag)&0100) != 0 || - ((__oflag) & (020000000 | 0200000)) == (020000000 | 0200000)) && - __builtin_va_arg_pack_len() < 1) { - __openat64_missing_mode(); - return __openat64_2(__fd, __path, __oflag); - } - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); - } - - if (__builtin_va_arg_pack_len() < 1) - return __openat64_2(__fd, __path, __oflag); - - return __openat64_alias(__fd, __path, __oflag, __builtin_va_arg_pack()); -} - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int rpl_fcntl(int fd, int action, ...); -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { O_PATHSEARCH = 010000000 }; - -struct dirent { - - __ino_t d_ino; - __off_t d_off; - - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; - -struct dirent64 { - __ino64_t d_ino; - __off64_t d_off; - unsigned short int d_reclen; - unsigned char d_type; - char d_name[256]; -}; -enum { - DT_UNKNOWN = 0, - - DT_FIFO = 1, - - DT_CHR = 2, - - DT_DIR = 4, - - DT_BLK = 6, - - DT_REG = 8, - - DT_LNK = 10, - - DT_SOCK = 12, - - DT_WHT = 14 - -}; -typedef struct __dirstream DIR; - -extern DIR *opendir(const char *__name) __attribute__((__nonnull__(1))); - -extern DIR *fdopendir(int __fd); - -extern int closedir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent *readdir(DIR *__dirp) __attribute__((__nonnull__(1))); -extern struct dirent64 *readdir64(DIR *__dirp) __attribute__((__nonnull__(1))); -extern int readdir_r(DIR *__restrict __dirp, struct dirent *__restrict __entry, - struct dirent **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); -extern int readdir64_r(DIR *__restrict __dirp, - struct dirent64 *__restrict __entry, - struct dirent64 **__restrict __result) - __attribute__((__nonnull__(1, 2, 3))) __attribute__((__deprecated__)); - -extern void rewinddir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern void seekdir(DIR *__dirp, long int __pos) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(1))); - -extern long int telldir(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); - -extern int dirfd(DIR *__dirp) __attribute__((__nothrow__, __leaf__)) -__attribute__((__nonnull__(1))); -extern int scandir(const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, const struct dirent **)) - __attribute__((__nonnull__(1, 2))); -extern int scandir64(const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(1, 2))); -extern int scandirat(int __dfd, const char *__restrict __dir, - struct dirent ***__restrict __namelist, - int (*__selector)(const struct dirent *), - int (*__cmp)(const struct dirent **, - const struct dirent **)) - __attribute__((__nonnull__(2, 3))); -extern int scandirat64(int __dfd, const char *__restrict __dir, - struct dirent64 ***__restrict __namelist, - int (*__selector)(const struct dirent64 *), - int (*__cmp)(const struct dirent64 **, - const struct dirent64 **)) - __attribute__((__nonnull__(2, 3))); - -extern int alphasort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int alphasort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern __ssize_t getdirentries(int __fd, char *__restrict __buf, - size_t __nbytes, __off_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); -extern __ssize_t getdirentries64(int __fd, char *__restrict __buf, - size_t __nbytes, __off64_t *__restrict __basep) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2, 4))); - -extern int versionsort(const struct dirent **__e1, const struct dirent **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); -extern int versionsort64(const struct dirent64 **__e1, - const struct dirent64 **__e2) - __attribute__((__nothrow__, __leaf__)) __attribute__((__pure__)) - __attribute__((__nonnull__(1, 2))); - -extern __ssize_t getdents64(int __fd, void *__buffer, size_t __length) - __attribute__((__nothrow__, __leaf__)) __attribute__((__nonnull__(2))); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *opendir(const char *dir_name) __attribute__((__nonnull__(1))) -__attribute__((__malloc__)) __attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern DIR *fdopendir(int fd) __attribute__((__malloc__)) -__attribute__((__malloc__(closedir, 1))) - -; - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { NOT_AN_INODE_NUMBER = 0 }; - -typedef __uint8_t uint8_t; -typedef __uint16_t uint16_t; -typedef __uint32_t uint32_t; -typedef __uint64_t uint64_t; - -typedef __int_least8_t int_least8_t; -typedef __int_least16_t int_least16_t; -typedef __int_least32_t int_least32_t; -typedef __int_least64_t int_least64_t; - -typedef __uint_least8_t uint_least8_t; -typedef __uint_least16_t uint_least16_t; -typedef __uint_least32_t uint_least32_t; -typedef __uint_least64_t uint_least64_t; - -typedef signed char int_fast8_t; - -typedef long int int_fast16_t; -typedef long int int_fast32_t; -typedef long int int_fast64_t; -typedef unsigned char uint_fast8_t; - -typedef unsigned long int uint_fast16_t; -typedef unsigned long int uint_fast32_t; -typedef unsigned long int uint_fast64_t; -typedef unsigned long int uintptr_t; -typedef __intmax_t intmax_t; -typedef __uintmax_t uintmax_t; - -typedef int __gwchar_t; - -typedef struct { - long int quot; - long int rem; -} imaxdiv_t; -extern intmax_t imaxabs(intmax_t __n) __attribute__((__nothrow__, __leaf__)) -__attribute__((__const__)); - -extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); - -extern intmax_t strtoimax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t strtoumax(const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern intmax_t wcstoimax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern uintmax_t wcstoumax(const __gwchar_t *__restrict __nptr, - __gwchar_t **__restrict __endptr, int __base) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; - -enum { TIMESPEC_HZ = 1000000000 }; -enum { LOG10_TIMESPEC_HZ = 9 }; - -enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; -enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; - -inline struct timespec make_timespec(time_t s, long int ns) { - struct timespec r; - r.tv_sec = s; - r.tv_nsec = ns; - return r; -} - -inline int __attribute__((__pure__)) -timespec_cmp(struct timespec a, struct timespec b) { - return 2 * (((a.tv_sec) > (b.tv_sec)) - ((a.tv_sec) < (b.tv_sec))) + - (((a.tv_nsec) > (b.tv_nsec)) - ((a.tv_nsec) < (b.tv_nsec))); -} - -inline int __attribute__((__pure__)) timespec_sign(struct timespec a) { - return (((a.tv_sec) > (0)) - ((a.tv_sec) < (0))) + (!a.tv_sec & !!a.tv_nsec); -} - -struct timespec timespec_add(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec timespec_sub(struct timespec, struct timespec) - __attribute__((__const__)); -struct timespec dtotimespec(double) __attribute__((__const__)); - -inline double timespectod(struct timespec a) { - return a.tv_sec + a.tv_nsec / 1e9; -} - -long int gettime_res(void); -struct timespec current_timespec(void); -void gettime(struct timespec *) __attribute__((__nonnull__(1))); -int settime(struct timespec const *) __attribute__((__nonnull__(1))); - -enum { - _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), - _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), - _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), - _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), - _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), - _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), - _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), - _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), - _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), - _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), - _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), - _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) -}; -extern const unsigned short int **__ctype_b_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_tolower_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern const __int32_t **__ctype_toupper_loc(void) - __attribute__((__nothrow__, __leaf__)) __attribute__((__const__)); -extern int isalnum(int) __attribute__((__nothrow__, __leaf__)); -extern int isalpha(int) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl(int) __attribute__((__nothrow__, __leaf__)); -extern int isdigit(int) __attribute__((__nothrow__, __leaf__)); -extern int islower(int) __attribute__((__nothrow__, __leaf__)); -extern int isgraph(int) __attribute__((__nothrow__, __leaf__)); -extern int isprint(int) __attribute__((__nothrow__, __leaf__)); -extern int ispunct(int) __attribute__((__nothrow__, __leaf__)); -extern int isspace(int) __attribute__((__nothrow__, __leaf__)); -extern int isupper(int) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit(int) __attribute__((__nothrow__, __leaf__)); - -extern int tolower(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toupper(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int isblank(int) __attribute__((__nothrow__, __leaf__)); - -extern int isctype(int __c, int __mask) __attribute__((__nothrow__, __leaf__)); - -extern int isascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int toascii(int __c) __attribute__((__nothrow__, __leaf__)); - -extern int _toupper(int) __attribute__((__nothrow__, __leaf__)); -extern int _tolower(int) __attribute__((__nothrow__, __leaf__)); -extern int isalnum_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isalpha_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int iscntrl_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int islower_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isgraph_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isprint_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int ispunct_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isspace_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isupper_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); -extern int isxdigit_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int isblank_l(int, locale_t) __attribute__((__nothrow__, __leaf__)); - -extern int __tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int tolower_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -extern int __toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); -extern int toupper_l(int __c, locale_t __l) - __attribute__((__nothrow__, __leaf__)); - -static inline unsigned char to_uchar(char ch) { return ch; } - -static inline _Bool - -field_sep(unsigned char ch) { - return ((*__ctype_b_loc())[(int)((ch))] & (unsigned short int)_ISblank) || - ch == '\n'; -} - -struct lconv { - - char *decimal_point; - char *thousands_sep; - - char *grouping; - - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - - char p_cs_precedes; - - char p_sep_by_space; - - char n_cs_precedes; - - char n_sep_by_space; - - char p_sign_posn; - char n_sign_posn; - - char int_p_cs_precedes; - - char int_p_sep_by_space; - - char int_n_cs_precedes; - - char int_n_sep_by_space; - - char int_p_sign_posn; - char int_n_sign_posn; -}; - -extern char *setlocale(int __category, const char *__locale) - __attribute__((__nothrow__, __leaf__)); - -extern struct lconv *localeconv(void) __attribute__((__nothrow__, __leaf__)); -extern locale_t newlocale(int __category_mask, const char *__locale, - locale_t __base) - __attribute__((__nothrow__, __leaf__)); -extern locale_t duplocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern void freelocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern locale_t uselocale(locale_t __dataset) - __attribute__((__nothrow__, __leaf__)); - -extern int _gl_cxxalias_dummy; - -extern int _gl_cxxalias_dummy; -extern int setlocale_null_r(int category, char *buf, size_t bufsize) - __attribute__((__nonnull__(2))); -extern const char *setlocale_null(int category); - -extern char *gettext(const char *__msgid) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(1))); - -extern char *dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); -extern char *__dgettext(const char *__domainname, const char *__msgid) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))); - -extern char *dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); -extern char *__dcgettext(const char *__domainname, const char *__msgid, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))); - -extern char *ngettext(const char *__msgid1, const char *__msgid2, - unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(1))) - __attribute__((__format_arg__(2))); - -extern char *dngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) - __attribute__((__nothrow__, __leaf__)) __attribute__((__format_arg__(2))) - __attribute__((__format_arg__(3))); - -extern char *dcngettext(const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n, - int __category) __attribute__((__nothrow__, __leaf__)) -__attribute__((__format_arg__(2))) __attribute__((__format_arg__(3))); - -extern char *textdomain(const char *__domainname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bindtextdomain(const char *__domainname, const char *__dirname) - __attribute__((__nothrow__, __leaf__)); - -extern char *bind_textdomain_codeset(const char *__domainname, - const char *__codeset) - __attribute__((__nothrow__, __leaf__)); - -__inline - - static const char * - pgettext_aux(const char *domain, const char *msg_ctxt_id, const char *msgid, - int category) { - const char *translation = dcgettext(domain, msg_ctxt_id, category); - if (translation == msg_ctxt_id) - return msgid; - else - return translation; -} - -__inline - - static const char * - npgettext_aux(const char *domain, const char *msg_ctxt_id, - const char *msgid, const char *msgid_plural, - unsigned long int n, int category) { - const char *translation = - dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - if (translation == msg_ctxt_id || translation == msgid_plural) - return (n == 1 ? msgid : msgid_plural); - else - return translation; -} - -__inline - - static const char * - dcpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcgettext(domain, msg_ctxt_id, category); - found_translation = (translation != msg_ctxt_id); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return msgid; -} - -__inline - - static const char * - dcnpgettext_expr(const char *domain, const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) { - size_t msgctxt_len = strlen(msgctxt) + 1; - size_t msgid_len = strlen(msgid) + 1; - const char *translation; - - char buf[1024]; - char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof(buf) - ? buf - : (char *)malloc(msgctxt_len + msgid_len)); - if (msg_ctxt_id != ((void *)0)) - - { - int found_translation; - memcpy(msg_ctxt_id, msgctxt, msgctxt_len - 1); - msg_ctxt_id[msgctxt_len - 1] = '\004'; - memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); - translation = dcngettext(domain, msg_ctxt_id, msgid_plural, n, category); - found_translation = - !(translation == msg_ctxt_id || translation == msgid_plural); - - if (msg_ctxt_id != buf) - free(msg_ctxt_id); - - if (found_translation) - return translation; - } - return (n == 1 ? msgid : msgid_plural); -} -static inline unsigned long int select_plural(uintmax_t n) { - - enum { PLURAL_REDUCER = 1000000 }; - return (n <= (0x7fffffffffffffffL * 2UL + 1UL) - ? n - : n % PLURAL_REDUCER + PLURAL_REDUCER); -} - -typedef ptrdiff_t idx_t; - -_Noreturn void xalloc_die(void); - -void *xmalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *ximalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xinmalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xzalloc(size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xizalloc(idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); -void *xcalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xicalloc(idx_t n, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); -void *xrealloc(void *p, size_t s) __attribute__((__alloc_size__(2))); -void *xirealloc(void *p, idx_t s) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *xreallocarray(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -void *xireallocarray(void *p, idx_t n, idx_t s) - __attribute__((__alloc_size__(2, 3))) __attribute__((__returns_nonnull__)); -void *x2realloc(void *p, size_t *ps) __attribute__((__returns_nonnull__)); -void *x2nrealloc(void *p, size_t *pn, size_t s) - __attribute__((__returns_nonnull__)); -void *xpalloc(void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) - __attribute__((__returns_nonnull__)); -void *xmemdup(void const *p, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -void *ximemdup(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(2))) -__attribute__((__returns_nonnull__)); -char *ximemdup0(void const *p, idx_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *xstrdup(char const *str) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -void *xnmalloc(size_t n, size_t s) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1, 2))) -__attribute__((__returns_nonnull__)); - -inline void *xnrealloc(void *p, size_t n, size_t s) - __attribute__((__alloc_size__(2, 3))); -inline void *xnrealloc(void *p, size_t n, size_t s) { - return xreallocarray(p, n, s); -} - -char *xcharalloc(size_t n) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__alloc_size__(1))) -__attribute__((__returns_nonnull__)); - -extern char *last_component(char const *filename) __attribute__((__pure__)); - -extern size_t base_len(char const *filename) __attribute__((__pure__)); -char *base_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); -char *dir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))) __attribute__((__returns_nonnull__)); - -char *mdir_name(char const *file) __attribute__((__malloc__)) -__attribute__((__malloc__(free, 1))); -size_t dir_len(char const *file) __attribute__((__pure__)); - -_Bool strip_trailing_slashes(char *file); - -_Noreturn void openat_restore_fail(int); -_Noreturn void openat_save_fail(int); -inline int chownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0); -} - -inline int lchownat(int fd, char const *file, uid_t owner, gid_t group) { - return fchownat(fd, file, owner, group, 0x100); -} -inline int chmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0); -} - -inline int lchmodat(int fd, char const *file, mode_t mode) { - return fchmodat(fd, file, mode, 0x100); -} - -static inline _Bool - -dot_or_dotdot(char const *file_name) { - if (file_name[0] == '.') { - char sep = file_name[(file_name[1] == '.') + 1]; - return (!sep || ((sep) == '/')); - } else - return 0; -} - -static inline struct dirent const *readdir_ignoring_dot_and_dotdot(DIR *dirp) { - while (1) { - struct dirent const *dp = readdir(dirp); - if (dp == ((void *)0) || !dot_or_dotdot(dp->d_name)) - return dp; - } -} - -static inline _Bool - -is_empty_dir(int fd_cwd, char const *dir) { - DIR *dirp; - struct dirent const *dp; - int saved_errno; - int fd = openat(fd_cwd, dir, - (00 | 0200000 - - | 0400 | 0400000 | 04000)); - - if (fd < 0) - return 0; - - dirp = fdopendir(fd); - if (dirp == ((void *)0)) { - close(fd); - return 0; - } - - (*__errno_location()) = 0; - dp = readdir_ignoring_dot_and_dotdot(dirp); - saved_errno = (*__errno_location()); - closedir(dirp); - - (*__errno_location()) = saved_errno; - if (dp != ((void *)0)) - return 0; - return saved_errno == 0 ? 1 : 0; -} - -enum { - GETOPT_HELP_CHAR = ((-0x7f - 1) - 2), - GETOPT_VERSION_CHAR = ((-0x7f - 1) - 3) -}; -void close_stdin_set_file_name(const char *file); -void close_stdin(void); -void close_stdout_set_file_name(const char *file); -void close_stdout_set_ignore_EPIPE(_Bool ignore); -void close_stdout(void); - -extern const char version_etc_copyright[]; -extern void version_etc_arn(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors, size_t n_authors); - -extern void version_etc_ar(FILE *stream, const char *command_name, - const char *package, const char *version, - const char *const *authors); - -extern void version_etc_va(FILE *stream, const char *command_name, - const char *package, const char *version, - va_list authors); - -extern void version_etc(FILE *stream, const char *command_name, - const char *package, const char *version, ...) - __attribute__((__sentinel__(0))); - -extern void unused__emit_bug_reporting_address(void); - -extern const char *proper_name(const char *name); - -extern const char *proper_name_utf8(const char *name_ascii, - const char *name_utf8); - -extern const char *program_name; - -extern void set_program_name(const char *argv0); -__attribute__((__const__)) static inline size_t gcd(size_t u, size_t v) { - do { - size_t t = u % v; - u = v; - v = t; - } while (v); - - return u; -} - -__attribute__((__const__)) static inline size_t lcm(size_t u, size_t v) { - return u * (v / gcd(u, v)); -} - -static inline void *ptr_align(void const *ptr, size_t alignment) { - char const *p0 = ptr; - char const *p1 = p0 + alignment - 1; - return (void *)(p1 - (size_t)p1 % alignment); -} - -__attribute__((__pure__)) static inline _Bool - -is_nul(void const *buf, size_t length) { - const unsigned char *p = buf; - unsigned char word; - - if (!length) - return 1; - - while (__builtin_expect((length & (sizeof word - 1)), 0)) { - if (*p) - return 0; - p++; - length--; - if (!length) - return 1; - } - - for (;;) { - memcpy(&word, p, sizeof word); - if (word) - return 0; - p += sizeof word; - length -= sizeof word; - if (!length) - return 1; - if (__builtin_expect((length & 15), 0) == 0) - break; - } - - return memcmp(buf, p, length) == 0; -} -static inline void emit_stdin_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nWith no FILE, or when FILE is -, read standard input.\n", 5), - stdout) - - ; -} -static inline void emit_mandatory_arg_note(void) { - fputs_unlocked(dcgettext(((void *)0), - "\nMandatory arguments to long options are " - "mandatory for short options too.\n", - 5), - stdout) - - ; -} - -static inline void emit_size_note(void) { - fputs_unlocked( - dcgettext(((void *)0), - "\nThe SIZE argument is an integer and optional unit (example: " - "10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) " - "or KB,MB,... (powers of 1000).\nBinary prefixes can be used, " - "too: KiB=K, MiB=M, and so on.\n", - 5), - stdout) - - ; -} - -static inline void emit_blocksize_note(char const *program) { - printf(dcgettext(((void *)0), - "\nDisplay values are in units of the first available SIZE " - "from --block-size,\nand the %s_BLOCK_SIZE, BLOCK_SIZE and " - "BLOCKSIZE environment variables.\nOtherwise, units default " - "to 1024 bytes (or 512 if POSIXLY_CORRECT is set).\n", - 5) - - , - program); -} - -static inline void emit_backup_suffix_note(void) { - fputs_unlocked( - dcgettext( - ((void *)0), - "\nThe backup suffix is '~', unless set with --suffix or " - "SIMPLE_BACKUP_SUFFIX.\nThe version control method may be selected " - "via the --backup option or through\nthe VERSION_CONTROL environment " - "variable. Here are the values:\n\n", - 5), - stdout) - - ; - fputs_unlocked( - dcgettext(((void *)0), - " none, off never make backups (even if --backup is " - "given)\n numbered, t make numbered backups\n existing, " - "nil numbered if numbered backups exist, simple otherwise\n " - "simple, never always make simple backups\n", - 5), - stdout) - - ; -} - -static inline void emit_ancillary_info(char const *program) { - struct infomap { - char const *program; - char const *node; - } const infomap[] = { - {"[", "test invocation"}, {"coreutils", "Multi-call invocation"}, - {"sha224sum", "sha2 utilities"}, {"sha256sum", "sha2 utilities"}, - {"sha384sum", "sha2 utilities"}, {"sha512sum", "sha2 utilities"}, - {((void *)0), ((void *)0)}}; - - char const *node = program; - struct infomap const *map_prog = infomap; - - while (map_prog->program && !(strcmp(program, map_prog->program) == 0)) - map_prog++; - - if (map_prog->node) - node = map_prog->node; - - printf(dcgettext(((void *)0), "\n%s online help: <%s>\n", 5), "GNU coreutils", - "https://www.gnu.org/software/coreutils/"); - - char const *lc_messages = setlocale(5, ((void *)0)); - if (lc_messages && strncmp(lc_messages, - "" - "en_" - "", - sizeof("en_") - 1)) { - - fputs_unlocked(dcgettext(((void *)0), - "Report any translation bugs to " - "\n", - 5), - stdout); - } - - char const *url_program = (strcmp(program, "[") == 0) ? "test" : program; - printf(dcgettext(((void *)0), "Full documentation <%s%s>\n", 5), - "https://www.gnu.org/software/coreutils/", url_program); - printf(dcgettext(((void *)0), - "or available locally via: info '(coreutils) %s%s'\n", 5), - node, node == program ? " invocation" : ""); -} - -char *imaxtostr(intmax_t, char *); -char *inttostr(int, char *); -char *offtostr(off_t, char *); -char *uinttostr(unsigned int, char *); -char *umaxtostr(uintmax_t, char *); - -static inline char *timetostr(time_t t, char *buf) { - return ((!((time_t)0 < (time_t)-1)) ? imaxtostr(t, buf) : umaxtostr(t, buf)); -} - -static inline char *bad_cast(char const *s) { return (char *)s; } - -static inline _Bool - -usable_st_size(struct stat const *sb) { - return (((((sb->st_mode)) & 0170000) == (0100000)) || - ((((sb->st_mode)) & 0170000) == (0120000)) - - || ((sb)->st_mode - (sb)->st_mode) || 0); -} - -_Noreturn void usage(int status); -static inline char *stzncpy(char *__restrict__ dest, - char const *__restrict__ src, size_t len) { - char const *src_end = src + len; - while (src < src_end && *src) - *dest++ = *src++; - *dest = 0; - return dest; -} -static inline _Bool - -is_ENOTSUP(int err) { - return err == 95 || (95 != 95 && err == 95); -} - -enum quoting_style { - literal_quoting_style, - shell_quoting_style, - shell_always_quoting_style, - shell_escape_quoting_style, - shell_escape_always_quoting_style, - c_quoting_style, - c_maybe_quoting_style, - escape_quoting_style, - locale_quoting_style, - clocale_quoting_style, - custom_quoting_style -}; - -enum quoting_flags { - - QA_ELIDE_NULL_BYTES = 0x01, - - QA_ELIDE_OUTER_QUOTES = 0x02, - - QA_SPLIT_TRIGRAPHS = 0x04 -}; - -extern char const *const quoting_style_args[]; -extern enum quoting_style const quoting_style_vals[]; - -struct quoting_options; - -struct quoting_options *clone_quoting_options(struct quoting_options *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -enum quoting_style get_quoting_style(struct quoting_options const *o); - -void set_quoting_style(struct quoting_options *o, enum quoting_style s); -int set_char_quoting(struct quoting_options *o, char c, int i); - -int set_quoting_flags(struct quoting_options *o, int i); -void set_custom_quoting(struct quoting_options *o, char const *left_quote, - char const *right_quote); -size_t quotearg_buffer(char *__restrict__ buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); - -char *quotearg_alloc(char const *arg, size_t argsize, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); - -char *quotearg_alloc_mem(char const *arg, size_t argsize, size_t *size, - struct quoting_options const *o) - __attribute__((__malloc__)) __attribute__((__malloc__(free, 1))) - __attribute__((__returns_nonnull__)); -char *quotearg_n(int n, char const *arg); - -char *quotearg(char const *arg); - -char *quotearg_n_mem(int n, char const *arg, size_t argsize); - -char *quotearg_mem(char const *arg, size_t argsize); - -char *quotearg_n_style(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_style_mem(int n, enum quoting_style s, char const *arg, - size_t argsize); - -char *quotearg_style(enum quoting_style s, char const *arg); - -char *quotearg_style_mem(enum quoting_style s, char const *arg, size_t argsize); - -char *quotearg_char(char const *arg, char ch); - -char *quotearg_char_mem(char const *arg, size_t argsize, char ch); - -char *quotearg_colon(char const *arg); - -char *quotearg_colon_mem(char const *arg, size_t argsize); - -char *quotearg_n_style_colon(int n, enum quoting_style s, char const *arg); - -char *quotearg_n_custom(int n, char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_n_custom_mem(int n, char const *left_quote, - char const *right_quote, char const *arg, - size_t argsize); - -char *quotearg_custom(char const *left_quote, char const *right_quote, - char const *arg); - -char *quotearg_custom_mem(char const *left_quote, char const *right_quote, - char const *arg, size_t argsize); - -void quotearg_free(void); - -extern void error(int __status, int __errnum, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 3, 4))) - - ; - -extern void error_at_line(int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) - - __attribute__((__format__(__gnu_printf__, 5, 6))) - - ; - -extern void (*error_print_progname)(void); - -extern unsigned int error_message_count; - -extern int error_one_per_line; -extern size_t full_write(int fd, const void *buf, size_t count); -void parse_long_options(int _argc, char **_argv, const char *_command_name, - const char *_package, const char *_version, - void (*_usage)(int), ...); - -void parse_gnu_standard_options_only(int argc, char **argv, - const char *command_name, - const char *package, const char *version, - - _Bool scan_all, void (*usage_func)(int), - ...); - -void usage(int status) { - if (status != 0) - do { - fprintf( - stderr, - dcgettext(((void *)0), "Try '%s --help' for more information.\n", 5), - program_name); - } while (0); - else { - printf( - dcgettext(((void *)0), "Usage: %s [STRING]...\n or: %s OPTION\n", 5) - - , - program_name, program_name); - - fputs_unlocked(dcgettext(((void *)0), - "Repeatedly output a line with all specified " - "STRING(s), or 'y'.\n\n", - 5), - stdout) - - ; - fputs_unlocked(dcgettext(((void *)0), - " --help display this help and exit\n", - 5), - stdout); - fputs_unlocked( - dcgettext(((void *)0), - " --version output version information and exit\n", - 5), - stdout); - emit_ancillary_info("yes"); - } - exit(status); -} - -int main(int argc, char **argv) { - ; - set_program_name(argv[0]); - setlocale(6, ""); - bindtextdomain("coreutils", "/usr/local/share/locale"); - textdomain("coreutils"); - - atexit(close_stdout); - - parse_gnu_standard_options_only(argc, argv, "yes", "GNU coreutils", Version, - 1, usage, ("David MacKenzie"), - (char const *)((void *)0)); - - char **operands = argv + optind; - char **operand_lim = argv + argc; - if (optind == argc) - *operand_lim++ = bad_cast("y"); - - size_t bufalloc = 0; - - _Bool reuse_operand_strings = 1; - char **operandp = operands; - do { - size_t operand_len = strlen(*operandp); - bufalloc += operand_len + 1; - if (operandp + 1 < operand_lim && - *operandp + operand_len + 1 != operandp[1]) - reuse_operand_strings = 0; - } while (++operandp < operand_lim); - - if (bufalloc <= 8192 / 2) { - bufalloc = 8192; - reuse_operand_strings = 0; - } - - char *buf = reuse_operand_strings ? *operands : xmalloc(bufalloc); - size_t bufused = 0; - operandp = operands; - do { - size_t operand_len = strlen(*operandp); - if (!reuse_operand_strings) - memcpy(buf + bufused, *operandp, operand_len); - bufused += operand_len; - buf[bufused++] = ' '; - } while (++operandp < operand_lim); - buf[bufused - 1] = '\n'; - - size_t copysize = bufused; - for (size_t copies = bufalloc / copysize; --copies;) { - memcpy(buf + bufused, buf, copysize); - bufused += copysize; - } - - while (full_write(1, buf, bufused) == bufused) - continue; - error(0, (*__errno_location()), dcgettext(((void *)0), "standard output", 5)); - exit(1); -} diff --git a/tests/source/motivating_example.c b/tests/source/motivating_example.c deleted file mode 100644 index 8cab3dc..0000000 --- a/tests/source/motivating_example.c +++ /dev/null @@ -1,68 +0,0 @@ -/* This C program based on code found inside the Linux kernel job scheduler version 6.1 and is - * used as the motivating example in the SAILR paper from USENIX 2024. Compile it using: - * - * gcc -fno-inline -O2 motivating_example.c -o motivating_example; strip --strip-debug motivating_example - * - * This will enable O2 optimizations, which have Jump Threading, and cause the function schedule_job - * to have at least two gotos in the output and a duplication call to refresh_jobs. - */ - -#include - - -int EXTRA_RUN = 3; -int EARLY_EXIT = 4; - -int next_job() { - puts("next_job"); - return 1; -} - -int refresh_jobs() { - puts("refresh_jobs"); - return 2; -} - -int fast_unlock() { - puts("fast_unlock"); - return 4; -} - -int complete_job() { - puts("checking..."); -} - -void log_workers() { - puts("log_workers"); -} - -int job_status(int stats) { - puts("job_status"); - return stats; -} - -int schedule_job(int needs_next, int fast_job, int mode) -{ - if (needs_next && fast_job) { - complete_job(); - if (mode == EARLY_EXIT) - goto cleanup; - - next_job(); - } - - refresh_jobs(); - if (fast_job) - fast_unlock(); - -cleanup: - complete_job(); - log_workers(); - return job_status(fast_job); -} - -int main(int argc, char** argv) -{ - return schedule_job(argv[0][0], argv[1][0], argv[2][0]); -} - diff --git a/tests/source/test1.c b/tests/source/test1.c deleted file mode 100755 index beb5c43..0000000 --- a/tests/source/test1.c +++ /dev/null @@ -1,22 +0,0 @@ -#include -#include -#include - -void foo(int a, int b, int c) -{ - if (a && b) { - puts("first print"); - } - - puts("second print"); - - if (b || c) - puts("third print"); - - sleep(1); - puts("leaving foo..."); -} - -int main(int argc, char** argv) { - foo((int)argv[0], (int)argv[1], (int)argv[2]); -} diff --git a/tests/source/test2.c b/tests/source/test2.c deleted file mode 100755 index ea1029e..0000000 --- a/tests/source/test2.c +++ /dev/null @@ -1,23 +0,0 @@ -#include -#include -#include - -void foo(int a, int b, int c, int d) -{ - if (a && b && c) - puts("first print"); - else if (b || c) - puts("second print"); - - puts("third print"); - - if (c || d) - puts("fourth print"); - - sleep(1); - puts("leaving foo..."); -} - -int main(int argc, char** argv) { - foo((int)argv[0], (int)argv[1], (int)argv[2], (int)argv[3]); -} diff --git a/tests/source/true_localcharset.c b/tests/source/true_localcharset.c deleted file mode 100755 index f2a752d..0000000 --- a/tests/source/true_localcharset.c +++ /dev/null @@ -1,609 +0,0 @@ -/* Determine a canonical name for the current locale's character encoding. - Copyright (C) 2000-2006, 2008-2016 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with this program; if not, see . */ - -/* Written by Bruno Haible . */ - -#include - -/* Specification. */ -#include "localcharset.h" - -#include -#include -#include -#include -#include - -#if defined __APPLE__ && defined __MACH__ && HAVE_LANGINFO_CODESET -# define DARWIN7 /* Darwin 7 or newer, i.e. Mac OS X 10.3 or newer */ -#endif - -#if defined _WIN32 || defined __WIN32__ -# define WINDOWS_NATIVE -# include -#endif - -#if defined __EMX__ -/* Assume EMX program runs on OS/2, even if compiled under DOS. */ -# ifndef OS2 -# define OS2 -# endif -#endif - -#if !defined WINDOWS_NATIVE -# include -# if HAVE_LANGINFO_CODESET -# include -# else -# if 0 /* see comment below */ -# include -# endif -# endif -# ifdef __CYGWIN__ -# define WIN32_LEAN_AND_MEAN -# include -# endif -#elif defined WINDOWS_NATIVE -# define WIN32_LEAN_AND_MEAN -# include -#endif -#if defined OS2 -# define INCL_DOS -# include -#endif - -/* For MB_CUR_MAX_L */ -#if defined DARWIN7 -# include -#endif - -#if ENABLE_RELOCATABLE -# include "relocatable.h" -#else -# define relocate(pathname) (pathname) -#endif - -/* Get LIBDIR. */ -#ifndef LIBDIR -# include "configmake.h" -#endif - -/* Define O_NOFOLLOW to 0 on platforms where it does not exist. */ -#ifndef O_NOFOLLOW -# define O_NOFOLLOW 0 -#endif - -#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ - /* Native Windows, Cygwin, OS/2, DOS */ -# define ISSLASH(C) ((C) == '/' || (C) == '\\') -#endif - -#ifndef DIRECTORY_SEPARATOR -# define DIRECTORY_SEPARATOR '/' -#endif - -#ifndef ISSLASH -# define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR) -#endif - -#if HAVE_DECL_GETC_UNLOCKED -# undef getc -# define getc getc_unlocked -#endif - -/* The following static variable is declared 'volatile' to avoid a - possible multithread problem in the function get_charset_aliases. If we - are running in a threaded environment, and if two threads initialize - 'charset_aliases' simultaneously, both will produce the same value, - and everything will be ok if the two assignments to 'charset_aliases' - are atomic. But I don't know what will happen if the two assignments mix. */ -#if __STDC__ != 1 -# define volatile /* empty */ -#endif -/* Pointer to the contents of the charset.alias file, if it has already been - read, else NULL. Its format is: - ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0' */ -static const char * volatile charset_aliases; - -/* Return a pointer to the contents of the charset.alias file. */ -static const char * -get_charset_aliases (void) -{ - const char *cp; - - cp = charset_aliases; - if (cp == NULL) - { -#if !(defined DARWIN7 || defined VMS || defined WINDOWS_NATIVE || defined __CYGWIN__ || defined OS2) - const char *dir; - const char *base = "charset.alias"; - char *file_name; - - /* Make it possible to override the charset.alias location. This is - necessary for running the testsuite before "make install". */ - dir = getenv ("CHARSETALIASDIR"); - if (dir == NULL || dir[0] == '\0') - dir = relocate (LIBDIR); - - /* Concatenate dir and base into freshly allocated file_name. */ - { - size_t dir_len = strlen (dir); - size_t base_len = strlen (base); - int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); - file_name = (char *) malloc (dir_len + add_slash + base_len + 1); - if (file_name != NULL) - { - memcpy (file_name, dir, dir_len); - if (add_slash) - file_name[dir_len] = DIRECTORY_SEPARATOR; - memcpy (file_name + dir_len + add_slash, base, base_len + 1); - } - } - - if (file_name == NULL) - /* Out of memory. Treat the file as empty. */ - cp = ""; - else - { - int fd; - - /* Open the file. Reject symbolic links on platforms that support - O_NOFOLLOW. This is a security feature. Without it, an attacker - could retrieve parts of the contents (namely, the tail of the - first line that starts with "* ") of an arbitrary file by placing - a symbolic link to that file under the name "charset.alias" in - some writable directory and defining the environment variable - CHARSETALIASDIR to point to that directory. */ - fd = open (file_name, - O_RDONLY | (HAVE_WORKING_O_NOFOLLOW ? O_NOFOLLOW : 0)); - if (fd < 0) - /* File not found. Treat it as empty. */ - cp = ""; - else - { - FILE *fp; - - fp = fdopen (fd, "r"); - if (fp == NULL) - { - /* Out of memory. Treat the file as empty. */ - close (fd); - cp = ""; - } - else - { - /* Parse the file's contents. */ - char *res_ptr = NULL; - size_t res_size = 0; - - for (;;) - { - int c; - char buf1[50+1]; - char buf2[50+1]; - size_t l1, l2; - char *old_res_ptr; - - c = getc (fp); - if (c == EOF) - break; - if (c == '\n' || c == ' ' || c == '\t') - continue; - if (c == '#') - { - /* Skip comment, to end of line. */ - do - c = getc (fp); - while (!(c == EOF || c == '\n')); - if (c == EOF) - break; - continue; - } - ungetc (c, fp); - if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) - break; - l1 = strlen (buf1); - l2 = strlen (buf2); - old_res_ptr = res_ptr; - if (res_size == 0) - { - res_size = l1 + 1 + l2 + 1; - res_ptr = (char *) malloc (res_size + 1); - } - else - { - res_size += l1 + 1 + l2 + 1; - res_ptr = (char *) realloc (res_ptr, res_size + 1); - } - if (res_ptr == NULL) - { - /* Out of memory. */ - res_size = 0; - free (old_res_ptr); - break; - } - strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); - strcpy (res_ptr + res_size - (l2 + 1), buf2); - } - fclose (fp); - if (res_size == 0) - cp = ""; - else - { - *(res_ptr + res_size) = '\0'; - cp = res_ptr; - } - } - } - - free (file_name); - } - -#else - -# if defined DARWIN7 - /* To avoid the trouble of installing a file that is shared by many - GNU packages -- many packaging systems have problems with this --, - simply inline the aliases here. */ - cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" - "ISO8859-2" "\0" "ISO-8859-2" "\0" - "ISO8859-4" "\0" "ISO-8859-4" "\0" - "ISO8859-5" "\0" "ISO-8859-5" "\0" - "ISO8859-7" "\0" "ISO-8859-7" "\0" - "ISO8859-9" "\0" "ISO-8859-9" "\0" - "ISO8859-13" "\0" "ISO-8859-13" "\0" - "ISO8859-15" "\0" "ISO-8859-15" "\0" - "KOI8-R" "\0" "KOI8-R" "\0" - "KOI8-U" "\0" "KOI8-U" "\0" - "CP866" "\0" "CP866" "\0" - "CP949" "\0" "CP949" "\0" - "CP1131" "\0" "CP1131" "\0" - "CP1251" "\0" "CP1251" "\0" - "eucCN" "\0" "GB2312" "\0" - "GB2312" "\0" "GB2312" "\0" - "eucJP" "\0" "EUC-JP" "\0" - "eucKR" "\0" "EUC-KR" "\0" - "Big5" "\0" "BIG5" "\0" - "Big5HKSCS" "\0" "BIG5-HKSCS" "\0" - "GBK" "\0" "GBK" "\0" - "GB18030" "\0" "GB18030" "\0" - "SJIS" "\0" "SHIFT_JIS" "\0" - "ARMSCII-8" "\0" "ARMSCII-8" "\0" - "PT154" "\0" "PT154" "\0" - /*"ISCII-DEV" "\0" "?" "\0"*/ - "*" "\0" "UTF-8" "\0"; -# endif - -# if defined VMS - /* To avoid the troubles of an extra file charset.alias_vms in the - sources of many GNU packages, simply inline the aliases here. */ - /* The list of encodings is taken from the OpenVMS 7.3-1 documentation - "Compaq C Run-Time Library Reference Manual for OpenVMS systems" - section 10.7 "Handling Different Character Sets". */ - cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" - "ISO8859-2" "\0" "ISO-8859-2" "\0" - "ISO8859-5" "\0" "ISO-8859-5" "\0" - "ISO8859-7" "\0" "ISO-8859-7" "\0" - "ISO8859-8" "\0" "ISO-8859-8" "\0" - "ISO8859-9" "\0" "ISO-8859-9" "\0" - /* Japanese */ - "eucJP" "\0" "EUC-JP" "\0" - "SJIS" "\0" "SHIFT_JIS" "\0" - "DECKANJI" "\0" "DEC-KANJI" "\0" - "SDECKANJI" "\0" "EUC-JP" "\0" - /* Chinese */ - "eucTW" "\0" "EUC-TW" "\0" - "DECHANYU" "\0" "DEC-HANYU" "\0" - "DECHANZI" "\0" "GB2312" "\0" - /* Korean */ - "DECKOREAN" "\0" "EUC-KR" "\0"; -# endif - -# if defined WINDOWS_NATIVE || defined __CYGWIN__ - /* To avoid the troubles of installing a separate file in the same - directory as the DLL and of retrieving the DLL's directory at - runtime, simply inline the aliases here. */ - - cp = "CP936" "\0" "GBK" "\0" - "CP1361" "\0" "JOHAB" "\0" - "CP20127" "\0" "ASCII" "\0" - "CP20866" "\0" "KOI8-R" "\0" - "CP20936" "\0" "GB2312" "\0" - "CP21866" "\0" "KOI8-RU" "\0" - "CP28591" "\0" "ISO-8859-1" "\0" - "CP28592" "\0" "ISO-8859-2" "\0" - "CP28593" "\0" "ISO-8859-3" "\0" - "CP28594" "\0" "ISO-8859-4" "\0" - "CP28595" "\0" "ISO-8859-5" "\0" - "CP28596" "\0" "ISO-8859-6" "\0" - "CP28597" "\0" "ISO-8859-7" "\0" - "CP28598" "\0" "ISO-8859-8" "\0" - "CP28599" "\0" "ISO-8859-9" "\0" - "CP28605" "\0" "ISO-8859-15" "\0" - "CP38598" "\0" "ISO-8859-8" "\0" - "CP51932" "\0" "EUC-JP" "\0" - "CP51936" "\0" "GB2312" "\0" - "CP51949" "\0" "EUC-KR" "\0" - "CP51950" "\0" "EUC-TW" "\0" - "CP54936" "\0" "GB18030" "\0" - "CP65001" "\0" "UTF-8" "\0"; -# endif -# if defined OS2 - /* To avoid the troubles of installing a separate file in the same - directory as the DLL and of retrieving the DLL's directory at - runtime, simply inline the aliases here. */ - - /* The list of encodings is taken from "List of OS/2 Codepages" - by Alex Taylor: - . - See also "IBM Globalization - Code page identifiers": - . */ - cp = "CP813" "\0" "ISO-8859-7" "\0" - "CP878" "\0" "KOI8-R" "\0" - "CP819" "\0" "ISO-8859-1" "\0" - "CP912" "\0" "ISO-8859-2" "\0" - "CP913" "\0" "ISO-8859-3" "\0" - "CP914" "\0" "ISO-8859-4" "\0" - "CP915" "\0" "ISO-8859-5" "\0" - "CP916" "\0" "ISO-8859-8" "\0" - "CP920" "\0" "ISO-8859-9" "\0" - "CP921" "\0" "ISO-8859-13" "\0" - "CP923" "\0" "ISO-8859-15" "\0" - "CP954" "\0" "EUC-JP" "\0" - "CP964" "\0" "EUC-TW" "\0" - "CP970" "\0" "EUC-KR" "\0" - "CP1089" "\0" "ISO-8859-6" "\0" - "CP1208" "\0" "UTF-8" "\0" - "CP1381" "\0" "GB2312" "\0" - "CP1386" "\0" "GBK" "\0" - "CP3372" "\0" "EUC-JP" "\0"; -# endif -#endif - - charset_aliases = cp; - } - - return cp; -} - -/* Determine the current locale's character encoding, and canonicalize it - into one of the canonical names listed in config.charset. - The result must not be freed; it is statically allocated. - If the canonical name cannot be determined, the result is a non-canonical - name. */ - -#ifdef STATIC -STATIC -#endif -const char * -locale_charset (void) -{ - const char *codeset; - const char *aliases; - -#if !(defined WINDOWS_NATIVE || defined OS2) - -# if HAVE_LANGINFO_CODESET - - /* Most systems support nl_langinfo (CODESET) nowadays. */ - codeset = nl_langinfo (CODESET); - -# ifdef __CYGWIN__ - /* Cygwin < 1.7 does not have locales. nl_langinfo (CODESET) always - returns "US-ASCII". Return the suffix of the locale name from the - environment variables (if present) or the codepage as a number. */ - if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) - { - const char *locale; - static char buf[2 + 10 + 1]; - - locale = getenv ("LC_ALL"); - if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } - if (locale != NULL && locale[0] != '\0') - { - /* If the locale name contains an encoding after the dot, return - it. */ - const char *dot = strchr (locale, '.'); - - if (dot != NULL) - { - const char *modifier; - - dot++; - /* Look for the possible @... trailer and remove it, if any. */ - modifier = strchr (dot, '@'); - if (modifier == NULL) - return dot; - if (modifier - dot < sizeof (buf)) - { - memcpy (buf, dot, modifier - dot); - buf [modifier - dot] = '\0'; - return buf; - } - } - } - - /* The Windows API has a function returning the locale's codepage as a - number: GetACP(). This encoding is used by Cygwin, unless the user - has set the environment variable CYGWIN=codepage:oem (which very few - people do). - Output directed to console windows needs to be converted (to - GetOEMCP() if the console is using a raster font, or to - GetConsoleOutputCP() if it is using a TrueType font). Cygwin does - this conversion transparently (see winsup/cygwin/fhandler_console.cc), - converting to GetConsoleOutputCP(). This leads to correct results, - except when SetConsoleOutputCP has been called and a raster font is - in use. */ - sprintf (buf, "CP%u", GetACP ()); - codeset = buf; - } -# endif - -# else - - /* On old systems which lack it, use setlocale or getenv. */ - const char *locale = NULL; - - /* But most old systems don't have a complete set of locales. Some - (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't - use setlocale here; it would return "C" when it doesn't support the - locale name the user has set. */ -# if 0 - locale = setlocale (LC_CTYPE, NULL); -# endif - if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_ALL"); - if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } - } - - /* On some old systems, one used to set locale = "iso8859_1". On others, - you set it to "language_COUNTRY.charset". In any case, we resolve it - through the charset.alias file. */ - codeset = locale; - -# endif - -#elif defined WINDOWS_NATIVE - - static char buf[2 + 10 + 1]; - - /* The Windows API has a function returning the locale's codepage as - a number, but the value doesn't change according to what the - 'setlocale' call specified. So we use it as a last resort, in - case the string returned by 'setlocale' doesn't specify the - codepage. */ - char *current_locale = setlocale (LC_ALL, NULL); - char *pdot; - - /* If they set different locales for different categories, - 'setlocale' will return a semi-colon separated list of locale - values. To make sure we use the correct one, we choose LC_CTYPE. */ - if (strchr (current_locale, ';')) - current_locale = setlocale (LC_CTYPE, NULL); - - pdot = strrchr (current_locale, '.'); - if (pdot) - sprintf (buf, "CP%s", pdot + 1); - else - { - /* The Windows API has a function returning the locale's codepage as a - number: GetACP(). - When the output goes to a console window, it needs to be provided in - GetOEMCP() encoding if the console is using a raster font, or in - GetConsoleOutputCP() encoding if it is using a TrueType font. - But in GUI programs and for output sent to files and pipes, GetACP() - encoding is the best bet. */ - sprintf (buf, "CP%u", GetACP ()); - } - codeset = buf; - -#elif defined OS2 - - const char *locale; - static char buf[2 + 10 + 1]; - ULONG cp[3]; - ULONG cplen; - - codeset = NULL; - - /* Allow user to override the codeset, as set in the operating system, - with standard language environment variables. */ - locale = getenv ("LC_ALL"); - if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } - if (locale != NULL && locale[0] != '\0') - { - /* If the locale name contains an encoding after the dot, return it. */ - const char *dot = strchr (locale, '.'); - - if (dot != NULL) - { - const char *modifier; - - dot++; - /* Look for the possible @... trailer and remove it, if any. */ - modifier = strchr (dot, '@'); - if (modifier == NULL) - return dot; - if (modifier - dot < sizeof (buf)) - { - memcpy (buf, dot, modifier - dot); - buf [modifier - dot] = '\0'; - return buf; - } - } - - /* For the POSIX locale, don't use the system's codepage. */ - if (strcmp (locale, "C") == 0 || strcmp (locale, "POSIX") == 0) - codeset = ""; - } - - if (codeset == NULL) - { - /* OS/2 has a function returning the locale's codepage as a number. */ - if (DosQueryCp (sizeof (cp), cp, &cplen)) - codeset = ""; - else - { - sprintf (buf, "CP%u", cp[0]); - codeset = buf; - } - } - -#endif - - if (codeset == NULL) - /* The canonical name cannot be determined. */ - codeset = ""; - - /* Resolve alias. */ - for (aliases = get_charset_aliases (); - *aliases != '\0'; - aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) - if (strcmp (codeset, aliases) == 0 - || (aliases[0] == '*' && aliases[1] == '\0')) - { - codeset = aliases + strlen (aliases) + 1; - break; - } - - /* Don't return an empty string. GNU libc and GNU libiconv interpret - the empty string as denoting "the locale's character encoding", - thus GNU libiconv would call this function a second time. */ - if (codeset[0] == '\0') - codeset = "ASCII"; - -#ifdef DARWIN7 - /* Mac OS X sets MB_CUR_MAX to 1 when LC_ALL=C, and "UTF-8" - (the default codeset) does not work when MB_CUR_MAX is 1. */ - if (strcmp (codeset, "UTF-8") == 0 && MB_CUR_MAX_L (uselocale (NULL)) <= 1) - codeset = "ASCII"; -#endif - - return codeset; -} diff --git a/tests/test_deoptimization.py b/tests/test_deoptimization.py deleted file mode 100755 index fa76b68..0000000 --- a/tests/test_deoptimization.py +++ /dev/null @@ -1,231 +0,0 @@ -import os -import re -import sys - -import angr -from sailreval.decompilers.angr_dec import angr_decompile - -import unittest - -BINARIES_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "./binaries/") - - -def decompile_function(binary_path, func_name): - return angr_decompile(binary_path, functions=[func_name], print_dec=True) - - -def run_many(times): - def _run_many(function): - def __run_many(*args, **kwargs): - for i in range(times): - result = function(*args, **kwargs) - return result - return __run_many - return _run_many - - -class TestDeduplicationReverter(unittest.TestCase): - def test_test1(self): - """ - Tests the simplest case of deduplication where only a single block is duplicated - """ - decomp = decompile_function(os.path.join(BINARIES_PATH, "test1"), "foo") - text: str = decomp - - self.assertEqual(text.count("first print"), 1) - self.assertEqual(text.count("second print"), 1) - self.assertEqual(text.count("third print"), 1) - self.assertEqual(text.count("if"), 2) - self.assertEqual(text.count("goto"), 0) - - def test_test2(self): - """ - Tests the case of a multiple blocks being duplicated with overlapping conditions in an - if-elif-else structure that causes some graph to be duplicated. - """ - decomp = decompile_function(os.path.join(BINARIES_PATH, "test2"), "foo") - text: str = decomp - - self.assertEqual(text.count("first print"), 1) - self.assertLessEqual(text.count("second print"), 1) - # TODO: thse should be 1, but we give up for now - self.assertEqual(text.count("third print"), 2) - self.assertEqual(text.count("fourth print"), 2) - # TODO: still need to add more fixes to remove the redudant condition graph - # this is the same problem at the end of test1 - """ - self.assertEqual(text.count("&&"), 2) - self.assertEqual(text.count("||"), 1) - self.assertEqual(text.count("if"), 3) - """ - - def _DISABLED_test_true_emit_ancillary_info(self): - # TODO: this is disabled until we fix gettext having multiple args - """ - Found in `true` binary, tests deduplication of an entire graph, with simple - post blocks (no continuing graph) - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/true.o"), "emit_ancillary_info.constprop.0") - text: str = decomp.text - - self.assertEqual(text.count("\\n%s online help: <%s>\\n"), 1) - self.assertEqual(text.count("Full documentation <%s%s>\\n"), 1) - self.assertEqual(text.count("or available locally via: info '(coreutils) %s%s'\\n"), 1) - self.assertEqual(text.count("Report any translation bugs to \\n"), 1) - """ - assert True - - def test_true_localcharset_get_charset_aliases(self): - """ - Tests a complicated partial graph where some pre-blocks and post-blocks differ across - the duplicated graph - """ - func_addr = 0x404410 - decomp = decompile_function(os.path.join(BINARIES_PATH, "true_localcharset"), func_addr) - text: str = decomp - - # - # first fix: - # removes the duplicated graphs that start with malloc and end in memcpy - # - assert text.count("malloc") == 2 - - # - # second fix: - # removes the duplicated call - # TODO: fix this, the goto that makes this de-duplication possible is removed right now - # - assert text.count("sub_404860") == 1 - - - def test_sort_zaptemp(self): - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/sort.o"), "zaptemp") - text: str = decomp - - self.assertNotIn("{\n}", decomp) - self.assertEqual(text.count("goto"), 0) - # If failing, check that the variable name has not changed. Gernerally, this is checking that - # the last if-stmt exists with only a single variable in its conditions - null_if_cases = re.findall(r"if \(!*\*\(v4\)\)", decomp) - self.assertEqual(len(null_if_cases), 1) - - def test_cksum_digest_split_3(self): - """ - This tests the deduplicator goto-trigger is not too sensitive. In this binary there is duplicate assignment - that was legit written by the programmer. It so happens to be close to a goto, which used to trigger this opt - to remove it and cause more gotos. Therefore, this should actually never result in a succesful fixup of the - assignment. - """ - - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/cksum-digest.o"), "split_3") - text: str = decomp - - # the `v9` may change, but the `algorithm_bits` should not - good_assighment = "digest_length = *((&algorithm_bits + 0x4 * v9));" - - assert "{\n}" not in decomp - assert text.count(good_assighment) == 2 - - -class TestMaximizeSimilarity(unittest.TestCase): - def test_nohup_main(self): - """ - The blocks 0x400a75 and 0x400bd9, are closely similar, but are misaligned by 1 instruction that - should happen before the call. This optimization makes sure that they get optimized to be the largest - similar amount they can be. - """ - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/nohup.o"), "main") - text: str = decomp - - self.assertNotIn("{\n}", decomp) - self.assertEqual(text.count("isatty(0x2)"), 1) - self.assertLessEqual(text.count("goto"), 8) - - -class TestConstPropReverter(unittest.TestCase): - def test_fmt_main(self): - """ - This testcase tests 2 things: - 1. that block merger works - 2. that CallArgSimplifier works - - Since the target is a duplicated call where one of the params that was a regsiter - gets replaced with a variable. - - To better understand why CallArgSimplifier is used see Zions notes for: - 2022-04-14 - 2022-04-04 - """ - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/fmt.o"), "main") - text: str = decomp - - self.assertEqual(text.count("invalid width"), 2) - self.assertEqual(text.count("xdectoumax"), 2) - - -class TestReturnDuplicator(unittest.TestCase): - def test_test_binop(self): - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/test.o"), "binop") - text: str = decomp - - self.assertNotIn("{\n}", decomp) - self.assertEqual(text.count("goto"), 0) - - def test_tail_tail_bytes(self): - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/tail.o"), "tail_bytes.constprop.0") - text: str = decomp - - self.assertNotIn("{\n}", decomp) - self.assertEqual(text.count("goto"), 0) - - def test_tsort_search_item(self): - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/tsort.o"), "search_item") - text: str = decomp - - # validate not empty output - self.assertNotIn("{\n}", decomp) - self.assertGreaterEqual(text.count("assert_fail"), 1) - - self.assertEqual(text.count("goto"), 0) - - def test_dd_iread(self): - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/dd.o"), "iread") - text: str = decomp - - # validate not empty output - self.assertNotIn("{\n}", decomp) - assert text.count("return") <= 4 - assert text.count("goto") == 0 - - def test_stty_recover_mode(self): - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/stty.o"), "recover_mode") - text: str = decomp - - # validate not empty output - self.assertNotIn("{\n}", decomp) - assert text.count("return") <= 4 - assert text.count("goto") == 0 - -class TestLoweredSwitchReverter(unittest.TestCase): - def DISABLED_test_cksum_digest_filename_unescape(self): - """ - This is disabled because ReturnSimplifier will remove a goto that triggered this. - """ - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/cksum-digest.o"), "filename_unescape") - text: str = decomp - - self.assertEqual(text.count("switch "), 1) - self.assertEqual(text.count("case 92:"), 1) - self.assertEqual(text.count("goto"), 1) - - -class TestCrossJumpReverter(unittest.TestCase): - def test_chcon_process_file(self): - decomp = decompile_function(os.path.join(BINARIES_PATH, "coreutils/chcon.o"), "process_file") - text: str = decomp - - self.assertGreaterEqual(text.count("switch "), 1) - self.assertLessEqual(text.count("goto"), 1) - - -if __name__ == "__main__": - unittest.main(argv=sys.argv) From ae5069ab171c35eb3d435b9b66e182354d2a427d Mon Sep 17 00:00:00 2001 From: mahaloz Date: Sat, 31 Aug 2024 13:41:42 -0700 Subject: [PATCH 6/6] bump version --- sailreval/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sailreval/__init__.py b/sailreval/__init__.py index b378e83..f04db21 100755 --- a/sailreval/__init__.py +++ b/sailreval/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.5.2" +__version__ = "1.6.0" # create loggers import logging